.requirements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.requirements article{border:1px solid #b9c7c0;padding:1.2rem;border-radius:10px}.requirements h3{margin-top:0}.prep-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1fr);gap:2rem}.crop-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}fieldset{min-width:0;border:1px solid #b9c7c0;padding:1rem}button,input,select{min-height:44px;max-width:100%}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}.preview-area{min-width:0}canvas,#output{width:100%;height:auto;background:white;border:1px solid #b9c7c0;display:block}#output[hidden],#download[hidden]{display:none}#download{margin:1rem 0}.requirements a{overflow-wrap:anywhere}#status{min-height:3rem}.omr-form input[type=file]{width:100%;font-size:.9rem}.omr-form button{margin-top:.5rem}#source-info,#output-info{overflow-wrap:anywhere}@media(max-width:800px){.requirements,.prep-grid{grid-template-columns:1fr}.omr-main{padding-left:1rem;padding-right:1rem}}

[hidden]{display:none!important}#preview{touch-action:none;cursor:crosshair;max-height:600px;object-fit:contain}input[type=range]{width:100%}summary{cursor:pointer;padding:.8rem 0}#output{max-height:420px;object-fit:contain}.omr-intro h1{font-size:clamp(2rem,5vw,3.6rem)}

#preview{width:auto;max-width:100%;height:auto}footer nav{flex-wrap:wrap}

/* UX-05: Mobile First-Screen Priority for Tool & Inputs */
@media (max-width: 600px) {
  html body header.site-header .site-header-inner {
    padding: 8px 12px !important;
    gap: 6px !important;
  }
  html body header.site-header .brand {
    font-size: 18px !important;
    min-height: 38px !important;
  }
  html body header.site-header nav.site-nav {
    gap: 2px 8px !important;
    row-gap: 2px !important;
  }
  html body header.site-header nav.site-nav a {
    font-size: 11.5px !important;
    min-height: 34px !important;
    padding: 2px 4px !important;
  }
  .omr-main {
    padding-top: 0.5rem !important;
  }
  .omr-intro {
    margin: 0 0 0.5rem !important;
  }
  .omr-intro .eyebrow {
    font-size: 0.72rem !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.2rem !important;
  }
  .omr-intro h1 {
    font-size: 1.45rem !important;
    margin: 0.15rem 0 0.35rem !important;
    line-height: 1.2 !important;
  }
  .omr-intro .lead {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.25rem !important;
  }
  .omr-intro p:last-of-type {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.3rem !important;
    color: var(--nav-muted, #264338);
  }
  #prepare {
    margin-top: 0.4rem !important;
  }
  #prepare h2 {
    font-size: 1.15rem !important;
    margin: 0 0 0.2rem !important;
  }
  #prepare > p {
    font-size: 0.82rem !important;
    margin: 0 0 0.4rem !important;
  }
  .prep-grid {
    gap: 0.8rem !important;
  }
  .omr-form label {
    font-size: 0.85rem !important;
    margin-bottom: 0.15rem !important;
  }
}
