/**
 * Oldiefans Chat – responsive Bedienvorschau für Version 0.2.41.
 * Alle Regeln sind auf den Chatbereich begrenzt und beeinflussen Divi nicht.
 */

.oldiefans-chat,
.oldiefans-chat *,
.oldiefans-chat *::before,
.oldiefans-chat *::after {
  box-sizing: border-box;
}

.oldiefans-chat__emote-backdrop {
  position: fixed;
  z-index: 10080;
  inset: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: max(68px, env(safe-area-inset-top)) 18px 18px;
  background: rgba(5, 22, 48, 0.72);
  backdrop-filter: blur(5px);
}

.oldiefans-chat__emote-backdrop[hidden] {
  display: none;
}

.oldiefans-chat__emote-manager {
  width: min(1040px, 100%);
  max-height: calc(100dvh - 86px);
  padding: 20px;
  overflow: auto;
  border: 1px solid #c8d6e9;
  border-radius: 20px;
  background: #f7f9fc;
  box-shadow: 0 24px 70px rgba(0, 22, 56, 0.34);
  color: #162033;
}

.oldiefans-chat__emote-manager-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.oldiefans-chat__emote-manager-heading h3,
.oldiefans-chat__emote-manager-heading p,
.oldiefans-chat__emote-admin-card h4,
.oldiefans-chat__emote-library h4 {
  margin: 0;
}

.oldiefans-chat__emote-manager-heading > button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: #e7edf6;
  color: #42536a;
  font-size: 26px;
  cursor: pointer;
}

.oldiefans-chat__emote-manager-note {
  margin: 0 0 16px;
  color: #56667b;
  line-height: 1.5;
}

.oldiefans-chat__emote-manager-note code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #e8eff9;
  color: #073a79;
  font-weight: 800;
}

.oldiefans-chat__emote-manager-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(330px, 1.15fr);
  gap: 14px;
}

.oldiefans-chat__emote-admin-card,
.oldiefans-chat__emote-library {
  padding: 16px;
  border: 1px solid #d7e1ef;
  border-radius: 15px;
  background: #ffffff;
}

.oldiefans-chat__emote-admin-card h4,
.oldiefans-chat__emote-library h4 {
  margin-bottom: 13px;
  color: #073a79;
  font-size: 17px;
}

.oldiefans-chat__emote-admin-card > label:not(.oldiefans-chat__emote-check) {
  display: block;
  margin: 10px 0 5px;
  color: #31445e;
  font-size: 12px;
  font-weight: 800;
}

.oldiefans-chat__emote-admin-card input[type="text"],
.oldiefans-chat__emote-admin-card input[type="number"],
.oldiefans-chat__emote-admin-card input[type="file"],
.oldiefans-chat__emote-admin-card select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #b9c8dc;
  border-radius: 9px;
  background: #ffffff;
  color: #162033;
  font: inherit;
}

.oldiefans-chat__emote-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
}

.oldiefans-chat__emote-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.oldiefans-chat__emote-form-actions button,
.oldiefans-chat__emote-library-grid article > button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #b9c8dc;
  border-radius: 9px;
  background: #f3f6fa;
  color: #173f70;
  font-weight: 800;
  cursor: pointer;
}

.oldiefans-chat__emote-form-actions .oldiefans-chat__primary-button {
  border-color: #073a79;
  background: #073a79;
  color: #ffffff;
}

.oldiefans-chat__category-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: #6a788a;
  font-size: 12px;
}

.oldiefans-chat__category-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #d9e2ee;
  border-radius: 9px;
  background: #f8fafd;
  color: #17263b;
  text-align: left;
  cursor: pointer;
}

.oldiefans-chat__category-list small {
  color: #718095;
}

.oldiefans-chat__emote-manager-feedback {
  min-height: 20px;
  margin: 12px 0 0;
  color: #53657c;
  font-size: 12px;
  font-weight: 700;
}

.oldiefans-chat__emote-manager-feedback[data-status-kind="success"] {
  color: #167348;
}

.oldiefans-chat__emote-manager-feedback[data-status-kind="error"] {
  color: #a12737;
}

.oldiefans-chat__emote-library {
  margin-top: 14px;
}

.oldiefans-chat__emote-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oldiefans-chat__emote-library-heading > strong {
  color: #61738a;
  font-size: 12px;
}

.oldiefans-chat__emote-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(130px, 0.7fr);
  gap: 10px;
  margin: 4px 0 14px;
}

.oldiefans-chat__emote-filters label {
  display: grid;
  gap: 5px;
  color: #40536c;
  font-size: 11px;
  font-weight: 800;
}

.oldiefans-chat__emote-filters input,
.oldiefans-chat__emote-filters select {
  width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #b9c8dc;
  border-radius: 9px;
  background: #ffffff;
  color: #162033;
  font: inherit;
}

.oldiefans-chat__emote-search-field {
  position: relative;
  display: block;
}

.oldiefans-chat__emote-search-field input {
  padding-right: 42px;
}

.oldiefans-chat__emote-search-field button {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #edf2f8;
  color: #40536c;
  font-size: 21px;
  line-height: 1;
  transform: translateY(-50%);
}

.oldiefans-chat__emote-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 9px;
  color: #6a788a;
  font-size: 12px;
}

.oldiefans-chat__emote-library-grid article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #dbe4ef;
  border-radius: 11px;
  background: #fbfcfe;
}

.oldiefans-chat__emote-library-grid article > img,
.oldiefans-chat__emote-library-grid article > span {
  display: flex;
  width: 62px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  object-fit: contain;
  background: #edf3fb;
  color: #47617e;
  font-size: 11px;
  font-weight: 800;
}

.oldiefans-chat__emote-library-grid article > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.oldiefans-chat__emote-library-grid code {
  overflow: hidden;
  color: #073a79;
  font-weight: 800;
  text-overflow: ellipsis;
}

.oldiefans-chat__emote-library-grid small {
  color: #718095;
}

.oldiefans-chat__emote-library-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.oldiefans-chat__emote-library-actions button {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #b9c8dc;
  border-radius: 8px;
  background: #f3f6fa;
  color: #173f70;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.oldiefans-chat__emote-library-actions button[data-action="activate"] {
  border-color: #70b797;
  background: #eaf8f1;
  color: #126342;
}

.oldiefans-chat__emote-library-actions button[data-action="deactivate"],
.oldiefans-chat__emote-library-actions button[data-action="delete"] {
  border-color: #d9a0ab;
  background: #fff2f4;
  color: #9b2639;
}

.oldiefans-chat__emote-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.oldiefans-chat__emote-pagination[hidden] {
  display: none;
}

.oldiefans-chat__emote-pagination button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #b9c8dc;
  border-radius: 9px;
  background: #ffffff;
  color: #173f70;
  font-weight: 800;
}

.oldiefans-chat__emote-pagination span {
  color: #54667d;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .oldiefans-chat__emote-backdrop {
    align-items: end;
    padding: max(58px, env(safe-area-inset-top)) 0 0;
  }

  .oldiefans-chat__emote-manager {
    width: 100%;
    max-height: calc(100dvh - 58px);
    padding: 15px;
    border-radius: 18px 18px 0 0;
  }

  .oldiefans-chat__emote-manager-layout {
    grid-template-columns: 1fr;
  }

  .oldiefans-chat__emote-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .oldiefans-chat__emote-library-grid {
    grid-template-columns: 1fr;
  }

  .oldiefans-chat__emote-filters {
    grid-template-columns: 1fr;
  }
}

.oldiefans-chat {
  --of-chat-blue: #002b68;
  --of-chat-blue-medium: #0a4f96;
  --of-chat-blue-light: #eaf3ff;
  --of-chat-red: #a80d2f;
  --of-chat-ink: #162033;
  --of-chat-muted: #667387;
  --of-chat-line: #dbe3ee;
  --of-chat-surface: #f5f8fc;
  --of-chat-message-font: Arial, Helvetica, sans-serif;
  --of-chat-message-size: 17px;
  --of-chat-name-size: 14px;
  --of-chat-message-weight: 400;
  --of-chat-message-background: #f3f7fc;
  --of-chat-message-color: #162033;
  --of-chat-own-name: #0a4f96;
  --of-chat-own-name-font: Arial, Helvetica, sans-serif;
  --of-chat-own-name-weight: 700;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--of-chat-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.oldiefans-chat button,
.oldiefans-chat textarea,
.oldiefans-chat input {
  font: inherit;
}

.oldiefans-chat button {
  cursor: pointer;
}

.oldiefans-chat button:focus-visible,
.oldiefans-chat textarea:focus-visible,
.oldiefans-chat input:focus-visible {
  outline: 3px solid rgba(10, 79, 150, 0.28);
  outline-offset: 2px;
}

.oldiefans-chat__shell {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--of-chat-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(0, 43, 104, 0.14);
}

.oldiefans-chat__header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 76% -30%, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(135deg, #06224b, var(--of-chat-blue));
  color: #ffffff;
}

.oldiefans-chat__brand {
  display: flex;
  flex: 0 1 300px;
  gap: 10px;
  min-width: 0;
  align-items: center;
}

.oldiefans-chat__brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 15px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.oldiefans-chat__brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.oldiefans-chat__eyebrow {
  margin: 0;
  color: var(--of-chat-blue-medium);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.oldiefans-chat__header .oldiefans-chat__eyebrow {
  color: #c9ddf7;
}

.oldiefans-chat h2,
.oldiefans-chat h3,
.oldiefans-chat h4,
.oldiefans-chat p {
  padding: 0;
}

.oldiefans-chat h2 {
  margin: 2px 0 0;
  color: #ffffff;
  font: 800 clamp(23px, 2.4vw, 30px) / 1.05 Arial, Helvetica, sans-serif;
  letter-spacing: -0.025em;
}

.oldiefans-chat__tagline {
  margin: 3px 0 0;
  color: #dbe9fa;
  font-size: 12px;
}

.oldiefans-chat__radio-card {
  position: relative;
  display: grid;
  flex: 1 1 620px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 14px;
  min-width: 0;
  padding: 7px 11px;
  border: 1px solid rgba(192, 220, 255, 0.5);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 24% 95% at 45% 55%, rgba(91, 164, 227, 0.34), transparent 100%),
    linear-gradient(135deg, #174b83, #0b2e60);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 7px 18px rgba(0, 15, 42, 0.15);
}

.oldiefans-chat__radio-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 45%;
  width: 400px;
  transform: translateX(-50%);
  background: url("../images/oldiefans-player-art-v1.png") center -10px / 400px auto no-repeat;
  content: "";
  pointer-events: none;
}

.oldiefans-chat__radio-card audio {
  display: none;
}

.oldiefans-chat__radio-info,
.oldiefans-chat__radio-next,
.oldiefans-chat__radio-controls {
  position: relative;
  z-index: 1;
}

.oldiefans-chat__radio-info {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.oldiefans-chat__radio-text {
  min-width: 0;
  flex: 1;
}

.oldiefans-chat__radio-text > * {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oldiefans-chat__radio-card small {
  color: #c9ddf7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.oldiefans-chat__radio-card strong {
  color: #ffffff;
  font-size: 14px;
}

.oldiefans-chat__radio-text > span:not(.oldiefans-chat__radio-host) {
  color: #f0f5fc;
  font-size: 12px;
}

.oldiefans-chat__radio-host {
  color: #bcd7fb;
  font-size: 11px;
  font-weight: 700;
}

.oldiefans-chat__radio-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--of-chat-red);
  color: #ffffff;
  font-weight: 800;
}

.oldiefans-chat__radio-speaker {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.oldiefans-chat__radio-levels {
  display: none;
  gap: 3px;
  height: 16px;
  align-items: flex-end;
}

.oldiefans-chat__radio-levels span {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #ffffff;
  transform: scaleY(0.35);
  transform-origin: bottom;
}

.oldiefans-chat__radio-card[data-radio-state="playing"] .oldiefans-chat__radio-icon {
  background: #19805a;
}

.oldiefans-chat__radio-card[data-radio-state="playing"] .oldiefans-chat__radio-speaker {
  display: none;
}

.oldiefans-chat__radio-card[data-radio-state="playing"] .oldiefans-chat__radio-levels {
  display: flex;
}

.oldiefans-chat__radio-card[data-radio-state="playing"] .oldiefans-chat__radio-levels span {
  animation: oldiefans-radio-level 0.75s ease-in-out infinite alternate;
}

.oldiefans-chat__radio-card[data-radio-state="playing"] .oldiefans-chat__radio-levels span:nth-child(2) {
  animation-delay: -0.45s;
  animation-duration: 0.9s;
}

.oldiefans-chat__radio-card[data-radio-state="playing"] .oldiefans-chat__radio-levels span:nth-child(3) {
  animation-delay: -0.25s;
  animation-duration: 0.65s;
}

@keyframes oldiefans-radio-level {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

.oldiefans-chat__radio-next {
  grid-column: 1;
  grid-row: 2;
  margin: 0 !important;
  overflow: hidden;
  color: #dceafb;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oldiefans-chat__radio-next strong {
  display: inline;
  font-size: inherit;
}

.oldiefans-chat__radio-controls {
  display: flex;
  grid-column: 2;
  grid-row: 1 / 3;
  gap: 7px;
  align-items: center;
  align-self: center;
  flex-wrap: wrap;
}

.oldiefans-chat__radio-wishbox {
  display: inline-flex;
  height: 40px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e8ff;
  border-radius: 9px;
  background: #f5f9ff;
  color: #082b59;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.oldiefans-chat__radio-wishbox:hover {
  background: #ffffff;
  color: #082b59;
  text-decoration: none;
}

.oldiefans-chat__radio-wishbox:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.oldiefans-chat__radio-controls button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.oldiefans-chat__radio-controls button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
}

.oldiefans-chat__radio-controls [data-radio-play]:not(:disabled) {
  border-color: #f5b8c4;
  background: #ad2140;
}

.oldiefans-chat__radio-controls [data-radio-play]:hover:not(:disabled) {
  background: #c02a4b;
}

.oldiefans-chat__radio-controls button:disabled {
  opacity: 0.45;
  cursor: default;
}

.oldiefans-chat__radio-volume {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #dceafb;
  font-size: 11px;
}

.oldiefans-chat__radio-volume input {
  width: 102px;
  height: 20px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.oldiefans-chat__radio-volume input::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid #c6def9;
  border-radius: 99px;
  background: linear-gradient(to right, #ffe0e8 0 var(--of-radio-level, 70%), #1b477b var(--of-radio-level, 70%) 100%);
}

.oldiefans-chat__radio-volume input::-moz-range-track {
  height: 8px;
  border: 1px solid #c6def9;
  border-radius: 99px;
  background: linear-gradient(to right, #ffe0e8 0 var(--of-radio-level, 70%), #1b477b var(--of-radio-level, 70%) 100%);
}

.oldiefans-chat__radio-volume input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  appearance: none;
  border: 2px solid #a51f3e;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(0, 11, 34, 0.45);
}

.oldiefans-chat__radio-volume input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #a51f3e;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(0, 11, 34, 0.45);
}

.oldiefans-chat__radio-volume input:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.oldiefans-chat__radio-status {
  color: #dceafb;
  font-size: 10px;
}

.oldiefans-chat__outline-button,
.oldiefans-chat__primary-button {
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.oldiefans-chat__account {
  max-width: 150px;
  color: #52647d;
  font-size: 10px;
  line-height: 1.25;
  text-align: right;
}

.oldiefans-chat__account strong {
  display: block;
  overflow: hidden;
  color: var(--of-chat-blue);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oldiefans-chat__profile-state {
  max-width: 170px;
  padding: 5px 8px;
  border: 1px solid #b9cbe0;
  border-radius: 999px;
  color: var(--of-chat-blue);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.oldiefans-chat__profile-state[data-profile-kind="success"] {
  border-color: #9bd7b0;
  background: #e8f7ed;
  color: #175b37;
}

.oldiefans-chat__profile-state[data-profile-kind="working"] {
  background: #f2f6fb;
}

.oldiefans-chat__profile-state[data-profile-kind="away"] {
  border-color: #e7c58c;
  background: #fff5e5;
  color: #815016;
}

.oldiefans-chat__profile-state[data-profile-kind="error"] {
  border-color: #e1a3ae;
  background: #fff1f3;
  color: #8d233b;
}

.oldiefans-chat__outline-button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #ffffff;
}

.oldiefans-chat__primary-button {
  border: 1px solid #ffffff;
  background: #ffffff;
  color: var(--of-chat-blue);
}

.oldiefans-chat__preview-switch {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid #b9cbe0;
  border-radius: 10px;
  background: #ffffff;
  color: var(--of-chat-blue);
  font-size: 12px;
  font-weight: 800;
}

.oldiefans-chat__room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 660px;
  background: var(--of-chat-surface);
}

.oldiefans-chat__conversation {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  border-right: 1px solid var(--of-chat-line);
  background: #ffffff;
}

.oldiefans-chat__guest[hidden],
.oldiefans-chat__conversation[hidden] {
  display: none;
}

.oldiefans-chat__guest {
  display: grid;
  min-width: 0;
  min-height: 660px;
  place-items: center;
  padding: clamp(24px, 5vw, 60px);
  border-right: 1px solid var(--of-chat-line);
  background:
    radial-gradient(circle at 80% 8%, #e1efff 0, transparent 36%),
    linear-gradient(160deg, #ffffff, #f2f7fd);
}

.oldiefans-chat__guest-card {
  width: min(100%, 640px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #d6e4f2;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(0, 43, 104, 0.1);
  text-align: center;
}

.oldiefans-chat__guest-card h3 {
  margin: 0 0 18px;
  color: var(--of-chat-blue);
  font-size: clamp(28px, 3.2vw, 39px);
  line-height: 1.12;
}

.oldiefans-chat__guest-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  object-fit: cover;
}

.oldiefans-chat__guest-welcome {
  margin: 20px 0 7px;
  color: var(--of-chat-blue);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
}

.oldiefans-chat__guest-explain {
  margin: 0 0 22px;
  color: #4e5f76;
  font-size: 15px;
}

.oldiefans-chat__guest-explain strong {
  color: var(--of-chat-ink);
}

.oldiefans-chat__guest-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.oldiefans-chat__guest-actions button {
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid var(--of-chat-blue);
  border-radius: 11px;
  color: var(--of-chat-blue);
  font-size: 14px;
  font-weight: 800;
}

.oldiefans-chat__guest-actions button:first-child {
  background: var(--of-chat-blue);
  color: #ffffff;
}

.oldiefans-chat__guest-actions button:last-child {
  background: #ffffff;
}

.oldiefans-chat__guest-card small {
  display: block;
  margin-top: 17px;
  color: var(--of-chat-muted);
  font-size: 11px;
}

.oldiefans-chat__room-heading,
.oldiefans-chat__users-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--of-chat-line);
  background: #ffffff;
}

.oldiefans-chat__room-heading {
  flex-wrap: wrap;
  gap: 6px 14px;
  min-height: 44px;
  padding: 5px 16px;
}

.oldiefans-chat__room-label {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: baseline;
  white-space: nowrap;
}

.oldiefans-chat__room-label .oldiefans-chat__eyebrow {
  font-size: 10px;
}

.oldiefans-chat__room-heading .oldiefans-chat__room-label h3 {
  margin: 0;
  font-size: 16px;
}

.oldiefans-chat__room-auth {
  display: flex;
  gap: 8px;
  align-items: center;
}

.oldiefans-chat[data-authenticated="true"] .oldiefans-chat__room-auth,
.oldiefans-chat[data-chat-view="guest"] .oldiefans-chat__room-tools {
  display: none;
}

.oldiefans-chat__room-auth .oldiefans-chat__outline-button {
  border-color: #b9cbe0;
  color: var(--of-chat-blue);
}

.oldiefans-chat__room-auth .oldiefans-chat__primary-button {
  border-color: var(--of-chat-blue);
  background: var(--of-chat-blue);
  color: #ffffff;
}

.oldiefans-chat__room-heading h3,
.oldiefans-chat__users-heading h3 {
  margin: 2px 0 0;
  color: var(--of-chat-ink);
  font-size: 18px;
  line-height: 1.2;
}

.oldiefans-chat__connection {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #267149;
  font-size: 12px;
  font-weight: 700;
}

.oldiefans-chat__room-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.oldiefans-chat__test-message-button {
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid #c4d2e3;
  border-radius: 9px;
  background: #ffffff;
  color: var(--of-chat-blue);
  font-size: 11px;
  font-weight: 800;
}

.oldiefans-chat__connection > span,
.oldiefans-chat__live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1b9a58;
  box-shadow: 0 0 0 4px rgba(27, 154, 88, 0.12);
}

.oldiefans-chat__connection[data-message-kind="working"] {
  color: #8a6416;
}

.oldiefans-chat__connection[data-message-kind="working"] > span {
  background: #d49a20;
  box-shadow: 0 0 0 4px rgba(212, 154, 32, 0.14);
}

.oldiefans-chat__connection[data-message-kind="error"] {
  color: #a52b3e;
}

.oldiefans-chat__connection[data-message-kind="error"] > span {
  background: #c63b50;
  box-shadow: 0 0 0 4px rgba(198, 59, 80, 0.14);
}

.oldiefans-chat__message-stage {
  position: relative;
  min-height: 0;
  background: #f8fafd;
}

.oldiefans-chat__messages {
  height: clamp(360px, 50vh, 540px);
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px;
  background-color: var(--of-chat-message-background);
  background-image: radial-gradient(circle at 20% 20%, rgba(0, 43, 104, 0.06), transparent 24%);
}

.oldiefans-chat__system-message {
  width: fit-content;
  max-width: 90%;
  margin: 0 auto 20px;
  padding: 10px 16px;
  border: 1px solid #cfdff1;
  border-radius: 12px;
  background: var(--of-chat-blue-light);
  color: var(--of-chat-blue);
  text-align: center;
  font-size: 12px;
}

.oldiefans-chat__system-message strong,
.oldiefans-chat__system-message span {
  display: block;
}

.oldiefans-chat__system-message strong {
  font-size: 15px;
  line-height: 1.35;
}

.oldiefans-chat__message {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 4px 10px;
  border: 0;
  border-bottom: 1px solid #e5ebf3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color 120ms ease;
}

.oldiefans-chat__message:hover {
  background: rgba(234, 243, 255, 0.58);
}

.oldiefans-chat__message--own {
  margin-left: 0;
  background: rgba(237, 245, 255, 0.46);
}

.oldiefans-chat__message--whisper {
  margin: 6px 0;
  padding: 8px 12px;
  border: 1px solid #e7bdc8;
  border-left: 4px solid var(--of-chat-red);
  border-radius: 12px;
  background: #fff3f6;
}

.oldiefans-chat__message--whisper:hover {
  background: #ffedf2;
}

.oldiefans-chat__message--whisper:focus-visible {
  outline: 3px solid rgba(168, 13, 47, 0.2);
  outline-offset: 2px;
}

.oldiefans-chat__message-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
  font-size: 12px;
}

.oldiefans-chat__message-meta button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--of-chat-blue-medium);
  font-size: var(--of-chat-name-size);
  font-weight: 800;
}

.oldiefans-chat__message-meta > strong {
  font-size: var(--of-chat-name-size);
}

.oldiefans-chat__message-meta time {
  color: var(--of-chat-muted);
  font-size: 11px;
}

/* Öffentliche Nachrichten bilden eine einzige, natürlich umbrechende Zeile. */
.oldiefans-chat__message:not(.oldiefans-chat__message--whisper):not(.oldiefans-chat__message--presence-event) .oldiefans-chat__message-meta {
  display: inline;
  margin: 0 5px 0 0;
  line-height: 1.4;
}

.oldiefans-chat__message:not(.oldiefans-chat__message--whisper):not(.oldiefans-chat__message--presence-event) .oldiefans-chat__message-meta time {
  margin-right: 7px;
}

.oldiefans-chat__message:not(.oldiefans-chat__message--whisper):not(.oldiefans-chat__message--presence-event) .oldiefans-chat__message-meta::after {
  content: ":";
  font-weight: 700;
}

.oldiefans-chat__message:not(.oldiefans-chat__message--whisper):not(.oldiefans-chat__message--presence-event) > p:not(.oldiefans-chat__emoji-line) {
  display: inline;
  line-height: 1.4;
}

.oldiefans-chat__message:not(.oldiefans-chat__message--whisper):not(.oldiefans-chat__message--presence-event) .oldiefans-chat__message-meta button {
  line-height: inherit;
  vertical-align: baseline;
}

.oldiefans-chat__message p {
  margin: 0;
  color: var(--of-chat-message-color);
  font-family: var(--of-chat-message-font);
  font-size: var(--of-chat-message-size);
  font-weight: var(--of-chat-message-weight);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.oldiefans-chat__message p strong {
  font-weight: 700;
}

.oldiefans-chat__message p em {
  font-style: italic;
}

.oldiefans-chat__message p u {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.oldiefans-chat__message--own .oldiefans-chat__message-meta > strong {
  color: var(--of-chat-own-name);
}

.oldiefans-chat__message--presence-event {
  border-left: 3px solid #6d9bca;
  background: rgba(188, 216, 244, 0.16);
  padding-left: 12px;
}

.oldiefans-chat__message--presence-event[data-presence-event="leave"] {
  border-left-color: #a9b4c1;
  background: rgba(193, 202, 214, 0.13);
}

.oldiefans-chat__message--presence-event .oldiefans-chat__message-meta::before {
  content: "BEGRÜSSUNG";
  color: #456888;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.oldiefans-chat__message--presence-event[data-presence-event="leave"] .oldiefans-chat__message-meta::before {
  content: "ABSCHIED";
}

.oldiefans-chat__message--presence-event[data-presence-generic="true"] .oldiefans-chat__message-meta::before {
  content: "CHAT-HINWEIS";
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__messages {
  background-image: radial-gradient(circle at 20% 20%, rgba(91, 155, 226, 0.09), transparent 25%);
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__system-message {
  border-color: #34465d;
  background: #172638;
  color: #dbeaff;
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__message {
  border-bottom-color: #2b3441;
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__message:hover {
  background: rgba(86, 133, 187, 0.12);
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__message--own {
  background: rgba(67, 116, 171, 0.14);
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__message--presence-event {
  background: rgba(67, 116, 171, 0.12);
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__message--presence-event .oldiefans-chat__message-meta::before {
  color: #a9d2f6;
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__message--whisper {
  border-color: #754052;
  border-left-color: #e3577a;
  background: #2a1820;
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__message--whisper:hover {
  background: #331b25;
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__message-meta button {
  color: #86bfff;
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__message-meta > strong {
  color: #86bfff;
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__message--own .oldiefans-chat__message-meta > strong {
  color: var(--of-chat-own-name);
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__message--whisper .oldiefans-chat__message-meta > strong {
  color: #ffb2c6;
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__reply-hint {
  color: #e7a6b7;
}

.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__message-meta time,
.oldiefans-chat[data-display-surface="dark"] .oldiefans-chat__display-preview span {
  color: #abb8c8;
}

.oldiefans-chat__private-label {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--of-chat-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.oldiefans-chat__reply-hint {
  margin-left: auto;
  color: #8e5362;
  font-size: 10px;
  font-weight: 700;
}

.oldiefans-chat__emoji-line {
  margin: 8px 0 0 !important;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.oldiefans-chat__gif-preview {
  display: grid;
  width: min(100%, 280px);
  min-height: 132px;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0 12px;
  align-content: center;
  align-items: center;
  margin-top: 10px;
  padding: 18px;
  border: 1px solid #b7cce5;
  border-radius: 14px;
  background:
    radial-gradient(circle at 85% 0%, rgba(168, 13, 47, 0.22), transparent 42%),
    linear-gradient(145deg, #0b4785, #002b68);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 43, 104, 0.16);
}

.oldiefans-chat__gif-preview > span {
  display: grid;
  width: 58px;
  height: 58px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 50%;
  background: var(--of-chat-red);
  font-size: 27px;
  animation: oldiefans-chat-demo-pulse 1.8s ease-in-out infinite;
}

.oldiefans-chat__gif-preview strong,
.oldiefans-chat__gif-preview small {
  display: block;
}

.oldiefans-chat__gif-preview strong {
  align-self: end;
}

.oldiefans-chat__gif-preview small {
  align-self: start;
  color: #d8e8fa;
}

@keyframes oldiefans-chat-demo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.oldiefans-chat__new-messages {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 14px;
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: var(--of-chat-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 43, 104, 0.24);
}

.oldiefans-chat__new-messages[hidden] {
  display: none;
}

.oldiefans-chat__composer {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--of-chat-line);
  background: #ffffff;
}

.oldiefans-chat[data-whisper-active="true"] .oldiefans-chat__input-shell {
  border-color: #ce8296;
  background: #fffafb;
}

.oldiefans-chat[data-whisper-active="true"] .oldiefans-chat__send-button {
  background: linear-gradient(145deg, #c1284d, var(--of-chat-red));
}

.oldiefans-chat__formatting {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.oldiefans-chat__formatting button {
  display: inline-flex;
  gap: 7px;
  min-width: 36px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid var(--of-chat-line);
  border-radius: 9px;
  background: var(--of-chat-surface);
  color: var(--of-chat-ink);
  font-size: 13px;
}

.oldiefans-chat__formatting button[hidden],
.oldiefans-chat__composer-account [hidden],
.oldiefans-chat__room-auth button[hidden] {
  display: none;
}

.oldiefans-chat__formatting button[aria-expanded="true"] {
  border-color: var(--of-chat-blue-medium);
  background: var(--of-chat-blue-light);
  color: var(--of-chat-blue);
}

.oldiefans-chat__presence-tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.oldiefans-chat__formatting .oldiefans-chat__presence-toggle {
  border-color: #dba75e;
  background: #fff2dc;
  color: #74410f;
  font-weight: 700;
  white-space: nowrap;
}

.oldiefans-chat__formatting .oldiefans-chat__presence-toggle[aria-pressed="true"] {
  border-color: #8dcba5;
  background: #e9f7ee;
  color: #175b37;
}

.oldiefans-chat__formatting .oldiefans-chat__on-air-toggle[hidden] {
  display: none !important;
}

.oldiefans-chat__formatting .oldiefans-chat__on-air-toggle:has(input:checked) {
  border-color: #76bd96;
  background: #e1f5e9;
  color: #155734;
}

.oldiefans-chat__on-air-toggle input {
  accent-color: #18824b;
}

.oldiefans-chat__formatting .oldiefans-chat__manage-emotes-button {
  border-color: #a9bfd9;
  background: #edf4fc;
  color: var(--of-chat-blue);
}

.oldiefans-chat__management-menu { position: relative; }
.oldiefans-chat__management-menu[hidden] { display: none !important; }
.oldiefans-chat__management-menu summary {
  display: inline-flex; min-height: 34px; align-items: center; gap: 7px;
  padding: 5px 10px; border: 1px solid #a9bfd9; border-radius: 9px;
  background: #edf4fc; color: var(--of-chat-blue); font-size: 13px;
  cursor: pointer; list-style: none;
}
.oldiefans-chat__management-menu summary::-webkit-details-marker { display: none; }
.oldiefans-chat__management-menu summary:focus-visible { outline: 2px solid var(--of-chat-blue-medium); }
.oldiefans-chat__management-options {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 30;
  width: min(270px, 80vw); padding: 6px; border: 1px solid #b7c7de;
  border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.oldiefans-chat__formatting .oldiefans-chat__management-options button {
  display: block; width: 100%; margin: 0; padding: 10px;
  border: 0; text-align: left; background: transparent;
}
.oldiefans-chat__formatting .oldiefans-chat__management-options button:hover,
.oldiefans-chat__formatting .oldiefans-chat__management-options button:focus-visible { background: #edf4fc; }
.oldiefans-chat__management-options button[hidden] { display: none !important; }

.oldiefans-chat__formatting .oldiefans-chat__autoscroll {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--of-chat-line);
  border-radius: 9px;
  background: var(--of-chat-surface);
  color: var(--of-chat-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.oldiefans-chat__formatting .oldiefans-chat__autoscroll:has(input:checked) {
  border-color: #a9bfd9;
  background: #edf4fc;
  color: var(--of-chat-blue);
}

.oldiefans-chat__autoscroll input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--of-chat-blue-medium);
}

.oldiefans-chat__autoscroll:focus-within {
  outline: 2px solid var(--of-chat-blue-medium);
  outline-offset: 2px;
}

.oldiefans-chat__composer-account {
  display: none;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.oldiefans-chat[data-authenticated="true"] .oldiefans-chat__composer-account {
  display: flex;
}

.oldiefans-chat__formatting .oldiefans-chat__composer-account .oldiefans-chat__outline-button {
  min-height: 34px;
  border-color: #b9cbe0;
  background: #ffffff;
  color: var(--of-chat-blue);
}

.oldiefans-chat__emoji-picker {
  position: fixed;
  z-index: 10020;
  width: 430px;
  min-width: 300px;
  min-height: 190px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  margin: 0;
  padding: 10px;
  border: 1px solid var(--of-chat-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 43, 104, 0.12);
  overflow: auto;
  resize: none;
}

.oldiefans-chat__emoji-picker[hidden] {
  display: none;
}

.oldiefans-chat__emoji-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--of-chat-blue);
  font-size: 13px;
  cursor: move;
  touch-action: none;
  user-select: none;
}

.oldiefans-chat__emoji-heading strong > span {
  display: inline-block;
  margin-right: 5px;
  color: #8a9ab0;
  font-size: 18px;
  line-height: 1;
  vertical-align: -1px;
}

.oldiefans-chat__emoji-heading > button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--of-chat-surface);
  color: var(--of-chat-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.oldiefans-chat__emoji-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.oldiefans-chat__emoji-tools > button,
.oldiefans-chat__emoji-tools label {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--of-chat-line);
  border-radius: 9px;
  background: var(--of-chat-surface);
  color: var(--of-chat-ink);
  font-size: 11px;
  font-weight: 800;
}

.oldiefans-chat__emoji-tools label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.oldiefans-chat__emoji-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-bottom: 8px;
}

.oldiefans-chat__emoji-search[hidden] {
  display: none;
}

.oldiefans-chat__emoji-search input {
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--of-chat-line);
  border-radius: 9px;
  font: inherit;
}

.oldiefans-chat__emoji-search button {
  padding: 6px 9px;
  border: 1px solid var(--of-chat-line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--of-chat-blue);
  font-weight: 800;
}

.oldiefans-chat__emoji-category-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
  margin-bottom: 10px;
}

.oldiefans-chat__emoji-categories {
  display: flex;
  gap: 6px;
  padding-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.oldiefans-chat__emoji-categories button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 6px 11px;
  border: 1px solid var(--of-chat-line);
  border-radius: 999px;
  background: var(--of-chat-surface);
  color: var(--of-chat-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.oldiefans-chat__emoji-categories button[aria-pressed="true"] {
  border-color: var(--of-chat-blue-medium);
  background: var(--of-chat-blue-light);
  color: var(--of-chat-blue);
}

.oldiefans-chat__emoji-category-jump {
  position: relative;
  display: block;
}

.oldiefans-chat__emoji-category-jump > span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 6px 26px 6px 10px;
  border: 1px solid var(--of-chat-blue-medium);
  border-radius: 9px;
  background: #ffffff;
  color: var(--of-chat-blue);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.oldiefans-chat__emoji-category-jump > span::after {
  position: absolute;
  right: 9px;
  content: "▾";
}

.oldiefans-chat__emoji-category-jump select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.oldiefans-chat__emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(34px, 1fr));
  gap: 5px;
}

.oldiefans-chat__emoji-grid button {
  min-width: 0;
  min-height: 40px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 23px;
  line-height: 1;
}

.oldiefans-chat__emoji-grid button[hidden] {
  display: none;
}

.oldiefans-chat__emoji-grid button:hover,
.oldiefans-chat__emoji-grid button:focus-visible {
  border-color: #b9ccea;
  background: var(--of-chat-blue-light);
}

.oldiefans-chat__emoji-grid button img {
  display: block;
  width: 100%;
  height: 44px;
  object-fit: contain;
}

.oldiefans-chat__setting-switch {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--of-chat-ink);
  font-size: 12px;
  font-weight: 800;
}

.oldiefans-chat__emoji-placeholder {
  display: inline-flex;
  width: 100%;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #edf3fb;
  color: #36506e;
  font-size: 10px;
  font-weight: 800;
}

.oldiefans-chat__message-emote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px 3px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  vertical-align: middle;
  cursor: pointer;
}

.oldiefans-chat__message-emote-button:hover,
.oldiefans-chat__message-emote-button:focus-visible {
  border-color: #9ebbe0;
  background: rgba(219, 233, 250, 0.72);
  outline: none;
}

.oldiefans-chat__message-emote {
  display: inline-block;
  width: auto;
  max-width: min(110px, 45vw);
  height: auto;
  max-height: 90px;
  margin: 0;
  object-fit: contain;
  vertical-align: middle;
}

.oldiefans-chat__emoji-status {
  margin: 8px 2px 0;
  color: var(--of-chat-muted);
  font-size: 10px;
}

.oldiefans-chat__emoji-resize {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: linear-gradient(135deg, transparent 45%, #9aabc0 46%, #9aabc0 53%, transparent 54%, transparent 64%, #6f829b 65%, #6f829b 73%, transparent 74%);
  cursor: nwse-resize;
  touch-action: none;
}

.oldiefans-chat__display-panel {
  position: fixed;
  z-index: 10030;
  box-sizing: border-box;
  width: 380px;
  max-width: calc(100vw - 16px);
  max-height: min(720px, calc(100dvh - 86px));
  padding: 14px;
  border: 1px solid var(--of-chat-line);
  border-radius: 15px;
  overflow: auto;
  scroll-padding-block: 56px 90px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 43, 104, 0.18);
}

.oldiefans-chat__display-panel[hidden] {
  display: none;
}

.oldiefans-chat__display-heading {
  position: sticky;
  top: -14px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: -14px -14px 13px;
  padding: 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--of-chat-line);
}

.oldiefans-chat__display-heading div {
  display: grid;
}

.oldiefans-chat__display-heading small {
  color: var(--of-chat-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oldiefans-chat__display-heading strong {
  color: var(--of-chat-blue);
  font-size: 17px;
}

.oldiefans-chat__display-heading > button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--of-chat-surface);
  color: var(--of-chat-muted);
  font-size: 22px;
  line-height: 1;
}

.oldiefans-chat__setting-label,
.oldiefans-chat__setting-group legend {
  display: block;
  margin: 0 0 6px;
  color: var(--of-chat-ink);
  font-size: 12px;
  font-weight: 800;
}

.oldiefans-chat__display-panel select {
  width: 100%;
  min-height: 40px;
  margin: 0 0 13px;
  padding: 7px 10px;
  border: 1px solid #bcc9d9;
  border-radius: 9px;
  background: #ffffff;
  color: var(--of-chat-ink);
  font: inherit;
}

.oldiefans-chat__display-panel .oldiefans-chat__setting-text {
  width: 100%;
  min-height: 40px;
  margin: 0 0 10px;
  padding: 7px 10px;
  border: 1px solid #bcc9d9;
  border-radius: 9px;
  background: #ffffff;
  color: var(--of-chat-ink);
  font: inherit;
}

.oldiefans-chat__setting-group {
  min-width: 0;
  margin: 0 0 13px;
  padding: 0;
  border: 0;
}

.oldiefans-chat__size-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.oldiefans-chat__size-options button {
  min-height: 38px;
  padding: 5px;
  border: 1px solid var(--of-chat-line);
  border-radius: 8px;
  background: var(--of-chat-surface);
  color: var(--of-chat-ink);
  font-size: 10px;
  font-weight: 700;
}

.oldiefans-chat__size-options button[aria-pressed="true"] {
  border-color: var(--of-chat-blue-medium);
  background: var(--of-chat-blue-light);
  color: var(--of-chat-blue);
}

.oldiefans-chat__color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.oldiefans-chat__color-choice {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
}

.oldiefans-chat__color-choice span {
  display: block;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(22, 32, 51, 0.22);
  border-radius: 50%;
  background: var(--choice-color);
}

.oldiefans-chat__color-choice[aria-pressed="true"] {
  border-color: var(--of-chat-blue-medium);
}

.oldiefans-chat__color-choice:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.oldiefans-chat__color-choice--auto span {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffffff 0 49%, #162033 50% 100%);
  color: #a80d2f;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 1px 0 #ffffff;
}

.oldiefans-chat__setting-note {
  margin: 5px 0 0;
  color: var(--of-chat-muted);
  font-size: 10px;
}

.oldiefans-chat__display-preview {
  margin-top: 4px;
  padding: 11px 12px;
  border: 1px solid var(--of-chat-line);
  border-radius: 10px;
  background: var(--of-chat-message-background);
}

.oldiefans-chat__display-preview > div {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 3px;
  font-size: 11px;
}

.oldiefans-chat__display-preview strong {
  color: var(--of-chat-own-name);
  font-size: var(--of-chat-name-size);
  font-family: var(--of-chat-own-name-font);
  font-weight: var(--of-chat-own-name-weight);
}

.oldiefans-chat__display-preview span {
  color: var(--of-chat-muted);
}

.oldiefans-chat__display-preview p {
  margin: 0;
  color: var(--of-chat-message-color);
  font-family: var(--of-chat-message-font);
  font-size: var(--of-chat-message-size);
  font-weight: var(--of-chat-message-weight);
  overflow-wrap: anywhere;
}

.oldiefans-chat__display-footer {
  position: sticky;
  bottom: -14px;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin: 12px -14px -14px;
  padding: 10px 14px 14px;
  background: #ffffff;
  border-top: 1px solid var(--of-chat-line);
}

.oldiefans-chat__display-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.oldiefans-chat__display-actions button {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #b9c8db;
  border-radius: 8px;
  background: #ffffff;
  color: var(--of-chat-blue);
  font-size: 10px;
  font-weight: 800;
}

.oldiefans-chat__display-actions .oldiefans-chat__display-save {
  border-color: var(--of-chat-blue);
  background: var(--of-chat-blue);
  color: #ffffff;
}

.oldiefans-chat__display-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.oldiefans-chat__display-footer small {
  color: var(--of-chat-muted);
  font-size: 10px;
  line-height: 1.4;
}

.oldiefans-chat__display-footer small[data-status-kind="success"] {
  color: #147446;
}

.oldiefans-chat__display-footer small[data-status-kind="pending"],
.oldiefans-chat__display-footer small[data-status-kind="working"] {
  color: #875b00;
}

.oldiefans-chat__display-footer small[data-status-kind="error"] {
  color: var(--of-chat-red);
}

.oldiefans-chat__user-menu {
  position: fixed;
  z-index: 1000001;
  width: 270px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  padding: 13px;
  border: 1px solid var(--of-chat-line);
  border-radius: 14px;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 43, 104, 0.2);
}

.oldiefans-chat__user-menu[hidden],
.oldiefans-chat__user-menu-actions[hidden],
.oldiefans-chat__user-profile[hidden],
.oldiefans-chat__role-manager[hidden] {
  display: none;
}

.oldiefans-chat__user-menu[data-menu-view="roles"] {
  width: 390px;
}

.oldiefans-chat__user-menu-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 11px;
}

.oldiefans-chat__user-menu-heading > div {
  display: grid;
  min-width: 0;
}

.oldiefans-chat__user-menu-heading small {
  color: var(--of-chat-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.oldiefans-chat__user-menu-heading strong {
  color: var(--of-chat-blue);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.oldiefans-chat__user-menu-heading > button {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--of-chat-surface);
  color: var(--of-chat-muted);
  font-size: 21px;
  line-height: 1;
}

.oldiefans-chat__user-menu-actions {
  display: grid;
  gap: 7px;
}

.oldiefans-chat__user-menu-actions button {
  display: flex;
  min-height: 42px;
  gap: 9px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid #cddbed;
  border-radius: 9px;
  background: var(--of-chat-surface);
  color: var(--of-chat-blue);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.oldiefans-chat__user-menu-actions button:hover,
.oldiefans-chat__user-menu-actions button:focus-visible {
  background: var(--of-chat-blue-light);
}

.oldiefans-chat__user-menu-actions button[hidden] {
  display: none;
}

.oldiefans-chat__user-profile-back {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--of-chat-blue-medium);
  font-size: 12px;
  font-weight: 800;
}

.oldiefans-chat__user-profile-identity {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 11px 0;
  color: var(--of-chat-blue);
  overflow-wrap: anywhere;
}

.oldiefans-chat__user-profile-identity > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--of-chat-blue-light);
  font-weight: 800;
}

.oldiefans-chat__user-profile p {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 6px 0;
  font-size: 12px;
}

.oldiefans-chat__user-profile p span,
.oldiefans-chat__user-profile > small {
  color: var(--of-chat-muted);
}

.oldiefans-chat__user-profile > small {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.4;
}

.oldiefans-chat__role-manager {
  display: grid;
  gap: 9px;
}

.oldiefans-chat__role-intro {
  margin: 3px 0 2px;
  color: var(--of-chat-ink);
  font-size: 13px;
}

.oldiefans-chat__role-manager > label,
.oldiefans-chat__role-manager legend {
  color: #243a57;
  font-size: 12px;
  font-weight: 800;
}

.oldiefans-chat__role-manager select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #bfccda;
  border-radius: 9px;
  background: #ffffff;
  color: var(--of-chat-ink);
  font-size: 14px;
}

.oldiefans-chat__role-manager fieldset {
  display: grid;
  gap: 7px;
  margin: 2px 0 0;
  padding: 11px;
  border: 1px solid #d7e2ee;
  border-radius: 10px;
  background: #f8fafc;
}

.oldiefans-chat__role-manager fieldset label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #334b68;
  font-size: 12px;
  line-height: 1.35;
}

.oldiefans-chat__role-manager input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
}

.oldiefans-chat__role-feedback {
  min-height: 34px;
  margin: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: #eef5fc;
  color: #254c76;
  font-size: 11px;
  line-height: 1.4;
}

.oldiefans-chat__role-feedback[data-status-kind="success"] {
  background: #eaf7ef;
  color: #155e38;
}

.oldiefans-chat__role-feedback[data-status-kind="error"] {
  background: #fff0f2;
  color: #8b263d;
}

.oldiefans-chat__role-save {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--of-chat-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.oldiefans-chat__role-save:disabled {
  cursor: wait;
  opacity: 0.55;
}

.oldiefans-chat__role-manager > small {
  color: var(--of-chat-muted);
  font-size: 10px;
  line-height: 1.4;
}

.oldiefans-chat__message-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.oldiefans-chat__send-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.oldiefans-chat__input-shell {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  border: 1px solid #bcc9d9;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.oldiefans-chat__recipient-prefix {
  flex: 0 0 auto;
  padding: 11px 0 0 12px;
  color: var(--of-chat-red);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.oldiefans-chat__recipient-prefix[hidden],
.oldiefans-chat__whisper-cancel[hidden] {
  display: none;
}

.oldiefans-chat__input-shell textarea {
  display: block;
  width: 100%;
  min-height: 58px;
  max-height: 150px;
  flex: 1 1 auto;
  resize: vertical;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--of-chat-ink);
  font-family: var(--of-chat-message-font);
  font-size: var(--of-chat-message-size);
  font-weight: var(--of-chat-message-weight);
  line-height: 1.4;
}

.oldiefans-chat__action-stack {
  display: flex;
  width: 132px;
  min-width: 132px;
  flex-direction: column;
  gap: 7px;
}

.oldiefans-chat__whisper-cancel {
  width: 100%;
  min-height: 32px;
  padding: 4px 7px;
  border: 1px solid #d5a3b1;
  border-radius: 9px;
  background: #ffffff;
  color: var(--of-chat-red);
  font-size: 10px;
  font-weight: 800;
}

.oldiefans-chat__send-button {
  width: 100%;
  min-height: 58px;
  flex: 1 1 auto;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--of-chat-blue-medium), var(--of-chat-blue));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(0, 43, 104, 0.18);
}

.oldiefans-chat__composer button:disabled,
.oldiefans-chat__composer textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.oldiefans-chat__demo-feedback {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--of-chat-muted);
  font-size: 11px;
}

.oldiefans-chat__users {
  min-width: 0;
  background: #f8fafc;
}

.oldiefans-chat__users-heading {
  padding-right: 16px;
  border-bottom-color: #b7dec7;
  background: #e6f5eb;
}

.oldiefans-chat__users-heading .oldiefans-chat__eyebrow,
.oldiefans-chat__users-heading h3 {
  color: #175b37;
}

.oldiefans-chat__users-heading > button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--of-chat-line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--of-chat-ink);
  font-size: 24px;
}

.oldiefans-chat__user-group {
  padding: 16px;
}

.oldiefans-chat__user-group--online {
  background: #f0f9f3;
}

.oldiefans-chat__user-group--away {
  background: #f6f7f9;
}

.oldiefans-chat[data-chat-view="guest"] .oldiefans-chat__user-group--away {
  display: none;
}

.oldiefans-chat__user-group + .oldiefans-chat__user-group {
  border-top: 1px solid #e0e6eb;
}

.oldiefans-chat__user-group h4 {
  margin: 0 0 8px;
  color: var(--of-chat-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oldiefans-chat__user-group h4 span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  place-items: center;
  border-radius: 99px;
  background: #e7ebef;
  color: #455367;
  font-size: 11px;
  letter-spacing: 0;
}

.oldiefans-chat__user-group--online h4 {
  color: #175b37;
}

.oldiefans-chat__user-group--online h4 span {
  background: #d4eddc;
  color: #175b37;
}

.oldiefans-chat__auth-backdrop[hidden],
.oldiefans-chat__auth-panel[hidden] {
  display: none;
}

.oldiefans-chat__auth-backdrop {
  position: fixed;
  z-index: 1000001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(9, 25, 49, 0.7);
}

.oldiefans-chat__auth-dialog {
  width: min(100%, 480px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border: 1px solid #dce7f2;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 16, 44, 0.35);
}

.oldiefans-chat__auth-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
}

.oldiefans-chat__auth-heading h3 {
  margin: 3px 0 0;
  color: var(--of-chat-blue);
  font-size: 23px;
  line-height: 1.2;
}

.oldiefans-chat__auth-heading > button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid #d9e3ef;
  border-radius: 12px;
  background: #f6f9fc;
  color: var(--of-chat-ink);
  font-size: 25px;
}

.oldiefans-chat__auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 22px;
  padding: 5px;
  border-radius: 12px;
  background: #edf2f8;
}

.oldiefans-chat__auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4b5c72;
  font-size: 14px;
  font-weight: 800;
}

.oldiefans-chat__auth-tabs button[aria-selected="true"] {
  background: #ffffff;
  color: var(--of-chat-blue);
  box-shadow: 0 2px 8px rgba(0, 43, 104, 0.1);
}

.oldiefans-chat__auth-panel {
  display: grid;
  gap: 7px;
  padding: 16px 22px 5px;
}

.oldiefans-chat__auth-intro {
  margin: 0 0 7px;
  color: #526176;
  font-size: 13px;
}

.oldiefans-chat__auth-panel label {
  color: #243a57;
  font-size: 13px;
  font-weight: 800;
}

.oldiefans-chat__auth-panel input {
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 9px 12px;
  border: 1px solid #bfccda;
  border-radius: 10px;
  background: #ffffff;
  color: var(--of-chat-ink);
  font-size: 15px;
}

.oldiefans-chat__auth-hint {
  margin: -5px 0 7px;
  color: #66758a;
  font-size: 12px;
  line-height: 1.4;
}

.oldiefans-chat__auth-submit {
  min-height: 47px;
  margin-top: 4px;
  border: 0;
  border-radius: 11px;
  background: var(--of-chat-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.oldiefans-chat__auth-submit:disabled,
.oldiefans-chat__auth-link:disabled {
  cursor: wait;
  opacity: 0.55;
}

.oldiefans-chat__auth-link {
  justify-self: center;
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--of-chat-blue-medium);
  text-decoration: underline;
}

.oldiefans-chat__auth-feedback {
  min-height: 38px;
  margin: 12px 22px 20px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #eef5fc;
  color: #254c76;
  font-size: 12px;
}

.oldiefans-chat__auth-feedback[data-feedback-kind="working"] {
  background: #eef5fc;
  color: #254c76;
}

.oldiefans-chat__auth-feedback[data-feedback-kind="success"] {
  background: #eaf7ef;
  color: #155e38;
}

.oldiefans-chat__auth-feedback[data-feedback-kind="warning"] {
  background: #fff7df;
  color: #765600;
}

.oldiefans-chat__auth-feedback[data-feedback-kind="error"] {
  background: #fff0f2;
  color: #8b263d;
}

.oldiefans-chat__user {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--of-chat-ink);
  text-align: left;
}

.oldiefans-chat__user:hover {
  background: #eaf1f9;
}

.oldiefans-chat__user[aria-disabled="true"] {
  cursor: default;
}

.oldiefans-chat__empty-users {
  margin: 8px 2px 2px;
  color: var(--of-chat-muted);
  font-size: 12px;
}

.oldiefans-chat__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #dcecff, #c8dcf4);
  color: var(--of-chat-blue);
  font-weight: 800;
}

.oldiefans-chat__role-badge {
  color: #ffffff;
  font-size: 12px;
  letter-spacing: -0.02em;
}

.oldiefans-chat__role-badge--user {
  background: linear-gradient(145deg, #2fa267, #167344);
}

.oldiefans-chat__role-badge--moderator {
  background: linear-gradient(145deg, #ed9b35, #bf6517);
}

.oldiefans-chat__role-badge--administrator,
.oldiefans-chat__role-badge--super_admin {
  background: linear-gradient(145deg, #c93149, #981c31);
}

.oldiefans-chat__user[data-oldiefans-user-status="Abwesend"] .oldiefans-chat__role-badge {
  opacity: 0.48;
  filter: saturate(0.65);
}

.oldiefans-chat__user > span:nth-child(2),
.oldiefans-chat__user strong,
.oldiefans-chat__user small {
  display: block;
  min-width: 0;
}

.oldiefans-chat__user strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oldiefans-chat__user small {
  margin-top: 2px;
  color: var(--of-chat-muted);
  font-size: 10px;
}

.oldiefans-chat__on-air-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border: 1px solid #70bd8e;
  border-radius: 999px;
  background: #dcf6e5;
  color: #145a35;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  animation: oldiefans-chat-on-air-pulse 2.8s ease-in-out infinite;
}

@keyframes oldiefans-chat-on-air-pulse {
  50% { box-shadow: 0 0 0 4px rgba(44, 163, 91, 0.12); }
}

.oldiefans-chat__presence {
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(22, 32, 51, 0.08);
}

.oldiefans-chat__presence--online {
  background: #1b9a58;
}

.oldiefans-chat__presence--away {
  background: #d79822;
}

.oldiefans-chat__mobile-bar {
  display: none;
}

/* Auf großen Bildschirmen bleiben Schreibzeile und Online-Liste im Blick. */
@media (min-width: 1051px) and (min-height: 760px) {
  .oldiefans-chat__shell {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    height: clamp(720px, calc(100dvh - 145px), 1180px);
  }

  .oldiefans-chat__room,
  .oldiefans-chat__conversation,
  .oldiefans-chat__users {
    min-height: 0;
  }

  .oldiefans-chat__guest {
    min-height: 0;
    overflow-y: auto;
  }

  .oldiefans-chat__conversation {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .oldiefans-chat__messages {
    height: 100%;
  }

  .oldiefans-chat__users {
    overflow-y: auto;
  }
}

@media (max-width: 1050px) {
  .oldiefans-chat__room {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .oldiefans-chat__header {
    flex-wrap: wrap;
  }

  .oldiefans-chat__brand,
  .oldiefans-chat__radio-card {
    flex-basis: 100%;
  }
}

@media (max-width: 1800px) {
  .oldiefans-chat__radio-card::before {
    left: 55%;
    width: 300px;
    background-position: center -7px;
    background-size: 300px auto;
  }
}

@media (max-width: 1700px) {
  .oldiefans-chat__radio-card::before {
    display: none;
  }
}

@media (max-width: 780px) {
  .oldiefans-chat__shell {
    border-radius: 17px;
  }

  .oldiefans-chat__header {
    display: block;
    padding: 14px 18px;
  }

  .oldiefans-chat__brand {
    margin-bottom: 12px;
  }

  .oldiefans-chat__radio-card {
    flex-basis: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .oldiefans-chat__radio-controls {
    grid-column: 1;
    grid-row: 3;
  }

  .oldiefans-chat__room-label {
    white-space: normal;
  }

  .oldiefans-chat__room-tools,
  .oldiefans-chat__room-auth {
    width: 100%;
    justify-content: flex-start;
  }

  .oldiefans-chat__composer-account {
    flex-basis: 100%;
    justify-content: flex-end;
  }

  .oldiefans-chat__radio-next {
    overflow: visible;
    white-space: normal;
  }

  .oldiefans-chat__preview-switch {
    margin-top: 10px;
  }

  .oldiefans-chat__mobile-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #b7dec7;
    background: #e6f5eb;
    color: #175b37;
    font-size: 12px;
    font-weight: 700;
  }

  .oldiefans-chat__mobile-bar > span {
    display: inline-flex;
    gap: 9px;
    align-items: center;
  }

  .oldiefans-chat__users-toggle {
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid #b9cbe0;
    border-radius: 10px;
    background: #ffffff;
    color: var(--of-chat-blue);
    font-size: 12px;
    font-weight: 800;
  }

  .oldiefans-chat__room {
    display: block;
    min-height: 600px;
  }

  .oldiefans-chat__conversation {
    min-height: 600px;
    border-right: 0;
  }

  .oldiefans-chat__guest {
    min-height: 500px;
    padding: 22px 14px;
    border-right: 0;
  }

  .oldiefans-chat__users {
    position: fixed;
    z-index: 999999;
    top: 0;
    right: 0;
    width: min(88vw, 340px);
    height: 100dvh;
    overflow-y: auto;
    visibility: hidden;
    box-shadow: -18px 0 45px rgba(0, 0, 0, 0.22);
    transform: translateX(105%);
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .oldiefans-chat[data-users-open="true"] .oldiefans-chat__users {
    visibility: visible;
    transform: translateX(0);
  }

  .oldiefans-chat__users-heading > button {
    display: block;
  }

  .oldiefans-chat__messages {
    height: clamp(340px, 48vh, 500px);
    min-height: 340px;
    padding: 16px 12px;
  }

  .oldiefans-chat__message {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .oldiefans-chat__brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .oldiefans-chat__tagline {
    font-size: 12px;
  }

  .oldiefans-chat__room-heading {
    display: block;
    padding: 14px;
  }

  .oldiefans-chat__room-tools {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .oldiefans-chat__connection {
    max-width: none;
    text-align: left;
  }

  .oldiefans-chat__composer {
    padding: 12px;
  }

  .oldiefans-chat__formatting button span {
    display: none;
  }

  .oldiefans-chat__formatting button[data-oldiefans-emoji-toggle] span,
  .oldiefans-chat__formatting button[data-oldiefans-display-toggle] span,
  .oldiefans-chat__formatting button[data-oldiefans-emote-manager-open] span,
  .oldiefans-chat__formatting button[data-oldiefans-moderation-open] span {
    display: inline;
  }

  .oldiefans-chat__emoji-picker {
    position: fixed;
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: min(56vh, 430px);
    border-radius: 15px;
  }

  .oldiefans-chat__emoji-grid {
    grid-template-columns: repeat(6, minmax(34px, 1fr));
  }

  .oldiefans-chat__emoji-heading {
    cursor: default;
  }

  .oldiefans-chat__emoji-heading strong > span,
  .oldiefans-chat__emoji-resize {
    display: none;
  }

  .oldiefans-chat__display-panel {
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    top: auto !important;
    width: auto;
    max-width: none;
    max-height: min(76vh, 620px);
  }

  .oldiefans-chat__user-menu {
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    top: auto !important;
    width: auto;
    max-width: none;
    max-height: min(65vh, 410px);
  }

  .oldiefans-chat__display-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .oldiefans-chat__display-footer small {
    max-width: none;
    text-align: left;
  }

  .oldiefans-chat__send-row {
    grid-template-columns: 1fr;
  }

  .oldiefans-chat__action-stack {
    width: 100%;
    min-width: 0;
  }

  .oldiefans-chat__send-button {
    min-height: 46px;
  }

  .oldiefans-chat__input-shell {
    display: block;
  }

  .oldiefans-chat__recipient-prefix {
    display: block;
    padding: 9px 11px 0;
    white-space: normal;
  }

  .oldiefans-chat__reply-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oldiefans-chat__on-air-badge {
    animation: none;
  }

  .oldiefans-chat *,
  .oldiefans-chat *::before,
  .oldiefans-chat *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .oldiefans-chat__gif-preview > span {
    animation: none;
  }

  .oldiefans-chat__radio-levels span {
    animation: none !important;
    transform: scaleY(0.7);
  }
}

.oldiefans-chat__moderation-backdrop[hidden],
.oldiefans-chat__moderation-notice[hidden],
.oldiefans-chat__moderation-gate[hidden],
.oldiefans-chat__moderation-restriction[hidden],
.oldiefans-chat__moderation-form[hidden],
.oldiefans-chat__moderation-settings[hidden],
.oldiefans-chat__moderation-log[hidden],
.oldiefans-chat__moderation-form label[hidden] { display: none !important; }
.oldiefans-chat__moderation-backdrop {
  position: fixed; inset: 0; z-index: 100000; background: rgba(4, 20, 46, .68);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.oldiefans-chat__moderation-dialog {
  box-sizing: border-box; width: min(760px, 100%); max-height: min(90vh, 920px); overflow: auto;
  padding: 20px; border-radius: 18px; background: #fff; color: #162741;
  box-shadow: 0 20px 65px rgba(0, 0, 0, .28);
}
.oldiefans-chat__moderation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oldiefans-chat__moderation-heading h3 { margin: 0; }
.oldiefans-chat__moderation-heading button,
.oldiefans-chat__moderation-notice button { border: 0; background: transparent; font-size: 26px; cursor: pointer; }
.oldiefans-chat__moderation-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.oldiefans-chat__moderation-form label { display: grid; gap: 5px; font-weight: 700; }
.oldiefans-chat__moderation-form input,
.oldiefans-chat__moderation-form select,
.oldiefans-chat__moderation-form textarea { box-sizing: border-box; width: 100%; padding: 9px; border: 1px solid #b7c7de; border-radius: 8px; font: inherit; }
.oldiefans-chat__moderation-form textarea { min-height: 70px; resize: vertical; }
.oldiefans-chat__moderation-reason,
.oldiefans-chat__moderation-form > p { grid-column: 1 / -1; }
.oldiefans-chat__moderation-form > button,
.oldiefans-chat__moderation-settings button { justify-self: start; padding: 9px 15px; border: 0; border-radius: 8px; background: #073b7a; color: #fff; cursor: pointer; }
.oldiefans-chat__moderation-settings,
.oldiefans-chat__moderation-log { margin-top: 18px; padding-top: 14px; border-top: 1px solid #d7e2ee; }
.oldiefans-chat__moderation-settings label { display: block; margin: 10px 0; }
.oldiefans-chat__moderation-log [data-oldiefans-moderation-log] { max-height: 240px; overflow: auto; }
.oldiefans-chat__moderation-log label { display: grid; gap: 5px; margin-bottom: 12px; }
.oldiefans-chat__moderation-log input { box-sizing: border-box; width: 100%; padding: 9px; border: 1px solid #b7c7de; border-radius: 8px; font: inherit; }
.oldiefans-chat__moderation-log article { padding: 9px 0; border-bottom: 1px solid #e1e8f0; }
.oldiefans-chat__moderation-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; padding: 10px; border-radius: 8px; background: #fff0d9; color: #653900; }
.oldiefans-chat__moderation-gate,
.oldiefans-chat__moderation-restriction {
  margin: 8px 0; padding: 12px 14px; border: 1px solid #e9b75d;
  border-radius: 10px; background: #fff0d9; color: #653900;
}
.oldiefans-chat__moderation-gate strong,
.oldiefans-chat__moderation-gate span,
.oldiefans-chat__moderation-restriction strong,
.oldiefans-chat__moderation-restriction span { display: block; }
.oldiefans-chat__moderation-gate strong,
.oldiefans-chat__moderation-restriction strong { font-weight: 800; }
.oldiefans-chat__moderation-gate span,
.oldiefans-chat__moderation-restriction span { margin-top: 4px; font-variant-numeric: tabular-nums; }
.oldiefans-chat__moderation-gate:focus-visible,
.oldiefans-chat__moderation-restriction:focus-visible { outline: 3px solid #d99229; }
@media (max-width: 620px) { .oldiefans-chat__moderation-form { grid-template-columns: 1fr; } }

.oldiefans-chat__directory-backdrop[hidden] { display: none !important; }
.oldiefans-chat__directory-backdrop {
  position: fixed; inset: 0; z-index: 100001; display: flex;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(4, 20, 46, .68);
}
.oldiefans-chat__directory-dialog {
  box-sizing: border-box; display: flex; flex-direction: column;
  width: min(650px, 100%); max-height: min(90dvh, 850px);
  padding: 20px; border-radius: 18px; background: #fff; color: #162741;
  box-shadow: 0 20px 65px rgba(0, 0, 0, .28);
}
.oldiefans-chat__directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oldiefans-chat__directory-heading h3 { margin: 0; }
.oldiefans-chat__directory-heading button { border: 0; background: transparent; font-size: 26px; cursor: pointer; }
.oldiefans-chat__directory-dialog > p { margin: 9px 0; }
.oldiefans-chat__directory-search { display: grid; gap: 5px; font-weight: 700; }
.oldiefans-chat__directory-search input {
  box-sizing: border-box; width: 100%; padding: 9px;
  border: 1px solid #b7c7de; border-radius: 8px; font: inherit;
}
.oldiefans-chat__directory-count { color: #53657d; font-size: 13px; }
.oldiefans-chat__directory-list { min-height: 0; overflow: auto; border-top: 1px solid #d7e2ee; }
.oldiefans-chat__directory-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 2px; border-bottom: 1px solid #e1e8f0;
}
.oldiefans-chat__directory-row > div { display: grid; min-width: 0; gap: 2px; }
.oldiefans-chat__directory-row strong { overflow-wrap: anywhere; }
.oldiefans-chat__directory-row small { color: #53657d; }
.oldiefans-chat__directory-row button {
  flex: 0 0 auto; padding: 8px 12px; border: 1px solid #b7c7de;
  border-radius: 8px; background: #eef4fb; color: #073b7a; cursor: pointer;
}
.oldiefans-chat__directory-row button:hover,
.oldiefans-chat__directory-row button:focus-visible { background: #dceafb; }
.oldiefans-chat__directory-row .oldiefans-chat__directory-name {
  padding: 0; border: 0; background: none; text-align: left;
  color: #073b7a; font: inherit; font-weight: 800; overflow-wrap: anywhere;
}
.oldiefans-chat__directory-row .oldiefans-chat__directory-name:hover,
.oldiefans-chat__directory-row .oldiefans-chat__directory-name:focus-visible {
  background: none; text-decoration: underline;
}
.oldiefans-chat__directory-row button:disabled { cursor: default; opacity: .6; }
@media (max-width: 520px) {
  .oldiefans-chat__directory-backdrop { padding: 8px; }
  .oldiefans-chat__directory-dialog { max-height: calc(100dvh - 16px); padding: 14px; }
}
