.live-question-meta:has(#reportQuestion) {
  display: grid;
  grid-template-columns: minmax(32px, 1fr) minmax(0, auto) minmax(32px, 1fr);
}
.live-question-meta:has(#reportQuestion) > span { grid-area: 1 / 2; }
.live-question-meta:has(#reportQuestion) > b { grid-area: 1 / 3; }

#reportQuestion {
  grid-area: 1 / 1;
  justify-self: start;
  width: 32px;
  height: 32px;
  border: 1px solid #50365c66;
  border-radius: 50%;
  padding: 0;
  background: #fff5df;
  color: #50365c;
  cursor: pointer;
}
#reportQuestion:not([hidden]) { display: grid; place-items: center; }
#reportQuestion:hover { background: #ffe3c5; }
#reportQuestion svg { width: 16px; height: 16px; }
.report-emblem svg { width: 55%; height: auto; }

#questionReport, .report-admin-page {
  --report-ink: #2c1537;
  --report-paper: #fff5df;
  --report-lilac: #ddc5ee;
  --report-orange: #f6a46d;
  color: var(--report-ink);
}
#questionReport {
  box-sizing: border-box;
  width: min(92vw, 480px);
  max-height: 90dvh;
  border: 2px solid var(--report-ink);
  border-radius: 26px;
  padding: clamp(18px, 5vw, 32px);
  background: var(--report-paper);
  box-shadow: 0 8px 0 var(--report-ink), 0 24px 64px #26133140;
}
#questionReport::backdrop { background: #2c153799; backdrop-filter: blur(4px); }
.report-emblem {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border: 2px solid var(--report-ink);
  border-radius: 17px;
  background: var(--report-lilac);
  transform: rotate(-6deg);
}
#questionReport h2, .report-admin-header h1 {
  margin: 10px 0 16px;
  font: 400 clamp(29px, 6vw, 43px)/1.15 'Lalezar', system-ui, sans-serif;
}
#questionReport h2 { text-align: center; }
#questionReport label { display: block; font-weight: 700; }
#questionReport textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 114px;
  margin-block: 8px 14px;
  resize: vertical;
}
#closeQuestionReport {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid #2c153742;
  border-radius: 50%;
  background: transparent;
  color: var(--report-ink);
  font: 25px/1 system-ui;
  cursor: pointer;
}
#questionReportNotice:empty { display: none; }
#questionReportNotice { margin: 12px 0 0; }
#questionReport .report-submit, .report-admin-page button {
  border: 2px solid var(--report-ink);
  border-radius: 14px;
  background: var(--report-orange);
  color: var(--report-ink);
  padding: 8px 16px;
  font: 400 21px/1.2 'Lalezar', system-ui, sans-serif;
  box-shadow: 0 3px var(--report-ink);
  cursor: pointer;
}
#questionReport .report-submit { width: 100%; }
#questionReport .report-submit:disabled, .report-admin-page button:disabled { opacity: .65; cursor: default; }
#reportQuestion:focus-visible, #questionReport :focus-visible, .report-admin-page :focus-visible {
  outline: 3px solid #8955a9;
  outline-offset: 3px;
}
.report-admin-page {
  background: var(--report-paper);
  margin: 0;
  font: 16px/1.6 system-ui, sans-serif;
}
.report-admin-page main { width: min(92%, 760px); margin: clamp(18px, 6vw, 64px) auto; }
.report-admin-header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  border: 2px solid var(--report-ink);
  border-radius: 20px;
  background: var(--report-lilac);
  box-shadow: 0 4px var(--report-ink);
}
.report-admin-header h1 { margin: 0; }
.report-admin-header img { display: block; width: clamp(60px, 13vw, 94px); height: auto; }
.report-admin-page form, #reportAdminList article {
  padding: 18px;
  margin: 18px 0;
  border: 1px solid #b68bd2;
  border-radius: 16px;
  background: #fffaf0;
}
.report-admin-page label { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 700; }
.report-admin-page input, #questionReport textarea {
  border: 1px solid #a889ad;
  border-radius: 12px;
  padding: 9px 12px;
  background: #fffaf0;
  color: var(--report-ink);
  font: inherit;
}
#reportAdminList h2 { margin: 0; font: 400 26px/1.2 'Lalezar', system-ui, sans-serif; }
#reportAdminList p { overflow-wrap: anywhere; white-space: pre-wrap; }
#reportAdminList h2 + p { margin-top: 4px; color: #65466f; font-size: 13px; }
