#eventReviewDialog {
  width: min(940px, 94vw);
  max-width: 100%;
  max-height: min(90dvh, 940px);
  padding: 0;
  border: 1px solid #aec1b3;
  border-radius: 15px;
  background: #fbfcf7;
  color: var(--ink);
  box-shadow: 0 18px 70px #12372d33;
  overflow: hidden;
}
#eventReviewDialog[open] { display: flex; flex-direction: column; }
#eventReviewDialog::backdrop { background: #0c211caf; }
.er-head, .er-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  padding: .75rem 1.2rem; flex: none;
}
.er-head { border-bottom: 1px solid var(--line); }
.er-head small { display: block; overflow-wrap: anywhere; }
.er-head button,.er-toolbar button { flex: none; }
.er-toolbar { border-top: 1px solid var(--line); background: white; }
.er-state { margin: 0; font-size: .86rem; color: #204e41; }
.er-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1.05rem 1.2rem; }
.er-layout { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.4fr); gap: 1.2rem; align-items: start; }
.er-source, .er-review { min-width: 0; }
.er-source {
  padding: .9rem; border-radius: 10px; border: 1px solid var(--line); background: #f1f5ec;
  overflow-wrap: anywhere;
}
.er-source details p,.er-review>p,.er-source>p,.er-note,.er-warning { font-size: .86rem; }
.er-media-actions,.er-class-list { display: flex; flex-wrap: wrap; gap: .42rem; }
.er-media img,.er-media video { display: block; max-width: 100%; max-height: 42vh; margin: .5rem auto; object-fit: contain; }
.er-class-list { margin-bottom: .7rem; }
.er-class-list button { display: grid; min-width: 5rem; gap: .12rem; text-align: left; padding: .48rem .7rem; }
.er-class-list button span { font-size: .78rem; font-weight: normal; }
.er-class-list [aria-pressed=true] { background: #194d3e; color: #fff; border-color: #194d3e; }
.er-current { overflow-wrap: anywhere; padding: .65rem .8rem; background: #eaf1e5; border-left: 3px solid #528365; }
.er-current div,.er-records div { white-space: pre-wrap; }
.er-current small,.er-records small,.er-route-detail>* { display: block; }
.er-records { margin: .65rem 0; padding-inline-start: 1.45rem; overflow-wrap: anywhere; font-size: .89rem; }
.er-records li { margin-block: .55rem; }
.er-flow,.er-route-detail { color: #3e6253; }
.er-class fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.er-class select,.er-class input,.er-class textarea { min-width: 0; }
.er-class select { text-overflow: ellipsis; }
.er-class textarea { resize: vertical; }
.er-warning { border-left: 3px solid #b27c24; padding: .4rem .7rem; color: #754817; }
.er-class details, .er-body>details, .er-source details { margin-top: .8rem; }
.er-filters { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: .55rem; }
.er-route-detail { overflow-wrap: anywhere; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 6px; font-size: .86rem; }
@media(max-width:680px) {
  #eventReviewDialog { width: calc(100% - 12px); max-height: 95dvh; }
  .er-head,.er-toolbar { padding: .6rem .8rem; }
  .er-body { padding: .75rem .8rem; }
  .er-layout { grid-template-columns: minmax(0,1fr); gap: .85rem; }
  .er-filters { grid-template-columns: minmax(0,1fr); gap: 0; }
  .er-toolbar button { padding-inline: .6rem; }
  .er-source { padding: .7rem; }
}
@media print { #eventReviewDialog[open] { display: none; } }
