:root {
  --bg: #10100f;
  --panel: #191715;
  --panel-soft: rgba(255, 248, 236, 0.055);
  --text: #fff8ec;
  --muted: #c5b8a7;
  --accent: #d7a45f;
  --danger: #e36f5d;
  --line: rgba(255, 248, 236, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(215, 164, 95, 0.18), transparent 34%), var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.admin-shell {
  width: min(1440px, 100% - 28px);
  margin: 0 auto;
  padding: 24px 0 36px;
}

.admin-head,
.status-grid,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(25, 23, 21, 0.88);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
small,
.panel-head span,
.status-grid span {
  color: var(--muted);
}

.token-form {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 8px;
}

input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0 12px;
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0 12px;
  font-weight: 800;
}

.token-form button,
.panel-head button {
  border: 0;
  background: var(--accent);
  color: #1b1208;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
}

.status-grid article {
  background: var(--panel-soft);
  padding: 16px;
}

.status-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 27px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.panel {
  min-height: 280px;
  padding: 14px;
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel h2 {
  margin: 0;
  font-size: 18px;
}

.room-admin-list,
.user-admin-list,
.message-admin-list,
.report-admin-list,
.admin-form {
  display: grid;
  gap: 8px;
}

.admin-form {
  margin-bottom: 12px;
}

.admin-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0 12px;
}

.room-row,
.user-row,
.message-row,
.report-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.room-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.room-row strong,
.room-row small,
.user-copy strong,
.user-copy span,
.user-copy small,
.message-row strong,
.message-row small,
.report-row strong,
.report-row small {
  display: block;
}

.room-row em {
  color: #cae8bd;
  font-style: normal;
  font-weight: 800;
}

.user-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  color: #1b1208;
  font-weight: 900;
  overflow: hidden;
}

.actions {
  display: flex;
  gap: 6px;
}

.actions button:last-child,
.message-row button {
  border-color: rgba(227, 111, 93, 0.45);
  color: #ffd0c8;
}

.message-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.message-row p,
.report-row p {
  margin: 6px 0 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.notice {
  margin: 14px 0 0;
  color: #ffe0a8;
}

.notice.is-danger {
  color: #ffd0c8;
}

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

  .admin-head {
    display: grid;
  }

  .token-form {
    grid-template-columns: 1fr;
  }

  .panel.wide {
    grid-column: auto;
  }
}

[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.token-form{flex-wrap:wrap}.token-form input{min-width:0;max-width:100%}
