* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #eef3f9;
  color: #1d2733;
}

.login {
  max-width: 420px;
  margin: 10vh auto;
  background: #fff;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.login h1 {
  margin-top: 0;
  color: #17446f;
}

label {
  display: block;
  margin-top: 16px;
  font-weight: bold;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #bfd0e0;
  border-radius: 8px;
  background: #fff;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2b6fa6;
}

.checkbox {
  display: flex;
  gap: 10px;
  font-weight: normal;
  line-height: 1.4;
}

.checkbox input {
  width: auto;
}

button {
  margin-top: 16px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #2b6fa6;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: #1f527d;
}

button:disabled {
  opacity: .65;
  cursor: default;
}

.error {
  background: #ffe2e2;
  padding: 10px;
  border-radius: 8px;
  margin: 16px 0;
}

.app {
  display: grid;
  grid-template-columns: 320px 1fr 260px;
  height: 100vh;
}

.sidebar {
  background: #17344f;
  color: #fff;
  padding: 20px;
  overflow-y: auto;
}

.sidebar-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-right {
  border-left: 1px solid rgba(255,255,255,.12);
}

.sidebar h2 {
  margin-top: 0;
}

.sidebar h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 15px;
  opacity: .9;
}

.sidebar p {
  line-height: 1.4;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.room-select {
  margin: 0;
  color: #1d2733;
}

.separee-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.separee-form input {
  margin: 0;
  padding: 9px;
}

.separee-form button {
  margin: 0;
  text-align: center;
  background: #3b7fb2;
}

.empty-list {
  padding: 8px;
  opacity: .75;
  font-size: 14px;
}

.invite-picker {
  max-height: 150px;
  overflow-y: auto;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 8px;
}

.invite-user {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 6px 4px;
  font-weight: normal;
  cursor: pointer;
}

.invite-user input {
  width: auto;
  margin: 0;
}

.online-list {
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 8px !important;
}

.online-list li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.online-list li:last-child {
  border-bottom: 0;
}

.online-user {
  width: 100%;
  margin: 0;
  padding: 9px 8px;
  background: transparent;
  color: #fff;
  border-radius: 6px;
  text-align: left;
}

.online-user:hover {
  background: rgba(255,255,255,.12);
}

.small-info {
  margin-top: -6px;
  opacity: .75;
  font-size: 14px;
}

.whisper-hint {
  margin-top: 12px;
}

.logout-form button {
  width: 100%;
  background: #8b2f2f;
  text-align: center;
}

.logout-form button:hover {
  background: #6f2323;
}

main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
}

.chat-header {
  background: #fff;
  border-bottom: 1px solid #d6e0ea;
  padding: 14px 20px;
}

.chat-header h1 {
  margin: 0;
  font-size: 22px;
  color: #17446f;
}

.whisper-bar {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff4d7;
  border: 1px solid #e1c66f;
  color: #614700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.whisper-bar button {
  margin: 0;
  width: auto;
  background: #99721a;
}

.whisper-bar button:hover {
  background: #775913;
}

.hidden {
  display: none;
}

#messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.msg {
  background: #fff;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.system {
  background: #dcebf7;
  color: #17446f;
}

.msg.whisper {
  border-left: 5px solid #c9921b;
  background: #fff8df;
}

.msg.whisper.in {
  border-left-color: #b4549d;
  background: #fff0fb;
}

.msg.whisper.out {
  border-left-color: #c9921b;
  background: #fff8df;
}

#messageForm {
  display: flex;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border-top: 1px solid #d6e0ea;
}

#messageInput {
  margin: 0;
}

#messageForm button {
  margin: 0;
  width: 120px;
  text-align: center;
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .sidebar {
    max-height: none;
  }

  .sidebar-right {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.12);
  }

  main {
    height: 70vh;
  }
}

.login-wide {
  max-width: 1120px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.entry-card {
  border: 1px solid #d6e0ea;
  border-radius: 14px;
  padding: 18px;
  background: #f8fbff;
}

.entry-card h2 {
  margin-top: 0;
  color: #17446f;
  font-size: 20px;
}

.entry-card p {
  min-height: 54px;
  line-height: 1.4;
}

.success {
  background: #dff5e5;
  color: #245a31;
  padding: 10px;
  border-radius: 8px;
  margin: 16px 0;
}

@media (max-width: 900px) {
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-card p {
    min-height: auto;
  }
}

.entry-grid-two {
  grid-template-columns: repeat(2, 1fr);
}

.register-teaser {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #d6e0ea;
  border-radius: 14px;
  background: #eef6ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.register-teaser h2 {
  margin: 0 0 6px 0;
  color: #17446f;
  font-size: 20px;
}

.register-teaser p {
  margin: 0;
  line-height: 1.4;
}

.button-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #2b6fa6;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.button-link:hover {
  background: #1f527d;
}

.back-link {
  margin-top: 18px;
}

.back-link a {
  color: #2b6fa6;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .entry-grid-two {
    grid-template-columns: 1fr;
  }

  .register-teaser {
    display: block;
  }

  .register-teaser .button-link {
    margin-top: 14px;
  }
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 12px;
}

.sidebar-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}

.sidebar-link:hover {
  background: rgba(255,255,255,.20);
}

.admin-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-header h1 {
  margin: 0;
  color: #17446f;
}

.admin-card {
  background: #fff;
  border: 1px solid #d6e0ea;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.admin-filter {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.admin-filter label {
  margin-top: 0;
}

.admin-filter button {
  margin-top: 0;
  height: 44px;
}

.admin-message {
  border: 1px solid #d6e0ea;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  background: #f8fbff;
}

.admin-message-hidden {
  opacity: .7;
  background: #f1f1f1;
}

.admin-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #5a6a78;
  font-size: 13px;
  margin-bottom: 8px;
}

.admin-message-names {
  margin-bottom: 8px;
}

.admin-message-content {
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.admin-message form {
  margin: 0;
}

.admin-message button {
  margin-top: 0;
}

.danger-button {
  background: #8b2f2f;
}

.danger-button:hover {
  background: #6f2323;
}

.admin-hidden-info {
  color: #6f2323;
  font-size: 14px;
}

@media (max-width: 900px) {
  .admin-header {
    display: block;
  }

  .admin-filter {
    grid-template-columns: 1fr;
  }
}

.admin-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.secondary-link {
  background: #5d7183;
}

.secondary-link:hover {
  background: #485968;
}

.admin-filter-users {
  grid-template-columns: 2fr 1fr 1fr auto;
}

.user-table {
  display: grid;
  gap: 8px;
}

.user-row {
  display: grid;
  grid-template-columns: 70px 1.4fr 1.7fr 110px 110px 150px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d6e0ea;
  border-radius: 10px;
  background: #f8fbff;
}

.user-row-head {
  font-weight: bold;
  color: #17446f;
  background: #eef6ff;
}

.user-row-inactive {
  opacity: .7;
  background: #f1f1f1;
}

.user-row small {
  display: block;
  color: #667788;
  margin-top: 2px;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.inline-form select {
  margin: 0;
  padding: 8px;
}

.inline-form button {
  margin: 0;
  white-space: nowrap;
}

.status-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
}

.status-active {
  background: #dff5e5;
  color: #245a31;
}

.status-inactive {
  background: #ffe2e2;
  color: #7b2222;
}

@media (max-width: 1100px) {
  .user-row {
    grid-template-columns: 1fr;
  }

  .user-row-head {
    display: none;
  }

  .admin-filter-users {
    grid-template-columns: 1fr;
  }

  .admin-header-actions {
    justify-content: flex-start;
  }
}

.report-button {
  float: right;
  width: auto;
  margin: -4px 0 0 10px;
  padding: 4px 8px;
  font-size: 12px;
  background: #6f7f8c;
  opacity: .75;
}

.report-button:hover {
  background: #8b2f2f;
  opacity: 1;
}

.admin-filter-reports {
  grid-template-columns: 220px auto;
}

.report-reason {
  background: #fff8df;
  border-left: 5px solid #c9921b;
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
}

.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.report-actions form {
  margin: 0;
}

.report-actions button {
  margin: 0;
}

@media (max-width: 900px) {
  .admin-filter-reports {
    grid-template-columns: 1fr;
  }

  .report-button {
    float: none;
    display: block;
    margin: 8px 0 0 0;
  }
}

.report-button {
  float: right;
  width: auto;
  margin: -4px 0 0 10px;
  padding: 4px 8px;
  font-size: 12px;
  background: #6f7f8c;
  opacity: .75;
}

.report-button:hover {
  background: #8b2f2f;
  opacity: 1;
}

.admin-filter-reports {
  grid-template-columns: 220px auto;
}

.report-reason {
  background: #fff8df;
  border-left: 5px solid #c9921b;
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
}

.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.report-actions form {
  margin: 0;
}

.report-actions button {
  margin: 0;
}

@media (max-width: 900px) {
  .admin-filter-reports {
    grid-template-columns: 1fr;
  }

  .report-button {
    float: none;
    display: block;
    margin: 8px 0 0 0;
  }
}

.file-input {
  max-width: 210px;
  margin: 0;
  padding: 9px;
}

#uploadButton {
  margin: 0;
  width: 80px;
  text-align: center;
  background: #3b7fb2;
}

#uploadButton:hover {
  background: #2f6690;
}

.chat-image {
  display: block;
  max-width: min(420px, 100%);
  max-height: 320px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #d6e0ea;
  object-fit: contain;
  background: #f8fbff;
}

@media (max-width: 900px) {
  #messageForm {
    flex-wrap: wrap;
  }

  .file-input {
    max-width: 100%;
  }

  #uploadButton,
  #messageForm button {
    width: auto;
  }
}

.chat-video {
  display: block;
  width: min(520px, 100%);
  max-height: 360px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #d6e0ea;
  background: #000;
}

.attachment-link {
  display: inline-block;
  margin-top: 8px;
  color: #2b6fa6;
  text-decoration: none;
  font-size: 14px;
}

.attachment-link:hover {
  text-decoration: underline;
}

.legal-page {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 18px 32px;
}

.legal-page h1 {
  color: #17446f;
}

.legal-card {
  background: #fff;
  border: 1px solid #d6e0ea;
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.legal-card h2 {
  margin-top: 0;
  color: #17446f;
}

.legal-card li {
  margin-bottom: 8px;
  line-height: 1.45;
}

.legal-card p {
  line-height: 1.55;
}

.legal-nav,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.legal-nav a,
.legal-links a {
  color: #2b6fa6;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-links a:hover {
  text-decoration: underline;
}

.legal-links {
  justify-content: center;
  font-size: 14px;
}

.legal-links-sidebar {
  justify-content: flex-start;
  margin: 18px 0;
  font-size: 13px;
}

.legal-links-sidebar a {
  color: rgba(255,255,255,.88);
}

.checkbox a {
  color: #2b6fa6;
}

/* Layout-Fix für Checkboxen mit Links */
.checkbox {
  align-items: flex-start;
}

.checkbox span {
  display: inline-block;
  line-height: 1.45;
}

.checkbox a {
  white-space: nowrap;
}

/* Rechts unten im Chat statt links */
.sidebar-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.legal-links-right {
  justify-content: flex-start;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
}

.legal-links-right a {
  color: rgba(255,255,255,.88);
}

.legal-links-right a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .sidebar-right {
    display: block;
  }

  .legal-links-right {
    margin-top: 16px;
  }
}

/* Kompakter Separée-Bereich links */
.separee-create-panel {
  margin-top: 14px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

.separee-create-panel summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: bold;
  color: #fff;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  list-style: none;
}

.separee-create-panel summary::-webkit-details-marker {
  display: none;
}

.separee-create-panel summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  transition: transform .15s ease;
}

.separee-create-panel[open] summary::before {
  transform: rotate(90deg);
}

.separee-create-section {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.separee-create-section h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: rgba(255,255,255,.9);
}

.separee-create-panel .separee-form {
  margin-bottom: 0;
}

.separee-create-panel .invite-picker {
  max-height: 100px;
}

.room-select optgroup {
  font-weight: bold;
}

.room-select option {
  font-weight: normal;
}

.invite-message {
  border-left: 5px solid #2b6fa6;
}

.invite-join-button {
  display: inline-block;
  width: auto;
  margin: 0 0 0 8px;
  padding: 6px 10px;
  border-radius: 7px;
  background: #2b6fa6;
  color: #fff;
  font-size: 13px;
  vertical-align: middle;
}

.invite-join-button:hover {
  background: #1f527d;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 20px;
}

.admin-nav a,
.button-link {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 8px;
  background: #2b6fa6;
  color: #fff;
  text-decoration: none;
  border: 0;
  font-size: 14px;
}

.admin-nav a:hover,
.button-link:hover {
  background: #1f527d;
  text-decoration: none;
}

.button-link.secondary {
  background: #6b7c8e;
}

.button-link.secondary:hover {
  background: #566675;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #d6e0ea;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #17446f;
  background: #f4f8fb;
}

.admin-actions {
  white-space: nowrap;
}

.admin-actions .button-link {
  margin: 0 4px 4px 0;
}

.admin-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.admin-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: bold;
}

.admin-filter-form input,
.admin-filter-form select {
  min-width: 180px;
}

.success-box {
  background: #e6f4ea;
  border: 1px solid #9fd3ae;
  color: #245b35;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
}

.error-box {
  background: #fdeaea;
  border: 1px solid #e2a6a6;
  color: #7a1f1f;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
}

.auth-form label {
  display: block;
  margin: 12px 0;
  font-weight: bold;
}

.auth-form input {
  margin-top: 6px;
}

.report-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.report-modal-backdrop.hidden {
  display: none;
}

.report-modal {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 45px rgba(0,0,0,.25);
}

.report-modal h2 {
  margin-top: 0;
  color: #17446f;
}

.report-modal label {
  display: block;
  margin-top: 14px;
  font-weight: bold;
}

.report-modal select,
.report-modal textarea {
  width: 100%;
  margin-top: 6px;
}

.report-modal textarea {
  resize: vertical;
}

.report-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.secondary-button {
  background: #6b7c8e;
}

.secondary-button:hover {
  background: #566675;
}

.link-like-button {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.link-like-button:hover {
  text-decoration: underline;
  background: transparent;
}

.legal-links-right .link-like-button {
  color: rgba(255,255,255,.88);
}

.legal-links-right .link-like-button:hover {
  color: #fff;
}

.admin-export-card h2 {
  margin-top: 0;
  color: #17446f;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.stats-card {
  background: #fff;
  border: 1px solid #d6e0ea;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.stats-card h2 {
  margin: 0 0 8px;
  color: #17446f;
  font-size: 17px;
}

.stats-number {
  font-size: 34px;
  font-weight: bold;
  color: #2b6fa6;
  line-height: 1;
  margin: 8px 0;
}

.stats-card p {
  margin: 0;
  color: #5f6f7d;
}

.stats-bars {
  display: grid;
  gap: 8px;
}

.stats-bar-row {
  display: grid;
  grid-template-columns: 58px 1fr 48px;
  gap: 10px;
  align-items: center;
}

.stats-bar-label,
.stats-bar-value {
  font-size: 13px;
  color: #5f6f7d;
}

.stats-bar-value {
  text-align: right;
}

.stats-bar-track {
  height: 12px;
  background: #e8eef4;
  border-radius: 999px;
  overflow: hidden;
}

.stats-bar-fill {
  height: 100%;
  background: #2b6fa6;
  border-radius: 999px;
}

.backup-status {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: bold;
}

.backup-status-ok {
  background: #e6f4ea;
  color: #245b35;
  border: 1px solid #9fd3ae;
}

.backup-status-warn {
  background: #fff6df;
  color: #7a5600;
  border: 1px solid #e7c76d;
}

.backup-status-bad,
.backup-status-unknown {
  background: #fdeaea;
  color: #7a1f1f;
  border: 1px solid #e2a6a6;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
}

.compact-list li {
  margin: 2px 0;
}

.log-box {
  max-height: 360px;
  overflow: auto;
  background: #13202d;
  color: #e8f0f7;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.one-time-attachment-option {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 6px 0;
  font-size: 13px;
  color: #5f6f7d;
}

.one-time-attachment-option input {
  width: auto;
  margin-top: 2px;
}

.one-time-open-link {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #2b6fa6;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.one-time-open-link:hover {
  background: #1f527d;
  text-decoration: none;
}

.one-time-expired {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef2f5;
  color: #6b7c8e;
  font-size: 14px;
}

.separee-manage-panel {
  margin-top: 14px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px;
}

.separee-manage-panel.hidden {
  display: none;
}

.separee-manage-panel h3 {
  margin-top: 0;
}

.separee-manage-panel button {
  width: 100%;
}

.danger-button {
  background: #a63a3a;
}

.danger-button:hover {
  background: #812a2a;
}

.separee-manage-panel .danger-button {
  margin-top: 8px;
}

.message-action-button {
  display: inline-block;
  width: auto;
  margin: 0 0 0 6px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #eef2f5;
  color: #2b3a45;
  font-size: 12px;
  vertical-align: middle;
}

.message-action-button:hover {
  background: #d8e2ea;
}

.danger-message-action {
  color: #7a1f1f;
}

.deleted-message .message-text-content {
  color: #7d8790;
  font-style: italic;
}

.account-page {
  max-width: 760px;
}

.account-card {
  margin-bottom: 18px;
}

.account-info-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.account-info-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #d6e0ea;
}

.account-info-list strong {
  color: #17446f;
}

.danger-zone {
  border-color: #e2a6a6;
}

.danger-zone h2 {
  color: #7a1f1f;
}

.auth-form textarea {
  width: 100%;
  margin-top: 6px;
  resize: vertical;
}

@media (max-width: 620px) {
  .account-info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* CHATDORF BRANDING CSS START */
.chatdorf-branding-home {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  padding-top: 0.25rem;
}
.chatdorf-branding-home img {
  display: block;
  max-width: min(420px, 88vw);
  width: 100%;
  height: auto;
}
.chatdorf-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.chatdorf-header-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .chatdorf-branding-home img {
    max-width: min(320px, 88vw);
  }
}
/* CHATDORF BRANDING CSS END */


/* CHATDORF BRANDING FORCE START 1783197536 */
.chatdorf-branding-forced {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 18px 16px 10px !important;
  margin: 0 auto 10px !important;
  text-align: center !important;
  background: #ffffff !important;
  position: relative !important;
  z-index: 50 !important;
}
.chatdorf-branding-forced a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}
.chatdorf-branding-forced img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: 86px !important;
  width: auto !important;
  max-width: min(92vw, 460px) !important;
  object-fit: contain !important;
}
@media (max-width: 700px) {
  .chatdorf-branding-forced { padding: 12px 10px 6px !important; margin-bottom: 6px !important; }
  .chatdorf-branding-forced img { height: 58px !important; max-width: 88vw !important; }
}
/* CHATDORF BRANDING FORCE END 1783197536 */

/* CHATDORF MOBILE RESPONSIVE START */
/* Chatdorf mobile responsive hardening */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

input, select, textarea, button {
  max-width: 100%;
  font-size: 16px;
}

table {
  max-width: 100%;
}

pre, code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chatdorf-branding-forced,
.chatdorf-branding,
.site-branding,
.branding,
.logo-wrap,
.header-logo,
.logo {
  max-width: 100%;
}

.chatdorf-branding-forced img,
.chatdorf-branding img,
.site-branding img,
.branding img,
.logo-wrap img,
.header-logo img,
.logo img {
  max-width: min(320px, 90vw);
  height: auto;
}

@media (max-width: 900px) {
  body {
    margin: 0;
  }

  main,
  .container,
  .page,
  .content,
  .panel,
  .card,
  .box,
  form {
    max-width: 100% !important;
  }

  .container,
  .page,
  .content,
  main {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  header,
  nav,
  .topbar,
  .navbar,
  .admin-nav,
  .room-nav {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav a,
  .nav a,
  .admin-nav a,
  .room-nav a,
  .button,
  button,
  input[type="submit"] {
    min-height: 42px;
  }

  .chatdorf-branding-forced img,
  .chatdorf-branding img,
  .site-branding img,
  .branding img,
  .header-logo img,
  .logo img {
    max-width: min(260px, 84vw);
  }

  .chat,
  .chat-page,
  .chat-layout,
  .chat-container,
  #chat,
  #messages,
  .messages,
  .message-list {
    max-width: 100% !important;
  }

  #messages,
  .messages,
  .message-list,
  .chat-messages {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .message,
  .chat-message,
  .bubble,
  .msg {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .chat-input,
  .message-form,
  #messageForm,
  form[action*="message"],
  form[action*="chat"] {
    max-width: 100%;
    gap: 8px;
  }

  .chat-input input,
  .chat-input textarea,
  .message-form input,
  .message-form textarea,
  #messageForm input,
  #messageForm textarea {
    width: 100%;
    min-width: 0;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    width: 100%;
  }

  label {
    overflow-wrap: anywhere;
  }

  .modal,
  dialog,
  .dialog,
  .popup,
  .overlay-content {
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px) !important;
    overflow: auto;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    max-width: 100%;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
  }

  th,
  td {
    white-space: nowrap;
  }

  .admin-table,
  .table-wrap,
  .table-responsive,
  .archive,
  .reports,
  .attachments,
  .users-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  video,
  img.attachment,
  .attachment img,
  .attachment video,
  .message img,
  .message video {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.15;
  }

  h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
    line-height: 1.2;
  }

  h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  }

  .container,
  .page,
  .content,
  main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  form,
  .form,
  .login,
  .register,
  .account,
  .admin-card,
  .card,
  .panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  button,
  .button,
  input[type="submit"],
  input[type="button"] {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }

  form button,
  form .button,
  form input[type="submit"] {
    width: 100%;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    width: 100%;
  }

  .chatdorf-branding-forced,
  .chatdorf-branding,
  .site-branding,
  .branding,
  .logo-wrap,
  .header-logo,
  .logo {
    text-align: center;
  }

  .chatdorf-branding-forced img,
  .chatdorf-branding img,
  .site-branding img,
  .branding img,
  .header-logo img,
  .logo img {
    max-width: min(230px, 78vw);
  }

  .rooms,
  .room-list,
  .separee-list,
  .cards,
  .grid {
    display: block !important;
  }

  .rooms > *,
  .room-list > *,
  .separee-list > *,
  .cards > *,
  .grid > * {
    margin-bottom: 12px;
  }
}

@media (max-width: 420px) {
  .container,
  .page,
  .content,
  main {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .chatdorf-branding-forced img,
  .chatdorf-branding img,
  .site-branding img,
  .branding img,
  .header-logo img,
  .logo img {
    max-width: min(205px, 76vw);
  }

  .chat-input,
  .message-form,
  #messageForm {
    display: block;
  }

  .chat-input button,
  .message-form button,
  #messageForm button {
    margin-top: 8px;
    width: 100%;
  }
}

/* CHATDORF MOBILE RESPONSIVE END */
