:root { color-scheme: light; font-family: Arial, sans-serif; color: #000; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1800px; margin: auto; padding: 20px 28px; }
header, nav, .controls { display: flex; align-items: center; gap: 20px; }
header { justify-content: space-between; flex-wrap: wrap; }
h1 { font-size: 24px; margin: 0; font-weight: 400; }
a { color: #000; }
button, input { font: inherit; color: #000; background: #fff; border: 1px solid #000; border-radius: 0; padding: 10px 14px; min-height: 44px; }
button { cursor: pointer; }
button:disabled { cursor: wait; border-style: dashed; }
:focus-visible { outline: 3px solid #000; outline-offset: 4px; }
#login { max-width: 360px; margin: 64px auto; display: grid; gap: 12px; }
input { width: 100%; }
.pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; margin-top: 22px; }
figure { margin: 0; min-width: 0; text-align: center; }
figcaption { font-size: 28px; margin-bottom: 12px; }
img { display: block; width: 100%; height: calc(100dvh - 250px); min-height: 160px; max-height: 1100px; object-fit: contain; }
.controls { justify-content: center; margin-top: 20px; }
#status { text-align: center; min-height: 1.25em; margin: 12px 0 0; }
[hidden] { display: none !important; }
:fullscreen { background: #fff; }
@media (max-width: 600px) {
  main { padding: 16px 12px; }
  header, nav { gap: 12px; }
  h1 { font-size: 22px; }
  .pair { gap: 12px; margin-top: 24px; }
  figcaption { font-size: 24px; }
  img { height: calc(100dvh - 270px); min-height: 220px; }
  .controls { position: sticky; bottom: 0; background: #fff; padding: 12px 0; margin-top: 8px; }
}
