/* HeldixClient – Webseite: Bausteine der Konto- und Team-Bereiche (Listen, Chat, Support, Cosmetics, Addons, Prüfung,
   Updates, Meldungen …) im neuen Design. Erzeugt aus den bisherigen Stylesheets (styles.css, app.css, konto.css,
   team.css) – nur Regeln, die Konto und Team benutzen; Grundbausteine (Knöpfe, Karten, Chips, Formulare, Dialoge,
   Toasts) kommen aus design.css, Rahmen und neue Teile aus bereich.css. Die alten Variablen zeigen auf die Tokens
   von design.css. Wird nur auf /konto und /team geladen. */

.bereich {
  --panel: var(--surface);
  --panel-hover: var(--surface-2);
  --glass: var(--surface);
  --glass-strong: var(--surface-2);
  --muted: var(--text-2);
  --faint: var(--text-3);
  --success: var(--online);
  --warning: var(--reward);
  --cyan: var(--c-cyan-400);
  --violet: var(--c-violet-500);
  --accent-deep: var(--accent-strong);
  --accent-hover: var(--c-blue-400);
  --field: var(--bg-raised);
  --glow: var(--glow-accent);
  --radius-sm: var(--r-sm);
  --radius: var(--r-md);
  --radius-lg: var(--r-lg);
  --surface-line: var(--line);
  --surface-hover: var(--surface-2);
  --surface-raised: var(--surface-2);
  --selected: var(--accent-soft);
  --bg-2: var(--bg-raised);
  --bg-3: var(--surface);
  --nav-h: var(--header-h);
  --max: 1240px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;
  --step--1: var(--fs-sm);
  --step-0: var(--fs-base);
  --step-1: var(--fs-md);
  --step-2: var(--fs-lg);
  --step-3: var(--fs-xl);
  --step-4: var(--fs-2xl);
  --step-5: var(--fs-3xl);
}

/* ---------- styles.css: Knöpfe und Bausteine ---------- */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(8, 11, 18, 0.5);
  border: 1px solid var(--line);
}
.checks .icon {
  color: var(--success);
  margin-top: 2px;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.steps li {
  display: flex;
  gap: 14px;
  counter-increment: step;
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.16);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 13.5px;
}
.steps strong {
  color: var(--text);
}

/* ---------- styles.css: Konto und Team ---------- */
.bereich code:not(.secret):not(.mono) {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.nowrap {
  white-space: nowrap;
}
.bereich .hint {
  margin-top: 10px;
  color: var(--faint);
  font-size: 13.5px;
}
.bereich .notice {
  margin: 16px 0 0;
}
.bereich .small-notice {
  margin: 0 0 16px;
  font-size: 14px;
  padding: 10px 14px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.gate {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 12px;
}
.gate.narrow {
  max-width: 520px;
}
.gate-head {
  text-align: center;
}
.bereich .gate-head .lead {
  margin: 14px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}
.gate-head .button {
  margin-top: 24px;
}
.gate-head .notice {
  text-align: left;
}
.bereich .gate-sub {
  margin: 40px 0 14px;
  font-size: 13px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}
.ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.way-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.way-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.14);
  color: var(--accent-text);
}
.bereich .way-head h3 {
  font-size: 18px;
}
.info-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(147, 197, 253, 0.2);
  color: #c9d2e0;
}
.info-box .icon {
  color: var(--accent-text);
  margin-top: 2px;
}
.info-box.small {
  font-size: 14px;
}
.bereich .gate .info-box {
  margin-top: 16px;
}
.bereich .gate-foot {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
}
.player-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.avatar .presence {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--faint);
  border: 3px solid #0d121d;
}
.avatar .presence.on {
  background: var(--success);
}
.unread-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.panel:focus-visible {
  outline-offset: 6px;
}
.app-card + .app-card,
.panel > .panel-grid + .app-card,
.panel > .app-card + .panel-grid {
  margin-top: 16px;
}
.bereich .app-card > h2 + p,
.bereich .app-card > h2 + div,
.bereich .app-card > h2 + form {
  margin-top: 10px;
}
.bereich .app-card > p + form {
  margin-top: 16px;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.bereich .card-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 640px;
}
.bereich .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.panel-grid > .app-card + .app-card {
  margin-top: 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: start;
}
.split > .app-card + .app-card,
.ways > .app-card + .app-card {
  margin-top: 0;
}
.stack > .app-card + .app-card {
  margin-top: 0;
}
.list-gap {
  margin-top: 16px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 16px;
}
.toolbar p {
  max-width: 640px;
}
.bereich .live-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.live-hint .icon {
  width: 15px;
  height: 15px;
}
.saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}
.saved.visible {
  opacity: 1;
}
.saved .icon {
  width: 16px;
  height: 16px;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 11, 18, 0.45);
  border: 1px solid var(--line);
  min-width: 0;
}
.row-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.row-button:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
}
.row-button[aria-current="true"] {
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(59, 130, 246, 0.12);
}
.row-button > .icon {
  color: var(--faint);
}
.row-main {
  flex: 1 1 0%;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.row-sub {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.row-sub.online {
  color: var(--success);
}
.row-meta {
  color: var(--faint);
  font-size: 13px;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
}
.row-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.bereich .list-title {
  margin: 16px 0 8px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bereich .list-title:first-child {
  margin-top: 0;
}
.checks.compact {
  margin: 14px 0;
  gap: 8px;
}
.checks.compact li {
  padding: 10px 14px;
  font-size: 14.5px;
}
.checks.compact .icon {
  color: var(--accent-text);
  width: 18px;
  height: 18px;
}
.plain-list {
  margin: 0;
  padding-left: 18px;
}
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.link-chip {
  cursor: pointer;
  color: var(--accent-text);
}
.link-chip:hover {
  border-color: rgba(147, 197, 253, 0.45);
}
.button.danger:hover {
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
.button.ghost:disabled:hover {
  background: var(--panel);
}
.button[aria-busy="true"] {
  cursor: progress;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28);
}
.tiny-select {
  width: auto;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 13.5px;
}
.inline-form,
.ban-form,
.code-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
}
.inline-form .field {
  flex: 1 1 220px;
}
.ban-form .field {
  flex: 0 1 220px;
}
.ban-form .field.grow {
  flex: 1 1 300px;
}
.code-form .field {
  flex: 0 1 220px;
}
.inline-form .button,
.ban-form .button,
.code-form .button {
  height: 44px;
}
.input-icon {
  position: relative;
  display: block;
}
.input-icon .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.input-icon .input {
  padding-left: 40px;
}
.otp {
  font: 700 22px/1 var(--mono);
  letter-spacing: 0.25em;
  text-align: center;
}
.bereich .form-error {
  margin-top: 10px;
  color: var(--danger-text);
  font-size: 14px;
}
.bereich .form-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #6ee7b7;
  font-size: 14px;
}
.form-ok .icon {
  width: 17px;
  height: 17px;
  flex: none;
}
.dialog-form .form-error {
  color: var(--danger-text);
  font-size: 14px;
}
.counter {
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.counter.near {
  color: var(--warning);
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  cursor: pointer;
}
.check-row input,
.choice input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--accent);
}
.choices {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}
.choices legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--field);
  cursor: pointer;
  font-size: 14.5px;
}
.choice input {
  margin: 0;
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
}
.switches {
  display: grid;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.switch-row:first-child {
  border-top: 0;
  padding-top: 2px;
}
.switch-row.dim .switch-text {
  opacity: 0.55;
}
.switch-text strong {
  display: block;
  font-weight: 700;
}
.switch-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s;
}
.switch:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.switch:checked::after {
  transform: translateX(20px);
}
.switch:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}
.cape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  gap: 12px;
}
.cape-option {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.45);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.cape-option:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
  transform: translateY(-1px);
}
.cape-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.cape-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.14);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cape-option:has(input:focus-visible) {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}
.cape-art {
  display: grid;
  place-items: center;
  width: 62px;
  aspect-ratio: 120 / 183;
  border-radius: 7px;
  background-image: url("images/capes.png");
  background-repeat: no-repeat;
  background-size: 1560% auto;
  background-position-y: 28.986%;
  color: var(--faint);
}
.cape-art[data-cape="heldix"] {
  background-position-x: 1.37%;
}
.cape-art[data-cape="mitternacht"] {
  background-position-x: 9.475%;
}
.cape-art[data-cape="aurora"] {
  background-position-x: 17.58%;
}
.cape-art[data-cape="glut"] {
  background-position-x: 25.685%;
}
.cape-art[data-cape="kristall"] {
  background-position-x: 33.79%;
}
.cape-art[data-cape="neon"] {
  background-position-x: 41.895%;
}
.cape-art[data-cape="sakura"] {
  background-position-x: 50%;
}
.cape-art[data-cape="gewitter"] {
  background-position-x: 58.105%;
}
.cape-art[data-cape="galaxie"] {
  background-position-x: 66.21%;
}
.cape-art[data-cape="matrix"] {
  background-position-x: 74.315%;
}
.cape-art[data-cape="matrix_rot"] {
  background-position-x: 82.42%;
}
.cape-art[data-cape="matrix_tuerkis"] {
  background-position-x: 90.525%;
}
.cape-art[data-cape="sakura_orange"] {
  background-position-x: 98.63%;
}
.cape-art.none,
.cape-art.unknown {
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, transparent 8px 16px);
  border: 1px dashed var(--line-strong);
}
.cape-name {
  font-size: 13.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.cape-tick {
  position: absolute;
  top: 7px;
  right: 7px;
  display: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.cape-tick .icon {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}
.cape-option:has(input:checked) .cape-tick {
  display: grid;
}
.chat {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: clamp(460px, calc(100vh - 320px), 720px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}
.conv-list {
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  border-right: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.3);
}
.conv-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.conv {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.conv:hover {
  background: var(--panel-hover);
}
.conv[aria-current="true"] {
  background: rgba(59, 130, 246, 0.16);
}
.conv:focus-visible {
  outline-offset: -2px;
}
.conv-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.conv-top,
.conv-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.conv-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv-time {
  flex: none;
  color: var(--faint);
  font-size: 12.5px;
}
.conv-preview {
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv.unread .conv-preview {
  color: var(--text);
  font-weight: 600;
}
.conv-preview.muted {
  color: var(--faint);
}
.bereich .conv-section {
  margin: 12px 10px 6px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.conv-list .empty {
  margin: 6px;
}
.chat-pane,
.chat-active {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.chat-active {
  flex: 1 1 auto;
}
.chat-empty {
  margin: auto;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.chat-empty .icon {
  width: 32px;
  height: 32px;
  color: var(--faint);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.chat-head .back {
  display: none;
}
.chat-who {
  flex: 1 1 auto;
  min-width: 0;
}
.bereich .chat-who h2 {
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-who .row-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.chat-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
}
.chat-scroll:focus-visible {
  outline-offset: -3px;
}
.older {
  align-self: center;
  margin-bottom: 8px;
}
.chat-start {
  margin: auto;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.day-sep {
  align-self: center;
  margin: 12px 0 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 600;
}
.msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(78%, 560px);
}
.msg.mine {
  align-self: flex-end;
  align-items: flex-end;
}
.bubble {
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg.theirs .bubble {
  border-bottom-left-radius: 6px;
}
.msg.mine .bubble {
  background: linear-gradient(135deg, #2563eb, var(--accent));
  border-color: transparent;
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg.grouped.theirs .bubble {
  border-bottom-left-radius: 16px;
}
.msg.grouped.mine .bubble {
  border-bottom-right-radius: 16px;
}
.msg time {
  margin: 3px 6px 8px;
  color: var(--faint);
  font-size: 11.5px;
}
.chat-form {
  display: flex;
  gap: 10px;
  padding: 12px 16px 6px;
  border-top: 1px solid var(--line);
}
.chat-form .button {
  height: 44px;
}
.bereich .chat-error {
  padding: 0 16px;
  margin-top: 4px;
}
.chat-note {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 16px 12px;
  color: var(--faint);
  font-size: 12.5px;
}
.chat-note > span:first-child {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.chat-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.dialog-form .info-box {
  margin: 0;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.danger-zone {
  border-color: rgba(248, 113, 113, 0.28);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.07), transparent 60%), var(--panel);
}
.danger-zone p {
  max-width: 820px;
  color: #c9d2e0;
}
.bereich .danger-zone p.muted {
  color: var(--muted);
}
.bereich .danger-zone p + p {
  margin-top: 8px;
}
.segmented button:hover {
  color: var(--text);
}
.segmented button[aria-pressed="true"] {
  background: rgba(59, 130, 246, 0.2);
  color: var(--text);
}
.report {
  display: grid;
  gap: 12px;
  scroll-margin-top: 84px;
}
.report.highlight {
  animation: flash 2s ease-out;
}
@keyframes flash {
  from {
    box-shadow: 0 0 0 3px var(--accent);
  }
  to {
    box-shadow: 0 0 0 3px transparent;
  }
}
.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.bereich .report-id {
  font-size: 16px;
}
.report-time {
  margin-left: auto;
  color: var(--faint);
  font-size: 13.5px;
}
.bereich .report-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  color: var(--muted);
}
.bereich .report .card-actions {
  margin-top: 4px;
}
.quote {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid rgba(147, 197, 253, 0.45);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bereich .quote.small {
  margin-top: 6px;
  padding: 6px 12px;
  font-size: 14px;
}
.quote-label {
  color: var(--faint);
  font-weight: 600;
}
.snapshot summary {
  cursor: pointer;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 14.5px;
}
.snap-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 380px;
  overflow-y: auto;
}
.snap-meta {
  color: var(--faint);
  font-size: 12.5px;
}
.snap-meta strong {
  color: var(--muted);
}
.snap-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14.5px;
}
.detail {
  scroll-margin-top: 84px;
}
.detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.detail-title {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.detail-title h2 {
  overflow-wrap: anywhere;
}
.facts-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 18px;
  margin: 0;
  font-size: 14.5px;
}
.facts-list dt {
  color: var(--faint);
}
.facts-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.uuid-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}
.uuid-row code {
  overflow-wrap: anywhere;
}
.ban-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.06);
}
.bereich .ban-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.ban-title .icon {
  color: var(--danger);
}
.bereich .ban-box .card-actions {
  margin-top: 12px;
}
.admin-actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.bereich .admin-actions h3 {
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bereich .admin-actions .card-actions {
  margin-top: 10px;
}
.editor {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.editor-form {
  display: grid;
  gap: 14px;
}
.bereich .editor-form .hint {
  margin-top: -6px;
}
.bereich .editor-form .card-actions {
  margin-top: 0;
}
.preview {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 8px;
}
.bereich .preview .eyebrow {
  margin: 0;
}
.news-item {
  display: grid;
  gap: 8px;
}
.news-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.news-item-head h2 {
  overflow-wrap: anywhere;
}
.news-excerpt {
  color: var(--muted);
  font-size: 14.5px;
  overflow-wrap: anywhere;
}
.bereich .news-excerpt p + p {
  margin-top: 8px;
}
.bereich .news-item .card-actions {
  margin-top: 6px;
}
.bereich .news-card p + p {
  margin-top: 10px;
}
.bereich .version-big {
  margin: 4px 0 14px;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.hash {
  color: var(--muted);
}
.small-steps {
  margin-top: 14px;
  gap: 12px;
  font-size: 14.5px;
}
.upload-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.upload-steps > li {
  display: grid;
  gap: 12px;
}
.bereich .upload-steps h3 {
  font-size: 15.5px;
}
.upload-steps > li + li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.file-button {
  position: relative;
}
.file-button:focus-within {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}
.file-name {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.upload-progress {
  display: grid;
  gap: 8px;
  max-width: 560px;
}
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.check-list .ok .icon {
  color: var(--success);
}
.check-list .fail {
  color: var(--danger-text);
}
.check-list .info {
  color: var(--muted);
}
.setup {
  margin-top: 28px;
}
.setup-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 24px;
}
.setup-steps > li {
  position: relative;
  padding-left: 46px;
  counter-increment: step;
  display: grid;
  gap: 10px;
}
.setup-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.18);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 14px;
}
.setup-steps > li + li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.setup-steps > li + li::before {
  top: 20px;
}
.setup-steps > li.step-disabled {
  opacity: 0.5;
}
.bereich .setup-steps .card-actions {
  margin-top: 4px;
}
.secret-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
}
.secret {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(147, 197, 253, 0.4);
  background: var(--field);
  font: 700 18px/1.35 var(--mono);
  letter-spacing: 0.08em;
  color: var(--text);
  user-select: all;
}
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.table th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: break-word;
}
.table tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 980px) {
  .editor {
    grid-template-columns: minmax(0, 1fr);
  }
  .preview {
    position: static;
  }
}
@media (max-width: 900px) {
  .split,
  .panel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .split > .detail:has(> .placeholder) {
    display: none;
  }
}
@media (max-width: 760px) {
  .ways {
    grid-template-columns: 1fr;
  }
  .chat {
    grid-template-columns: minmax(0, 1fr);
    scroll-margin-top: 72px;
    height: calc(100svh - 120px);
    min-height: 460px;
  }
  .chat:not(.chat-open) .chat-pane,
  .chat.chat-open .conv-list {
    display: none;
  }
  .conv-list {
    border-right: 0;
  }
  .chat-head {
    padding: 10px 12px;
    gap: 10px;
  }
  .chat-head .back {
    display: inline-grid;
  }
  .chat-actions .label,
  .chat-form .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .chat-actions .button.tiny {
    width: 36px;
    padding: 0;
  }
  .chat-form .button {
    width: 48px;
    padding: 0;
  }
  .chat-scroll {
    padding: 12px;
  }
  .chat-form {
    padding: 10px 12px 4px;
  }
  .chat-note {
    padding: 4px 12px 10px;
  }
  .msg {
    max-width: 86%;
  }
  .report-time {
    margin-left: 0;
    width: 100%;
  }
  .table thead {
    display: none;
  }
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
  }
  .table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .table td {
    padding: 2px 0;
    border: 0;
  }
  .table td:empty {
    display: none;
  }
  .table td:first-child,
  .table td:nth-child(2) {
    display: inline-block;
    margin-right: 8px;
    font-size: 13.5px;
  }
  .table td:first-child {
    color: var(--faint);
  }
  .setup-steps > li {
    padding-left: 40px;
  }
}
@media (max-width: 560px) {
  .row {
    flex-wrap: wrap;
  }
  .row > .row-actions {
    width: 100%;
    justify-content: flex-start;
    padding-left: 54px;
  }
  .row-button {
    flex-wrap: nowrap;
  }
  .member-row > .row-actions {
    padding-left: 0;
  }
  .choices {
    grid-template-columns: 1fr;
  }
  .facts-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .facts-list dd + dt {
    margin-top: 8px;
  }
  .inline-form .button,
  .ban-form .button,
  .code-form .button {
    flex: 1 1 100%;
  }
  .ban-form .field,
  .code-form .field {
    flex: 1 1 100%;
  }
  .cape-grid {
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 10px;
  }
  .cape-art {
    width: 54px;
  }
  .dialog-actions .button {
    flex: 1 1 auto;
  }
}

/* ---------- styles.css: Teamkarten (Vorschau) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 300px));
  justify-content: center;
  gap: 16px;
}
.team-grid.single {
  grid-template-columns: minmax(0, 340px);
}
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 22px 24px;
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 0%, rgba(59, 130, 246, 0.14), transparent 60%), var(--panel);
  border: 1px solid var(--line);
  text-align: center;
  min-width: 0;
}
.member-card .skin-head {
  margin-bottom: 6px;
}
.member-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  min-width: 0;
}
.member-name h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.member-card p {
  margin: 0;
  overflow-wrap: anywhere;
}
.member-title {
  color: var(--accent-text);
  font-weight: 700;
  font-size: 14.5px;
}
.member-about {
  color: var(--muted);
  font-size: 15px;
}
.member-since {
  margin-top: auto !important;
  padding-top: 6px;
  color: var(--faint);
  font-size: 13.5px;
}
.avatar.skin-head {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ---------- styles.css: Support, Teamprofil ---------- */
.support {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}
.support > .app-card + .app-card {
  margin-top: 0;
}
.detail-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.detail-top .back {
  display: none;
}
.support-form {
  display: grid;
  gap: 14px;
}
.bereich .support-form .detail-top,
.bereich .ticket .detail-top {
  margin-bottom: 2px;
}
.bereich .support-form .hint {
  margin-top: -4px;
}
.bereich .support-form .card-actions,
.bereich .ticket-reply .card-actions {
  margin-top: 0;
}
.ticket-title {
  min-width: 0;
}
.ticket-title h2 {
  overflow-wrap: anywhere;
}
.bereich .ticket-title .row-meta,
.bereich .ticket-player {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 6px;
}
.bereich .ticket-player {
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 14.5px;
}
.ticket-subject {
  overflow-wrap: anywhere;
}
.unread-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.ticket-messages {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
}
.ticket-msg {
  max-width: 88%;
  padding: 10px 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}
.ticket-msg.mine,
.ticket-msg.team {
  justify-self: end;
}
.ticket-msg.mine {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(147, 197, 253, 0.3);
}
.ticket-msg.team {
  background: rgba(52, 211, 153, 0.07);
  border-color: rgba(52, 211, 153, 0.25);
}
.support .ticket-msg.team {
  justify-self: start;
}
.ticket-msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0 0 4px !important;
  color: var(--faint);
  font-size: 12.5px;
}
.ticket-msg-head strong {
  color: var(--muted);
}
.ticket-msg-text {
  overflow-wrap: anywhere;
  font-size: 15px;
}
.bereich .ticket-msg-text p + p {
  margin-top: 8px;
}
.tiny-chip {
  height: 18px;
  padding: 0 7px;
  font-size: 11px;
}
.ticket-reply {
  display: grid;
  gap: 10px;
}
.small-textarea {
  min-height: 110px;
}
.bereich .ticket-reply .hint,
.bereich .ticket-reply .form-error {
  margin-top: 0;
}
.bereich .author-note {
  margin: 0;
}
.bereich .closed-notice {
  margin: 0;
}
.profile-editor .switch-row {
  border-top: 0;
  padding: 4px 0 0;
}
.profile-editor .card-head {
  margin-bottom: 0;
}
.bereich .profile-editor .info-box {
  margin: 0;
}
.preview-state {
  margin: 0 0 4px !important;
  color: var(--muted);
  font-size: 14px;
}
.preview-state.public {
  color: #6ee7b7;
}
.bereich .unsaved {
  margin: 0;
  align-self: center;
}
.profile-editor .card-actions {
  align-items: center;
}
@media (max-width: 900px) {
  .support {
    grid-template-columns: minmax(0, 1fr);
  }
  .support.detail-open > .support-list,
  .support:not(.detail-open) > .support-detail {
    display: none;
  }
  .support {
    scroll-margin-top: 72px;
  }
  .detail-top .back {
    display: inline-grid;
  }
  .ticket-messages {
    max-height: none;
  }
  .team-grid.single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 340px;
  }
}
@media (max-width: 720px) {
  .ticket-msg {
    max-width: 94%;
  }
}

/* ---------- styles.css: Format 2, Belohnungen ---------- */
.anim-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.anim-chips[hidden] {
  display: none;
}
.anim-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.6);
  color: var(--muted);
  font: 700 12px/1 var(--font);
  cursor: pointer;
}
.anim-chip:hover {
  color: var(--text);
  border-color: var(--line-accent);
}
.anim-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.anim-chip[aria-pressed="true"] {
  color: var(--accent-text);
  background: rgba(59, 130, 246, 0.24);
  border-color: var(--accent);
}
.anim-once {
  font-weight: 600;
  font-size: 11px;
  opacity: 0.75;
}

/* ---------- styles.css: Team-Addons, Addon-Store 2, Breakpoints ---------- */
.key-notice code {
  font-family: var(--mono);
  font-size: 0.9em;
}
.manifest-check.filled {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.45);
}
.manifest-check .check-list {
  margin: 0;
}
.manifest-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.manifest-head > div {
  min-width: 0;
}
.manifest-head p {
  margin-top: 2px !important;
}
.check-list .warn {
  color: #fde68a;
}
.addon-admin-list {
  display: grid;
  gap: 14px;
}
.addon-admin {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(8, 11, 18, 0.35);
  border: 1px solid var(--line);
}
.addon-admin-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
}
.addon-admin-head .row-main {
  flex: 1 1 200px;
}
.addon-admin-actions {
  align-items: center;
}
.inline-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.addon-admin-versions .row {
  background: rgba(255, 255, 255, 0.025);
}
.addon-admin-notes {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
}
@media (max-width: 560px) {
  .addon-admin {
    padding: 12px;
  }
  .addon-admin-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
.chip.official {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.32);
}
.chip.community {
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(167, 139, 250, 0.34);
}
.addon-author-link {
  position: relative;
  z-index: 2;
  font-weight: 700;
}
.addon-author-link.deleted {
  color: var(--faint);
  font-style: italic;
  font-weight: 600;
}
.stars-row {
  display: inline-flex;
  gap: 1px;
}
.stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  overflow: hidden;
  color: var(--warning);
  white-space: nowrap;
}
.stars-fill .icon {
  fill: currentColor;
}
.addon-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.addon-rating.none {
  color: var(--faint);
  font-weight: 600;
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.shot-thumb {
  display: block;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0a0f1b;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.15s, transform 0.2s var(--ease);
}
.shot-thumb:hover {
  border-color: rgba(147, 197, 253, 0.5);
  transform: translateY(-1px);
}
.shot-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.choices.single {
  grid-template-columns: minmax(0, 1fr);
}
.inspect-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14.5px;
}
.inspect-item .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.inspect-item.danger {
  color: var(--danger-text);
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.45);
}
.inspect-item.warn {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.36);
}
.inspect-item.ok {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.07);
  border-color: rgba(52, 211, 153, 0.3);
}
.inspect-item strong {
  color: inherit;
}
.inspect-detail {
  color: var(--muted);
}
.rules-list li {
  align-items: flex-start;
}
.rules-list strong {
  color: var(--text);
}
.addon-icon.small {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.addon-icon.small .icon {
  width: 20px;
  height: 20px;
}
.addon-icon.tiny {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}
.addon-icon.tiny .icon {
  width: 15px;
  height: 15px;
}
.own-addon {
  align-items: flex-start;
}
.own-addon .row-main {
  gap: 4px;
}
.review-quote {
  margin-top: 4px;
  font-size: 14px;
}
.own-addon .row-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.wizard .detail-top .back {
  display: inline-grid;
}
.wizard-title {
  min-width: 0;
}
.wizard-title h2 {
  overflow-wrap: anywhere;
}
.review-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.36);
}
.review-note > .icon {
  margin-top: 2px;
  color: var(--danger);
}
.review-note p {
  margin-top: 4px !important;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wizard-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  counter-reset: none;
}
.wizard-steps button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 11, 18, 0.45);
  color: var(--muted);
  font: 600 14px/1.25 var(--font);
  text-align: left;
  cursor: pointer;
}
.wizard-steps button:disabled {
  cursor: default;
  opacity: 0.55;
}
.wizard-steps button[aria-current="step"] {
  color: var(--text);
  border-color: rgba(147, 197, 253, 0.5);
  background: rgba(59, 130, 246, 0.14);
}
.step-no {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 800;
}
.wizard-steps button[aria-current="step"] .step-no {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.wizard-steps button.done .step-no {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}
.step-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.wizard-step {
  display: grid;
  gap: 14px;
}
section.wizard-step,
section.review-section {
  padding-top: 0;
  scroll-margin-top: 84px;
}
.bereich .wizard-step h3 {
  font-size: 18px;
}
.bereich .wizard-step h4,
.bereich .review-section h4 {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}
.wizard-form {
  display: grid;
  gap: 14px;
}
.bereich .wizard-form .hint {
  margin-top: -6px;
}
.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.system-choices {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.system-choices legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
.system-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-height: 44px;
  align-items: center;
}
.bereich .system-choices .hint {
  margin-top: 4px;
}
.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  max-height: 212px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--field);
  overscroll-behavior: contain;
}
.icon-choice {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
}
.icon-choice:hover {
  background: var(--panel-hover);
  color: var(--text);
}
.icon-choice:has(input:checked) {
  color: #fff;
  background: rgba(59, 130, 246, 0.3);
  border-color: var(--accent);
}
.icon-choice:has(input:focus-visible) {
  outline: 2px solid var(--accent-text);
  outline-offset: 1px;
}
#jar-erkannt.filled {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.45);
}
#jar-erkannt .addon-warning {
  margin: 0;
}
.shot-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.shot-slot {
  display: grid;
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 11, 18, 0.45);
  overflow: hidden;
}
.shot-slot figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}
.shot-preview {
  display: block;
  padding: 0;
  border: 0;
  background: #0a0f1b;
  cursor: zoom-in;
}
.shot-preview img,
.shot-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.shot-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--faint);
  font-size: 13px;
}
.shot-add-text {
  font-weight: 700;
}
.shot-add-hint {
  color: var(--faint);
  font-size: 12.5px;
}
.preview-card {
  max-width: 460px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  pointer-events: none;
}
.preview-text summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 14.5px;
}
.preview-text summary .icon {
  width: 16px;
  height: 16px;
}
.preview-text .addon-text {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.45);
}
.rules-confirm {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line-accent);
  background: rgba(59, 130, 246, 0.06);
}
.rules-confirm legend {
  padding: 0 6px;
  font-size: 14px;
  font-weight: 700;
}
.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.wizard-spacer {
  flex: 1 1 auto;
}
.bereich .wizard > .form-error {
  margin-top: 14px;
}
.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.subtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin-bottom: -1px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 600 14.5px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
}
.subtab:hover {
  color: var(--text);
}
.subtab[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.subtab .icon {
  width: 17px;
  height: 17px;
}
.subpanel:focus-visible {
  outline-offset: 6px;
}
.review-split {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
}
.submission-item .row-main {
  gap: 4px;
}
.review-detail {
  display: grid;
  gap: 18px;
  align-content: start;
}
.review-detail > .detail-top {
  margin-bottom: 0;
  align-items: flex-start;
}
.review-title {
  min-width: 0;
}
.review-title h2 {
  overflow-wrap: anywhere;
}
.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px !important;
}
.review-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.review-summary {
  color: var(--text);
}
.review-text {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.35);
  font-size: 14.5px;
}
.icon-fact {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.manifest-text summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 14.5px;
}
.manifest-text summary .icon {
  width: 16px;
  height: 16px;
}
.manifest-text pre.code {
  margin-top: 10px;
  max-height: 320px;
  font-size: 12.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bereich .manifest-text .hint {
  margin-top: 8px;
}
.review-actions {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line-accent);
  background: rgba(59, 130, 246, 0.05);
}
.bereich .review-actions .card-actions {
  margin-top: 4px;
}
.review-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.review-checklist legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}
.key-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: rgba(8, 11, 18, 0.45);
}
.key-box > .icon {
  color: var(--faint);
}
.key-box.loaded {
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.07);
}
.key-box.loaded > .icon {
  color: var(--success);
}
.key-text {
  display: grid;
  gap: 2px;
  flex: 1 1 240px;
  min-width: 0;
}
.bereich .key-error {
  margin-top: 4px;
}
.file-button.disabled {
  pointer-events: none;
  opacity: 0.5;
}
.review-result {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.review-result.approved {
  border-color: rgba(52, 211, 153, 0.36);
}
.review-result.approved > .icon {
  color: var(--success);
}
.review-result.rejected {
  border-color: rgba(248, 113, 113, 0.36);
}
.review-result.rejected > .icon {
  color: var(--danger);
}
.review-result .quote {
  margin-top: 8px;
}
.sign-facts {
  font-size: 14px;
}
.sign-facts .hash-full {
  display: block;
}
.dialog-form .manifest-text pre.code {
  max-height: 200px;
}
.addon-owner {
  margin-top: 2px;
}
.addon-report .report-who code {
  font-size: 0.85em;
}
@media (max-width: 900px) {
  .review-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .review-detail > .detail-top .back {
    display: inline-grid;
  }
}
@media (max-width: 760px) {
  .wizard-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .wizard-steps button {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    text-align: center;
    font-size: 12.5px;
  }
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .addon-card-foot {
    flex-wrap: wrap;
  }
  .wizard-steps {
    display: flex;
    gap: 6px;
  }
  .wizard-steps li {
    flex: 0 0 auto;
  }
  .wizard-steps li:has([aria-current="step"]) {
    flex: 1 1 auto;
    min-width: 0;
  }
  .wizard-steps button {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 10px;
    font-size: 13.5px;
  }
  .wizard-steps button:not([aria-current="step"]) .step-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .wizard-nav .button {
    flex: 1 1 auto;
  }
  .wizard-spacer {
    display: none;
  }
  .shot-slots {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .icon-picker {
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  }
  .subtab {
    padding: 0 10px;
    font-size: 14px;
  }
  .key-box .file-button,
  .key-box .button {
    width: 100%;
  }
}
@media (max-width: 380px) {
  .subtab .icon {
    display: none;
  }
}
.ticket-attachments {
  margin-top: 14px;
}
.attachment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.attachment {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.45);
  min-width: 0;
}
.attachment-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.attachment > *,
.attachment-preview-box {
  min-width: 0;
}
.attachment-main {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.attachment-name {
  font-family: var(--mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.attachment-preview {
  margin: 0;
  max-width: 100%;
  max-height: 320px;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #0a0f1b;
  color: #d6deeb;
  font: 500 12.5px/1.5 var(--mono);
  white-space: pre;
  tab-size: 4;
}
.attachment-preview code {
  font: inherit;
  padding: 0;
  border: 0;
  background: none;
}
.attachment-preview-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 8px;
}
.bereich .attachment-status {
  margin: 0;
}
@media (max-width: 560px) {
  .attachment-head .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .attachment-head .button.tiny {
    width: 36px;
    padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .report.highlight {
    animation: none;
  }
}

/* ---------- app.css: Bausteine ---------- */
.bereich .app-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  box-shadow: inset 0 1px 0 var(--surface-2);
}
.bereich .app-card.danger-zone {
  border-color: rgba(248, 113, 113, 0.28);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.07), transparent 60%), var(--surface);
}
.bereich .card-head {
  margin-bottom: 14px;
}
.bereich .card-head p {
  font-size: 14px;
}
.bereich .shell .gate-head h2 {
  font-size: clamp(22px, 1vw + 16px, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.bereich .shell .gate {
  padding-top: 6px;
}
.bereich .setup-steps h3 {
  font-size: 17px;
}
.bereich .live-hint {
  font-size: 12.5px;
}
.bereich .rows {
  gap: 0;
  border: 1px solid var(--surface-line);
  border-radius: 12px;
  background: var(--surface-2);
  overflow: hidden;
}
.bereich .rows > li + li,
.bereich .rows > .row + .row {
  border-top: 1px solid var(--surface-line);
}
.bereich .rows .row {
  gap: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.bereich .rows .row-button:hover {
  background: var(--surface-hover);
}
.bereich .rows .row-button[aria-current="true"] {
  background: var(--selected);
  box-shadow: inset 3px 0 0 var(--accent);
}
.bereich .rows .row-button:focus-visible {
  outline-offset: -2px;
  border-radius: 0;
}
.bereich .row-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
}
.bereich .row-title {
  font-size: 14.5px;
}
.bereich .row-sub {
  font-size: 13.5px;
}
.bereich .row-meta {
  font-size: 12.5px;
}
.bereich .list-title {
  font-size: 11.5px;
  letter-spacing: 0.12em;
}
dialog.modal .chip {
  height: 21px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11.5px;
  letter-spacing: 0.01em;
}
.bereich .empty {
  gap: 10px;
  padding: 30px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}
.bereich .empty > .icon {
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding: 11px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-text);
}
.bereich .empty p {
  max-width: 520px;
}
.bereich .empty .button {
  margin-top: 4px;
}
.bereich .field-row {
  font-size: 13.5px;
}
.bereich .button {
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.bereich .button:hover {
  transform: none;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.bereich .button.ghost,
.bereich .button.ghost:hover {
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bereich .button.ghost {
  background: rgba(255, 255, 255, 0.035);
}
.bereich .button.danger {
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.bereich .subtabs {
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  border: 1px solid var(--surface-line);
  background: var(--surface-2);
}
.bereich .segmented button[aria-pressed="true"],
.bereich .subtab[aria-selected="true"] {
  color: #fff;
  background: rgba(59, 130, 246, 0.22);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.25);
}
.bereich .subtabs {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 16px;
}
.bereich .subtab {
  height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
}
.bereich .subtab:hover {
  background: var(--surface-hover);
}
.bereich .subtab:focus-visible {
  outline-offset: -2px;
}
.bereich .table th {
  padding: 9px 12px;
  border-bottom-color: var(--surface-line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bereich .table td {
  padding: 9px 12px;
  border-bottom-color: var(--surface-line);
  font-size: 14px;
}
.bereich .table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.bereich .chat {
  border-radius: 16px;
  border-color: var(--surface-line);
  background: var(--surface);
}
.bereich .conv-list {
  background: var(--surface-2);
}
.bereich .addon-admin {
  border-radius: 14px;
  border-color: var(--surface-line);
  background: var(--surface-2);
}
dialog.modal .dialog-form {
  padding: 22px 22px 0;
}
dialog.modal .dialog-actions {
  margin: 6px -22px 0;
  padding: 14px 22px;
  border-top: 1px solid var(--surface-line);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- app.css: Anmeldung mit dem Minecraft-Konto ---------- */
.mc-login {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 560px;
  margin: 28px auto 0;
  text-align: center;
}
.gate-head .mc-login .button,
.mc-login .button {
  margin: 0;
  max-width: 100%;
}
.mc-login-hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.mc-login-hint .icon {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--faint);
}
.bereich .mc-login-alt {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- konto.css ---------- */
.cos-studio {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}
.cos-viewer {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  height: clamp(380px, 58vh, 520px);
  border-radius: 14px;
  border: 1px solid rgba(147, 197, 253, 0.16);
  overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, rgba(59, 130, 246, 0.26), transparent 70%), linear-gradient(180deg, rgba(16, 23, 39, 0.85), rgba(7, 10, 18, 0.92));
  touch-action: pan-y;
}
.cos-viewer::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 13%;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}
.cos-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
.cos-viewer canvas:active {
  cursor: grabbing;
}
.cos-viewer.loading canvas {
  opacity: 0.6;
}
.bereich .cos-viewer-hint {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid var(--surface-line);
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  pointer-events: none;
}
.cos-viewer[data-webgl="nein"] .cos-viewer-hint {
  display: none;
}
.cos-viewer-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.cos-viewer-controls .button[aria-pressed="true"] {
  border-color: rgba(147, 197, 253, 0.4);
  background: rgba(59, 130, 246, 0.2);
}
.cos-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.cos-viewer[data-webgl="ja"] .cos-fallback {
  inset: auto 10px 58px auto;
  width: min(46%, 190px);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--surface-line);
  background: rgba(7, 10, 18, 0.78);
  font-size: 12px;
}
.cos-fallback-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.cos-fallback-item {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0;
  font-size: 12.5px;
}
.cos-fallback-art {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
}
.cos-viewer[data-webgl="ja"] .cos-fallback-art {
  width: 64px;
  height: 64px;
}
.cos-picker {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.cos-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--surface-line);
  background: var(--surface-2);
}
.cos-slot {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 9px 4px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 600 13.5px/1.25 var(--font);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cos-slot:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.cos-slot[aria-selected="true"] {
  color: #fff;
  background: rgba(59, 130, 246, 0.22);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.25);
}
.cos-slot:focus-visible {
  outline-offset: -2px;
}
.cos-slot-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}
.cos-slot.worn .cos-slot-icon {
  background: rgba(59, 130, 246, 0.18);
  color: var(--accent-text);
}
.cos-slot.worn .cos-slot-icon::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px #0d1320;
}
.cos-slot-icon .icon {
  width: 18px;
  height: 18px;
}
.cos-slot-text {
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 100%;
  min-width: 0;
}
.cos-slot-label,
.cos-slot-current {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cos-slot-current {
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
}
.cos-slot[aria-selected="true"] .cos-slot-current {
  color: var(--accent-text);
}
.cos-slot-panel:focus-visible {
  outline-offset: 4px;
}
.bereich .cos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.cos-thumb {
  width: 88px;
  height: 95px;
  object-fit: contain;
  image-rendering: pixelated;
}
.cos-art-none,
.cos-art-pending {
  width: 62px;
}
.cos-art-pending .spinner {
  width: 18px;
  height: 18px;
}
.cos-team {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-text);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cos-team .icon {
  width: 11px;
  height: 11px;
}
.bereich .cos-grid-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.cos-detail {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--surface-line);
  background: var(--surface-2);
}
.cos-detail-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.bereich .cos-detail-eyebrow {
  margin: 0;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cos-detail-name {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.bereich .cos-detail-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.cos-detail .chips-row {
  margin-top: 4px;
}
.cos-detail .button {
  flex: none;
}
.cos-detail .anim-chips {
  justify-content: flex-start;
  margin-top: 8px;
}
.bereich .sec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.sec-head > div {
  flex: 1 1 320px;
  min-width: 0;
}
.sec-head > .chip {
  flex: none;
  margin-top: 2px;
}
.sec-logout-icon {
  width: 17px;
  height: 17px;
}
.bereich .sec-sessions .row {
  align-items: flex-start;
}
.sec-times {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.sec-times > div {
  display: flex;
  gap: 5px;
}
.sec-times dt {
  color: var(--faint);
}
.sec-times dt::after {
  content: ":";
}
.sec-times dd {
  margin: 0;
  color: var(--text);
}
.sec-facts {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
}
.sec-facts li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.sec-facts .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--faint);
}
.sec-checks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.sec-checks li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.sec-checks .icon {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
}
.sec-checks li.ok .icon {
  color: var(--success);
}
.sec-checks li.todo .icon {
  color: var(--warning);
}
.bereich .sec-2fa .card-actions:empty {
  display: none;
}
.bereich .sec-tips {
  margin-top: 12px;
}
#panel-addons .inspect-item.expected {
  color: var(--accent-text);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(147, 197, 253, 0.3);
}
#panel-addons .access-fact .chip {
  vertical-align: middle;
}
@media (max-width: 980px) {
  .cos-studio {
    grid-template-columns: minmax(0, 1fr);
  }
  .cos-viewer {
    position: relative;
    top: auto;
    height: clamp(320px, 52vh, 440px);
  }
}
@media (max-width: 760px) {
  .cos-slots {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 3px;
  }
  .cos-slot {
    padding: 8px 2px 7px;
    font-size: 12px;
  }
  .cos-slot-current {
    display: none;
  }
  .bereich .cos-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
  }
  .cos-thumb {
    width: 76px;
    height: 82px;
  }
  .cos-detail {
    flex-wrap: wrap;
  }
  .sec-times {
    display: grid;
    gap: 2px;
  }
  .bereich .sec-sessions .row {
    flex-wrap: wrap;
  }
  .bereich .sec-sessions .row-actions {
    margin-left: 46px;
  }
}
@media (max-width: 380px) {
  .cos-slot-icon {
    width: 26px;
    height: 26px;
  }
  .cos-slot {
    font-size: 11.5px;
  }
}
.invite-card {
  transition: box-shadow 0.3s;
}
.invite-card.flash {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}
.invite-link {
  display: grid;
  gap: 6px;
}
.invite-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.invite-link-input {
  flex: 1 1 280px;
  font-family: var(--mono);
  font-size: 14px;
}
.invite-link-row .button {
  height: 44px;
}
.invite-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.invite-stat {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--surface-line);
}
.invite-stat-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.invite-stat-label {
  font-size: 14px;
  font-weight: 600;
}
.invite-stat-note {
  color: var(--faint);
  font-size: 12.5px;
}
.invite-rewards {
  margin-top: 18px;
}
.invite-reward-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
}
.invite-reward-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(8, 11, 18, 0.55);
  color: var(--faint);
}
.invite-reward-thumb img {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
}
.invite-reward-main {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}
.invite-reward-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.invite-reward-main .progress {
  height: 8px;
  margin-top: 4px;
}
.invite-open {
  margin-top: 18px;
  border-top: 1px solid var(--surface-line);
}
.invite-open summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 4px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.invite-open summary::-webkit-details-marker {
  display: none;
}
.invite-open summary .icon {
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: transform 0.2s;
}
.invite-open[open] summary .icon {
  transform: rotate(180deg);
}
.invite-open .rows,
.invite-open .empty {
  margin-top: 8px;
}
.invite-card > #einladen-inhalt > .hint {
  margin-top: 14px;
}
@media (max-width: 560px) {
  .invite-stats {
    gap: 6px;
  }
  .invite-stat {
    padding: 10px;
  }
  .invite-stat-value {
    font-size: 20px;
  }
  .invite-stat-note {
    display: none;
  }
  .invite-link-row .button {
    flex: 1 1 auto;
  }
  .bereich .invite-open .row {
    flex-wrap: wrap;
  }
  .bereich .invite-open .row-actions {
    margin-left: 46px;
  }
}
.cos-team.reward {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}
.bereich .cos-lock-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--muted);
  font-size: 13.5px;
}
.cos-lock-note .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #c4b5fd;
}

/* ---------- team.css ---------- */
dialog.palette {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: min(12vh, 110px) auto auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), inset 0 1px 0 var(--surface-2);
  overflow: hidden;
}
dialog.palette::backdrop {
  background: rgba(3, 5, 9, 0.62);
  backdrop-filter: blur(3px);
}
dialog.palette[open] {
  animation: palette-in 0.14s ease-out;
}
@keyframes palette-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.99);
  }
}
.palette-box {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(560px, calc(100svh - 2 * min(12vh, 110px)));
}
.palette-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 16px;
  border-bottom: 1px solid var(--surface-line);
}
.palette-label {
  display: grid;
  place-items: center;
  color: var(--faint);
}
.palette-label .icon {
  width: 20px;
  height: 20px;
}
.palette-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 500 16px/1 var(--font);
  outline: none;
}
.palette-input::placeholder {
  color: var(--faint);
}
.palette-close {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.palette-close kbd {
  font-size: 11.5px;
  color: var(--muted);
}
.palette-close:hover kbd {
  color: var(--text);
}
.palette-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 8px 8px;
  scrollbar-width: thin;
}
.palette-group + .palette-group {
  margin-top: 4px;
}
.palette-group-title {
  padding: 10px 10px 4px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.palette-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.palette-option.active {
  background: var(--selected);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.22);
}
.palette-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.palette-icon .icon {
  width: 17px;
  height: 17px;
}
.palette-icon.action,
.palette-option.active .palette-icon {
  background: rgba(59, 130, 246, 0.14);
  color: var(--accent-text);
}
.palette-option .avatar {
  flex: none;
}
.palette-option .addon-icon.tiny {
  width: 32px;
  height: 32px;
}
.palette-text {
  display: grid;
  gap: 1px;
  flex: 1 1 auto;
  min-width: 0;
}
.palette-title {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.palette-sub {
  overflow: hidden;
  color: var(--faint);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.palette-go {
  flex: none;
  color: var(--faint);
  opacity: 0;
}
.palette-go .icon {
  width: 16px;
  height: 16px;
}
.palette-option.active .palette-go {
  opacity: 1;
  color: var(--accent-text);
}
.bereich .palette-empty,
.palette-empty {
  padding: 26px 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.palette-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 9px 16px;
  border-top: 1px solid var(--surface-line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--faint);
  font-size: 12.5px;
}
.palette-status {
  margin: 0;
  min-width: 0;
}
.palette-keys {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.palette-keys kbd {
  font-size: 11px;
}
.inspect-item.expected {
  border-color: rgba(147, 197, 253, 0.28);
  background: rgba(59, 130, 246, 0.07);
}
.inspect-item.expected .icon {
  color: var(--accent-text);
}
.addon-admin.highlight {
  animation: flash 2s ease-out;
}
.cosmetic-top {
  margin-bottom: 16px;
}
.bereich #cosmetic-upload .file-row {
  margin-top: 14px;
}
.cosmetic-check {
  margin-top: 14px;
}
.cosmetic-check.filled {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--surface-line);
  background: var(--surface-2);
}
.cosmetic-check .check-list {
  margin: 0;
}
.cosmetic-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.cosmetic-preview {
  display: grid;
  gap: 10px;
  justify-items: center;
}
.cosmetic-stage {
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  border-radius: 14px;
  border: 1px solid var(--surface-line);
  background:
    radial-gradient(70% 70% at 50% 40%, rgba(59, 130, 246, 0.16), transparent 70%),
    repeating-conic-gradient(rgba(255, 255, 255, 0.025) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px,
    #0a0f1a;
}
.cosmetic-canvas {
  width: 168px;
  height: 168px;
}
.cosmetic-textures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 168px;
}
.cosmetic-textures figure {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin: 0;
}
.cosmetic-texture {
  display: block;
  width: 128px;
  height: auto;
  max-height: 112px;
  border-radius: 6px;
  border: 1px solid var(--surface-line);
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.06) 0% 25%, transparent 0% 50%) 0 0 / 8px 8px;
  image-rendering: pixelated;
  object-fit: contain;
}
.cosmetic-textures figcaption {
  color: var(--faint);
  font-size: 11.5px;
}
.cosmetic-anims {
  max-width: 200px;
  gap: 4px;
}
.cosmetic-anims .anim-chip {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
}
.bereich .cosmetic-facts {
  font-size: 14px;
  gap: 6px 16px;
}
.cosmetic-toolbar {
  margin-bottom: 12px;
}
.segment-count {
  margin-left: 6px;
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.segmented button[aria-pressed="true"] .segment-count {
  color: var(--accent-text);
}
.segmented button:disabled {
  opacity: 0.45;
  cursor: default;
}
.cosmetic-slot-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-text);
}
.cosmetic-slot-icon .icon {
  width: 19px;
  height: 19px;
}
.cosmetic-actions {
  align-items: center;
}
.bereich .chip.team-only {
  color: var(--accent-text);
  background: rgba(59, 130, 246, 0.1);
}
dialog.modal.cosmetic-dialog {
  width: min(640px, calc(100vw - 32px));
}
.cosmetic-dialog-body {
  margin-top: 14px;
}
.cosmetic-dialog-body .form-ok {
  margin-top: 12px;
}
.bereich #panel-meldungen > .toolbar,
.bereich #panel-support > .toolbar,
.bereich .subpanel > .toolbar {
  margin-bottom: 12px;
}
.bereich #meldungen .report,
.bereich #addon-meldungen .report {
  gap: 10px;
  padding: 16px 18px;
}
.bereich .report[data-status="open"] {
  box-shadow: inset 3px 0 0 var(--warning), inset 0 1px 0 var(--surface-2);
}
.bereich .report[data-status="done"] {
  background: var(--surface-2);
}
.bereich .report[data-status="done"] .report-who,
.bereich .report[data-status="done"] .quote {
  opacity: 0.85;
}
.bereich .report .report-id {
  font-size: 15px;
}
.bereich .report .report-who {
  font-size: 14.5px;
}
.bereich .report .quote {
  font-size: 14px;
}
.bereich .report .card-actions {
  margin-top: 0;
  gap: 8px;
}
.bereich .report .snapshot summary {
  font-size: 14px;
}
@media (min-width: 1101px) {
  .bereich .support-split > .detail,
  .bereich #panel-spieler .split > .detail {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
    max-height: calc(100vh - var(--nav-h) - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
.bereich #team-support-liste .rows .row,
.bereich #spieler-liste .rows .row,
.bereich #einreichungen-liste .rows .row {
  padding: 10px 12px;
}
.bereich #sperren .row-sub {
  font-size: 14px;
}
.bereich .member-row .row-actions,
.bereich #sperren .row-actions {
  align-items: center;
}
.bereich #news-liste .news-item {
  padding: 16px 18px;
}
.bereich #news-liste .news-item .card-actions {
  margin-top: 10px;
  gap: 8px;
}
.bereich #protokoll .table td {
  vertical-align: top;
}
.bereich #protokoll .table td.muted {
  font-size: 13.5px;
}
@media (max-width: 900px) {
  .cosmetic-result {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }
  .cosmetic-preview {
    justify-items: center;
  }
}
@media (max-width: 760px) {
  dialog.palette {
    width: calc(100vw - 16px);
    margin-top: 8px;
    border-radius: 16px;
  }
  .palette-box {
    max-height: calc(100svh - 16px);
  }
  .palette-keys {
    display: none;
  }
  .cosmetic-actions {
    justify-content: flex-start;
    width: 100%;
    padding-left: 50px;
  }
  .bereich #meldungen .report,
  .bereich #addon-meldungen .report,
  .bereich #news-liste .news-item {
    padding: 14px;
  }
}
@media (max-width: 760px) {
  .bereich #protokoll .table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 10px;
    padding: 10px 2px;
  }
  .bereich #protokoll .table td {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .bereich #protokoll .table td:empty {
    display: none;
  }
  .bereich #protokoll .table td:first-child {
    font-size: 12.5px;
  }
  .bereich #protokoll .table td:nth-child(2) {
    justify-self: end;
    font-size: 13px;
  }
  .bereich #protokoll .table td:nth-child(n + 3) {
    grid-column: 1 / -1;
  }
  .bereich #protokoll .table td:nth-child(3) {
    font-weight: 600;
  }
  .bereich #protokoll .table td:nth-child(5) {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .bereich #mitglieder .row-actions .button .label,
  .bereich #update-dateien .row-actions .button .label,
  .bereich #addon-offen .row-actions .button .label,
  .bereich .addon-admin-versions .row-actions .button .label {
    display: none;
  }
  .bereich #mitglieder .row-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 400px) {
  .cosmetic-actions .button .label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.palette[open] {
    animation: none;
  }
  .addon-admin.highlight {
    animation: none;
  }
}
