:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18342f;background:#f4f5f1;font-size:14px;--green:#136c57;--line:#dfe5df;--muted:#74827c}*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}button,input,textarea{font:inherit}button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 12px;color:#254d42;cursor:pointer}button:hover{background:#eef4ef}button:disabled{opacity:.45;cursor:default}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#105543}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:28px;letter-spacing:-1px;font-weight:600}h2{font-size:20px;letter-spacing:-.4px}p{line-height:1.6}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:var(--muted);margin-bottom:12px}.small{font-size:11px;line-height:1.6}.muted{color:var(--muted)}header{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:white}.brand{display:flex;gap:10px;align-items:center;font-size:25px;text-decoration:none;color:#174c3c}.brand strong{font-size:19px}.brand span{font-size:12px;color:var(--muted);margin-left:8px;border-left:1px solid var(--line);padding-left:16px}.header-actions{display:flex;gap:10px;align-items:center}.pill{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:30px;padding:7px 10px;font-size:11px;white-space:nowrap}.safe{color:#267956;background:#eff8ee;border-color:#d4e7d2}.workspace{display:grid;grid-template-columns:220px minmax(360px,1fr) 340px;min-height:calc(100vh - 76px)}.sidebar{padding:28px 18px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#f8f9f5}.upload-button{display:block;background:var(--green);color:white;padding:12px;border-radius:9px;cursor:pointer;text-align:center;font-weight:600}.job{display:block;width:100%;text-align:left;margin:10px 0;background:transparent;border-color:transparent;overflow:hidden}.job.active{background:#e7eee6;border-color:#d2dfd2}.job strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.job small{display:block;color:var(--muted);margin-top:5px}.sidebar-foot{margin-top:auto;padding-top:35px;font-size:11px;color:var(--muted)}.sidebar-foot strong{color:#51685d}.sidebar-foot p{margin-top:6px}main{padding:30px 28px;min-width:0}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-title h1{font-size:24px;margin-bottom:24px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:16px;border-bottom:1px solid var(--line);flex-wrap:wrap}.toolbar button{font-size:11px;padding:8px;border:0;background:transparent}.toolbar .selected{background:#e1eadf;color:#164c39}.danger{color:#97604e!important}.empty{min-height:440px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted);padding:30px}.empty h2{color:#38584b;margin-top:22px}.paper-icon{width:74px;height:88px;background:white;box-shadow:0 5px 15px #244a3510;border:1px solid var(--line);border-radius:9px;font-size:45px;display:grid;place-items:center;color:#5f8e72;transform:rotate(-6deg)}.steps{display:flex;gap:20px;font-size:10px;margin-top:20px;color:#5b7567}.bottom-note{border-top:1px solid var(--line);padding-top:17px;font-size:11px;color:var(--muted);display:flex;gap:10px}.bottom-note span{color:var(--green);font-size:20px}.chat{background:white;border-left:1px solid var(--line);display:flex;flex-direction:column;height:calc(100vh - 76px);position:sticky;top:0}.chat-heading{display:flex;gap:12px;padding:24px;border-bottom:1px solid var(--line)}.chat-heading p{font-size:11px;color:var(--muted);margin:5px 0 0}.avatar{width:36px;height:36px;border-radius:50%;background:#e9f2e6;color:#4b815d;display:grid;place-items:center;font-size:24px}#messages{flex:1;overflow:auto;padding:22px 18px}.welcome{margin:30px 6px}.welcome h2{font-size:18px}.welcome p{font-size:13px;color:var(--muted)}.message{padding:12px 14px;border-radius:10px;margin:0 0 14px;font-size:13px;white-space:pre-wrap;line-height:1.6;background:#f4f6f1;overflow-wrap:anywhere}.message.user{background:#e5f0e8;margin-left:16px}.message.system{background:#faf2df;color:#806b3a;font-size:12px}.message small{display:block;opacity:.6;font-size:10px;margin-bottom:5px}#chat-form{margin:0 16px;border:1px solid var(--line);border-radius:12px;background:#fafbf8}textarea{resize:vertical;width:100%;padding:12px;border:0;background:transparent;outline:none;min-height:85px}.composer-footer{display:flex;justify-content:space-between;padding:8px}#stop{border:0;background:none;font-size:11px}.chat-hint{margin:10px 20px 20px}.snapshot-caption{color:var(--muted);font-size:11px;padding:14px 0}#image-wrap{position:relative;line-height:0;background:#e4e9e0;border:1px solid var(--line);max-height:68vh;overflow:auto}#preview-image{width:100%;display:block}#marks{position:absolute;inset:0;pointer-events:none}.mark{position:absolute;border:2px solid #cb8d12;background:#e6b73d35;border-radius:3px;pointer-events:auto}.mark.derived{border-color:#4285c1;background:#4285c125}#mark-notes{padding:12px 0;font-size:12px;color:#8d6715}#mark-notes p{margin:5px 0}#validation{background:white;border:1px solid var(--line);border-radius:10px;padding:16px;margin:18px 0}#validation strong{display:block;font-size:17px}#validation p{font-size:12px;margin:8px 0 0;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:18px;padding:26px;width:min(560px,94vw);color:#234c3c;max-height:90vh}dialog::backdrop{background:#142c2570;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}dialog section{border-top:1px solid var(--line);padding:22px 0 4px;margin-top:15px}dialog p{color:var(--muted);font-size:12px}label{display:block;font-size:12px;margin:10px 0}input:not([type=file]){display:block;width:100%;border:1px solid var(--line);border-radius:7px;background:white;padding:11px;margin-top:7px;color:#18342f}#device-login{padding:14px;background:#eef5e8;border-radius:9px;margin-bottom:12px}#device-login strong{display:block;font-size:26px;letter-spacing:3px;margin:12px 0}#codex-status,#bettv-status{font-size:12px;margin:10px 0;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:min(600px,90vw);background:#193d31;color:white;border-radius:12px;padding:14px 22px;box-shadow:0 6px 30px #0003;z-index:5}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at top left,#dfead9,transparent 60%),#f4f5ef;padding:24px}.login-card{max-width:460px;width:100%;padding:40px;background:#ffffffd9;border:1px solid #fff;border-radius:22px;box-shadow:0 15px 90px #274e3610}.brand-mark{background:#17684e;color:white;border-radius:13px;font-size:35px;width:54px;height:54px;display:grid;place-items:center;margin-bottom:26px}.login-card h1{font-size:34px;line-height:1.2}.login-card p{color:var(--muted)}.login-card .primary{width:100%;display:flex;justify-content:space-between;padding:12px;margin:18px 0}.login-card small{font-size:11px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}:focus-visible{outline:2px solid #468b69;outline-offset:3px}@media(max-width:1150px){.workspace{grid-template-columns:175px minmax(320px,1fr) 300px}main{padding:24px 18px}.steps{gap:10px}.header-actions .pill{display:none}.brand span{display:none}}@media(max-width:850px){header{padding:0 16px;height:66px}.workspace{display:flex;flex-direction:column}.sidebar{border:0;padding:16px;display:block}.sidebar .eyebrow,.sidebar-foot,.sidebar>.small{display:none}#jobs{display:flex;overflow:auto;gap:6px}.job{min-width:150px;width:150px;margin-bottom:0}.upload-button{margin:0;max-width:220px}.chat{height:540px;position:static;border:0;border-top:1px solid var(--line)}main{padding:12px 16px 24px}.empty{min-height:300px;padding:15px}.empty h2{font-size:17px}.steps{flex-wrap:wrap;justify-content:center}.header-actions button{font-size:11px}.brand{font-size:20px}.brand strong{font-size:16px}.section-title h1{font-size:21px}.login-card{padding:28px}}

.section-title>div{min-width:0}.section-title h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}#preview-scroll{max-height:68vh;overflow:auto}#image-wrap{max-height:none;overflow:visible}

.prepare-bar{margin:16px 0}.prepare-bar p{margin:8px 0}#progress{display:flex;align-items:center;gap:12px;padding:14px;background:#e2efe8;border-radius:9px;margin:12px 0}.spinner{width:16px;height:16px;border:2px solid #b7cfc1;border-top-color:#136c57;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#mode-note{padding:8px 0}.question-card{border:1px solid #d2af55;background:#fff8e8;border-radius:10px;padding:16px;margin:14px 0}.question-card>strong{color:#755115}.question-card p{margin:8px 0}.question-crop{display:block;max-width:100%;max-height:290px;object-fit:contain;border:3px solid #d9ad3a;border-radius:5px;background:white}.candidate-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.question-card form{display:flex;gap:8px}.question-card input{min-width:0;flex:1;padding:10px;border:1px solid #c8cfc7;border-radius:6px}#defaults-panel{border:1px solid #adc6dd;background:#edf5fc;padding:12px;border-radius:8px;margin:12px 0}#defaults-panel summary{cursor:pointer;font-weight:600}#defaults-list p{margin:8px 0;font-size:12px}#progress[hidden]{display:none}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}@media(max-width:600px){.question-card form{flex-direction:column}}

#photo-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:8px 0}.question-zoom{display:block;width:100%;padding:0;border:1px solid #d7c48b;background:white;overflow:hidden;cursor:zoom-in}.question-figure{position:relative;line-height:0;width:100%}.question-figure img{display:block;width:100%;height:auto}.photo-highlight{position:absolute;pointer-events:none;border:3px solid #dfaa13;background:#ffda2f30;box-shadow:0 0 0 1px #60470650}#photo-detail{width:min(1500px,97vw);max-width:97vw;padding:18px}#photo-detail h2{font-size:17px;line-height:1.4;margin-right:20px}#detail-image{overflow:auto;max-height:78vh}#detail-image .question-figure{min-width:1000px}
/* One current report, a central viewer and compact questions. */
.workspace{grid-template-columns:minmax(440px,1fr) 350px;max-width:1600px;margin:auto}.toolbar{position:sticky;top:0;background:#f4f5f1;z-index:2;padding-top:10px}.section-title h1{white-space:normal;font-size:22px;margin-bottom:12px}.prepare-bar{margin:8px 0}.prepare-bar:has(#prepare[hidden]){display:none}#start-screen{max-width:620px;margin:24px auto}#start-screen .upload-button{max-width:250px}#test-photos{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}#questions{flex-shrink:0;max-height:45vh;overflow:auto;padding:0 14px}.question-card{font-size:12px;padding:12px;margin:12px 0}.question-card form{flex-direction:column}.question-zoom{padding:8px;text-align:left;font-size:12px;width:auto;border:0;background:#f4e6bc;cursor:pointer}.chat-heading{padding:16px}#messages{min-height:80px;padding:14px}#context-panel{margin:14px 0;max-height:64vh;overflow:auto}#context-panel>p{font-size:13px}#report-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:16px}#report-actions p{width:100%;margin:0}#corrections{width:min(1050px,96vw)}.correction-tabs{display:flex;gap:8px;margin:12px 0 20px}.correction-tabs .selected{background:#e1eadf}#edit-players{display:grid;grid-template-columns:1fr 1fr;gap:16px}fieldset{border:1px solid var(--line);border-radius:10px;padding:14px;min-width:0}legend{font-weight:600;font-size:13px}select{width:100%;padding:9px;border:1px solid var(--line);border-radius:6px;background:white;font:inherit;color:inherit;margin-top:6px}.scores-table{width:100%;border-collapse:collapse}.scores-table td,.scores-table th{padding:5px;border-bottom:1px solid var(--line)}.scores-table th{text-align:left;font-size:12px}.scores-table input{min-width:48px!important;padding:8px!important;text-align:center}.scores-table th:first-child{width:40%}.correction-photo{display:block;width:100%;margin:18px 0}#edit-details{display:grid;grid-template-columns:1fr 1fr;gap:12px}#edit-details textarea{border:1px solid var(--line);border-radius:6px}#correction-error{color:#a13c26}.empty .steps{display:none}@media(max-width:850px){.workspace{display:flex}#questions{max-height:none}.chat{height:auto;min-height:500px}#messages{max-height:350px}.toolbar{position:static}#edit-players,#edit-details{grid-template-columns:1fr}.scores-table th:first-child{width:30%}.scores-table td,.scores-table th{padding:2px}}

/* The final review always uses a new, case-bound screenshot. */
#final-review{width:min(1000px,96vw)}#final-review h3{margin:18px 0 6px}#review-image{display:block;width:100%;height:auto;border:1px solid var(--line)}#review-image-link{display:block;margin-top:10px}#review-caption{margin-top:20px}#review-additions{margin:12px 0;padding-left:12px;border-left:3px solid #9abbd8}#review-additions:empty{display:none}#review-result{display:block;margin:12px 0}#review-reasons{font-size:13px;padding-left:20px;line-height:1.6}#review-error,#review-stale{color:#92331f;background:#fff2e5;padding:12px;border-radius:8px}.review-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;margin-top:20px}#review-submit-reason{margin-bottom:0}#review-loading{padding:16px;background:#e2efe8;border-radius:8px}@media(max-width:600px){.review-actions button{width:100%}}

#lineup-test{margin-top:14px}

/* Search only narrows the canonical BeTTV options. */
#edit-players>p{grid-column:1/-1;margin-bottom:0}.player-combo{display:block;position:relative}.player-combo input{padding-right:42px}.player-toggle{position:absolute;right:2px;top:2px;border:0;background:transparent;padding:9px 12px}.player-options{display:block;position:absolute;top:100%;left:0;right:0;z-index:10;max-height:230px;overflow:auto;background:white;border:1px solid #97b9a7;border-radius:7px;box-shadow:0 6px 20px #18342f25}.player-option,.player-no-match{display:block;padding:10px 12px;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.player-option{cursor:pointer}.player-option:hover,.player-option[aria-selected=true]{background:#e1efe7}.player-no-match{color:#806b3a}.player-combo input[aria-invalid=true]{border-color:#c99a31}

.workspace.home-view{grid-template-columns:1fr;max-width:1100px}.workspace.home-view>.chat{display:none}#start-screen{margin:35px auto 60px}#current-draft{border:1px solid var(--line);border-radius:12px;padding:24px;background:white}#current-draft h2{line-height:1.4}#test-templates{margin-top:32px;border-top:1px solid var(--line);padding-top:18px}#test-templates summary{cursor:pointer;font-weight:600}#test-templates>p{margin:12px 0}#test-photos{margin-top:12px}.new-report-choice{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.new-report-choice p{margin:8px 0 0}

/* One shared photo viewer and fixed actions for all correction tabs. */
#corrections{width:min(1280px,97vw);height:min(880px,94dvh);max-height:94dvh;padding:20px;overflow:hidden}
#corrections[open]{display:flex;flex-direction:column;gap:12px}
#corrections>.dialog-head{flex:none;gap:12px}#corrections h2{margin:0}
.correction-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none}.correction-navigation .correction-tabs{margin:0;flex-wrap:wrap}
#corrections-form{display:flex;flex-direction:column;min-height:0;flex:1;gap:0}
.correction-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.correction-body:has(#correction-photo-pane:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(280px,43%)}
.correction-fields{min-width:0;overflow:auto;padding:3px 8px 36px 3px;scroll-padding-block:16px}
#correction-photo-pane{min-width:0;overflow:auto;background:#f4f5f1;border:1px solid var(--line);border-radius:10px;padding:10px}#correction-photo-pane>button{position:sticky;top:0;z-index:1}#correction-photo{width:100%;display:block;margin-top:10px;cursor:zoom-in}
.correction-actions{display:flex;flex:none;justify-content:space-between;align-items:center;gap:12px;padding:14px 2px max(4px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white}.correction-actions p{margin:4px 0}.correction-actions .small{display:block}#correction-change-count{font-size:12px;font-weight:600}
.player-confirmation{display:block;padding:10px;margin-top:8px;border:1px solid #d6a938;background:#fff8e6;border-radius:8px}.player-confirmation p{color:#795916;margin:0 0 6px}.player-confirmation label{display:flex;gap:8px;align-items:flex-start;margin:0}.player-confirmation input[type=checkbox]{width:auto;display:inline-block;margin:3px 0;padding:0;flex:none}.player-confirmation.confirmed{border-color:#6a9b7b;background:#edf7ef}
#edit-players>fieldset label{overflow-wrap:anywhere}#edit-scores{overflow-x:auto}.scores-table small{display:block;color:var(--muted);font-weight:400;line-height:1.4}
#correction-photo-dialog{width:min(1200px,98vw);height:95dvh;max-height:95dvh;overflow:hidden;padding:16px}#correction-photo-dialog[open]{display:flex;flex-direction:column;gap:10px}#correction-photo-dialog h2{margin:0}.photo-zoom-label{display:flex;align-items:center;gap:14px;margin:0}.photo-zoom-label input{flex:1;width:auto;margin:0;padding:0}#correction-photo-viewport{flex:1;min-height:0;overflow:auto;touch-action:pan-x pan-y pinch-zoom;background:#eff2ed}#correction-photo-large{display:block;width:100%;max-width:none}
@media(max-width:850px){#corrections{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:12px;top:0}.correction-navigation{align-items:stretch;flex-direction:column}.correction-navigation .correction-tabs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px}.correction-tabs button{font-size:12px;padding:9px 5px}.correction-body:has(#correction-photo-pane:not([hidden])){grid-template-columns:minmax(0,1fr)}#correction-photo-pane{display:none}.correction-actions{gap:6px}.correction-actions>.primary{font-size:13px;max-width:55%;padding:12px 10px}.correction-fields{padding-right:2px}#correction-photo-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;top:0;border-radius:0}.scores-table{min-width:380px}.scores-table th:first-child{min-width:110px}.player-options{max-height:180px}}

@media(max-width:850px){.scores-table{min-width:0;table-layout:fixed}.scores-table tr{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:8px 0;border-bottom:1px solid var(--line)}.scores-table tr>th:first-child{grid-column:1/-1;width:auto;min-width:0}.scores-table th,.scores-table td{border:0;min-width:0;padding:2px}.scores-table tr:first-child th:not(:first-child){text-align:center}.scores-table input{min-width:0!important;width:100%;padding:8px 2px!important}.scores-table small{margin-top:3px}}

/* Review shares the mobile full-screen layout; only the body scrolls. */
#final-review{width:min(1100px,96vw);height:min(1000px,94dvh);max-height:94dvh;overflow:hidden;padding:20px}
#final-review[open]{display:flex;flex-direction:column;gap:12px}
#final-review>.dialog-head{flex:none;gap:12px}#final-review h2{margin:0}
.review-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 3px 16px;overflow-wrap:anywhere}
.review-footer{flex:none;border-top:1px solid var(--line);padding:12px 0 max(4px,env(safe-area-inset-bottom));background:white}
.review-footer .review-actions{margin:0;gap:8px}.review-footer #review-submit-reason{margin:8px 0 0;font-size:12px;color:var(--muted)}
#review-image-link{display:block;width:100%;padding:0;border:0;border-radius:0;background:transparent;cursor:zoom-in;line-height:0}#review-image{display:block;width:100%}
:is(#review-photo-dialog,#guided-photo-dialog){width:min(1200px,98vw);height:95dvh;max-height:95dvh;overflow:hidden;padding:16px}
:is(#review-photo-dialog[open],#guided-photo-dialog[open]){display:flex;flex-direction:column;gap:10px}:is(#review-photo-dialog>.dialog-head,#guided-photo-dialog>.dialog-head){flex:none;gap:10px}:is(#review-photo-dialog h2,#guided-photo-dialog h2){margin:0}
:is(#review-photo-viewport,#guided-photo-viewport){flex:1;min-height:0;overflow:auto;touch-action:pan-x pan-y pinch-zoom;background:#eff2ed}:is(#review-photo-large,#guided-photo-large){display:block;width:100%;max-width:none}
@media(max-width:850px){#final-review,:is(#review-photo-dialog,#guided-photo-dialog){width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;top:0;border-radius:0;padding:12px}#final-review .review-actions{display:grid;grid-template-columns:minmax(0,1fr)}#final-review .review-actions button{width:100%;min-height:44px}#final-review .review-body{padding-inline:0}:is(#review-photo-dialog .dialog-head button,#guided-photo-dialog .dialog-head button){min-height:44px}#review-meta,#review-caption{font-size:12px}}
/* Guided report workspace: one task, one scroll area, persistent actions. */
.guided .workspace{display:block;max-width:1200px;margin:auto}.guided .chat{display:none}.guided #report-view>:not(#guided-progress):not(#identity-panel):not(#engine-info):not(#rebuild-report){display:none!important}
#guided-progress{padding:30px 0}#guided-progress>div{display:flex;flex-wrap:wrap;gap:10px}#guided-error{color:#9b3c18}
.guided #corrections{width:min(1400px,98vw);height:96dvh;max-height:96dvh}
#guided-issue-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;font-size:13px}#guided-issue-nav button{padding:7px 10px;font-size:13px}
.field-question{background:#fff8df!important;border:2px solid #c99115!important}.has-issues{box-shadow:inset 0 -3px #d9a520}.field-warning{font-size:12px;color:#805909;background:#fff8df;padding:6px;border-radius:4px}
.scores-table .player-confirmation{font-size:12px;min-width:0;padding:6px;overflow-wrap:anywhere}.scores-table .player-confirmation label{display:flex}.scores-table .player-confirmation input[type=checkbox]{width:18px!important;height:18px;padding:0!important}
#general-questions .player-confirmation{margin-bottom:12px}#general-questions input{margin-bottom:8px}
.correction-actions #correction-retry{font-size:12px;padding:8px}.correction-actions #correction-error{max-width:480px;color:#a13a18}
@media(max-width:850px){.guided #corrections{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh}#guided-progress{padding:10px 0}.guided .workspace>main{padding:18px}.scores-table td:has(.player-confirmation){grid-column:1/-1;display:grid;grid-template-columns:1fr 3fr;gap:6px}.scores-table td:has(.player-confirmation)>input{align-self:start}.scores-table td:has(.player-confirmation)::before{content:attr(data-set-label);grid-column:1/-1;font-size:12px}.correction-actions:has(#correction-retry:not([hidden])){flex-wrap:wrap}.correction-actions #correction-retry{order:3;width:100%}}
.score-question-row>td{padding:4px 0 12px}.scores-table .score-question-row .player-confirmation{font-size:13px;padding:10px}.score-question-row .player-confirmation>strong{display:block;margin-bottom:4px}.correction-tabs .issue-badge{display:block;font-size:10px;font-weight:600;color:#805909;line-height:1.2;margin-top:3px}
@media(max-width:850px){.scores-table .score-question-row{display:block;padding-top:0}.scores-table .score-question-row>td{display:block;padding:0}.scores-table .score-question-row .player-confirmation{margin-top:0}.correction-tabs button{font-size:11px}}
#guided-loading{margin:18px 0 22px;padding:16px;background:#e5f0e9;border:1px solid #c8dfd0;border-radius:12px}
.loading-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.loading-label>span{display:flex;align-items:center;gap:9px}.loading-label .spinner{display:inline-block;flex:none}.loading-label strong{white-space:nowrap;font-variant-numeric:tabular-nums}
#guided-meter{height:12px;margin-top:14px;overflow:hidden;border-radius:99px;background:#c9dfd3}#guided-meter-fill{position:relative;height:100%;min-width:12px;background:#16705b;border-radius:inherit;transition:width 1s ease;overflow:hidden}
#guided-meter-fill::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 10%,#ffffff55 50%,transparent 90%);animation:loading-shine 1.8s linear infinite;}
#guided-progress-note{font-size:12px;line-height:1.5;color:#456659;margin:10px 0 0}
@keyframes loading-shine{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){#guided-meter-fill{transition:none}#guided-meter-fill::after{animation:none;background:none}}

#review-away-choice{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;padding:10px;background:#fff8e5;border:1px solid #d5b455;border-radius:8px;font-size:14px}#review-away-choice input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:var(--green)}

#guided-step{font-size:14px;font-weight:400;line-height:1.5;color:#456659;margin:10px 0 0}

#guided-photo-open{display:flex;align-items:center;gap:14px;width:100%;max-width:440px;margin:0 0 18px;padding:10px;text-align:left;background:#fff;cursor:zoom-in}
#guided-photo-thumb{display:block;width:72px;height:90px;object-fit:contain;background:#f4f5f1;border:1px solid var(--line);border-radius:4px;flex:none}
#guided-photo-open strong{display:block;font-size:14px;font-weight:500}#guided-photo-open small{display:block;margin-top:6px;color:var(--muted);font-size:12px}

.player-inference{margin:8px 0 16px;padding:10px 12px;border-left:3px solid #6197ad;background:#eef5f8;color:#315466;font-size:.9rem;line-height:1.5}.player-inference[hidden]{display:none}

/* Short explanations first; detailed photo evidence remains available on demand. */
.player-inference>p{margin:0}.player-inference details{margin-top:6px}.player-inference summary,.review-inferences>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px}.player-inference summary::before,.review-inferences>summary::before{content:"▸";flex:none}.player-inference details[open]>summary::before,.review-inferences[open]>summary::before{content:"▾"}.player-inference summary{font-size:.85rem}.player-inference details p{margin:4px 0 0}
#review-additions{padding:0;border:0}.review-inferences{background:#eef5f8;border-left:3px solid #6197ad;color:#315466;padding:0 12px}.review-inferences>summary{font-size:.9rem;font-weight:600}.review-inference-item{padding:10px 0;border-top:1px solid #cddfe7;font-size:.85rem;line-height:1.5}.review-inference-item p{margin:6px 0 0}
@media(max-width:850px){#final-review .review-actions{grid-template-columns:repeat(2,minmax(0,1fr))}#final-review .review-actions button{font-size:13px;padding:9px 8px;min-height:48px}#final-review #review-retry:not([hidden]){grid-column:1/-1;grid-row:1}.review-footer{padding-top:8px}#review-away-choice{font-size:13px;padding:8px;margin-bottom:8px;min-height:44px;align-items:center}.review-footer #review-submit-reason{margin-top:6px}#review-caption{margin-top:12px}#final-review h3{margin-top:8px}}

#report-match-meta{margin:.55rem 0 0;line-height:1.5}.player-confirmation.confirmed{border-color:#9abdb1;background:#f0f7f3}

/* One review card contains the values and its concise explanation. */
.scores-table tbody.sequence-group{background:#fff9e7;outline:1px solid #c7a444;outline-offset:-1px}
.scores-table tbody.sequence-group.sequence-ready{background:#f0f7f3;outline-color:#9abdb1}
.scores-table .sequence-question>td,.scores-table .sequence-question>th{border-bottom:0}
.scores-table .sequence-note,.scores-table .sequence-note.confirmed{border:0;background:transparent;margin:0;padding:4px 8px 10px;box-shadow:none}
.scores-table .sequence-note>p{margin:0;line-height:1.5}
.scores-table .sequence-note details{margin-top:5px;font-size:12px;color:var(--muted)}
.scores-table .sequence-note summary{cursor:pointer;font-size:12px}
.scores-table .sequence-note details p{margin:6px 0 0}
.scores-table label.score-cell-label{display:block;margin:0;font-weight:400}
.scores-table .score-cell-number{display:block;text-align:center;color:var(--muted);font-size:10px;line-height:1.4;margin-bottom:3px}
.scores-table .score-cell-label input{margin:0}
.scores-table .score-cell-label input.field-question{border:2px solid #c69b24;background:#fff2bd;box-shadow:none}
@media(max-width:850px){
 .scores-table thead{display:none}
 .scores-table tbody{display:block;margin:0 0 10px}
 .scores-table tbody.sequence-group{border:1px solid #c7a444;border-radius:9px;outline:0;overflow:hidden}
 .scores-table tbody.sequence-group.sequence-ready{border-color:#9abdb1}
 .scores-table tbody.sequence-group>tr{border:0}
 .scores-table .sequence-question{padding:7px 5px 4px}
 .scores-table .sequence-group .score-question-row{padding:0}
 .scores-table .sequence-group .score-question-row>td{padding:0}
 .scores-table .sequence-group .sequence-note{padding:3px 8px 9px;font-size:12px}
}

.scores-table .sequence-ready .score-cell-label input.field-question{border:1px solid var(--line);background:white}

.player-combo{display:block}.player-value-button{display:flex;width:100%;justify-content:space-between;align-items:center;gap:12px;padding:12px;margin-top:6px;text-align:left;background:white;min-height:48px}.player-change-label{color:#146b57;font-size:12px;text-decoration:underline;flex-shrink:0}.player-choice-card{padding:12px}.player-choice-card>p{font-size:13px}.player-direct-choice{display:flex;justify-content:space-between;align-items:center;width:100%;gap:12px;text-align:left;margin:8px 0;background:white;min-height:44px}.player-direct-choice small{color:#526e64;font-size:11px}.player-direct-choice[aria-pressed=true]{border:2px solid #176c58;background:#e8f3ed}.player-other-choice{background:transparent;text-decoration:underline;border:0;padding:6px 0;min-height:44px}.choice-status:empty{display:none}.choice-status{font-size:12px!important;color:#146b57}#player-picker{width:min(560px,92vw);max-height:85dvh;padding:22px;border-radius:16px}#player-picker .dialog-head{margin-bottom:8px}#player-picker h2{font-size:21px}.picker-search-label{display:block;font-size:13px;margin-top:16px}.picker-search-label input{display:block;width:100%;padding:13px;margin-top:6px;border:2px solid #98b9ac;border-radius:9px;font:inherit;font-size:16px}.picker-results{display:flex;flex-direction:column;gap:7px;max-height:48dvh;overflow:auto}.picker-result{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;background:white;min-height:48px}.picker-result small{font-size:11px;color:var(--muted)}@media(max-width:850px){#player-picker{margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;padding:18px;top:0}.picker-results{max-height:calc(100dvh - 230px)}.player-value-button{padding:10px}}

#player-picker[open]{display:flex;flex-direction:column;height:min(760px,90dvh);max-height:90dvh;overflow:hidden;box-sizing:border-box}#player-picker>.dialog-head,#player-picker>.picker-context,#player-picker>.picker-search-label,#player-picker>p{flex:none}#player-picker .picker-context{display:flex;flex-direction:column;gap:5px;background:#edf4ef;border-left:3px solid #176c58;border-radius:6px;padding:11px 13px;margin:4px 0 0}#player-picker .picker-position{font-size:13px;font-weight:600;color:#326253}#player-picker .picker-team{font-size:17px;line-height:1.4;overflow-wrap:anywhere}#player-picker .picker-results{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}#player-picker .picker-result{flex-shrink:0}@media(max-width:850px){#player-picker[open]{height:100dvh;max-height:100dvh}#player-picker .picker-team{font-size:16px}}

/* Explicit score suggestions preserve the original reading until selected. */
.score-suggestion{margin:12px 0;padding:12px 14px;border-left:3px solid #c99a26;background:#fff8df;border-radius:4px}
.score-suggestion p{margin:6px 0 12px;line-height:1.5}
.score-suggestion button{white-space:normal;min-height:44px;border-color:#b38920;color:#654b10;background:#fff}
.scores-table .score-cell-label input.score-suggested-field{border:2px solid #c99a26;background:#fff8df}

.picker-group{display:flex;flex-direction:column;gap:7px;flex-shrink:0;min-width:0;margin:0 0 10px}
#player-picker .picker-group-title{font-size:13px;line-height:1.4;margin:0;padding:10px 8px;background:#edf4ef;border-radius:5px;color:#326253}
.picker-group .picker-result{width:100%;margin:0;overflow-wrap:anywhere}

/* Pairing conflicts retain the original result row and cannot be accepted. */
.pairing-caption{display:block;font-size:.85rem;color:var(--muted,#64776e);margin-bottom:.25rem}
.pairing-note p{margin:.65rem 0}.pairing-question{background:#fff8e3}.pairing-note{margin-bottom:1rem}

.walkover-note{padding:.7rem 1rem;background:#eef6f9;border-left:3px solid #82aebd;color:#365968;margin:.35rem 0 .8rem}

/* Review context stays attached to the affected fields on wide and narrow screens. */
#edit-details{align-items:start;column-gap:24px;row-gap:20px}#edit-details>label{min-width:0}#edit-details .player-confirmation{margin-top:10px}.pairing-editor{margin-top:12px}.pairing-editor label{display:block;margin-top:10px}.pairing-editor button{width:100%;text-align:left;overflow-wrap:anywhere}.pairing-link{display:block;background:transparent;border:0;color:#946600;text-decoration:underline;font-size:12px;padding:6px 0;text-align:left}.pairing-note>button{margin:4px 8px 4px 0} .correction-tabs button{overflow-wrap:anywhere}
@media(min-width:851px){#edit-details{max-width:1000px}.pairing-editor{max-width:660px}}

.replacement-card{max-width:100%;overflow-wrap:anywhere}
.replacement-card>button{margin:.35rem .5rem .35rem 0;white-space:normal}
.replacement-card label{display:block;margin:.75rem 0}
.replacement-card select{width:100%;max-width:100%;margin-top:.4rem}
.replacement-card .pairing-editor button{white-space:normal;max-width:100%}

/* Keep the work state readable, also in the sticky mobile footer. */
#correction-working{margin:0 0 .35rem;font-weight:600;color:var(--green,#176b58)}
#corrections-form[data-applying="true"] #correction-change-count{display:none}
#corrections-save{display:inline-flex;align-items:center;justify-content:center;gap:.5rem}
#corrections-save:disabled[aria-busy="true"],#corrections-form[data-applying="true"] #corrections-save{opacity:1;background:#236a5b;color:white;cursor:wait}
@media(prefers-reduced-motion:reduce){.spinner{animation:none!important}}

#saved-reports{margin-top:2rem}#saved-reports-list{display:grid;gap:1rem}.saved-report-card{padding:1.2rem;border:1px solid #dce5df;border-radius:12px;background:white}.saved-report-card h3{margin:0 0 .5rem}.saved-report-card a{display:inline-block;margin: .5rem 1rem}.saved-report-card button{margin-top:.5rem}
#corrections-form[data-applying="true"] #corrections-save{flex:none;white-space:nowrap}
#corrections-save .spinner{flex:none}

#identity-panel{margin:18px 0;padding:18px;border:1px solid #c9d4ce;border-radius:14px;background:#f4f8f5}#identity-panel summary{font-weight:700;cursor:pointer}.identity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.identity-grid label{display:grid;gap:6px}.identity-grid input{width:100%;min-width:0;padding:10px;border:1px solid #b9c9bf;border-radius:8px}#engine-info{margin:12px 0}#rebuild-report{margin:0 0 16px}@media(max-width:650px){.identity-grid{grid-template-columns:1fr}}
