/* ==========================================================================
   admin.css - Team-Zentrale und Website-Verwaltung
   ========================================================================== */

:root {
  --a-bg: #080d18;
  --a-panel: #101827;
  --a-surface: #111c2c;
  --a-surface-2: #17243a;
  --a-line: #26364e;
  --a-line-soft: #1d2b40;
  --a-ink: #edf4ff;
  --a-soft: #b6c4d9;
  --a-muted: #8293ac;
  --a-accent: #368fca;
  --a-accent-bright: #77ccf1;
  --a-accent-ink: #ffffff;
  --a-danger: #ef4444;
  --a-radius: 12px;
  --a-font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --a-display: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(900px 560px at 6% 0, rgba(47, 134, 194, .15), transparent 68%),
    radial-gradient(760px 480px at 98% 12%, rgba(74, 91, 187, .11), transparent 68%),
    var(--a-bg);
  color: var(--a-ink);
  font-family: var(--a-font);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--a-accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }
h1, h2, h3 { font-family: var(--a-display); font-weight: 700; letter-spacing: 0; }

.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 100;
  padding: 10px 16px; background: var(--a-ink); color: var(--a-bg);
  border-radius: var(--a-radius); font-weight: 600;
}
.skip-link:focus { top: 12px; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--a-accent);
  outline-offset: 2px;
}

/* ---- Kopfleiste ---- */
.adm-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 18, 16, 0.95);
  border-bottom: 1px solid var(--a-line);
}
.adm-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.adm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--a-ink);
  font-family: var(--a-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.adm-brand:hover { text-decoration: none; }
.adm-brand img { width: 26px; height: 26px; }
.adm-badge {
  font-family: var(--a-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--a-accent-ink);
  background: var(--a-accent);
  border-radius: var(--a-radius);
  padding: 2px 7px;
}
.adm-bar-right { display: flex; align-items: center; gap: 14px; }
.adm-user { color: var(--a-soft); font-size: 0.9rem; }
.adm-user b { color: var(--a-ink); }

/* ---- Buttons ---- */
.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--a-radius);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.adm-btn:active { transform: translateY(1px); }
.adm-btn-primary { background: var(--a-accent); color: var(--a-accent-ink); border-color: var(--a-accent); }
.adm-btn-primary:hover { background: var(--a-accent-bright); border-color: var(--a-accent-bright); }
.adm-btn-quiet { background: transparent; color: var(--a-ink); border-color: var(--a-line); }
.adm-btn-quiet:hover { border-color: var(--a-accent); color: var(--a-accent-bright); }
.adm-btn-danger { background: transparent; color: var(--a-danger); border-color: var(--a-danger); }
.adm-btn-danger:hover { background: var(--a-danger); color: #fff; }
.adm-btn-sm { padding: 6px 11px; font-size: 0.84rem; }

/* ---- Grundgerüst ---- */
.adm-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 28px;
  align-items: start;
}

/* ---- Linke Seitenleiste (Galaxy Style) ---- */
.adm-side {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 14px 18px;
  background: linear-gradient(180deg, var(--a-panel), var(--a-bg));
  border-right: 1px solid var(--a-line);
  border-radius: 0 0 var(--a-radius) var(--a-radius);
}
.adm-side-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 6px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--a-line);
}
.adm-side-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--a-ink);
  font-family: var(--a-display);
  font-weight: 700;
  font-size: 1.02rem;
}
.adm-side-brand:hover { text-decoration: none; }
.adm-side-brand img { width: 28px; height: 28px; border-radius: var(--a-radius); }

.adm-side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex: 1;
}
.adm-side-group {
  margin: 12px 8px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a-muted);
}
.adm-side-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}
.adm-side-label { overflow: hidden; text-overflow: ellipsis; }
.adm-side-required {
  margin-top: 3px;
  color: var(--a-muted);
  font-size: 0.68rem;
  font-weight: 500;
}
.adm-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  border-radius: 0 var(--a-radius) var(--a-radius) 0;
  background: transparent;
  color: var(--a-soft);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--ease, 0.15s ease), color 0.15s ease, border-color 0.15s ease;
}
.adm-side-item:hover { background: var(--a-surface); color: var(--a-ink); }
.adm-side-item.active {
  background: var(--a-surface);
  color: var(--a-accent-bright);
  border-left-color: var(--a-accent);
}
.adm-side-item .adm-ico {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--a-muted);
}
.adm-side-item.active .adm-ico { color: var(--a-accent-bright); }

.adm-side-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 6px 0;
  margin-top: 8px;
  border-top: 1px solid var(--a-line);
}
.adm-side-user { color: var(--a-soft); font-size: 0.88rem; margin-bottom: 6px; line-height: 1.35; }
.adm-side-user b { color: var(--a-ink); display: block; }
.adm-side-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--a-radius);
  background: transparent;
  color: var(--a-soft);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.adm-side-link:hover { background: var(--a-surface); color: var(--a-accent-bright); text-decoration: none; }

.adm-main { min-width: 0; padding-top: 26px; }
.adm-main h1 { margin: 0 0 6px; font-size: 1.7rem; }
.adm-lead { margin: 0 0 26px; color: var(--a-muted); max-width: 60ch; }

/* Unter-Reiter (Content Center / Einstellungen) */
.adm-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--a-line);
}
.adm-subtab {
  padding: 8px 14px;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  background: transparent;
  color: var(--a-soft);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.adm-subtab:hover { color: var(--a-ink); border-color: var(--a-line-soft); }
.adm-subtab.active { background: var(--a-accent); color: var(--a-accent-ink); border-color: var(--a-accent); }

/* Übersichtskarten */
.adm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.adm-card {
  background: var(--a-panel);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  padding: 18px 18px 16px;
}
.adm-card .adm-card-num {
  font-family: var(--a-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--a-accent-bright);
}
.adm-card .adm-card-label { margin-top: 8px; color: var(--a-muted); font-size: 0.85rem; font-weight: 600; }

/* Tabelle */
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.adm-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--a-line);
  color: var(--a-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.adm-table td { padding: 11px 12px; border-bottom: 1px solid var(--a-line-soft); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table .adm-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-table select {
  padding: 6px 9px;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  color: var(--a-ink);
  font-family: inherit;
  font-size: 0.85rem;
}
.adm-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--a-surface-2);
  color: var(--a-soft);
  border: 1px solid var(--a-line);
}
.adm-tag.banned { background: rgba(239, 68, 68, 0.16); color: #ff9d9d; border-color: rgba(239, 68, 68, 0.4); }
.adm-tag.live { background: rgba(52, 211, 153, 0.16); color: #7be0a0; border-color: rgba(52, 211, 153, 0.4); }

/* Hinweis / Platzhalter */
.adm-note {
  background: var(--a-panel);
  border: 1px dashed var(--a-line);
  border-radius: var(--a-radius);
  padding: 24px;
  color: var(--a-soft);
}
.adm-note h2 { margin: 0 0 8px; font-size: 1.15rem; color: var(--a-ink); }
.adm-note p { margin: 0; color: var(--a-muted); max-width: 62ch; }

.adm-muted { color: var(--a-muted); }

.adm-group {
  background: var(--a-panel);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  padding: 20px;
  margin-bottom: 18px;
}
.adm-group > h2 { margin: 0 0 16px; font-size: 1.1rem; }
.adm-hint { margin: 0 0 16px; color: var(--a-muted); font-size: 0.88rem; }

/* ---- Formularfelder ---- */
.adm-field { display: block; margin-bottom: 14px; }
.adm-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--a-soft);
}
.adm-field input[type="text"],
.adm-field input[type="url"],
.adm-field input[type="email"],
.adm-field input[type="number"],
.adm-field input[type="password"],
.adm-field input[type="datetime-local"],
.adm-field input[type="date"],
.adm-field textarea,
.adm-field select {
  width: 100%;
  padding: 9px 12px;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  color: var(--a-ink);
  font-family: inherit;
  font-size: 0.95rem;
}
.adm-field input[type="datetime-local"] {
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  padding-right: 36px;
  color: var(--a-ink);
  color-scheme: dark;
}
.adm-field input[type="date"] {
  min-width: 0;
  min-height: 44px;
  color-scheme: dark;
}
.adm-field input[type="datetime-local"]::-webkit-datetime-edit,
.adm-field input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
.adm-field input[type="datetime-local"]::-webkit-datetime-edit-text,
.adm-field input[type="datetime-local"]::-webkit-datetime-edit-month-field,
.adm-field input[type="datetime-local"]::-webkit-datetime-edit-day-field,
.adm-field input[type="datetime-local"]::-webkit-datetime-edit-year-field,
.adm-field input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
.adm-field input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
.adm-field input[type="datetime-local"]::-webkit-datetime-edit-ampm-field {
  color: var(--a-ink);
}
.adm-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(1);
  opacity: .8;
  cursor: pointer;
}
.adm-field textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
.adm-field input:focus, .adm-field textarea:focus, .adm-field select:focus {
  border-color: var(--a-accent);
  outline: none;
}
.adm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.adm-inline { display: flex; align-items: center; gap: 8px; }
.adm-inline input[type="checkbox"] { width: auto; }
.adm-btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-field small.adm-hint { display: block; margin: 6px 0 0; }

/* Farb-Feld */
.adm-color { display: flex; align-items: center; gap: 12px; }
.adm-color input[type="color"] {
  width: 46px;
  height: 38px;
  padding: 2px;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  cursor: pointer;
}
.adm-color code { color: var(--a-soft); font-size: 0.85rem; }

/* Wiederholbare Einträge */
.adm-list { display: flex; flex-direction: column; gap: 12px; }
.adm-item {
  border: 1px solid var(--a-line-soft);
  border-radius: var(--a-radius);
  padding: 14px;
  background: var(--a-surface-2);
}
.adm-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.adm-item-head strong { font-family: var(--a-display); font-size: 0.98rem; }
.adm-empty { color: var(--a-muted); font-size: 0.9rem; padding: 8px 0; }
.adm-page-status-meta { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 12px; color: var(--a-muted); font-size: 0.82rem; }
.adm-page-status-meta code { overflow-wrap: anywhere; color: var(--a-ink); }

.adm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.adm-savebar {
  position: sticky;
  bottom: 0;
  margin-top: 20px;
  padding: 14px 0;
  background: linear-gradient(180deg, transparent, var(--a-bg) 40%);
  display: flex;
  align-items: center;
  gap: 14px;
}
.adm-save-state { color: var(--a-muted); font-size: 0.88rem; }
.adm-save-state.ok { color: #34d399; }
.adm-save-state.err { color: var(--a-danger); }

/* Vorschau */
.adm-preview {
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}
.adm-swatch { height: 48px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.08); position: relative; }
.adm-swatch-label {
  position: absolute;
  left: 6px;
  bottom: 5px;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 2px 5px;
  border-radius: 3px;
  mix-blend-mode: normal;
  white-space: nowrap;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Vorlagen (Farbsets) ---- */
.adm-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.adm-preset {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  color: var(--a-soft);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, color .15s;
}
.adm-preset:hover { border-color: var(--a-accent); color: var(--a-ink); background: var(--a-surface-2); }
.adm-preset-dots { display: flex; flex: none; }
.adm-preset-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  margin-left: -2px;
}
.adm-preset-dot:first-child { margin-left: 0; }

/* ---- Live-Vorschau ---- */
.adm-liveprev {
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  overflow: hidden;
}
.adm-liveprev-nav {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--a-line);
}
.adm-liveprev-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
}
.adm-liveprev h3 { margin: 0 0 8px; font-size: 1.3rem; }
.adm-liveprev p { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.adm-liveprev-card {
  border-radius: var(--a-radius);
  border: 1px solid var(--a-line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adm-liveprev-fact { font-size: 0.8rem; }
.adm-liveprev-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 9px 12px;
  border-radius: var(--a-radius);
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
}
@media (max-width: 720px) {
  .adm-liveprev-inner { grid-template-columns: 1fr; }
}

/* ---- Toast ---- */
.adm-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  z-index: 200;
  padding: 12px 20px;
  background: var(--a-surface);
  border: 1px solid var(--a-accent);
  border-radius: var(--a-radius);
  color: var(--a-ink);
  font-size: 0.92rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.adm-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.adm-toast.err { border-color: var(--a-danger); }

/* ---- Vollbild-Zustände (Laden / Kein Zugriff) ---- */
.adm-center {
  max-width: 460px;
  margin: 14vh auto;
  text-align: center;
  padding: 0 24px;
}
.adm-center h1 { font-size: 1.6rem; margin: 0 0 12px; }
.adm-center p { color: var(--a-soft); }
.adm-hidden { display: none !important; }

@media (max-width: 820px) {
  .adm-shell { grid-template-columns: 1fr; gap: 0; padding: 0 0 40px; }
  .adm-side {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--a-line);
    border-radius: 0;
  }
  .adm-side-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .adm-side-group {
    display: flex;
    align-items: center;
    margin: 0 4px;
    padding: 0 8px;
    white-space: nowrap;
  }
  .adm-side-item { white-space: nowrap; border-radius: var(--a-radius); border-left-width: 1px; }
  .adm-main { padding: 22px 20px 0; }
  .adm-grid-2 { grid-template-columns: 1fr; }
  .adm-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---- Klickbare Tabellenzeilen ------------------------------------------ */
.adm-row-click { cursor: pointer; }
.adm-row-click:hover td,
.adm-row-click:focus td { background: var(--a-surface-2); }
.adm-row-click:focus { outline: 2px solid var(--a-accent); outline-offset: -2px; }

/* ---- Ticket-Status-Tags ------------------------------------------------ */
.adm-tag-open { background: rgba(22, 132, 162, 0.18); color: #7fd3ea; border-color: rgba(22, 132, 162, 0.5); }
.adm-tag-work { background: rgba(240, 175, 49, 0.18); color: #f4c265; border-color: rgba(240, 175, 49, 0.5); }
.adm-tag-closed { background: rgba(138, 138, 138, 0.18); color: #c4c4c4; border-color: rgba(138, 138, 138, 0.5); }
.adm-tag-accepted { background: rgba(52, 211, 153, 0.16); color: #7be0a0; border-color: rgba(52, 211, 153, 0.4); }
.adm-tag-rejected { background: rgba(239, 68, 68, 0.16); color: #ff9d9d; border-color: rgba(239, 68, 68, 0.4); }

/* ---- Ticket-Dialog ----------------------------------------------------- */
.adm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(2px);
}
.adm-modal {
  width: 100%;
  max-width: 720px;
  background: var(--a-panel);
  border: 1px solid var(--a-line);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
/* ---- Visuelles Rework --------------------------------------------------- */
.adm-shell {
  max-width: 1540px;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 34px;
  padding-right: 28px;
  padding-left: 28px;
}
.adm-side {
  top: 14px;
  max-height: calc(100vh - 28px);
  padding: 18px 14px;
  border: 1px solid rgba(151, 177, 210, .15);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(17, 29, 47, .96), rgba(9, 15, 25, .97));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
}
.adm-side-head { border-bottom-color: var(--a-line); }
.adm-side-brand { letter-spacing: -.03em; }
.adm-side-brand img { border-radius: 9px; }
.adm-side-item {
  border-radius: 10px;
  border-left-width: 1px;
  color: var(--a-soft);
}
.adm-side-item:hover { background: rgba(119, 204, 241, .08); }
.adm-side-item.active {
  border-color: rgba(119, 204, 241, .18);
  background: linear-gradient(100deg, rgba(54, 143, 202, .2), rgba(54, 143, 202, .06));
}
.adm-side-foot { border-top-color: var(--a-line); }
.adm-side-link { border-radius: 9px; }
.adm-main { min-width: 0; padding-top: 40px; }
.adm-main > h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -.055em;
}
.adm-lead { max-width: 70ch; color: var(--a-soft); }
.adm-group,
.adm-card {
  border-color: rgba(151, 177, 210, .16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 29, 47, .92), rgba(11, 18, 30, .96));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}
.adm-cards { gap: 16px; }
.adm-card {
  min-height: 128px;
  padding: 22px;
  transition: transform .18s ease, border-color .18s ease;
}
.adm-card:hover { transform: translateY(-2px); border-color: rgba(119, 204, 241, .36); }
.adm-card .adm-card-num { color: #8bdcff; font-size: 2.25rem; letter-spacing: -.06em; }
.adm-card .adm-card-label { color: var(--a-soft); }
.adm-btn { border-radius: 999px; }
.adm-btn-primary {
  background: linear-gradient(135deg, #248cc3, #3676bf);
  border-color: rgba(119, 204, 241, .36);
}
.adm-btn-primary:hover { background: linear-gradient(135deg, #37a4db, #4a8bd2); }
.adm-btn-quiet { background: rgba(255, 255, 255, .025); }
.adm-table th { color: #9eb0c8; }
.adm-table td { border-bottom-color: rgba(151, 177, 210, .11); }
.adm-table tbody tr:hover td { background: rgba(119, 204, 241, .035); }
.adm-field input,
.adm-field select,
.adm-field textarea {
  border-radius: 10px;
  border-color: rgba(151, 177, 210, .22);
  background: rgba(5, 11, 20, .58);
}
.adm-field input:focus,
.adm-field select:focus,
.adm-field textarea:focus {
  border-color: var(--a-accent-bright);
  box-shadow: 0 0 0 3px rgba(119, 204, 241, .14);
}
.adm-toast { border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .36); }
.adm-giveaway-list { display: grid; gap: 16px; margin-top: 24px; }
.adm-giveaway-meta { color: var(--a-muted); font-size: .88rem; }
.adm-giveaway-list .adm-group { min-width: 0; }
.adm-giveaway-list .adm-btn-row { flex-wrap: wrap; }
.adm-giveaway-list textarea { min-height: 74px; }

@media (max-width: 820px) {
  .adm-shell { gap: 0; padding: 0 0 40px; }
  .adm-side {
    top: 0;
    max-height: none;
    border: 0;
    border-bottom: 1px solid var(--a-line);
    border-radius: 0;
  }
  .adm-main { padding: 30px 20px 0; }
  .adm-side-item { border-radius: 10px; border-left-width: 1px; }
}

@media (max-width: 560px) {
  .adm-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adm-card { min-height: 112px; padding: 16px; }
  .adm-card .adm-card-num { font-size: 1.8rem; }
}

.adm-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--a-line-soft);
}
.adm-modal-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a-accent-bright);
  font-weight: 700;
}
.adm-modal-title { margin: 4px 0 0; font-size: 1.25rem; }
.adm-modal-close {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--a-radius);
  border: 1px solid var(--a-line);
  background: transparent;
  color: var(--a-soft);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.adm-modal-close:hover { border-color: var(--a-accent); color: var(--a-accent-bright); }
.adm-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  padding: 12px 20px;
  font-size: 0.82rem;
  color: var(--a-muted);
  border-bottom: 1px solid var(--a-line-soft);
}
.adm-ticket-management {
  padding: 14px 20px 16px;
  border-bottom: 1px solid var(--a-line-soft);
  background: rgba(17, 28, 44, .55);
}
.adm-ticket-management h3 {
  margin: 0 0 10px;
  font-size: .95rem;
}
.adm-ticket-management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.adm-ticket-management .adm-field { min-width: 0; margin-bottom: 8px; }
.adm-ticket-management .adm-field select,
.adm-ticket-management .adm-field input[type="date"] { min-width: 0; }
.adm-ticket-management .adm-hint { margin: 0 0 10px; }
.adm-ticket-assignee-error { color: #f4c265; }
.adm-ticket-priority-low { color: #b6c4d9; }
.adm-ticket-priority-normal { color: #7fd3ea; }
.adm-ticket-priority-high { color: #f4c265; }
.adm-ticket-priority-urgent { color: #ff9d9d; border-color: rgba(239, 68, 68, .55); }
.adm-ticket-overdue { color: #ff7777; font-weight: 700; }
.adm-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  max-height: 50vh;
  overflow-y: auto;
}
.adm-ticket-post {
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  padding: 12px 14px;
}
.adm-ticket-post-main { border-color: var(--a-accent); }
.adm-ticket-post-closing { border-color: rgba(240, 175, 49, 0.5); }
.adm-ticket-post-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--a-muted);
  margin-bottom: 6px;
}
.adm-ticket-post-head strong { color: var(--a-ink); }
/* Umbruch nur an Wortgrenzen - Wörter werden nicht mitten drin getrennt. */
.adm-ticket-post-text { margin: 0; white-space: normal; overflow-wrap: break-word; word-break: normal; hyphens: none; -webkit-hyphens: none; color: var(--a-soft); }

/* Chat-Formatierung im Dashboard */
.adm-chat-para { margin: 0 0 8px; }
.adm-chat-para:last-child { margin-bottom: 0; }
.adm-chat-head { margin: 10px 0 5px; font-size: 0.95rem; font-weight: 800; line-height: 1.35; }
.adm-chat-head:first-child { margin-top: 0; }
.adm-chat-list { margin: 0 0 8px; padding-left: 20px; }
.adm-chat-list li { margin: 2px 0; }
.adm-chat-quote {
  margin: 0 0 8px; padding: 6px 10px;
  border-left: 3px solid var(--a-accent, var(--a-line));
  background: rgba(255, 255, 255, .03);
  border-radius: 0 8px 8px 0;
}
.adm-chat-sep { border: 0; border-top: 1px solid var(--a-line); margin: 10px 0; }
.adm-chat-code {
  margin: 0 0 8px; padding: 8px 10px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--a-line);
  border-radius: 8px; overflow-x: auto;
  font-size: .78rem; line-height: 1.5; white-space: pre; word-break: normal;
}
.adm-chat-code code { font: inherit; }
.adm-chat-inline {
  padding: 1px 4px; border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  font-size: .9em; font-family: ui-monospace, Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}
.adm-chat-popup {
  display: inline-block; margin: 2px 0; padding: 2px 8px;
  border: 1px dashed var(--a-accent, var(--a-line));
  border-radius: 999px; font-size: .82rem;
  overflow-wrap: break-word; word-break: normal;
}
.adm-chat-link, .adm-chat-ext { overflow-wrap: anywhere; }
.adm-chat-ext { word-break: break-all; }
.adm-modal-reply { padding: 0 20px 16px; }
.adm-modal-reply textarea {
  width: 100%;
  resize: vertical;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  color: var(--a-ink);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
}
.adm-modal-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.adm-modal-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--a-line-soft);
  background: var(--a-surface);
}

/* ---- Benachrichtigungen ------------------------------------------------ */
.adm-bell {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--a-radius);
  border: 1px solid var(--a-line);
  background: transparent;
  color: var(--a-soft);
  cursor: pointer;
}
.adm-bell:hover { border-color: var(--a-accent); color: var(--a-accent-bright); }
.adm-bell svg { width: 19px; height: 19px; }
.adm-bell-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--a-danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--a-panel);
}
.adm-notify-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: min(320px, 88vw);
  background: var(--a-panel);
  border: 1px solid var(--a-line);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.adm-notify-head {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--a-muted);
  border-bottom: 1px solid var(--a-line-soft);
}
.adm-notify-list { max-height: 320px; overflow-y: auto; }
.adm-notify-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--a-line-soft);
  background: transparent;
  color: var(--a-ink);
  font-family: inherit;
  cursor: pointer;
}
.adm-notify-item:hover { background: var(--a-surface-2); }
.adm-notify-item strong { font-size: 0.9rem; }
.adm-notify-item span { font-size: 0.76rem; color: var(--a-muted); }
.adm-notify-empty { margin: 0; padding: 16px 14px; color: var(--a-muted); font-size: 0.85rem; }

/* ---- Dokumente ---------------------------------------------------------- */
.adm-modal-titles { flex: 1; min-width: 0; }
.adm-doc-body { min-height: 140px; }
.adm-doc-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.adm-doc-crumb {
  border: 1px solid var(--a-line);
  background: transparent;
  color: var(--a-soft);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.adm-doc-crumb:hover { border-color: var(--a-accent); color: var(--a-accent-bright); }
.adm-doc-crumb.current {
  background: rgba(22, 132, 162, 0.16);
  border-color: rgba(22, 132, 162, 0.5);
  color: #7fd3ea;
  cursor: default;
}
.adm-doc-crumb-sep { color: var(--a-muted); font-size: 0.82rem; }

.adm-doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.adm-doc-list { display: flex; flex-direction: column; gap: 8px; }
.adm-doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
}
.adm-doc-item:hover { border-color: var(--a-accent); }
.adm-doc-item.locked { background: var(--a-surface-2); }
.adm-doc-open {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--a-ink);
  font-family: inherit;
  cursor: pointer;
}
.adm-doc-ico {
  flex: none;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: var(--a-radius);
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
  color: var(--a-soft);
}
.adm-doc-ico svg { width: 18px; height: 18px; }
.adm-doc-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.adm-doc-titles strong {
  font-size: 0.95rem;
  font-family: var(--a-display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-doc-meta { font-size: 0.74rem; color: var(--a-muted); }
.adm-doc-lock {
  flex: none;
  display: inline-flex;
  align-items: center;
  color: #f0af31;
}
.adm-doc-lock svg { width: 16px; height: 16px; }
.adm-doc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-doc-content {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--a-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.adm-field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.adm-field-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--a-accent);
  flex: none;
}
.adm-field-check > span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--a-ink);
  line-height: 1.45;
}

/* Team-Zentrale Dashboard-Farbthema. */
:root {
  --a-bg: #090817;
  --a-panel: #151429;
  --a-surface: #1b1a34;
  --a-surface-2: #252343;
  --a-line: rgba(180, 174, 231, .16);
  --a-line-soft: rgba(180, 174, 231, .1);
  --a-ink: #f5f3ff;
  --a-soft: #c3bfdc;
  --a-muted: #8d89aa;
  --a-accent: #8d72ff;
  --a-accent-bright: #b4a1ff;
  --a-accent-ink: #fff;
  --a-radius: 12px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 650px at 12% 18%, rgba(108, 65, 191, .22), transparent 68%),
    radial-gradient(900px 650px at 92% 8%, rgba(35, 136, 179, .18), transparent 72%),
    #090817;
}

.adm-shell {
  width: min(100% - 36px, 1600px);
  max-width: 1600px;
  min-height: 100vh;
  grid-template-columns: 252px minmax(0, 1fr);
  grid-template-rows: 76px minmax(0, 1fr);
  gap: 16px 20px;
  padding: 14px 0 24px;
}

.adm-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 22px;
  border: 1px solid var(--a-line);
  border-radius: 16px;
  background: rgba(18, 17, 38, .82);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}

.adm-topbar-brand { display: grid; min-width: 0; line-height: 1.2; gap: 4px; }
.adm-topbar-brand strong { font-size: 1.1rem; letter-spacing: -.025em; }
.adm-topbar-kicker,
.adm-chart-kicker {
  color: #a79be8;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.adm-topbar-actions { position: relative; display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: clamp(8px, 1.2vw, 16px); }
.adm-topbar-user { min-width: 0; max-width: clamp(120px, 22vw, 280px); overflow: hidden; color: var(--a-soft); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.adm-system-status {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  color: var(--a-soft);
  background: rgba(255, 255, 255, .035);
  font-size: .78rem;
  font-weight: 700;
}
.adm-system-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8b94f;
  box-shadow: 0 0 12px currentColor;
}
.adm-system-status.is-online i { color: #59ddb2; background: #59ddb2; }
.adm-system-status.is-offline i { color: #ff6a8a; background: #ff6a8a; }

.adm-side {
  top: 104px;
  max-height: calc(100vh - 118px);
  padding: 18px 12px;
  border: 1px solid var(--a-line);
  border-radius: 16px;
  background: rgba(18, 17, 38, .88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}
.adm-side-head { border-bottom-color: var(--a-line); }
.adm-side-brand { font-size: .94rem; }
.adm-side-group { margin-top: 16px; color: #807c9d; }
.adm-side-item {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #bcb8d4;
  font-size: .85rem;
}
.adm-side-item:hover { color: #fff; background: rgba(153, 130, 255, .11); }
.adm-side-item.active {
  color: #fff;
  border-color: rgba(169, 147, 255, .2);
  background: linear-gradient(100deg, rgba(132, 100, 242, .27), rgba(132, 100, 242, .08));
  box-shadow: inset 2px 0 #a990ff;
}
.adm-side-item.active .adm-ico { color: #b3a0ff; }
.adm-side-required { display: none; }
.adm-side-foot { border-top-color: var(--a-line); }
.adm-side-link { color: var(--a-soft); font-size: .84rem; }

.adm-main { padding: 18px 0 0; }
.adm-main > h1 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); letter-spacing: -.05em; }
.adm-lead { margin-bottom: 22px; color: var(--a-muted); }
.adm-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adm-card,
.adm-group,
.adm-note {
  border-color: var(--a-line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(25, 23, 52, .94), rgba(16, 16, 35, .97));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}
.adm-card {
  position: relative;
  min-height: 112px;
  padding: 20px;
  overflow: hidden;
}
.adm-card::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 100px;
  height: 84px;
  border: 1px solid rgba(168, 146, 255, .16);
  border-radius: 50%;
  content: "";
  transform: rotate(-24deg);
}
.adm-card .adm-card-num { color: #fff; font-size: 2rem; }
.adm-card .adm-card-label { color: var(--a-muted); }
.adm-group { padding: 18px; }
.adm-btn { border-radius: 9px; }
.adm-btn-primary {
  border-color: rgba(183, 162, 255, .38);
  background: linear-gradient(135deg, #7057da, #8b68e7);
}
.adm-btn-primary:hover { background: linear-gradient(135deg, #8169eb, #a17cf5); }
.adm-btn-quiet { border-color: var(--a-line); background: rgba(255, 255, 255, .025); }
.adm-table th { color: #9c97b8; }
.adm-field input,
.adm-field select,
.adm-field textarea { background: rgba(10, 9, 25, .6); }
.adm-toast { border-color: rgba(169, 147, 255, .45); }
.adm-bell {
  border-color: var(--a-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}
.adm-bell:hover { border-color: var(--a-accent-bright); color: var(--a-accent-bright); }
.adm-bell-badge { box-shadow: 0 0 0 2px #151429; }
.adm-notify-panel {
  z-index: 30;
  border-color: var(--a-line);
  border-radius: 13px;
  background: #17162f;
}

.adm-dashboard-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr);
  gap: 14px;
  margin: 0 0 18px;
}
.adm-chart-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--a-line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(25, 23, 52, .94), rgba(16, 16, 35, .97));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}
.adm-chart-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.adm-chart-title h2 { margin: 4px 0 0; font-size: 1.04rem; letter-spacing: -.02em; }
.adm-chart-period { color: var(--a-muted); font-size: .73rem; }
.adm-month-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 172px;
  padding: 18px 8px 0;
  border-bottom: 1px solid var(--a-line);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, rgba(180, 174, 231, .07) 40px);
}
.adm-month-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 148px;
  gap: 7px;
}
.adm-month-value { color: var(--a-soft); font-size: .72rem; }
.adm-month-bar {
  width: min(100%, 38px);
  min-height: 5px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #56d4d0, #7861ed 95%);
  box-shadow: 0 0 16px rgba(115, 99, 231, .22);
}
.adm-month-label { color: var(--a-muted); font-size: .72rem; }
.adm-role-bars { display: grid; gap: 15px; margin-top: 22px; }
.adm-role-row { display: grid; grid-template-columns: 78px 1fr 26px; align-items: center; gap: 10px; }
.adm-role-label { color: var(--a-soft); font-size: .76rem; }
.adm-role-row strong { color: var(--a-ink); font-size: .78rem; text-align: right; }
.adm-role-track { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.adm-role-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #39c7c7, #8d72ff);
}

.adm-review-list { display: grid; gap: 14px; margin-top: 18px; }
.adm-review-deadline { margin: -8px 0 14px; color: var(--a-muted); font-size: .82rem; }
.adm-review-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--a-line-soft);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
}
.adm-review-details { display: grid; gap: 3px; min-width: 0; }
.adm-review-details strong { color: var(--a-ink); }
.adm-review-details span,
.adm-review-details small { color: var(--a-muted); font-size: .8rem; }
.adm-review-request .adm-btn-row { justify-content: flex-end; }

@media (max-width: 980px) {
  .adm-shell { width: min(100% - 28px, 900px); grid-template-columns: 220px minmax(0, 1fr); gap: 14px; }
  .adm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-dashboard-charts { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .adm-shell { width: 100%; grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; padding: 10px 12px 24px; }
  .adm-topbar { grid-column: 1; min-height: 64px; flex-wrap: wrap; gap: 10px 12px; padding: 10px 14px; }
  .adm-topbar-brand { flex: 1 1 150px; }
  .adm-topbar-actions { flex: 1 1 100%; justify-content: space-between; gap: 8px; }
  .adm-topbar-user { display: block; flex: 1 1 auto; max-width: none; text-align: right; }
  .adm-system-status { padding: 7px 9px; font-size: .68rem; }
  .adm-side { position: static; max-height: none; padding: 12px; border: 1px solid var(--a-line); border-radius: 14px; }
  .adm-side-nav { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; }
  .adm-side-group { display: none; }
  .adm-side-item { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .adm-side-foot { display: none; }
  .adm-main { padding: 12px 2px 0; }
  .adm-review-request { align-items: flex-start; flex-direction: column; }
  .adm-review-request .adm-btn-row { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .adm-topbar { padding: 9px 10px; }
  .adm-topbar-brand strong { font-size: 1rem; }
  .adm-topbar-kicker { font-size: .58rem; letter-spacing: .12em; }
  .adm-topbar-actions { gap: 6px; }
  .adm-system-status { gap: 6px; padding: 6px 8px; font-size: .65rem; }
  .adm-bell { width: 34px; height: 34px; }
  .adm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .adm-card { min-height: 98px; padding: 14px; }
  .adm-card .adm-card-num { font-size: 1.65rem; }
  .adm-chart-panel { padding: 15px; }
  .adm-month-bars { gap: 5px; padding-right: 0; padding-left: 0; }
  .adm-role-row { grid-template-columns: 66px 1fr 22px; gap: 7px; }
}

/* Keep dashboard cards and their contents inside the available panel width. */
.adm-shell > *,
.adm-main,
.adm-main > *,
.adm-card,
.adm-group,
.adm-note,
.adm-chart-panel {
  min-width: 0;
  max-width: 100%;
}

.adm-card .adm-card-label,
.adm-group,
.adm-note p,
.adm-chart-panel,
.adm-review-details,
.adm-doc-meta {
  overflow-wrap: anywhere;
}

.adm-card .adm-card-num,
.adm-card .adm-card-label {
  position: relative;
  z-index: 1;
}

.adm-table { max-width: 100%; }
.adm-field input,
.adm-field select,
.adm-field textarea { min-width: 0; }

.adm-work-card {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  background: linear-gradient(145deg, rgba(23, 36, 58, .78), rgba(16, 24, 39, .92));
}
.adm-work-card > p { margin: 0; color: var(--a-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-work-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.adm-work-card-head h3 { margin: 0; font-size: 1rem; }
.adm-work-meta { margin: 3px 0 0; color: var(--a-muted); font-size: .82rem; }
.adm-work-status { min-width: 160px; }
@media (max-width: 540px) {
  .adm-work-card-head { flex-direction: column; }
  .adm-work-status { min-width: 0; width: 100%; }
}

@media (max-width: 1180px) {
  .adm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-dashboard-charts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .adm-cards { grid-template-columns: minmax(0, 1fr); }
  .adm-card { min-height: 88px; }
  .adm-review-request { width: 100%; }
  .adm-review-request .adm-btn-row { width: 100%; }
  .adm-review-request .adm-btn { flex: 1 1 120px; }
  .adm-modal-overlay { padding: 12px; }
  .adm-modal-head,
  .adm-modal-body,
  .adm-modal-meta,
  .adm-modal-status { padding-right: 14px; padding-left: 14px; }
  .adm-ticket-management { padding-right: 14px; padding-left: 14px; }
  .adm-ticket-management-grid { grid-template-columns: 1fr; gap: 0; }
}

/* Ticketstatistiken */
.adm-ticket-month-bar { background: linear-gradient(180deg, #72e8ff, #3978e7 95%); }
.adm-ticket-status-chart {
 display: grid;
 grid-template-columns: minmax(96px, .75fr) minmax(0, 1.25fr);
 gap: 18px;
 align-items: center;
 margin-top: 20px;
}
.adm-ticket-donut {
 width: min(100%, 150px);
 aspect-ratio: 1;
 display: grid;
 place-items: center;
 justify-self: center;
 border: 1px solid rgba(255,255,255,.1);
 border-radius: 50%;
 position: relative;
}
.adm-ticket-donut::before {
 content: "";
 position: absolute;
 inset: 18%;
 border-radius: 50%;
 background: #111426;
 box-shadow: inset 0 0 18px rgba(0,0,0,.35);
}
.adm-ticket-donut strong { z-index: 1; font-size: 1.4rem; letter-spacing: -.04em; }
.adm-ticket-legend { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; }
.adm-ticket-legend li,
.adm-ticket-legend-label { display: flex; align-items: center; }
.adm-ticket-legend li { justify-content: space-between; gap: 12px; color: var(--a-soft); font-size: .78rem; }
.adm-ticket-legend-label { gap: 8px; min-width: 0; }
.adm-ticket-legend-marker { width: 9px; height: 9px; flex: none; border-radius: 50%; }
.adm-ticket-legend strong { color: var(--a-ink); font-size: .8rem; }
.adm-ticket-category-bars { margin-top: 20px; }
.adm-ticket-category-row { grid-template-columns: minmax(70px, 1fr) 1.5fr 24px; }
.adm-ticket-category-fill { background: linear-gradient(90deg, #42c8e8, #8b72ff); }

/* Einheitliche Team-Zentrale: klare Glaskarten, ruhige Akzentfarben und Dialoge. */
.adm-topbar {
 background: rgba(8, 13, 24, .82);
 border-bottom-color: rgba(139, 188, 231, .16);
 -webkit-backdrop-filter: blur(18px);
 backdrop-filter: blur(18px);
}
.adm-system-status { border-color: rgba(139, 188, 231, .2); border-radius: 999px; }
.adm-modal-overlay {
 align-items: center;
 background:
   radial-gradient(ellipse at 50% 20%, rgba(52, 126, 201, .16), transparent 55%),
   rgba(3, 7, 16, .82);
 -webkit-backdrop-filter: blur(12px);
 backdrop-filter: blur(12px);
}
.adm-modal {
 border-color: rgba(128, 178, 221, .24);
 border-radius: 20px;
 background: linear-gradient(155deg, rgba(20, 32, 54, .99), rgba(9, 15, 27, .99));
 box-shadow: 0 30px 100px rgba(0, 0, 0, .62), 0 0 0 1px rgba(75, 166, 225, .06);
}
@media (max-width: 560px) {
 .adm-ticket-status-chart { grid-template-columns: 1fr; }
 .adm-ticket-donut { width: 128px; }
 .adm-ticket-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .adm-modal-overlay { align-items: flex-end; }
}

/* Klassisches Admin-Layout */
:root {
  --a-bg: #060b14;
  --a-panel: #0c1523;
  --a-surface: #101b2c;
  --a-surface-2: #15243a;
  --a-line: #26374e;
  --a-line-soft: #1d2b40;
  --a-ink: #e7eefb;
  --a-soft: #b6c4d9;
  --a-muted: #8798b0;
  --a-accent: #3182ce;
  --a-accent-bright: #55a9e3;
  --a-accent-ink: #ffffff;
  --a-danger: #f87171;
  --a-radius: 14px;
  --a-font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --a-display: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

body {
  color: var(--a-ink);
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(900px 560px at 6% 0, rgba(47, 134, 194, .10), transparent 68%),
    radial-gradient(760px 480px at 98% 12%, rgba(74, 91, 187, .08), transparent 68%),
    var(--a-bg);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 8vh;
  right: -9vw;
  width: min(58vw, 820px);
  min-width: 440px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #071a34;
  background-image:
    radial-gradient(circle at 29% 26%, rgba(108, 183, 255, .18), transparent 48%),
    linear-gradient(90deg, rgba(2, 8, 20, .04) 18%, rgba(2, 8, 20, .20) 54%, rgba(2, 8, 20, .78) 100%),
    url("../assets/earth/blue-marble-5400.jpg");
  background-size: 100% 100%, 100% 100%, 200% 100%;
  background-position: center, center, left center;
  background-repeat: no-repeat, no-repeat, repeat-x;
  box-shadow: inset -70px -12px 90px rgba(0, 0, 0, .72), 0 0 120px rgba(23, 113, 196, .14);
  filter: saturate(.82) contrast(1.04);
  opacity: .30;
  animation: adm-earth-rotation 180s linear infinite;
  pointer-events: none;
}

@keyframes adm-earth-rotation {
  to { background-position: center, center, right center; }
}

.adm-shell {
  max-width: 1540px;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
}

.adm-topbar {
  border-color: var(--a-line);
  background: rgba(8, 14, 25, .92);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.adm-topbar-kicker,
.adm-chart-kicker { color: var(--a-muted); }
.adm-topbar-brand strong { color: var(--a-ink); }
.adm-topbar-user { color: var(--a-soft); }
.adm-system-status {
  border-color: var(--a-line);
  color: var(--a-soft);
  background: rgba(16, 27, 44, .9);
}
.adm-system-status i { box-shadow: 0 0 12px currentColor; }

.adm-side {
  border-color: var(--a-line);
  background: linear-gradient(180deg, rgba(13, 23, 39, .98), rgba(7, 13, 23, .98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.adm-side-head,
.adm-side-foot { border-color: rgba(148, 163, 184, .16); }
.adm-side-brand,
.adm-side-user b { color: var(--a-ink); }
.adm-side-brand img {
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .36), 0 0 14px rgba(69, 160, 224, .2);
  transform: perspective(90px) rotateY(-8deg);
  transition: transform .22s ease, filter .22s ease;
}
.adm-side-brand:hover img {
  filter: drop-shadow(0 5px 9px rgba(58, 158, 228, .36));
  transform: perspective(90px) rotateY(0deg) translateZ(3px);
}
.adm-side-group { color: var(--a-muted); }
.adm-side-item { color: var(--a-soft); }
.adm-side-item:hover {
  border-color: transparent;
  background: #182942;
  color: #fff;
}
.adm-side-item.active {
  border-color: #2a4664;
  border-left-color: #55a9e3;
  background: #172c45;
  color: #fff;
  box-shadow: none;
}
.adm-side-item .adm-ico,
.adm-side-item.active .adm-ico { color: #9ed5fa; }
.adm-side-required,
.adm-side-user,
.adm-side-link { color: var(--a-soft); }
.adm-side-link:hover {
  background: #182942;
  color: #fff;
}

.adm-main { color: var(--a-ink); }
.adm-main > h1 { letter-spacing: -.025em; }
.adm-lead { color: var(--a-muted); }
.adm-card,
.adm-group,
.adm-note,
.adm-chart-panel,
.adm-item,
.adm-review-request,
.adm-work-card,
.adm-doc-item,
.adm-liveprev,
.adm-ticket-post {
  border-color: var(--a-line);
  border-radius: 16px;
  background: rgba(13, 22, 37, .96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.adm-note { border-style: solid; }
.adm-card::after { display: none; }
.adm-card {
  min-height: 116px;
  padding: 20px;
  transition: border-color .15s ease;
}
.adm-card:hover {
  transform: none;
  border-color: #385676;
}
.adm-card .adm-card-num { color: var(--a-accent); }
.adm-card .adm-card-label { color: var(--a-muted); }
.adm-group { padding: 20px; }
.adm-item { background: rgba(16, 27, 44, .86); }
.adm-review-request { background: rgba(16, 27, 44, .86); }
.adm-work-card { background: rgba(13, 22, 37, .96); }
.adm-doc-item:hover { border-color: #4775a0; }
.adm-doc-item.locked { background: rgba(16, 27, 44, .86); }
.adm-chart-title h2,
.adm-chart-panel h2 { color: var(--a-ink); }
.adm-chart-period { color: var(--a-muted); }
.adm-month-bars {
  border-bottom-color: var(--a-line);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, rgba(148, 163, 184, .09) 40px);
}
.adm-month-value,
.adm-month-label,
.adm-role-label,
.adm-role-row strong { color: var(--a-soft); }
.adm-month-bar,
.adm-role-fill,
.adm-ticket-month-bar,
.adm-ticket-category-fill { background: linear-gradient(90deg, #3182ce, #58b4e9); box-shadow: 0 0 16px rgba(49, 130, 206, .22); }
.adm-role-track { background: #1d2a3d; }
.adm-ticket-donut::before { background: #0c1523; box-shadow: none; }

.adm-btn,
.adm-subtab,
.adm-side-item,
.adm-side-link,
.adm-modal-close,
.adm-bell,
.adm-preset,
.adm-doc-crumb,
.adm-doc-ico,
.adm-preview,
.adm-liveprev,
.adm-liveprev-card,
.adm-toast,
.adm-tag,
.adm-system-status {
  border-radius: 12px;
}
.adm-btn-primary {
  border-color: var(--a-accent);
  background: var(--a-accent);
  color: #fff;
  box-shadow: none;
}
.adm-btn-primary:hover {
  border-color: var(--a-accent-bright);
  background: var(--a-accent-bright);
}
.adm-btn-quiet,
.adm-subtab,
.adm-preset,
.adm-doc-crumb {
  border-color: var(--a-line);
  background: #101b2c;
  color: var(--a-soft);
}
.adm-btn-quiet:hover,
.adm-subtab:hover,
.adm-preset:hover {
  border-color: #4775a0;
  background: #172740;
  color: #8bcdf3;
}
.adm-subtab.active {
  border-color: var(--a-accent);
  background: var(--a-accent);
  color: #fff;
}
.adm-table th { color: var(--a-muted); }
.adm-table td { border-bottom-color: var(--a-line-soft); }
.adm-table tbody tr:hover td,
.adm-row-click:hover td,
.adm-row-click:focus td { background: #142238; }
.adm-table select,
.adm-field input,
.adm-field select,
.adm-field textarea,
.adm-modal-reply textarea {
  border-color: var(--a-line);
  border-radius: 12px;
  background: #0a1321;
  color: var(--a-ink);
  color-scheme: dark;
}
.adm-field input:focus,
.adm-field select:focus,
.adm-field textarea:focus,
.adm-modal-reply textarea:focus {
  border-color: #55a9e3;
  box-shadow: 0 0 0 3px rgba(85, 169, 227, .16);
}
.adm-field input[type="date"],
.adm-field input[type="datetime-local"] { color-scheme: dark; }
.adm-field input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: invert(.84); }
.adm-tag.live,
.adm-tag-accepted {
  border-color: rgba(74, 222, 128, .32);
  background: rgba(34, 197, 94, .12);
  color: #86efac;
}
.adm-tag.banned,
.adm-tag-rejected {
  border-color: rgba(248, 113, 113, .32);
  background: rgba(239, 68, 68, .12);
  color: #fca5a5;
}
.adm-tag-open { border-color: rgba(56, 189, 248, .3); background: rgba(14, 165, 233, .12); color: #7dd3fc; }
.adm-tag-work { border-color: rgba(251, 191, 36, .34); background: rgba(245, 158, 11, .12); color: #fcd34d; }
.adm-tag-closed { border-color: var(--a-line); background: #131f31; color: var(--a-muted); }
.adm-ticket-assignee-error,
.adm-ticket-priority-high { color: #fcd34d; }
.adm-ticket-priority-low { color: var(--a-muted); }
.adm-ticket-priority-normal { color: #7dd3fc; }
.adm-ticket-priority-urgent,
.adm-ticket-overdue { color: #fca5a5; }
.adm-ticket-priority-urgent { border-color: rgba(248, 113, 113, .32); }
.adm-save-state.ok { color: #86efac; }

.adm-owner-story { max-width: 1160px; margin: 0 auto 34px; }
.adm-owner-story > h1 { margin-bottom: 5px; }
.adm-owner-story > .adm-lead { margin: 0 0 23px; }
.adm-memory-hero {
  position: relative;
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr);
  align-items: center;
  gap: clamp(22px, 4vw, 52px);
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(164, 130, 255, .24);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 87% 45%, rgba(114, 75, 207, .20), transparent 44%),
    linear-gradient(125deg, rgba(20, 25, 45, .98), rgba(11, 17, 31, .97) 64%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px rgba(255,255,255,.035);
  animation: adm-memory-arrive .7s cubic-bezier(.2,.7,.25,1) both;
}
.adm-memory-hero::before {
  position: absolute;
  top: -160px;
  left: 36%;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(174, 153, 255, .08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 38px rgba(174,153,255,.025), 0 0 0 78px rgba(174,153,255,.018);
  pointer-events: none;
}
.adm-memory-copy { position: relative; z-index: 1; max-width: 640px; }
.adm-memory-kicker { margin: 0 0 13px; color: #b7a5ff; font-size: .66rem; font-weight: 750; letter-spacing: .19em; }
.adm-memory-title { margin: 0; color: #f3f0ff; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 720; letter-spacing: -.055em; line-height: 1.07; }
.adm-memory-intro { max-width: 630px; margin: 20px 0 0; color: #c0c7d7; font-size: clamp(.9rem, 1.3vw, 1.02rem); line-height: 1.85; }
.adm-memory-art {
  position: relative;
  z-index: 1;
  min-width: 0;
  aspect-ratio: 1.35;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(198, 185, 255, .25);
  border-radius: 19px;
  background: #100e20;
  box-shadow: 0 20px 56px rgba(0,0,0,.4), 0 0 36px rgba(133,93,255,.12);
  transform: perspective(950px) rotateY(-5deg) rotateX(1deg);
  transition: transform .45s cubic-bezier(.2,.7,.25,1), box-shadow .45s ease;
}
.adm-memory-art:hover { box-shadow: 0 26px 66px rgba(0,0,0,.48), 0 0 46px rgba(133,93,255,.2); transform: perspective(950px) rotateY(0) rotateX(0) translateY(-3px); }
.adm-memory-art::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8,10,19,.78)); content: ""; pointer-events: none; }
.adm-memory-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.adm-memory-art figcaption { position: absolute; z-index: 1; right: 16px; bottom: 14px; left: 16px; color: #f1edff; font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.adm-memory-section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 36px 2px 15px; }
.adm-memory-section-title .adm-memory-kicker { margin-bottom: 7px; }
.adm-memory-section-title h2 { margin: 0; color: var(--a-ink); font-size: clamp(1.15rem, 2vw, 1.55rem); letter-spacing: -.035em; }
.adm-memory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.adm-memory-card {
  position: relative;
  min-width: 0;
  min-height: 150px;
  overflow: hidden;
  padding: 22px 23px;
  border: 1px solid rgba(150, 164, 198, .14);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(17, 25, 42, .97), rgba(11, 17, 29, .97));
  box-shadow: 0 12px 32px rgba(0,0,0,.16);
  animation: adm-memory-arrive .55s cubic-bezier(.2,.7,.25,1) both;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.adm-memory-card:nth-child(2) { animation-delay: .08s; }
.adm-memory-card:nth-child(3) { animation-delay: .16s; }
.adm-memory-card:nth-child(4) { animation-delay: .24s; }
.adm-memory-card:hover { transform: translateY(-3px); border-color: rgba(168, 139, 255, .34); background: linear-gradient(145deg, rgba(25, 31, 54, .98), rgba(12, 19, 34, .98)); }
.adm-memory-number { display: inline-flex; min-width: 34px; height: 28px; align-items: center; justify-content: center; margin-bottom: 15px; border: 1px solid rgba(174,153,255,.2); border-radius: 999px; color: #c0adff; background: rgba(132,101,225,.1); font-size: .65rem; font-weight: 750; letter-spacing: .08em; }
.adm-memory-card h3 { margin: 0; color: #e7eafa; font-size: .92rem; font-weight: 690; letter-spacing: -.015em; }
.adm-memory-card p { margin: 9px 0 0; color: #a7b2c7; font-size: .78rem; line-height: 1.75; }
.adm-memory-closing { position: relative; margin: 15px 0 0; padding: clamp(23px, 4vw, 38px); border: 1px solid rgba(171, 146, 255, .2); border-radius: 19px; color: #e8e4f5; background: radial-gradient(ellipse at 8% 0, rgba(128,91,224,.13), transparent 54%), rgba(14,19,32,.96); font-size: clamp(.95rem, 1.45vw, 1.12rem); line-height: 1.9; box-shadow: 0 16px 42px rgba(0,0,0,.17); }
.adm-memory-closing::before { display: block; margin-bottom: 4px; color: #b7a5ff; content: "FÜR DICH"; font-size: .62rem; font-weight: 800; letter-spacing: .2em; }
.adm-memory-status { margin: 12px 2px 0; color: var(--a-muted); font-size: .7rem; }
@keyframes adm-memory-arrive {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

.adm-modal-overlay {
  background: rgba(1, 5, 12, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.adm-modal {
  border-color: var(--a-line);
  border-radius: 18px;
  background: linear-gradient(160deg, #111e31, #0b1321);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .52);
}
.adm-modal-kicker { color: var(--a-accent); }
.adm-ticket-management { background: #0b1422; }
.adm-ticket-post { background: #101b2c; }
.adm-ticket-post-main { border-color: #93b4e8; }
.adm-ticket-post-text { color: var(--a-soft); }
.adm-chat-quote { background: #15243a; }
.adm-chat-code {
  border-color: var(--a-line);
  background: #080f1b;
  color: #dbeafe;
}
.adm-chat-inline { background: #1a2a41; }
.adm-toast {
  border-color: var(--a-line);
  background: #101b2c;
  color: var(--a-ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
}
.adm-savebar { background: linear-gradient(180deg, transparent, var(--a-bg) 45%); }
.adm-swatch { border-radius: 12px; }
.adm-swatch-label { border-radius: 8px; }
.adm-review-deadline,
.adm-doc-meta { color: var(--a-muted); }

@media (max-width: 820px) {
  body::before {
    top: 16vh;
    right: -44vw;
    width: 90vw;
    min-width: 0;
    opacity: .20;
    animation-duration: 240s;
  }
  .adm-memory-hero { grid-template-columns: 1fr; gap: 24px; }
  .adm-memory-art { width: min(100%, 520px); aspect-ratio: 1.7; transform: none; }
  .adm-memory-art:hover { transform: translateY(-2px); }
  .adm-memory-grid { grid-template-columns: 1fr; }
  .adm-memory-section-title { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .adm-side-brand img { transition: none; }
  .adm-memory-hero, .adm-memory-card { animation: none; }
  .adm-memory-art, .adm-memory-card { transition: none; }
}

@media (max-width: 820px) {
  .adm-shell {
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px 24px;
  }
  .adm-side {
    position: static;
    top: auto;
    max-height: none;
    padding: 12px;
    border: 1px solid var(--a-line);
    border-radius: 16px;
  }
}
