/* Alliance Duel screenshot import — matches KtWR Command Centre dark theme */
.duel-ocr-panel{border:1px solid #655436;border-radius:15px;background:linear-gradient(140deg,#202b34,#17222f);padding:19px;margin:0 0 18px}
.duel-ocr-intro{display:flex;align-items:start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:13px}
.duel-ocr-intro h3{font-size:18px;margin:0 0 6px;color:#ffe7b2}
.duel-ocr-intro p{font-size:12px;color:#aab9c7;max-width:620px;line-height:1.6;margin:0}
.duel-ocr-file-input{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.duel-ocr-file-input input{max-width:100%;font:inherit;font-size:12px;color:#dae4ed;background:#101b27;border:1px dashed #8b774b;padding:10px;border-radius:10px}
.duel-ocr-file-input .button{min-height:40px}
.duel-ocr-file-list{display:grid;gap:8px;margin-top:15px}
.duel-ocr-file{display:grid;grid-template-columns:minmax(140px,1.4fr) minmax(135px,1fr) minmax(110px,1fr);gap:10px;align-items:center;border:1px solid #344559;border-radius:9px;padding:9px 12px;background:#131f2c;font-size:12px}
.duel-ocr-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
.duel-ocr-file label{display:flex;align-items:center;gap:8px;color:#a8bbcc;font-size:11px}
.duel-ocr-file input{min-width:0;width:145px;max-width:100%;background:#0c1722;border:1px solid #435166;color:#f4f7fa;padding:7px;border-radius:7px;color-scheme:dark;font:inherit}
.duel-ocr-file-state{color:#c5d0db;font-size:11px;overflow-wrap:anywhere}
.duel-ocr-status{font-size:12px;line-height:1.6;color:#a9d7c6;padding:10px 0 0;min-height:28px}
.duel-ocr-status.error,.duel-ocr-warn{color:#ffc2a7}
.duel-ocr-review{margin-top:17px}
.duel-ocr-review-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.duel-ocr-review-head h4{margin:0;font-size:15px}
.duel-ocr-tip{font-size:12px;line-height:1.6;color:#aab8c6;margin:9px 0}
.duel-ocr-table{width:100%;border-collapse:collapse;font-size:12px}
.duel-ocr-table thead th{text-align:left;padding:10px 8px;color:#a6b9cc;white-space:nowrap;border-bottom:1px solid #425166}
.duel-ocr-table tbody td{border-bottom:1px solid #344255;padding:9px 8px;vertical-align:middle}
.duel-ocr-table tr.needs-review{background:#65412735}
.duel-ocr-table tr.clash{background:#614d1d25}
.duel-ocr-table tr.skipped{opacity:.6}
.duel-ocr-table .field{width:100%;min-width:135px;min-height:37px;padding:7px 9px;background:#0d1723;color:#fff;border:1px solid #465668;border-radius:8px;box-sizing:border-box}
.duel-ocr-table input[type="number"]{min-width:140px;font-variant-numeric:tabular-nums}
.duel-ocr-table td small{display:block;color:#8fa2b5;margin-top:5px}
.duel-ocr-file-mini{display:block;max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duel-ocr-match{color:#a6e8cb}
.duel-ocr-confirm{display:flex;align-items:flex-start;gap:9px;margin:14px 0 5px;font-size:12px;color:#d4e1ea;line-height:1.5;cursor:pointer}
.duel-ocr-confirm input{margin-top:2px;flex:0 0 auto;accent-color:#d9ab5c}
.duel-ocr-actions{display:flex;justify-content:flex-end;margin-top:15px}
.duel-ocr-actions button:disabled,.duel-ocr-file-input button:disabled{opacity:.5;cursor:wait}
@media(max-width:720px){
.duel-ocr-panel{padding:15px 12px}
.duel-ocr-file{grid-template-columns:1fr;gap:7px}
.duel-ocr-file label{justify-content:space-between}
.duel-ocr-file-name{max-width:100%}
.duel-ocr-review .table-wrap{overflow-x:auto}
.duel-ocr-table{min-width:665px}
.duel-ocr-intro h3{font-size:16px}
.duel-ocr-actions .button{width:100%}
}
.duel-ocr-history{margin-top:19px;padding-top:12px;border-top:1px solid #3c4a56;color:#b8cbdc;font-size:12px}
.duel-ocr-history summary{cursor:pointer;font-weight:750;color:#ead6a7}
.duel-ocr-history ul{padding-left:18px;line-height:1.8}

.duel-ocr-lang{display:flex;align-items:center;gap:9px;color:#c3d1dc;font-size:12px;line-height:1.5;margin-top:12px}
.duel-ocr-lang input{width:16px;height:16px;accent-color:#d9ab5c}
.duel-ocr-thumb{display:block;max-width:100%;height:auto;margin-top:6px;border-radius:5px;border:1px solid #65768a;background:#d3dbe7}
.duel-ocr-thumb.name{width:240px;min-height:34px;object-fit:contain}
.duel-ocr-thumb.score{width:160px;min-height:34px;object-fit:contain}
.duel-ocr-suggest{display:block;margin-top:5px;padding:4px 7px;background:rgba(214,167,79,.15);color:#f7d697;border:1px solid #80653e;border-radius:6px;text-align:left;cursor:pointer;font-size:11px;max-width:250px;line-height:1.4}
.duel-ocr-suggest:hover{background:rgba(214,167,79,.3)}
.duel-ocr-verify{display:flex;align-items:flex-start;gap:6px;font-size:11px;line-height:1.4;margin-top:6px;color:#e9d9b8}
.duel-ocr-verify input{accent-color:#d9ab5c}
.duel-ocr-muted{color:#9baebd}

/* Batch import v3: make readiness visible on mobile, without blocking other rows. */
.duel-ocr-counts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:11px 0 12px}
.duel-ocr-count{padding:7px 11px;background:#263643;border:1px solid #43596a;border-radius:8px;color:#c5d3dd;font-size:12px;font-weight:750;white-space:nowrap}
.duel-ocr-count.good{background:#19392f;border-color:#36745b;color:#a8edd1}
.duel-ocr-count.attention{background:#3d3025;border-color:#9b7449;color:#ffdda7}
.duel-ocr-saved-summary{margin:14px 0 0;padding:13px;border-radius:9px;background:#173b31;color:#b7eed8;border:1px solid #34765c;font-size:12px;line-height:1.55}
.duel-ocr-saved-summary .duel-ocr-suggest{margin-top:8px}
.duel-ocr-count+.duel-ocr-count{margin-left:0}

.duel-ocr-apply{width:auto;max-width:100%;font-size:12px;font-weight:750;margin:0 0 12px;padding:9px 12px}
@media(max-width:720px){.duel-ocr-apply{width:100%;max-width:100%}}

/* Reviewable roster reconciliation, never automatic removals */
.duel-ocr-add{margin-top:5px;border-color:#4b8369;background:#1a4534;color:#b8f3d1}
.duel-ocr-add:hover{background:#27664c}
.duel-ocr-roster-box{border-top:1px solid #485767;margin-top:17px;padding:16px 0 7px}
.duel-ocr-roster-box h4{margin:0 0 7px;font-size:15px;color:#f4d9a5}
.duel-ocr-roster-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:9px 0 16px;max-height:220px;overflow-y:auto}
.duel-ocr-roster-item{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:8px 10px;background:#111d2a;border:1px solid #354658;border-radius:8px;font-size:12px;min-width:0;overflow-wrap:anywhere}
.duel-ocr-roster-item .duel-ocr-suggest{margin:0;flex:0 0 auto}
.duel-ocr-roster-alert{border:1px solid #8a744b;background:#4035276b;padding:13px;border-radius:9px;margin:12px 0}
.duel-ocr-roster-alert b{display:block;margin-bottom:7px;color:#f4d89b}
.duel-ocr-roster-alert .duel-ocr-roster-item{margin-top:7px}
@media(max-width:760px){.duel-ocr-roster-list{grid-template-columns:1fr}.duel-ocr-roster-item{flex-wrap:wrap}.duel-ocr-roster-item .duel-ocr-suggest{max-width:100%}}
