/* SwiftUI-Darstellung der AMT-Seiten. Wirkt nur mit body[data-swift="1"].
   Orientierung: Apple Human Interface Guidelines, wie SwiftUI sie umsetzt
   (gruppierter Hintergrund, inset grouped, Systemschrift, Akzentblau, 8-pt-Raster). */

body[data-swift="1"] {
  --glass-blur: var(--amt-glass-blur, 28px);
  --glass-saturate: var(--amt-glass-saturate, 180%);
  --glass-alpha: var(--amt-glass-alpha, 0.38);
  --radius-card: var(--amt-radius-card, 18px);
  --radius-control: var(--amt-radius-control, 999px);
  --radius-field: var(--amt-radius-field, 999px);
  --radius-nav: var(--amt-radius-nav, 8px);
  --mesh-opacity: var(--amt-mesh, 1);
  --bg-page: #e7eef8;
  --bg-sidebar: rgba(255, 255, 255, var(--glass-alpha));
  --bg-card: rgba(255, 255, 255, calc(var(--glass-alpha) + 0.08));
  --bg-header: rgba(255, 255, 255, calc(var(--glass-alpha) - 0.04));
  --glass-edge: rgba(255, 255, 255, 0.78);
  --glass-shadow: 0 10px 30px rgba(48, 72, 110, 0.14);
  --text: #000000;
  --text-muted: rgba(60, 60, 67, 0.6);
  --text-on-dark: #1c1c1e;
  --text-on-dark-muted: rgba(60, 60, 67, 0.6);
  --accent: #007aff;
  --accent-hover: #0066d6;
  --border: rgba(60, 60, 67, 0.29);
  --success: #34c759;
  --danger: #ff3b30;
  --icon-btn-hover-bg: rgba(120, 120, 128, 0.16);
  --radius: 10px;
  --shadow: none;
  --input-bg: rgba(118, 118, 128, 0.12);
  --input-text: #000000;
  --header-height: 52px;
  --sidebar-width: 252px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

html[data-theme="dark"] body[data-swift="1"] {
  --bg-page: #0b1020;
  --bg-sidebar: rgba(28, 28, 32, var(--glass-alpha));
  --bg-card: rgba(44, 44, 48, calc(var(--glass-alpha) + 0.08));
  --bg-header: rgba(22, 22, 26, var(--glass-alpha));
  --glass-edge: rgba(255, 255, 255, 0.28);
  --glass-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  --text: #ffffff;
  --text-muted: rgba(235, 235, 245, 0.6);
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(235, 235, 245, 0.6);
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --border: rgba(84, 84, 88, 0.65);
  --success: #30d158;
  --danger: #ff453a;
  --icon-btn-hover-bg: rgba(118, 118, 128, 0.24);
  --input-bg: rgba(118, 118, 128, 0.24);
  --input-text: #ffffff;
}

body[data-swift="1"] {
  background: var(--bg-page);
}

body[data-swift="1"]::before {
  content: "";
  position: fixed;
  inset: -12vh -8vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38vw 32vw at 12% 8%, rgba(120, 190, 255, 0.85), transparent 70%),
    radial-gradient(34vw 28vw at 88% 0%, rgba(186, 150, 255, 0.55), transparent 68%),
    radial-gradient(42vw 36vw at 70% 88%, rgba(120, 220, 200, 0.45), transparent 70%),
    radial-gradient(28vw 24vw at 8% 92%, rgba(255, 176, 140, 0.35), transparent 70%),
    var(--bg-page);
  opacity: var(--mesh-opacity);
}

html[data-theme="dark"] body[data-swift="1"]::before {
  background:
    radial-gradient(36vw 30vw at 10% 0%, rgba(40, 90, 180, 0.7), transparent 70%),
    radial-gradient(32vw 28vw at 90% 10%, rgba(110, 60, 180, 0.45), transparent 68%),
    radial-gradient(40vw 32vw at 75% 100%, rgba(20, 120, 130, 0.4), transparent 70%),
    var(--bg-page);
}

body[data-swift="1"] .app {
  position: relative;
  z-index: 1;
  background: transparent;
}

body[data-swift="1"] .swift-preview {
  margin: 0;
  padding: 6px 16px;
  background: rgba(0, 122, 255, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

html[data-theme="dark"] body[data-swift="1"] .swift-preview {
  background: rgba(10, 132, 255, 0.22);
}

body[data-swift="1"] .sidebar {
  background: var(--bg-sidebar);
  color: var(--text);
  border-right: 1px solid var(--glass-edge);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.35), var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  padding-bottom: 8px;
}

body[data-swift="1"] .sidebar__top,
body[data-swift="1"] .sidebar__favs {
  border-bottom: 0.5px solid var(--border);
}

body[data-swift="1"] .sidebar__nav {
  margin: 8px 0 0;
  padding: 0 0 8px;
}

/* Nur Hauptpunkte — Unterpunkte nicht mit derselben Padding-Regel treffen */
body[data-swift="1"] .sidebar__nav > li > a,
body[data-swift="1"] .sidebar__nav > li > .sidebar__section > .sidebar__section-summary,
body[data-swift="1"] .sidebar__group-head {
  margin: 1px 8px;
  padding: 6px 10px;
  min-height: 28px;
  border-left: none;
  border-radius: var(--radius-nav);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  box-sizing: border-box;
}

body[data-swift="1"] .sidebar__nav > li > a:hover,
body[data-swift="1"] .sidebar__nav > li > .sidebar__section > .sidebar__section-summary:hover,
body[data-swift="1"] .sidebar__group-head:hover {
  color: var(--text);
  background: rgba(120, 120, 128, 0.12);
}

body[data-swift="1"] .sidebar__nav > li.is-active > a,
body[data-swift="1"] html.sidebar-collapsed .sidebar__nav > li.is-active > a {
  color: #ffffff;
  background: var(--accent);
  border-left-color: transparent;
}

/* Unterpunkte eingerückt (Icon/Text unter dem Label der Eltern) */
body[data-swift="1"] .sidebar__subnav > li > a,
body[data-swift="1"] .sidebar__sub-note {
  margin: 1px 8px;
  padding: 5px 10px 5px 2.45rem;
  min-height: 26px;
  border-left: none;
  border-radius: var(--radius-nav);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  box-sizing: border-box;
}

body[data-swift="1"] .sidebar__section--nested > .sidebar__section-summary {
  margin: 1px 8px;
  padding: 5px 10px 5px 2.45rem;
  min-height: 26px;
  border-left: none;
  border-radius: var(--radius-nav);
  font-size: 12.5px;
  box-sizing: border-box;
}

body[data-swift="1"] .sidebar__section--nested .sidebar__subnav > li > a {
  padding-left: 3.15rem;
}

html.sidebar-collapsed body[data-swift="1"] .sidebar__nav > li > a,
html.sidebar-collapsed body[data-swift="1"] .sidebar__nav > li > .sidebar__section > .sidebar__section-summary {
  margin: 2px 6px;
  border-radius: var(--radius-nav);
}

body[data-swift="1"] .sidebar__footer,
body[data-swift="1"] .sidebar__dock-profile-name,
body[data-swift="1"] .sidebar__dock-profile-org,
body[data-swift="1"] .sidebar__version {
  color: var(--text-muted);
}

body[data-swift="1"] .sidebar__dock-profile-name {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

body[data-swift="1"] .sidebar__logout {
  color: var(--accent);
  background: transparent;
  border-radius: var(--radius-nav);
  font-weight: 600;
}

body[data-swift="1"] .sidebar__favs-title,
body[data-swift="1"] .sidebar__section-chevron,
body[data-swift="1"] .sidebar__fav-tile-sub,
body[data-swift="1"] .sidebar__version,
body[data-swift="1"] .sidebar__user-line,
body[data-swift="1"] .sidebar__dock-quick,
body[data-swift="1"] .sidebar__dock-quick-label {
  color: #3a3a3c;
}

body[data-swift="1"] .sidebar__subnav > li > a,
body[data-swift="1"] .sidebar__sub-note,
body[data-swift="1"] .sidebar__section-summary,
body[data-swift="1"] .sidebar__nav > li > a,
body[data-swift="1"] .sidebar__group-head {
  color: #1c1c1e;
}

body[data-swift="1"] .sidebar__subnav > li > a:hover,
body[data-swift="1"] .sidebar__section-summary:hover {
  color: #000000;
  background: rgba(120, 120, 128, 0.16);
}

body[data-swift="1"] .sidebar__nav > li.is-active > a,
body[data-swift="1"] .sidebar__subnav > li.is-active > a {
  color: #ffffff;
  background: var(--accent);
}

html[data-theme="dark"] body[data-swift="1"] .sidebar__favs-title,
html[data-theme="dark"] body[data-swift="1"] .sidebar__section-chevron,
html[data-theme="dark"] body[data-swift="1"] .sidebar__fav-tile-sub,
html[data-theme="dark"] body[data-swift="1"] .sidebar__version,
html[data-theme="dark"] body[data-swift="1"] .sidebar__user-line,
html[data-theme="dark"] body[data-swift="1"] .sidebar__dock-quick,
html[data-theme="dark"] body[data-swift="1"] .sidebar__dock-quick-label {
  color: rgba(235, 235, 245, 0.82);
}

html[data-theme="dark"] body[data-swift="1"] .sidebar__subnav > li > a,
html[data-theme="dark"] body[data-swift="1"] .sidebar__section-summary,
html[data-theme="dark"] body[data-swift="1"] .sidebar__nav > li > a,
html[data-theme="dark"] body[data-swift="1"] .sidebar__group-head {
  color: #ffffff;
}

html[data-theme="dark"] body[data-swift="1"] .sidebar__subnav > li > a:hover,
html[data-theme="dark"] body[data-swift="1"] .sidebar__section-summary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

body[data-swift="1"] .main {
  background: transparent;
}

body[data-swift="1"] .topbar {
  background: var(--bg-header);
  border-bottom: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 24px rgba(48, 72, 110, 0.08);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  padding: 8px 16px;
  gap: 12px;
  justify-content: flex-start;
}

body[data-swift="1"] .topbar__right {
  margin-left: auto;
  justify-content: flex-end;
  gap: 0.4rem;
}

body[data-swift="1"] .amt-start-search {
  display: flex !important;
  width: min(36rem, 100%);
  margin: 4px 4px 12px;
}

body[data-swift="1"] .nw-global-search__wrap {
  width: 100%;
}

body[data-swift="1"] .nw-global-search__wrap > input[type="search"] {
  min-height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-field);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 17px;
  font-weight: 400;
}

body[data-swift="1"] .nw-global-search__wrap > input[type="search"]::placeholder {
  color: var(--text-muted);
}

body[data-swift="1"] .nw-global-search__wrap > input[type="search"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

body[data-swift="1"] .content {
  padding: 16px 20px 28px;
  background: transparent;
}

body[data-swift="1"] .amt-tac-btn,
body[data-swift="1"] .btn-primary,
body[data-swift="1"] button[type="submit"] {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-control);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    var(--accent);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 18px rgba(0, 122, 255, 0.28);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body[data-swift="1"] .amt-tac-btn:hover,
body[data-swift="1"] .btn-primary:hover {
  background: var(--accent-hover);
}

body[data-swift="1"] .amt-tac-ticket,
body[data-swift="1"] input,
body[data-swift="1"] select,
body[data-swift="1"] textarea {
  min-height: 36px;
  border: none;
  border-radius: var(--radius-field);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 17px;
  padding: 6px 10px;
}

body[data-swift="1"] .amt-table-wrap,
body[data-swift="1"] .amt-contract,
body[data-swift="1"] .amt-changelog,
body[data-swift="1"] .amt-selfservice,
body[data-swift="1"] .amt-ad,
body[data-swift="1"] .amt-compare {
  border: 1px solid var(--glass-edge) !important;
  border-left-width: 1px !important;
  border-radius: var(--radius-card);
  background: var(--bg-card) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  overflow: hidden;
}

body[data-swift="1"] .amt-contract--valid,
body[data-swift="1"] .amt-contract--invalid {
  background: var(--bg-card) !important;
}

body[data-swift="1"] .amt-contract__title,
body[data-swift="1"] .amt-ad > summary {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body[data-swift="1"] .amt-contract__flag {
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 8px;
}

body[data-swift="1"] .amt-contract--valid .amt-contract__flag {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 16%, transparent);
}

body[data-swift="1"] .amt-contract--invalid .amt-contract__flag {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 16%, transparent);
}

body[data-swift="1"] .amt-contract__row,
body[data-swift="1"] .amt-history__changes li,
body[data-swift="1"] .amt-selfservice__list li {
  min-height: 32px;
  padding: 4px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 15px;
}

body[data-swift="1"] .amt-contract__label,
body[data-swift="1"] .amt-history__changes li > span:first-child,
body[data-swift="1"] .amt-selfservice__when {
  color: var(--text-muted);
  font-size: 13px;
}

body[data-swift="1"] .amt-table th,
body[data-swift="1"] .amt-table td {
  min-height: 44px;
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--border);
  font-size: 15px;
  white-space: nowrap;
}

body[data-swift="1"] .amt-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
  background: var(--bg-card);
}

body[data-swift="1"] .amt-table tbody tr:nth-child(even) {
  background: transparent;
}

body[data-swift="1"] .amt-table tbody tr:hover,
body[data-swift="1"] .amt-table tbody tr.is-selected,
body[data-swift="1"] .amt-table tbody tr.is-selected:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-card));
}

body[data-swift="1"] .amt-overview,
body[data-swift="1"] .amt-status-rail {
  background: var(--bg-card);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

body[data-swift="1"] .topbar__icons > button,
body[data-swift="1"] .topbar__icons .amt-settings > button[data-amt-settings],
body[data-swift="1"] .sidebar__toggle {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-nav);
  background: transparent;
  color: var(--accent);
}

body[data-swift="1"] .topbar__icons > button:hover,
body[data-swift="1"] .topbar__icons .amt-settings > button[data-amt-settings]:hover,
body[data-swift="1"] .sidebar__toggle:hover {
  background: var(--icon-btn-hover-bg);
}

body[data-swift="1"] .amt-settings__panel,
body[data-swift="1"] .nw-search-history,
body[data-swift="1"] .amt-tac-history {
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background: #f7f8fb;
  box-shadow: 0 16px 36px rgba(28, 40, 64, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-swift="1"] .nw-search-history__panel-toggle {
  background: #f7f8fb;
}

html[data-theme="dark"] body[data-swift="1"] .amt-settings__panel,
html[data-theme="dark"] body[data-swift="1"] .nw-search-history,
html[data-theme="dark"] body[data-swift="1"] .amt-tac-history,
html[data-theme="dark"] body[data-swift="1"] .nw-search-history__panel-toggle {
  background: #1c1c22;
}

html[data-theme="dark"] body[data-swift="1"] .amt-settings__panel,
html[data-theme="dark"] body[data-swift="1"] .nw-search-history,
html[data-theme="dark"] body[data-swift="1"] .amt-tac-history {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

body[data-swift="1"] .nw-global-search__wrap > input[type="search"],
body[data-swift="1"] .amt-tac-ticket {
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-field);
  background: rgba(255, 255, 255, calc(var(--glass-alpha) * 0.75));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 14px rgba(48, 72, 110, 0.08);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

html[data-theme="dark"] body[data-swift="1"] .nw-global-search__wrap > input[type="search"],
html[data-theme="dark"] body[data-swift="1"] .amt-tac-ticket {
  background: rgba(255, 255, 255, calc(var(--glass-alpha) * 0.22));
}

body[data-swift="1"] .amt-settings__panel {
  width: 18.5rem;
  max-height: min(72vh, 36rem);
  overflow: auto;
}

body[data-swift="1"] .amt-design {
  display: grid;
  gap: 0.55rem;
  margin: 0.15rem 0 0.35rem;
}

body[data-swift="1"] .amt-design .amt-settings__label {
  margin: 0;
}

body[data-swift="1"] .amt-design__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

/* Kompakte Pills wie Status „Aktiv“ — nicht Topbar-Icon-Quadrat */
body[data-swift="1"] .amt-settings__panel .amt-design__chip,
body[data-swift="1"] .amt-settings__panel .amt-design__save,
body[data-swift="1"] .amt-settings__panel .amt-glass__reset {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0;
  padding: 0.12rem 0.55rem !important;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text, #1c1c1e);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}

body[data-swift="1"] .amt-settings__panel .amt-design__chip:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

body[data-swift="1"] .amt-settings__panel .amt-design__chip.is-on {
  background: rgba(46, 125, 50, 0.18);
  color: #1c1c1e;
}

body[data-swift="1"] .amt-settings__panel .amt-design__chip:hover:not(:disabled):not(.is-on),
body[data-swift="1"] .amt-settings__panel .amt-design__save:hover,
body[data-swift="1"] .amt-settings__panel .amt-glass__reset:hover {
  background: rgba(0, 0, 0, 0.1);
}

body[data-swift="1"] .amt-design__save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

html[data-theme="dark"] body[data-swift="1"] .amt-settings__panel .amt-design__chip,
html[data-theme="dark"] body[data-swift="1"] .amt-settings__panel .amt-design__save,
html[data-theme="dark"] body[data-swift="1"] .amt-settings__panel .amt-glass__reset {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
}

html[data-theme="dark"] body[data-swift="1"] .amt-settings__panel .amt-design__chip.is-on {
  background: rgba(52, 199, 89, 0.22);
  color: #f5f5f7;
}

html[data-theme="dark"] body[data-swift="1"] .amt-settings__panel .amt-design__chip:hover:not(:disabled):not(.is-on),
html[data-theme="dark"] body[data-swift="1"] .amt-settings__panel .amt-design__save:hover,
html[data-theme="dark"] body[data-swift="1"] .amt-settings__panel .amt-glass__reset:hover {
  background: rgba(255, 255, 255, 0.16);
}

body[data-swift="1"] .amt-glass {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 0.5px solid var(--border);
}

body[data-swift="1"] .amt-glass__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 0.6rem;
  align-items: baseline;
  font-size: 13px;
  color: var(--text);
}

body[data-swift="1"] .amt-glass__val {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

body[data-swift="1"] .amt-glass__row input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 1.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  accent-color: var(--accent);
}

body[data-swift="1"] .amt-glass__reset {
  justify-self: start;
  min-height: 32px;
  margin-top: 0.15rem;
  padding: 0 12px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-nav);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

body[data-swift="1"] .admin-breadcrumb {
  margin: 0 4px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

body[data-swift="1"] h1.admin-page-title {
  margin: 2px 4px 6px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

body[data-swift="1"] h2.admin-page-title {
  margin: 18px 4px 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body[data-swift="1"] .admin-page-lead {
  margin: 0 4px 18px;
  max-width: 40rem;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-muted);
}

body[data-swift="1"] .amt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  overflow: hidden;
}

body[data-swift="1"] .amt-list li {
  margin: 0;
  padding: 12px 16px;
  min-height: 44px;
  border-bottom: 0.5px solid var(--border);
  font-size: 17px;
  line-height: 1.3;
}

body[data-swift="1"] .amt-list li:last-child {
  border-bottom: none;
}

body[data-swift="1"] .amt-list a {
  color: var(--accent);
  font-weight: 400;
  text-decoration: none;
}

body[data-swift="1"] .amt-overview {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.85rem 1.4rem;
  padding: 0.75rem 0.95rem;
}

body[data-swift="1"] .amt-overview__item {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
}

body[data-swift="1"] .amt-overview__label {
  display: block;
  margin: 0 0 0.12rem;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

body[data-swift="1"] .amt-overview__value {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

/* —— Einheitliche Button-Optik (Pill / Glass) —— */
body[data-swift="1"] .btn,
body[data-swift="1"] .btn--ghost,
body[data-swift="1"] .tool-hub__logout,
body[data-swift="1"] .tool-hub__dns,
body[data-swift="1"] .nw-hsa-dns-btn,
body[data-swift="1"] .nw-hsa-status-btn,
body[data-swift="1"] .nw-hsa-logout,
body[data-swift="1"] .nw-ds-tool-btn,
body[data-swift="1"] .nw-ds-foot-btn--ghost,
body[data-swift="1"] .sidebar__logout,
body[data-swift="1"] .sidebar__dock-logout {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(60, 60, 67, 0.16);
  border-radius: var(--radius-control);
  background: rgba(120, 120, 128, 0.12);
  color: var(--text, #1c1c1e);
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body[data-swift="1"] .btn:hover,
body[data-swift="1"] .btn--ghost:hover,
body[data-swift="1"] .tool-hub__logout:hover,
body[data-swift="1"] .tool-hub__dns:hover,
body[data-swift="1"] .nw-hsa-dns-btn:hover,
body[data-swift="1"] .nw-hsa-status-btn:hover,
body[data-swift="1"] .nw-hsa-logout:hover,
body[data-swift="1"] .nw-ds-tool-btn:hover,
body[data-swift="1"] .nw-ds-foot-btn--ghost:hover,
body[data-swift="1"] .sidebar__logout:hover,
body[data-swift="1"] .sidebar__dock-logout:hover {
  background: rgba(120, 120, 128, 0.2);
  border-color: rgba(60, 60, 67, 0.22);
  color: var(--text, #1c1c1e);
  text-decoration: none;
}

body[data-swift="1"] .btn--primary,
body[data-swift="1"] .btn-primary,
body[data-swift="1"] .nw-ds-foot-btn--primary:not(:disabled):not(.is-passive) {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-control);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    var(--accent);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 18px rgba(0, 122, 255, 0.28);
}

body[data-swift="1"] .btn--primary:hover,
body[data-swift="1"] .btn-primary:hover {
  background: var(--accent-hover, #0066d6);
  color: #ffffff;
}

body[data-swift="1"] .btn--success {
  border-radius: var(--radius-control);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04)),
    #198754;
  color: #ffffff;
}

body[data-swift="1"] .topbar__pwgen--modern {
  min-height: 32px;
  height: 32px;
  border-radius: var(--radius-control, 999px);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

body[data-swift="1"] .topbar__icons > button,
body[data-swift="1"] .topbar__icons .amt-settings > button[data-amt-settings],
body[data-swift="1"] .sidebar__toggle {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(60, 60, 67, 0.16);
  border-radius: var(--radius-control);
  background: rgba(120, 120, 128, 0.12);
  color: var(--text, #1c1c1e);
  box-shadow: none;
}

body[data-swift="1"] .topbar__icons > button:hover,
body[data-swift="1"] .topbar__icons .amt-settings > button[data-amt-settings]:hover,
body[data-swift="1"] .sidebar__toggle:hover {
  background: rgba(120, 120, 128, 0.2);
  color: var(--text, #1c1c1e);
}

body[data-swift="1"] .theme-switch--top.theme-switch--compact {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(60, 60, 67, 0.16);
  border-radius: var(--radius-control);
  background: rgba(120, 120, 128, 0.12);
}

body[data-swift="1"] .theme-switch--dock {
  display: none !important;
}

html[data-theme="dark"] body[data-swift="1"] .btn,
html[data-theme="dark"] body[data-swift="1"] .btn--ghost,
html[data-theme="dark"] body[data-swift="1"] .tool-hub__logout,
html[data-theme="dark"] body[data-swift="1"] .tool-hub__dns,
html[data-theme="dark"] body[data-swift="1"] .nw-hsa-dns-btn,
html[data-theme="dark"] body[data-swift="1"] .nw-hsa-status-btn,
html[data-theme="dark"] body[data-swift="1"] .nw-hsa-logout,
html[data-theme="dark"] body[data-swift="1"] .nw-ds-tool-btn,
html[data-theme="dark"] body[data-swift="1"] .nw-ds-foot-btn--ghost,
html[data-theme="dark"] body[data-swift="1"] .topbar__icons > button,
html[data-theme="dark"] body[data-swift="1"] .topbar__icons .amt-settings > button[data-amt-settings],
html[data-theme="dark"] body[data-swift="1"] .sidebar__toggle,
html[data-theme="dark"] body[data-swift="1"] .theme-switch--top,
html[data-theme="dark"] body[data-swift="1"] .theme-switch--dock {
  border-color: rgba(235, 235, 245, 0.16);
  background: rgba(118, 118, 128, 0.22);
  color: #f5f5f7;
}

html[data-theme="dark"] body[data-swift="1"] .btn:hover,
html[data-theme="dark"] body[data-swift="1"] .btn--ghost:hover,
html[data-theme="dark"] body[data-swift="1"] .tool-hub__logout:hover,
html[data-theme="dark"] body[data-swift="1"] .tool-hub__dns:hover,
html[data-theme="dark"] body[data-swift="1"] .nw-hsa-dns-btn:hover,
html[data-theme="dark"] body[data-swift="1"] .nw-hsa-status-btn:hover,
html[data-theme="dark"] body[data-swift="1"] .nw-hsa-logout:hover,
html[data-theme="dark"] body[data-swift="1"] .nw-ds-tool-btn:hover,
html[data-theme="dark"] body[data-swift="1"] .topbar__icons > button:hover,
html[data-theme="dark"] body[data-swift="1"] .topbar__icons .amt-settings > button[data-amt-settings]:hover,
html[data-theme="dark"] body[data-swift="1"] .sidebar__toggle:hover {
  background: rgba(118, 118, 128, 0.32);
  color: #f5f5f7;
}

/* —— Design-Skins (Darstellung) —— */
html[data-ds-skin="clean"] body[data-swift="1"],
html[data-ds-skin="superclean"] body[data-swift="1"] {
  --mesh-opacity: 0;
  --glass-blur: 0px;
  --glass-saturate: 100%;
  --glass-alpha: 1;
  --bg-page: #f4f5f7;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --glass-edge: rgba(60, 60, 67, 0.12);
  --glass-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --text: #1c1c1e;
  --text-muted: rgba(60, 60, 67, 0.55);
  --text-on-dark: #1c1c1e;
  --text-on-dark-muted: rgba(60, 60, 67, 0.55);
  --border: rgba(60, 60, 67, 0.16);
  --input-bg: #ffffff;
  --input-text: #1c1c1e;
  --shadow: none;
  color-scheme: light;
}

html[data-ds-skin="clean"] body[data-swift="1"]::before,
html[data-ds-skin="superclean"] body[data-swift="1"]::before {
  opacity: 0 !important;
  background: var(--bg-page) !important;
}

html[data-ds-skin="clean"] .admin-card,
html[data-ds-skin="clean"] .card,
html[data-ds-skin="superclean"] .admin-card,
html[data-ds-skin="superclean"] .card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  border-color: rgba(60, 60, 67, 0.12);
}

html[data-ds-skin="superclean"] body[data-swift="1"] {
  --radius-card: 0;
  --radius-control: 0;
  --radius-field: 0;
  --radius-nav: 0;
  --radius: 0;
}

html[data-ds-skin="superclean"] .app *,
html[data-ds-skin="superclean"] .nw-auth-gate * {
  border-radius: 0 !important;
}

html[data-ds-skin="power"] body[data-swift="1"] {
  --mesh-opacity: 0.28;
  --glass-blur: 6px;
  --glass-saturate: 120%;
  --glass-alpha: 0.94;
  --bg-page: #e8ecf2;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-sidebar: #f8f9fb;
  --glass-edge: rgba(0, 0, 0, 0.22);
  --glass-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.62);
  --border: rgba(0, 0, 0, 0.32);
  --accent: #0051d5;
  --accent-hover: #003fa8;
  --input-bg: #ffffff;
  --input-text: #000000;
}

html[data-theme="dark"][data-ds-skin="power"] body[data-swift="1"] {
  --mesh-opacity: 0.18;
  --bg-page: #050508;
  --bg-card: #16161a;
  --bg-header: #101014;
  --bg-sidebar: #0c0c10;
  --glass-edge: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.38);
  --accent: #5eb0ff;
  --accent-hover: #7fc0ff;
  --input-bg: #1c1c22;
  --input-text: #ffffff;
}

html[data-ds-skin="power"] .admin-card,
html[data-ds-skin="power"] .card {
  border: 1.5px solid var(--border) !important;
  box-shadow: var(--glass-shadow) !important;
  background: var(--bg-card) !important;
}

html[data-ds-skin="power"] .btn--primary,
html[data-ds-skin="power"] body[data-swift="1"] .btn--primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
