/* The scanned table aligns with the result table width and retains its proportions. */
.scan{width:100%;}
.scan img{display:block;width:100%;height:auto;}
.scan-control{display:block;overflow-x:auto}.scan-preview{width:100%;max-width:none}.scan-preview img{margin:0}.scan-frame{box-sizing:border-box;border:1px solid #cfe0d3;border-radius:6px;overflow:hidden}.scan-frame img{display:block;width:100%;height:auto}.scan-form{width:100%;margin:1rem 0 0}.scan-form input[type=number]{min-width:3.4rem;text-align:center}
.scan-upload-options{border:1px solid #cfe0d3;border-radius:7px;margin:.9rem 0;padding:.25rem .85rem .8rem}.scan-upload-options legend{font-weight:650;padding:0 .3rem}
.scan-form th:last-child,.scan-form td:last-child{border-right:1px solid #cfe0d3}
.managed-scan{display:block;max-width:100%;height:auto;border:1px solid #cfe0d3;border-radius:6px}.remove-scan{margin:1rem 0}
.scan-form tfoot th,.scan-form tfoot td{background:#e5f2e7;border-top:2px solid #a9c6b0;font-weight:750}.scan-form tfoot td{text-align:center;border-right:1px solid #cfe0d3}
.jets-team-controls{display:flex;flex-wrap:wrap;gap:.2rem .45rem;margin-top:.25rem;font-size:.78em;font-weight:500}.jets-team-controls label{display:inline-flex;align-items:center;gap:.15rem;margin:0;white-space:nowrap}.jets-team-controls input{width:auto;min-height:auto;margin:0}.jets-team-tags{display:block;margin-top:.2rem;font-weight:500;color:#526171}.jets-inactive td,.jets-inactive td *{text-decoration:line-through;color:#6b7280}.game-results .jets-inactive td{color:#6b7280;text-decoration:none;background-image:linear-gradient(to bottom,transparent calc(50% - 1px),#6b7280 calc(50% - 1px),#6b7280 calc(50% + 1px),transparent calc(50% + 1px))}.game-results .jets-inactive td *{color:inherit;text-decoration:none}.game-notes{box-sizing:border-box;width:100%;margin:.75rem 0;padding:.85rem 1rem;border:1px solid var(--line);border-radius:8px;background:#fff;color:#115529}.game-notes h2{margin:0 0 .35rem;color:#115529;font-size:1.1rem}.game-notes p{margin:0;color:#115529}
.stats tfoot th,.stats tfoot td{background:#e5f2e7;border-top:2px solid #a9c6b0;font-weight:750}.stats tfoot td{text-align:center;border-right:1px solid #cfe0d3}
.team-matchup{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:.75rem;margin:.8rem 0}.team-matchup span{padding-bottom:.55rem;font-size:1.5rem;font-weight:750}@media(max-width:600px){.team-matchup{gap:.4rem}.team-matchup span{font-size:1.2rem}}
.filter-actions{align-self:start;display:flex;padding-top:calc(.25rem + 1.5em + .25rem)}.game-filter select,.game-filter input,.filter-actions button{height:calc(1.5em + 1.2rem + 2px);min-height:0;box-sizing:border-box}.filter-actions button{width:100%;padding:.6rem .9rem}
@media(min-width:701px){.game-filter .filter-actions{transform:translateY(-4px)}}
.game-actions{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}.game-actions form{margin:0}.game-actions .button{white-space:nowrap}
.scan-actions{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.75rem}.scan-actions .button{white-space:nowrap}
.editor-card .scan-form{margin:0}.espn-prompt-action{text-align:center;margin:1rem 0}.espn-button-row{display:flex;justify-content:center;flex-wrap:wrap;gap:1rem}.espn-button-row p{margin:0}@media(max-width:700px){.espn-button-row{flex-direction:column;align-items:stretch;gap:.6rem}.espn-button-row button{width:100%}}.espn-prompt-action #espn-verification-result{text-align:left;margin-top:.75rem}.espn-comparison-table{width:100%}.espn-diff{background:#fde9c8;font-weight:700}.espn-jets-comparison{margin:.5rem 0;font-size:1em}.espn-jets-comparison label{padding:.35rem .5rem;border-radius:5px}.espn-jets-comparison label.espn-diff{background:#fde9c8;font-weight:700}#apply-espn-verification{margin-top:.5rem}#espn-status-line{margin-top:.5rem}.espn-verified-control{display:inline-block}.espn-verified-control label{display:inline-flex;align-items:center;gap:.4rem;margin:0;font-weight:inherit}.espn-verified-control input{width:auto;min-height:auto;margin:0}.espn-button-row button.is-loading{display:inline-flex;align-items:center;justify-content:center;font-size:0}.editor-actions{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1rem}.editor-actions .delete-form{margin:0}@media(max-width:600px){.editor-actions{align-items:flex-start;flex-direction:column;padding-top:.9rem;border-top:1px solid var(--line)}.editor-actions .delete-form{align-self:flex-end}}
.admin-actions{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}.admin-actions form{margin:0}.admin-actions .button{white-space:nowrap}
.password-field{position:relative;display:block;margin-top:.25rem}.password-field input{margin-top:0;padding-right:2.6rem}.password-field .password-toggle{position:absolute;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;width:2.6rem;min-height:0;padding:0;border:0;border-radius:6px;background:transparent;color:#526171}.password-field .password-toggle:hover,.password-field .password-toggle:focus-visible{background:transparent;color:var(--green)}
.cloud-analysis-text{max-height:13rem;overflow:auto;white-space:pre-wrap;background:#f4faf5;border:1px solid #cfe0d3;border-radius:6px;padding:.75rem;font:inherit}
.game-timestamps{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;margin:.8rem 0;padding:.7rem .85rem;background:#f4faf5;border:1px solid #cfe0d3;border-radius:6px;color:#526171;font-size:.9rem}
.new-scan-preview{margin-top:1rem}.new-scan-preview img{display:block;max-width:100%;max-height:28rem;border:1px solid #cfe0d3;border-radius:6px}
@media(max-width:700px){.filter-actions{padding-top:0;align-self:auto}.filter-actions button{height:auto;width:100%}.scan-upload-options{padding:.25rem .7rem .7rem}.scan-actions,.game-actions,.admin-actions{width:100%}.scan-actions .button,.game-actions .button,.admin-actions .button{flex:1;text-align:center}.editor-actions{margin-top:.85rem}.scan-form input[type=number]{min-width:2.8rem;padding:.5rem .25rem}}@media(max-width:520px){.team-matchup{grid-template-columns:1fr;gap:.25rem}.team-matchup span{justify-self:center;padding:0;font-size:1.25rem}.editor-actions{gap:.65rem}.editor-actions>button,.editor-actions .delete-form,.editor-actions .delete-form button{width:100%}.editor-actions .delete-form{align-self:stretch}.scan-preview h2{font-size:1.2rem}}
.espn-toggle-form{text-align:center;margin-top:.75rem}.espn-toggle-button{padding:1rem 3rem;font-size:1.1rem}
.camera-open{margin:.15rem 0 .55rem}.camera-capture-dialog{width:min(52rem,calc(100vw - 2rem));max-height:calc(100vh - 2rem);border:1px solid var(--line);border-radius:10px;padding:0;background:#fff;color:var(--ink)}.camera-capture-dialog::backdrop{background:#12221999}.camera-capture-panel{padding:1rem}.camera-capture-panel h2{margin:0}.camera-capture-panel video{display:block;width:100%;max-height:min(62vh,34rem);margin:.8rem 0;background:#14271b;border-radius:7px;object-fit:contain}.camera-capture-status{min-height:1.5em;margin:.45rem 0;color:#526171}.camera-capture-actions{display:flex;justify-content:flex-end;gap:.65rem;flex-wrap:wrap}.camera-capture-actions button{min-width:10rem}@media(max-width:700px){.camera-open{display:none!important}.camera-capture-dialog{width:calc(100vw - 1rem);max-height:calc(100vh - 1rem)}.camera-capture-panel{padding:.8rem}.camera-capture-actions{display:grid;grid-template-columns:1fr}.camera-capture-actions button{width:100%}}
