.play-hub-header-actions {
  display: flex;
  justify-self: end;
  gap: 6px;
  min-width: 0;
}

.play-hub-header-actions .btn {
  min-height: 36px;
  padding-inline: 12px;
  white-space: nowrap;
}

:is(.feedback-dialog, .reports-dialog) {
  padding: 20px;
  border-color: #423b48;
  background: #1c1b22;
}

.feedback-dialog { width: min(480px, calc(100vw - 24px)); }
.reports-dialog { width: min(660px, calc(100vw - 24px)); }

.feedback-heading,
.reports-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}

:is(.feedback-heading, .reports-heading) h2 {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.reports-controls { display: flex; gap: 6px; }
.reports-status { color: #c7bfcd; }
.reports-status:empty { display: none; }

.reports-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.reports-list > li {
  min-width: 0;
  padding: 12px;
  border: 1px solid #45404c;
  border-radius: 6px;
  background: #18171e;
  overflow-wrap: anywhere;
}

.report-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.report-heading time,
.report-position,
.reports-list details { color: #c7bfcd; font-size: .82rem; }
.report-message { margin: 8px 0 0; white-space: pre-wrap; line-height: 1.45; }
.report-position { margin: 10px 0 4px; }
.reports-list summary { font-weight: 650; }
.reports-list ol { margin: 6px 0 0; padding-inline-start: 20px; line-height: 1.45; }
.reports-list ol li + li { margin-top: 4px; }
#reports-older { margin-top: 12px; }

.feedback-dialog form {
  display: grid;
  gap: 10px;
}

.feedback-dialog label {
  font-size: .875rem;
  font-weight: 650;
}

.feedback-dialog textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px;
  resize: vertical;
  border: 1px solid #605768;
  border-radius: 6px;
  color: inherit;
  background: #14131a;
  font: inherit;
  font-size: 16px;
}

.feedback-dialog textarea:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

.feedback-dialog details {
  padding: 8px 12px;
  border: 1px solid #45404c;
  border-radius: 6px;
  color: #c7bfcd;
  font-size: .82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.feedback-dialog summary { font-weight: 650; }
.feedback-dialog ol { margin: 8px 0 2px; padding-inline-start: 20px; }
.feedback-dialog li + li { margin-top: 4px; }
.feedback-error { margin: 0; color: #ffc1bb; font-size: .82rem; }
.feedback-error:empty { display: none; }

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

:is(.feedback-actions, .feedback-heading, .reports-dialog) .btn { min-height: 40px; }

.feedback-confirmation:not(:empty) {
  position: fixed;
  z-index: 120;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  padding: 10px 14px;
  border: 1px solid #486d63;
  border-radius: 7px;
  color: #ddfcf0;
  background: #172b26;
  font-size: .875rem;
  pointer-events: none;
}

@media (max-width: 570px) {
  .play-hub-header-actions { grid-column: 2; grid-row: 1; }
  .play-hub-header-actions .btn { min-height: 44px; }
  .duel-hub .play-hub-header-actions #home-account { max-width: 29vw; }
  :is(.feedback-actions, .feedback-heading, .reports-dialog) .btn { min-height: 44px; }
}

@media (max-width: 360px) {
  .play-hub-header-actions .btn,
  .duel-hub .play-hub-header-actions #home-account { padding-inline: 8px; }
  .play-hub-header .duel-brand-mark { width: 36px; height: 36px; }
  .play-hub-header .duel-hub-brand strong { font-size: 18px; }
}
