dialog.platform-dialog.report-host-dialog {
  --report-header-height: 56px;
  padding: 0;
  width: min(480px, calc(100vw - 32px));
  overflow: hidden;
}

.platform-dialog .report-host-heading {
  box-sizing: border-box;
  height: var(--report-header-height);
  margin: 0;
  padding-inline: 1.25rem;
  border-bottom: 1px solid var(--layout-divider);
}

.report-host-dialog--sheet .report-host-heading {
  padding-inline: 16px;
}

.report-host-dialog--sheet .report-host-heading h2 { font-size: 1rem; }
.report-host-dialog--sheet .report-loading-cancel:not([hidden]){display:flex;min-height:44px;margin:0 auto}
.report-loading-cancel[hidden]{display:none}

.report-host-dialog iframe {
  display: block;
  width: 100%;
  height: min(max(10rem, var(--report-form-height, 23rem)), calc(100dvh - 34px - var(--report-header-height)));
  border: 0;
}

.report-page--embedded {
  padding: 1.25rem;
  background: var(--room-surface);
}

body:has(.report-page--embedded) { background: var(--room-surface); }

.report-content [hidden] { display: none; }

.report-content textarea {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.report-evidence-images img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.reading-report-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.reading-report-heading {
  text-align: right;
}

dialog.platform-dialog.report-host-dialog--sheet{
  position:fixed;
  inset:auto 0 var(--report-bottom-inset,0px);
  width:min(100%,42rem);max-width:none;margin:0 auto;
  max-height:calc(var(--report-viewport-height,100dvh) - max(12px,env(safe-area-inset-top)));
  border-radius:var(--room-radius-panel) var(--room-radius-panel) 0 0;
  overflow:auto;
}
.report-host-dialog--sheet iframe{
  height:min(var(--report-form-height,24rem),calc(var(--report-viewport-height,100dvh) - max(12px,env(safe-area-inset-top)) - var(--report-header-height) - 2px));
}
.report-page--embedded.report-page--sheet{
  box-sizing:border-box;padding:16px 16px calc(16px + env(safe-area-inset-bottom));
}
.report-close-mobile,.report-submission-copy{display:none}
.report-page--sheet .report-close-desktop{display:none}
.report-page--sheet .report-close-mobile{display:inline-flex;align-items:center;gap:6px;min-height:44px}
.report-page--sheet .report-dialog-actions,
.report-page--standalone .report-dialog-actions{justify-content:flex-end}
.report-page--sheet .report-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.report-page--sheet .report-dialog-actions > *{justify-content:center}
.report-page--sheet textarea{font-size:1rem}
.report-page--sheet .report-dialog-actions > a,
.report-page--sheet a[target="_blank"]{font-weight:400}
.report-page--sheet .report-content--submitted{display:grid;gap:12px}
.report-page--sheet .report-content--submitted > :is(p,.platform-dialog-heading){margin:0}
.report-page--sheet .report-content--submitted > a{justify-self:start}
.report-page--sheet .report-submission-copy{display:block}
.report-submission-copy p{margin:.4em 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
@media (max-width: 800px), (hover: none) and (pointer: coarse){
  .report-page--standalone dialog.platform-dialog{
    inset:auto 0 0;width:min(100%,42rem);max-width:none;margin:0 auto;
    padding:16px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius:var(--room-radius-panel) var(--room-radius-panel) 0 0;
  }
  .report-page--standalone .report-close-desktop{display:none}
  .report-page--standalone .report-close-mobile{display:inline-flex;align-items:center;gap:6px;min-height:44px}
  .report-page--standalone .report-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .report-page--standalone .report-dialog-actions > *{justify-content:center}
  .report-page--standalone .report-dialog-actions > a,
  .report-page--standalone a[target="_blank"]{font-weight:400}
  .report-page--standalone .report-content--submitted{display:grid;gap:12px}
  .report-page--standalone .report-content--submitted > :is(p,.platform-dialog-heading){margin:0}
  .report-page--standalone .report-content--submitted > a{justify-self:start}
  .report-page--standalone .report-submission-copy{display:block}
  .report-page--standalone textarea{font-size:1rem}
}
