/* ElosPlay V2.8 — editor de cartões e fotos próprias */
.v28-edit-row{position:relative}.v28-row-index{align-self:center;font-weight:900}.v28-row-tools{display:flex;gap:6px;align-items:center;justify-content:flex-end;grid-column:1/-1;border-top:1px solid #e3edf0;padding-top:7px}.v28-row-tools button,.v28-toolbar button,.v28-preview-top button{background:#f4fafc;border:1px solid #c4dfe5;color:#164d5b;border-radius:10px;padding:8px 12px;cursor:pointer;font-weight:750;font-size:12px;min-height:36px}.v28-row-tools button:disabled,.v28-toolbar button:disabled{opacity:.45;cursor:not-allowed}.v28-row-tools button:last-child{color:#95504d;border-color:#efd7d4;background:#fff8f7}.v28-upload-label{display:block!important;position:relative;margin-top:5px;padding:8px 10px;text-align:center;background:#f7fafb;border:1px dashed #b3cfd7;border-radius:9px;color:#264a57!important;font-weight:800;font-size:12px!important;cursor:pointer;overflow:hidden}.v28-upload-label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:100px}.v28-upload-label:focus-within{outline:2px solid #2e7d82;outline-offset:2px}.v28-upload-status{display:block;color:#526b75;font-size:11px;min-height:15px;overflow-wrap:anywhere;line-height:1.4}.v28-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border-top:1px solid #e2edf1;padding-top:14px}.v28-toolbar span{font-weight:800;margin-right:auto}.v28-preview[hidden]{display:none!important}.v28-preview{border:1px solid #add8d5;border-radius:16px;background:#f5fcfb;padding:14px;max-width:100%;min-width:0}.v28-preview-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.v28-preview-top strong{font-size:17px}.v28-preview>p{margin:12px 0}.v28-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.v28-preview-card{min-width:0;background:white;border:1px solid #d7e6e9;border-radius:12px;min-height:140px;padding:12px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;text-align:center}.v28-preview-card .v26-pict{font-size:35px;display:grid;place-items:center}.v28-preview-card strong{font-size:14px;overflow-wrap:anywhere}.v28-preview-card .v28-pair-arrow{color:#517e85}.v28-preview>small{display:block;margin-top:10px;color:#60777a;line-height:1.5}.v28-photo img{max-width:100%;max-height:100%;object-fit:contain}
@media(max-width:700px){.v28-toolbar{align-items:stretch}.v28-toolbar span{width:100%;margin-right:0}.v28-toolbar button{flex:1}.v28-row-tools button{min-height:43px}.v28-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:400px){.v28-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v28-row-tools{justify-content:space-between}.v28-row-tools button{flex:1}.v28-toolbar button{min-width:100%}}

@media(min-width:1050px){.v28-edit-row:has([name^="v26MatchIcon"]){grid-template-columns:26px minmax(125px,1fr) minmax(125px,1fr) minmax(125px,1fr) minmax(125px,1fr)}}
@media(min-width:700px) and (max-width:1049px){.v28-edit-row:has([name^="v26MatchIcon"]){grid-template-columns:26px repeat(2,minmax(0,1fr))}.v28-edit-row:has([name^="v26MatchIcon"]) .v27-symbol-edit:last-of-type{grid-column:2/-1}}
/* Layout explícito: cada campo mantém sua coluna e não quebra a edição ao adicionar pares. */
.v26-editor-list>.v26-item-edit.v28-edit-row{grid-template-columns:36px minmax(170px,1fr) minmax(180px,1.35fr);align-items:start}
.v26-editor-list>.v26-item-edit.v28-edit-row:has([name^="v26MatchIcon"]){grid-template-columns:36px minmax(150px,1fr) minmax(140px,1fr) minmax(140px,1fr) minmax(150px,1fr)}
.v28-edit-row>.v28-row-tools{grid-column:1/-1}
.v28-edit-row>.v27-symbol-edit{min-width:0;width:100%}
.v28-edit-row>.v27-symbol-edit .v27-symbol-control{width:100%}
.v28-edit-row>.v27-symbol-edit .v27-symbol-control input{min-width:0;width:100%}
@media(max-width:960px) and (min-width:701px){
 .v26-editor-list>.v26-item-edit.v28-edit-row:has([name^="v26MatchIcon"]){grid-template-columns:36px repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .v26-editor-list>.v26-item-edit.v28-edit-row,
 .v26-editor-list>.v26-item-edit.v28-edit-row:has([name^="v26MatchIcon"]){grid-template-columns:minmax(0,1fr);gap:11px;align-items:stretch}
 .v28-edit-row>.v28-row-index{grid-column:1;width:42px;box-sizing:border-box;padding:8px 0}
 .v28-edit-row>.v28-row-tools{grid-column:1;margin-top:2px}
 .v28-edit-row>.v27-symbol-edit,.v28-edit-row>label{grid-column:1!important;min-width:0}
 .v28-edit-row .v27-symbol-preview{height:54px;width:62px;flex:0 0 62px}
 .v28-edit-row .v27-symbol-control input{min-height:50px}
 .v28-edit-row .v28-upload-label{min-height:45px;display:grid!important;place-items:center}
}
