/* Shared photo leaderboard importer; the existing blue/charcoal calculator palette remains intact. */
#do-app .do-screen-import{margin:16px 14px 20px;padding:18px;background:linear-gradient(150deg,#182b43,#101b2e);border:1px solid #806843;border-radius:7px;color:#eee3ce}
#do-app .do-screen-import[hidden],#do-app [data-review][hidden]{display:none!important}
#do-app .do-screen-import h3{font-size:1.18rem;margin:0 0 6px;color:#f0d5a1}
#do-app .do-screen-import h4{font-size:1.08rem;margin:14px 0 6px;color:#f0d5a1}
#do-app .do-import-help{color:#bfcbd7;font-size:.94rem;margin:7px 0 12px;line-height:1.5}
#do-app .do-import-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px;margin:12px 0}
#do-app .do-import-choices label{border:1px solid #405671;background:#122139;border-radius:5px;padding:12px;gap:10px}
#do-app .do-import-choices label input[type=file]{background:#0c1b2e;max-width:100%;font-size:.9rem;padding:10px;border:1px dashed #8e805f;cursor:pointer}
#do-app .do-import-choices p{align-self:center;color:#c8d0dd;font-size:.9rem;margin:0}
#do-app .do-import-progress{min-height:1.4em;color:#f2d29a;margin:10px 0;word-break:break-word}
#do-app .do-import-summary{color:#e7d4b3;margin:4px 0 10px}
#do-app .do-import-table-scroll{overflow-x:auto;max-height:520px;overflow-y:auto;border:1px solid #465972;border-radius:4px;background:#0e1a2c}
#do-app table.do-import-table{min-width:660px;width:100%;border-collapse:collapse;background:transparent;table-layout:fixed}
#do-app .do-import-table thead th{position:sticky;top:0;z-index:2;background:#1c344f;color:#f0dbad;font-size:.88rem;text-align:left;padding:9px}
#do-app .do-import-table th:nth-child(1){width:29%}
#do-app .do-import-table th:nth-child(2){width:150px}
#do-app .do-import-table th:nth-child(3){width:auto}
#do-app .do-import-table th:nth-child(4){width:95px}
#do-app .do-import-table td{padding:7px;text-align:left;vertical-align:top;border-bottom:1px solid #30435b}
#do-app .do-import-table td input,#do-app .do-import-table td select{font-size:.94rem;width:100%;max-width:100%;min-width:0;background:#091626;color:#f6eadb}
#do-app .do-import-table tr.do-import-overlap{opacity:.62}
#do-app .do-import-table td .do-import-status{display:block;line-height:1.3;margin:4px 0;color:#b9c9de;font-size:.78rem}
#do-app .do-import-avatar{width:46px;height:46px;object-fit:cover;border:1px solid #b79967;border-radius:4px;margin-top:5px;display:block}
#do-app .do-import-table td .do-import-skip{font-size:.75rem;padding:5px 8px;margin-top:4px}
#do-app .do-import-start{margin:8px 0 12px;padding:8px 11px;border:1px solid #405671;border-radius:4px}
#do-app .do-import-start summary{cursor:pointer;color:#e8d19e}
#do-app .do-import-start-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-top:12px}
#do-app .do-import-start-grid label{font-size:.88rem}
#do-app .do-import-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:14px 0 0}
#do-app .do-import-actions [data-apply]{margin-left:auto;border-color:#a68b58;font-weight:700}
#do-app .do-import-actions [data-apply]:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
#do-app .do-import-actions [data-cancel]{background:#30293a;border-color:#866755}
@media(max-width:700px){#do-app .do-screen-import{margin:10px 6px;padding:12px}#do-app .do-import-actions [data-apply]{width:100%;margin:0}#do-app .do-import-table-scroll{max-height:60vh}}
@media(prefers-reduced-motion:reduce){#do-app .do-screen-import *,#do-app .do-screen-import *::before{transition:none!important}}
/* The worksheet turns into player cards on phones; the OCR review must remain
   a horizontally scrollable spreadsheet instead of inheriting those card rules. */
@media(max-width:900px){
 #do-app .do-sheet .do-import-table tbody tr{display:table-row!important}
 #do-app .do-sheet .do-import-table tbody td{display:table-cell!important;flex:none!important;vertical-align:top;min-width:0;max-width:none;text-align:left;padding:7px!important;border-bottom:1px solid #30435b!important}
 #do-app .do-sheet .do-import-table tbody td:last-child{display:table-cell!important;width:auto;align-self:auto}
 #do-app .do-sheet .do-import-table tbody td::before{content:none!important;display:none!important}
}
#do-app .do-import-refs{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
#do-app .do-import-ref{font-size:.7rem;color:#d5c4a1;text-align:center;display:inline-flex;flex-direction:column;align-items:center;gap:2px}
#do-app .do-import-ref img{width:38px;height:38px;object-fit:cover;border:1px solid #b79967;border-radius:3px}
