.evidence-dialog {
  box-sizing: border-box;
  width: min(980px, calc(100vw - 40px));
  height: min(850px, calc(100dvh - 40px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line, #343a35);
  border-radius: 12px;
  background: var(--panel, #101411);
  color: var(--bright, #eef3ed);
  box-shadow: 0 24px 90px #0009;
  overflow: hidden;
}
.evidence-dialog[open] { display: flex; flex-direction: column; }
.evidence-dialog::backdrop { background: #000b; }
.evidence-dialog-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line, #343a35);
  flex: 0 0 auto;
}
.evidence-dialog-header h2 { margin: 0; font: 600 17px/1.4 var(--font-display, system-ui); }
.evidence-dialog-header a { margin-left: auto; font: 12px/1.5 var(--font-display, system-ui); color: var(--green, #bdd9bb); }
.evidence-dialog-close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line, #343a35); border-radius: 6px; background: transparent; color: inherit; font: 24px/1 system-ui; cursor: pointer; }
.evidence-dialog :focus-visible { outline: 2px solid var(--green, #bdd9bb); outline-offset: 3px; }
.evidence-dialog iframe { display: block; width: 100%; min-height: 0; flex: 1 1 auto; border: 0; background: var(--panel, #101411); }
.evidence-dialog-loading { margin: 0; padding: 16px 20px; font: 13px/1.5 var(--font-display, system-ui); }
.evidence-dialog-loading[hidden] { display: none; }
@media (max-width: 600px) {
  .evidence-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 8px; }
  .evidence-dialog-header { gap: 10px; padding: 10px 12px; }
  .evidence-dialog-header h2 { font-size: 15px; }
  .evidence-dialog-header a { font-size: 11px; }
}
