._button_18gkk_1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-touch);
  padding: 0 var(--ds-space-4);
  border: 1px solid transparent;
  border-radius: var(--ds-radius-sm);
  font: inherit;
  font-family: var(--ds-font);
  font-size: var(--ds-font-size-md);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--ds-duration) var(--ds-ease),
    border-color var(--ds-duration) var(--ds-ease),
    transform var(--ds-duration) var(--ds-ease);
}

._button_18gkk_1 svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

._button_18gkk_1:active:not(:disabled) {
  transform: scale(0.98);
}

._button_18gkk_1:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

._label_18gkk_39 {
  overflow: hidden;
  text-overflow: ellipsis;
}

._primary_18gkk_44 {
  background: var(--ds-brand);
  color: var(--ds-text-on-brand);
}
._primary_18gkk_44:hover:not(:disabled) { background: var(--ds-brand-hover); }

._secondary_18gkk_50 {
  background: var(--ds-surface);
  border-color: var(--ds-border);
  color: var(--ds-text);
}
._secondary_18gkk_50:hover:not(:disabled) { background: var(--ds-surface-2); }

._ghost_18gkk_57 {
  background: transparent;
  color: var(--ds-text);
}
._ghost_18gkk_57:hover:not(:disabled) { background: var(--ds-surface-2); }

._danger_18gkk_63 {
  background: var(--ds-danger);
  color: var(--ds-text-on-danger);
}
._danger_18gkk_63:hover:not(:disabled) { filter: brightness(0.92); }

/* Kleine Variante: optisch kompakt, Tippfläche bleibt 44 px auf Touch-Geräten */
._sm_18gkk_70 {
  min-height: 36px;
  padding: 0 var(--ds-space-3);
  font-size: var(--ds-font-size-sm);
}
@media (pointer: coarse) {
  ._sm_18gkk_70 { min-height: var(--ds-touch); }
}

._lg_18gkk_79 {
  min-height: 52px;
  padding: 0 var(--ds-space-5);
  font-size: 1.0625rem;
}

._full_18gkk_85 { width: 100%; }

._iconOnly_18gkk_87 {
  padding: 0;
  width: var(--ds-touch);
  border-radius: 50%;
}
._iconOnly_18gkk_87._sm_18gkk_70 { width: 36px; }
@media (pointer: coarse) {
  ._iconOnly_18gkk_87._sm_18gkk_70 { width: var(--ds-touch); }
}

._spin_18gkk_97 { animation: _spin_18gkk_97 0.8s linear infinite; }
@keyframes _spin_18gkk_97 { to { transform: rotate(360deg); } }
._field_1ggp7_1 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
  min-width: 0;
}

._label_1ggp7_8 {
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  color: var(--ds-text);
}

._required_1ggp7_14 { color: var(--ds-danger); }

._hint_1ggp7_16,
._error_1ggp7_17 {
  margin: 0;
  font-size: var(--ds-font-size-sm);
}
._hint_1ggp7_16 { color: var(--ds-text-muted); }
._error_1ggp7_17 { color: var(--ds-danger); }

/* 16 px Schrift verhindert das automatische Hineinzoomen auf iOS */
._control_1ggp7_25 {
  width: 100%;
  min-height: var(--ds-touch);
  padding: 0 var(--ds-space-3);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface);
  color: var(--ds-text);
  font-family: var(--ds-font);
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color var(--ds-duration) var(--ds-ease), box-shadow var(--ds-duration) var(--ds-ease);
}

._control_1ggp7_25::placeholder { color: var(--ds-text-muted); opacity: 0.8; }

._control_1ggp7_25:focus {
  outline: none;
  border-color: var(--ds-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-brand) 20%, transparent);
}

._control_1ggp7_25[aria-invalid='true'] { border-color: var(--ds-danger); }

._control_1ggp7_25:disabled {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}

._textarea_1ggp7_54 {
  padding: var(--ds-space-3);
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

._select_1ggp7_61 {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ds-text-muted) 50%),
    linear-gradient(135deg, var(--ds-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

._search_1ggp7_71 {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

._searchIcon_1ggp7_78 {
  position: absolute;
  left: var(--ds-space-3);
  width: 18px;
  height: 18px;
  color: var(--ds-text-muted);
  pointer-events: none;
}

._searchInput_1ggp7_87 {
  padding-left: 40px;
  padding-right: var(--ds-touch);
}
._searchInput_1ggp7_87::-webkit-search-cancel-button { display: none; }

._clear_1ggp7_93 {
  position: absolute;
  right: 0;
  display: grid;
  place-items: center;
  width: var(--ds-touch);
  height: var(--ds-touch);
  border: 0;
  background: none;
  color: var(--ds-text-muted);
  cursor: pointer;
}
._clear_1ggp7_93 svg { width: 18px; height: 18px; }
._card_joo6l_1 {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-sm);
  color: var(--ds-text);
  min-width: 0;
}

._pad-none_joo6l_10 { padding: 0; }
._pad-sm_joo6l_11 { padding: var(--ds-space-3); }
._pad-md_joo6l_12 { padding: var(--ds-space-4); }
@media (min-width: 640px) {
  ._pad-md_joo6l_12 { padding: var(--ds-space-5); }
}

._interactive_joo6l_17 {
  cursor: pointer;
  text-align: left;
  transition: border-color var(--ds-duration) var(--ds-ease), box-shadow var(--ds-duration) var(--ds-ease),
    transform var(--ds-duration) var(--ds-ease);
}
._interactive_joo6l_17:hover {
  border-color: color-mix(in srgb, var(--ds-brand) 35%, var(--ds-border));
  box-shadow: var(--ds-shadow-md);
}
._interactive_joo6l_17:active { transform: scale(0.99); }

._badge_joo6l_29 {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-1);
  padding: 2px var(--ds-space-2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

._tone-neutral_joo6l_41 { background: var(--ds-surface-2); color: var(--ds-text-muted); }
._tone-brand_joo6l_42 { background: color-mix(in srgb, var(--ds-brand) 12%, transparent); color: var(--ds-brand); }
._tone-accent_joo6l_43 { background: color-mix(in srgb, var(--ds-accent) 15%, transparent); color: var(--ds-accent); }
._tone-success_joo6l_44 { background: var(--ds-success-bg); color: var(--ds-success); }
._tone-warning_joo6l_45 { background: var(--ds-warning-bg); color: var(--ds-warning); }
._tone-danger_joo6l_46 { background: var(--ds-danger-bg); color: var(--ds-danger); }
._tone-info_joo6l_47 { background: var(--ds-info-bg); color: var(--ds-info); }
._tabs_uev8s_1 {
  display: flex;
  max-width: 100%;
  min-width: 0;
  gap: var(--ds-space-1);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  border-bottom: 1px solid var(--ds-border);
  -webkit-overflow-scrolling: touch;
}
._tabs_uev8s_1::-webkit-scrollbar { display: none; }

._tab_uev8s_1 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-touch);
  padding: 0 var(--ds-space-3);
  border: 0;
  background: none;
  color: var(--ds-text-muted);
  font-family: var(--ds-font);
  font-size: var(--ds-font-size-md);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
}

._tab_uev8s_1 svg { width: 18px; height: 18px; }
._tab_uev8s_1:hover { color: var(--ds-text); }

._selected_uev8s_35 { color: var(--ds-brand); }
._selected_uev8s_35::after {
  content: '';
  position: absolute;
  left: var(--ds-space-2);
  right: var(--ds-space-2);
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--ds-accent);
}

._count_uev8s_47 {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
  font-size: 0.75rem;
  line-height: 20px;
  text-align: center;
}
._root_18tgj_1 {
  position: relative;
  z-index: var(--ds-z-sheet);
}

._backdrop_18tgj_6 {
  position: fixed;
  inset: 0;
  background: rgb(8 15 25 / 0.5);
  transition: opacity var(--ds-duration) var(--ds-ease);
}
._backdrop_18tgj_6[data-closed] { opacity: 0; }

._viewport_18tgj_14 {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Handy: Blatt von unten, volle Breite */
._panel_18tgj_23 {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 92dvh;
  background: var(--ds-surface);
  color: var(--ds-text);
  font-family: var(--ds-font);
  border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0;
  box-shadow: var(--ds-shadow-md);
  transition: transform 220ms var(--ds-ease), opacity var(--ds-duration) var(--ds-ease);
}
._panel_18tgj_23[data-closed] { transform: translateY(100%); }

._handle_18tgj_37 {
  width: 40px;
  height: 4px;
  margin: var(--ds-space-2) auto 0;
  border-radius: 2px;
  background: var(--ds-border);
}

._header_18tgj_45 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: var(--ds-space-2) var(--ds-space-2) var(--ds-space-2) var(--ds-space-4);
}

._headerText_18tgj_53 {
  min-width: 0;
  padding-top: var(--ds-space-2);
}

._title_18tgj_58 {
  margin: 0;
  font-size: var(--ds-font-size-lg);
  font-weight: 700;
  line-height: 1.3;
}

._description_18tgj_65 {
  margin: var(--ds-space-1) 0 0;
  font-size: var(--ds-font-size-sm);
  color: var(--ds-text-muted);
}

._body_18tgj_71 {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--ds-space-2) var(--ds-space-4) var(--ds-space-4);
}

._footer_18tgj_78 {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3) var(--ds-space-4) calc(var(--ds-space-3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ds-border);
}
._footer_18tgj_78 > * { width: 100%; }

/* Ab Tablet: zentrierter Dialog */
@media (min-width: 640px) {
  ._viewport_18tgj_14 {
    align-items: center;
    padding: var(--ds-space-5);
  }

  ._panel_18tgj_23 {
    max-height: min(85dvh, 900px);
    border-radius: var(--ds-radius-lg);
  }
  ._panel_18tgj_23[data-closed] {
    transform: scale(0.96);
    opacity: 0;
  }

  ._handle_18tgj_37 { display: none; }

  ._header_18tgj_45 { padding: var(--ds-space-3) var(--ds-space-3) var(--ds-space-2) var(--ds-space-5); }
  ._body_18tgj_71 { padding: var(--ds-space-2) var(--ds-space-5) var(--ds-space-5); }

  ._footer_18tgj_78 {
    flex-direction: row;
    justify-content: flex-end;
    padding: var(--ds-space-3) var(--ds-space-5);
  }
  ._footer_18tgj_78 > * { width: auto; }

  ._sm_18tgj_115 { max-width: 420px; }
  ._md_18tgj_116 { max-width: 560px; }
  ._lg_18tgj_117 { max-width: 800px; }
}
._empty_qrqdn_1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-7) var(--ds-space-4);
  text-align: center;
  color: var(--ds-text-muted);
}

._emptyIcon_qrqdn_11 {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--ds-space-2);
  border-radius: 50%;
  background: var(--ds-surface-2);
}
._emptyIcon_qrqdn_11 svg { width: 26px; height: 26px; }

._emptyTitle_qrqdn_22 {
  margin: 0;
  font-size: var(--ds-font-size-md);
  font-weight: 600;
  color: var(--ds-text);
}

._emptyText_qrqdn_29 {
  margin: 0;
  max-width: 42ch;
  font-size: var(--ds-font-size-sm);
}

._emptyAction_qrqdn_35 { margin-top: var(--ds-space-3); }

._skeleton_qrqdn_37 {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--ds-surface-2) 25%, color-mix(in srgb, var(--ds-surface-2) 40%, var(--ds-surface)) 50%, var(--ds-surface-2) 75%);
  background-size: 200% 100%;
  animation: _shimmer_qrqdn_1 1.4s ease-in-out infinite;
}
@keyframes _shimmer_qrqdn_1 { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  ._skeleton_qrqdn_37 { animation: none; }
}

._lines_qrqdn_49 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
}

._header_qrqdn_55 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ds-space-3);
  margin-bottom: var(--ds-space-4);
}

._headerMain_qrqdn_64 {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-width: 0;
}

._headerText_qrqdn_71 { min-width: 0; }

._title_qrqdn_73 {
  margin: 0;
  font-size: var(--ds-font-size-xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ds-text);
  overflow-wrap: anywhere;
}

._subtitle_qrqdn_82 {
  margin: var(--ds-space-1) 0 0;
  font-size: var(--ds-font-size-sm);
  color: var(--ds-text-muted);
}

._actions_qrqdn_88 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
}

/* Auf dem Handy stehen die Aktionen in voller Breite unter dem Titel */
@media (max-width: 639px) {
  ._actions_qrqdn_88 { width: 100%; }
  ._actions_qrqdn_88 > * { flex: 1 1 auto; }
}

@media (min-width: 1024px) {
  ._title_qrqdn_73 { font-size: 1.75rem; }
}
._root_cqx39_1 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  min-width: 0;
  font-family: var(--ds-font);
  color: var(--ds-text);
}

._toolbar_cqx39_10 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  align-items: center;
}

._search_cqx39_17 { flex: 1 1 240px; }

._toolbarExtra_cqx39_19 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
}

._sortSelect_cqx39_25 {
  min-height: var(--ds-touch);
  padding: 0 var(--ds-space-3);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface);
  color: var(--ds-text);
  font-family: var(--ds-font);
  font-size: 16px;
}

._count_cqx39_36 {
  margin: 0;
  font-size: var(--ds-font-size-sm);
  color: var(--ds-text-muted);
}

._muted_cqx39_42 { color: var(--ds-text-muted); }
._alignEnd_cqx39_43 { text-align: right; }

._srOnly_cqx39_45 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Karten (Handy) ── */
._cards_cqx39_55 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

._card_cqx39_55 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3) var(--ds-space-3) var(--ds-space-3) var(--ds-space-4);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-sm);
}

._cardHead_cqx39_75 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-2);
  min-height: 36px;
}

._cardTitles_cqx39_83 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: 6px;
}

._cardTitle_cqx39_83 {
  font-weight: 600;
  overflow-wrap: anywhere;
}

._cardSubtitle_cqx39_97 {
  font-size: var(--ds-font-size-sm);
  color: var(--ds-text-muted);
  overflow-wrap: anywhere;
}

._details_cqx39_103 {
  display: grid;
  grid-template-columns: minmax(90px, max-content) 1fr;
  gap: var(--ds-space-1) var(--ds-space-3);
  margin: 0;
  font-size: var(--ds-font-size-sm);
}
._details_cqx39_103 dt { color: var(--ds-text-muted); }
._details_cqx39_103 dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
._details_cqx39_103 dd._alignEnd_cqx39_43 { text-align: left; }

._clickable_cqx39_118 { cursor: pointer; }
._card_cqx39_55._clickable_cqx39_118:active { background: var(--ds-surface-2); }

/* ── Tabelle (Tablet/PC) ── */
._tableWrap_cqx39_122 {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  /* Sicherheitsnetz: sehr breite Inhalte werden innerhalb der Tabelle scrollbar statt abgeschnitten */
  overflow-x: auto;
}

._table_cqx39_122 {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

._table_cqx39_122 th,
._table_cqx39_122 td {
  padding: var(--ds-space-2) var(--ds-space-3);
  border-bottom: 1px solid var(--ds-border);
  text-align: left;
  vertical-align: middle;
  /* break-word statt anywhere: Wörter bleiben ganz, nur überlange Wörter werden umbrochen */
  overflow-wrap: break-word;
  hyphens: manual;
}

._table_cqx39_122 thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  white-space: nowrap;
}

._table_cqx39_122 tbody tr:last-child td { border-bottom: 0; }
._table_cqx39_122 tbody tr._clickable_cqx39_118:hover,
._table_cqx39_122 tbody tr._open_cqx39_160 { background: color-mix(in srgb, var(--ds-brand) 5%, var(--ds-surface)); }

._narrow_cqx39_162 {
  width: 1%;
  white-space: nowrap;
}
._table_cqx39_122 ._narrow_cqx39_162 { padding-left: var(--ds-space-1); padding-right: var(--ds-space-1); }

._sortButton_cqx39_168 {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-1);
  margin: -4px -6px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
._sortButton_cqx39_168 svg { width: 14px; height: 14px; opacity: 0.5; }
._sortButton_cqx39_168:hover { color: var(--ds-text); }
._sortActive_cqx39_183 { color: var(--ds-brand); }
._sortActive_cqx39_183 svg { opacity: 1; }

._chevron_cqx39_186 svg { transition: transform var(--ds-duration) var(--ds-ease); }
._chevronOpen_cqx39_187 svg { transform: rotate(180deg); }

._detailRow_cqx39_189 td {
  background: color-mix(in srgb, var(--ds-brand) 5%, var(--ds-surface));
  padding-left: var(--ds-space-7);
}

._skeletonRows_cqx39_194 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
}

/* ── Aktionsmenü ── */
._menu_cqx39_205 {
  z-index: var(--ds-z-sheet);
  min-width: 200px;
  padding: var(--ds-space-1);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-md);
  outline: none;
  --anchor-gap: 4px;
}

._menuItem_cqx39_217 {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  width: 100%;
  min-height: var(--ds-touch);
  padding: 0 var(--ds-space-3);
  border: 0;
  border-radius: var(--ds-radius-sm);
  background: none;
  color: var(--ds-text);
  font-family: var(--ds-font);
  font-size: var(--ds-font-size-md);
  text-align: left;
  cursor: pointer;
}
._menuItem_cqx39_217 svg { width: 18px; height: 18px; color: var(--ds-text-muted); }
._menuItem_cqx39_217[data-focus] { background: var(--ds-surface-2); }
._menuItem_cqx39_217[data-disabled] { opacity: 0.5; cursor: not-allowed; }
._menuDanger_cqx39_236,
._menuDanger_cqx39_236 svg { color: var(--ds-danger); }

/* ── Seiten ── */
._pagination_cqx39_240 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-3);
  font-size: var(--ds-font-size-sm);
  color: var(--ds-text-muted);
}

/* ── Auswahl ── */
._checkbox_cqx39_250 {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ds-brand);
  cursor: pointer;
}
._card_cqx39_55 ._checkbox_cqx39_250 { margin-top: 8px; flex-shrink: 0; }

._selectAll_cqx39_259 {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-touch);
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  cursor: pointer;
}

/* Lange Texte (z. B. Beschreibungen) auf wenige Zeilen begrenzen */
._clamp_cqx39_270 {
  display: -webkit-box;
  min-width: 12ch;
  max-width: 48ch;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

/* Zahlenspalten rechtsbündig (muss die allgemeine Zellregel überstimmen) */
._table_cqx39_122 ._alignEnd_cqx39_43 { text-align: right; }
._table_cqx39_122 th._alignEnd_cqx39_43 ._sortButton_cqx39_168 { flex-direction: row-reverse; }
._field_ttiws_1 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
}

._label_ttiws_7 {
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
}

._box_ttiws_12 {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3);
  border: 1px dashed var(--ds-border);
  border-radius: var(--ds-radius-sm);
}

._preview_ttiws_21,
._empty_ttiws_22 {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface-2);
}
._preview_ttiws_21 img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
._empty_ttiws_22 { color: var(--ds-text-muted); }
._empty_ttiws_22 svg { width: 28px; height: 28px; }

._remove_ttiws_37 {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--ds-surface);
  color: var(--ds-danger);
  box-shadow: var(--ds-shadow-sm);
}

._side_ttiws_46 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ds-space-1);
  min-width: 0;
}

._hint_ttiws_54 {
  color: var(--ds-text-muted);
  font-size: 0.75rem;
}
._menu_1i7qf_1 {
  z-index: var(--ds-z-sheet);
  min-width: 220px;
  padding: var(--ds-space-1);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-md);
  outline: none;
  --anchor-gap: 4px;
}

._item_1i7qf_13 {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  width: 100%;
  min-height: var(--ds-touch);
  padding: 0 var(--ds-space-3);
  border: 0;
  border-radius: var(--ds-radius-sm);
  background: none;
  color: var(--ds-text);
  font-family: var(--ds-font);
  font-size: var(--ds-font-size-md);
  text-align: left;
  cursor: pointer;
}
._item_1i7qf_13 svg { width: 18px; height: 18px; color: var(--ds-text-muted); }
._item_1i7qf_13[data-focus] { background: var(--ds-surface-2); }
._item_1i7qf_13:disabled { opacity: 0.5; cursor: not-allowed; }
._danger_1i7qf_32, ._danger_1i7qf_32 svg { color: var(--ds-danger); }

._separator_1i7qf_34 {
  height: 1px;
  margin: var(--ds-space-1) 0;
  background: var(--ds-border);
}
._root_ro47n_1 { border-top: 1px solid var(--ds-border); }
._button_ro47n_2 {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  width: 100%;
  min-height: var(--ds-touch);
  padding: 0;
  border: 0;
  background: none;
  color: var(--ds-text);
  font-family: var(--ds-font);
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  cursor: pointer;
}
._icon_ro47n_17 { width: 18px; height: 18px; color: var(--ds-text-muted); }
._chevron_ro47n_18 { width: 16px; height: 16px; margin-left: auto; color: var(--ds-text-muted); transition: transform var(--ds-duration) var(--ds-ease); }
._open_ro47n_19 { transform: rotate(180deg); }
._count_ro47n_20 {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
  font-size: 0.75rem;
  line-height: 20px;
  text-align: center;
}
._body_ro47n_30 { display: flex; flex-direction: column; gap: var(--ds-space-3); padding-bottom: var(--ds-space-3); }
/* Handy: oben unter der Kopfzeile (unten liegen Navigation und Aktionsleisten), ab Tablet oben rechts */
._toasts_1q83p_2 {
  position: fixed;
  left: var(--ds-space-3);
  right: var(--ds-space-3);
  top: calc(64px + env(safe-area-inset-top));
  z-index: var(--ds-z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  pointer-events: none;
}

@media (min-width: 640px) {
  ._toasts_1q83p_2 {
    left: auto;
    right: var(--ds-space-5);
    top: calc(72px + env(safe-area-inset-top));
    width: 380px;
  }
}

._toast_1q83p_2 {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3);
  border: 1px solid var(--ds-border);
  border-left-width: 4px;
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  color: var(--ds-text);
  font-family: var(--ds-font);
  font-size: var(--ds-font-size-sm);
  box-shadow: var(--ds-shadow-md);
  pointer-events: auto;
  animation: _toast-in_1q83p_1 200ms var(--ds-ease);
}
@keyframes _toast-in_1q83p_1 { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  ._toast_1q83p_2 { animation: none; }
}

._success_1q83p_44 { border-left-color: var(--ds-success); }
._error_1q83p_45 { border-left-color: var(--ds-danger); }
._warning_1q83p_46 { border-left-color: var(--ds-warning); }
._info_1q83p_47 { border-left-color: var(--ds-info); }

._toastIcon_1q83p_49 { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
._success_1q83p_44 ._toastIcon_1q83p_49 { color: var(--ds-success); }
._error_1q83p_45 ._toastIcon_1q83p_49 { color: var(--ds-danger); }
._warning_1q83p_46 ._toastIcon_1q83p_49 { color: var(--ds-warning); }
._info_1q83p_47 ._toastIcon_1q83p_49 { color: var(--ds-info); }

._toastText_1q83p_55 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

._toastClose_1q83p_66 {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ds-text-muted);
  cursor: pointer;
}
._toastClose_1q83p_66 svg { width: 16px; height: 16px; }
._toastClose_1q83p_66:hover { background: var(--ds-surface-2); }

._confirmText_1q83p_81 {
  margin: 0;
  line-height: 1.5;
  color: var(--ds-text-muted);
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 41, 65, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 90vw;
  width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(18, 41, 65, 0.3);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
}

.modal-info .modal-icon {
  background: linear-gradient(135deg, var(--bg-accent) 0%, #e3f0fc 100%);
  color: var(--primary-dark);
}

.modal-success .modal-icon {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.modal-error .modal-icon {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

.modal-warning .modal-icon {
  background: linear-gradient(135deg, var(--warning-light) 0%, #ffeeba 100%);
  color: #856404;
}

.modal-confirm .modal-icon {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 1rem;
  text-align: center;
}

.modal-body {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-button {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

.modal-button-primary {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #d68900 100%);
  color: white;
}

.modal-button-primary:hover {
  background: linear-gradient(135deg, #b06900 0%, var(--accent-orange) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 122, 0, 0.3);
}

.modal-button-secondary {
  background: #f1f3f4;
  color: #52647c;
}

.modal-button-secondary:hover {
  background: #e3e6e8;
  transform: translateY(-2px);
}

.modal-button-danger {
  background: linear-gradient(135deg, var(--error-color) 0%, #c82333 100%);
  color: white;
}

.modal-button-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.modal-button-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #218838 100%);
  color: white;
}

.modal-button-success:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    max-width: 95vw;
    border-radius: 12px;
  }

  .modal-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-body {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .modal-button {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-button {
    width: 100%;
  }
}
/* ── Feedback Modal ── */
.fb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fbFadeIn 0.18s ease;
}

@keyframes fbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fb-modal {
  background: white;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  animation: fbSlideUp 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes fbSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Header */
.fb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, #1a3550 0%, var(--primary-dark) 60%, #0d1f30 100%);
  border-radius: 18px 18px 0 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.fb-header::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 110px; height: 110px;
  background: rgba(200, 122, 0, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.fb-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.fb-header-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.fb-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.fb-header p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

.fb-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 34px; height: 34px;
  border-radius: 9px;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.fb-close:hover { background: rgba(255,255,255,0.28); }

/* Body */
.fb-body {
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

/* Info note */
.fb-info-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--bg-accent);
  border: 1px solid rgba(18,41,65,0.1);
  border-left: 3px solid var(--primary-dark);
  border-radius: 0 8px 8px 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.fb-info-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.05rem; }

/* Section label */
.fb-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-gray);
  margin-bottom: 0.55rem;
}

/* Type chips */
.fb-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.fb-type-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: white;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-dark);
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
  font-family: inherit;
  user-select: none;
}

.fb-type-chip:hover {
  border-color: var(--accent-orange);
  background: var(--orange-light);
}

.fb-type-chip.selected {
  border-color: var(--accent-orange);
  background: var(--orange-light);
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: 0 0 0 2px rgba(200,122,0,0.2);
}

.fb-type-chip-icon { font-size: 1.05rem; flex-shrink: 0; }

/* Textarea */
.fb-textarea-wrap { position: relative; }

.fb-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.55;
  resize: vertical;
  min-height: 130px;
  background: white;
  color: var(--primary-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.fb-textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(200,122,0,0.1);
}

.fb-textarea.has-error {
  border-color: var(--red-dark);
}

.fb-textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
}

.fb-char-count {
  font-size: 0.77rem;
  color: var(--text-gray);
}

.fb-error-msg {
  font-size: 0.8rem;
  color: var(--red-dark);
  font-weight: 600;
}

/* Footer */
.fb-footer {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1.6rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.fb-cancel-btn {
  flex: 1;
  padding: 0.7rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: white;
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.fb-cancel-btn:hover:not(:disabled) { background: var(--bg-light); }
.fb-cancel-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.fb-submit-btn {
  flex: 2;
  padding: 0.7rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-orange), #d68900);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(200,122,0,0.3);
  transition: all 0.2s;
  font-family: inherit;
}

.fb-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(200,122,0,0.42);
}

.fb-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Image attachments */
.fb-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.fb-image-item {
  position: relative;
  width: 88px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fb-image-preview {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-light);
}

.fb-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.fb-image-remove:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.85);
}

.fb-image-name {
  font-size: 0.68rem;
  color: var(--text-gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-image-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 88px;
  height: 88px;
  border: 1.5px dashed var(--border-color);
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--text-gray);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  padding: 0.4rem;
}

.fb-image-add:hover {
  border-color: var(--accent-orange);
  background: var(--orange-light);
  color: var(--primary-dark);
}

.fb-image-add-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.fb-image-input {
  display: none;
}

.fb-images-hint {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--text-gray);
}

/* Responsive */
@media (max-width: 480px) {
  .fb-type-grid { grid-template-columns: 1fr; }
  .fb-header { padding: 1.1rem 1.2rem; }
  .fb-body    { padding: 1.2rem; }
  .fb-footer  { padding: 0.8rem 1.2rem 1.2rem; }
}


.feedback-info {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  background: #e3f2fd;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #2196F3;
}

.feedback-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feedback-form label {
  font-weight: 600;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count {
  font-size: 0.85rem;
  color: #999;
  font-weight: 400;
}

.feedback-form select,
.feedback-form textarea {
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: white;
}

.feedback-form select:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.feedback-form textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.5;
}

.feedback-form textarea.error {
  border-color: #f44336;
}

.feedback-form .error-message {
  color: #f44336;
  font-size: 0.85rem;
  margin-top: -0.25rem;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.modal-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.modal-actions button[type="submit"] {
  background: linear-gradient(135deg, #2196F3 0%, var(--blue) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.modal-actions button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.modal-actions button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

.modal-actions .cancel-button {
  background-color: #f5f5f5;
  color: #333;
}

.modal-actions .cancel-button:hover:not(:disabled) {
  background-color: #e0e0e0;
}

.modal-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
/* ── Doc Suggestion Modal ── */
.docsugg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: dsOverlayIn 0.18s ease;
}

@keyframes dsOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.docsugg-modal {
  background: white;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  animation: dsModalIn 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes dsModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Header */
.docsugg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, #1a3550 0%, var(--primary-dark) 60%, #0d1f30 100%);
  border-radius: 18px 18px 0 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.docsugg-header::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 110px; height: 110px;
  background: rgba(200,122,0,0.13);
  border-radius: 50%;
  pointer-events: none;
}

.docsugg-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.docsugg-header-icon { font-size: 1.5rem; line-height: 1; }

.docsugg-header h2 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.docsugg-header p  { margin: 0.15rem 0 0; font-size: 0.8rem; opacity: 0.7; }

.docsugg-header-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 34px; height: 34px;
  border-radius: 9px;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  position: relative; z-index: 1;
  flex-shrink: 0;
}

.docsugg-header-close:hover:not(:disabled) { background: rgba(255,255,255,0.28); }

/* Body */
.docsugg-body {
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Info note */
.docsugg-info-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--bg-accent);
  border: 1px solid rgba(18,41,65,0.1);
  border-left: 3px solid var(--primary-dark);
  border-radius: 0 8px 8px 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.docsugg-info-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.05rem; }

/* Fields */
.docsugg-field { display: flex; flex-direction: column; gap: 0.4rem; }

.docsugg-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.docsugg-required { color: var(--red-dark); }
.docsugg-optional { font-weight: 400; color: var(--text-gray); font-size: 0.78rem; text-transform: none; letter-spacing: 0; }
.docsugg-char     { font-weight: 400; color: var(--text-gray); font-size: 0.78rem; text-transform: none; letter-spacing: 0; margin-left: auto; }

.docsugg-field input,
.docsugg-field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  color: var(--primary-dark);
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.docsugg-field textarea { min-height: 110px; line-height: 1.5; }

.docsugg-field input:focus,
.docsugg-field textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(200,122,0,0.1);
}

/* Error */
.docsugg-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--red-dark);
  background: #fff5f5;
  border: 1px solid rgba(244,67,54,0.25);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  margin: 0;
}

/* Footer */
.docsugg-footer {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1.6rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.docsugg-btn-cancel {
  flex: 1;
  padding: 0.7rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: white;
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.docsugg-btn-cancel:hover:not(:disabled) { background: var(--bg-light); }
.docsugg-btn-cancel:disabled { opacity: 0.5; cursor: not-allowed; }

.docsugg-btn-submit {
  flex: 2;
  padding: 0.7rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-orange), #d68900);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(200,122,0,0.3);
  transition: all 0.2s;
  font-family: inherit;
}

.docsugg-btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(200,122,0,0.42);
}

.docsugg-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Success state */
.docsugg-success-body {
  padding: 2.5rem 1.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.docsugg-success-circle {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, #d4edda, #b8dfca);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 16px rgba(40,167,69,0.2);
}

.docsugg-success-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.docsugg-success-text {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.55;
  margin: 0;
  max-width: 340px;
}

.docsugg-success-footer {
  padding: 1rem 1.6rem 1.5rem;
}

.docsugg-btn-close {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-orange), #d68900);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(200,122,0,0.3);
  transition: all 0.2s;
  font-family: inherit;
}

.docsugg-btn-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(200,122,0,0.42);
}

/* Responsive */
@media (max-width: 480px) {
  .docsugg-header { padding: 1.1rem 1.2rem; }
  .docsugg-body   { padding: 1.2rem; }
  .docsugg-footer { padding: 0.8rem 1.2rem 1.2rem; }
  .docsugg-success-footer { padding: 0.8rem 1.2rem 1.2rem; }
}


.docsugg-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.docsugg-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.docsugg-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.docsugg-required { color: #dc2626; }
.docsugg-optional { font-weight: 400; color: var(--text-gray); font-size: 0.8rem; }
.docsugg-char     { font-weight: 400; color: var(--text-gray); font-size: 0.78rem; margin-left: auto; }

.docsugg-field input,
.docsugg-field textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s;
}

.docsugg-field input:focus,
.docsugg-field textarea:focus {
  outline: none;
  border-color: var(--primary-dark);
}

.docsugg-error {
  font-size: 0.85rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin: 0;
}

.docsugg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.docsugg-btn-cancel {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
  color: var(--text-gray);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.docsugg-btn-cancel:hover { background: var(--bg-light); }

.docsugg-btn-submit {
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.docsugg-btn-submit:hover { opacity: 0.88; }
.docsugg-btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* Success state */
.docsugg-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
}

.docsugg-success-icon { font-size: 2.5rem; }

.docsugg-success p {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.docsugg-btn-close {
  margin-top: 0.5rem;
  padding: 0.55rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

.docsugg-btn-close:hover { opacity: 0.88; }
.customer-selection-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.customer-selection-desc {
  margin: 0;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}

.customer-selection-new-hint {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  padding: 10px 14px;
  color: #1d4ed8;
  font-size: 0.9rem;
}

.customer-selection-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 10px 14px;
  color: #dc2626;
  font-size: 0.9rem;
}

.customer-selection-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
  padding: 4px 2px;
}

.customer-selection-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
  user-select: none;
}

.customer-selection-item:hover {
  border-color: #93c5fd;
  background: #f0f9ff;
}

.customer-selection-item.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.customer-selection-item.is-new {
  border-color: #34d399;
}

.customer-selection-item.is-new.selected {
  border-color: #059669;
  background: #f0fdf4;
}

.customer-selection-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  flex-shrink: 0;
  cursor: pointer;
}

.customer-selection-name {
  font-size: 0.95rem;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.customer-selection-badge {
  background: #10b981;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.customer-selection-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #9ca3af;
  text-align: center;
}
.modal-content--analytics-consent {
  position: relative;
  width: min(100%, 420px);
  padding: 2rem 1.75rem 1.5rem;
  overflow: hidden;
}

/* Dezenter CI-Akzentstreifen am oberen Rand */
.modal-content--analytics-consent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2a4a6b 50%, var(--accent-orange) 100%);
}

/* Standard-Icon des generischen Modals ausblenden – eigenes Badge wird gerendert */
.modal-content--analytics-consent .modal-icon {
  display: none;
}

.modal-content--analytics-consent .modal-body {
  margin-bottom: 0;
  text-align: center;
}

.analytics-consent-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Badge ── */
.analytics-consent-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a3550 0%, var(--primary-dark) 60%, #0d1f30 100%);
  box-shadow:
    0 0 0 8px var(--bg-accent),
    0 8px 20px rgba(18, 41, 65, 0.25);
  margin-bottom: 1.25rem;
}

.analytics-consent-badge-icon {
  font-size: 1.9rem;
  line-height: 1;
  transform: translateY(1px);
}

/* ── Titel & Frage ── */
.analytics-consent-title {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary-dark);
  text-align: center;
}

.analytics-consent-question {
  margin: 0 0 1.25rem;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--primary-dark);
  text-align: center;
  max-width: 32ch;
}

/* ── Feature-Panel ── */
.analytics-consent-features {
  list-style: none;
  margin: 0;
  padding: 0.375rem 1rem;
  width: 100%;
  background: var(--bg-accent);
  border: 1px solid #dbe9f7;
  border-radius: 12px;
}

.analytics-consent-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.7rem 0;
  text-align: center;
}

.analytics-consent-feature + .analytics-consent-feature {
  border-top: 1px solid rgba(18, 41, 65, 0.08);
}

.analytics-consent-feature-icon {
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(18, 41, 65, 0.12);
}

.analytics-consent-feature-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--primary-dark);
}

/* ── Buttons ── */
.analytics-consent-actions {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
}

.modal-content--analytics-consent .modal-actions {
  margin-top: 1.5rem;
  justify-content: center;
}

.analytics-consent-btn {
  flex: 0 0 auto;
  min-width: 130px;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 9px;
}

.modal-content--analytics-consent .modal-button-secondary {
  background: transparent;
  border: 1.5px solid #d4dbe3;
  color: var(--text-gray);
}

.modal-content--analytics-consent .modal-button-secondary:hover {
  background: var(--bg-light);
  border-color: #b9c4d0;
  transform: translateY(-1px);
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .modal-content--analytics-consent {
    padding: 1.75rem 1.25rem 1.25rem;
  }

  .analytics-consent-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    width: 100%;
  }

  .analytics-consent-btn {
    width: 100%;
  }
}
.sync-status-bar {
  height: 5px;
  width: 100%;
  flex-shrink: 0;
}

.sync-status-bar--fresh {
  background: linear-gradient(90deg, #34d399, #059669);
}

.sync-status-bar--stale,
.sync-status-bar--never {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.sync-status-bar--offline {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.sync-status-bar--syncing {
  background: linear-gradient(90deg, #38bdf8, #2563eb, #38bdf8);
  background-size: 200% 100%;
  animation: sync-bar-shimmer 1.4s linear infinite;
}

@keyframes sync-bar-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sync-status-bar--syncing {
    animation: none;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
  }
}
._wrap_odmxv_1 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
}

._list_odmxv_7 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

._item_odmxv_16 {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  min-height: 52px;
  padding: var(--ds-space-2);
  border-radius: var(--ds-radius-sm);
  cursor: pointer;
}

._active_odmxv_26 { background: var(--ds-surface-2); }

._icon_odmxv_28 {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--ds-radius-sm);
  background: color-mix(in srgb, var(--ds-brand) 10%, transparent);
  color: var(--ds-brand);
}
._icon_odmxv_28 svg { width: 18px; height: 18px; }

._text_odmxv_40 {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

._label_odmxv_47 {
  font-weight: 600;
  overflow-wrap: anywhere;
}

._hint_odmxv_52 {
  font-size: var(--ds-font-size-sm);
  color: var(--ds-text-muted);
}

._arrow_odmxv_57 {
  width: 16px;
  height: 16px;
  color: var(--ds-text-muted);
  opacity: 0;
}
._active_odmxv_26 ._arrow_odmxv_57 { opacity: 1; }

._empty_odmxv_65,
._shortcut_odmxv_66 {
  margin: 0;
  font-size: var(--ds-font-size-sm);
  color: var(--ds-text-muted);
}

._shortcut_odmxv_66 { display: none; }
@media (pointer: fine) {
  ._shortcut_odmxv_66 { display: block; }
}

._shortcut_odmxv_66 kbd {
  padding: 1px 6px;
  border: 1px solid var(--ds-border);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.75rem;
}
._root_vy9ss_1 {
  position: relative;
  z-index: var(--ds-z-sheet);
}

._backdrop_vy9ss_6 {
  position: fixed;
  inset: 0;
  background: rgb(8 15 25 / 0.6);
  transition: opacity var(--ds-duration) var(--ds-ease);
}
._backdrop_vy9ss_6[data-closed] { opacity: 0; }

._viewport_vy9ss_14 {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

._panel_vy9ss_22 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
  width: 100%;
  min-height: min(560px, 88dvh);
  max-height: 92dvh;
  padding: var(--ds-space-4) var(--ds-space-4) calc(var(--ds-space-4) + env(safe-area-inset-bottom));
  border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0;
  background: var(--ds-surface);
  color: var(--ds-text);
  font-family: var(--ds-font);
  box-shadow: var(--ds-shadow-md);
  overflow-y: auto;
  transition: transform 240ms var(--ds-ease), opacity var(--ds-duration) var(--ds-ease);
}
._panel_vy9ss_22[data-closed] { transform: translateY(100%); }

@media (min-width: 640px) {
  ._viewport_vy9ss_14 { align-items: center; padding: var(--ds-space-5); }
  ._panel_vy9ss_22 {
    max-width: 480px;
    min-height: 520px;
    padding: var(--ds-space-5);
    border-radius: var(--ds-radius-lg);
  }
  ._panel_vy9ss_22[data-closed] { transform: scale(0.96); opacity: 0; }
}

._top_vy9ss_51 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ds-touch);
}

._counter_vy9ss_58 {
  color: var(--ds-text-muted);
  font-size: var(--ds-font-size-sm);
  font-variant-numeric: tabular-nums;
}

._skip_vy9ss_64 {
  min-height: var(--ds-touch);
  padding: 0 var(--ds-space-3);
  border: 0;
  border-radius: var(--ds-radius-sm);
  background: none;
  color: var(--ds-text-muted);
  font-family: inherit;
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  cursor: pointer;
}
._skip_vy9ss_64:hover { background: var(--ds-surface-2); color: var(--ds-text); }

._slide_vy9ss_78 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-3);
  text-align: center;
  animation: _slide-in_vy9ss_1 260ms var(--ds-ease);
}
@keyframes _slide-in_vy9ss_1 { from { opacity: 0; transform: translateX(16px); } }
@media (prefers-reduced-motion: reduce) {
  ._slide_vy9ss_78 { animation: none; }
}

._illustration_vy9ss_93 {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: var(--ds-space-2);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--ds-brand), color-mix(in srgb, var(--ds-brand) 60%, var(--ds-accent)));
  color: #fff;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ds-brand) 35%, transparent);
}
._illustration_vy9ss_93 svg { width: 44px; height: 44px; }

._title_vy9ss_106 {
  margin: 0;
  font-size: var(--ds-font-size-xl);
  font-weight: 700;
  line-height: 1.25;
}

._text_vy9ss_113 {
  margin: 0;
  max-width: 38ch;
  color: var(--ds-text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

._action_vy9ss_121 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-2);
  margin-top: var(--ds-space-2);
}
._actionNote_vy9ss_128,
._actionError_vy9ss_129,
._actionSuccess_vy9ss_130 {
  margin: var(--ds-space-2) 0 0;
  max-width: 38ch;
  font-size: var(--ds-font-size-sm);
  line-height: 1.45;
}
._actionNote_vy9ss_128 { color: var(--ds-text-muted); }
._actionError_vy9ss_129 { margin: 0; color: var(--ds-danger); }
._actionSuccess_vy9ss_130 {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-2);
  color: var(--ds-success, var(--ds-text));
  font-weight: 600;
  text-align: left;
}
._actionSuccess_vy9ss_130 svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

._dots_vy9ss_148 {
  display: flex;
  justify-content: center;
  gap: 6px;
}

._dot_vy9ss_148 {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ds-border);
  transition: width var(--ds-duration) var(--ds-ease), background-color var(--ds-duration) var(--ds-ease);
}
._dotActive_vy9ss_161 {
  width: 24px;
  background: var(--ds-accent);
}

._actions_vy9ss_166 {
  display: flex;
  justify-content: space-between;
  gap: var(--ds-space-3);
}
._actions_vy9ss_166 > button:last-child { min-width: 140px; }

/* ── Seiten-Tipp ── */
._tip_vy9ss_174 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ds-space-2) var(--ds-space-3);
  margin-bottom: var(--ds-space-4);
  padding: var(--ds-space-3) var(--ds-space-3) var(--ds-space-3) var(--ds-space-4);
  border: 1px solid color-mix(in srgb, var(--ds-accent) 35%, var(--ds-border));
  border-radius: var(--ds-radius-md);
  background: color-mix(in srgb, var(--ds-accent) 8%, var(--ds-surface));
  color: var(--ds-text);
  font-family: var(--ds-font);
}

._tipIcon_vy9ss_188 {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ds-accent);
}

._tipText_vy9ss_195 {
  flex: 1 1 200px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}
/*
 * Shell des neuen Designs
 * < 768 px: Kopfzeile + Navigationsleiste unten
 * 768–1279 px: schmale Leiste links (Icons mit Beschriftung darunter)
 * ≥ 1280 px: breite Seitenleiste mit Unterpunkten des aktiven Bereichs
 */
._shell_nw611_7 {
  --bottom-nav-height: 64px;
  --rail-width: 104px;
  --sidebar-width: 248px;
  --ds-bottom-offset: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font);
}

/* ── Seitenleiste ── */
._sidebar_nw611_20 { display: none; }

@media (min-width: 768px) {
  ._shell_nw611_7 { --ds-bottom-offset: 0px; }

  ._sidebar_nw611_20 {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: var(--rail-width);
    padding: var(--ds-space-3) var(--ds-space-1);
    border-right: 1px solid var(--ds-border);
    background: var(--ds-surface);
    overflow-y: auto;
  }

  ._main_nw611_38 { margin-left: var(--rail-width); }
}

@media (min-width: 1280px) {
  ._sidebar_nw611_20 {
    width: var(--sidebar-width);
    padding: var(--ds-space-4) var(--ds-space-3);
  }
  ._main_nw611_38 { margin-left: var(--sidebar-width); }
}

._brand_nw611_49 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-3);
  margin-bottom: var(--ds-space-4);
  padding: var(--ds-space-2);
  color: inherit;
  text-decoration: none;
}

._logo_nw611_60 {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-brand);
  font-size: 1.25rem;
}

._brandText_nw611_71 { display: none; }
._brandText_nw611_71 strong { display: block; font-size: 1rem; line-height: 1.2; }
._brandText_nw611_71 small { color: var(--ds-text-muted); font-size: 0.75rem; }

._sideNav_nw611_75 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
  flex: 1;
}

._sideLink_nw611_82 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 56px;
  padding: var(--ds-space-2) var(--ds-space-1);
  border-radius: var(--ds-radius-md);
  color: var(--ds-text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--ds-duration) var(--ds-ease), color var(--ds-duration) var(--ds-ease);
}
._sideLink_nw611_82:hover { background: var(--ds-surface-2); color: var(--ds-text); }

._sideActive_nw611_99,
._sideActive_nw611_99:hover {
  background: color-mix(in srgb, var(--ds-brand) 10%, transparent);
  color: var(--ds-brand);
}

._sideIcon_nw611_105 { position: relative; display: grid; place-items: center; }
._sideLabel_nw611_106 { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
._sideIcon_nw611_105 svg { width: 22px; height: 22px; }

._sideSettings_nw611_109 { margin-top: var(--ds-space-3); }

._subLinks_nw611_111 { display: none; }

@media (min-width: 1280px) {
  ._brand_nw611_49 { justify-content: flex-start; }
  ._brandText_nw611_71 { display: block; }

  ._sideLink_nw611_82 {
    flex-direction: row;
    gap: var(--ds-space-3);
    min-height: var(--ds-touch);
    padding: 0 var(--ds-space-3);
    font-size: 0.9375rem;
    text-align: left;
  }

  ._subLinks_nw611_111 {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: var(--ds-space-1) 0 var(--ds-space-2) 22px;
    padding-left: var(--ds-space-4);
    border-left: 2px solid var(--ds-border);
  }

  ._subLink_nw611_111 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding: 0 var(--ds-space-3);
    border-radius: var(--ds-radius-sm);
    color: var(--ds-text-muted);
    font-size: 0.875rem;
    text-decoration: none;
  }
  ._subLink_nw611_111:hover { background: var(--ds-surface-2); color: var(--ds-text); }
  ._subActive_nw611_147, ._subActive_nw611_147:hover { color: var(--ds-brand); font-weight: 600; }
}

._dotBadge_nw611_150 {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--ds-surface);
  border-radius: 999px;
  background: var(--ds-accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

._countBadge_nw611_167 {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ds-accent);
  color: #fff;
  font-size: 0.75rem;
  line-height: 20px;
  text-align: center;
}

/* ── Hauptbereich ── */
._main_nw611_38 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: var(--ds-bottom-offset);
}

._topbar_nw611_187 {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-2);
  min-height: 56px;
  padding: var(--ds-space-1) var(--ds-space-2) var(--ds-space-1) var(--ds-space-3);
  padding-top: calc(var(--ds-space-1) + env(safe-area-inset-top));
  border-bottom: 1px solid var(--ds-border);
  background: color-mix(in srgb, var(--ds-surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
}

@media (min-width: 768px) {
  ._topbar_nw611_187 { padding-left: var(--ds-space-5); padding-right: var(--ds-space-4); }
}

._topLeft_nw611_207,
._topRight_nw611_208 {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-width: 0;
}

._mobileLogo_nw611_215 {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-brand);
  text-decoration: none;
}
@media (min-width: 768px) {
  ._mobileLogo_nw611_215 { display: none; }
}

._title_nw611_229 {
  margin: 0;
  overflow: hidden;
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

._offline_nw611_238 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ds-danger-bg);
  color: var(--ds-danger);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
._offline_nw611_238 svg { width: 14px; height: 14px; }

._searchButton_nw611_252 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  width: var(--ds-touch);
  height: var(--ds-touch);
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ds-text);
  font-family: inherit;
  cursor: pointer;
}
._searchButton_nw611_252 svg { width: 20px; height: 20px; flex-shrink: 0; }
._searchButton_nw611_252:hover { background: var(--ds-surface-2); }
._searchText_nw611_268, ._searchKbd_nw611_268 { display: none; }

@media (min-width: 1024px) {
  ._searchButton_nw611_252 {
    justify-content: flex-start;
    width: 280px;
    height: 40px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-sm);
    background: var(--ds-surface-2);
    color: var(--ds-text-muted);
  }
  ._searchText_nw611_268 { display: inline; flex: 1; text-align: left; font-size: 0.9375rem; }
  ._searchKbd_nw611_268 {
    display: inline;
    padding: 1px 6px;
    border: 1px solid var(--ds-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.75rem;
  }
}

._avatar_nw611_292 {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 2px;
  border: 0;
  border-radius: 50%;
  background: var(--ds-accent);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

._profileMenu_nw611_308 {
  z-index: 60;
  width: 260px;
  padding: var(--ds-space-1);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  color: var(--ds-text);
  font-family: var(--ds-font);
  box-shadow: var(--ds-shadow-md);
  outline: none;
  --anchor-gap: 6px;
}

._profileHead_nw611_322 {
  display: flex;
  flex-direction: column;
  padding: var(--ds-space-2) var(--ds-space-3);
}
._profileHead_nw611_322 span { color: var(--ds-text-muted); font-size: var(--ds-font-size-sm); }

._separator_nw611_329 {
  height: 1px;
  margin: var(--ds-space-1) 0;
  background: var(--ds-border);
}

._menuItem_nw611_335 {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  width: 100%;
  min-height: var(--ds-touch);
  padding: 0 var(--ds-space-3);
  border: 0;
  border-radius: var(--ds-radius-sm);
  background: none;
  color: var(--ds-text);
  font-family: inherit;
  font-size: 0.9375rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
._menuItem_nw611_335 svg { width: 18px; height: 18px; color: var(--ds-text-muted); }
._menuItem_nw611_335[data-focus] { background: var(--ds-surface-2); }
._danger_nw611_354, ._danger_nw611_354 svg { color: var(--ds-danger); }

._version_nw611_356 {
  margin: 0;
  padding: var(--ds-space-2) var(--ds-space-3) var(--ds-space-1);
  color: var(--ds-text-muted);
  font-size: 0.75rem;
}

._tabs_nw611_363 {
  padding: 0 var(--ds-space-2);
  background: var(--ds-surface);
}
@media (min-width: 768px) {
  ._tabs_nw611_363 { padding: 0 var(--ds-space-4); }
}
/* Ab 1280 px stehen die Unterpunkte in der Seitenleiste */
@media (min-width: 1280px) {
  ._tabs_nw611_363 { display: none; }
}

._content_nw611_375 {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--ds-space-4) var(--ds-space-4) var(--ds-space-5);
  box-sizing: border-box;
  min-width: 0;
}
@media (min-width: 1024px) {
  ._content_nw611_375 { padding: var(--ds-space-5) var(--ds-space-6) var(--ds-space-6); }
}

._footer_nw611_388 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2) var(--ds-space-4);
  padding: var(--ds-space-4);
  color: var(--ds-text-muted);
  font-size: 0.8125rem;
}
._footer_nw611_388 a { color: inherit; }
._footer_nw611_388 .footer-sync-btn {
  min-height: 36px;
  padding: 0 var(--ds-space-3);
  border: 1px solid var(--ds-border);
  border-radius: 999px;
  background: var(--ds-surface);
  color: var(--ds-text-muted);
  font-family: inherit;
  font-size: 0.8125rem;
  opacity: 1;
}
._footer_nw611_388 .footer-sync-btn__meta { color: var(--ds-text-muted); opacity: 1; }

/* ── Navigationsleiste unten (Handy) ── */
._bottomNav_nw611_413 {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: flex;
  height: var(--bottom-nav-height);
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: content-box;
  border-top: 1px solid var(--ds-border);
  background: color-mix(in srgb, var(--ds-surface) 95%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
}

@media (min-width: 768px) {
  ._bottomNav_nw611_413 { display: none; }
}

._bottomLink_nw611_430 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  color: var(--ds-text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

._bottomIcon_nw611_445 {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  transition: background-color var(--ds-duration) var(--ds-ease);
}
._bottomIcon_nw611_445 svg { width: 22px; height: 22px; }

._bottomLabel_nw611_456 {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

._bottomActive_nw611_463 { color: var(--ds-brand); }
._bottomActive_nw611_463 ._bottomIcon_nw611_445 { background: color-mix(in srgb, var(--ds-brand) 12%, transparent); }

/* Vollbild-Editor der Doku-Verwaltung blendet die Navigation aus */
body.hide-layout-header ._sidebar_nw611_20,
body.hide-layout-header ._topbar_nw611_187,
body.hide-layout-header ._tabs_nw611_363,
body.hide-layout-header ._footer_nw611_388,
body.hide-layout-header ._bottomNav_nw611_413 { display: none; }
body.hide-layout-header ._main_nw611_38 { margin-left: 0; padding-bottom: 0; }
body.hide-layout-header ._content_nw611_375 { max-width: none; padding: 0; }
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a3550 0%, var(--primary-dark) 100%);
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-screen p {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout-header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}

.layout-header {
  background: linear-gradient(135deg, #1a3550 0%, var(--primary-dark) 60%, #0d1f30 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(18, 41, 65, 0.25);
  border-bottom: 2px solid var(--accent-orange);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-logo {
  font-size: 2rem;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.app-logo:hover {
  transform: scale(1.1);
}

/* Header brand text */
.header-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-app-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.header-app-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.58);
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.status-badge.online {
  background-color: rgba(76, 175, 80, 0.3);
}

.status-badge.offline {
  background-color: rgba(244, 67, 54, 0.3);
}

/* Development Notice */
.dev-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  max-width: 600px;
}

.dev-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dev-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.dev-text strong {
  color: #fbbf24;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .dev-notice {
    display: none;
  }
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.8rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  box-shadow: inset 3px 0 0 transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-link.active {
  background: rgba(200, 122, 0, 0.2);
  box-shadow: inset 3px 0 0 var(--accent-orange);
  color: #ffd080;
  font-weight: 600;
}

.nav-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.feedback-link {
  background: none;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: white;
}

.nav-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0.5rem 0;
  border: none;
}

.nav-link .badge {
  background-color: var(--error-color);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #e89a3c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  overflow: hidden;
}

.user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.logout-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logout-icon {
  font-size: 1.1rem;
}

.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.layout-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 0px;
}

/* ── Footer ──────────────────────────────── */
.layout-footer {
  background: linear-gradient(135deg, #0d1f30 0%, var(--primary-dark) 100%);
  color: white;
  margin-top: auto;
  border-top: 2px solid var(--accent-orange);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.footer-brand-col {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.footer-logo {
  font-size: 2rem;
  flex-shrink: 0;
}

.footer-brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.2rem;
}

.footer-brand-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.footer-col-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.footer-links-col a:hover {
  color: var(--accent-orange);
}

.footer-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-dev-credit {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.footer-dev-credit a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: opacity 0.15s;
}

.footer-dev-credit a:hover {
  opacity: 0.8;
}

.footer-version {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  font-family: 'Courier New', monospace;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.footer-sync-btn:hover:not(:disabled) {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(200, 122, 0, 0.45);
  background: rgba(200, 122, 0, 0.08);
}

.footer-sync-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.footer-sync-btn__icon {
  font-size: 0.85rem;
  line-height: 1;
}

.footer-sync-btn__icon.is-spinning {
  display: inline-block;
  animation: spin 1s linear infinite;
}

.footer-sync-btn__meta {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
  order: 2;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 24px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #1a3550 0%, var(--primary-dark) 60%, #0d1f30 100%);
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  gap: 0;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 100;
}

.header-nav.mobile-open {
  transform: translateX(0);
}

/* ── Nav sidebar brand header ─────────────── */
.nav-header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.nav-header-brand-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-header-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.nav-header-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.nav-header-sub {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.52);
}

/* ── Nav section labels ───────────────────── */
.nav-section-label {
  padding: 0.9rem 1.25rem 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.menu-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.menu-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.close-icon {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
}

.nav-link {
  width: 100%;
  padding: 0.8rem 1.25rem;
  font-size: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.1rem;
}

.nav-link .badge {
  margin-left: auto;
}

.header-right {
  display: none;
}

.mobile-user-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.mobile-user-profile .user-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ff9500 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 8px rgba(200, 122, 0, 0.3);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-user-profile .user-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.mobile-logout-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
}

.mobile-logout-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.mobile-logout-btn .logout-icon {
  font-size: 1.25rem;
}

/* Mobile Version Display */
.mobile-version-display {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.version-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

.version-number {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .header-content {
    padding: 1rem;
  }

  .app-logo {
    font-size: 1.5rem;
  }

  .header-brand {
    display: none;
  }

  .status-badge {
    display: none;
  }

  .header-nav {
    gap: 0.35rem;
  }

  .header-nav.mobile-open {
    transform: translateX(0);
  }

  .header-nav::before {
    content: '';
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .header-nav.mobile-open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
    justify-content: flex-start;
  }

  .nav-link .badge {
    margin-left: auto;
  }

  .header-nav::-webkit-scrollbar {
    height: 4px;
  }

  .header-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }

  .header-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .app-title {
    font-size: 1.1rem;
  }

  .status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .mobile-menu-btn {
    display: block;
    order: 2;
  }

  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a3550 0%, var(--primary-dark) 60%, #0d1f30 100%);
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    gap: 0.35rem;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 100;
  }

  .header-nav.mobile-open {
    transform: translateX(0);
  }

  .header-nav::before {
    content: '';
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .header-nav.mobile-open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
    justify-content: flex-start;
  }

  .nav-link .badge {
    margin-left: auto;
  }

  .header-right {
    display: none;
  }

  .layout-main {
    padding: 1rem;
    padding-top: 0px;
  }
}

@media (max-width: 480px) {
  .app-logo {
    font-size: 1.5rem;
  }

  .header-left {
    gap: 0.5rem;
  }

  .header-brand {
    display: none;
  }

  .status-badge {
    display: none;
  }
}

.layout-content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* ── Layout & Sidebar Overhaul for Desktops (>= 1024px) ── */
@media (min-width: 1024px) {
  .layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background-color: var(--bg-light);
  }

  .layout-header-sticky {
    position: sticky;
    top: 0;
    left: 0;
    width: 290px;
    height: 100vh;
    flex-shrink: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #122941 0%, #0d1f30 100%);
    border-right: 3px solid var(--accent-orange);
    box-shadow: 4px 0 24px rgba(18, 41, 65, 0.15);
  }

  /* Reset header container */
  .layout-header {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  }

  .layout-header::-webkit-scrollbar {
    width: 6px;
  }

  .layout-header::-webkit-scrollbar-track {
    background: transparent;
  }

  .layout-header::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
  }

  .layout-header::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0;
  }

  .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .app-logo {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
  }

  .header-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
  }

  .header-app-title {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
  }

  .header-app-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
  }

  .status-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
  }

  .status-badge.online {
    background-color: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
  }

  .status-badge.offline {
    background-color: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.3);
  }

  /* Dev notice box styled inside the sidebar */
  .dev-notice {
    margin-left: 0;
    margin-top: 0.5rem;
    max-width: 100%;
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    display: flex;
    gap: 0.5rem;
  }

  .dev-icon {
    font-size: 1.1rem;
  }

  .dev-text {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  /* Navigation Links styling */
  .header-nav {
    position: relative;
    width: 100%;
    height: auto;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    overflow-y: visible;
    flex: 1;
  }

  .nav-header-brand {
    display: none !important;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.75);
    background: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    transform: translateX(4px);
  }

  .nav-link.active {
    background: rgba(200, 122, 0, 0.15) !important;
    box-shadow: inset 4px 0 0 var(--accent-orange) !important;
    color: #ffd080 !important;
    font-weight: 600;
  }

  .nav-section-label {
    padding: 1rem 0.5rem 0.4rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .menu-overlay {
    display: none !important;
  }

  /* User profile section at the bottom of the sidebar */
  .mobile-user-section {
    margin-top: auto;
    padding: 1.25rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-user-profile {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-user-profile .user-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  .mobile-user-profile .user-name {
    font-size: 0.95rem;
  }

  .mobile-logout-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    margin-top: 0.75rem;
  }

  .mobile-logout-btn:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    color: #ff8080;
  }

  /* Main & Footer Wrapper (Right side) */
  .layout-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
  }

  .layout-main {
    flex: 1;
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 1400px;
    margin: 0;
  }

  .layout-footer {
    width: 100%;
    border-top: 1px solid rgba(18, 41, 65, 0.08);
    background: #091724;
  }

  .footer-content {
    padding: 2.5rem 3rem 2rem;
    grid-template-columns: 2fr 1fr 1.5fr;
  }
}

/* DEV-Hinweis im neuen Design: schmaler Streifen unter der Kopfzeile, auch auf dem Handy */
.dev-notice.dev-notice--modern {
  display: flex;
  max-width: none;
  margin: 0;
  padding: 0.4rem 1rem;
  border-width: 0 0 1px;
  border-radius: 0;
  font-size: 0.8125rem;
  color: var(--ds-text);
}
.dev-notice--modern .dev-icon { font-size: 1rem; }
.dev-notice--modern .dev-text { color: var(--ds-text); font-size: 0.8125rem; }
.dev-notice--modern .dev-text strong { color: var(--ds-warning); }
.profile-complete-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-complete-description {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.profile-error {
  padding: 0.75rem 1rem;
  background-color: #fee;
  color: #c00;
  border-radius: 4px;
  border: 1px solid #fcc;
  font-size: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input:disabled {
  background-color: var(--background);
  cursor: not-allowed;
}

.profile-submit-button {
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.profile-submit-button:hover:not(:disabled) {
  background-color: var(--primary-dark);
}

.profile-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.forgot-password-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.forgot-password-info {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.forgot-password-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.forgot-password-form label {
  font-weight: 500;
  color: #333;
}

.forgot-password-form input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.forgot-password-form input:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.modal-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.modal-actions button[type="submit"] {
  background-color: #2196F3;
  color: white;
}

.modal-actions button[type="submit"]:hover:not(:disabled) {
  background-color: #1976D2;
}

.modal-actions .cancel-button {
  background-color: #f5f5f5;
  color: #333;
}

.modal-actions .cancel-button:hover:not(:disabled) {
  background-color: #e0e0e0;
}

.modal-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
._page_1khvf_1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font);
}

/* ── Markenfläche (ab PC) ── */
._hero_1khvf_12 { display: none; }

@media (min-width: 1024px) {
  ._page_1khvf_1 { grid-template-columns: minmax(380px, 5fr) minmax(0, 6fr); }

  ._hero_1khvf_12 {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--ds-space-6);
    padding: var(--ds-space-7);
    overflow: hidden;
    background: radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--ds-accent) 35%, transparent), transparent 45%),
      linear-gradient(160deg, var(--ds-brand) 0%, color-mix(in srgb, var(--ds-brand) 70%, var(--ds-text)) 100%);
    color: #fff;
  }
  ._hero_1khvf_12::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 48px solid color-mix(in srgb, #fff 6%, transparent);
    border-radius: 50%;
  }

  ._mobileBrand_1khvf_40 { display: none; }
}

._brand_1khvf_43,
._brandCompact_1khvf_44 {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
}

._logo_1khvf_50 {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--ds-radius-md);
  background: var(--ds-accent);
  color: #fff;
}
._logo_1khvf_50 svg { width: 26px; height: 26px; }

._brand_1khvf_43 ._logo_1khvf_50 { background: color-mix(in srgb, #fff 16%, transparent); }

._brandName_1khvf_64 {
  display: block;
  font-size: 1.125rem;
  line-height: 1.2;
}

._brandSub_1khvf_70 {
  display: block;
  font-size: var(--ds-font-size-sm);
  opacity: 0.75;
}

._heroText_1khvf_76 h2 {
  max-width: 20ch;
  hyphens: manual;
  margin: 0 0 var(--ds-space-5);
  font-size: 2rem;
  line-height: 1.2;
}

._features_1khvf_84 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
._features_1khvf_84 li {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  max-width: 40ch;
  line-height: 1.45;
  opacity: 0.92;
}

._featureIcon_1khvf_101 {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--ds-radius-sm);
  background: color-mix(in srgb, #fff 12%, transparent);
}
._featureIcon_1khvf_101 svg { width: 18px; height: 18px; }

._heroFoot_1khvf_112 {
  font-size: var(--ds-font-size-sm);
  opacity: 0.6;
}

/* ── Formular ── */
._main_1khvf_118 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-5);
  padding: calc(var(--ds-space-6) + env(safe-area-inset-top)) var(--ds-space-4) calc(var(--ds-space-4) + env(safe-area-inset-bottom));
}

._panel_1khvf_127 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  width: 100%;
  max-width: 400px;
}

._mobileBrand_1khvf_40 { margin-bottom: var(--ds-space-5); }

._title_1khvf_137 {
  margin: 0;
  font-size: var(--ds-font-size-xl);
  font-weight: 700;
}

._muted_1khvf_143 {
  margin: 0;
  color: var(--ds-text-muted);
  line-height: 1.5;
}

._form_1khvf_149 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
  margin-top: var(--ds-space-3);
}

._passwordField_1khvf_156 { position: relative; }
._passwordField_1khvf_156 input { padding-right: var(--ds-touch); }

._reveal_1khvf_159 {
  position: absolute;
  right: 0;
  top: 22px;
  display: grid;
  place-items: center;
  width: var(--ds-touch);
  height: var(--ds-touch);
  border: 0;
  background: none;
  color: var(--ds-text-muted);
  cursor: pointer;
}
._reveal_1khvf_159 svg { width: 20px; height: 20px; }

._error_1khvf_174 {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-danger-bg);
  color: var(--ds-danger);
  font-size: var(--ds-font-size-sm);
  line-height: 1.45;
}
._error_1khvf_174 svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

._progress_1khvf_187 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
}
._bar_1khvf_192 {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ds-surface-2);
}
._bar_1khvf_192 span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--ds-accent);
  transition: width 300ms var(--ds-ease);
}
._progressText_1khvf_206 {
  color: var(--ds-text-muted);
  font-size: var(--ds-font-size-sm);
}

._link_1khvf_211 {
  align-self: center;
  min-height: var(--ds-touch);
  padding: 0 var(--ds-space-3);
  border: 0;
  background: none;
  color: var(--ds-brand);
  font-family: inherit;
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  cursor: pointer;
}
._link_1khvf_211:hover { text-decoration: underline; }

._divider_1khvf_225 {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  color: var(--ds-text-muted);
  font-size: var(--ds-font-size-sm);
}
._divider_1khvf_225::before,
._divider_1khvf_225::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ds-border);
}

._hint_1khvf_240 {
  margin: 0;
  color: var(--ds-text-muted);
  font-size: var(--ds-font-size-sm);
  text-align: center;
}

._offline_1khvf_247 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
}
._offlineIcon_1khvf_252 {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ds-warning-bg);
  color: var(--ds-warning);
}
._offlineIcon_1khvf_252 svg { width: 26px; height: 26px; }

._list_1khvf_263 {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.5;
}

._footer_1khvf_272 {
  display: flex;
  gap: var(--ds-space-4);
  color: var(--ds-text-muted);
  font-size: var(--ds-font-size-sm);
}
._footer_1khvf_272 a { color: inherit; }
/* Mobile-First Login Design */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--text-gray) 100%);
  padding: 1rem;
}

.login-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(18, 41, 65, 0.3);
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.5rem;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease-in-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.login-header h1 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.login-header p {
  font-size: 1rem;
  color: var(--text-gray);
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-group input {
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--primary-dark);
  transition: all 0.2s;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(200, 122, 0, 0.1);
}

.form-group input:disabled {
  background: var(--bg-light);
  cursor: not-allowed;
}

.login-button {
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #a06000 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(200, 122, 0, 0.3);
  margin-top: 0.5rem;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 122, 0, 0.4);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-button--passkey {
  background: transparent;
  color: var(--accent-orange);
  border: 2px solid var(--accent-orange);
  box-shadow: none;
}

.forgot-password-link {
  text-align: center;
  margin-top: -0.5rem;
}

.link-button {
  background: none;
  border: none;
  color: var(--link);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
}

.link-button:hover:not(:disabled) {
  opacity: 0.8;
  text-decoration: underline;
}

.link-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.info-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-light-blue);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.badge-icon {
  font-size: 1.25rem;
}

.login-hint {
  background: var(--bg-light);
  border-left: 4px solid var(--link);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.login-hint p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text);
}

.login-hint p:first-child {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.login-hint code {
  background: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--link);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.login-footer a {
  color: var(--link);
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-weight: 500;
}

.login-footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.loading {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.1rem;
  color: var(--text);
}

/* Offline Message Styles */
.offline-container {
  max-width: 600px;
}

.offline-icon {
  animation: pulse 2s ease-in-out infinite !important;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.offline-message {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.message-box {
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid;
}

.message-box h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--primary);
}

.message-box p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.message-box ul, .message-box ol {
  margin: 0.5rem 0 0 0;
  padding-left: 1.5rem;
  line-height: 1.8;
  color: var(--text);
}

.message-box li {
  margin-bottom: 0.5rem;
}

.message-box.warning {
  background: #fff3cd;
  border-left-color: #ffc107;
}

.message-box.warning h3 {
  color: #856404;
}

.message-box.info {
  background: #e3f2fd;
  border-left-color: #2196F3;
}

.message-box.info h3 {
  color: #1565C0;
}

.message-box.steps {
  background: #f3e5f5;
  border-left-color: #9c27b0;
}

.message-box.steps h3 {
  color: #6a1b9a;
}

.connection-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.connection-status.offline {
  background: #ffebee;
  color: #c62828;
}

.connection-status.online {
  background: #e8f5e9;
  color: #2e7d32;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.status-icon {
  font-size: 1.5rem;
}

.status-text {
  font-size: 1rem;
}

/* Desktop Optimierung */
@media (min-width: 769px) {
  .login-container {
    padding: 3rem 2.5rem;
  }

  .login-icon {
    font-size: 5rem;
  }

  .login-header h1 {
    font-size: 2rem;
  }

  .login-header p {
    font-size: 1.1rem;
  }

  .form-group label {
    font-size: 1rem;
  }

  .form-group input {
    padding: 1rem;
    font-size: 1.05rem;
  }

  .login-button {
    padding: 1.125rem;
    font-size: 1.15rem;
  }

  .info-badge {
    flex-direction: row;
  }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .login-container {
    padding: 2.5rem 2rem;
  }

  .login-icon {
    font-size: 4.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .login-container,
  .login-icon {
    animation: none;
  }
}
.register-container {
  max-width: 500px !important; /* Slightly wider for the two columns */
}

.form-group.row {
  display: flex;
  gap: 15px;
  margin-bottom: 0;
}

.form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-col label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-col input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  background-color: var(--bg-color);
  color: var(--text-color);
  box-sizing: border-box;
}

.form-col input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-col input:disabled {
  background-color: var(--bg-color-alt, #f3f4f6);
  cursor: not-allowed;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .form-group.row {
    flex-direction: column;
    gap: 0;
  }
}
/* Reset Password Page Design */
.reset-password-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--text-gray) 100%);
  padding: 1rem;
}

.reset-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(18, 41, 65, 0.3);
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.5rem;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reset-header {
  text-align: center;
  margin-bottom: 2rem;
}

.reset-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease-in-out;
}

.reset-icon.error {
  animation: shake 0.5s ease-in-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.reset-header h1 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.reset-header p {
  font-size: 1rem;
  color: var(--text-gray);
  margin: 0;
}

.reset-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.reset-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reset-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.reset-form input {
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--primary-dark);
  transition: all 0.2s;
  background: white;
}

.reset-form input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(200, 122, 0, 0.1);
}

.reset-form input:disabled {
  background: var(--bg-light);
  cursor: not-allowed;
}

.reset-button {
  padding: 1rem;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  margin-top: 0.5rem;
}

.reset-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.reset-button:active:not(:disabled) {
  transform: translateY(0);
}

.reset-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.back-button {
  width: 100%;
  padding: 1rem;
  background: var(--bg-light);
  color: var(--primary-dark);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.back-button:hover {
  background: var(--border-color);
}

.reset-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.reset-footer .link-button {
  background: none;
  border: none;
  color: var(--accent-orange);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
}

.reset-footer .link-button:hover:not(:disabled) {
  opacity: 0.8;
  text-decoration: underline;
}

.reset-footer .link-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .reset-container {
    padding: 1.5rem 1rem;
  }

  .reset-header h1 {
    font-size: 1.5rem;
  }

  .reset-icon {
    font-size: 3rem;
  }
}
:root {
  /* CI-Farben */
  --primary-dark: #122941;
  --accent-orange: #C87A00;
  --bg-light: #F1F3F4;
  --bg-accent: #F0F7FD;
  --text-dark: #000;
  --text-gray: #52647C;
  
  /* Kompatibilität - Alias für bestehenden Code */
  --primary: #122941;
  --secondary: #52647C;
  --bg-light-blue: #F0F7FD;
  --text: #52647C;
  --link: #C87A00;
  --link-hover: #122941;
  
  /* Zusätzliche Farben */
  --success-color: #28a745;
  --success-dark: #2e7d32;
  --success-light: #e8f5e9;
  --error-color: #dc3545;
  --error-dark: #c62828;
  --error-light: #ffebee;
  --warning-color: #ffc107;
  --warning-dark: #856404;
  --warning-light: #fff3cd;
  --surface: #ffffff;
  --border-color: #e0e0e0;
  --border-light: #f0f0f0;
  --text-light: #666;
  --text-lighter: #999;
  
  /* UI Colors */
  --purple: #667eea;
  --purple-dark: #764ba2;
  --blue: #1976d2;
  --blue-light: #e3f2fd;
  --orange: #f57c00;
  --orange-light: #fff3e0;
  --purple-badge: #7b1fa2;
  --purple-light: #f3e5f5;
  --green: #4caf50;
  --green-dark: #388e3c;
  --red: #ff5252;
  --red-dark: #f44336;
  --pink: #f093fb;
  --pink-dark: #f5576c;
  --indigo: #4f46e5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-light);
  color: var(--text);
}

code {
  font-family: 'Courier New', Courier, monospace;
  background-color: var(--border-light);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Global Unified Page Hero Header Styling ── */
.sp-hero,
.eh-hero,
.cp-hero,
.usr-hero,
.cust-hero,
.maint-hero,
.st-hero,
.do-hero,
.eh-lb-hero,
.pm-hero,
.cat-mgmt-hero,
.dev-hero,
.device-header,
.parser-header {
  background: linear-gradient(135deg, #132a43 0%, #1c3d5a 50%, #0a1724 100%) !important;
  color: white !important;
  padding: 2.25rem 2rem !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  margin: 1.5rem 0 1.5rem 0 !important;
  box-shadow: 0 8px 32px rgba(18, 41, 65, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Ensure no negative margins spill over borders or overlap container margins */
.sp-hero,
.eh-hero,
.cp-hero,
.usr-hero,
.cust-hero,
.maint-hero,
.st-hero,
.do-hero,
.eh-lb-hero,
.pm-hero,
.cat-mgmt-hero,
.dev-hero,
.device-header,
.parser-header {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Ensure all child content is placed above decorative styles */
.sp-hero > *,
.eh-hero > *,
.cp-hero > *,
.usr-hero > *,
.cust-hero > *,
.maint-hero > *,
.st-hero > *,
.do-hero > *,
.eh-lb-hero > *,
.pm-hero > *,
.cat-mgmt-hero > *,
.dev-hero > *,
.device-header > *,
.parser-header > * {
  position: relative;
  z-index: 1;
}

/* Add subtle decorative background circles to all unified heroes */
.sp-hero::after,
.eh-hero::after,
.cp-hero::after,
.usr-hero::after,
.cust-hero::after,
.maint-hero::after,
.st-hero::after,
.do-hero::after,
.eh-lb-hero::after,
.pm-hero::after,
.cat-mgmt-hero::after,
.dev-hero::after,
.device-header::after,
.parser-header::after {
  content: '' !important;
  position: absolute !important;
  top: -80px !important;
  right: -50px !important;
  width: 200px !important;
  height: 200px !important;
  background: radial-gradient(circle, rgba(200, 122, 0, 0.12) 0%, rgba(200, 122, 0, 0) 70%) !important;
  pointer-events: none !important;
  border-radius: 50% !important;
  z-index: 0 !important;
}

/* Hide all custom decorative elements, before/after pseudo-elements from individual pages */
.sp-hero::before,
.eh-hero::before,
.cp-hero::before,
.usr-hero::before,
.cust-hero::before,
.maint-hero::before,
.st-hero::before,
.st-hero-deco-1,
.st-hero-deco-2,
.do-hero::before,
.eh-lb-hero::before,
.eh-lb-hero-deco,
.eh-hero-deco,
.pm-hero::before,
.cat-mgmt-hero::before,
.dev-hero::before,
.device-header::before,
.parser-header::before {
  display: none !important;
  content: none !important;
}

/* Adjust layout margins and padding for mobile screens */
@media (max-width: 768px) {
  .sp-hero,
  .eh-hero,
  .cp-hero,
  .usr-hero,
  .cust-hero,
  .maint-hero,
  .st-hero,
  .do-hero,
  .eh-lb-hero,
  .pm-hero,
  .cat-mgmt-hero,
  .dev-hero,
  .device-header,
  .parser-header {
    padding: 1.5rem 1.1rem !important;
    margin: 1rem 0 !important;
    border-radius: 12px !important;
  }
}
/*
 * Design 2.0 – Design-Tokens (siehe docs/DESIGN-KONZEPT.md)
 * Die --ds-*-Variablen stehen immer zur Verfügung (die neuen Bausteine brauchen sie);
 * die Grundstile für body gelten nur im neuen Design (html[data-design="modern"]).
 * Das alte Design (data-design="classic") bleibt unverändert und wird nicht weiterentwickelt.
 * Neue Styles verwenden ausschließlich diese Variablen – keine festen Hex-Farben.
 * [data-ds-scope="light|dark"] erzwingt ein Farbschema für einen Teilbereich (z. B. Vorschau).
 */
:root,
[data-ds-scope] {
  /* Marke */
  --ds-brand: #122941;
  --ds-brand-hover: #1c3a5c;
  --ds-accent: #C87A00;
  --ds-accent-hover: #a86700;

  /* Neutral */
  --ds-bg: #f5f7fa;
  --ds-surface: #ffffff;
  --ds-surface-2: #eef1f5;
  --ds-border: #d9dee6;
  --ds-text: #0f1b2a;
  --ds-text-muted: #52647c;
  --ds-text-on-brand: #ffffff;

  /* Status */
  --ds-success: #1e8e4a;
  --ds-success-bg: #e6f4ec;
  --ds-warning: #b26a00;
  --ds-warning-bg: #fff4e0;
  --ds-danger: #c62828;
  --ds-danger-bg: #fdecec;
  --ds-text-on-danger: #ffffff;
  --ds-info: #1f6fb2;
  --ds-info-bg: #e7f1fa;

  /* Abstände (4-px-Raster) */
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 24px;
  --ds-space-6: 32px;
  --ds-space-7: 48px;

  /* Radien, Schatten, Schrift */
  --ds-radius-sm: 8px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 16px;
  --ds-shadow-sm: 0 1px 2px rgb(15 27 42 / 0.06), 0 1px 3px rgb(15 27 42 / 0.08);
  --ds-shadow-md: 0 4px 12px rgb(15 27 42 / 0.10);
  --ds-font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ds-touch: 44px;
  --ds-font-size-sm: 0.875rem;
  --ds-font-size-md: 1rem;
  --ds-font-size-lg: 1.25rem;
  --ds-font-size-xl: 1.5rem;
  --ds-duration: 160ms;
  --ds-ease: cubic-bezier(0.2, 0, 0, 1);
  --ds-z-sheet: 1000;
  --ds-z-toast: 1100;

  color-scheme: light;
}

html[data-design="modern"][data-theme="dark"],
html[data-ds-preview="dark"],
[data-ds-scope="dark"] {
  --ds-brand: #7fb0e6;
  --ds-brand-hover: #9cc3ee;
  --ds-accent: #f0a53a;
  --ds-accent-hover: #f5b95e;

  --ds-bg: #0d141d;
  --ds-surface: #16202c;
  --ds-surface-2: #1d2937;
  --ds-border: #2c3a4b;
  --ds-text: #e8edf3;
  --ds-text-muted: #9aa9bb;
  --ds-text-on-brand: #0d141d;

  --ds-success: #4cc27d;
  --ds-success-bg: #12301f;
  --ds-warning: #f0a53a;
  --ds-warning-bg: #33250f;
  --ds-danger: #ef6b6b;
  --ds-danger-bg: #3a1717;
  --ds-text-on-danger: #0d141d;
  --ds-info: #6fb3ec;
  --ds-info-bg: #122a3f;

  --ds-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --ds-shadow-md: 0 4px 12px rgb(0 0 0 / 0.5);

  color-scheme: dark;
}

[data-ds-scope] {
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font);
}

@media (prefers-reduced-motion: reduce) {
  :root { --ds-duration: 0ms; }
}

/* Grundlagen des neuen Designs */
html[data-design="modern"] h1,
html[data-design="modern"] h2,
html[data-design="modern"] h3 {
  hyphens: auto;
  overflow-wrap: break-word;
}

html[data-design="modern"] body {
  font-family: var(--ds-font);
  background: var(--ds-bg);
  color: var(--ds-text);
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}

/* Eingabefelder, Menüs und Dialoge haben eigene Fokus-Darstellungen */
html[data-design="modern"] :focus-visible:not(input, select, textarea, [role="menu"], [role="dialog"], [role="listbox"]) {
  outline: 2px solid var(--ds-accent);
  outline-offset: 2px;
}
/*
 * Brücke für die bestehenden Seiten im neuen Design (Etappe 5).
 * Alle Regeln gelten nur mit html[data-design="modern"] – das alte Design bleibt unverändert.
 * Neue Seiten/Ansichten verwenden die Bausteine aus src/components/ui statt dieser Regeln.
 */

/* ── Kopfbereiche der Seiten: kompakt statt großer Banner ── */
html[data-design="modern"] main :is([class$="-hero"], .analytics-header, .doc-generator-header, .manage-templates-header, .doc-archive-header, .pw-header) {
  margin: 0 0 var(--ds-space-4) !important;
  padding: var(--ds-space-4) !important;
  border-radius: var(--ds-radius-md) !important;
  box-shadow: var(--ds-shadow-sm) !important;
}
html[data-design="modern"] main :is([class$="-hero"], .analytics-header, .doc-generator-header, .manage-templates-header, .doc-archive-header, .pw-header)::before,
html[data-design="modern"] main :is([class$="-hero"], .analytics-header, .doc-generator-header, .manage-templates-header, .doc-archive-header, .pw-header)::after {
  display: none !important;
}
html[data-design="modern"] main :is([class$="-hero"], .analytics-header, .doc-generator-header, .manage-templates-header, .doc-archive-header, .pw-header, .page-header) h1 {
  margin: 0 !important;
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
}
html[data-design="modern"] main [class$="-hero"] p {
  font-size: var(--ds-font-size-sm) !important;
}
html[data-design="modern"] main [class$="-hero-icon"] {
  font-size: 1.5rem !important;
  width: auto !important;
  height: auto !important;
}
html[data-design="modern"] main [class$="-hero-top"] {
  flex-wrap: wrap;
  gap: var(--ds-space-3) !important;
}

/* ── Dialoge: wie das neue Sheet – Handy von unten, ab Tablet zentriert ── */
html[data-design="modern"] :is(.modal-overlay, .usr-overlay, .pm-overlay, .pm-modal-overlay, .nf-modal-overlay, .cust-overlay, .pw-modal-overlay, .pdf-cat-overlay, .part-popup-overlay, .maint-overlay, .fb-overlay, .ehc-overlay, .ecm-overlay, .docsugg-overlay, .docnotif-overlay) {
  background: rgb(8 15 25 / 0.5) !important;
  backdrop-filter: none !important;
}
html[data-design="modern"] :is(.modal-overlay, .usr-overlay, .pm-overlay, .pm-modal-overlay, .nf-modal-overlay, .cust-overlay, .pw-modal-overlay, .pdf-cat-overlay, .part-popup-overlay, .maint-overlay, .fb-overlay, .ehc-overlay, .ecm-overlay, .docsugg-overlay, .docnotif-overlay) > :first-child {
  border-radius: var(--ds-radius-lg) !important;
  font-family: var(--ds-font);
  box-shadow: var(--ds-shadow-md) !important;
}

@media (max-width: 639px) {
  html[data-design="modern"] :is(.modal-overlay, .usr-overlay, .pm-overlay, .pm-modal-overlay, .nf-modal-overlay, .cust-overlay, .pw-modal-overlay, .pdf-cat-overlay, .part-popup-overlay, .maint-overlay, .fb-overlay, .ehc-overlay, .ecm-overlay, .docsugg-overlay, .docnotif-overlay) {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  html[data-design="modern"] :is(.modal-overlay, .usr-overlay, .pm-overlay, .pm-modal-overlay, .nf-modal-overlay, .cust-overlay, .pw-modal-overlay, .pdf-cat-overlay, .part-popup-overlay, .maint-overlay, .fb-overlay, .ehc-overlay, .ecm-overlay, .docsugg-overlay, .docnotif-overlay) > :first-child {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92dvh !important;
    margin: 0 !important;
    border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0 !important;
    padding-bottom: env(safe-area-inset-bottom);
    overflow-y: auto;
    animation: ds-sheet-up 220ms var(--ds-ease);
  }
}
@keyframes ds-sheet-up { from { transform: translateY(40px); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) {
  html[data-design="modern"] :is(.modal-overlay, .usr-overlay, .pm-overlay) > :first-child { animation: none; }
}

/* Standard-Dialog (Modal/useModal): linksbündig, Knöpfe wie die neuen Buttons */
html[data-design="modern"] .modal-content {
  background: var(--ds-surface) !important;
  color: var(--ds-text);
  text-align: left !important;
  padding: var(--ds-space-5) !important;
}
html[data-design="modern"] .modal-icon {
  width: 40px !important;
  height: 40px !important;
  margin: 0 0 var(--ds-space-3) !important;
  font-size: 1.1rem !important;
}
html[data-design="modern"] .modal-title {
  margin: 0 0 var(--ds-space-2) !important;
  font-size: var(--ds-font-size-lg) !important;
  text-align: left !important;
  color: var(--ds-text) !important;
}
html[data-design="modern"] .modal-body {
  text-align: left !important;
  color: var(--ds-text-muted) !important;
  line-height: 1.5;
  white-space: pre-line;
}
html[data-design="modern"] .modal-actions {
  gap: var(--ds-space-2) !important;
  justify-content: flex-end !important;
  flex-wrap: wrap;
}
@media (max-width: 639px) {
  html[data-design="modern"] .modal-actions { flex-direction: column-reverse !important; }
  html[data-design="modern"] .modal-actions > * { width: 100%; }
}
html[data-design="modern"] .modal-button {
  min-height: var(--ds-touch) !important;
  padding: 0 var(--ds-space-4) !important;
  border-radius: var(--ds-radius-sm) !important;
  font-family: var(--ds-font) !important;
  font-size: var(--ds-font-size-md) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transform: none !important;
}
html[data-design="modern"] .modal-button-primary { background: var(--ds-brand) !important; color: var(--ds-text-on-brand) !important; border: 1px solid transparent !important; }
html[data-design="modern"] .modal-button-secondary { background: var(--ds-surface) !important; color: var(--ds-text) !important; border: 1px solid var(--ds-border) !important; }
html[data-design="modern"] .modal-button-danger { background: var(--ds-danger) !important; color: var(--ds-text-on-danger) !important; border: 1px solid transparent !important; }

/* ── Hilfsklassen für Zellen der neuen Tabellen auf alten Seiten ── */
.pm-modern-name {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
}
.pm-modern-thumb {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
  border: 1px solid var(--ds-border);
  border-radius: 6px;
  background: #fff;
}
.maint-modern-flags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pm-modern-check {
  width: 22px;
  height: 22px;
  accent-color: var(--ds-brand);
  cursor: pointer;
}

/* ── Umbrüche statt seitlichem Scrollen (gefunden mit npm run screenshots) ── */
html[data-design="modern"] main :is(.analytics-panel-header, .analytics-filter-pills, .pm-tabs-wrap, .pm-actions-bottom, [class$="-hero-top"], [class$="-hero-actions"]) {
  flex-wrap: wrap !important;
}
html[data-design="modern"] main :is(.analytics-panel, .card, .settings-card) {
  min-width: 0;
  max-width: 100%;
}
html[data-design="modern"] main :is(.info-row .value, .user-email) {
  min-width: 0;
  overflow-wrap: anywhere;
}
html[data-design="modern"] main :is(.pm-tab-btn, .primary-button, .pm-btn-primary) {
  white-space: normal;
}

/* Kennzahl-Chips im Kopfbereich nehmen auf dem Handy zu viel Platz – der Inhalt ist wichtiger */
@media (max-width: 639px) {
  html[data-design="modern"] main [class$="-hero"] :is([class*="-stats"], [class*="-hero-bottom"], [class*="-stat-chip"]) {
    display: none !important;
  }
}

/* Einfache Seiten-Knöpfe (Versandwege, Sammelkörbe) wie die neuen Buttons */
html[data-design="modern"] main .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-touch);
  padding: 0 var(--ds-space-4);
  border: 1px solid transparent;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-brand);
  color: var(--ds-text-on-brand);
  font-family: var(--ds-font);
  font-size: var(--ds-font-size-sm);
  font-weight: 600;
  cursor: pointer;
}
html[data-design="modern"] main .primary-button:disabled { opacity: 0.55; cursor: not-allowed; }
html[data-design="modern"] main .page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  margin-bottom: var(--ds-space-4);
}
/*
 * ERZEUGT von scripts/gen-dark-bridge.mjs – nicht von Hand bearbeiten.
 * Dunkelmodus für fest eingestellte helle Farben in älteren Stylesheets (1126 Angaben).
 */

/* components/AnalyticsConsentModal.css */
html:where([data-design="modern"][data-theme="dark"]) .analytics-consent-features {
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-consent-feature-icon {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-content--analytics-consent .modal-button-secondary {
  border: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-content--analytics-consent .modal-button-secondary:hover {
  border-color: var(--ds-border);
}

/* components/CustomerSelectionModal.css */
html:where([data-design="modern"][data-theme="dark"]) .customer-selection-desc {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .customer-selection-new-hint {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
  color: color-mix(in srgb, #1d4ed8 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .customer-selection-error {
  background: var(--ds-surface-2);
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .customer-selection-item {
  border: 2px solid var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .customer-selection-item:hover {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .customer-selection-item.selected {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .customer-selection-item.is-new.selected {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .customer-selection-name {
  color: var(--ds-text);
}

/* components/DocNotificationModal.css */
html:where([data-design="modern"][data-theme="dark"]) .docnotif-modal {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .docnotif-trigger-created {
  background: color-mix(in srgb, #dcfce7 14%, var(--ds-surface));
  color: color-mix(in srgb, #15803d 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .docnotif-trigger-updated {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
  color: color-mix(in srgb, #b45309 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .docnotif-close:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .docnotif-message {
  background: color-mix(in srgb, #fffbeb 14%, var(--ds-surface));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .docnotif-message p {
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .docnotif-description {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .docnotif-content-pre {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .docnotif-changes-text {
  color: var(--ds-text-muted);
  background: color-mix(in srgb, #fefce8 14%, var(--ds-surface));
  border: 1px solid var(--ds-border);
}

/* components/DocSuggestionModal.css */
html:where([data-design="modern"][data-theme="dark"]) .docsugg-modal {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .docsugg-field input,
html:where([data-design="modern"][data-theme="dark"]) .docsugg-field textarea {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .docsugg-error {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .docsugg-btn-cancel {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .docsugg-success-circle {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .docsugg-required {
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .docsugg-error {
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .docsugg-btn-cancel {
  background: var(--ds-surface);
}

/* components/EasyhelpChatModal.css */
html:where([data-design="modern"][data-theme="dark"]) .ehc-offline-banner {
  color: color-mix(in srgb, #b45309 45%, var(--ds-text));
}

/* components/FeedbackModal.css */
html:where([data-design="modern"][data-theme="dark"]) .fb-modal {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .fb-type-chip {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .fb-textarea {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .fb-cancel-btn {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .feedback-info {
  color: var(--ds-text-muted);
  background: color-mix(in srgb, #e3f2fd 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .feedback-form label {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .feedback-form select,
html:where([data-design="modern"][data-theme="dark"]) .feedback-form textarea {
  border: 2px solid var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .feedback-form .error-message {
  color: color-mix(in srgb, #f44336 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .modal-actions .cancel-button {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-actions .cancel-button:hover:not(:disabled) {
  background: var(--ds-surface-2);
}

/* components/ForgotPasswordModal.css */
html:where([data-design="modern"][data-theme="dark"]) .forgot-password-info {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .forgot-password-form label {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .forgot-password-form input {
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-actions .cancel-button {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-actions .cancel-button:hover:not(:disabled) {
  background: var(--ds-surface-2);
}

/* components/Layout.css */
html:where([data-design="modern"][data-theme="dark"]) .spinner {
  border-top-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .hamburger span {
  background: var(--ds-surface);
}

/* components/Modal.css */
html:where([data-design="modern"][data-theme="dark"]) .modal-content {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-success .modal-icon {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-error .modal-icon {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-warning .modal-icon {
  color: color-mix(in srgb, #856404 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .modal-confirm .modal-icon {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-button-secondary {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-button-secondary:hover {
  background: var(--ds-surface-2);
}

/* components/PartDocumentationModal.css */
html:where([data-design="modern"][data-theme="dark"]) .modal-content {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-header {
  border-bottom: 1px solid var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-header h2 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-close-btn {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-close-btn:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .documentation-item {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .documentation-name {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .documentation-pages {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .documentation-description {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .btn-edit-doc {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .documentation-form {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .documentation-form h3 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .form-group-doc label {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .form-group-doc input,
html:where([data-design="modern"][data-theme="dark"]) .form-group-doc select,
html:where([data-design="modern"][data-theme="dark"]) .form-group-doc textarea {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .form-group-doc input:focus,
html:where([data-design="modern"][data-theme="dark"]) .form-group-doc select:focus,
html:where([data-design="modern"][data-theme="dark"]) .form-group-doc textarea:focus {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .documentation-upload-info {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .page-type-options label:hover {
  background: var(--ds-surface);
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .documentation-upload-info {
  color: var(--ds-text-muted);
}

/* components/ProfileCompleteModal.css */
html:where([data-design="modern"][data-theme="dark"]) .profile-error {
  background: color-mix(in srgb, #fee 14%, var(--ds-surface));
  color: color-mix(in srgb, #c00 45%, var(--ds-text));
  border: 1px solid var(--ds-border);
}

/* components/RichTextEditor.css */
html:where([data-design="modern"][data-theme="dark"]) .rte-wrapper {
  border: 1.5px solid var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-toolbar {
  background: var(--ds-surface-2);
  border-bottom: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-toolbar-divider {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-btn {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-btn:hover:not(:disabled) {
  background: var(--ds-surface-2);
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-btn-active {
  background: color-mix(in srgb, #d0e4f7 14%, var(--ds-surface));
  color: color-mix(in srgb, #1a5276 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-style-select {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-color-palette {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-link-popup {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-link-input {
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-link-cancel {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-link-cancel:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-table-popup {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-table-popup-row {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-table-num {
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-table-actions {
  border-top: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-table-actions button {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-table-actions button:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-table-del {
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-wiki-popup {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-wiki-popup-title {
  color: var(--ds-text);
  border-bottom: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-wiki-result-item:hover {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-wiki-result-name {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-wiki-result-badge--doc {
  background: color-mix(in srgb, #e0f2fe 14%, var(--ds-surface));
  color: color-mix(in srgb, #0369a1 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-wiki-result-badge--news {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-wiki-result-meta {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area a[href^="/documentation?docId="],
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content a[href^="/documentation?docId="] {
  color: color-mix(in srgb, #0e7490 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content a[href^="/documentation?docId="]:hover {
  color: color-mix(in srgb, #0a5c72 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area a[href^="/news-feed?feedId="],
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content a[href^="/news-feed?feedId="] {
  color: color-mix(in srgb, #b45309 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content a[href^="/news-feed?feedId="]:hover {
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror h1 {
  color: var(--ds-text);
  border-bottom: 2px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror h2 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror h3 {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror h4 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror a {
  color: color-mix(in srgb, #2563eb 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror a:hover {
  color: color-mix(in srgb, #1d4ed8 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror blockquote {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-bq-palette {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror code {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  color: color-mix(in srgb, #be185d 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror hr {
  border-top: 2px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror td {
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror tr:nth-child(even) td {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area .ProseMirror tr:hover td {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-statusbar {
  background: var(--ds-surface-2);
  border-top: 1px solid var(--ds-border);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content h1 {
  color: var(--ds-text);
  border-bottom: 2px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content h2 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content h3 {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content h4 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content blockquote {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content code {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  color: color-mix(in srgb, #be185d 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content hr {
  border-top: 2px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content a {
  color: color-mix(in srgb, #2563eb 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content td {
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-display-content tr:nth-child(even) td {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-wrapper-word {
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .word-page-container {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .word-header-input-container label,
html:where([data-design="modern"][data-theme="dark"]) .word-footer-input-container label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .word-header-input-container textarea,
html:where([data-design="modern"][data-theme="dark"]) .word-footer-input-container textarea {
  border: 1px dashed var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .word-header-input-container textarea:focus,
html:where([data-design="modern"][data-theme="dark"]) .word-footer-input-container textarea:focus {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .word-page-sheet {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-editor-area-word .ProseMirror br.page-break::after {
  background: var(--ds-surface);
  color: color-mix(in srgb, #3b82f6 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-word-display-container {
  background: var(--ds-surface-2);
  border: 1.5px dashed var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-word-display-sheet {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-templates-popup {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-templates-popup button {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .rte-templates-popup button:hover {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
  border-color: var(--ds-border);
  color: color-mix(in srgb, #1a5276 45%, var(--ds-text));
}

/* pages/AnalyticsPage.css */
html:where([data-design="modern"][data-theme="dark"]) .analytics-kpi-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-kpi-icon.blue {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
  color: color-mix(in srgb, #2563eb 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-kpi-icon.green {
  background: var(--ds-surface);
  color: color-mix(in srgb, #16a34a 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-kpi-icon.amber {
  background: color-mix(in srgb, #fffbeb 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-kpi-icon.purple {
  background: var(--ds-surface-2);
  color: color-mix(in srgb, #9333ea 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-kpi-value {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-kpi-label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-panel {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-panel-header h2 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-pill {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .audit-item {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .audit-item:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .audit-item-icon {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .audit-user {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .audit-action {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .audit-details {
  color: var(--ds-text-muted);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-order-filters {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-order-filters-label {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-order-filters label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .analytics-order-filters select {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .top-part-item {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .top-part-name {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .top-part-number {
  color: var(--ds-text-muted);
}

/* pages/CartPage.css */
html:where([data-design="modern"][data-theme="dark"]) .cp-empty-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cp-items {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cp-qty-btn {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cp-btn-back {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cp-btn-clear {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cp-summary {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cp-offline {
  background: color-mix(in srgb, #fff3cd 14%, var(--ds-surface));
  border: 1px solid var(--ds-border);
  color: color-mix(in srgb, #856404 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .cp-split-info {
  background: color-mix(in srgb, #e0f2fe 14%, var(--ds-surface));
  color: color-mix(in srgb, #075985 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .cp-ticket-select-item {
  border-bottom: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .cp-ticket-select-hint {
  color: color-mix(in srgb, #b91c1c 45%, var(--ds-text));
}

/* pages/CategoryManagementPage.css */
html:where([data-design="modern"][data-theme="dark"]) .cat-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cat-subcat-item {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .subcat-icon-btn.del {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .cat-btn-delete {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .cat-empty {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cat-form-modal {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cat-form-group input,
html:where([data-design="modern"][data-theme="dark"]) .cat-form-group textarea,
html:where([data-design="modern"][data-theme="dark"]) .cat-form-group select {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cat-form-cancel {
  background: var(--ds-surface);
}

/* pages/CustomerManagementPage.css */
html:where([data-design="modern"][data-theme="dark"]) .cust-offline-bar {
  background: color-mix(in srgb, #fff8e1 14%, var(--ds-surface));
  color: color-mix(in srgb, #795416 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .cust-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cust-type-badge.category {
  background: var(--ds-surface);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .cust-btn-delete {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .cust-empty {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cust-modal {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cust-field input,
html:where([data-design="modern"][data-theme="dark"]) .cust-field select {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cust-cancel-btn {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .cust-btn-subclients {
  background: color-mix(in srgb, #e3f2fd 14%, var(--ds-surface));
  color: color-mix(in srgb, #1565c0 45%, var(--ds-text));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .cust-btn-subclients:hover:not(:disabled) {
  background: color-mix(in srgb, #bbdefb 14%, var(--ds-surface));
  color: color-mix(in srgb, #0d47a1 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .subclient-form-box {
  background: var(--ds-surface);
  border: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .subclient-children-list {
  border-left: 2px dashed var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .subclient-level-badge.root {
  background: color-mix(in srgb, #e0f2fe 14%, var(--ds-surface));
  color: color-mix(in srgb, #0369a1 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .subclient-level-badge.child {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .subclient-btn-add-child {
  border: 1px solid var(--ds-border);
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
  color: color-mix(in srgb, #1d4ed8 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .subclient-btn-add-child:hover {
  background: color-mix(in srgb, #dbeafe 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .subclient-item {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .subclient-item:hover {
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .subclient-logo {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .subclient-btn-icon {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .subclient-btn-icon.edit:hover {
  background: color-mix(in srgb, #e3f2fd 14%, var(--ds-surface));
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .subclient-btn-icon.delete:hover {
  background: color-mix(in srgb, #ffebee 14%, var(--ds-surface));
}

/* pages/DeviceManagementPage.css */
html:where([data-design="modern"][data-theme="dark"]) .dev-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .dev-type-badge.type-kassenwaage {
  background: color-mix(in srgb, #e3f2fd 14%, var(--ds-surface));
  color: color-mix(in srgb, #1565c0 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .dev-type-badge.type-thekenwaage {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .dev-type-badge.type-drucker {
  background: color-mix(in srgb, #f3e5f5 14%, var(--ds-surface));
  color: color-mix(in srgb, #7b1fa2 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .dev-btn-delete {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .dev-empty {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .dev-modal {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .dev-field input,
html:where([data-design="modern"][data-theme="dark"]) .dev-field select,
html:where([data-design="modern"][data-theme="dark"]) .dev-field textarea {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .dev-cancel-btn {
  background: var(--ds-surface);
}

/* pages/DeviceSelectionPage.css */
html:where([data-design="modern"][data-theme="dark"]) .device-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .error-container {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .btn-secondary {
  background: var(--ds-surface);
}

/* pages/DispatcherOrderPage.css */
html:where([data-design="modern"][data-theme="dark"]) .do-parts {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .do-part-img {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .do-cart {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .do-cart-clear {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .do-cart-clear:hover {
  background: color-mix(in srgb, #ffe8e8 14%, var(--ds-surface));
  color: color-mix(in srgb, #f44336 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .do-cart-total {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .parts-selection {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .part-image {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .order-summary {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .clear-button:hover {
  background: var(--ds-surface-2);
}

/* pages/DocGeneratorPage.css */
html:where([data-design="modern"][data-theme="dark"]) .doc-generator-header h1 {
  color: color-mix(in srgb, #1e3a8a 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-generator-header p {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-generator-list-view {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-list-header {
  border-bottom: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-list-header h2 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-toggle-completed-btn {
  background: var(--ds-surface-2);
  color: var(--ds-text);
  border: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-toggle-completed-btn:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-toggle-completed-btn.active {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
  color: color-mix(in srgb, #1d4ed8 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .gen-loader {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-table th {
  background: var(--ds-surface);
  color: var(--ds-text-muted);
  border-bottom: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-table td {
  border-bottom: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-table tr:hover td {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-td-name strong {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-td-desc {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-author-line {
  color: var(--ds-text-muted);
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-td-cust {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-td-sub {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-type-badge.type-word {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
  color: color-mix(in srgb, #1e40af 45%, var(--ds-text));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-type-badge.type-pdf {
  background: var(--ds-surface-2);
  color: color-mix(in srgb, #991b1b 45%, var(--ds-text));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-type-badge.type-text {
  background: var(--ds-surface);
  color: var(--ds-text-muted);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .btn-action-edit {
  background: var(--ds-surface-2);
  color: var(--ds-text);
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .btn-action-edit:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .btn-action-delete {
  background: var(--ds-surface-2);
  color: color-mix(in srgb, #be123c 45%, var(--ds-text));
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .btn-action-delete:hover {
  background: color-mix(in srgb, #ffe4e6 14%, var(--ds-surface));
  color: color-mix(in srgb, #9f1239 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-generator-form-panel {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-generator-form-panel h2 {
  color: var(--ds-text);
  border-bottom: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-form-group label {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-input,
html:where([data-design="modern"][data-theme="dark"]) .gen-textarea {
  color: var(--ds-text);
  background: var(--ds-surface);
  border: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-input-disabled {
  background: var(--ds-surface);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-level-selector {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-level-btn {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-level-btn:hover {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-level-btn.active {
  background: var(--ds-surface);
  color: color-mix(in srgb, #1e3a8a 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .gen-type-card {
  background: var(--ds-surface);
  border: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-type-card:hover {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-type-card.active {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .gen-type-card-title {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-type-card.active .gen-type-card-title {
  color: color-mix(in srgb, #1e40af 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .gen-pdf-group {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-file-input {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-submit-btn:disabled {
  background: color-mix(in srgb, #cbd5e1 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .gen-cancel-btn {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
  border: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-cancel-btn:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-generator-editor-panel {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-generator-editor-panel h2 {
  color: var(--ds-text);
  border-bottom: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-pdf-preview-pane {
  background: var(--ds-surface);
  border: 2px dashed var(--ds-border);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-pdf-preview-pane h3 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .selected-pdf-badge {
  background: color-mix(in srgb, #dbeafe 14%, var(--ds-surface));
  color: color-mix(in srgb, #1e40af 45%, var(--ds-text));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-versions-section {
  border-top: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-versions-section h3 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .versions-help-text {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .version-item {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .version-item:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .version-date {
  color: color-mix(in srgb, #1e3a8a 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .version-editor {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .version-desc {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .version-restore-btn {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .version-restore-btn:hover:not(:disabled) {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
  color: color-mix(in srgb, #1e40af 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .toggle-sidebar-btn {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .toggle-sidebar-btn:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-net-banner.degraded {
  background: color-mix(in srgb, #fffbeb 14%, var(--ds-surface));
  border: 1px solid var(--ds-border);
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-net-banner.offline {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  color: color-mix(in srgb, #991b1b 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-draft-banner {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  color: color-mix(in srgb, #1e40af 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .btn-discard-draft {
  background: var(--ds-surface);
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .btn-discard-draft:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-draft-btn {
  background: var(--ds-surface-2);
  color: var(--ds-text);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .gen-draft-btn:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}

/* pages/DocTemplateManagementPage.css */
html:where([data-design="modern"][data-theme="dark"]) .btn-delete:hover {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .text-error {
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}

/* pages/DocumentArchivePage.css */
html:where([data-design="modern"][data-theme="dark"]) .archive-toolbar {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .archive-search-wrap {
  background: var(--ds-surface);
  border: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .archive-search-wrap:focus-within {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .archive-doc-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .archive-doc-card:hover {
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .archive-doc-icon {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .archive-doc-title {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .archive-doc-meta {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .archive-doc-snippet {
  color: var(--ds-text-muted);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}

/* pages/DocumentationPage.css */
html:where([data-design="modern"][data-theme="dark"]) .doc-search-input-wrap {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .att-pdf-cat-documentation {
  background: color-mix(in srgb, #dbeeff 14%, var(--ds-surface));
  color: color-mix(in srgb, #1a5c99 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .att-pdf-cat-service_report {
  background: color-mix(in srgb, #fff0d4 14%, var(--ds-surface));
  color: color-mix(in srgb, #8a5200 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .att-pdf-cat-instruction {
  background: color-mix(in srgb, #e0f7e9 14%, var(--ds-surface));
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .att-pdf-cat-other {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .att-btn-delete:hover {
  background: color-mix(in srgb, #ffeaea 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .att-viewer-box {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-breadcrumb {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-card-customer:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-card-device:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-card-customer-level {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-card-customer-level:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-card-category-combined {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-card-category-combined:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-card.doc-card-empty:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-card-subclient-folder:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-subclient-badge {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
  color: color-mix(in srgb, #1d4ed8 45%, var(--ds-text));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-suggestions-btn {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-suggestions-panel {
  background: color-mix(in srgb, #fffbeb 14%, var(--ds-surface));
  border: 1.5px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-suggestions-reload:hover {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-suggestion-item {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-suggestion-badge-in_review {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
  color: color-mix(in srgb, #b45309 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-suggestion-badge-done {
  background: color-mix(in srgb, #dcfce7 14%, var(--ds-surface));
  color: color-mix(in srgb, #15803d 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-suggestion-badge-rejected {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #b91c1c 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-suggestion-desc {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-suggestion-note {
  color: color-mix(in srgb, #78350f 45%, var(--ds-text));
  background: color-mix(in srgb, #fffbeb 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-sugg-review {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
  color: color-mix(in srgb, #b45309 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-sugg-done {
  background: color-mix(in srgb, #dcfce7 14%, var(--ds-surface));
  color: color-mix(in srgb, #15803d 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-sugg-reject {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #b91c1c 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-form-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-item {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-item-top:hover {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-notif-badge-created {
  background: color-mix(in srgb, #dcfce7 14%, var(--ds-surface));
  color: color-mix(in srgb, #15803d 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-notif-badge-updated {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
  color: color-mix(in srgb, #b45309 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-notif-message {
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
  background: color-mix(in srgb, #fffbeb 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-notif-confirmed {
  color: color-mix(in srgb, #15803d 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-notif-pending {
  color: color-mix(in srgb, #b45309 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-notif-chip-confirmed {
  background: color-mix(in srgb, #dcfce7 14%, var(--ds-surface));
  color: color-mix(in srgb, #15803d 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-notif-chip-pending {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #b91c1c 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-changelog-action-created {
  background: color-mix(in srgb, #dcfce7 14%, var(--ds-surface));
  color: color-mix(in srgb, #15803d 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-changelog-action-updated {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
  color: color-mix(in srgb, #b45309 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-changelog-action-deleted {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #b91c1c 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-changelog-field-chip {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-type-btn {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-pdf-clear:hover {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-form-att-item {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-form-att-cat {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-form-att-remove:hover {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .pdf-cat-popup {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-type-badge-pdf {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #b91c1c 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-type-badge-legacy {
  background: color-mix(in srgb, #f3e8ff 14%, var(--ds-surface));
  color: color-mix(in srgb, #7c3aed 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-text-pre {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-part-chip {
  background: color-mix(in srgb, #eaf1fb 14%, var(--ds-surface));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-part-chip:hover {
  background: color-mix(in srgb, #d0e4f7 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-part-chip-remove {
  background: color-mix(in srgb, #b8d0ee 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-parts-manager-close:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-parts-search-input {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-parts-search-results {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-parts-search-add.already-linked {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .part-popup-box {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .part-popup-close:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .part-popup-desc {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .part-popup-cancel:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-status-pending {
  background: color-mix(in srgb, #ffe8cc 14%, var(--ds-surface));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-status-draft {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-status-approved {
  background: color-mix(in srgb, #dcfce7 14%, var(--ds-surface));
  color: color-mix(in srgb, #15803d 45%, var(--ds-text));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-status-rejected {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #b91c1c 45%, var(--ds-text));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-status-select {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-versions-panel {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-version-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-version-card-date {
  color: color-mix(in srgb, #1e3a8a 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .doc-version-card-author {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-version-card-desc {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-version-restore-action-btn {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .doc-version-restore-action-btn:hover:not(:disabled) {
  background: color-mix(in srgb, #eff6ff 14%, var(--ds-surface));
  color: color-mix(in srgb, #1e40af 45%, var(--ds-text));
}

/* pages/EasyhelpPage.css */
html:where([data-design="modern"][data-theme="dark"]) .eh-btn-secondary {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-btn-secondary:hover:not(:disabled) {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-form-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-form-title {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-required {
  color: color-mix(in srgb, #ef4444 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-select {
  border: 1px solid var(--ds-border);
  color: var(--ds-text);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-select:disabled {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-loading-inline {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-type-btn {
  border: 2px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-eichgesetz-box {
  background: color-mix(in srgb, #fefce8 14%, var(--ds-surface));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-eichgesetz-title {
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-eichgesetz-desc {
  color: color-mix(in srgb, #78350f 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-radio-label {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-textarea {
  border: 1px solid var(--ds-border);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-textarea:disabled {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-char-hint.hint-warn {
  color: color-mix(in srgb, #ef4444 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-section-title {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-count-badge {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-loading {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-empty {
  background: var(--ds-surface);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-empty h3 {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-case-card {
  background: var(--ds-surface);
  border-left: 4px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .status-open {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .status-inprogress {
  background: color-mix(in srgb, #dbeafe 14%, var(--ds-surface));
  color: color-mix(in srgb, #1e40af 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .status-closed {
  background: color-mix(in srgb, #dcfce7 14%, var(--ds-surface));
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-eich-badge {
  background: color-mix(in srgb, #fef9c3 14%, var(--ds-surface));
  color: color-mix(in srgb, #854d0e 45%, var(--ds-text));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-case-type-badge {
  color: var(--ds-text-muted);
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-case-value {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-case-desc {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-case-footer {
  border-top: 1px solid var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-case-author {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-escalated-badge {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #991b1b 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lock-info {
  background: color-mix(in srgb, #dbeafe 14%, var(--ds-surface));
  color: color-mix(in srgb, #1e40af 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lock-mine {
  background: color-mix(in srgb, #dcfce7 14%, var(--ds-surface));
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-waiting-info {
  background: color-mix(in srgb, #fef9c3 14%, var(--ds-surface));
  color: color-mix(in srgb, #854d0e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-case-actions {
  border-top: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-btn-unlock {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-btn-unlock:hover:not(:disabled) {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-btn-abort {
  color: color-mix(in srgb, #ef4444 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-btn-delete {
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-file-dropzone {
  border: 2px dashed var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-dropzone-text {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-dropzone-sub {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-file-preview-card {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-preview-fallback-name {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-escalation-info-banner {
  color: color-mix(in srgb, #1e3a8a 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-badge-pending {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-doku-badge.created {
  color: color-mix(in srgb, #059669 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-doku-badge.final {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-btn-doku-final-close-sm {
  color: color-mix(in srgb, #ef4444 45%, var(--ds-text));
}

/* pages/HomePage.css */
html:where([data-design="modern"][data-theme="dark"]) .hp-search-wrap {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-search-wrap:focus-within {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-search-clear {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-search-clear:hover {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-breadcrumb {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-result-group {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-badge-docs {
  background: color-mix(in srgb, #e8f4fd 14%, var(--ds-surface));
  color: color-mix(in srgb, #1a6fa8 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .hp-badge-news {
  background: var(--ds-surface);
  color: color-mix(in srgb, #16a34a 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .hp-badge-easyhelp {
  background: var(--ds-surface-2);
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .hp-no-results {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .mode-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-stepper-container {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-step.completed .hp-step-number {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-step.completed .hp-step-label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-back-btn-modern:hover {
  background: var(--ds-surface-2);
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .image-download-progress-banner {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .progress-info strong {
  color: color-mix(in srgb, #1565c0 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .progress-info p {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .progress-percentage {
  color: color-mix(in srgb, #1565c0 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .hp-compact-banner.doc-banner {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-compact-banner.news-banner {
  background: var(--ds-surface-2);
  border: 2px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-compact-banner.proposal-banner {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-doc-proposals-widget {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-doc-proposals-widget-title .widget-icon {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .hp-doc-proposals-widget-title h3 {
  color: color-mix(in srgb, #78350f 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .hp-doc-proposals-widget-title p {
  color: color-mix(in srgb, #b45309 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .hp-doc-proposal-chip {
  background: color-mix(in srgb, #fffbeb 14%, var(--ds-surface));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-doc-proposal-chip:hover {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .hp-doc-proposal-chip .chip-badge.suggestion {
  background: color-mix(in srgb, #dbeafe 14%, var(--ds-surface));
  color: color-mix(in srgb, #1e40af 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .hp-doc-proposal-chip .chip-badge.pending {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .hp-doc-proposal-chip .chip-title {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-doc-proposal-chip .chip-desc {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .hp-doc-proposal-chip .chip-meta {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .news-notif-banner-text strong {
  color: color-mix(in srgb, #78350f 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .news-notif-banner-text span {
  color: color-mix(in srgb, #b45309 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .news-notif-banner-badge {
  background: color-mix(in srgb, #fcd34d 14%, var(--ds-surface));
  color: color-mix(in srgb, #78350f 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .data-warning-banner {
  border: 2px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .warning-text strong {
  color: color-mix(in srgb, #856404 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .warning-text p {
  color: color-mix(in srgb, #856404 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .close-warning-btn {
  color: color-mix(in srgb, #856404 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .category-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .category-card.werkzeuge:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .category-icon.customer-logo {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .seed-prompt {
  background: var(--ds-surface);
}

/* pages/LeaderboardPage.css */
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-legend-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-legend-card h3 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-legend-text {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-row {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-row--top1 {
  border-color: var(--ds-border);
  background: color-mix(in srgb, #fffbeb 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-row--top2 {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-row--top3 {
  background: color-mix(in srgb, #fff7ed 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-name {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-row--top2 .eh-lb-points-value {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-row--top3 .eh-lb-points-value {
  color: color-mix(in srgb, #b45309 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-adj-input {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-adj-btn {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-adj-btn--plus:hover:not(:disabled) {
  background: color-mix(in srgb, #dcfce7 14%, var(--ds-surface));
  color: color-mix(in srgb, #15803d 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-adj-btn--minus:hover:not(:disabled) {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #b91c1c 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-adj-input {
  border: 1px solid var(--ds-border);
  color: var(--ds-text);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .eh-lb-adj-input:disabled {
  background: var(--ds-surface);
}

/* pages/LoginPage.css */
html:where([data-design="modern"][data-theme="dark"]) .login-container {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .form-group input {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .login-hint code {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .message-box.warning {
  background: color-mix(in srgb, #fff3cd 14%, var(--ds-surface));
  border-left-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .message-box.warning h3 {
  color: color-mix(in srgb, #856404 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .message-box.info {
  background: color-mix(in srgb, #e3f2fd 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .message-box.info h3 {
  color: color-mix(in srgb, #1565C0 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .message-box.steps {
  background: color-mix(in srgb, #f3e5f5 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .message-box.steps h3 {
  color: color-mix(in srgb, #6a1b9a 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .connection-status.offline {
  background: color-mix(in srgb, #ffebee 14%, var(--ds-surface));
  color: color-mix(in srgb, #c62828 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .connection-status.online {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}

/* pages/MaintenancePage.css */
html:where([data-design="modern"][data-theme="dark"]) .maint-toolbar {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .maint-search-input {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .maint-table-wrap {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .maint-status-badge.ok {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .maint-status-badge.missing {
  background: color-mix(in srgb, #fce8e6 14%, var(--ds-surface));
  color: color-mix(in srgb, #c62828 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .maint-badge-missing {
  color: color-mix(in srgb, #c62828 45%, var(--ds-text));
  background: color-mix(in srgb, #fce8e6 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .maint-icon-btn.edit {
  background: var(--ds-surface-2);
  color: color-mix(in srgb, #1565c0 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .maint-empty {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .maint-modal {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .maint-field input,
html:where([data-design="modern"][data-theme="dark"]) .maint-field textarea {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .maint-check-item:hover {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .maint-check-item.checked {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .maint-cancel-btn {
  background: var(--ds-surface);
}

/* pages/ManagementPage.css */
html:where([data-design="modern"][data-theme="dark"]) .management-content {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .item-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .form-modal {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .form-header {
  border-bottom: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .form-group input,
html:where([data-design="modern"][data-theme="dark"]) .form-group textarea,
html:where([data-design="modern"][data-theme="dark"]) .form-group select {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .device-checkboxes {
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .form-actions {
  border-top: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .cancel-btn:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .search-box .search-input {
  border: 2px solid var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .spinner {
  border: 4px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .loading-state p {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .user-card {
  background: var(--ds-surface);
  border: 2px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .user-card.current-user {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .user-card-header {
  border-bottom: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .name-input {
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .permission-label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .meta-item {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .meta-label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .user-card-footer {
  background: var(--ds-surface);
  border-top: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .user-card-footer .secondary-button {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .delete-button {
  background: var(--ds-surface);
  color: color-mix(in srgb, #ff5252 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .badge-readonly {
  background: color-mix(in srgb, #e3f2fd 14%, var(--ds-surface));
  color: color-mix(in srgb, #1976d2 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .badge-technician {
  background: color-mix(in srgb, #fff3e0 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .badge-key-technician {
  background: color-mix(in srgb, #f3e5f5 14%, var(--ds-surface));
  color: color-mix(in srgb, #7b1fa2 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .badge-admin {
  background: color-mix(in srgb, #ffebee 14%, var(--ds-surface));
  color: color-mix(in srgb, #c62828 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .badge-self {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .permission-select {
  border: 2px solid var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .permission-select.badge-readonly {
  background: color-mix(in srgb, #e3f2fd 14%, var(--ds-surface));
  color: color-mix(in srgb, #1976d2 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .permission-select.badge-technician {
  background: color-mix(in srgb, #fff3e0 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .permission-select.badge-key-technician {
  background: color-mix(in srgb, #f3e5f5 14%, var(--ds-surface));
  color: color-mix(in srgb, #7b1fa2 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .permission-select.badge-admin {
  background: color-mix(in srgb, #ffebee 14%, var(--ds-surface));
  color: color-mix(in srgb, #c62828 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .form-group label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .form-group input {
  border: 2px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .secondary-button {
  background: var(--ds-surface);
  border: 2px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .secondary-button:hover {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .status-toggle {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .status-toggle.inactive {
  color: color-mix(in srgb, #ff5252 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .badge-inactive {
  background: color-mix(in srgb, #ffebee 14%, var(--ds-surface));
  color: color-mix(in srgb, #c62828 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .btn-bulk {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .btn-bulk:hover {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .btn-bulk-cancel:hover {
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .bulk-section {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .bulk-section h4 {
  color: color-mix(in srgb, #4f46e5 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .checkbox-item:hover {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .form-actions {
  border-top: 2px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .push-indicator.push-on {
  color: var(--ds-text-muted);
}

/* pages/NewsFeedPage.css */
html:where([data-design="modern"][data-theme="dark"]) .nf-sidebar {
  background: var(--ds-surface);
  border-right: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-sidebar-loading,
html:where([data-design="modern"][data-theme="dark"]) .nf-sidebar-empty {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-customer-item:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-customer-name {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-welcome {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-welcome h2 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-welcome p {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-feed-title {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-filter-tabs {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-filter-tab {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-filter-tab.active {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-btn-secondary {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-btn-secondary:hover:not(:disabled) {
  background: color-mix(in srgb, #cbd5e1 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-form-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-form-title {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-info-banner {
  color: color-mix(in srgb, #7a4500 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-input {
  border: 1.5px solid var(--ds-border);
  color: var(--ds-text);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-textarea {
  border: 1.5px solid var(--ds-border);
  color: var(--ds-text);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-form-att-item {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-form-att-name {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-form-att-remove:hover {
  color: color-mix(in srgb, #ef4444 45%, var(--ds-text));
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-form-att-add {
  border: 1.5px dashed var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-loading,
html:where([data-design="modern"][data-theme="dark"]) .nf-empty {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-feed-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-feed-card.status-pending {
  background: color-mix(in srgb, #fffbeb 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-feed-card.status-rejected {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-card-summary:hover {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-card-title {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .status-published {
  background: color-mix(in srgb, #dcfce7 14%, var(--ds-surface));
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .status-pending {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .status-rejected {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #991b1b 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-action-btn {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-action-btn:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-btn-approve {
  background: var(--ds-surface);
  color: var(--ds-text-muted);
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-btn-approve:hover {
  background: color-mix(in srgb, #dcfce7 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-btn-reject {
  background: var(--ds-surface-2);
  color: color-mix(in srgb, #991b1b 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-btn-reject:hover {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-action-delete {
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-action-delete:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-btn-copylink {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-btn-copylink.copied {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-card-author {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-rejection-note {
  background: var(--ds-surface-2);
  color: color-mix(in srgb, #991b1b 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-rich-content {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-rich-content h1,
html:where([data-design="modern"][data-theme="dark"]) .nf-rich-content h2,
html:where([data-design="modern"][data-theme="dark"]) .nf-rich-content h3 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-rich-content blockquote {
  border-left: 3px solid var(--ds-border);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-rich-content td,
html:where([data-design="modern"][data-theme="dark"]) .nf-rich-content th {
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-rich-content th {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-attachments {
  border-top: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-attach-item {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-attach-delete:hover {
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-pagination {
  border-top: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-page-info {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-modal {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-modal h3 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-attach-viewer {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-attach-viewer-header {
  border-bottom: 1px solid var(--ds-border);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-attach-viewer-open-tab {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-attach-viewer-open-tab:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-attach-viewer-close {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-attach-viewer-close:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-sidebar {
  border-bottom: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-customer-item {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-form-notify {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notify-checkbox-label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notify-message {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-changelog-wrap {
  border-top: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-changelog-btn {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-changelog-btn:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-changelog-count {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-changelog-panel {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-changelog-entry {
  border-left: 3px solid var(--ds-border);
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-changelog-action-created {
  color: color-mix(in srgb, #059669 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-changelog-action-deleted {
  color: color-mix(in srgb, #dc2626 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-changelog-by {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-changelog-field-chip {
  background: color-mix(in srgb, #e0e7ff 14%, var(--ds-surface));
  color: color-mix(in srgb, #3730a3 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-status-btn {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-status-btn:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-status-panel {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-entry {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-badge-created {
  background: color-mix(in srgb, #d1fae5 14%, var(--ds-surface));
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-badge-updated {
  background: color-mix(in srgb, #dbeafe 14%, var(--ds-surface));
  color: color-mix(in srgb, #1e40af 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-by {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-message {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-confirmed {
  color: color-mix(in srgb, #059669 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-user-label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-chip-confirmed {
  background: color-mix(in srgb, #d1fae5 14%, var(--ds-surface));
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-chip-pending {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-banner {
  background: color-mix(in srgb, #fffbeb 14%, var(--ds-surface));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-banner-title {
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-banner-dismiss-all {
  border: 1px solid var(--ds-border);
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-banner-dismiss-all:hover {
  background: color-mix(in srgb, #fde68a 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-banner-item {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-banner-item-content {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-banner-customer {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-banner-by {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-notif-banner-msg {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-search-input-wrap {
  background: var(--ds-surface);
  border: 2px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-search-input {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-search-clear:hover {
  color: color-mix(in srgb, #ef4444 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-search-count {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-search-content-preview {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-comments-btn {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-comments-btn:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-comment-body {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-comment-author {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-comment-delete:hover {
  color: color-mix(in srgb, #ef4444 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .nf-comment-text {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .nf-comment-input {
  border: 1px solid var(--ds-border);
  color: var(--ds-text);
  background: var(--ds-surface);
}

/* pages/PartManagementPage.css */
html:where([data-design="modern"][data-theme="dark"]) .pm-table-wrap {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-table tbody tr.pm-row-selected {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-table tbody tr.pm-row-selected:hover {
  background: color-mix(in srgb, #fff3e0 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .pm-rewe-badge {
  color: color-mix(in srgb, #D40511 45%, var(--ds-text));
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-icon-btn.edit {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-icon-btn.del {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-empty {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-modal {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-field input,
html:where([data-design="modern"][data-theme="dark"]) .pm-field textarea,
html:where([data-design="modern"][data-theme="dark"]) .pm-field select {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-check-item:hover {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-check-item.pm-checked {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-rewe-toggle {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-rewe-mark {
  color: color-mix(in srgb, #D40511 45%, var(--ds-text));
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-cancel-btn {
  background: var(--ds-surface);
}

/* pages/PasswordDatabasePage.css */
html:where([data-design="modern"][data-theme="dark"]) .pw-page {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-header h1 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-back-btn {
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-back-btn:hover {
  background: var(--ds-surface);
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-search-box {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-card-header {
  border-bottom: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-card-header h2 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-card-actions button {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-card-actions button:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-card-actions .pw-delete:hover {
  color: color-mix(in srgb, #ef4444 45%, var(--ds-text));
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .pw-label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-value {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-link {
  color: color-mix(in srgb, #3b82f6 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .pw-icon-btn:hover,
html:where([data-design="modern"][data-theme="dark"]) .pw-copy-btn:hover {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-password-container {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-notes {
  border-top: 1px solid var(--ds-border);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-modal {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-modal h2 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-form-group label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-form-group input,
html:where([data-design="modern"][data-theme="dark"]) .pw-form-group textarea {
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-btn-secondary {
  background: var(--ds-surface);
  color: var(--ds-text-muted);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-btn-secondary:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-loading {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .pw-empty {
  color: var(--ds-text-muted);
  background: var(--ds-surface);
}

/* pages/PermissionsManagementPage.css */
html:where([data-design="modern"][data-theme="dark"]) .pm-btn-secondary:hover {
  background: color-mix(in srgb, #cbd5e1 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .pm-btn-link {
  color: color-mix(in srgb, #ef4444 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .pm-custom-check {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-checkbox-label.disabled .pm-custom-check {
  background: var(--ds-surface-2);
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .role-readonly {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .role-technician {
  background: color-mix(in srgb, #dbeafe 14%, var(--ds-surface));
  color: color-mix(in srgb, #1e40af 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .role-dispatcher {
  background: color-mix(in srgb, #fae8ff 14%, var(--ds-surface));
  color: color-mix(in srgb, #86198f 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .role-key-tech {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .role-admin {
  background: color-mix(in srgb, #fee2e2 14%, var(--ds-surface));
  color: color-mix(in srgb, #991b1b 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .custom-badge {
  background: color-mix(in srgb, #fef3c7 14%, var(--ds-surface));
  color: color-mix(in srgb, #92400e 45%, var(--ds-text));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-mod-card:hover {
  border-color: var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .pm-mod-card.custom-active {
  background: color-mix(in srgb, #fffbe6 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .pm-mod-card.in-role {
  background: var(--ds-surface-2);
}

/* pages/ResetPasswordPage.css */
html:where([data-design="modern"][data-theme="dark"]) .reset-container {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .reset-form input {
  background: var(--ds-surface);
}

/* pages/SearchPage.css */
html:where([data-design="modern"][data-theme="dark"]) .search-controls {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .category-group {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .part-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .view-docs-button {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .view-docs-button:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .no-results {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .parser-result {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .image-modal-content {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .image-modal-controls button {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .image-modal-body {
  background: var(--ds-surface);
}

/* pages/SettingsPage.css */
html:where([data-design="modern"][data-theme="dark"]) .settings-tab {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .settings-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .customer-settings-item {
  border: 2px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .offline-warning {
  background: color-mix(in srgb, #fff3cd 14%, var(--ds-surface));
  color: color-mix(in srgb, #856404 45%, var(--ds-text));
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .backup-status {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .status-badge.online {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .status-badge.offline {
  background: color-mix(in srgb, #ffebee 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .password-change-form input {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .push-status-description {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .push-warning {
  color: color-mix(in srgb, #e65100 45%, var(--ds-text));
}

/* pages/ShippingMethodsPage.css */
html:where([data-design="modern"][data-theme="dark"]) .page-header h1 {
  color: var(--ds-text);
}
html:where([data-design="modern"][data-theme="dark"]) .empty-state {
  background: var(--ds-surface);
  color: var(--ds-text-muted);
  border: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .table-responsive {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .data-table th,
html:where([data-design="modern"][data-theme="dark"]) .data-table td {
  border-bottom: 1px solid var(--ds-border);
}
html:where([data-design="modern"][data-theme="dark"]) .data-table th {
  background: var(--ds-surface);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .data-table tr:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .tag {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .icon-button:hover {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .modal-content {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .form-group label {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .form-group input {
  border: 1px solid var(--ds-border);
}

/* pages/UserManagementPage.css */
html:where([data-design="modern"][data-theme="dark"]) .usr-offline {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-card {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-inactive-badge {
  background: color-mix(in srgb, #fce4e4 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .usr-perm-badge.perm-admin {
  background: color-mix(in srgb, #fff3e0 14%, var(--ds-surface));
  color: color-mix(in srgb, #b74d00 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .usr-perm-badge.perm-key-technician {
  background: color-mix(in srgb, #e8f0fe 14%, var(--ds-surface));
  color: color-mix(in srgb, #1a56a8 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .usr-perm-badge.perm-dispatcher {
  background: color-mix(in srgb, #e0f2f1 14%, var(--ds-surface));
  color: color-mix(in srgb, #00695c 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .usr-perm-badge.perm-technician {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-select {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-status-btn.active {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-status-btn.inactive {
  background: color-mix(in srgb, #fce4e4 14%, var(--ds-surface));
}
html:where([data-design="modern"][data-theme="dark"]) .usr-push-on {
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-btn-delete {
  background: var(--ds-surface-2);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-empty {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-modal {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-field input,
html:where([data-design="modern"][data-theme="dark"]) .usr-field select {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-cancel-btn {
  background: var(--ds-surface);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-eval-btn {
  background: color-mix(in srgb, #e8f0fe 14%, var(--ds-surface));
  color: color-mix(in srgb, #1a56a8 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .usr-eval-status-msg.success {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-eval-status-msg.error {
  background: color-mix(in srgb, #fce4e4 14%, var(--ds-surface));
  color: color-mix(in srgb, #c62828 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .usr-consent-badge.consent-1 {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-consent-badge.consent-0 {
  background: color-mix(in srgb, #ffebee 14%, var(--ds-surface));
  color: color-mix(in srgb, #c62828 45%, var(--ds-text));
}
html:where([data-design="modern"][data-theme="dark"]) .usr-consent-badge.consent-null {
  background: var(--ds-surface-2);
  color: var(--ds-text-muted);
}
html:where([data-design="modern"][data-theme="dark"]) .usr-stats-section {
  background: var(--ds-surface);
}
/*
 * Dunkelmodus für ältere Markup-Teile im neuen Design.
 * Die Design-Tokens (--ds-*) haben eigene Dunkelwerte; hier werden die alten Variablen darauf umgelenkt
 * und einzelne fest eingestellte Farben überschrieben. Gilt nur für html[data-design="modern"][data-theme="dark"].
 */
html[data-design="modern"][data-theme="dark"] {
  /* Mittleres Blau: als Fläche mit weißer Schrift und als Schrift auf dunklem Grund lesbar */
  --primary-dark: color-mix(in srgb, var(--ds-brand) 70%, black);
  --primary: color-mix(in srgb, var(--ds-brand) 70%, black);
  --secondary: var(--ds-text-muted);
  --text-dark: var(--ds-text);
  --text-gray: var(--ds-text-muted);
  --text: var(--ds-text-muted);
  --text-light: var(--ds-text-muted);
  --text-lighter: var(--ds-text-muted);
  --text-primary: var(--ds-text);
  --text-secondary: var(--ds-text-muted);
  --link: var(--ds-accent);
  --link-hover: var(--ds-text);

  --bg-light: var(--ds-bg);
  --bg-accent: var(--ds-surface-2);
  --bg-light-blue: var(--ds-surface-2);
  --surface: var(--ds-surface);
  --border-color: var(--ds-border);
  --border-light: var(--ds-border);

  --success-light: var(--ds-success-bg);
  --error-light: var(--ds-danger-bg);
  --warning-light: var(--ds-warning-bg);
  --warning-dark: var(--ds-warning);
  --blue-light: var(--ds-info-bg);
  --orange-light: var(--ds-warning-bg);
  --purple-light: var(--ds-surface-2);
}

/* Fest eingestellte helle Farben in älteren Seiten */
html[data-design="modern"][data-theme="dark"] main .page-header h1 { color: var(--ds-text); }
html[data-design="modern"][data-theme="dark"] .settings-page .form-group :is(input, select, textarea) {
  background: var(--ds-surface) !important;
  color: var(--ds-text) !important;
  border-color: var(--ds-border) !important;
}
