* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #f3f4f6;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 10px;
}

.card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* ===== HEADER ===== */

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

/* obere Mini-Leiste */
.top-compact-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.mini-box {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  border-radius: 8px;
  padding: 6px;
  min-height: 48px;
}

.timer-mini {
  width: 80px;
  flex: 0 0 80px;
}

.link-mini {
  flex: 1;
  text-align: left;
  cursor: pointer;
  color: #1e3a8a;
}

.link-mini:hover {
  background: #e0e7ff;
}

.mini-label {
  font-size: 0.65rem;
  color: #1d4ed8;
  margin-bottom: 2px;
  font-weight: 700;
}

.mini-value {
  font-size: 0.85rem;
  font-weight: 700;
}

.mini-link-text {
  font-size: 0.7rem;
  word-break: break-all;
}

/* Titel */
.title-row {
  margin-bottom: 6px;
}

h1 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.muted {
  font-size: 0.75rem;
  color: #6b7280;
}

.room-id-wrap {
  word-break: break-all;
}

/* Passwort */
.auth-bar {
  display: flex;
  gap: 6px;
}

.password-compact {
  flex: 1;
}

/* Buttons */
.action-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.action-btn {
  flex: 1;
  margin-top: 0;
}

/* ===== INPUTS ===== */

.input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px;
  font-size: 14px;
}

.textarea {
  min-height: 110px;
}

/* ===== BUTTONS ===== */

.button {
  border: 0;
  border-radius: 8px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
}

.button:hover {
  background: #1d4ed8;
}

.button-secondary {
  background: #4b5563;
}

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

.button-danger {
  background: #dc2626;
}

.button-danger:hover {
  background: #b91c1c;
}

/* ===== MESSAGES ===== */

.messages {
  margin-top: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  padding: 8px;
  min-height: 100px;
}

.message {
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  margin-bottom: 6px;
}

.message:last-child {
  margin-bottom: 0;
}

.message-meta {
  font-size: 0.7rem;
  color: #6b7280;
}

.message-text {
  font-size: 0.85rem;
  word-break: break-word;
}

/* ===== REPLY ===== */

.reply-box {
  margin-top: 10px;
}

.label {
  font-size: 0.8rem;
  font-weight: 700;
}

/* ===== STATUS FOOTER ===== */

.status-footer {
  display: none;
  position: sticky;
  bottom: 0;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(249, 250, 251, 0.9);
  font-size: 0.75rem;
  text-align: center;
}

.status-footer:not(:empty) {
  display: block;
}

/* ===== MOBILE ===== */

@media (max-width: 680px) {

  .action-btn {
    padding: 12px;
    font-size: 15px;
  }

  .mini-value {
    font-size: 0.9rem;
  }

  .mini-link-text {
    font-size: 0.75rem;
  }
}