/* AURADO V4.1 Unified Scrim Upload: responsive, high-legibility admin workflow */
#scrimsTab{grid-template-columns:minmax(0,1fr);min-width:0;align-items:stretch}
#scrimsTab>*{min-width:0}
.unified-panel{grid-column:1/-1;max-width:100%;overflow:hidden;padding:clamp(16px,3vw,32px)!important}
.unified-panel :is(input,select,button){max-width:100%;min-width:0}
.unified-head h2{font:800 clamp(36px,5.5vw,65px)/1.08 'Barlow Condensed',sans-serif;letter-spacing:.02em;margin:10px 0}
.unified-head em{font-style:normal;color:#fc4566}
.unified-head p{max-width:760px;margin:0 0 18px;line-height:1.65}
.unified-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:22px 0 28px}
.unified-steps span{border-top:2px solid #e03455;padding:13px 5px 8px;color:#eee1e6;font-size:10px;letter-spacing:.08em;font-weight:800;line-height:1.5}
.unified-message{min-height:22px;margin-bottom:16px;overflow-wrap:anywhere;font-size:13px;line-height:1.5;color:#cfc7d1}
.unified-message.ok{color:#99e6b8}.unified-message.error{color:#ff929f}
.unified-draft-bar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;border:1px solid #493944;border-radius:9px;padding:14px;background:#120f16;margin:0 0 30px}
.unified-draft-bar label{flex:1 1 260px}.unified-draft-bar .ghost{min-height:44px}
.unified-heading{display:flex;align-items:start;gap:14px;margin:34px 0 15px;border-bottom:1px solid #ffffff25;padding-bottom:15px}
.unified-heading>span{color:#f54167;font:800 42px/1 'Barlow Condensed';flex:none}
.unified-heading h3{color:#fff;font:800 27px/1.1 'Barlow Condensed';letter-spacing:.03em;margin:0 0 6px}
.unified-heading p{font-size:12px;line-height:1.6;margin:0;color:#bcb3c0}
.unified-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.unified-drop{border:1px dashed #f04165;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:30px 15px;min-height:145px;border-radius:12px;background:linear-gradient(120deg,#311724,#21151e)}
.unified-drop strong{color:#fbe5eb;font-size:clamp(15px,2.4vw,23px);letter-spacing:.035em;line-height:1.3;overflow-wrap:normal}
.unified-drop small{color:#cbbdc4;font-size:12px;letter-spacing:0;line-height:1.6}.unified-drop.drag{background:#4f2733}
.unified-map-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:14px;margin:20px 0}
.unified-map-card{min-width:0;border:1px solid #55434e;background:#121017;display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;padding:12px;border-radius:11px}
.unified-map-preview{position:relative;align-self:start}.unified-map-preview img{width:100%;height:130px;object-fit:contain;background:#09090d;border-radius:5px}.unified-map-preview>span{display:block;color:#f8afbf;font-size:11px;margin:6px 0}
.unified-map-info{min-width:0}.unified-map-info>strong{font:700 13px/1.4 'DM Sans',sans-serif;overflow-wrap:anywhere;display:block}.unified-map-info>small{color:#bfaeb9;font-size:10px}
.unified-map-fields{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.unified-map-fields label{font-size:10px}.unified-map-fields :is(input,select){padding:10px 8px;font-size:13px}
.unified-map-fields .unified-side-confirm{display:flex;align-items:center;gap:8px;line-height:1.4;padding:3px;font-size:10px;color:#fbb7c3;letter-spacing:0}
.unified-side-confirm input{width:18px;min-width:18px;height:18px;flex:none}
.unified-remove{margin-top:12px;min-height:38px;font-size:10px}
.unified-scanbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0 25px}
.unified-scanbar button{min-height:48px;max-width:100%;white-space:normal;line-height:1.5;overflow-wrap:normal}
.unified-scanbar span{color:#d5c5cd;font-size:12px;min-width:0;overflow-wrap:anywhere}
.unified-review{display:grid;gap:18px;min-width:0}
.unified-review-map{min-width:0;border:1px solid #4b3d49;border-radius:12px;background:#110f15;padding:15px}
.unified-review-map header{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.unified-review-map header strong{display:block;color:#fff;font-size:14px;overflow-wrap:anywhere}
.unified-review-map header small{display:block;font-size:11px;color:#c5afbc;line-height:1.6;margin-top:5px}
.unified-review-map header button{min-height:43px}
.unified-table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;border:1px solid #56434c;border-radius:7px}
.unified-review table{border-collapse:collapse;width:100%;min-width:780px;table-layout:fixed}
.unified-review :is(td,th){border-bottom:1px solid #ffffff1c;padding:9px 7px;text-align:left;vertical-align:top}
.unified-review th{background:#221720;color:#ffc4d0;font-size:9px;letter-spacing:.07em;white-space:nowrap}
.unified-review td:nth-child(1){width:180px}.unified-review td:nth-child(2){width:142px}.unified-review td:nth-child(3),.unified-review td:nth-child(4),.unified-review td:nth-child(5){width:72px}
.unified-review td :is(input,select){padding:10px 7px;font-size:12px;min-height:40px}
.unified-review [data-rfield="ign"]{width:100%;font-weight:600}.unified-row-id{display:inline-block;opacity:.6;margin-right:6px;font-size:10px}
.unified-alias-hint{display:block;color:#ffa5b6;font-size:9px;line-height:1.55;margin-top:6px;overflow-wrap:anywhere}.unified-alias-hint.is-verified{color:#79edb3}
.unified-verify-row{display:flex;align-items:center;gap:5px;font-size:10px;letter-spacing:0;white-space:nowrap}.unified-verify-row input{width:17px!important;min-width:17px!important;height:17px;min-height:17px!important}
.unified-review [data-remember]{font-size:10px;white-space:normal;min-height:42px;width:100%;padding:8px 5px;line-height:1.3;overflow-wrap:normal}
.unified-summary{padding:16px;background:#191720;border-left:3px solid #ff426a;border-radius:4px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.unified-check{display:flex;align-items:flex-start;gap:10px;letter-spacing:0;font-size:13px;font-weight:500;line-height:1.6;margin:15px 0}
.unified-check input{width:19px;min-width:19px;height:19px;flex:none;margin:1px 0}
.unified-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px;margin:16px 0}
.unified-actions button{min-height:54px;white-space:normal;overflow-wrap:normal;line-height:1.5}
.unified-legacy{grid-column:1/-1}.unified-legacy>summary{color:#e8c2cb;cursor:pointer;font-weight:800;font-size:12px;letter-spacing:.07em;line-height:1.5}
.unified-legacy p{font-size:13px;margin:12px 0}.unified-legacy form{margin-top:18px}
.unified-preview-dialog{border:1px solid #7d4054;border-radius:10px;padding:16px;max-width:min(96vw,1200px);max-height:92vh;background:#0d0d12;color:#fff}
.unified-preview-dialog::backdrop{background:#000e}.unified-preview-dialog img{display:block;max-width:100%;max-height:78vh;object-fit:contain;margin:12px auto}
/* Screen-level fixes: avoid breaking words and vertically stacked buttons on narrow phones. */
@media(max-width:760px){
 .unified-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .unified-map-cards{grid-template-columns:minmax(0,1fr)}
 #dashboard>.tabs{flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding-bottom:9px}
 #dashboard>.tabs>button{flex:none;min-width:max-content;scroll-snap-align:start}
 .v38-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-items:stretch!important}
 .v38-actions button{width:100%!important;min-width:0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.5!important;padding:12px!important;min-height:48px!important}
 .v38-actions span{grid-column:1/-1;overflow-wrap:anywhere}
 .v37-stats-table{overflow-x:auto!important;max-width:100%!important}
 .v37-stats-row,.v37-stats-head{min-width:300px!important}
 .v36-map-row :is(input,select), .v36-field-grid :is(input,select){min-width:0;width:100%}
}
@media(max-width:560px){
 .wrap{padding:16px 12px!important;max-width:100%}
 .top{padding:13px 12px;gap:6px;align-items:center}
 .top .logo{font-size:22px}.top .logo small{font-size:8px;letter-spacing:.04em;display:block}
 .top-actions{gap:5px}.top-actions .ghost{font-size:10px;padding:9px 7px}
 .panel{padding:16px 12px;border-radius:12px}
 .unified-panel{padding:16px 12px!important}
 .unified-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:18px 0}
 .unified-steps span{font-size:9px}
 .unified-draft-bar{padding:10px}
 .unified-draft-bar button{flex:1 1 auto;font-size:10px;white-space:normal}
 .unified-fields{grid-template-columns:minmax(0,1fr)}
 .unified-map-card{grid-template-columns:minmax(0,1fr)}
 .unified-map-preview img{height:165px}
 .unified-map-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .unified-scanbar{display:grid;grid-template-columns:minmax(0,1fr);gap:11px}
 .unified-scanbar button{width:100%}
 .unified-review-map{padding:10px}
 .unified-review-map header{display:grid;grid-template-columns:1fr}
 .unified-review-map header button{width:100%}
 .unified-review table{min-width:750px}
 .unified-actions{grid-template-columns:minmax(0,1fr)}
 .unified-head h2{font-size:clamp(32px,10vw,46px)}
 .unified-heading h3{font-size:23px}
 .v38-drop{padding:20px 12px!important}
 .v38-drop>strong{font-size:clamp(14px,4vw,18px)!important;word-break:normal!important;overflow-wrap:normal!important}
 .v38-drop span{overflow-wrap:normal!important}
}
@media(prefers-reduced-motion:reduce){.unified-panel *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* AURADO V4.2: clear automatic-scan readiness + compact mobile verification cards. */
.unified-map-state{margin-top:9px;border:1px solid #755460;border-radius:7px;padding:8px 10px;color:#ffc6d2;background:#302029;font-size:11px;font-weight:800;letter-spacing:.02em;line-height:1.5;overflow-wrap:anywhere}
.unified-map-state.ready{border-color:#b68e35;color:#ffe6aa;background:#30281e}
.unified-map-state.done{border-color:#267e55;color:#92edbb;background:#153026}
.unified-map-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.unified-map-actions button{flex:1 1 140px;min-height:44px;margin:0!important;padding:10px 12px!important;white-space:normal;overflow-wrap:normal;line-height:1.35;text-align:center}
.unified-scanbar button{flex:0 1 auto}
.unified-scanbar button:disabled,.unified-map-actions button:disabled{opacity:.55}
@media(max-width:760px){
 .unified-review-map{padding:13px!important;border-radius:12px}
 .unified-table-scroll{overflow-x:visible;border:0;border-radius:0;max-width:100%;}
 .unified-review table{display:block;width:100%;min-width:0!important;table-layout:auto;}
 .unified-review thead{display:none;}
 .unified-review tbody{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;}
 .unified-review tr[data-urow]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px 12px;border:1px solid #57414c;border-radius:12px;background:linear-gradient(135deg,#22161e,#141118);min-width:0}
 .unified-review tr[data-urow] td{display:block;box-sizing:border-box;min-width:0!important;width:auto!important;padding:0!important;border:0!important;}
 .unified-review tr[data-urow] td::before{content:attr(data-label);display:block;font-size:10px;color:#ffc3d1;font-weight:800;letter-spacing:.065em;line-height:1.35;margin-bottom:7px;overflow-wrap:normal}
 .unified-review tr[data-urow] td:nth-child(1),.unified-review tr[data-urow] td:nth-child(2){grid-column:1/-1;}
 .unified-review tr[data-urow] td:nth-child(6){grid-column:span 1;}
 .unified-review tr[data-urow] td:nth-child(7){grid-column:span 2;}
 .unified-review tr[data-urow] td :is(input,select){box-sizing:border-box;width:100%!important;max-width:100%;min-width:0!important;font-size:14px!important;padding:11px 10px!important;min-height:46px!important;color:#fff;}
 .unified-review tr[data-urow] td:nth-child(3) input,.unified-review tr[data-urow] td:nth-child(4) input,.unified-review tr[data-urow] td:nth-child(5) input{text-align:center;font-size:16px!important;font-weight:700;padding:10px 5px!important;}
 .unified-review tr[data-urow] td:nth-child(1) input{display:block;}
 .unified-review tr[data-urow] td:nth-child(1) .unified-row-id{display:none}
 .unified-review .unified-verify-row{display:flex;align-items:center;justify-content:flex-start;min-height:46px;white-space:normal;font-size:12px;line-height:1.2;letter-spacing:0;padding:4px 2px;}
 .unified-review .unified-verify-row input{width:20px!important;min-width:20px!important;min-height:20px!important;height:20px!important;flex:none;padding:0!important;margin:0 6px 0 0}
 .unified-review [data-remember]{height:auto;min-height:46px;padding:10px!important;font-size:11px!important;line-height:1.3}
 .unified-review .unified-alias-hint{font-size:11px;line-height:1.5;padding-top:4px;}
 .unified-review-map header button{width:100%;white-space:normal;overflow-wrap:normal}
 .unified-heading{margin-top:26px}
 .unified-map-state{font-size:11px}
}
@media(max-width:360px){
 .unified-review-map{padding:9px!important}
 .unified-review tr[data-urow]{gap:7px;padding:11px 8px}
 .unified-review tr[data-urow] td::before{font-size:9px;letter-spacing:0}
 .unified-review tr[data-urow] td :is(input,select){padding:9px 7px!important;font-size:13px!important}
 .unified-review [data-remember]{font-size:10px!important;padding:9px 4px!important}
}
/* Prevent inherited full-width input styling from distorting confirmation checkboxes. */
@media(max-width:760px){
 .unified-review tr[data-urow] td:nth-child(6),.unified-review tr[data-urow] td:nth-child(7){grid-column:1/-1;}
 .unified-review tr[data-urow] .unified-verify-row{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:10px;width:100%;white-space:nowrap;word-break:normal;overflow-wrap:normal;letter-spacing:0;font-size:13px;}
 .unified-review tr[data-urow] .unified-verify-row input[type="checkbox"]{display:block;appearance:auto;width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;flex:0 0 20px;padding:0!important;margin:0!important;}
}
