:root {
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
}

.app-shell {
  --safe-area-top: var(--native-safe-area-top, env(safe-area-inset-top, 0px));
  --safe-area-right: var(--native-safe-area-right, env(safe-area-inset-right, 0px));
  --safe-area-bottom: var(--native-safe-area-bottom, env(safe-area-inset-bottom, 0px));
  --safe-area-left: var(--native-safe-area-left, env(safe-area-inset-left, 0px));
  --mobile-bar-core-height: 64px;
  --mobile-bottom-nav-core-height: 68px;
  --mobile-bar-total-height: calc(var(--mobile-bar-core-height) + var(--safe-area-top));
  --mobile-bottom-nav-offset: calc(var(--mobile-bottom-nav-core-height) + var(--safe-area-bottom));
  display: flex;
  height: 100dvh;
  min-height: 100dvh;
  min-width: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--color-bg-void);
}

.app-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  background: var(--color-bg-deep);
}

.app-content {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

.sidebar {
  width: 260px;
  min-height: 100dvh;
  background: var(--shell-sidebar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--shell-sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
  transition: width var(--transition-default), background var(--transition-default), border-color var(--transition-default);
}

.shell-mobile-bar,
.shell-drawer,
.shell-drawer__backdrop,
.bottom-nav {
  display: none;
}

.sidebar__header {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 0.5rem;
  border-bottom: 1px solid var(--shell-sidebar-border);
  flex-shrink: 0;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.sidebar__brand-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-warning);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar__brand-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar__brand-text {
  font-size: 1rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__nav {
  flex: 1;
  min-height: 0;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar__section-label {
  padding: 1rem 0.75rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.sidebar__nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid transparent;
}

.sidebar__nav-item:hover {
  color: var(--color-text-primary);
  background: var(--surface-overlay-05);
}

.sidebar__nav-item.active {
  color: var(--color-primary-light);
  background: var(--color-primary-soft-14);
  border-color: var(--color-primary-soft-22);
}

.sidebar__nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar__nav-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar__footer {
  padding: 1rem;
  border-top: 1px solid var(--shell-sidebar-border);
  flex-shrink: 0;
}

.theme-switcher {
  position: relative;
  margin-bottom: 0.9rem;
}

.theme-switcher__trigger {
  list-style: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--surface-overlay-04);
  color: var(--color-text-primary);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.theme-switcher__trigger::-webkit-details-marker {
  display: none;
}

.theme-switcher__trigger::marker {
  display: none;
}

@media (hover: hover) {
  .theme-switcher__trigger:hover {
    background: var(--surface-overlay-06);
    border-color: var(--color-border-focus);
    transform: translateY(-1px);
  }
}

.theme-switcher[open] .theme-switcher__trigger {
  background: var(--surface-overlay-06);
  border-color: var(--color-border-focus);
}

.theme-switcher__trigger-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.theme-switcher__trigger-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.theme-switcher__trigger-note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-switcher__preview,
.theme-switcher__palette-preview {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.theme-switcher__preview-swatch,
.theme-switcher__palette-preview span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.theme-switcher__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.75rem);
  width: 300px;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg-lighter);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 300;
}

.theme-switcher__group + .theme-switcher__group {
  margin-top: 1rem;
}

.theme-switcher__group-title {
  margin: 0 0 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.theme-switcher__segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.theme-switcher__segmented-btn,
.theme-switcher__palette {
  border: 1px solid var(--color-border);
  background: var(--surface-overlay-03);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-switcher__segmented-btn {
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.theme-switcher__segmented-btn:hover,
.theme-switcher__palette:hover {
  color: var(--color-text-primary);
  background: var(--surface-overlay-05);
}

.theme-switcher__segmented-btn.is-active,
.theme-switcher__palette.is-active {
  border-color: var(--color-primary-soft-30);
  background: var(--color-primary-soft-08);
  color: var(--color-primary-light);
  box-shadow: 0 0 0 1px var(--color-primary-soft-10);
}

.theme-switcher__palette-grid {
  display: grid;
  gap: 0.6rem;
}

.theme-switcher__palette {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-align: left;
}

.theme-switcher__palette-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.theme-switcher__palette-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: inherit;
}

.theme-switcher__palette-description {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.sidebar__user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-on-brand);
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--color-primary-soft-30);
}

.sidebar__user-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.sidebar__user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.sidebar__user-name--link:hover {
  color: var(--color-primary-light);
}

.sidebar__user-logout {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sidebar__user-logout:hover {
  color: var(--color-accent);
}

.sidebar__footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar__footer-link {
  font-size: 0.8rem;
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sidebar__footer-link:hover {
  color: var(--color-secondary);
}

.shell-mobile-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--mobile-bar-total-height);
  box-sizing: border-box;
  padding:
    max(0px, calc(var(--safe-area-top) - 0.35rem))
    calc(1rem + var(--safe-area-right))
    0
    calc(1rem + var(--safe-area-left));
  align-items: center;
  gap: 0.9rem;
  background: var(--color-bg-deep);
  border-bottom: 1px solid var(--shell-sidebar-border);
  z-index: 260;
}

.shell-mobile-bar::before {
  content: none;
}

.shell-mobile-bar__menu,
.shell-drawer__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--surface-overlay-04);
  color: var(--color-text-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.shell-mobile-bar__menu--more {
  display: none;
}

@media (hover: hover) {
  .shell-mobile-bar__menu:hover,
  .shell-drawer__close:hover {
    background: var(--surface-overlay-06);
    border-color: var(--color-border-focus);
    transform: translateY(-1px);
  }
}

.shell-mobile-bar__menu svg,
.shell-drawer__close svg {
  width: 18px;
  height: 18px;
}

.shell-mobile-bar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
  text-decoration: none;
}

.shell-mobile-bar__brand-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-mobile-bar__profile {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--color-on-brand);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 6px var(--color-primary-soft-30);
  flex-shrink: 0;
}

.shell-drawer {
  position: fixed;
  inset: 0;
  z-index: 320;
  pointer-events: none;
}

.shell-drawer__backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: var(--overlay-backdrop);
  cursor: pointer;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-default);
}

.shell-drawer__panel {
  width: min(400px, calc(100vw - 24px));
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 0;
  padding-top: var(--safe-area-top);
  padding-right: var(--safe-area-right);
  padding-bottom: var(--safe-area-bottom);
  padding-left: var(--safe-area-left);
  background: var(--shell-sidebar-bg);
  border-right: 1px solid var(--shell-sidebar-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(-105%);
  transition: transform var(--transition-default);
  position: relative;
  z-index: 320;
}

.shell-drawer.is-open .shell-drawer__panel {
  transform: translateX(0);
}

.shell-drawer.is-open {
  pointer-events: auto;
}

.shell-drawer.is-open .shell-drawer__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.shell-drawer__header {
  justify-content: space-between;
}

.shell-drawer__content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.shell-drawer [data-shell-drawer-nav] {
  flex: 0 0 auto;
  min-height: auto;
}

.shell-drawer .sidebar__nav {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
}

.shell-drawer__footer {
  margin-top: 0.5rem;
  padding-bottom: calc(1rem + var(--safe-area-bottom));
}

.shell-drawer .theme-switcher {
  margin-bottom: 0;
}

.shell-drawer .theme-switcher__panel {
  position: static;
  left: auto;
  bottom: auto;
  width: 100%;
  margin-top: 0.75rem;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: var(--mobile-bottom-nav-offset);
  box-sizing: border-box;
  gap: 0.4rem;
  padding:
    0.45rem
    calc(0.9rem + var(--safe-area-right))
    calc(0.5rem + var(--safe-area-bottom))
    calc(0.9rem + var(--safe-area-left));
  background: var(--color-bg-deep);
  border-top: 1px solid var(--shell-sidebar-border);
  z-index: 250;
  -webkit-touch-callout: none;
  user-select: none;
}

.bottom-nav::after {
  content: none;
}

.bottom-nav__item {
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.4rem 0.35rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.bottom-nav__item:hover,
.bottom-nav__item.active {
  color: var(--color-primary-light);
  background: var(--color-primary-soft-10);
  border-color: var(--color-primary-soft-20);
}

.bottom-nav__item--button {
  font: inherit;
}

.bottom-nav__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav__icon svg {
  width: 18px;
  height: 18px;
}

.bottom-nav__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* --- Konfigurierbare Bottom-Nav Erweiterungen --- */

.bottom-nav__item--empty {
  border: 1.5px dashed var(--color-border, rgba(255,255,255,0.15));
  background: transparent;
  color: var(--color-text-muted, rgba(255,255,255,0.35));
  opacity: 0.6;
  font-size: 1.4rem;
  font-weight: 300;
  cursor: pointer;
  transition: opacity var(--transition-fast, 150ms ease), border-color var(--transition-fast, 150ms ease);
}

.bottom-nav__item--empty:hover,
.bottom-nav__item--empty:focus-visible {
  opacity: 1;
  border-color: var(--color-primary-soft-30, rgba(99,102,241,0.3));
  color: var(--color-primary-light, #818cf8);
  outline: none;
}

/* Bottom-Sheet Overlay */
.bottom-nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 340;
  pointer-events: none;
  visibility: hidden;
}

.bottom-nav-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.bottom-nav-sheet__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-default, 250ms ease);
}

.bottom-nav-sheet.is-open .bottom-nav-sheet__backdrop {
  opacity: 1;
}

.bottom-nav-sheet__panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88dvh;
  box-sizing: border-box;
  padding: 1.25rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px)) 1rem;
  background: var(--shell-sidebar-bg, rgba(15, 20, 40, 0.97));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--shell-sidebar-border, rgba(255,255,255,0.1));
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  transform: translateY(105%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 341;
}

.bottom-nav-sheet.is-open .bottom-nav-sheet__panel {
  transform: translateY(0);
}

.bottom-nav-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.bottom-nav-sheet__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary, #f1f5f9);
  margin: 0;
}

.bottom-nav-sheet__close {
  background: transparent;
  border: 0;
  color: var(--color-text-muted, rgba(255,255,255,0.4));
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  border-radius: var(--radius-sm, 4px);
  transition: color var(--transition-fast, 150ms ease);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-sheet__close:hover {
  color: var(--color-text-primary, #f1f5f9);
}

.bottom-nav-sheet__section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bottom-nav-sheet__section h3 {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted, rgba(255,255,255,0.4));
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.bottom-nav-sheet__slots {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bottom-nav-sheet__slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface-overlay-04, rgba(255,255,255,0.04));
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  border-radius: var(--radius-md, 8px);
  color: var(--color-text-primary, #f1f5f9);
  cursor: grab;
  user-select: none;
}

.bottom-nav-sheet__slot--empty {
  border-style: dashed;
  opacity: 0.55;
}

.bottom-nav-sheet__slot-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-sheet__slot-icon svg {
  width: 100%;
  height: 100%;
}

.bottom-nav-sheet__slot-plus {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-text-muted, rgba(255,255,255,0.35));
}

.bottom-nav-sheet__slot-label {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.bottom-nav-sheet__slot-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.bottom-nav-sheet__slot-actions button {
  background: transparent;
  border: 1px solid var(--color-border, rgba(255,255,255,0.1));
  color: var(--color-text-secondary, rgba(255,255,255,0.6));
  border-radius: var(--radius-sm, 4px);
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast, 150ms ease);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-sheet__slot-actions button:hover {
  background: var(--surface-overlay-08, rgba(255,255,255,0.08));
  color: var(--color-text-primary, #f1f5f9);
}

.bottom-nav-sheet__slot-remove {
  color: var(--color-error, #f87171) !important;
}

.bottom-nav-sheet__slot-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bottom-nav-sheet__footer {
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border, rgba(255,255,255,0.08));
  flex-shrink: 0;
}

/* Katalog-Picker */
.bottom-nav-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 0.6rem;
}

.bottom-nav-picker__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.4rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--color-border, rgba(255,255,255,0.1));
  background: var(--surface-overlay-04, rgba(255,255,255,0.04));
  color: var(--color-text-secondary, rgba(255,255,255,0.6));
  cursor: pointer;
  text-align: center;
  font-size: 0;
  transition: all var(--transition-fast, 150ms ease);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-picker__item:hover:not(:disabled) {
  border-color: var(--color-primary-soft-30, rgba(99,102,241,0.3));
  background: var(--color-primary-soft-08, rgba(99,102,241,0.08));
  color: var(--color-primary-light, #818cf8);
}

.bottom-nav-picker__item:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.bottom-nav-picker__item--selected {
  border-color: var(--color-primary-soft-30, rgba(99,102,241,0.3));
  background: var(--color-primary-soft-08, rgba(99,102,241,0.08));
  color: var(--color-primary-light, #818cf8);
}

.bottom-nav-picker__item-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-picker__item-icon svg {
  width: 100%;
  height: 100%;
}

.bottom-nav-picker__item-label {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
}

/* --- Ende Konfigurierbare Bottom-Nav Erweiterungen --- */

.more-hub {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.more-hub__header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.more-hub__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-light);
}

.more-hub__title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.05;
  color: var(--color-text-primary);
}

.more-hub__lead {
  margin: 0;
  max-width: 48rem;
  color: var(--color-text-secondary);
}

.more-hub__grid {
  display: grid;
  gap: 1rem;
}

.more-hub__card {
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--shell-sidebar-border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--glass-bg) 90%, transparent), color-mix(in srgb, var(--surface-overlay-02) 92%, transparent));
  box-shadow: var(--glass-shadow);
}

.more-hub__section-title {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.more-hub__links {
  display: grid;
  gap: 0.85rem;
}

.more-hub__link-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--surface-overlay-04);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

@media (hover: hover) {
  .more-hub__link-card:hover {
    transform: translateY(-1px);
    border-color: var(--color-border-focus);
    background: var(--surface-overlay-06);
  }
}

.more-hub__link-card span {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
}

.more-hub__link-card--danger strong {
  color: var(--color-accent);
}

.more-hub .theme-switcher {
  margin-bottom: 0;
}

.more-hub .theme-switcher__panel {
  position: static;
  left: auto;
  bottom: auto;
  width: 100%;
  margin-top: 0.75rem;
  z-index: auto;
}

@media (max-width: 1024px) {
  .app-content {
    padding:
      1.5rem
      calc(1.25rem + var(--safe-area-right))
      2rem
      calc(1.25rem + var(--safe-area-left));
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (min-height: 541px),
       (hover: none) and (pointer: coarse) and (min-width: 1025px) and (max-width: 1400px) and (min-height: 541px) {
  .sidebar--desktop {
    display: flex;
  }

  .shell-mobile-bar,
  .shell-drawer,
  .bottom-nav {
    display: none;
  }

  .app-shell {
    flex-direction: row;
  }

  .app-body {
    flex: 1 1 auto;
    margin-left: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .app-content {
    max-width: none;
    margin: 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (min-height: 541px) and (orientation: portrait),
       (hover: none) and (pointer: coarse) and (min-width: 1025px) and (max-width: 1400px) and (min-height: 541px) and (orientation: portrait) {
  .sidebar--desktop,
  .sidebar {
    width: 188px;
  }

  .sidebar__header {
    padding: 0 0.85rem;
  }

  .sidebar__nav {
    padding: 0.85rem 0.55rem;
  }

  .sidebar__nav-item {
    gap: 0.6rem;
    padding: 0.6rem 0.65rem;
    font-size: 0.82rem;
  }

  .sidebar__section-label {
    padding: 0.9rem 0.65rem 0.3rem;
  }

  .sidebar__footer {
    padding: 0.8rem;
  }

  .app-content {
    padding: 1.2rem calc(1.1rem + var(--safe-area-right)) 1.5rem calc(1.1rem + var(--safe-area-left));
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (min-height: 541px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (min-width: 1025px) and (max-width: 1400px) and (min-height: 541px) and (orientation: landscape) {
  .sidebar--desktop,
  .sidebar {
    width: 204px;
  }

  .sidebar__header {
    padding: 0 0.95rem;
  }

  .sidebar__nav {
    padding: 0.9rem 0.6rem;
  }

  .sidebar__footer {
    padding: 0.85rem;
  }

  .app-content {
    padding: 1.4rem 1.45rem 1.75rem;
  }
}

@media (max-width: 767px), (min-width: 768px) and (max-width: 1024px) and (max-height: 540px) {
  .sidebar--desktop {
    display: none;
  }

  .shell-mobile-bar {
    display: flex;
  }

  .shell-drawer {
    display: block;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
  }

  .app-body {
    flex: 1 1 auto;
    margin-left: 0;
    padding-top: var(--mobile-bar-total-height);
  }
}

@media (max-width: 700px) {
  .app-shell {
    --mobile-bar-core-height: 58px;
    --mobile-bottom-nav-core-height: 64px;
  }

  .bottom-nav {
    display: grid;
  }

  .shell-mobile-bar__menu--more {
    display: none;
  }

  .shell-drawer__backdrop {
    display: block;
  }

  .app-body {
    padding-bottom: var(--mobile-bottom-nav-offset);
  }

  .app-content {
    padding:
      1.2rem
      calc(1rem + var(--safe-area-right))
      1.5rem
      calc(1rem + var(--safe-area-left));
  }

  .shell-mobile-bar {
    padding:
      max(0px, calc(var(--safe-area-top) - 0.35rem))
      calc(0.9rem + var(--safe-area-right))
      0
      calc(0.9rem + var(--safe-area-left));
  }

  .app-body {
    padding-top: var(--mobile-bar-total-height);
  }

  .shell-mobile-bar__brand-text {
    font-size: 0.95rem;
  }

  .shell-drawer__panel {
    width: min(340px, calc(100vw - 16px));
  }
}

@media (min-width: 701px) and (max-width: 767px), (min-width: 768px) and (max-width: 1024px) and (max-height: 540px) {
  .shell-mobile-bar__menu--drawer {
    display: inline-flex;
  }

  .shell-drawer__backdrop {
    display: block;
  }

  .app-content {
    padding-bottom: 1.75rem;
  }
}

@media (orientation: landscape) and (max-width: 767px), (orientation: landscape) and (min-width: 768px) and (max-width: 1024px) and (max-height: 540px) {
  .shell-mobile-bar {
    padding-left: calc(1rem + var(--safe-area-left));
    padding-right: calc(0.9rem + var(--safe-area-right));
  }

  .shell-mobile-bar__menu--drawer {
    display: inline-flex;
  }

  .shell-mobile-bar__menu--more {
    display: none;
  }

  .app-content {
    padding-left: calc(2.35rem + var(--safe-area-left));
    padding-right: calc(1.25rem + var(--safe-area-right));
  }

  .shell-drawer__panel {
    width: min(420px, calc(100vw - 24px - var(--safe-area-right)));
    margin-left: auto;
    border-right: 0;
    border-left: 1px solid var(--shell-sidebar-border);
    padding-left: 1rem;
    padding-right: calc(1rem + var(--safe-area-right));
    transform: translateX(105%);
  }

  .shell-drawer.is-open .shell-drawer__panel {
    transform: translateX(0);
  }
}

/* ================================================================
   W5-FIX: Hover-Guard — nur auf Geräten mit Hover-Unterstützung
   Proaktiv: transform/box-shadow-Hover-Effekte sind ausschließlich
   in @media (hover: hover) definiert, kein reaktiver Reset nötig.
   ================================================================ */

/* ================================================================
   W7-FIX: Tap-Highlight entfernen auf Touch-Geräten
   ================================================================ */
.sidebar__nav-item,
.bottom-nav__item,
.shell-mobile-bar__menu,
.shell-drawer__close,
.theme-switcher__trigger,
.more-hub__link-card {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   SMTP SETTINGS — smtp-* Layout-Klassen
   (ausgelagert aus SmtpSettings.razor <style>-Block)
   ========================================================= */

.smtp-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.smtp-profile-toolbar,
.smtp-profile-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.smtp-profile-toolbar__actions,
.smtp-profile-create__action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.smtp-profile-create {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
}

@media (max-width: 768px) {
  .smtp-profile-toolbar,
  .smtp-profile-create {
    grid-template-columns: 1fr;
  }

  .smtp-profile-toolbar__actions,
  .smtp-profile-create__action {
    justify-content: stretch;
  }
}

/* ================================================================
   W15-FIX: prefers-reduced-motion
   Shell-spezifische Transitions und der Drawer-Slide-Effekt werden
   bei aktivierter Motion-Reduction auf Minimum reduziert.
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  /* Alle CSS-Transitions im Shell auf Minimum */
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   W16-FIX: @supports not (backdrop-filter) Fallback
   Sidebar, Drawer-Panel und Theme-Switcher-Panel nutzen
   backdrop-filter: blur(20px). Ohne Fallback erscheinen diese
   Elemente transparent auf dem Hintergrund-Void.
   ================================================================ */
@supports not (backdrop-filter: blur(1px)) {
  .sidebar {
    background: var(--shell-sidebar-bg, var(--color-bg-surface));
  }

  .shell-drawer__panel {
    background: var(--color-bg-surface);
  }

  .theme-switcher__panel {
    background: var(--glass-bg-lighter);
  }

  /* .shell-mobile-bar nutzt kein backdrop-filter, nur festen bg-deep — kein Fallback nötig */
}

/* ── Aurora Cosmic: AppShell ───────────────────────────────────────────── */

/* Sternfeld-Hintergrund */
html[data-mode="dark"][data-theme="sarah-aurora"] .app-shell::before,
html[data-mode="dim"][data-theme="sarah-aurora"] .app-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #ffffff, transparent),
    radial-gradient(1px 1px at 60% 70%, #bbccdd, transparent),
    radial-gradient(1px 1px at 80% 20%, #ffffff, transparent),
    radial-gradient(1px 1px at 35% 85%, #99aabb, transparent),
    radial-gradient(1px 1px at 90% 60%, #ffffff, transparent),
    radial-gradient(1px 1px at 12% 60%, #ccddee, transparent);
  background-size: 300px 300px, 250px 250px, 400px 400px, 350px 350px, 500px 500px, 200px 200px;
  opacity: var(--starfield-opacity, 0.5);
}

/* Kosmischer Body-Gradient */
html[data-mode="dark"][data-theme="sarah-aurora"] .app-body,
html[data-mode="dim"][data-theme="sarah-aurora"] .app-body {
  background:
    radial-gradient(1200px 800px at 18% 10%, rgba(61, 123, 255, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 85% 90%, rgba(139, 107, 255, 0.08), transparent 60%),
    var(--color-bg-deep);
}

/* Sidebar Brand-Icon als Orb */
html[data-mode="dark"][data-theme="sarah-aurora"] .sidebar__brand-icon,
html[data-mode="dim"][data-theme="sarah-aurora"] .sidebar__brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(63, 231, 255, 0.20), transparent 60%);
  border: 1px solid rgba(63, 231, 255, 0.35);
  box-shadow: 0 0 20px rgba(63, 231, 255, 0.25) inset;
  color: #3fe7ff;
}

html[data-mode="dark"][data-theme="sarah-aurora"] .sidebar__brand-icon svg,
html[data-mode="dim"][data-theme="sarah-aurora"] .sidebar__brand-icon svg {
  filter: drop-shadow(0 0 5px #3fe7ff);
}

/* Aktiver Nav-Item mit Cyan-Glow */
html[data-mode="dark"][data-theme="sarah-aurora"] .sidebar__nav-item.active,
html[data-mode="dim"][data-theme="sarah-aurora"] .sidebar__nav-item.active {
  color: #3fe7ff;
  background: rgba(63, 231, 255, 0.10);
  border-color: rgba(63, 231, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(63, 231, 255, 0.08);
}

html[data-mode="dark"][data-theme="sarah-aurora"] .sidebar__nav-item.active .sidebar__nav-icon svg,
html[data-mode="dim"][data-theme="sarah-aurora"] .sidebar__nav-item.active .sidebar__nav-icon svg {
  filter: drop-shadow(0 0 4px rgba(63, 231, 255, 0.60));
}

/* Bottom-Nav Container Cosmic */
html[data-mode="dark"][data-theme="sarah-aurora"] .bottom-nav,
html[data-mode="dim"][data-theme="sarah-aurora"] .bottom-nav {
  background: rgba(6, 12, 28, 0.88);
  border-top-color: rgba(63, 231, 255, 0.25);
  border-radius: 20px 20px 0 0;
}

/* Bottom-Nav aktive Items */
html[data-mode="dark"][data-theme="sarah-aurora"] .bottom-nav__item.active,
html[data-mode="dim"][data-theme="sarah-aurora"] .bottom-nav__item.active {
  color: #3fe7ff;
  background: rgba(63, 231, 255, 0.10);
  border-color: rgba(63, 231, 255, 0.25);
}

html[data-mode="dark"][data-theme="sarah-aurora"] .bottom-nav__item.active .bottom-nav__icon svg,
html[data-mode="dim"][data-theme="sarah-aurora"] .bottom-nav__item.active .bottom-nav__icon svg {
  filter: drop-shadow(0 0 5px #3fe7ff);
}

/* ── SARAH Aurora Lila: AppShell ───────────────────────────────────── */

html[data-mode="dark"][data-theme="sarah-aurora-lila"] .app-shell::before,
html[data-mode="dim"][data-theme="sarah-aurora-lila"] .app-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #ffffff, transparent),
    radial-gradient(1px 1px at 60% 70%, #ccbbee, transparent),
    radial-gradient(1px 1px at 80% 20%, #ffffff, transparent),
    radial-gradient(1px 1px at 35% 85%, #aa99cc, transparent),
    radial-gradient(1px 1px at 90% 60%, #ffffff, transparent),
    radial-gradient(1px 1px at 12% 60%, #ddccff, transparent);
  background-size: 300px 300px, 250px 250px, 400px 400px, 350px 350px, 500px 500px, 200px 200px;
  opacity: var(--starfield-opacity, 0.5);
}

html[data-mode="dark"][data-theme="sarah-aurora-lila"] .app-body,
html[data-mode="dim"][data-theme="sarah-aurora-lila"] .app-body {
  background:
    radial-gradient(1200px 800px at 18% 10%, rgba(139, 107, 255, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 85% 90%, rgba(61, 61, 255, 0.08), transparent 60%),
    var(--color-bg-deep);
}

html[data-mode="dark"][data-theme="sarah-aurora-lila"] .sidebar__brand-icon,
html[data-mode="dim"][data-theme="sarah-aurora-lila"] .sidebar__brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(139, 107, 255, 0.20), transparent 60%);
  border: 1px solid rgba(139, 107, 255, 0.35);
  box-shadow: 0 0 20px rgba(139, 107, 255, 0.25) inset;
  color: #8b6bff;
}

html[data-mode="dark"][data-theme="sarah-aurora-lila"] .sidebar__brand-icon svg,
html[data-mode="dim"][data-theme="sarah-aurora-lila"] .sidebar__brand-icon svg {
  filter: drop-shadow(0 0 5px #8b6bff);
}

html[data-mode="dark"][data-theme="sarah-aurora-lila"] .sidebar__nav-item.active,
html[data-mode="dim"][data-theme="sarah-aurora-lila"] .sidebar__nav-item.active {
  color: #8b6bff;
  background: rgba(139, 107, 255, 0.10);
  border-color: rgba(139, 107, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(139, 107, 255, 0.08);
}

html[data-mode="dark"][data-theme="sarah-aurora-lila"] .sidebar__nav-item.active .sidebar__nav-icon svg,
html[data-mode="dim"][data-theme="sarah-aurora-lila"] .sidebar__nav-item.active .sidebar__nav-icon svg {
  filter: drop-shadow(0 0 4px rgba(139, 107, 255, 0.60));
}

html[data-mode="dark"][data-theme="sarah-aurora-lila"] .bottom-nav,
html[data-mode="dim"][data-theme="sarah-aurora-lila"] .bottom-nav {
  background: rgba(6, 12, 28, 0.88);
  border-top-color: rgba(139, 107, 255, 0.25);
  border-radius: 20px 20px 0 0;
}

html[data-mode="dark"][data-theme="sarah-aurora-lila"] .bottom-nav__item.active,
html[data-mode="dim"][data-theme="sarah-aurora-lila"] .bottom-nav__item.active {
  color: #8b6bff;
  background: rgba(139, 107, 255, 0.10);
  border-color: rgba(139, 107, 255, 0.25);
}

html[data-mode="dark"][data-theme="sarah-aurora-lila"] .bottom-nav__item.active .bottom-nav__icon svg,
html[data-mode="dim"][data-theme="sarah-aurora-lila"] .bottom-nav__item.active .bottom-nav__icon svg {
  filter: drop-shadow(0 0 5px #8b6bff);
}

/* ── Cosmic Typografie: AppShell ───────────────────────────────────── */
html[data-theme="sarah-aurora"] .sidebar__brand-text,
html[data-theme="sarah-aurora-lila"] .sidebar__brand-text {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
}

html[data-theme="sarah-aurora"] .bottom-nav__label,
html[data-theme="sarah-aurora-lila"] .bottom-nav__label {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  font-size: 9px;
}

html[data-theme="sarah-aurora"] .sidebar__nav-label,
html[data-theme="sarah-aurora-lila"] .sidebar__nav-label {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* ============================================================
   QUICK ACTIONS — Widget, Config-Liste, Banner, Badges
   ============================================================ */

/* "Neu"-Badge auf Kacheln */
.action-tile__new-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-sm);
    background: var(--color-accent);
    color: #fff;
    margin-left: 0.35rem;
    vertical-align: middle;
    animation: badge-pop 300ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes badge-pop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* Info-Banner (neue Aktionen + Soft-Limit) */
.info-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid;
}

.info-banner--new-actions {
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
    color: var(--color-text-primary);
}

.info-banner--warning {
    background: color-mix(in srgb, var(--color-warning, #f59e0b) 8%, transparent);
    border-color: color-mix(in srgb, var(--color-warning, #f59e0b) 30%, transparent);
    color: var(--color-text-primary);
}

.info-banner__icon {
    flex-shrink: 0;
    color: var(--color-accent);
}

.info-banner__text {
    flex: 1;
}

.info-banner__dismiss,
.info-banner__dismiss-permanent {
    flex-shrink: 0;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.65;
    transition: opacity var(--transition-fast, 150ms);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .info-banner__dismiss:hover,
    .info-banner__dismiss-permanent:hover {
        opacity: 1;
        background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    }
}

/* Quick Actions Config-Seite */
.config-sort-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.config-sort-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.quick-actions-config-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.quick-actions-config-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    cursor: grab;
    transition: background var(--transition-fast, 150ms), box-shadow var(--transition-fast, 150ms);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .quick-actions-config-item:hover {
        background: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg-elevated));
    }
}

.quick-actions-config-item:active {
    cursor: grabbing;
}

.quick-actions-config-item.is-disabled {
    opacity: 0.5;
}

.quick-actions-module-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-actions-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.25rem;
    margin-top: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.quick-actions-module-group:first-child .quick-actions-module-header {
    margin-top: 0;
}

.quick-actions-module-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
}

.quick-actions-module-count {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

/* Mini-Kachel-Vorschau in Konfig-Liste */
.config-item__preview {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.config-item__icon {
    width: 20px;
    height: 20px;
}

.config-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.config-item__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.config-item__description {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.config-item__arrow-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-text-secondary);
    font-size: 1rem;
    transition: background var(--transition-fast, 150ms), color var(--transition-fast, 150ms);
    -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse) {
    .config-item__arrow-btn {
        width: 44px;
        height: 44px;
    }
}

@media (hover: hover) {
    .config-item__arrow-btn:hover:not(:disabled) {
        background: color-mix(in srgb, var(--color-accent) 15%, transparent);
        color: var(--color-accent);
    }
}

.config-item__arrow-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.config-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-save-feedback {
    font-size: 0.875rem;
    color: var(--color-accent);
}

/* Quick Action Icon (allgemein) */
.quick-action-icon {
    width: 24px;
    height: 24px;
}
