.lcf-pro-app{max-width:1320px;margin:28px auto;padding:28px;background:#fff;border:1px solid #dce7e3;border-radius:22px;box-shadow:0 16px 45px rgba(10,35,30,.08);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#142521}
.lcf-pro-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:22px}.lcf-pro-brand{font-size:12px;font-weight:900;letter-spacing:.12em;color:#087d5e}.lcf-pro-header h2{margin:4px 0 5px;font-size:31px;line-height:1.1}.lcf-pro-header p{margin:0;color:#6b7b76;font-size:15px}.lcf-pro-pill{background:#e6f8f1;color:#087d5e;border-radius:999px;padding:10px 16px;font-weight:900;white-space:nowrap}
.lcf-editors{display:grid;grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);gap:14px;align-items:start}.lcf-editor-card{border:1px solid #d9e5e1;border-radius:17px;background:#fbfdfc;padding:15px}.lcf-editor-top{display:grid;grid-template-columns:1.35fr .8fr;gap:12px;margin-bottom:14px}.lcf-editor-top label{display:block;font-size:12px;font-weight:900;margin:0 0 6px}.lcf-editor-top select{width:100%;box-sizing:border-box;border:1px solid #c9d9d5;background:#fff;border-radius:10px;padding:11px 12px;font:600 14px system-ui;color:#243a35;min-height:44px}.lcf-vs-column{display:flex;flex-direction:column;align-items:center;padding-top:58px;gap:12px}.lcf-vs-badge{font-weight:1000;font-size:16px;color:#6b7b76}.lcf-switch{font-size:24px;color:#0a8062}
.lcf-position-group{background:#fff;border:1px solid #e0e9e6;border-radius:12px;margin:9px 0;overflow:hidden}.lcf-position-head{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid #e7eeec;background:#f7faf9}.lcf-position-head strong{font-size:11px;letter-spacing:.04em}.lcf-position-count{margin-left:auto;font-size:10px;color:#82918d;font-weight:800}.lcf-position-tag{display:inline-flex;align-items:center;justify-content:center;width:30px;height:25px;border-radius:5px;color:#fff;font-size:10px;font-weight:1000}.lcf-pos-por .lcf-position-tag{background:#15986f}.lcf-pos-def .lcf-position-tag{background:#2377c8}.lcf-pos-med .lcf-position-tag{background:#ed9d10}.lcf-pos-del .lcf-position-tag{background:#df3f3f}.lcf-player-row{display:grid;grid-template-columns:22px minmax(0,1fr) 64px 16px;gap:7px;align-items:center;padding:7px 9px;border-bottom:1px solid #edf2f0}.lcf-player-row:last-child{border-bottom:0}.lcf-drag-handle{color:#a0aaa7;font-size:18px;line-height:1;text-align:center}.lcf-player-select{min-width:0;width:100%;box-sizing:border-box;border:0;border-bottom:2px solid #b8d8cc;background:#fff;padding:5px 2px;font:700 13px system-ui;color:#20342f;outline:none}.lcf-pos-def .lcf-player-select{border-bottom-color:#9fc1e4}.lcf-pos-med .lcf-player-select{border-bottom-color:#efc773}.lcf-pos-del .lcf-player-select{border-bottom-color:#eea0a0}.lcf-prob{width:64px!important;box-sizing:border-box;border:1px solid #d0dcd8!important;border-radius:7px!important;padding:7px 5px!important;text-align:center;font:800 13px system-ui!important;background:#fff!important;min-height:34px}.lcf-percent{font-size:12px;font-weight:900;color:#788782}
.lcf-pro-options{display:grid;grid-template-columns:1.5fr .7fr 1fr;gap:14px;margin-top:18px}.lcf-pro-options label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:900}.lcf-pro-options input{width:100%;box-sizing:border-box;border:1px solid #cbd9d5;border-radius:9px;padding:10px;background:#fff;font:600 14px system-ui;min-height:42px}.lcf-pro-actions{display:flex;gap:10px;margin:18px 0}.lcf-btn{border:0;border-radius:11px;padding:13px 18px;font-weight:950;cursor:pointer;font-size:14px}.lcf-generate{background:#0b8666;color:#fff}.lcf-download{background:#132824;color:#fff}.lcf-download:disabled{opacity:.4}.lcf-pro-preview{background:#071719;border-radius:16px;padding:8px;overflow:auto}.lcf-canvas{display:block;width:100%;height:auto;border-radius:10px}.lcf-pro-help{margin-top:10px;padding:11px 13px;border-radius:10px;background:#f3faf7;color:#61736d;font-size:12px;line-height:1.5}.lcf-pro-help strong{color:#146c55}
@media(max-width:1000px){.lcf-editors{grid-template-columns:1fr}.lcf-vs-column{padding:0;flex-direction:row;justify-content:center}.lcf-pro-options{grid-template-columns:1fr}.lcf-editor-top{grid-template-columns:1fr}.lcf-pro-header{flex-direction:column}.lcf-pro-pill{display:none}}

.lcf-team-line{display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px;align-items:center}.lcf-team-line .lcf-team-select{min-width:0}.lcf-team-crest{width:38px;height:38px;border-radius:9px;border:1px solid #d7e4df;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:10px;font-weight:1000;color:#087d5e}.lcf-team-crest img{width:31px;height:31px;object-fit:contain;display:block}
.lcf-player-select{cursor:pointer}.lcf-player-row .lcf-drag-handle{cursor:grab}

.lcf-team-select-wrap{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;align-items:center}
.lcf-team-crest{width:42px;height:42px;border:1px solid #d6e3df;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:11px;font-weight:900;color:#087d5e}
.lcf-team-crest img{width:34px;height:34px;object-fit:contain;display:block}
.lcf-team-select-wrap select{min-width:0}
.lcf-pro-empty{padding:16px;border-radius:10px;background:#fff5e9;border:1px solid #f0d5ae;color:#76532a;font-size:13px;font-weight:700}

.lcf-main-grid{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px;align-items:start}
.lcf-side-card{border:1px solid #dce8e4;border-radius:14px;background:#fff;padding:15px;margin-bottom:12px;box-shadow:0 5px 18px rgba(15,50,42,.04)}
.lcf-side-card h3{margin:0 0 10px;font-size:16px;color:#132824}
.lcf-side-card ol,.lcf-side-card ul{margin:0;padding-left:18px;font-size:12px;line-height:1.65;color:#536761}
.lcf-side-card li{margin-bottom:5px}
.lcf-side-legend div{display:flex;align-items:center;gap:8px;margin:7px 0;font-size:12px;font-weight:700}
.lcf-mini{width:30px;height:23px;border-radius:5px;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:9px}
.lcf-mini.por{background:#15986f}.lcf-mini.def{background:#2377c8}.lcf-mini.med{background:#ed9d10}.lcf-mini.del{background:#df3f3f}
.lcf-side-tips{background:#fffaf0}.lcf-side-order{background:#f1fbf6}.lcf-side-order strong{font-size:11px;color:#0b8062}
.lcf-team-crest{width:38px;height:38px;border-radius:9px}
.lcf-team-crest img{width:31px;height:31px}
@media(max-width:1150px){.lcf-main-grid{grid-template-columns:1fr}.lcf-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lcf-side-card{margin-bottom:0}}
@media(max-width:700px){.lcf-sidebar{grid-template-columns:1fr}}

.lcf-saved-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:14px 16px;border:1px solid #d7ebe3;border-radius:14px;background:linear-gradient(90deg,#f0fbf7,#fff)}
.lcf-saved-bar>div:first-child{display:flex;flex-direction:column;gap:3px}.lcf-saved-bar strong{font-size:14px;color:#12342c}.lcf-saved-bar span{font-size:11px;color:#667b75}
.lcf-saved-bar .lcf-load-last{white-space:nowrap;background:#12312c!important;color:#fff!important}.lcf-save-status{display:block;margin-top:5px}.lcf-save-status.is-ok{color:#078765;font-weight:700}
@media(max-width:700px){.lcf-saved-bar{align-items:flex-start;flex-direction:column}.lcf-saved-bar .lcf-load-last{width:100%}}

.lcf-last-xi-row{display:flex;align-items:center;gap:12px;margin:4px 0 18px;padding:12px 14px;border:1px solid #dce9e4;border-radius:12px;background:#f7fbf9}
.lcf-last-xi-row .lcf-load-last{background:#12312c!important;color:#fff!important;white-space:nowrap}
.lcf-last-xi-row .lcf-save-status{font-size:11px;color:#64756f}
.lcf-user-guide{margin-top:22px;padding:22px 20px;border-top:1px solid #e0ebe7;background:#fbfdfc;border-radius:14px}
.lcf-user-guide h3{margin:0 0 16px;font-size:18px;color:#12312c}
.lcf-guide-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.lcf-guide-grid>div{padding:13px;border:1px solid #dfeae6;border-radius:11px;background:#fff}
.lcf-guide-grid b{display:block;font-size:12px;color:#17342d;margin-bottom:5px}
.lcf-guide-grid span{display:block;font-size:11px;line-height:1.5;color:#667771}
@media(max-width:950px){.lcf-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.lcf-last-xi-row{align-items:flex-start;flex-direction:column}.lcf-last-xi-row .lcf-load-last{width:100%}.lcf-guide-grid{grid-template-columns:1fr}}

/* V19: main grid removed structurally; keep every section full width. */
.lcf-pro-app .lcf-editors{width:100%!important;max-width:none!important}
.lcf-pro-app .lcf-pro-options{width:100%!important;display:grid!important}
.lcf-pro-app .lcf-pro-actions{width:100%!important}
.lcf-pro-app .lcf-pro-preview{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;float:none!important;clear:both!important;margin:18px 0 0!important;padding:8px!important}
.lcf-pro-app .lcf-pro-preview canvas{display:block!important;width:100%!important;max-width:100%!important;height:auto!important}
.lcf-pro-app .lcf-user-guide{width:100%!important;max-width:none!important;clear:both!important}

/* V20 */
.lcf-pro-app .lcf-pro-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.lcf-pro-app .lcf-load-last{background:#ffffff!important;color:#073f3d!important;border:1px solid #0b8f73!important}
.lcf-pro-app .lcf-load-last:hover{background:#eefaf7!important}
.lcf-pro-app .lcf-save-status{margin-top:8px;color:#66747a;font-size:13px;min-height:18px}

.lcf-player-row{cursor:grab;transition:opacity .15s,transform .15s}
.lcf-player-row:active{cursor:grabbing}
.lcf-player-row.lcf-dragging{opacity:.45;transform:scale(.99)}
.lcf-drag-handle{cursor:grab;user-select:none;touch-action:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:32px;color:#91a19b;font-size:18px;border-radius:7px}
.lcf-drag-handle:hover{background:#edf5f2;color:#12312c}
.lcf-load-last:disabled{opacity:.65;cursor:wait}

/* V32 · Identidad LaCabraFantasy: editor oscuro + datos vivos */
.lcf-pro-app.lcf-final{max-width:1400px;padding:22px;background:radial-gradient(circle at 12% 0%,rgba(14,130,98,.16),transparent 30%),#061313;color:#edf8f4;border:1px solid #153c35;border-radius:24px;box-shadow:0 24px 70px rgba(0,0,0,.24);overflow:hidden}
.lcf-pro-app.lcf-final .lcf-pro-header{margin-bottom:16px;padding:4px 4px 18px;border-bottom:1px solid #153b35}
.lcf-brand-block h2{color:#fff;font-size:32px;letter-spacing:-.025em}.lcf-brand-block p{color:#93aaa4}.lcf-pro-brand{color:#36e3ae;font-size:13px}.lcf-brand-goat{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;margin-right:5px;border-radius:50%;background:#f5bd28;color:#101313;font-size:15px}
.lcf-live-badge{display:inline-block;vertical-align:middle;margin-left:8px;padding:5px 9px;border:1px solid #176b57;border-radius:999px;background:#08271f;color:#49e9b8;font-size:10px;letter-spacing:.08em;white-space:nowrap}
.lcf-pro-header-right{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.lcf-pro-pill{background:#0b2823;color:#5ef0c2;border:1px solid #1a6755}.lcf-data-pill{font-size:10px;font-weight:800;color:#91aaa3}
.lcf-last-xi-row{margin:0 0 18px;padding:12px 14px;background:linear-gradient(90deg,#09251f,#07191a);border-color:#195344}.lcf-last-xi-copy strong{color:#f5c531;font-size:12px;letter-spacing:.03em}.lcf-last-xi-copy span{color:#8fa8a1;display:block;margin-top:2px}.lcf-last-xi-row .lcf-load-last{background:#f4c52f!important;color:#111!important;border:0!important;box-shadow:0 6px 18px rgba(244,197,47,.15)}
.lcf-editors{gap:12px}.lcf-editor-card{background:linear-gradient(180deg,#091b1b,#071516);border-color:#173b36;border-radius:18px}.lcf-editor-top label{color:#9eb5af}.lcf-editor-top select,.lcf-player-select,.lcf-pro-options input{background:#071516;color:#e9f6f2;border-color:#21463f}.lcf-team-crest{background:#071313;border-color:#245046}.lcf-position-group{background:#071515;border-color:#173b36}.lcf-position-head{background:#0b211f;border-color:#173b36}.lcf-position-head strong{color:#dcece7}.lcf-player-row{border-color:#12322e}.lcf-prob{background:#0a1b1b!important;color:#fff;border-color:#28534a!important}.lcf-percent{color:#718b84}.lcf-drag-handle{color:#5c7971}.lcf-vs-badge{color:#718d85}.lcf-switch{color:#3ce5b2}
.lcf-pro-options{margin-top:15px}.lcf-pro-options label{color:#9eb5af}.lcf-pro-actions{margin:16px 0}.lcf-btn{transition:transform .15s,box-shadow .15s}.lcf-btn:hover{transform:translateY(-1px)}.lcf-generate{background:#f4c52f;color:#101313;box-shadow:0 8px 22px rgba(244,197,47,.14)}.lcf-download{background:#0b2924;color:#5de9bd;border:1px solid #216453}.lcf-pro-preview{background:#020a0a;border:1px solid #12322d;border-radius:18px}.lcf-save-status{color:#7f9992!important}.lcf-save-status.is-ok{color:#44dfad!important}
.lcf-user-guide{margin-top:18px;padding:18px;background:#071817;border:1px solid #163b35;border-top:1px solid #1b4b41}.lcf-guide-title{display:flex;gap:11px;align-items:center;margin-bottom:13px}.lcf-guide-title>span{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:#f4c52f;color:#111;font-size:19px}.lcf-guide-title h3{margin:0;color:#fff}.lcf-guide-title p{margin:2px 0 0;color:#78918a;font-size:11px}.lcf-guide-grid>div{background:#091d1c;border-color:#173d37}.lcf-guide-grid b{color:#f2c535}.lcf-guide-grid span{color:#839b95}
@media(max-width:1000px){.lcf-pro-header-right{align-items:flex-start}.lcf-brand-block h2{font-size:27px}}

/* V33 crest fix: never crop the source image */
.lcf-team-crest{width:42px!important;height:42px!important;overflow:visible!important;padding:3px;box-sizing:border-box;border-radius:10px!important}
.lcf-team-crest img{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
/* V35 · escudos: caja estable, sin recorte ni abreviatura superpuesta */
.lcf-pro-app.lcf-final .lcf-team-select-wrap{grid-template-columns:46px minmax(0,1fr)!important;gap:8px!important;min-width:0!important}
.lcf-pro-app.lcf-final .lcf-team-crest{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;padding:4px!important;box-sizing:border-box!important;border-radius:12px!important;overflow:hidden!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
.lcf-pro-app.lcf-final .lcf-team-crest img{display:block!important;width:auto!important;height:auto!important;max-width:36px!important;max-height:36px!important;min-width:0!important;min-height:0!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important}

/* V39: el último XI se carga automáticamente; no hay botón manual. */
.lcf-pro-app .lcf-last-xi-row{align-items:center}
.lcf-pro-app .lcf-last-xi-copy{flex:1}
