/* Preserved feature layouts, below the shared application design system. */
@layer legacy {
/* Beyond Reality — Dashboard. Gleiche Gestaltung wie die Website (reality-flasher):
   fast schwarze Flächen, feine graue Linien, ein weißer Akzent statt einer Farbe.
   Rot/Gelb/Grün nur dort, wo sie etwas bedeuten (Fehler, Warnung, Erfolg). */

:root {
  --bg-void: #050506;
  --bg-panel: #0a0b0d;
  --bg-panel-raised: #0f1012;
  --bg-panel-hover: #16171a;
  --border-subtle: #202124;
  --border-strong: #3c3e44;
  --text-primary: #f5f6f8;
  --text-secondary: #b8bbc3;
  --text-tertiary: #a7abb3;
  --accent: #f5f6f8;
  --accent-dim: #b7b9bf;
  --accent-soft: rgba(245, 246, 248, 0.07);
  --accent-glow: rgba(245, 246, 248, 0.28);
  --danger: #ff4d5e;
  --danger-soft: rgba(255, 77, 94, 0.12);
  --warn: #ffb020;
  --warn-soft: rgba(255, 176, 32, 0.12);
  --success: #35e08a;
  --success-soft: rgba(53, 224, 138, 0.12);

  --font-display: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 48px;
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 8px 24px rgba(0, 0, 0, 0.45);
  --sidebar-w: 228px;
  --topbar-h: 56px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background-color: var(--bg-void);
  background-image: radial-gradient(ellipse 70% 45% at 50% -10%, rgba(255, 255, 255, 0.05), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
main p, main li, main dd, main code { overflow-wrap: anywhere; }
button, input, select, textarea { font-family: inherit; color: inherit; font-size: inherit; }
a { color: var(--accent); }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
.mono { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent-glow); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ------------------------------------------------------------- Gerüst */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100dvh; }
.shell > :not(.sidebar) { min-width: 0; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 8px;
  padding: 12px 8px; background: rgba(7, 7, 8, 0.92); border-right: 1px solid var(--border-subtle); overflow-y: auto; overflow-x: hidden;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 8px; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
.brand-name .accent { color: var(--accent-dim); font-weight: 500; }
.brand-sub { font-size: 11px; color: var(--text-tertiary); }
.guild-select { padding: 0 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-search {
  margin: 0 8px; height: 36px; width: calc(100% - 16px); padding: 0 10px;
  background: var(--bg-panel-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-primary);
}
.nav-search:focus { border-color: var(--accent); outline: none; }
.nav-group { margin: 12px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); }
.nav-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  margin: 2px 0 0; padding: 6px 8px; min-height: 32px; border: none; border-radius: var(--radius-sm);
  background: none; color: var(--text-tertiary); cursor: pointer;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: left;
}
.nav-cat:hover { color: var(--text-primary); background: var(--bg-panel-hover); }
.nav-cat svg { width: 14px; height: 14px; flex: none; transition: transform 160ms var(--ease); }
.nav-cat[aria-expanded="true"] svg { transform: rotate(90deg); }
.nav-subbtn {
  display: flex; align-items: center; gap: 8px; width: calc(100% - 8px); margin: 2px 0 2px 8px;
  padding: 7px 10px; border: none; border-radius: var(--radius-sm); background: none; color: var(--text-secondary);
  cursor: pointer; font-size: 12.5px; font-weight: 600; text-align: left; min-height: 36px;
}
.nav-subbtn:hover { color: var(--text-primary); background: var(--bg-panel-hover); }
.nav-subbtn svg { width: 13px; height: 13px; flex: none; color: var(--text-tertiary); transition: transform 160ms var(--ease); }
.nav-subbtn[aria-expanded="true"] svg { transform: rotate(90deg); }
.nav-sub { margin: 8px 10px 2px 18px; font-size: 11px; font-weight: 600; color: var(--text-tertiary); }
.nav-item {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: var(--radius-sm); border: 1px solid transparent;
  color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 13px; position: relative; min-width: 0;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.nav-item.sub { margin-left: 0; }
.nav-item svg { width: 15px; height: 15px; flex: none; }
.nav-item .nav-label { min-width: 0; overflow-wrap: anywhere; }
.nav-item:hover { background: var(--bg-panel-hover); color: var(--text-primary); }
.nav-item.active { background: var(--accent-soft); color: var(--text-primary); border-color: var(--border-subtle); }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--accent); border-radius: 2px; }
.nav-off { opacity: 0.72; }
.nav-item .nav-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px var(--warn); flex: none; }
.nav-hit { align-items: flex-start; }
.nav-hit small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--text-tertiary); }
.nav-empty { padding: 8px 10px; color: var(--text-tertiary); font-size: 13px; }
.page-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.page-tabs a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-subtle); color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 550;
}
.page-tabs a.active { background: var(--accent-soft); color: var(--text-primary); border-color: transparent; }
.field-group { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.more { margin-top: 8px; border-top: 1px solid var(--border-subtle); }
.more > summary { cursor: pointer; list-style: none; padding: 10px 0; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: '▸ '; color: var(--text-tertiary); }
.more[open] > summary::before { content: '▾ '; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.group-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.feature-list { display: flex; flex-direction: column; }
.feature-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; }
.feature-copy { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feature-name { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.feature-desc { color: var(--text-tertiary); font-size: 12.5px; overflow-wrap: anywhere; }
.feature-access { flex: 1 1 200px; max-width: 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.feature-access-label { font-size: 11px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-tertiary); }
.feature-access select { width: 100%; max-width: 100%; }
.nav-edit { display: flex; flex-direction: column; gap: 6px; }
.nav-edit-row { display: flex; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-panel); flex-wrap: wrap; min-width: 0; }
.nav-edit-row.is-on { border-color: var(--accent); }
.nav-edit-row .text-input { flex: 1; min-width: 0; height: 36px; }
.nav-grip { color: var(--text-tertiary); cursor: grab; width: 18px; text-align: center; flex: none; }
.turn-up { transform: rotate(-90deg); }
.turn-down { transform: rotate(90deg); }
@media (max-width: 720px) {
  .nav-edit-row { flex-wrap: wrap; }
  .nav-edit-row .feature-copy { flex: 1 1 100%; }
}
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel); }
.user-chip img, .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-panel-hover); flex: none; object-fit: cover; }
.user-chip .name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .sub { font-size: 11px; color: var(--text-tertiary); }
.user-chip .who { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sidebar .locale-control { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-secondary); font-size: 12px; }
.sidebar .locale-control select { width: 132px; max-width: 55%; height: 34px; padding: 0 8px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--surface-2); color: var(--text-primary); }
.topbar .locale-control { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 12px; }
.topbar .locale-control select { min-width: 116px; height: 34px; padding: 0 9px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--surface-2); color: var(--text-primary); }
.servers-page-head { align-items: flex-start; }
.servers-page-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.standalone .locale-control, .login-card .locale-control { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 12px; }
.standalone .locale-control select, .login-card .locale-control select { min-width: 116px; height: 36px; padding: 0 10px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--surface-2); color: var(--text-primary); }

.topbar { display: none; }
.main:focus { outline: none; }
/* Route content is readable immediately; do not fade whole forms or tables. */
.main { min-width: 0; padding: 32px clamp(28px, 3vw, 52px) 96px; max-width: 1680px; width: min(calc(100vw - var(--sidebar-w)), 1680px); margin: 0; overflow-x: clip; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head > div:not(.page-actions) { min-width: 0; flex: 1 1 240px; }
.page-head > .page-actions { flex: 0 1 auto; min-width: 0; }
.page-title { font-size: 30px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.15; overflow-wrap: anywhere; }
.page-sub { color: var(--text-secondary); margin-top: 6px; max-width: 68ch; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--text-tertiary); text-decoration: none; font-size: 13px; margin-bottom: 8px; }
.crumb:hover { color: var(--text-primary); }
.crumb .sep { opacity: 0.55; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: min(84vw, 300px); transform: translateX(-102%); transition: transform 200ms var(--ease); box-shadow: 0 0 60px rgba(0, 0, 0, 0.7); }
  body.nav-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.6); }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 12px; height: var(--topbar-h); padding: 0 16px; background: rgba(5, 5, 6, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-subtle); }
  .topbar .title { font-family: var(--font-display); font-weight: 700; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .locale-control { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 12px; }
  .locale-control select { min-width: 116px; height: 34px; padding: 0 9px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--surface-2); color: var(--text-primary); }
  .main { padding: 20px 16px 96px; }
  .main { width: auto; }
  .page-title { font-size: 26px; }
}

/* ------------------------------------------------------------- Bausteine */
.panel { background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-panel); }
.panel-pad { padding: 20px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.panel-head > div { min-width: 0; flex: 1 1 180px; }
.panel-head > .row { flex: 0 1 auto; justify-content: flex-end; }
.panel-title { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.panel-note { color: var(--text-tertiary); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.panel-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.panel-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-subtle); background: rgba(255, 255, 255, 0.012); border-radius: 0 0 var(--radius-lg) var(--radius-lg); flex-wrap: wrap; }
.panel-foot .status { margin-right: auto; font-size: 12.5px; color: var(--text-tertiary); }
.panel-foot .status.dirty { color: var(--warn); }
.panel-foot .status.dirty::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--warn); vertical-align: 1px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 100%; min-width: 0; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overview-server { display: flex; flex-direction: column; gap: 18px; }
.overview-server-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.overview-server-head .avatar { width: 44px; height: 44px; }
.overview-server-copy { min-width: 0; flex: 1; }
.overview-server-copy strong { display: block; font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.overview-server-copy .dim { margin-top: 2px; }
.overview-server-health { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.overview-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.overview-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.overview-section-title { font-size: 19px; font-weight: 650; }
.overview-section-note { color: var(--text-tertiary); font-size: 13px; }
.overview-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.overview-shortcut { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel); color: var(--text-primary); text-decoration: none; font-weight: 600; transition: border-color 120ms var(--ease), background 120ms var(--ease); }
.overview-shortcut:hover { background: var(--bg-panel-hover); border-color: var(--border-strong); }
.overview-shortcut svg { width: 16px; height: 16px; flex: none; color: var(--text-tertiary); }
.overview-lower { align-items: start; }
.overview-modules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.overview-modules .module { min-width: 0; }
.overview-cases .list-item { padding-left: 18px; padding-right: 18px; }
.staff-dashboard-grid { align-items: start; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); }
.staff-table { table-layout: auto; }
.staff-table th:nth-child(1), .staff-table td:nth-child(1) { min-width: 220px; }
.staff-table th:nth-child(2), .staff-table td:nth-child(2) { min-width: 150px; }
.staff-table th:nth-child(3), .staff-table td:nth-child(3) { min-width: 82px; }
.staff-table th:nth-child(4), .staff-table td:nth-child(4) { min-width: 120px; }
.staff-table th:nth-child(5), .staff-table td:nth-child(5) { min-width: 104px; }
.staff-table th:last-child, .staff-table td:last-child { min-width: 156px; white-space: nowrap; }
.staff-table td:nth-child(2) .chip { white-space: normal; overflow-wrap: anywhere; }
.staff-open { white-space: nowrap; min-width: 126px; }
.staff-who { min-width: 0; }
.staff-who > div { min-width: 0; }
.staff-who .staff-name { overflow-wrap: anywhere; }
.staff-support-grid { align-items: stretch; }
.staff-table th:nth-child(3), .staff-table td:nth-child(3) { min-width: 190px; }
.staff-status-cell { gap: 6px; }
.staff-status-cell .dim { line-height: 1.45; overflow-wrap: anywhere; }
.staff-ping-preference { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 14px; padding: 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
.staff-ping-preference > .row { flex: 1 1 220px; }
.staff-ping-preference > p { flex: 1 1 100%; margin: 0; }
.staff-self-metrics { min-width: 0; }
.staff-self-settings { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); align-items: stretch; gap: 16px; min-width: 0; }
.staff-availability-preference { min-width: 0; padding: 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); align-content: start; }
.staff-self-settings .btn { justify-self: start; }
@media (max-width: 760px) { .staff-self-settings { grid-template-columns: minmax(0, 1fr); } }
.staff-feedback-recent { margin-top: 4px; }
.staff-rating-distribution { display: grid; gap: 8px; min-width: 0; }
.staff-rating-row { display: grid; grid-template-columns: 92px minmax(60px, 1fr) 38px; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 13px; }
.staff-rating-row progress { display: block; width: 100%; height: 8px; accent-color: var(--accent); }
.staff-rating-row > span:last-child { text-align: right; }
.staff-nickname-rule, .staff-nickname-rule-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) auto; align-items: end; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); min-width: 0; }
.staff-nickname-rule-add { border-top: 1px solid var(--border-subtle); border-bottom: 0; }
.staff-nickname-rule > *, .staff-nickname-rule-add > * { min-width: 0; }
.staff-live-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.staff-team-day-summary { align-items: stretch; }
.staff-heatmap-panel { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
.staff-heatmap-panel > p { margin: 0; }
.staff-presence-heatmap { display: grid; gap: 4px; min-width: 0; }
.staff-heatmap-hours, .staff-heatmap-row { display: grid; grid-template-columns: 26px repeat(24, minmax(4px, 1fr)); align-items: center; gap: 3px; min-width: 0; }
.staff-heatmap-hours { grid-template-columns: 26px repeat(8, minmax(0, 1fr)); }
.staff-heatmap-hours > span { min-width: 0; color: var(--text-secondary); font-size: 11px; text-align: left; }
.staff-heatmap-day { color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.staff-heatmap-cell { display: block; width: 100%; min-width: 0; height: 18px; border-radius: 2px; background: var(--bg-panel); }
.staff-personal-hourly { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); grid-template-rows: 48px auto; align-items: end; gap: 6px 3px; min-width: 0; padding: 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
.staff-personal-hour { display: block; align-self: end; width: 100%; min-width: 0; border-radius: 3px 3px 0 0; background: var(--accent); opacity: .82; }
.staff-personal-hour-labels { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); min-width: 0; color: var(--text-tertiary); font-size: 9px; line-height: 1.2; text-align: center; }
.staff-personal-hour-labels > span { min-width: 0; }
.staff-live-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 8px 12px; min-width: 0; padding: 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.staff-live-copy { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.staff-live-badges { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.staff-live-name { min-width: 0; overflow-wrap: anywhere; }
.staff-live-row .chip { white-space: normal; overflow-wrap: anywhere; }
.staff-health-list { display: grid; gap: 8px; }
.staff-health-row { display: flex; align-items: flex-start; gap: 10px; min-width: 0; color: var(--text-secondary); }
.staff-health-row .chip { flex: none; }
.staff-my-tickets { display: grid; gap: 8px; }
.staff-my-ticket { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-primary); text-decoration: none; }
.staff-my-ticket:hover { border-color: var(--border-strong); background: var(--bg-panel-hover); }
.staff-my-ticket strong { min-width: 0; overflow-wrap: anywhere; }
.staff-my-ticket .dim { margin-left: auto; }
.staff-profile-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.staff-profile-actions .btn-danger { margin-left: 8px; }
.sort-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.sort-btn:hover { color: var(--text-primary); }
.staff-board-name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.staff-board-stats { margin-left: auto; text-align: right; }
@media (max-width: 1100px) { .staff-dashboard-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1360px) { .overview-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); } }
.section-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.section-label svg { width: 14px; height: 14px; }
.muted { color: var(--text-secondary); }
.dim { color: var(--text-tertiary); }
.right { margin-left: auto; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; height: auto; padding: 8px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border-strong); background: var(--bg-panel-raised); color: var(--text-primary); font-weight: 600; cursor: pointer; user-select: none;
  line-height: 1.25; text-align: center; white-space: normal; overflow-wrap: anywhere; max-width: 100%;
  transition: transform 80ms var(--ease), border-color 120ms var(--ease), background 120ms var(--ease), opacity 120ms var(--ease), box-shadow 150ms var(--ease);
}
.btn:hover { border-color: var(--text-secondary); background: var(--bg-panel-hover); box-shadow: 0 0 18px var(--accent-soft); }
a.btn { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn.is-busy { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-busy { pointer-events: none; }
.btn.is-ok { border-color: var(--success); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #0a0a0c; }
.btn-primary:hover { background: #fff; border-color: #fff; box-shadow: 0 0 24px var(--accent-glow); }
.btn-secondary { background: var(--bg-panel-raised); border-color: var(--border-strong); color: var(--text-primary); }
.btn-success { color: var(--success); border-color: color-mix(in srgb, var(--success) 45%, var(--border-strong)); background: var(--success-soft); }
.btn-success:hover { border-color: var(--success); background: color-mix(in srgb, var(--success-soft) 80%, var(--bg-panel-hover)); }
.btn-warning { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--border-strong)); background: var(--warn-soft); }
.btn-warning:hover { border-color: var(--warn); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--border-strong)); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-sm { min-height: 32px; height: auto; padding: 6px 12px; font-size: 13px; }
.btn-lg { min-height: var(--control-lg); padding: 11px 20px; font-size: 15px; }
.btn-ghost { background: none; border-color: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-panel-hover); box-shadow: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); background: var(--bg-panel); color: var(--text-secondary); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-panel-hover); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { font-size: 13.5px; font-weight: 600; }
.field-hint { font-size: 12.5px; color: var(--text-tertiary); }
.field-error { font-size: 12.5px; color: var(--danger); }
.field.invalid .text-input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.text-input, select, textarea {
  width: 100%; height: 42px; padding: 0 12px; background: var(--bg-panel-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  color: var(--text-primary); appearance: none; transition: border-color 120ms var(--ease);
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-tertiary) 50%), linear-gradient(135deg, var(--text-tertiary) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px;
}
.text-input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.text-input:disabled, select:disabled, textarea:disabled { opacity: 0.5; cursor: not-allowed; }
input[type="number"] { font-family: var(--font-mono); }
.input-unit { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 8px; }
.input-suffix { display: flex; align-items: center; gap: 8px; }
.input-suffix .suffix { color: var(--text-tertiary); font-size: 13px; white-space: nowrap; }
.color-field { display: flex; gap: 8px; align-items: center; }
.color-field input[type="color"] { width: 46px; height: 42px; padding: 3px; background: var(--bg-panel-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); cursor: pointer; }
.color-field .text-input { max-width: 130px; font-family: var(--font-mono); }

.switch-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0; }
.switch-row .text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.toggle { position: relative; width: 44px; height: 26px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-panel-raised); cursor: pointer; flex: none; padding: 0; transition: background 150ms var(--ease), border-color 150ms var(--ease); }
.toggle .knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-secondary); transition: transform 150ms var(--ease), background 150ms var(--ease); }
.toggle.on { background: var(--accent-dim); border-color: var(--accent); }
.toggle.on .knob { transform: translateX(18px); background: #0a0a0c; }
.toggle:disabled { opacity: 0.45; cursor: not-allowed; }

.segmented { display: inline-flex; flex-wrap: wrap; max-width: 100%; background: var(--bg-panel-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 3px; gap: 3px; }
.segmented button { border: none; background: none; color: var(--text-secondary); padding: 7px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 120ms var(--ease), color 120ms var(--ease); white-space: nowrap; }
.segmented button:hover { color: var(--text-primary); }
.segmented button.active { background: var(--accent); color: #0a0a0c; }
.segmented.block { display: flex; }
.segmented.block button { flex: 1; }

/* Mehrfachauswahl (Rollen/Kanäle) */
.picker { display: flex; flex-direction: column; gap: 8px; }
.picker-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border-strong); color: var(--text-secondary); max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.chip.ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, var(--border-strong)); background: var(--success-soft); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--border-strong)); background: var(--warn-soft); }
.chip.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border-strong)); background: var(--danger-soft); }
.chip.solid { background: var(--accent-soft); color: var(--text-primary); }
.chip .x { background: none; border: none; color: inherit; cursor: pointer; padding: 0; line-height: 1; font-size: 14px; opacity: 0.7; }
.chip .x:hover { opacity: 1; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.chip svg { width: 13px; height: 13px; flex: none; }
.chip-role .swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--text-tertiary); }

/* Ein Klapp-System für Karten, Formulargruppen und Unterbereiche */
.fold { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
.fold.panel { background: var(--bg-panel); border-radius: var(--radius-lg); box-shadow: var(--shadow-panel); }
.fold.danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--border-subtle)); }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 48px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .caret { width: 14px; height: 14px; flex: none; color: var(--text-tertiary); transition: transform 160ms var(--ease); }
.fold[open] > summary .caret { transform: rotate(90deg); }
.fold[open] > summary { border-bottom: 1px solid var(--border-subtle); }
.fold-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.fold-title { font-weight: 650; }
.fold.danger > summary .fold-title { color: var(--danger); }
.fold-note { font-size: 12.5px; font-weight: 400; color: var(--text-tertiary); }
.fold-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fold > summary .sub-state { margin-left: auto; }
.fold-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.fold-body > .panel-body { padding: 8px 0 0; }
.fold-body > .panel-foot { margin: 4px -16px -16px; }
.fold .fold { box-shadow: none; background: rgba(255, 255, 255, 0.02); }
.fold-bar { display: flex; gap: 6px; flex-wrap: wrap; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .fold::details-content { transition: height 200ms var(--ease), content-visibility 200ms allow-discrete; height: 0; overflow: clip; }
  .fold[open]::details-content { height: auto; }
}
.label-line { display: flex; align-items: center; gap: 6px; }
.tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: none; border-radius: 50%; background: transparent; color: var(--text-tertiary); cursor: help; flex: none; }
.tip svg { width: 15px; height: 15px; }
.tip:hover, .tip:focus-visible { color: var(--text-primary); }
.tip-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: min(260px, 70vw); padding: 8px 10px; border-radius: var(--radius-sm); background: #16171a; border: 1px solid var(--border-strong); color: var(--text-primary); font-size: 12.5px; font-weight: 500; line-height: 1.4; text-align: left; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity 140ms var(--ease), transform 140ms var(--ease); }
.tip:hover .tip-pop, .tip:focus-visible .tip-pop { opacity: 1; transform: none; }
.empty-title { color: var(--text-secondary); font-weight: 600; }
.empty-hint { margin-top: 6px; color: var(--text-tertiary); font-size: 13px; }
.subgroup { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
.subgroup > summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.subgroup > summary::-webkit-details-marker { display: none; }
.subgroup > summary .caret { width: 14px; height: 14px; transition: transform 160ms var(--ease); color: var(--text-tertiary); }
.subgroup[open] > summary .caret { transform: rotate(90deg); }
.subgroup .sub-body { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 16px; }
.subgroup .sub-state { margin-left: auto; }
.plain-group { display: flex; flex-direction: column; gap: 16px; padding: 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.plain-group > .section-label { margin-bottom: -4px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-grid .wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .field-grid { grid-template-columns: minmax(0, 1fr); } }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row-item { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto; gap: 12px; align-items: end; padding: 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }

/* Listen & Tabellen */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: flex-start; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--border-subtle); min-width: 0; }
.list-item:first-child { border-top: none; }
.list-item.link { cursor: pointer; text-decoration: none; color: inherit; transition: background 120ms var(--ease); }
.list-item.link:hover { background: var(--bg-panel-hover); }
.list-item > svg { width: 16px; height: 16px; color: var(--text-tertiary); flex: none; margin-top: 2px; }
.list-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.list-title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.list-title .cmd { font-family: var(--font-mono); font-size: 14px; overflow-wrap: anywhere; }
.list-desc { color: var(--text-secondary); font-size: 13px; overflow-wrap: anywhere; }
.list-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.list-head { padding: 10px 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); display: flex; gap: 10px; align-items: center; }
.list-head:first-child { border-top: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.empty { padding: 36px 20px; text-align: center; color: var(--text-tertiary); }
.table-wrap { overflow-x: auto; max-width: 100%; }
.staff-table th:nth-child(1), .staff-table td:nth-child(1) { min-width: 220px; }
.staff-table th:nth-child(2), .staff-table td:nth-child(2) { min-width: 160px; }
.staff-table th:nth-child(3), .staff-table td:nth-child(3) { min-width: 82px; }
.staff-table th:nth-child(4), .staff-table td:nth-child(4) { min-width: 110px; }
.staff-table td:nth-child(2) .chip, .staff-table td:last-child .chip { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 620px) {
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head > div:not(.page-actions) { flex: 0 1 auto; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
  .table-wrap table { min-width: 640px; }
  .staff-table { min-width: 790px !important; }
  .hbar { flex-wrap: wrap; }
  .ellipsis { max-width: 46vw; }
  .tile .value { font-size: 26px; }
  .overview-shortcuts, .overview-modules { grid-template-columns: minmax(0, 1fr); }
  .overview-server-head { align-items: flex-start; }
  .overview-server-health { gap: 6px; }
  .staff-table { min-width: 910px !important; }
  .staff-profile-actions { justify-content: flex-start; }
  .staff-profile-actions .btn-danger { margin-left: 0; }
  .list-item { align-items: flex-start; }
  .segmented button { min-height: 36px; }
}
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); padding: 10px 16px; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
td { padding: 12px 16px; border-top: 1px solid var(--border-subtle); vertical-align: top; overflow-wrap: anywhere; min-width: 0; }
tbody tr:first-child td { border-top: none; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--bg-panel-hover); }
td.num, th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }

/* Kennzahlen */
.tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.tile:hover { border-color: var(--border-strong); }
.tile .label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.tile .value { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .tile .sub { font-size: 13px; color: var(--text-secondary); }
.module { padding: 14px 16px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; transition: border-color 120ms var(--ease), background 120ms var(--ease); }
.module:hover { border-color: var(--border-strong); background: var(--bg-panel-hover); }
.module svg { width: 20px; height: 20px; color: var(--text-secondary); flex: none; }
.module .m-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.module .m-title { font-weight: 600; }
.module .m-sub { font-size: 12.5px; color: var(--text-tertiary); }

/* Diagramme */
.chart { width: 100%; }
.chart .plot { position: relative; padding-left: 40px; }
.chart .ax-y { position: absolute; left: 0; top: 0; bottom: 0; width: 34px; }
.chart .ax-y span { position: absolute; right: 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); line-height: 1; max-width: 36px; overflow: hidden; }
.chart .area { position: relative; height: 100%; background: repeating-linear-gradient(to top, var(--border-subtle) 0, var(--border-subtle) 1px, transparent 1px, transparent 25%); border-bottom: 1px solid var(--border-subtle); }
.chart .area::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--border-subtle); }
.chart .bars { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 0 2px; }
.chart .bar-slot { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.chart .bars.single .bar-slot { flex: 0 1 44px; }
.chart .bar { width: 100%; background: var(--accent); opacity: 0.86; border-radius: 3px 3px 0 0; transition: opacity 120ms var(--ease); }
.chart .bar-slot:hover .bar { opacity: 1; }
.chart .lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart .line { fill: none; stroke: var(--success); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart .line.alt { stroke: var(--danger); }
.chart .ax-x { position: relative; height: 18px; margin: 6px 2px 0 42px; }
.chart .ax-x-label { position: absolute; top: 0; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.35; color: var(--text-tertiary); white-space: nowrap; }
.chart .ax-x-label.start { transform: none; }
.chart .ax-x-label.center { transform: translateX(-50%); }
.chart .ax-x-label.end { transform: translateX(-100%); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-secondary); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbar { display: flex; align-items: center; gap: 10px; }
.hbar .track { flex: 1; height: 8px; border-radius: 999px; background: var(--bg-panel-raised); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 999px; background: var(--accent-dim); }

/* Banner, Toasts, Dialoge */
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--bg-panel-raised); flex-wrap: wrap; }
.banner.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--border-strong)); background: var(--warn-soft); }
.banner.danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--border-strong)); background: var(--danger-soft); }
.banner.ok { border-color: color-mix(in srgb, var(--success) 45%, var(--border-strong)); background: var(--success-soft); }
.banner svg { width: 18px; height: 18px; flex: none; }
.banner .b-text { flex: 1; min-width: 200px; }
.toasts { position: fixed; z-index: 100; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: min(92vw, 380px); }
.toast { padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-panel-raised); border: 1px solid var(--border-strong); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); display: flex; gap: 10px; align-items: flex-start; animation: rise 180ms var(--ease); }
.toast.ok { border-color: color-mix(in srgb, var(--success) 50%, var(--border-strong)); }
.toast.error { border-color: color-mix(in srgb, var(--danger) 55%, var(--border-strong)); }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.toast.ok svg { color: var(--success); }
.toast.error svg { color: var(--danger); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(4px); animation: fade 140ms var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(560px, 100%); max-height: min(86dvh, 720px); display: flex; flex-direction: column; background: var(--bg-panel); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7); animation: rise 180ms var(--ease); }
.modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-subtle); }
.modal-body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-subtle); }
.skeleton { border-radius: var(--radius-md); background: linear-gradient(90deg, var(--bg-panel) 25%, var(--bg-panel-hover) 50%, var(--bg-panel) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; min-height: 90px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-secondary); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .grow { flex: 1; min-width: 200px; }
.logbox { font-family: var(--font-mono); font-size: 12px; background: var(--bg-void); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 12px; max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.logline { white-space: pre-wrap; word-break: break-word; color: var(--text-secondary); }
.logline.warn { color: var(--warn); }
.logline.error { color: var(--danger); }
.embed-preview { display: flex; border-radius: 6px; background: var(--bg-panel-raised); overflow: hidden; border: 1px solid var(--border-subtle); }
.embed-preview .stripe { width: 5px; flex: none; }
.embed-preview .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.embed-preview .t { font-weight: 600; }
.presence-preview { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: var(--bg-panel-raised); }
.status-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg-panel-raised); box-shadow: 0 0 0 1px var(--border-strong); }
.kbd { font-family: var(--font-mono); font-size: 12px; padding: 1px 6px; border: 1px solid var(--border-strong); border-radius: 5px; color: var(--text-secondary); }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row code { flex: 1; min-width: 0; padding: 8px 10px; background: var(--bg-void); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Anmeldung & Einzelseiten */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(440px, 100%); padding: 36px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.login-card .brand-mark { width: 54px; height: 54px; }
.login-card h1 { font-size: 34px; font-weight: 700; }
.login-card h1 .accent { color: var(--accent-dim); font-weight: 500; }
.standalone-body { display: grid; place-items: center; min-height: 100dvh; padding: 24px 16px; }
.standalone { width: min(560px, 100%); padding: 30px 28px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-panel); box-shadow: var(--shadow-panel); display: flex; flex-direction: column; gap: 14px; }
.standalone h1 { font-size: 26px; }
.standalone ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-secondary); }
.standalone code { padding: 2px 6px; background: var(--bg-void); border: 1px solid var(--border-subtle); border-radius: 5px; word-break: break-all; }
.th-sort { cursor: pointer; user-select: none; }
.th-sort:hover { color: var(--text-primary); }
.staff-who { display: flex; align-items: center; gap: 10px; }
.avatar.lg { width: 72px; height: 72px; font-size: 28px; }
.staff-profile { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.staff-profile-main { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.rank-row:first-of-type { border-top: none; }
.rank-pos { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; background: var(--bg-panel-raised); color: var(--text-secondary); flex: none; }
.rank-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rank-actions { display: flex; gap: 6px; flex: none; }
.icon-btn.up svg { transform: rotate(-90deg); }
.icon-btn.down svg { transform: rotate(90deg); }
.rank-add { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(170px, .8fr) minmax(180px, 1fr) auto; gap: 12px; align-items: end; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.preview-zip {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  background: #f5f6f8; color: #111; font: 600 14px/1 system-ui, sans-serif;
  text-decoration: none; padding: 14px 18px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.preview-zip:hover { background: #fff; color: #111; }
body:not(:has(.preview-open:checked)) > .preview-zip { display: none; }
.preview-dl {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  padding: 24px; background: radial-gradient(900px 420px at 50% 0%, rgba(245, 246, 248, 0.06), transparent 60%), var(--bg-void);
}
body:has(.preview-open:checked) .preview-dl { display: none; }
.preview-dl-card {
  width: min(440px, 100%); padding: 32px 28px; border: 1px solid var(--border-subtle);
  border-radius: 18px; background: var(--bg-panel); box-shadow: var(--shadow-panel);
  display: flex; flex-direction: column; gap: 12px;
}
.preview-dl-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); }
.preview-dl-card h1 { margin: 0; font-family: var(--font-display); font-size: 40px; letter-spacing: 0.02em; line-height: 1; }
.preview-dl-card p { margin: 0; color: var(--text-secondary); }
.preview-dl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.preview-dl .preview-zip { position: static; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
.preview-dl-skip {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 18px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-primary);
  cursor: pointer; font: 600 14px/1 system-ui, sans-serif;
}
.preview-dl-skip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

/* Plattformweite Superadmin-Zentrale */
.global-entry { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 18px; margin: 26px 0; padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border-subtle)); border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 13%, var(--bg-panel)), var(--bg-panel)); }
.global-entry-icon, .global-admin-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg-panel)); font-size: 23px; }
.global-entry-copy { min-width: 0; }
.global-entry-copy h2 { margin: 3px 0 4px; font-size: 19px; }
.global-entry-copy p { margin: 0; color: var(--text-secondary); }
.global-entry > .btn { display: inline-flex; align-items: center; gap: 8px; }
.global-admin { min-width: 0; }
.global-admin-banner { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--border-subtle); border-radius: 16px; background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 11%, var(--bg-panel)), var(--bg-panel) 55%); }
.global-admin-banner > div:nth-child(2) { flex: 1; min-width: 0; }
.global-admin-mark { flex: none; }
.global-admin-banner > .chip { flex: none; }
.global-admin-banner strong { display: block; font-size: 18px; margin: 4px 0; }
.global-admin-banner p { margin: 0; color: var(--text-secondary); }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.global-tabs { display: flex; gap: 5px; overflow-x: auto; border-bottom: 1px solid var(--border-subtle); scrollbar-width: thin; }
.global-tabs a { flex: none; padding: 13px 15px 11px; color: var(--text-secondary); border-bottom: 2px solid transparent; text-decoration: none; font-weight: 650; }
.global-tabs a:hover, .global-tabs a.active { color: var(--text-primary); }
.global-tabs a.active { border-bottom-color: var(--accent); }
.global-filters { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(280px, 1.5fr); align-items: end; gap: 16px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--bg-panel); }
.global-filters > div { min-width: 0; }
.global-filter-range { width: 100%; }
.global-server-picker { position: relative; min-width: 0; }
.global-server-picker > summary { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 9px; cursor: pointer; list-style: none; }
.global-server-picker > summary::-webkit-details-marker { display: none; }
.global-server-picker > summary .caret { margin-left: auto; transform: rotate(90deg); }
.global-server-picker[open] > summary .caret { transform: rotate(-90deg); }
.global-picker-body { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; right: 0; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-panel); box-shadow: var(--shadow-panel); }
.global-picker-actions { flex-wrap: wrap; }
.global-filter-search { width: 100%; }
.global-server-options { max-height: 280px; overflow: auto; display: grid; gap: 3px; }
.global-server-option { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border-radius: 8px; cursor: pointer; }
.global-server-option:hover { background: var(--bg-panel-raised); }
.global-option-copy { display: grid; flex: 1; min-width: 0; gap: 2px; }
.global-option-copy strong, .global-option-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-option-copy small { color: var(--text-tertiary); font-family: var(--font-mono); }
.global-selection-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.global-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.global-metric { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 17px 18px; }
.global-metric-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--text-secondary); }
.global-metric-top > svg { flex: none; color: var(--accent); }
.global-metric-value { max-width: 100%; overflow-wrap: anywhere; color: var(--text-primary); font-size: clamp(24px, 2.1vw, 32px); line-height: 1.12; font-variant-numeric: tabular-nums; }
.global-charts > .panel { min-width: 0; }
.global-feedback-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.global-feedback-summary .global-metric { padding: 12px; }
.global-feedback-summary .global-metric-value { font-size: 22px; }
.global-ranking { display: grid; gap: 12px; }
.global-rank-row { display: grid; grid-template-columns: 28px minmax(80px, 1fr) minmax(100px, auto); align-items: center; gap: 10px; }
.global-rank-index { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--bg-panel-raised); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.global-rank-copy { display: grid; min-width: 0; gap: 6px; }
.global-rank-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-rank-track { height: 5px; overflow: hidden; border-radius: 99px; background: var(--bg-panel-raised); }
.global-rank-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.global-rank-row > span:last-child { color: var(--text-secondary); text-align: right; white-space: nowrap; }
.global-table-wrap { max-width: 100%; overflow-x: auto; }
.global-server-table { width: 100%; min-width: 820px; }
.global-server-table td:first-child { min-width: 180px; }
.global-server-name { display: block; max-width: 230px; overflow-wrap: anywhere; }
.global-server-table td:first-child small { display: block; margin-top: 3px; }
.global-server-table td:nth-last-child(2), .global-server-table td:nth-last-child(2) .chip { white-space: nowrap; }
.global-actions-cell { min-width: 190px; }
.global-command-table { width: 100%; min-width: 860px; table-layout: fixed; }
.global-command-table th:nth-child(1), .global-command-table td:nth-child(1) { width: 27%; }
.global-command-table th:nth-child(2), .global-command-table td:nth-child(2) { width: 22%; }
.global-command-table th:nth-child(3), .global-command-table td:nth-child(3) { width: 11%; }
.global-command-table th:nth-child(4), .global-command-table td:nth-child(4) { width: 20%; }
.global-command-table th:nth-child(5), .global-command-table td:nth-child(5) { width: 20%; }
.global-command-table td:first-child strong, .global-command-table td:first-child small { display: block; }
.global-command-table td:first-child small { margin-top: 3px; color: var(--text-tertiary); font-size: 11px; overflow-wrap: anywhere; }
.global-invite-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; max-width: 230px; color: var(--text-secondary); font-size: 12px; overflow-wrap: anywhere; }
.global-feature-note { color: var(--text-secondary); }
.global-embedded { min-width: 0; }
.global-embedded > .stack { min-width: 0; }
.global-feature-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.global-feature-shortcuts a { padding: 8px 11px; border: 1px solid var(--border-subtle); border-radius: 9px; color: var(--text-primary); text-decoration: none; }

@media (min-width: 1200px) {
  .global-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .global-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-filters { grid-template-columns: minmax(0, 1fr); }
  .global-tabs { flex-wrap: wrap; overflow: visible; }
  .global-tabs a { flex: 1 1 auto; text-align: center; }
  .global-command-table-wrap { overflow: visible; }
  .global-command-table { display: block; width: 100%; min-width: 0 !important; }
  .global-command-table thead { display: none; }
  .global-command-table tbody { display: grid; gap: 12px; }
  .global-command-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; min-width: 0; padding: 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel); }
  .global-command-table tbody td { display: grid; align-content: start; gap: 5px; width: 100% !important; min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .global-command-table tbody td::before { content: attr(data-label); color: var(--text-tertiary); font-size: 10px; font-weight: 700; letter-spacing: .045em; line-height: 1.3; text-transform: uppercase; }
  .global-command-table tbody td:first-child, .global-command-table tbody td:last-child { grid-column: 1 / -1; }
  .global-command-table tbody td:first-child small { overflow-wrap: anywhere; }
  .global-command-table .global-actions-cell { min-width: 0; }
  .global-command-table .global-actions-cell > .btn { width: 100%; justify-content: center; }
  .global-command-table .chip { white-space: normal; }
}
@media (max-width: 600px) {
  .global-command-table tbody tr { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .global-entry { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .global-entry-icon { width: 42px; height: 42px; }
  .global-entry > .btn { grid-column: 1 / -1; justify-content: center; }
  .global-admin-banner { align-items: flex-start; flex-wrap: wrap; padding: 16px; }
  .global-admin-banner > div:nth-child(2) { flex: 1 1 calc(100% - 66px); }
  .global-admin-banner .chip { margin-left: 66px; }
  .global-tabs { flex-wrap: wrap; overflow: visible; }
  .global-tabs a { flex: 1 0 auto; padding: 10px 8px; font-size: 13px; text-align: center; }
  .global-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .global-metric { padding: 13px; }
  .global-metric-value { font-size: 24px; }
  .global-feedback-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-rank-row { grid-template-columns: 25px minmax(40px, 1fr) auto; gap: 7px; }
  .global-rank-row > span:last-child { font-size: 12px; }
  .global-picker-body { position: fixed; top: 20vh; left: 12px; right: 12px; max-height: 68vh; overflow: auto; }
  .global-server-options { max-height: 44vh; }
}

@media (max-width: 980px) { .rank-add { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .rank-add { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .staff-nickname-rule, .staff-nickname-rule-add { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .staff-nickname-rule > .btn { justify-self: start; }
  .staff-rating-row { grid-template-columns: 78px minmax(45px, 1fr) 32px; gap: 7px; }
}

@media (max-width: 720px) {
  .icon-btn { width: 44px; height: 44px; }
  .btn { min-height: 44px; }
  .nav-item, .nav-cat, .nav-subbtn { min-height: 44px; }
  .crumb { font-size: 12px; }
  .page-title { font-size: 24px; }
  .panel-head, .panel-body, .panel-foot { padding-left: 14px; padding-right: 14px; }
  .panel-foot { align-items: stretch; }
  .panel-foot > .btn { flex: 1 1 140px; }
  .toolbar > .btn, .toolbar > .segmented { flex: 1 1 auto; }
  .copy-row { align-items: stretch; flex-wrap: wrap; }
  .copy-row code { flex-basis: 100%; white-space: normal; }
  .tip { width: 44px; height: 44px; margin: -7px 0; }
  .tip-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-width: none; transform: translateY(4px); }
  .toggle { width: 52px; height: 44px; }
  .toggle .knob { top: 6px; left: 6px; width: 30px; height: 30px; }
  .toggle.on .knob { transform: translateX(10px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .spin { animation: none; }
  .skeleton { animation: none; background: var(--bg-panel-hover); }
}

/* Feedback-Verwaltung */
.feedback-page { min-width: 0; }
.feedback-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feedback-kpi .label { display: flex; align-items: center; gap: 7px; }
.feedback-kpi .label svg { width: 16px; height: 16px; color: var(--accent); }
.feedback-overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .9fr); gap: 14px; min-width: 0; }
.feedback-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: center; }
.feedback-filters > * { min-width: 0; width: 100%; }
.feedback-filters input[type="search"] { grid-column: span 2; }
.feedback-breakdown, .feedback-staff-list, .feedback-list { display: grid; gap: 12px; min-width: 0; }
.feedback-breakdown-row { min-width: 0; }
.feedback-breakdown-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 7px; }
.feedback-breakdown-label > * { min-width: 0; overflow-wrap: anywhere; }
.feedback-meter { height: 8px; overflow: hidden; border-radius: 999px; background: var(--bg-subtle); }
.feedback-meter span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.feedback-staff-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-subtle); }
.feedback-staff-row:last-child { border-bottom: 0; }
.feedback-rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; color: var(--text-secondary); background: var(--bg-subtle); font-weight: 700; }
.feedback-staff-main { display: grid; min-width: 0; gap: 3px; }
.feedback-staff-main strong, .feedback-staff-main span { overflow-wrap: anywhere; }
.feedback-average { white-space: nowrap; }
.feedback-record { display: grid; gap: 11px; padding: 16px 18px; min-width: 0; }
.feedback-record-head, .feedback-record-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; }
.feedback-record-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.feedback-record-title strong { min-width: 0; overflow-wrap: anywhere; }
.feedback-rating { flex: none; color: var(--text-primary); font-weight: 700; white-space: nowrap; }
.feedback-record-byline { color: var(--text-secondary); overflow-wrap: anywhere; }
.feedback-record-details { min-width: 0; color: var(--text-secondary); }
.feedback-record-details summary { cursor: pointer; line-height: 1.55; overflow-wrap: anywhere; }
.feedback-record-details p { margin: 10px 0 0; color: var(--text-primary); line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.feedback-record-actions { display: flex; justify-content: flex-end; }
.feedback-record-actions label { display: flex; align-items: center; gap: 9px; }
.feedback-status-select { width: auto; min-width: 150px; }
@media (max-width: 1000px) {
  .feedback-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .feedback-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .feedback-filters { grid-template-columns: minmax(0, 1fr); }
  .feedback-filters input[type="search"] { grid-column: auto; }
  .feedback-record { padding: 14px; }
  .feedback-record-head, .feedback-record-title { align-items: flex-start; flex-direction: column; gap: 7px; }
  .feedback-record-actions { justify-content: stretch; }
  .feedback-record-actions label { align-items: stretch; flex: 1; flex-direction: column; }
  .feedback-status-select { width: 100%; }
  .feedback-staff-row { grid-template-columns: 26px minmax(0, 1fr); }
  .feedback-average { grid-column: 2; }
}

/* Touch-Geräte: Schalter und Symbol-Knöpfe mindestens 40 px groß (Fingerbedienung). */
@media (pointer: coarse) {
  .icon-btn, .btn-sm, .toggle { min-width: 40px; min-height: 40px; }
}

/* Staff-Tabelle: Desktop nutzt Spalten; schmalere Arbeitsbereiche wechseln zu klaren Datensatzkarten. */
.staff-table-wrap { container: staff-directory / inline-size; }
.staff-list-toolbar { container: staff-list-toolbar / inline-size; }
.staff-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.staff-table th:nth-child(1), .staff-table td:nth-child(1) { width: 21%; min-width: 0 !important; }
.staff-table th:nth-child(2), .staff-table td:nth-child(2) { width: 13%; min-width: 0 !important; }
.staff-table th:nth-child(3), .staff-table td:nth-child(3) { width: 20%; min-width: 0 !important; }
.staff-table th:nth-child(4), .staff-table td:nth-child(4) { width: 13%; min-width: 0 !important; }
.staff-table th:nth-child(5), .staff-table td:nth-child(5) { width: 10%; min-width: 0 !important; }
.staff-table th:nth-child(6), .staff-table td:nth-child(6) { width: 9%; min-width: 0 !important; }
.staff-table th:nth-child(7), .staff-table td:nth-child(7) { width: 14%; min-width: 0 !important; }
.staff-table td:first-child, .staff-table th:first-child { overflow-wrap: anywhere; }
/* Übersichtliche, beschriftete Datensatzkarten statt abgeschnittener Tabellen auf Touch-Breiten. */
.staff-table thead th:nth-child(4), .staff-table thead th:nth-child(5) {
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.staff-table th:nth-child(1), .staff-table td:nth-child(1) { width: 20%; }
.staff-table th:nth-child(2), .staff-table td:nth-child(2) { width: 12%; }
.staff-table th:nth-child(3), .staff-table td:nth-child(3) { width: 19%; }
.staff-table th:nth-child(5), .staff-table td:nth-child(5) { width: 13%; }
.staff-table .sort-btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: inherit; }
.staff-mobile-sort { display: none; }
.feedback-kpi .label { min-width: 0; align-items: flex-start; line-height: 1.35; }
.feedback-kpi .label svg { flex: none; margin-top: 1px; }
.feedback-kpi-label { min-width: 0; overflow-wrap: normal; word-break: normal; }
@media (max-width: 1100px) {
  .staff-table-wrap { overflow: visible; }
  .staff-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    table-layout: auto;
    border-collapse: separate;
  }
  .staff-table thead, .global-server-table thead { display: none; }
  .staff-list-toolbar { align-items: stretch; }
  .staff-list-toolbar > .grow { flex: 1 1 220px; min-width: 0; }
  .staff-mobile-sort { display: block; flex: 0 1 230px; min-width: 0; width: auto; }
  .staff-table tbody { display: grid; gap: 12px; }
  .staff-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-panel);
  }
  .staff-table tbody td {
    display: grid;
    align-content: start;
    gap: 5px;
    width: auto !important;
    min-width: 0 !important;
    padding: 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }
  .staff-table tbody td::before {
    content: attr(data-label);
    color: var(--text-tertiary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .045em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  .staff-table tbody td:first-child, .staff-table tbody td:nth-child(3), .staff-table tbody td:last-child { grid-column: 1 / -1; }
  .staff-table tbody td:first-child::before { content: none; }
  .staff-table .staff-who { align-items: center; }
  .staff-table .staff-open { width: 100%; min-width: 0; justify-content: center; }
  .staff-live-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px 10px;
  }
  .staff-live-list { grid-template-columns: minmax(0, 1fr); }

  .global-table-wrap { overflow: visible; }
  .global-table-wrap > .global-server-table { display: block; width: 100%; min-width: 0 !important; }
  .global-server-table tbody { display: grid; gap: 12px; }
  .global-server-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-panel);
  }
  .global-server-table tbody td {
    display: grid;
    align-content: start;
    gap: 5px;
    width: auto;
    min-width: 0 !important;
    padding: 0;
    border: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .global-server-table tbody td::before {
    content: attr(data-label);
    color: var(--text-tertiary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .045em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  .global-server-table tbody td:first-child,
  .global-server-table tbody td:nth-child(6),
  .global-server-table tbody td:last-child { grid-column: 1 / -1; }
  .global-server-name { max-width: none; }
  .global-server-table td:first-child small { overflow-wrap: anywhere; }
  .global-actions-cell { gap: 8px; }
  .global-actions-cell > .btn { width: 100%; justify-content: center; }
  .global-invite-state { max-width: none; }
}
@media (max-width: 480px) {
  .feedback-kpi .label { font-size: 9.5px; letter-spacing: .035em; }
  .staff-table tbody tr, .global-server-table tbody tr { gap: 11px 12px; padding: 13px; }
  .staff-table tbody td:nth-child(2), .staff-table tbody td:nth-child(4), .staff-table tbody td:nth-child(5), .staff-table tbody td:nth-child(6) { min-width: 0; }
  .staff-list-toolbar { flex-direction: column; gap: 10px; }
  .staff-list-toolbar > .grow { flex: 0 1 auto; width: 100%; }
  .staff-mobile-sort { flex: 1 1 auto; width: 100%; }
  .staff-dashboard-grid .list-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 10px; }
  .staff-dashboard-grid .list-item > .list-main { grid-column: 1 / -1; grid-row: 2; }
  .staff-dashboard-grid .list-item > .dim { grid-column: 2; grid-row: 1; justify-self: end; }
}

/* Der feste Desktop-Seitenbereich verkleinert den nutzbaren Inhalt auch bei breitem Viewport. */
@container staff-directory (max-width: 920px) {
  .staff-table { display: block; width: 100%; min-width: 0 !important; table-layout: auto; border-collapse: separate; }
  .staff-table thead { display: none; }
  .staff-list-toolbar { align-items: stretch; }
  .staff-list-toolbar > .grow { flex: 1 1 220px; min-width: 0; }
  .staff-mobile-sort { display: block; flex: 0 1 230px; min-width: 0; width: auto; }
  .staff-table tbody { display: grid; gap: 12px; }
  .staff-table tbody tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px;
    min-width: 0; padding: 15px; border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); background: var(--bg-panel);
  }
  .staff-table tbody td {
    display: grid; align-content: start; gap: 5px; width: auto !important; min-width: 0 !important;
    padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; text-align: left;
  }
  .staff-table tbody td::before {
    content: attr(data-label); color: var(--text-tertiary); font-size: 10px; font-weight: 700;
    letter-spacing: .045em; line-height: 1.3; text-transform: uppercase;
  }
  .staff-table tbody td:first-child, .staff-table tbody td:nth-child(3), .staff-table tbody td:last-child { grid-column: 1 / -1; }
  .staff-table tbody td:first-child::before { content: none; }
  .staff-table .staff-who { align-items: center; }
  .staff-table .staff-open { width: 100%; min-width: 0; justify-content: center; }
  .staff-table tbody td:nth-child(2) .chip, .staff-table tbody td:nth-child(3) .chip {
    justify-self: start; width: fit-content; max-width: 100%;
  }
}
@container staff-list-toolbar (max-width: 920px) {
  .staff-list-toolbar { align-items: stretch; }
  .staff-list-toolbar > .grow { flex: 1 1 220px; min-width: 0; }
  .staff-mobile-sort { display: block; flex: 0 1 230px; min-width: 0; width: auto; }
}

.permission-matrix { gap: 20px; }
.permission-group { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.permission-group h3 { margin: 0; font-size: 14px; }
.permission-row { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(260px, 1.1fr); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.permission-copy { min-width: 0; }
.permission-copy strong { display: block; line-height: 1.4; }
.permission-copy p { margin: 4px 0 0; line-height: 1.45; }
.permission-role-select { width: 100%; min-height: 72px; padding: 4px; }
.permission-actions { justify-content: flex-end; }
@media (max-width: 720px) {
  .permission-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .permission-actions > .btn { width: 100%; justify-content: center; }
}

/* Schmale Staff-Spalten müssen lange Rollen umbrechen, nie aus dem Badge laufen. */
.staff-table th, .staff-table td { padding-inline: 8px; }
.staff-table td:nth-child(2) .chip {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;
}
.staff-table thead .sort-btn { overflow-wrap: normal; word-break: normal; }
.staff-table-analytics thead th:nth-child(5) .sort-btn {
  white-space: nowrap;
  letter-spacing: .035em;
  font-size: 10px;
}
@media (max-width: 600px) {
  .rank-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 8px 12px; }
  .rank-pos { grid-column: 1; grid-row: 1; }
  .rank-main { grid-column: 2; }
  .rank-actions { grid-column: 2; flex-wrap: wrap; }
}

/* KI-Support: klare Desktop-Flächen, auf Tablet und Smartphone ohne Overflow gestapelt. */
 { width: 100%; max-width: 1680px; min-width: 0; gap: 20px; }
 { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 26px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: linear-gradient(115deg, rgba(104, 88, 255, .14), rgba(20, 21, 26, .94) 50%, var(--bg-panel)); }
 { min-width: 0; flex: 1 1 440px; }
 { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .13em; }
 { margin: 8px 0 6px; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.16; letter-spacing: -.025em; }
 { max-width: 740px; margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
 { display: grid; justify-items: end; gap: 10px; min-width: min(100%, 250px); }
 { color: var(--text-tertiary); font-size: 12px; text-align: right; }
 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; min-width: 0; }
 { display: flex; min-width: 0; min-height: 126px; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
 { color: var(--text-tertiary); font-size: 12px; font-weight: 650; }
 { max-width: 100%; color: var(--text-primary); font-size: clamp(21px, 2vw, 29px); line-height: 1.15; overflow-wrap: anywhere; }
 { color: var(--text-secondary); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 { min-height: 102px; }
 { display: flex; align-items: center; gap: 6px; max-width: 100%; overflow-x: auto; padding: 4px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel); scrollbar-width: thin; }
 { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; flex: 0 0 auto; padding: 8px 14px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
 { background: var(--bg-panel-hover); color: var(--text-primary); }
 { border-color: var(--border-subtle); background: var(--accent-soft); color: var(--text-primary); }
 { outline: 2px solid var(--accent); outline-offset: 2px; }
 { display: grid; gap: 16px; min-width: 0; }
 { min-width: 0; }
 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
 { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 54px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
 { color: var(--text-secondary); font-size: 13px; }
 { text-align: center; }
 { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
 { color: var(--accent); }
 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
 { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; min-width: 0; padding: 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); cursor: pointer; }
 { border-color: color-mix(in srgb, var(--accent) 55%, var(--border-strong)); background: color-mix(in srgb, var(--accent-soft) 60%, var(--bg-panel-raised)); }
 { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
 { display: grid; gap: 5px; min-width: 0; }
 { color: var(--text-primary); font-size: 13px; line-height: 1.4; }
 { color: var(--text-tertiary); font-size: 12px; line-height: 1.5; }
 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px; }
 { display: grid; min-width: 0; gap: 7px; color: var(--text-primary); font-size: 13px; font-weight: 600; }
 { line-height: 1.4; }
 { min-width: 0; }
 { height: auto; min-height: 130px; padding: 11px 12px; line-height: 1.55; resize: vertical; }
 { grid-column: 1 / -1; }
 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 220px; overflow: auto; padding: 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
 { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 8px; border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer; }
 { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
 { background: var(--bg-panel-hover); color: var(--text-primary); }
 { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: center; gap: 10px; }
 { display: grid; gap: 8px; min-width: 0; }
 { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
 { color: var(--text-primary); font-size: 13px; }
 { align-items: center; }
 { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--accent); }
 { display: grid; grid-template-columns: minmax(220px,1fr) auto auto; align-items: center; gap: 10px; }
 { display: grid; gap: 8px; min-width: 0; }
 { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
 { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 5px 10px; min-width: 0; }
 { min-width: 0; overflow-wrap: anywhere; }
 { grid-column: 1 / -1; color: var(--text-tertiary); font-size: 12px; line-height: 1.4; }
 { color: var(--danger); }
 { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-width: 0; padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
 { display: grid; gap: 4px; min-width: 0; }
 { color: var(--text-primary); font-size: 13px; line-height: 1.4; }
 { color: var(--text-tertiary); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
 { display: grid; gap: 8px; min-width: 0; }
 { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px 12px; min-width: 0; padding: 11px 13px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
 { min-width: 0; color: var(--text-primary); font-size: 13px; overflow-wrap: anywhere; }
 { color: var(--text-secondary); font-size: 12px; text-align: right; overflow-wrap: anywhere; }
 { grid-column: 1 / -1; color: var(--text-tertiary); font-size: 11px; }
 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 12px; }
 { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; }
 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 240px); gap: 10px; }
 { display: grid; gap: 10px; }
 { display: grid; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
 { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background-color .16s ease; }
 { border-color: var(--accent); outline: none; }
 { border-color: var(--accent); background: var(--bg-panel); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
 { display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 560px); }
 { display: grid; gap: 8px; min-width: 0; }
 { margin: 8px 0 0; color: var(--text-secondary); font-size: 13px; font-weight: 650; }
 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-width: 0; }
 { margin: 0; }
 { display: grid; gap: 18px; min-width: 0; }
 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
 { display: grid; gap: 5px; min-width: 0; padding: 16px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-panel); }
 { font-size: 1.55rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
 { color: var(--text-secondary); font-size: .9rem; line-height: 1.45; }
 { display: grid; gap: 10px; min-width: 0; }
 { margin: 0; font-size: 1rem; }
 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
 { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-width: 0; padding: 11px 12px; border: 1px solid var(--border-subtle); border-radius: 10px; }
 { min-width: 0; overflow-wrap: anywhere; }
 { text-align: right; }
 { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {  { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {  { grid-template-columns: 1fr; }  { flex-direction: column; gap: 4px; }  { text-align: left; } }
 { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
 { margin: 0 0 5px; color: var(--text-primary); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
 { margin: 0; color: var(--text-tertiary); font-size: 12px; line-height: 1.5; }
 { display: grid; gap: 5px; min-width: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
 { color: var(--text-primary); font-size: 12px; }
 { display: grid; gap: 3px; margin: 0; padding-left: 18px; overflow-wrap: anywhere; }
 { max-height: 180px; overflow: auto; margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
 { border-top: 1px solid var(--border-subtle); padding-top: 10px; }
 { color: var(--text-secondary); font-size: 12px; font-weight: 650; cursor: pointer; }
 { display: grid; gap: 8px; padding-top: 10px; }
 { display: grid; gap: 8px; padding: 10px 12px; border-left: 2px solid var(--border-strong); background: var(--bg-panel); }
 { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; color: var(--text-secondary); font-size: 12px; }
 { color: var(--text-tertiary); }
 { margin: 0; max-height: 140px; overflow: auto; color: var(--text-tertiary); font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr) minmax(160px, .5fr); gap: 12px; }
 { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
 { display: grid; gap: 5px; min-width: 0; }
 { color: var(--accent); font-size: 12px; overflow-wrap: anywhere; }
 { color: var(--text-tertiary); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
 { display: grid; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; color: var(--text-tertiary); font-size: 12px; }
 { margin: 0; color: var(--text-primary); font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
 { display: grid; gap: 5px; margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 12px; }
 { max-width: 100%; overflow-x: auto; }
 { width: 100%; min-width: 860px; border-collapse: collapse; }
 { padding: 12px 10px; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: middle; font-size: 12px; overflow-wrap: anywhere; }
 { color: var(--text-tertiary); font-weight: 700; white-space: nowrap; }
 { display: block; color: var(--text-tertiary); font-size: 13px; }
@media (max-width: 1120px) {
   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
   { gap: 14px; }
   { align-items: flex-start; padding: 18px; }
   { justify-items: start; min-width: 0; }
   { text-align: left; }
   { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
   { min-height: 112px; padding: 13px; }
   { grid-template-columns: 1fr; }
   { grid-template-columns: 1fr; }
   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   { grid-template-columns: 1fr; }
   { grid-template-columns: 1fr; }
   { align-items: stretch; flex-direction: column; }
   { align-items: stretch; flex-direction: column; }
   { grid-template-columns: 1fr; }
   { text-align: left; }
   { align-items: stretch; flex-direction: column; }
   { width: 100%; justify-content: center; }
   { width: 100%; }
   { width: 100%; }
   { grid-template-columns: 1fr; }
   { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
   { grid-template-columns: 1fr; }
   { grid-template-columns: 1fr; }
   { padding: 16px; }
   { font-size: 25px; }
   { padding-inline: 11px; }
}

/* Persönlicher Staff-Bereich: dichter Desktop-Raster, dann ein sauberer mobiler Stapel. */
.personal-staff-entry { margin: 0 0 10px; border: 1px solid var(--border-subtle); background: var(--bg-panel-raised); }
:root { --content-readable: 72ch; }
.analytics-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .analytics-filter-grid { grid-template-columns: minmax(0, 1fr); } }

}
