* { box-sizing: border-box; }
:root {
  color-scheme: light;
  color: #20323a;
  background: #eef3f4;
  font: 17px/1.55 system-ui, sans-serif;
}
body { margin: 0; }
main { max-width: 1120px; margin-inline: auto; padding: clamp(12px, 4vw, 32px) 0 32px; padding-inline: clamp(12px, 4vw, 32px); }
header { background: #e0edec; border-radius: 16px; padding: clamp(14px, 4vw, 28px); }
.series, #formats, .status, footer { color: #3d5759; font-size: .88rem; }
.series { margin: 0 0 4px; font-weight: 700; }
h1 { margin: 0; font-size: clamp(1.5rem, 6vw, 2.45rem); line-height: 1.23; }
h2 { margin: 0; font-size: 1.35rem; }
header p:last-child { margin: 7px 0 0; }
#formats { margin: 14px 3px 8px; }
.pair { display: grid; gap: 12px; }
.photo-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid #c4d3d4;
  border-radius: 14px;
  background: #fff;
}
.card-heading, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card-heading { justify-content: space-between; margin-bottom: 8px; }
.card-heading h2 { padding-inline: 9px; background: #e0edec; border-radius: 7px; }
button {
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #235b57;
  border-radius: 9px;
  padding: 7px 12px;
  background: #235b57;
  color: #fff;
  font: inherit;
  font-weight: 700;
  overflow-wrap: anywhere;
  cursor: pointer;
}
button.secondary { background: #fff; color: #235b57; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #974814; outline-offset: 3px; }
.frame {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #e8eeee;
}
.frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.empty { margin: 8px; color: #3d5759; }
.error { margin-bottom: 6px; color: #812f25; overflow-wrap: anywhere; font-size: .88rem; }
.error:empty { margin: 0; }
.status { margin: 12px 0 8px; }
footer p { margin: 9px 0; }
dialog { width: min(440px, calc(100% - 24px)); border-radius: 14px; padding: 18px; border: 1px solid #6d8684; color: inherit; }
dialog::backdrop { background: #17292d88; }
[hidden] { display: none !important; }
@media (min-width: 700px) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-card { display: grid; align-content: end; grid-template-rows: auto 1fr auto; padding: 14px; }
}
