:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#19273d;background:#f5f7fb;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.initial-loading{margin:15vh auto;text-align:center;color:#697b94}#app{display:flex;min-height:100vh}.sidebar{width:245px;flex:none;background:#111d34;color:#b9c6db;min-height:100vh;padding:26px 15px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:4px 9px 25px;color:white}.brand-mark{width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,#2cb7c6,#5277ff);display:grid;place-items:center;font-weight:900;font-size:19px;color:white;box-shadow:0 6px 24px #2787ff45}.brand-title{font-size:19px;letter-spacing:-.6px;font-weight:850;line-height:1}.brand-small{font-size:10px;letter-spacing:2px;color:#8b9bb9;font-weight:700;margin-top:5px}.navgroup{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;color:#647696;padding:14px 14px 9px;font-weight:800}.navlink{border:none;width:100%;background:transparent;color:#aabbd2;display:flex;align-items:center;text-align:left;gap:12px;padding:12px 13px;border-radius:9px;font-weight:620;margin:2px 0;transition:.12s}.navlink:hover,.navlink.active{background:#263c62;color:white}.navlink.active{box-shadow:inset 3px 0 #48c9d4}.navicon{font-size:17px;width:23px;text-align:center;filter:saturate(.7)}.side-footer{margin-top:auto;border-top:1px solid #344056;padding:17px 10px 0;font-size:12px;line-height:1.5;color:#9aaec6}.side-footer strong{color:#e5eefa}.main{min-width:0;flex:1}.topbar{height:79px;background:#fff;border-bottom:1px solid #e7eaf1;display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:18px;position:sticky;top:0;z-index:30}.eyebrow{font-size:10px;font-weight:850;color:#7690aa;letter-spacing:1.5px;text-transform:uppercase}.top-title{font-size:17px;color:#18273e;font-weight:750;margin-top:4px}.top-actions{display:flex;gap:12px;align-items:center}.select-team{border:1px solid #dee5ef;background:#fff;border-radius:9px;padding:10px 13px;max-width:248px;color:#243753;font-weight:650;outline:none}.pill{display:inline-flex;align-items:center;gap:6px;background:#e7f7ef;color:#187953;border-radius:100px;padding:6px 10px;font-weight:750;font-size:11px;white-space:nowrap}.dot{height:6px;width:6px;background:currentColor;border-radius:50%}.user-avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#e6eafa;color:#465ba1;font-weight:850}.main-body{padding:29px 34px 60px;max-width:1520px;margin:auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.page-head h1{font-size:27px;letter-spacing:-1.15px;margin:4px 0 6px;font-weight:850;color:#122239}.sub{color:#7c8ca1;line-height:1.5;margin:0;font-size:13px}.button{border:1px solid #dce3ed;background:#fff;color:#233953;border-radius:10px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:720;white-space:nowrap}.button:hover{background:#f4f7fc}.button.primary{background:#3b67e8;color:white;border-color:#3b67e8;box-shadow:0 4px 10px #3263ec25}.button.primary:hover{background:#2a56d2}.button.danger{color:#cf4350;border-color:#f2d8dd}.button.tiny{padding:6px 10px;font-size:11px;border-radius:7px}.button:disabled{opacity:.42;cursor:not-allowed}.head-buttons{display:flex;gap:9px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:20px}.stat-card,.card{background:white;border:1px solid #e8edf4;border-radius:14px;box-shadow:0 6px 24px #233f5b07}.stat-card{padding:21px;position:relative;min-height:133px}.stat-card .icon-bubble{position:absolute;right:19px;top:18px;border-radius:11px;background:#eff3ff;color:#4b74dd;width:35px;height:35px;display:grid;place-items:center;font-size:18px}.stat-card .number{font-size:32px;letter-spacing:-1.2px;font-weight:850;line-height:1.1;margin-top:19px}.stat-card .label{font-size:12px;color:#7788a1;font-weight:650}.stat-card .hint{margin-top:7px;color:#8294a8;font-size:11px}.layout2{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:20px}.card{padding:21px;margin-bottom:19px}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:19px}.card-head h2{margin:0;font-size:16px;font-weight:800;color:#1e2c43}.card-head p{font-size:12px;color:#8292a5;margin:5px 0 0}.badge{border-radius:6px;background:#f0f4fa;color:#50617a;padding:5px 8px;font-size:10px;font-weight:780;display:inline-block;white-space:nowrap}.badge.green{background:#e7f8ee;color:#24835d}.badge.orange{background:#fff3dd;color:#aa6b12}.badge.blue{background:#eaf0ff;color:#4064cb}.badge.red{background:#ffedf0;color:#bd4352}.list-line{display:flex;align-items:center;gap:13px;padding:12px 0;border-top:1px solid #eff2f6}.list-line:first-of-type{border-top:0}.list-icon{width:43px;height:43px;border-radius:10px;background:#eff3ff;color:#4063dc;display:grid;place-items:center;font-size:18px}.line-main{flex:1;min-width:0}.line-title{font-weight:750;color:#25364b;font-size:13px}.line-meta{color:#8b9bb0;font-size:11px;margin-top:3px}.line-trail{text-align:right;color:#6b7b91;font-size:11px}.sport-split{display:grid;gap:16px}.progress-top{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px}.progress-top b{color:#273c58}.progress-top span{color:#8a9ab0}.track{height:8px;background:#eef2f8;border-radius:20px;overflow:hidden}.track div{height:100%;border-radius:20px}.empty{text-align:center;padding:37px 15px;color:#8b9ab0;font-size:13px}.empty .big{font-size:36px;display:block;margin-bottom:8px}.grid-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.team-card{padding:20px;transition:.16s;cursor:pointer}.team-card:hover{transform:translateY(-2px);box-shadow:0 10px 27px #273c5912}.team-symbol{width:52px;height:52px;border-radius:13px;display:grid;place-items:center;font-size:24px;color:white;margin-bottom:13px}.team-title{font-weight:800;font-size:16px;color:#263752}.team-meta{font-size:12px;color:#8092a7;margin-top:7px}.team-foot{margin-top:19px;border-top:1px solid #edf1f6;padding-top:15px;display:flex;align-items:center;justify-content:space-between;color:#7e8ca4;font-size:11px}.table-wrap{overflow-x:auto}table.data{border-collapse:collapse;width:100%;min-width:670px;text-align:left}table.data th{padding:13px 12px;color:#7b8ea7;background:#f8fafd;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.9px}table.data td{border-bottom:1px solid #f0f2f6;padding:13px 12px;color:#364960;font-size:12px}table.data tr:last-child td{border-bottom:none}table.data tbody tr:hover{background:#fbfcfe}.person{display:flex;align-items:center;gap:10px}.face{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#e8eefb;color:#5070bb;font-weight:800}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:17px}.control{background:white;border:1px solid #dce4ef;padding:9px 11px;border-radius:9px;color:#34485e}.calendar-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.event{border:1px solid #e8edf4;background:#fff;padding:17px 18px;border-radius:13px;display:flex;gap:14px}.event-date{min-width:56px;height:60px;text-align:center;border-radius:9px;background:#f1f5ff;color:#3b66db;padding:8px 6px}.event-date strong{display:block;font-size:22px}.event-date span{font-size:10px;text-transform:uppercase;font-weight:850}.event-title{font-size:14px;font-weight:800;color:#263753;margin-bottom:4px}.event-meta{color:#8191a5;font-size:12px;line-height:1.7}.event .small-actions{margin-top:9px}.drill-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.drill{padding:18px}.drill-visual{height:90px;border-radius:10px;margin-bottom:14px;background:radial-gradient(circle at 65% 42%,#c9d6fb 1px,transparent 2px),linear-gradient(120deg,#f5f8ff,#e8efff);background-size:20px 20px,auto;display:flex;align-items:center;justify-content:center;color:#5876b7;font-size:30px}.drill h3{margin:0;font-size:14px}.drill p{line-height:1.6;min-height:54px;font-size:11px;color:#8797ab}.drill .small-actions{display:flex;gap:7px;align-items:center;justify-content:space-between}.board-layout{display:grid;grid-template-columns:minmax(0,1fr) 268px;gap:18px}.board-area{overflow:hidden;padding:0}.board-header{padding:14px 17px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:space-between}.board-toolbar{display:flex;gap:6px;flex-wrap:wrap}.board-tool{border:1px solid #e3e9f2;background:white;color:#576b83;border-radius:7px;padding:7px 10px;font-weight:720;font-size:11px}.board-tool.active{background:#e8eeff;color:#315edb;border-color:#b6c9fc}.pitch-wrap{background:#d3dfe5;padding:12px;touch-action:none}.board-svg{display:block;width:100%;aspect-ratio:5/3;background:#24834f;border-radius:6px;touch-action:none;user-select:none;cursor:crosshair}.board-svg [data-player-id]{cursor:grab}.board-svg [data-player-id]:active{cursor:grabbing}.timeline{padding:16px 18px;display:flex;gap:9px;align-items:center;flex-wrap:wrap}.timeline-step{border:1px solid #d9e2ee;border-radius:8px;padding:8px 11px;background:#f7faff;color:#405574;font-weight:750}.timeline-step.selected{background:#e8efff;border-color:#6284ef;color:#325fdd}.board-side{padding:18px}.board-side h3{margin:0 0 8px;font-size:14px}.board-side p{font-size:11px;color:#8191a6;line-height:1.7}.board-help{background:#f5f8fd;border:1px solid #e6edf6;padding:12px;border-radius:9px;font-size:11px;color:#687d96;line-height:1.7;margin:15px 0}.board-playlist{max-height:300px;overflow:auto}.play-item{padding:10px;border:1px solid #ebf0f6;border-radius:8px;margin-top:8px;cursor:pointer}.play-item:hover{border-color:#6a90f2}.play-item strong{display:block;font-size:12px;margin-bottom:4px}.play-item small{color:#8092a6}.board-side .button{width:100%;margin-top:10px}.kpi-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.metric-bar{margin:13px 0}.metric-bar label{display:flex;justify-content:space-between;font-size:12px;font-weight:660;margin-bottom:8px}.metric-bar .track{height:13px}.metric-table{max-height:440px;overflow:auto}.video-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.video-player{width:100%;max-height:400px;background:#111827;border-radius:12px}.video-placeholder{background:linear-gradient(135deg,#1c2a41,#253e63);min-height:330px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#dbe7ff;gap:11px}.video-placeholder span{font-size:38px}.tag-line{padding:12px 0;border-bottom:1px solid #e9edf3;display:flex;justify-content:space-between;gap:10px;font-size:12px}.muted{color:#8d9aad}.small-actions{display:flex;gap:7px;flex-wrap:wrap}.notice{border:1px solid #f4dfb2;background:#fffaf0;color:#826328;border-radius:10px;padding:12px 14px;font-size:12px;line-height:1.6;margin-bottom:17px}.info{border-color:#cfdfff;background:#f3f7ff;color:#506996}.modal-backdrop{position:fixed;inset:0;z-index:200;background:#0c18356e;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:white;box-shadow:0 23px 70px #101d3940;border-radius:16px;width:min(520px,100%);max-height:calc(100vh - 40px);overflow:auto}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:23px 24px 13px;border-bottom:1px solid #f0f2f6}.modal-head h2{margin:0;font-size:19px}.close{border:0;background:#f4f6fa;padding:7px 11px;border-radius:8px;font-size:19px;color:#52657a}.modal-body{padding:19px 24px}.field{display:flex;flex-direction:column;gap:6px;margin:0 0 14px}.field label{font-size:12px;font-weight:750;color:#3b4f65}.field input,.field select,.field textarea{width:100%;border-radius:9px;border:1px solid #dfe6f0;padding:11px;color:#25384e;background:#fff;outline-color:#6188f7}.field textarea{min-height:90px;resize:vertical}.modal-foot{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #edf2f7;padding:15px 24px 21px}.toast{position:fixed;right:27px;bottom:22px;z-index:300;background:#182d4b;color:white;border-radius:10px;box-shadow:0 10px 35px #0003;padding:13px 17px;font-size:12px;max-width:380px}.toast.error{background:#b52d48}.tinytext{font-size:11px;color:#8b9aaf}.filter-heading{margin:19px 0 12px}.thin{font-weight:400}.section-footer{padding:12px;text-align:center;font-size:11px;color:#9cacbe}.accent{color:#3f6cef}.report-print{background:#f0f4ff;padding:15px;border-radius:10px;color:#506783;font-size:12px}.status-avatar{display:inline-grid;place-items:center;width:9px;height:9px;border-radius:50%;background:#3aaa79}.status-avatar.off{background:#e6b158}@media(max-width:1150px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cards,.drill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.board-layout{grid-template-columns:minmax(0,1fr)}.board-side{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.board-playlist{max-height:180px}}@media(max-width:830px){.sidebar{width:66px;padding:20px 7px}.brand{padding:2px 3px 22px}.brand-title,.brand-small,.sidebar .navtext,.navgroup,.side-footer{display:none}.navlink{justify-content:center;padding:11px 8px}.navicon{font-size:21px}.topbar{height:auto;min-height:68px;padding:12px 15px;flex-wrap:wrap}.main-body{padding:20px 15px}.layout2,.calendar-events,.video-layout{grid-template-columns:1fr}.grid-cards,.drill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-head h1{font-size:23px}}@media(max-width:520px){.sidebar{width:52px}.brand-mark{width:31px;height:31px;font-size:15px}.topbar .pill,.user-avatar{display:none}.select-team{max-width:185px}.stats,.grid-cards,.drill-grid,.kpi-list{grid-template-columns:1fr}.board-side{grid-template-columns:1fr}.page-head{flex-direction:column}.head-buttons{width:100%}.stat-card{min-height:111px}.main-body{padding:15px 10px}.card{padding:14px}.top-title{font-size:14px}.event{padding:13px}}@media print{.sidebar,.topbar,.page-head .head-buttons,.button,.toolbar,.modal-backdrop,.notice{display:none!important}.main-body{padding:0}.card{break-inside:avoid;box-shadow:none}body{background:white}}

/* SportLab v0.2: constructor de entrenamientos, adaptable a tablet y escritorio */
.plan-modal{max-width:860px;width:min(96vw,860px);max-height:92vh;display:flex;flex-direction:column}
.plan-modal .modal-body{overflow:auto;min-height:0}
.plan-modal .modal-head,.plan-modal .modal-foot{flex:none}
.plan-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px}
.plan-summary>div{background:#eef5ff;border-radius:10px;padding:13px;display:flex;flex-direction:column;gap:4px}
.plan-summary b{color:#1d3f7a;font-size:20px}
.plan-summary span{font-size:11px;color:#526680}
.plan-over>div:last-child{background:#fee5e5}
.plan-over>div:last-child b{color:#a82020}
.plan-list{display:grid;gap:12px;margin-bottom:18px}
.plan-row{border:1px solid #d9e5f3;border-radius:12px;padding:14px;background:#fbfdff}
.plan-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.plan-fields{display:grid;grid-template-columns:2fr 1.15fr .8fr;gap:10px}
.plan-label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650;color:#475a76;margin-bottom:10px}
.plan-label select,.plan-label input{border:1px solid #d5deeb;border-radius:8px;padding:10px;width:100%;background:white;color:#19273d;min-width:0}
.plan-modal .button:disabled{opacity:.45;cursor:not-allowed}
.plan-modal .modal-body>.button{margin:0 0 12px}
@media(max-width:700px){.plan-modal{width:100vw;max-height:96vh}.plan-fields{grid-template-columns:1fr}.plan-summary{gap:5px}.plan-summary>div{padding:9px}.plan-summary b{font-size:15px}.plan-row-top{flex-wrap:wrap}}

/* Biblioteca de plantillas deportivas */
.template-picker-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid #dce6f1;border-radius:11px;padding:13px;margin:12px 0;background:#f8fbff}
.template-picker-row p{margin:5px 0 0}.template-picker-row .button{flex:none}
@media(max-width:620px){.template-picker-row{flex-wrap:wrap}.template-picker-row .button{width:100%}}

/* SportLab v0.4 — calendario semanal adaptable */
.week-planner{margin-bottom:26px;border:1px solid #dee6f3;background:white;border-radius:16px;padding:20px;box-shadow:0 3px 15px #24334d07}
.week-top{display:flex;justify-content:space-between;gap:15px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.week-top h2{font-size:20px;margin:5px 0 4px}
.week-buttons{display:flex;gap:6px;flex-wrap:wrap}
.week-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
.week-metrics>div{padding:13px;border-radius:10px;background:#f1f5fc;display:flex;flex-direction:column;gap:5px}
.week-metrics b{font-size:23px;color:#1f3e76}
.week-metrics span{font-size:11px;color:#63758f}
.week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.week-day{min-width:0;border:1px solid #dfe7f4;border-radius:11px;display:flex;flex-direction:column;min-height:178px}
.week-day.is-today{border-color:#5487e9;background:#f3f7ff}
.week-day header{padding:11px 8px;border-bottom:1px solid #e6edf7;display:flex;justify-content:space-between;gap:3px;flex-wrap:wrap;font-size:11px}
.week-day header small{font-size:10px;color:#6980a0}
.week-events{padding:7px;display:flex;flex-direction:column;gap:6px;flex:1}
.week-event{background:#edf3fe;border-left:3px solid #527feb;padding:7px;border-radius:6px;overflow-wrap:anywhere;display:flex;flex-direction:column;gap:4px}
.week-event strong{font-size:11px;color:#1b355e}
.week-event small,.week-empty{font-size:10px;color:#657995}
.week-link{border:0;background:none;padding:4px 0;text-align:left;color:#2459ac;font-size:11px;font-weight:700}
.week-create{width:100%;border:0;border-top:1px solid #e5ebf3;border-radius:0 0 9px 9px;background:transparent;color:#3969b6;font-size:11px;padding:8px}
.week-create:hover{background:#e9f2ff}
.week-cycle{margin-top:17px;padding:18px;border-radius:11px;background:#f5f8ff;display:flex;flex-direction:column;gap:9px}
.week-cycle h3{margin:0 0 5px}.week-cycle-detail{padding:10px 0}
.week-cycle-detail p{margin:6px 0}.week-cycle-detail small{color:#526e93}
.week-cycle>.tinytext{line-height:1.5;margin-top:8px}
.week-plan-list{display:flex;flex-direction:column;gap:7px;font-size:12px}
.week-dialog{max-width:630px}.week-dialog .field{display:flex;flex-direction:column;gap:7px;margin:10px 0}
.week-dialog .field input,.week-dialog .field select,.week-dialog .field textarea{border:1px solid #cdd9eb;border-radius:8px;padding:10px;background:white;width:100%}
.week-dialog .modal-body{max-height:65vh;overflow:auto}
@media(max-width:1250px){.week-days{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.week-planner{padding:12px}.week-days{grid-template-columns:repeat(2,minmax(0,1fr))}.week-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* SportLab v0.5: seguimiento individual de sesiones */
.load-section{background:white;border:1px solid #dfe6f3;border-radius:16px;padding:18px;margin-bottom:22px}
.load-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.load-heading h2{font-size:19px;margin:0 0 5px}.load-heading p,.load-panel p{font-size:12px;color:#70829c;margin:3px 0 12px}
.load-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.load-controls select{min-width:180px;max-width:260px;border:1px solid #d7dfec;border-radius:8px;padding:10px;background:white}
.load-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 16px}
.load-stats>div{padding:14px;border-radius:10px;background:#f0f5ff;display:flex;flex-direction:column;gap:5px}
.load-stats b{font-size:22px;color:#19427e}.load-stats span{font-size:11px;color:#617997}
.load-columns{display:grid;grid-template-columns:1fr 1.1fr;gap:12px}.load-panel{border:1px solid #e2e8f3;border-radius:10px;padding:14px;min-width:0}
.load-panel h3{margin:0 0 7px;font-size:14px}.load-bars{height:178px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;align-items:stretch}
.load-bar-cell{display:flex;flex-direction:column;justify-content:flex-end;text-align:center;gap:5px;min-width:0}
.load-bar-cell b{font-size:11px;color:#294e8e}.load-bar-cell small{font-size:10px;color:#657b99;white-space:nowrap}
.load-bar-track{height:122px;background:#f0f4fa;border-radius:6px;display:flex;align-items:flex-end;overflow:hidden}
.load-bar-track span{width:100%;background:#4a78ea;border-radius:5px 5px 0 0;min-height:0;transition:height .2s}
.load-records{max-height:315px;overflow:auto}.load-record{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #e6edf5;padding:11px 2px}
.load-record>div:first-child{display:flex;flex-direction:column;gap:3px}.load-record strong{font-size:12px}.load-record small{color:#6a7f9d;font-size:11px}
.load-record-actions{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.load-section>.tinytext{margin-top:13px;line-height:1.6}
.load-modal{max-width:650px}.load-modal .field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.load-modal .field input,.load-modal .field select,.load-modal .field textarea{border:1px solid #d5e0ed;border-radius:8px;padding:10px;background:#fff;width:100%}
@media(max-width:900px){.load-columns{grid-template-columns:1fr}.load-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.load-section{padding:11px}.load-stats b{font-size:18px}.load-controls select{min-width:100%}}

/* SportLab v0.6: reporte semanal de planificación y ejecución */
.report-week{border:1px solid #dfe6f2;border-radius:15px;background:#fff;padding:19px;margin:18px 0 24px}
.report-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.report-top h2{font-size:19px;margin:4px 0 7px;color:#102542}.report-top p{margin:0}
.report-buttons{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.report-controls{margin:15px 0 12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.report-controls label{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:650;color:#526987}
.report-controls select{border:1px solid #dae3ef;border-radius:8px;padding:9px;background:#fff;color:#192e4e;max-width:240px}
.report-note{font-size:11px;color:#6d7f9c}
.report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0}
.report-stats>div{padding:12px;background:#f0f5fc;border-radius:10px;display:flex;flex-direction:column;gap:6px}
.report-stats strong{font-size:20px;color:#1c417c}
.report-stats span{font-size:11px;color:#647996;line-height:1.5}
.report-disclaimer{font-size:12px;line-height:1.55;color:#526784;border-left:3px solid #6c96ed;background:#f5f8ff;border-radius:5px;padding:11px 13px;margin:14px 0}
.report-panels{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}
.report-panel{min-width:0;border:1px solid #e1e9f3;border-radius:10px;padding:14px;margin:13px 0}
.report-panels>.report-panel{margin:0}
.report-panel h3{font-size:14px;margin:0 0 7px}
.report-panel .sub{margin:3px 0 12px}
.report-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;height:172px;align-items:stretch}
.report-bar{display:flex;flex-direction:column;justify-content:flex-end;gap:6px;align-items:stretch;text-align:center;min-width:0}
.report-bar>span{font-size:11px;color:#385e9d;font-weight:650}
.report-bar>div{height:112px;background:#f0f4fb;border-radius:6px;display:flex;align-items:flex-end;overflow:hidden}
.report-bar i{width:100%;display:block;background:#4d7cf1;border-radius:5px 5px 0 0}
.report-bar small{font-size:10px;color:#6a7f9a;white-space:nowrap}
.report-pair{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#29496e}
.report-pair b{font-size:18px}.report-pair span{background:#eaf0fe;border-radius:8px;padding:8px;color:#2459b3;font-weight:750}
.report-table .data{width:100%}.report-table .data th{font-size:10px}.report-table .data td{font-size:12px}
.report-sub{display:block;color:#7b89a2;margin-top:3px}
.report-foot{margin:14px 0 0;line-height:1.5}
@media(max-width:950px){.report-panels{grid-template-columns:1fr}.report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.report-week{padding:11px}.report-stats strong{font-size:17px}.report-controls label{flex-wrap:wrap}.report-controls select{max-width:100%}}

/* SportLab v0.7 - almacenamiento de video R2 */
.storage-ok{color:#1d7a51!important;font-weight:650}.storage-warning{color:#a9680e!important}
#r2-upload-progress{margin-top:7px;padding:7px 10px;border:1px solid #d5e0f4;border-radius:7px;background:#f4f8ff}
#r2-upload-btn:disabled{opacity:.53;cursor:not-allowed}

/* SportLab v0.8 — anotaciones visuales vectoriales ligadas a segundo */
.video-annotation-stage{position:relative;width:100%;display:flex;justify-content:center;align-items:center;background:#0d1523;border-radius:12px;overflow:hidden;min-height:180px}
.video-annotation-stage .video-player{width:100%;max-height:400px;display:block;object-fit:contain;border-radius:0}
.annotation-svg{position:absolute;z-index:2;pointer-events:none;overflow:visible;touch-action:none}
.annotation-svg.annotation-drawing{pointer-events:auto;cursor:crosshair}
.annotation-svg.annotation-hidden{visibility:hidden;pointer-events:none}
.annotation-editor{border:1px solid #dce5f3;border-radius:11px;background:#f7faff;padding:13px;margin-top:13px}
.annotation-head{display:flex;justify-content:space-between;align-items:flex-start;gap:9px;flex-wrap:wrap;margin-bottom:13px}
.annotation-head h3{margin:0 0 4px;color:#243a5b;font-size:14px}
.annotation-head p{margin:0;color:#617b99;font-size:11px}
.annotation-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:9px 0}
.annotation-color-label{display:flex;align-items:center;gap:5px;font-size:11px;color:#52688b;font-weight:650}
.annotation-color-label select,.annotation-fine-step select{max-width:120px;padding:7px;border-radius:7px;border:1px solid #cfdcf0;background:white;color:#253a59}
.annotation-fine-step{border-top:1px solid #e1e8f2;padding-top:10px}
.annotation-note{margin:10px 0 0;color:#71839d;line-height:1.55}
.annotation-timeline{padding:13px 8px 4px;border-top:1px solid #e3eaf4;margin-top:12px}
.annotation-track{position:relative;background:#dce6f8;border-radius:12px;height:11px;margin:11px 7px 0}
.annotation-dot{position:absolute;border-radius:50%;width:13px;height:13px;top:50%;transform:translate(-50%,-50%);border:2px solid white;box-shadow:0 1px 4px #1c396a6b;cursor:pointer}
.annotation-dot.snapshot{background:#f4bb18}.annotation-dot.marker{background:#2f9de9}
.annotation-time-labels{display:flex;justify-content:space-between;font-size:10px;color:#6f7e94;margin-top:9px}
.annotation-saved-item{padding:11px 0;border-bottom:1px solid #e9edf5;display:flex;align-items:center;justify-content:space-between;gap:9px}
.annotation-saved-item.active{background:#f3f7ff}
.annotation-saved-item b{font-size:12px;color:#2a415e;overflow-wrap:anywhere}
.annotation-saved-item .tinytext{margin-top:4px}
@media(max-width:750px){.annotation-head .badge{white-space:normal}.annotation-saved-item{flex-wrap:wrap}}

/* v0.8.1: edición directa de símbolos y lectura visual mejorada */
.video-layout{grid-template-columns:minmax(0,1.75fr) minmax(285px,1fr)}
.video-annotation-stage .video-player{max-height:510px}
.annotation-svg.annotation-moving{cursor:default}
.annotation-moving .annotation-vector [data-shape-index]{cursor:grab}
.annotation-moving .annotation-vector [data-handle]{cursor:nwse-resize;pointer-events:all}
.annotation-moving .annotation-vector.selected{filter:drop-shadow(0px 0px 5px #163b7999)}
.annotation-svg.annotation-moving:active .annotation-vector [data-shape-index]{cursor:grabbing}
.annotation-color-label select{max-width:125px}
.annotation-edit-help{padding:9px 11px;background:#eaf3ff;border-left:3px solid #3978ed;border-radius:7px;line-height:1.5;color:#344f74!important;margin:10px 0}
@media(max-width:1050px){.video-layout{grid-template-columns:1fr}}

/* v0.9 — Segmentos virtuales y velocidades para videoanálisis */
.clip-editor{background:#f7faff;border:1px solid #dce6f5;border-radius:11px;padding:14px;margin:14px 0 0}
.clip-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:5px}
.clip-head h3{font-size:14px;color:#23395d;margin:0}
.clip-toolbar{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:10px 0}
.clip-speed-label,.clip-repeat-label{font-size:11px;color:#3c557b;font-weight:650;display:flex;align-items:center;gap:7px}
.clip-speed-label select,.clip-grid input,.clip-notes-label textarea{background:white;border:1px solid #cddaf0;border-radius:8px;padding:8px;color:#233958;min-width:0}
.clip-speed-label select{max-width:110px}
.clip-repeat-label input{accent-color:#3d71f7}
.clip-form{border-radius:10px;border:1px solid #c9d9f4;background:#eef5ff;padding:13px;margin-top:11px}
.clip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:9px 0}
.clip-grid label,.clip-notes-label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:650;color:#39547b}
.clip-grid input{width:100%}.clip-notes-label textarea{width:100%;resize:vertical;min-height:60px}
.clip-saved{padding:11px 0;border-bottom:1px solid #e7edf6;display:flex;gap:9px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.clip-saved.active{background:#eef5ff}.clip-saved-title{flex:1;min-width:180px}.clip-saved-title b{font-size:12px;overflow-wrap:anywhere}
.clip-saved-title .tinytext{display:block;margin-top:4px}.clip-notes{white-space:pre-wrap;overflow-wrap:anywhere;max-width:300px}
.clip-playing{background:#e6f0ff;padding:8px;border-radius:7px}
@media(max-width:600px){.clip-grid{grid-template-columns:1fr}.clip-toolbar{align-items:flex-start}}

/* v1.0 — ficha integrada de jugada */
.clip-review-panel{margin:14px 0 0;padding:13px;background:#f2f7ff;border:1px solid #cbdcf6;border-radius:10px}
.clip-review-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:11px 0}
.clip-review-counts span{background:#fff;border:1px solid #e2eaf8;border-radius:8px;padding:10px;font-size:11px;color:#556b89}
.clip-review-counts b{display:block;font-size:18px;color:#2d58a2}
.clip-review-section{margin:13px 0}
.clip-review-section>b{display:block;font-size:12px;margin-bottom:6px;color:#233959}
.clip-analysis-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:8px 0;border-bottom:1px solid #dde7f7}
.clip-analysis-row b{font-size:11px;overflow-wrap:anywhere}
.clip-analysis-row .tinytext{margin-top:3px}
@media(max-width:580px){.clip-review-counts{grid-template-columns:1fr 1fr}.clip-analysis-row{flex-wrap:wrap}}

/* v1.0.1 — confirmación visible al preparar nuevo fotograma */
.annotation-frame-ready{border:1px solid #b9d6f6;border-left:4px solid #3978ed;background:#eff7ff;color:#214267;padding:10px 12px;border-radius:8px;font-size:12px;line-height:1.5;margin:9px 0 12px}
.annotation-frame-ready b{font-weight:750}

/* v1.1 — Vista previa de reportes visuales, sin persistir capturas */
.clip-visual-results{padding:12px;background:white;border:1px solid #cbdaf0;border-radius:8px;margin-top:10px}
.clip-visual-results figure{margin:10px 0 16px;border:1px solid #e1e8f4;border-radius:8px;overflow:hidden}
.clip-visual-results img{width:100%;height:auto;display:block;max-height:400px;object-fit:contain;background:#091122}
.clip-visual-results figcaption{font-size:11px;color:#49637e;padding:8px}


/* v1.3 — análisis conectado a entrenamientos */
.clip-workflow-filter{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:15px 0 13px;padding:12px;border:1px solid #dfebf8;border-radius:10px;background:#f6f9ff}
.clip-workflow-filter label{font-size:12px;font-weight:750;color:#253e5b}
.clip-workflow-filter input{flex:1;min-width:160px;max-width:350px;border:1px solid #c9d8ec;background:#fff;border-radius:8px;padding:9px 10px;font:inherit}
.clip-workflow-filter .tinytext{flex-basis:100%}
.clip-comparison{padding:15px;border:1px solid #cbdcf6;background:#f5f8ff;border-radius:10px;margin:13px 0}
.clip-comparison .data{width:100%}
.clip-linked-drill{border-left:3px solid #4c82e9;padding-left:9px;margin:8px 0;color:#34618f}
.clip-training-form .modal-body{max-height:66vh;overflow-y:auto}
.clip-training-form label.field{display:block;margin:13px 0}
.clip-training-form label.field span{display:block;font-size:12px;font-weight:700;margin-bottom:6px}
.clip-training-form input,.clip-training-form select,.clip-training-form textarea{width:100%;max-width:100%;border-radius:8px;border:1px solid #cfdaeb;padding:10px;background:white;color:#23334e}
.clip-training-form textarea{min-height:125px;resize:vertical;white-space:pre-wrap}
@media(max-width:650px){.clip-comparison{padding:9px}.clip-training-form .modal-body{max-height:65vh}}


/* SportLab v1.4 — Presentación ejecutiva de solo lectura */
.exec-view{display:grid;gap:23px;color:#1c2b43}
.exec-hero{background:linear-gradient(125deg,#10203c,#203f73 68%,#225e88);border-radius:17px;padding:35px;color:white;display:grid;grid-template-columns:minmax(0,2fr) minmax(215px,1fr);gap:29px}
.exec-hero h1{font-size:clamp(25px,3vw,38px);line-height:1.16;letter-spacing:-.9px;margin:12px 0}
.exec-hero p{font-size:14px;line-height:1.65;max-width:660px;color:#dbe9fa;margin:0 0 20px}
.exec-eyebrow{letter-spacing:1.7px;font-size:11px;color:#8ce4f0;font-weight:800}
.exec-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.exec-hero .button:not(.primary){background:transparent;color:#fff;border-color:#7d9fc7}
.exec-hero-note{align-self:center;background:#ffffff14;border:1px solid #ffffff35;border-radius:13px;padding:25px;display:flex;flex-direction:column;gap:13px}
.exec-hero-note b{font-size:24px;color:white}
.exec-hero-note span{font-size:14px;font-weight:650}
.exec-hero-note small{font-size:12px;color:#d1e2f2;line-height:1.5}
.exec-section{background:white;border:1px solid #e0e7f0;border-radius:14px;padding:24px;box-shadow:0 5px 24px #19395808}
.exec-section h2{font-size:20px;letter-spacing:-.45px;margin:0 0 8px}
.exec-section-head{margin-bottom:18px}
.exec-section-head p{font-size:13px;line-height:1.6;color:#74859b;margin:0}
.exec-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.exec-kpi{display:flex;flex-direction:column;gap:7px;border:1px solid #e4ebf5;background:#f7faff;border-radius:12px;padding:20px}
.exec-kpi strong{font-size:30px;color:#284f91;font-weight:850;line-height:1}
.exec-kpi span{font-weight:800;font-size:13px}
.exec-kpi small{color:#71829b;font-size:11px}
.exec-sports{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}
.exec-sport{display:inline-flex;font-size:12px;font-weight:720;border:1px solid #cfddf2;border-radius:40px;color:#355a85;padding:7px 12px}
.exec-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.exec-step{border:1px solid #dfe8f5;border-radius:11px;padding:19px;display:flex;flex-direction:column;min-height:190px}
.exec-step-top{display:flex;justify-content:space-between;align-items:center;gap:9px}
.exec-step-top b{font-size:12px;color:#3468b8}
.exec-step-top span{font-size:11px;color:#7887a0}
.exec-step h3{margin:12px 0 5px;font-size:15px;color:#263b58}
.exec-step p{color:#697d98;line-height:1.5;font-size:12px;flex:1;margin:0 0 15px}
.exec-step .button{align-self:flex-start}
.exec-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.exec-feature{display:flex;gap:13px;align-items:flex-start;padding:12px 0;border-bottom:1px solid #ecf1f7}
.exec-feature:last-child{border-bottom:0}
.exec-feature strong{font-size:13px}
.exec-feature p{color:#72839b;line-height:1.55;margin:4px 0 0;font-size:12px}
.exec-check,.exec-pending{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#e4f7f2;color:#12836e;font-size:13px;font-weight:800}
.exec-pending{background:#fff3e1;color:#b17d22}
.exec-roles{width:100%;min-width:625px;border-collapse:collapse;font-size:12px}
.exec-roles th,.exec-roles td{text-align:left;border-bottom:1px solid #e6edf6;padding:13px 10px}
.exec-roles thead th{background:#eef3fc;font-size:11px;color:#56708d}
.exec-roles tbody th{color:#244366}
.exec-roles tbody td:last-child{color:#9b671e}
.exec-warning{padding:15px;border-left:4px solid #cc8b35;background:#fff8ef;color:#66522f;line-height:1.65;font-size:12px;margin:19px 0 0}
.exec-footer{font-size:11px;color:#8090a4;text-align:center}
@media(max-width:850px){.exec-hero,.exec-columns{grid-template-columns:1fr}.exec-kpis,.exec-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:530px){.exec-hero{padding:22px}.exec-section{padding:17px}.exec-kpis,.exec-steps{grid-template-columns:1fr}.exec-hero-note{display:none}}
@media print{
  @page{size:A4;margin:14mm}
  body{background:#fff;font-size:11px}
  body:has(.exec-view) #app .sidebar,body:has(.exec-view) #app .topbar,body:has(.exec-view) .exec-hero-actions,
  body:has(.exec-view) .exec-step button,body:has(.exec-view) #app .section-footer{display:none!important}
  body:has(.exec-view) #app .main{width:100%!important}
  body:has(.exec-view) #app .main-body{max-width:none;padding:0}
  .exec-view{display:block;color:#1c2b43}
  .exec-hero{background:#152d50!important;print-color-adjust:exact;-webkit-print-color-adjust:exact;color:#fff!important;padding:20px;display:block}
  .exec-hero h1{font-size:23px}
  .exec-hero-note{display:none}
  .exec-section{box-shadow:none;border:1px solid #e2e9f2;break-inside:avoid;padding:15px;margin:13px 0}
  .exec-kpis,.exec-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .exec-kpi{padding:10px;break-inside:avoid}
  .exec-kpi strong{font-size:20px}
  .exec-step{min-height:100px;padding:9px;break-inside:avoid}
  .exec-step p{margin:0}
  .exec-columns{grid-template-columns:1fr 1fr;display:grid;gap:11px}
  .exec-feature{padding:5px 0}
  .exec-feature p{line-height:1.2}
  .exec-roles{min-width:0}
  .exec-roles th,.exec-roles td{padding:5px}
}


/* v1.6 — identidades y cuentas (solo si el módulo se habilita explícitamente) */
.auth-screen{min-height:100vh;width:100%;display:grid;place-items:center;background:radial-gradient(circle at 20% 12%,#eaf3ff,#f0f4fb 48%,#e8edf7);padding:18px}
.auth-card{width:min(100%,460px);background:white;border:1px solid #dce4f1;padding:35px;border-radius:19px;box-shadow:0 18px 65px #2341681b}
.auth-card header{display:flex;align-items:center;gap:13px;margin-bottom:26px}
.auth-card h1{font-size:23px;color:#1b3354;margin:0 0 5px}
.auth-card header p{font-size:12px;color:#8191a6;margin:0}
.auth-logo{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;color:white;background:linear-gradient(130deg,#2cbdcc,#3e66d7);font-size:24px;font-weight:900}
.auth-tabs{display:flex;gap:9px;margin-bottom:22px}
.auth-tabs .button{flex:1}
.auth-card form{display:grid;gap:15px}
.auth-card form label{display:grid;gap:7px;font-size:12px;color:#304967;font-weight:700}
.auth-card input,.account-card input,.account-card select,.account-card textarea{font:inherit;padding:10px 12px;border-radius:9px;border:1px solid #cdd9ea;background:white;min-width:0;color:#273e5b}
.auth-card form>.button{margin-top:6px}
.auth-card #auth-feedback{min-height:16px;font-size:12px;color:#a35421;margin:0;line-height:1.5}
.auth-note{color:#73849d;font-size:11px;line-height:1.6;margin:17px 0 0}
.account-card{margin-bottom:19px}
.account-card h2{font-size:17px;margin:0 0 11px}
.account-card>p{font-size:13px;color:#5e728c}
.account-actions{display:flex;flex-wrap:wrap;align-items:end;gap:13px;margin:15px 0}
.account-actions label{display:grid;gap:6px;font-size:11px;font-weight:700}
#account-invite{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0}
#account-invite label{display:grid;gap:6px;font-size:12px;font-weight:700}
#account-invite input{min-width:210px}
#account-invite .button{min-height:39px}
.account-invitation:empty{display:none}
.account-invitation{border:1px solid #d3e2f6;background:#f5f9ff;border-radius:9px;padding:13px;color:#314d76;font-size:12px;display:grid;gap:8px}
.account-invitation textarea{width:100%;font-family:monospace}
.account-members{margin-top:17px}
.account-members select{max-width:160px;font-size:11px;padding:7px}
.account-members td .button{margin-top:5px}
@media(max-width:560px){.auth-card{padding:23px}.auth-tabs{flex-wrap:wrap}#account-invite{display:grid;align-items:stretch}#account-invite input{min-width:0}}


/* Multiusuario: ocultar operaciones que el servidor rechaza al perfil de lectura.
 * Solo UX; las reglas de autorización reales residen en accessControl.mjs.
 */
#app[data-role="viewer"] [data-action="add"],
#app[data-role="viewer"] [data-action="edit"],
#app[data-role="viewer"] [data-action="delete"],
#app[data-role="viewer"] [data-action="attendance"],
#app[data-role="viewer"] [data-action="save-attendance"],
#app[data-role="viewer"] [data-action="plan-session"],
#app[data-role="viewer"] [data-action="template-save"],
#app[data-role="viewer"] [data-action="template-apply"],
#app[data-role="viewer"] [data-action="add-mark"],
#app[data-role="viewer"] [data-action="board-save"],
#app[data-role="viewer"] [data-action="board-delete-play"],
#app[data-role="viewer"] [data-action="board-clear-arrows"],
#app[data-role="viewer"] [data-action="board-add-frame"],
#app[data-role="viewer"] [data-action="board-remove-frame"],
#app[data-role="viewer"] [data-action="board-tool"],
#app[data-role="viewer"] [data-action="board-sport"],
#app[data-role="viewer"] #r2-upload-btn,
#app[data-role="viewer"] [data-clip="create"],
#app[data-role="viewer"] [data-clip="edit"],
#app[data-role="viewer"] [data-clip="delete"],
#app[data-role="viewer"] [data-clip="save"],
#app[data-role="viewer"] [data-clip="create-training"],
#app[data-role="viewer"] [data-annotation="create"],
#app[data-role="viewer"] [data-annotation="delete"]{display:none!important}


/* v1.6.1 — Formularios de cuentas legibles en escritorio, tablet y móvil.
   No altera autenticación, sesiones, roles ni datos del club. */
.account-card{padding:25px}
.account-card h2{margin-bottom:10px}
.account-card>p{line-height:1.5}
.account-card .account-actions{margin:18px 0 14px;align-items:end}
.account-card form{min-width:0}
.account-card form label{display:grid;gap:7px;min-width:0;font-size:12px;font-weight:700;color:#304967;line-height:1.35}
.account-card form input,
.account-card form select,
.account-card form textarea{width:100%;max-width:100%;box-sizing:border-box;min-height:42px;line-height:1.4}
.account-card form .button{min-height:42px;justify-self:start;white-space:normal;text-align:center}
#account-accept,#account-password,#account-recovery,#account-new-club,#account-invite{
  display:grid;align-items:end;gap:14px 17px;margin:18px 0 0;
}
#account-accept{grid-template-columns:minmax(240px,460px) max-content}
#account-password{grid-template-columns:repeat(2,minmax(220px,1fr));max-width:870px}
#account-password h3,#account-recovery h3{grid-column:1/-1;margin:0;font-size:15px}
#account-password .button{grid-column:1/-1}
#account-recovery{grid-template-columns:minmax(240px,460px) max-content;max-width:800px;padding-top:19px;border-top:1px solid #e7eef7}
#account-recovery h3,#account-recovery>p,#account-recovery-result{grid-column:1/-1}
#account-recovery>p{margin:0;line-height:1.6}
#account-recovery-result:not(:empty){display:grid;gap:9px;padding:14px;border:1px solid #cbddf4;border-radius:9px;background:#f5f9ff}
#account-recovery-result textarea{font-family:ui-monospace,Consolas,monospace;font-size:13px;min-height:190px}
#account-new-club{grid-template-columns:repeat(2,minmax(180px,1fr)) max-content}
#account-invite{grid-template-columns:minmax(240px,1.7fr) minmax(175px,1fr) max-content;max-width:880px}
.account-card .account-members{margin-top:20px}
.account-card .account-members td,.account-card .account-members th{vertical-align:middle}
.account-card .account-members td{white-space:normal;min-width:85px}
.account-card .account-members td:first-child{min-width:185px}
.account-card .account-members select{max-width:190px}
@media(max-width:840px){
 #account-new-club,#account-invite{grid-template-columns:repeat(2,minmax(0,1fr))}
 #account-new-club .button,#account-invite .button{grid-column:1/-1}
}
@media(max-width:650px){
 .account-card{padding:17px}
 #account-accept,#account-password,#account-recovery,#account-new-club,#account-invite{grid-template-columns:minmax(0,1fr);gap:12px}
 #account-accept .button,#account-password .button,#account-recovery .button,#account-new-club .button,#account-invite .button{grid-column:1;justify-self:stretch}
 #account-password h3,#account-recovery h3,#account-recovery>p,#account-recovery-result{grid-column:1}
 .account-card .account-actions{align-items:stretch}
 .account-card .account-actions label{width:100%}
 .account-card .account-actions select{width:100%}
}


/* v1.7 — espacios personales y organizaciones */
.workspace-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin:17px 0}
.workspace-line{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid #e1e9f4;border-radius:11px;padding:13px;background:#f7faff}
.workspace-line>div{display:grid;gap:5px;min-width:0}
.workspace-line strong{font-size:13px;overflow-wrap:anywhere}
.workspace-line small{font-size:11px;color:#71839b}
#account-workspace{display:grid;grid-template-columns:minmax(170px,1fr) minmax(180px,1.6fr) minmax(135px,.8fr);gap:12px;align-items:end}
#account-workspace .button{grid-column:1/-1}
@media(max-width:850px){#account-workspace{grid-template-columns:repeat(2,minmax(0,1fr))}#account-workspace .button{grid-column:1/-1}}
@media(max-width:600px){#account-workspace{grid-template-columns:minmax(0,1fr)}}


/* v1.8 — auto-registro y verificación de correo */
.auth-card .auth-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.auth-card .auth-tabs .button{width:100%;min-width:0;font-size:12px;white-space:normal;min-height:39px}
.auth-verify h2{font-size:18px;color:#234366;margin:10px 0}
.auth-verify>p{font-size:13px;line-height:1.55;color:#667d99}
.auth-verify form{margin-top:16px}
.auth-verify input{width:100%;box-sizing:border-box}
.auth-card form input{width:100%;max-width:100%;box-sizing:border-box}
.auth-card #auth-feedback{overflow-wrap:anywhere;line-height:1.6}


/* v1.9 — Administración comercial de SYNKA Sports */
.billing-search-label{display:grid;gap:7px;font-size:12px;font-weight:700;color:#304967;max-width:420px;margin:16px 0}
.billing-search-label input{width:100%;min-height:43px;box-sizing:border-box;border-radius:9px;padding:9px 12px;border:1px solid #d7e1ef}
.billing-table td{vertical-align:middle;min-width:100px}
.billing-table td:first-child{min-width:180px}
.billing-table td:nth-child(2){min-width:170px;overflow-wrap:anywhere}
.billing-editor{margin-top:24px;padding:19px;border:1px solid #d9e4f2;border-radius:12px;background:#f8faff}
.billing-editor h3{margin:0 0 8px;font-size:16px}
#billing-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;margin-top:16px}
#billing-form label{display:grid;gap:7px;font-size:12px;font-weight:700;color:#304967}
#billing-form input,#billing-form select{width:100%;box-sizing:border-box;min-height:42px;border:1px solid #dae4f0;border-radius:8px;padding:10px}
#billing-form .billing-reason,#billing-form .account-actions{grid-column:1/-1}
@media(max-width:700px){#billing-form{grid-template-columns:1fr}.billing-editor{padding:14px}}

/* v1.10: auditoría y diagnóstico sin datos privados */
.billing-detail{margin:12px 0 18px;padding:12px;border:1px solid #dae4f0;border-radius:10px;background:#fff;overflow-wrap:anywhere}
.billing-detail:empty{display:none}
.billing-detail h4{margin:0 0 10px}
.billing-diagnostic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}
.billing-diagnostic-grid>div{display:flex;flex-direction:column;gap:4px;padding:12px;background:#f4f7fc;border-radius:8px}
.billing-diagnostic-grid strong{font-size:19px;color:#173351}
.billing-diagnostic-grid span{font-size:11px;color:#5c728d}


/* Agenda y análisis visual: FullCalendar Standard y Chart.js */
.sports-calendar{min-height:330px}
.sports-calendar .fc{font-family:inherit;--fc-border-color:#e0e8f2;--fc-today-bg-color:#ecf3ff;--fc-event-bg-color:#3868e6;--fc-event-border-color:#3868e6}
.sports-calendar .fc-toolbar{display:flex;flex-wrap:wrap;gap:10px}
.sports-calendar .fc-toolbar-title{font-size:17px!important;color:#213755}
.sports-calendar .fc-button-primary{background:#3b67e8!important;border-color:#3b67e8!important;font-size:12px!important}
.sports-calendar .fc-event{cursor:pointer}
.sports-calendar .fc-daygrid-day-number{font-size:12px}
.sport-graph-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:16px 0}
.sport-graph-filters label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#425975}
.sport-graph-filters select{width:100%;min-height:42px;padding:8px;border:1px solid #d7e1ef;border-radius:8px;background:#fff}
.sport-graph-box{height:290px;width:100%;position:relative}
@media(max-width:700px){.sport-graph-filters{grid-template-columns:1fr}.sports-calendar .fc-toolbar{flex-direction:column;align-items:stretch}.sports-calendar .fc-header-toolbar{gap:12px}.sports-calendar .fc-toolbar-chunk{display:flex;justify-content:center}}


/* Centro de soporte para usuarios y Superadministrador */
.support-form{display:grid;gap:12px;margin-bottom:24px;padding:17px;background:#f8faff;border:1px solid #e4eaf4;border-radius:12px}
.support-form label,#support-reply label{display:grid;gap:6px;color:#526782;font-size:12px;font-weight:750}
.support-form input,.support-form textarea,#support-reply textarea{width:100%;padding:10px 12px;border:1px solid #d7e1ed;background:#fff;border-radius:9px;font-size:13px;color:#233953}
.support-form .button,#support-reply .button{justify-self:start}
.support-ticket-list{display:grid;gap:8px}
.support-ticket{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:13px;border:1px solid #e0e7f1;border-radius:10px;background:#fff;text-align:left;color:#253852}
.support-ticket:hover{background:#f6f9ff}
.support-ticket strong,.support-ticket small{display:block}
.support-ticket small{margin-top:4px;color:#8293a8;font-size:11px}
#support-thread{margin-top:20px}
.support-thread-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.support-messages{display:grid;gap:11px;margin-bottom:15px}
.support-message{padding:15px;border-radius:10px;background:#f5f7fb;border:1px solid #e6eaf0}
.support-message.from-support{background:#edf4ff;border-color:#d3e3fb}
.support-message>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.support-message strong{font-size:12px}.support-message small{color:#8193a9;font-size:11px}
.support-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin:9px 0 0;font-size:12px}
#support-reply{display:grid;gap:12px;margin-bottom:13px}


/* Inicio guiado y aviso transparente de vencimiento */
.onboarding-panel{margin-bottom:20px;border-color:#dbe7fc}
.onboarding-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.onboarding-step{display:flex;flex-direction:column;gap:10px;padding:13px;border:1px solid #e3e9f3;border-radius:10px;background:#f9fbff;min-width:0}
.onboarding-step>span{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#e7eeff;color:#385fce;font-weight:800}
.onboarding-step strong{font-size:12px;line-height:1.4}
.onboarding-step .button{align-self:flex-start}
.onboarding-step.done{opacity:.75}
.onboarding-step.done>span{background:#e6f6eb;color:#187953}
.trial-remaining{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:850px){.onboarding-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.onboarding-steps{grid-template-columns:1fr}}


/* Catálogo comercial SYNKA Sports */
.commercial-plan-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:18px 0}
.commercial-plan{border:1px solid #dce7f6;border-radius:12px;padding:16px;background:#fafcff}
.commercial-plan>div{display:flex;align-items:center;justify-content:space-between;gap:6px}
.commercial-plan p{margin:10px 0;color:#637790}
.commercial-plan .commercial-price{font-size:22px;font-weight:800;color:#1b3d78}
.commercial-plan .commercial-price small{font-size:12px;font-weight:500}
.commercial-plan-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border-top:1px solid #e5eafa;padding-top:20px;margin:24px 0}
.commercial-plan-form h3,.commercial-plan-form>.account-actions{grid-column:1/-1}
.commercial-plan-form label{font-size:12px;font-weight:700;color:#334c6c;display:flex;flex-direction:column;gap:6px}
.commercial-plan-form input:not([type=checkbox]),.commercial-plan-form select,.commercial-assign select{padding:11px;min-height:42px;border-radius:8px;border:1px solid #d8e3f0;background:white;max-width:100%;width:100%}
.commercial-plan-form label:has([type=checkbox]){flex-direction:row;align-items:center}
.commercial-assign{border-top:1px solid #e5eafa;padding-top:16px}
@media(max-width:850px){.commercial-plan-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.commercial-plan-form{grid-template-columns:1fr}}


/* Biblioteca de ideas de entrenamiento */
.preset-search{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin:16px 0}
.preset-search label{display:flex;flex-direction:column;gap:6px;color:#526783;font-size:12px;font-weight:700}
.preset-search input,.preset-search select{min-height:42px;width:100%;border:1px solid #d8e3f0;border-radius:9px;padding:10px;background:#fff;color:#24395a}
.preset-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.preset-item{border:1px solid #dee7f3;border-radius:12px;padding:15px;background:#fbfdff;display:flex;flex-direction:column;gap:12px}
.preset-item>div{display:flex;justify-content:space-between;align-items:center;gap:9px}
.preset-item h3{margin:0;font-size:15px}
.preset-item p{font-size:12px;line-height:1.58;color:#51647e;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;flex:1}
.preset-item .button{align-self:flex-start}
.preset-item[hidden]{display:none}
@media(max-width:650px){.preset-search{grid-template-columns:1fr}}

/* Filtros avanzados y metadatos de ejercicios: catálogo multideporte v2 */
.preset-search{grid-template-columns:minmax(200px,2fr) repeat(3,minmax(130px,1fr))}
.preset-item .preset-meta{font-size:11px;color:#526783;margin:0;flex:0 0 auto}
.preset-item .preset-meta strong{color:#27405e}
@media(max-width:980px){.preset-search{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.preset-search{grid-template-columns:1fr}}

/* Resumen de asistencia: métricas sin inferir ausencias */
.attendance-insights{margin-bottom:20px}
.attendance-insights h3{margin:20px 0 12px;font-size:15px}
.attendance-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.attendance-controls label{display:grid;gap:5px;font-size:12px;color:#4e6482}
.attendance-controls select{min-height:34px;border:1px solid #d8e3f0;background:white;border-radius:8px;padding:5px}
.attendance-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.attendance-metrics>div{border:1px solid #dce7f6;background:#fafcff;padding:15px 12px;border-radius:11px;display:grid;gap:6px}
.attendance-metrics b{font-size:21px;color:#23477d}
.attendance-metrics span{font-size:11px;color:#566d88;line-height:1.4}
.attendance-key{font-size:12px;background:#f3f7fe;padding:12px;border-radius:8px;color:#526881}
@media(max-width:850px){.attendance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.attendance-metrics{grid-template-columns:1fr}}

/* Importación de deportistas: vista previa legible y adaptable */
.athlete-import-panel{margin-bottom:20px}
.athlete-import-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.athlete-import-controls label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#395472}
.athlete-import-controls select,.athlete-import-controls input{border:1px solid #d8e3f0;border-radius:8px;padding:10px;max-width:100%}
#confirm-import{margin-top:12px}
@media(max-width:600px){.athlete-import-controls{grid-template-columns:1fr}}

/* Biblioteca oficial: cinco filtros sin desbordamiento en pantallas estrechas */
@media(min-width:1101px){.preset-search{grid-template-columns:minmax(190px,2fr) repeat(4,minmax(115px,1fr))}}
@media(min-width:651px) and (max-width:1100px){.preset-search{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.preset-search{grid-template-columns:1fr}}

/* Vistas ilustrativas de ejercicios, sin recursos de terceros */
.preset-diagram{overflow:hidden;border-radius:10px;border:1px solid #d7e5ed;background:#edf4f9;margin:9px 0 10px}
.preset-diagram svg{width:100%;height:auto;max-height:170px;display:block}
.preset-diagram span{display:block;font-size:10px;padding:5px 8px;color:#506883;background:#f6f9fb;line-height:1.45}

/* Pantallas adicionales: el estilo visual sigue el diseño nativo de SYNKA */
.wellness-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.wellness-controls label,.team-update label,#updates-form label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#35506f}
.wellness-controls select,#updates-form input,#updates-form textarea,#updates-team,#wellness-team{border:1px solid #d7e4f0;border-radius:9px;padding:10px;background:#fff;color:#253e61;max-width:100%}
.wellness-consent{display:flex;align-items:start;gap:8px;font-size:12px;margin:12px 0;line-height:1.55;color:#405975}
#updates-form{display:grid;gap:10px;margin:16px 0}
#updates-form textarea{min-height:80px;resize:vertical}
.team-update{border:1px solid #e0e8f3;border-radius:10px;padding:12px;margin:10px 0;background:#fbfdff}
.team-update p{margin:7px 0;white-space:pre-wrap;color:#4c6583;overflow-wrap:anywhere}
.team-update button{margin-left:12px}
@media(max-width:730px){.wellness-controls{grid-template-columns:1fr}}

/* Drill library v3: diagram spans full card; preview modal is accessible */
.preset-item .preset-preview-trigger{display:block;width:100%;text-align:left;border:0;padding:0;margin:0;background:none;color:#24558c;cursor:pointer;flex:0 0 auto}
.preset-item .preset-preview-trigger:focus-visible{outline:3px solid #4076f5;outline-offset:3px;border-radius:10px}
.preset-preview-trigger>.preset-diagram{display:block;width:100%;margin:0;border-radius:9px}
.preset-preview-trigger>.preset-diagram svg{width:100%;height:auto;max-height:190px;aspect-ratio:300 / 170;display:block}
.preset-preview-trigger>.preset-diagram span{display:none}
.preset-preview-trigger>span{display:block;margin-top:6px;font-size:11px;font-weight:650}
.preset-item .preset-meta{flex:0 0 auto}
.drill-detail-modal{width:min(800px,94vw);max-height:min(90vh,850px);overflow:auto}
.drill-detail{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px}
.drill-detail-visual .preset-diagram{display:block;width:100%;margin:0}
.drill-detail-visual .preset-diagram svg{max-height:none;width:100%;aspect-ratio:300/170}
.drill-detail-tags{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.drill-detail-body h3{font-size:15px;margin:15px 0 8px}
.drill-detail-body p{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.drill-detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
.drill-detail-modal .modal-body{max-height:none}
#attach-drill-form .plan-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:15px}
#attach-drill-form .plan-label{display:grid;gap:6px}
#attach-drill-form select,#attach-drill-form input{width:100%;min-height:40px;border:1px solid #d9e5f2;border-radius:8px;background:#fff;color:#243957;padding:8px}
@media(max-width:720px){.drill-detail{grid-template-columns:1fr}.drill-detail-visual .preset-diagram svg{max-height:280px}#attach-drill-form .plan-fields{grid-template-columns:1fr}}

/* Editor táctico v4: acciones legibles, atajos y selector de ejercicios */
.board-tool:disabled{opacity:.4;cursor:not-allowed}
.board-tool:focus-visible,.timeline-step:focus-visible{outline:3px solid #4274f3;outline-offset:2px}
.board-toolbar{gap:7px}
.board-side .board-help{line-height:1.8}
.plan-picker{display:grid;grid-template-columns:minmax(170px,1.2fr) minmax(160px,1fr);gap:12px;margin:15px 0}
.plan-picker .plan-label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#3b526f}
.plan-picker input,.plan-picker select{width:100%;min-height:40px;padding:9px;border:1px solid #dce5ef;border-radius:9px;background:#fff;color:#263a56}
.plan-modal{width:min(780px,96vw)}
.plan-modal .modal-foot{flex-wrap:wrap}
@media(max-width:660px){.plan-picker{grid-template-columns:1fr}.board-toolbar{gap:5px}.board-tool{padding:7px 8px}}

/* Pizarra táctica avanzada: controles multi-herramienta y punteros táctiles */
.board-header{align-items:flex-start}
.board-toolbar{max-height:170px;overflow-y:auto;align-items:center;scrollbar-width:thin}
.board-tool{white-space:nowrap;min-height:31px}
.board-colors{display:inline-flex;gap:5px;align-items:center;padding:3px 7px;border-left:1px solid #dfe8f4}
.board-swatch{width:27px;height:27px;flex:0 0 27px;border:2px solid white;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px #a8b6cc;cursor:pointer}
.board-swatch.selected{box-shadow:0 0 0 3px #416ee8}
.board-swatch:focus-visible{outline:3px solid #416ee8;outline-offset:3px}
.board-svg .board-object{cursor:grab}
.board-svg .board-object:active{cursor:grabbing}
.board-playback-select,.board-loop-check{display:inline-flex;align-items:center;gap:6px}
.board-playback-select select{padding:6px 7px;background:#fff;border:1px solid #dce4ef;border-radius:7px;color:#24446b}
.board-loop-check input{accent-color:#416ee8}
@media(max-width:660px){.board-toolbar{max-height:200px}.board-swatch{width:25px;height:25px;flex-basis:25px}}

/* Pizarra v6: formación, selección de elementos y presentación inmersiva */
.board-formation-label{display:grid;gap:7px;margin:12px 0;font-size:12px;font-weight:700;color:#415a77}
.board-formation-label select{width:100%;min-height:39px;border:1px solid #dae4f1;border-radius:9px;padding:8px;background:#fff;color:#24436a}
.board-object.selected{filter:drop-shadow(0px 0px 7px #fff);outline:none}
.board-svg .board-object.selected{stroke:#fff}
.board-presenting .board-area{position:fixed!important;inset:0;z-index:99998;background:#12263c;display:flex;flex-direction:column;overflow:auto;border-radius:0;padding:8px}
.board-presenting .board-area .board-header{background:#edf3fc;flex-shrink:0}
.board-presenting .board-area .pitch-wrap{flex:1;display:grid;place-items:center;background:#12263c;min-height:0}
.board-presenting .board-area .board-svg{width:min(100%,calc(78vh * 1.6667));max-height:78vh;aspect-ratio:5/3}
.board-presenting .board-area .timeline{background:#edf3fc;flex-shrink:0}
.board-presenting .board-area:after{content:'Pulsa Esc para salir del modo presentación';display:block;font-size:11px;text-align:center;color:#d7e4f2;background:#12263c;padding:5px}
@media(max-width:700px){.board-presenting .board-area .pitch-wrap{flex:initial;min-height:280px}.board-presenting .board-area .board-svg{width:100%}}

/* Trayectorias curvas y orden de capas, pizarra táctica */
.board-curve-handle{cursor:grab;touch-action:none;filter:drop-shadow(0 1px 3px #142d5b)}
.board-curve-handle:active{cursor:grabbing}
.board-svg{touch-action:none}
.board-svg .board-object[data-kind="pass"],
.board-svg .board-object[data-kind="run"],
.board-svg .board-object[data-kind="dribble"],
.board-svg .board-object[data-kind="shot"]{cursor:pointer}
.board-toolbar [data-action="board-curve"]{border-style:dashed}
.board-toolbar [data-action="board-layer-up"],
.board-toolbar [data-action="board-layer-down"]{min-width:82px}

/* Pulido de pizarra: edición visual solo cuando un elemento está seleccionado */
.board-svg .board-curve-handle{opacity:0;pointer-events:none;transition:opacity .12s ease}
.board-svg .board-object.selected .board-curve-handle{opacity:1;pointer-events:auto}
.board-organize{border-color:#b8d5f4!important;background:#eef6ff!important;color:#2859a0!important}
.board-progress{display:flex;align-items:center;gap:8px;flex:1 1 145px;min-width:145px;max-width:220px;margin-left:auto}
.board-progress-track{background:#edf1f7;border-radius:99px;height:7px;overflow:hidden;flex:1}
#board-progress-fill{height:100%;width:0%;display:block;background:#547df1;border-radius:99px;transition:width .08s linear}
#board-progress-text{white-space:nowrap;min-width:70px;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:720px){.board-progress{flex-basis:100%;max-width:none;margin-left:0}.board-toolbar{max-height:175px}}

/* Visual selector de posesión y pases guiados */
.board-picker-dialog{width:min(560px,94vw);max-height:88vh;overflow:auto}
.board-player-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:10px}
.board-player-choice{display:grid;place-items:center;gap:5px;padding:10px 6px;background:#f5f8fc;border:1px solid #d9e3f0;border-radius:12px;color:#324860;cursor:pointer;font:inherit;font-size:12px}
.board-player-choice:hover{background:#eaf2ff;border-color:#81a7e8}
.board-player-choice:focus-visible{outline:3px solid #416ee8;outline-offset:2px}
.board-player-number{display:grid;place-items:center;border-radius:50%;width:42px;height:42px;font-weight:800;color:#fff;font-size:16px;background:#356ccf}
.board-player-number.side-b{background:#dfaa40;color:#2f3440}
.board-picker-curve{display:flex;gap:9px;align-items:center;margin-top:18px;font-weight:650;font-size:13px}
.board-picker-curve input{accent-color:#4675df;width:16px;height:16px}
@media(max-width:540px){.board-player-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Pizarra v9: selección múltiple con controles visibles y ficha táctica */
.board-svg .board-object.selected{filter:drop-shadow(0 0 7px rgba(255,255,255,.9))}
.board-svg .board-object.selected .board-curve-handle{opacity:1;pointer-events:auto}
.board-toolbar [data-action="board-group-copy"],
.board-toolbar [data-action="board-group-delete"]{font-weight:650}
.board-session-dialog{width:min(540px,94vw)}
.board-session-select{width:100%;min-height:42px;border:1px solid #d4e1f0;border-radius:9px;padding:9px 12px;background:#fff;color:#24426c}
.board-session-select:focus-visible{outline:3px solid #5079e9;outline-offset:2px}

/* Pizarra v10: selección táctil por rectángulo y progreso de video */
.board-marquee-selection{fill:#6ea9ff33;stroke:#d9ecff;stroke-width:3;stroke-dasharray:12 8;pointer-events:none}
.board-toolbar [data-action="board-touch-select"].active{background:#dfeeff;color:#2152a0;border-color:#427bea}
.board-toolbar [data-action="board-touch-select"]{min-height:38px}
[data-action="board-video"][disabled]{opacity:.65;cursor:progress}
@media(pointer:coarse){.board-svg .board-object{touch-action:none}.board-toolbar [data-action="board-touch-select"]{min-height:45px}}

/* Pizarra v11: ritmo por transición y referencias de jugadas en sesiones */
.board-step-duration{display:inline-flex;align-items:center;gap:5px}
.board-step-duration select{border:1px solid #d7e2ef;border-radius:7px;background:#fff;color:#25436b;padding:6px 8px;min-height:34px}
.board-step-duration select:disabled{opacity:.55}
.plan-play-references{border-top:1px solid #dce5f0;margin-top:18px;padding-top:14px}
.plan-play-references h3{font-size:15px;margin:0 0 7px}
.plan-play-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px;max-height:180px;overflow:auto;padding:7px 2px}
.plan-play-option{display:flex;gap:8px;align-items:center;font-size:12px;padding:9px;border:1px solid #dbe5f0;border-radius:9px;cursor:pointer}
.plan-play-option:has(input:checked){border-color:#507de7;background:#eef4ff}
.plan-play-option input{accent-color:#5278e6}

/* SYNKA Sports v12: vista previa de diagramas en el constructor de entrenamientos */
.plan-play-card{border:1px solid #dce5f2;border-radius:10px;min-width:0;padding:6px;background:#fcfdff}
.plan-play-card .plan-play-option{border:0;padding:4px 6px}
.plan-play-card>.button{margin:4px 0 0 3px;min-height:30px}
.plan-storyboard-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:9px 0 0}
.plan-storyboard-preview figure{margin:0;min-width:0}
.plan-storyboard-preview img{width:100%;aspect-ratio:5/3;display:block;border-radius:6px;background:#25854e}
.plan-storyboard-preview figcaption{font-size:11px;color:#677a95;margin-top:4px}
.plan-play-list{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}

/* SYNKA Sports v13: reproductor táctico dentro del Constructor de sesión */
.session-rehearsal-modal{width:min(960px,96vw);max-width:960px;max-height:94vh;overflow:auto}
.session-rehearsal-modal .modal-body{padding:14px 18px}
.session-rehearsal-stage{background:#e8eff7;border:1px solid #d7e1ef;border-radius:10px;overflow:hidden}
.session-rehearsal-stage img{display:block;width:100%;aspect-ratio:5/3;object-fit:contain}
.session-rehearsal-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding-top:14px}
.session-rehearsal-controls input[type=range]{flex:1 1 165px;min-width:90px;accent-color:#5079e9}
.session-rehearsal-controls select{background:#fff;border:1px solid #cbd9e8;border-radius:6px;padding:7px}
.session-rehearsal-controls label{display:flex;gap:5px;align-items:center;font-size:12px}
.session-rehearsal-controls button{min-height:38px}
.session-rehearsal-time{font-size:12px;min-width:82px;font-variant-numeric:tabular-nums;color:#4c668b}
.plan-play-card .button{margin:4px 3px 0}
@media(max-width:600px){.session-rehearsal-modal{max-height:90vh}.session-rehearsal-stage img{aspect-ratio:5/3}.session-rehearsal-controls{gap:7px}.session-rehearsal-controls input[type=range]{order:2;flex-basis:100%}}

/* SYNKA Sports v14: línea temporal y conducción guiada de entrenamientos */
.plan-runofshow{background:#f7faff;border:1px solid #dce6f5;padding:13px;border-radius:11px;margin-bottom:16px}
.plan-runofshow h3{font-size:15px;margin:0 0 9px;color:#234676}
.plan-runofshow-rows{display:grid;gap:7px}
.plan-runofshow-item{display:flex;align-items:center;gap:12px;border-left:3px solid #668de9;padding:8px;background:#fff;border-radius:5px}
.plan-runofshow-clock{font-weight:750;font-size:12px;min-width:107px;color:#3d66a6;font-variant-numeric:tabular-nums}
.plan-runofshow-label{display:flex;gap:8px;flex-wrap:wrap;font-size:12px}
.plan-runofshow-label span{color:#6d7d90}
.plan-runofshow-error{background:#fff7ed;border-color:#efb97c}
.session-field-modal{width:min(920px,96vw);max-width:920px;max-height:94vh;overflow:auto}
.session-field-modal .modal-body{padding:15px 19px}
.field-overview{background:#f4f8ff;border:1px solid #dce6f2;border-radius:13px;padding:18px;text-align:center}
.field-status{font-weight:800;font-size:19px;color:#1a3763}
.field-phase{text-transform:uppercase;letter-spacing:.07em;color:#5976a4;font-size:12px;margin:4px 0}
.field-timer{display:block;font-variant-numeric:tabular-nums;font-size:clamp(48px,10vw,100px);line-height:1.2;color:#2859bf}
.field-elapsed,.field-schedule{font-size:13px;color:#61728b}
.field-progress{height:10px;overflow:hidden;border-radius:99px;background:#dbe5f4;margin:15px auto;max-width:570px}
.field-progress-fill{display:block;width:0;height:100%;background:#416fe3;transition:width .1s linear}
.field-details{font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere}
.field-notes{font-size:14px;color:#344d74;font-weight:650}
.field-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:14px 0}
.field-controls .button{min-height:42px}
.field-playbox{border-top:1px solid #dce5ee;padding-top:14px}
.field-playbox h3{font-size:15px;margin:0 0 6px}
.field-playbuttons{display:flex;flex-wrap:wrap;gap:7px}
@media(max-width:600px){.plan-runofshow-item{align-items:start;flex-direction:column;gap:4px}.session-field-modal{max-height:90vh}.field-controls .button{flex:1 1 135px}}

/* SYNKA Sports v15 — cierre técnico de entrenamientos y encuesta voluntaria en HTML */
.session-closure-dialog{width:min(940px,96vw);max-width:940px;max-height:94vh;overflow:auto}
.session-closure-dialog .modal-body{padding:18px}
.closure-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:9px;margin:15px 0}
.closure-metric{display:flex;flex-direction:column;gap:2px;padding:12px;background:#f0f6ff;border:1px solid #d5e3f6;border-radius:10px;text-align:center}
.closure-metric b{font-size:22px;color:#305bb0}
.closure-metric span{font-size:11px;color:#61728a}
.closure-rows{display:grid;gap:12px;margin-bottom:18px}
.closure-block{border:1px solid #dce5ef;border-radius:11px;padding:13px;background:#fff}
.closure-block-head{display:flex;align-items:flex-start;gap:8px;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}
.closure-block-head strong{font-size:14px;color:#203f70}
.closure-block-head span{font-size:12px;color:#657b96}
.closure-block-fields{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:10px}
.closure-block label,.closure-overview-label{display:flex;flex-direction:column;gap:5px;font-weight:650;font-size:12px}
.closure-block input,.closure-block select,.closure-block textarea,.closure-overview-label textarea{box-sizing:border-box;width:100%;border:1px solid #cad9eb;border-radius:7px;min-height:39px;padding:8px;background:#fff;color:#24364e;font:inherit}
.closure-block textarea,.closure-overview-label textarea{resize:vertical}
.closure-block input:disabled{background:#edf0f5;color:#7a8ba2}
.session-closure-dialog .modal-foot{display:flex;flex-wrap:wrap;gap:7px}
.session-closure-dialog .modal-foot button{min-height:38px}
@media(max-width:570px){.closure-block-fields{grid-template-columns:1fr}.session-closure-dialog{max-height:90vh}.closure-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Agenda v16: acceso claro al constructor sin confundir partidos con entrenamientos */
.session-builder-entry{margin:0 0 20px;border:1px solid #d9e4f5}
.session-builder-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.session-builder-head h2{font-size:20px;margin:5px 0 6px}
.session-builder-head p{margin:0;color:#526985;max-width:750px;font-size:13px;line-height:1.5}
.session-builder-head>.button{min-height:42px;white-space:normal}
.session-builder-list{display:grid;gap:9px;margin-top:16px}
.session-builder-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#f5f8ff;border:1px solid #e1e9f6;border-radius:10px}
.session-builder-item strong{font-size:14px;color:#25416f}
.session-builder-empty{margin:16px 0 0;padding:13px 14px;border-radius:9px;background:#f2f6ff;color:#496388;font-size:13px}
@media(max-width:680px){.session-builder-head{align-items:stretch}.session-builder-head>.button{width:100%}.session-builder-item{align-items:stretch;flex-direction:column}.session-builder-item>.button{width:100%}}

/* v17 — inicio guiado y reordenamiento de ejercicios en el constructor */
.plan-quickstart{border:1px dashed #9ab6ec;border-radius:11px;background:#f5f9ff;padding:14px;margin:14px 0}
.plan-quickstart h3{font-size:15px;margin:0 0 5px;color:#2e5594}
.plan-quickstart>.tinytext{margin:4px 0 10px}
.plan-quickstart-preview{margin-top:10px}
.plan-quickstart-item{border-left:3px solid #6f94dc;background:#fff;margin:5px 0;padding:7px 10px;border-radius:5px;font-size:12px}
.plan-quickstart-preview>.button{margin:5px 7px 0 0}
.plan-drag-handle{cursor:grab;touch-action:manipulation;min-width:86px}
.plan-drag-handle:active{cursor:grabbing}
.plan-row-dragging{opacity:.5}
.plan-row-target{outline:2px solid #5480e9;outline-offset:2px;background:#eff5ff}
@media(pointer:coarse){.plan-drag-handle{cursor:default}}

/* v18 — historial portable y comparaciones técnicas de entrenamientos */
.session-builder-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.closure-history-modal{width:min(960px,96vw);max-width:960px;max-height:92vh;overflow:auto}
.closure-history-modal .modal-body{padding:16px}
.closure-history-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0}
.closure-history-toolbar select{border:1px solid #ccd9e9;background:white;padding:9px;border-radius:8px;max-width:250px}
.closure-history-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:9px;margin-bottom:17px}
.closure-history-metric{padding:13px 10px;background:#f1f6ff;border:1px solid #dbe7f7;border-radius:9px;text-align:center}
.closure-history-metric b{display:block;font-size:21px;color:#315db1}
.closure-history-metric span{display:block;font-size:11px;color:#5f7893}
.closure-history-results{display:grid;gap:9px}
.closure-history-row{padding:13px;border:1px solid #d9e5f3;border-radius:10px;background:#fff}
.closure-history-row-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.closure-history-row-head strong,.closure-history-row-head span{display:block}
.closure-history-comparison{display:flex;flex-wrap:wrap;gap:8px;margin:11px 0;font-size:12px}
.closure-history-comparison span{padding:5px 8px;border-radius:7px;background:#f3f6fc}
.closure-history-row details{border-top:1px solid #e2eaf4;padding-top:9px}
.closure-history-row summary{cursor:pointer;color:#2c58a1;font-size:12px}
.closure-history-blocks p{font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}
.closure-history-empty{padding:16px;background:#f5f8ff;color:#607590;border-radius:8px;font-size:13px}
@media(max-width:700px){.session-builder-actions{width:100%;justify-content:stretch}.session-builder-actions>.button{width:100%}.closure-history-toolbar>*{flex:1 1 155px}}

/* v19 — tendencias locales del historial técnico */
.closure-history-dates{display:flex;gap:6px;flex-wrap:wrap}
.closure-history-dates input{border:1px solid #ccd9e9;background:#fff;padding:8px;border-radius:8px;max-width:165px;color:#23446d}
.closure-history-trends{margin:14px 0 20px;padding:15px;border:1px solid #d9e5f3;border-radius:12px;background:#f8fbff}
.closure-history-trends h3{margin:0 0 7px;font-size:16px;color:#244e8a}
.closure-history-trends>.tinytext{line-height:1.5}
.closure-history-trend-rows{display:grid;gap:12px;margin-top:12px}
.closure-history-trend-item{background:white;padding:11px;border:1px solid #e0e9f4;border-radius:9px}
.closure-history-trend-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;margin-bottom:8px;color:#24466c}
.closure-history-trend-track{height:11px;border-radius:20px;background:#e4eaf4;overflow:hidden}
.closure-history-trend-fill{display:block;height:100%;background:#427de4;border-radius:20px}
.closure-history-trend-item>.tinytext{margin:9px 0 0;line-height:1.55;overflow-wrap:anywhere}
@media(max-width:700px){.closure-history-dates{width:100%}.closure-history-dates input{flex:1 1 130px;max-width:none}}


/* SYNKA Video Studio v20 — análisis sobre los videos existentes */
.video-studio-panel{border:1px solid #cbdaf0;background:linear-gradient(140deg,#f8fbff,#edf5ff);border-radius:13px;padding:16px;margin:18px 0 9px;min-width:0}
.studio-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.studio-head h2{margin:0 0 5px;color:#1b396b;font-size:18px}
.studio-head p{line-height:1.45;margin:0}
.studio-count{background:#dbeaff;color:#284c86;font-size:11px;font-weight:700;border-radius:20px;padding:7px 11px}
.studio-quick{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0 12px}
.studio-quick .button{border-color:#96b9ef;background:#fff;color:#24518b;min-height:39px}
.studio-quick .button:hover:not(:disabled){background:#e0eeff}
.studio-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.studio-tools input,.studio-tools select{border:1px solid #bbcee8;border-radius:8px;padding:9px;background:white;color:#28415f;min-height:38px}
.studio-tools .studio-search{flex:1 1 185px;min-width:0}
.studio-tools select{max-width:155px}
.studio-ruler{padding:13px 10px;background:#fff;border:1px solid #d4e3f5;border-radius:10px;margin:0 0 12px}
.studio-track{position:relative;height:27px;border-radius:6px;background:linear-gradient(180deg,#e2eaf6,#cfdef1);margin:8px 5px}
.studio-point{position:absolute;top:5px;height:16px;min-width:7px;transform:translateX(-50%);border:1px solid #fff;border-radius:6px;background:#3387d5;padding:0;box-shadow:0 1px 3px #1c396a55;z-index:2}
.studio-point.studio-clip{background:#6a58dc;border-radius:4px;transform:none}
.studio-point.studio-annotation{background:#e5ad19}
.studio-point:focus-visible{outline:3px solid #142f63;outline-offset:3px}
.studio-needle{position:absolute;top:-5px;bottom:-5px;width:2px;background:#ef4444;pointer-events:none;z-index:3}
.studio-ticks{display:flex;justify-content:space-between;font-size:10px;color:#516a88;font-variant-numeric:tabular-nums}
.studio-rows{max-height:270px;overflow:auto;display:grid;gap:5px}
.studio-event{display:flex;gap:8px;align-items:center;border:1px solid #dde8f6;border-radius:8px;background:#fff;padding:8px 10px;min-width:0}
.studio-kind{font-size:10px;font-weight:700;color:#395b83;min-width:64px}
.studio-event-title{flex:1;min-width:0;overflow-wrap:anywhere}
.studio-event-title strong{font-size:12px;color:#274268;display:block}
.studio-event-title .tinytext{display:block;margin-top:4px}
.studio-status{color:#466387;margin:12px 0 0;line-height:1.5}
@media(max-width:640px){.video-studio-panel{padding:12px}.studio-tools>*{flex:1 1 110px}.studio-tools input.studio-search{flex-basis:100%}.studio-event{flex-wrap:wrap}.studio-event-title{flex-basis:60%}.studio-kind{min-width:58px}}


/* v20.1 — mesa de análisis: tres carriles y controles de reproducción */
.studio-player-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0 2px}
.studio-player-controls .button{border-color:#b4c9e7;background:#fff;color:#214c85;min-height:36px}
.studio-timecode{font-variant-numeric:tabular-nums;font-weight:700;color:#234771;padding:8px 10px;border-radius:8px;background:#e5effc;white-space:nowrap}
.studio-lane{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:10px;margin:8px 0}
.studio-lane-name{font-size:11px;font-weight:750;color:#3d5780}
.studio-lane .studio-track{width:auto;margin:0;cursor:crosshair}
.studio-lane .studio-track:hover{background:linear-gradient(180deg,#d5e6fa,#bdd5f2)}
.studio-lane .studio-point{cursor:pointer}
.studio-ticks{margin-left:92px}
@media(max-width:600px){.studio-lane{grid-template-columns:62px minmax(0,1fr);gap:7px}.studio-ticks{margin-left:69px}.studio-player-controls .button{flex:1 1 auto}.studio-timecode{width:100%;text-align:center}}


/* SYNKA Video Studio v21 — espacio de trabajo inmersivo reversible.
 * Sin portal, sin duplicar reproductores, sin reconstruir controles existentes. */
.video-inspector-column{min-width:0}
.video-inspector-section{margin-bottom:18px;border:1px solid #dfe8f4;border-radius:11px;background:#fff;overflow:hidden}
.video-inspector-section>summary{list-style:revert;cursor:pointer;padding:12px 15px;color:#34516e;font-size:12px;font-weight:750}
.video-inspector-section>.card{border:0;box-shadow:none;margin:0;border-radius:0}
#app.synka-studio-active .sidebar{display:flex}
#app.synka-studio-active .main{width:100%;min-width:0}
#app.synka-studio-active .main-body{max-width:none;padding:18px 24px 45px}
#app.synka-studio-active .page-head{margin-bottom:12px}
#app.synka-studio-active .page-head h1{font-size:22px}
#app.synka-studio-active .video-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,290px);align-items:start;gap:14px}
#app.synka-studio-active .video-analysis-main{min-width:0;padding:15px;background:#f9fbff}
#app.synka-studio-active .video-analysis-main>.card-head{margin-bottom:10px}
#app.synka-studio-active .video-annotation-stage{
  position:sticky;top:90px;z-index:8;border:2px solid #253d65;
  box-shadow:0 12px 30px #13274925;background:#0a1220;
}
#app.synka-studio-active .video-annotation-stage .video-player{max-height:min(45vh,470px)}
#app.synka-studio-active .video-studio-panel{margin-top:12px;background:#f1f6ff}
#app.synka-studio-active .video-inspector-column>.card,
#app.synka-studio-active .video-inspector-section{margin-bottom:12px}
#app.synka-studio-active .video-inspector-column>.card{padding:14px}
#app.synka-studio-active .video-inspector-column .card-head{margin-bottom:9px}
#app.synka-studio-active #video-clip-library{max-height:380px;overflow-y:auto}
#app.synka-studio-active #video-annotation-library{max-height:340px;overflow-y:auto}
#app.synka-studio-active #video-clip-library .card-head{position:sticky;top:0;background:#fff;padding:4px 0;z-index:1}
#app.synka-studio-active .notice.info{margin-bottom:12px}
#app.synka-studio-active .studio-rows{max-height:200px}
@media(max-width:1050px){
 #app.synka-studio-active .video-layout{grid-template-columns:minmax(0,1fr)}
 #app.synka-studio-active .video-annotation-stage{top:81px}
 #app.synka-studio-active .video-annotation-stage .video-player{max-height:43vh}
 #app.synka-studio-active .video-inspector-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #app.synka-studio-active .video-inspector-column>*{min-width:0}
}
@media(max-width:650px){
 #app.synka-studio-active .main-body{padding:12px 10px 36px}
 #app.synka-studio-active .topbar{padding:0 10px}
 #app.synka-studio-active .video-analysis-main{padding:10px}
 #app.synka-studio-active .video-annotation-stage{top:77px}
 #app.synka-studio-active .video-annotation-stage .video-player{max-height:35vh}
 #app.synka-studio-active .video-inspector-column{grid-template-columns:1fr}
}


/* v21.1 — Studio visible por defecto: contraste claro con la vista clásica. */
#app.synka-studio-active .main{background:#101a2b}
#app.synka-studio-active .topbar{background:#17263d;border-bottom:1px solid #30415f;color:#f2f6ff}
#app.synka-studio-active .topbar .top-title{color:#f2f6ff}
#app.synka-studio-active .topbar .eyebrow{color:#87b7f5}
#app.synka-studio-active .topbar .select-team{background:#213653;color:#e4efff;border-color:#3d567a}
#app.synka-studio-active .topbar .pill{background:#173f40;color:#9de9c6}
#app.synka-studio-active .topbar .user-avatar{background:#2c4266;color:#f4f7ff}
#app.synka-studio-active .main-body>.page-head h1{color:#f1f6ff}
#app.synka-studio-active .main-body>.page-head .eyebrow{color:#85b8fb}
#app.synka-studio-active .main-body>.page-head .sub{color:#b5c7e1}
#app.synka-studio-active .main-body>.notice.info{border-color:#34547e;background:#1a2c46;color:#dceaff}
#app.synka-studio-active .main-body>.notice.info .storage-ok{color:#97ebbd!important}
#app.synka-studio-active .section-footer{color:#a5b6cc}
#app.synka-studio-active .video-analysis-main{background:#f1f5fc;border-color:#45668f}
#app.synka-studio-active .video-inspector-column>.card{border-color:#c5d5e9}
.studio-header-switch{font-size:12px;padding:9px 12px}
#app.synka-studio-active .studio-header-switch{background:#4b86f5;border-color:#4b86f5;color:#fff}
@media(max-width:750px){.studio-header-switch{white-space:normal;line-height:1.15}.top-actions .studio-header-switch{max-width:135px;padding:7px}}


/* v21.2 — navegación persistente y contención horizontal. */
#app.synka-studio-active{width:100%;max-width:100%;min-width:0;overflow-x:clip}
#app.synka-studio-active .sidebar{display:flex;flex:0 0 210px;width:210px;z-index:32;overflow-y:auto}
#app.synka-studio-active .main{flex:1 1 0;width:auto;min-width:0;max-width:calc(100% - 210px);overflow:hidden}
#app.synka-studio-active .main-body{width:100%;min-width:0;padding:16px 18px 38px}
#app.synka-studio-active .topbar{max-width:100%;min-width:0;padding:0 18px}
#app.synka-studio-active .top-actions{min-width:0;flex-wrap:wrap;justify-content:flex-end}
#app.synka-studio-active .video-layout{width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(0,1fr) minmax(230px,270px);gap:12px}
#app.synka-studio-active .video-layout>*,
#app.synka-studio-active .video-inspector-column,
#app.synka-studio-active .video-inspector-column>*,
#app.synka-studio-active .video-analysis-main,
#app.synka-studio-active .video-studio-panel{min-width:0;max-width:100%}
#app.synka-studio-active .video-inspector-column .line-main,
#app.synka-studio-active .video-inspector-column .line-title,
#app.synka-studio-active .video-inspector-column .clip-saved-title{min-width:0;overflow-wrap:anywhere;word-break:break-word}
#app.synka-studio-active .video-inspector-column .card,
#app.synka-studio-active .video-inspector-column .clip-editor{max-width:100%;overflow-wrap:anywhere}
#app.synka-studio-active .video-annotation-stage .video-player{width:100%;max-width:100%}
#app.synka-studio-active .video-studio-panel .studio-tools,
#app.synka-studio-active .studio-player-controls{min-width:0;max-width:100%}
@media(max-width:1250px){
 #app.synka-studio-active .sidebar{flex-basis:74px;width:74px;padding:20px 7px}
 #app.synka-studio-active .sidebar .brand-title,
 #app.synka-studio-active .sidebar .brand-small,
 #app.synka-studio-active .sidebar .navgroup,
 #app.synka-studio-active .sidebar .navtext,
 #app.synka-studio-active .sidebar .side-footer{display:none}
 #app.synka-studio-active .sidebar .navlink{justify-content:center;padding:12px 4px}
 #app.synka-studio-active .sidebar .navicon{width:auto}
 #app.synka-studio-active .main{max-width:calc(100% - 74px)}
}
@media(max-width:850px){
 #app.synka-studio-active .video-layout{grid-template-columns:minmax(0,1fr)}
 #app.synka-studio-active .video-inspector-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@media(max-width:600px){
 #app.synka-studio-active .sidebar{flex-basis:52px;width:52px}
 #app.synka-studio-active .main{max-width:calc(100% - 52px)}
 #app.synka-studio-active .main-body{padding:10px 8px 30px}
 #app.synka-studio-active .video-inspector-column{grid-template-columns:minmax(0,1fr)}
 #app.synka-studio-active .topbar{height:auto;min-height:79px;gap:6px;padding:8px}
 #app.synka-studio-active .top-actions{gap:4px}
 #app.synka-studio-active .studio-header-switch{font-size:11px}
}


/* v21.3 — SYNKA nativo: estudio integrado, sin pantalla paralela.
 * Únicamente se aplica a Videoanálisis en Modo Estudio. */
#app.synka-studio-active{background:#f5f7fb;overflow-x:clip}
#app.synka-studio-active .sidebar{
  display:flex;flex:0 0 220px;width:220px;padding:22px 12px;
  overflow-y:auto;overflow-x:hidden;background:#111d34
}
#app.synka-studio-active .sidebar .brand-title{display:block}
#app.synka-studio-active .sidebar .brand-small{display:block}
#app.synka-studio-active .sidebar .navgroup{display:block}
#app.synka-studio-active .sidebar .navtext{display:block}
#app.synka-studio-active .sidebar .side-footer{display:block}
#app.synka-studio-active .sidebar .navlink{justify-content:flex-start;padding:12px 10px}
#app.synka-studio-active .sidebar .navicon{width:23px}
#app.synka-studio-active .main{
  flex:1 1 0;width:auto;max-width:calc(100% - 220px);min-width:0;
  background:#f5f7fb;overflow:visible
}
#app.synka-studio-active .topbar{
  height:72px;padding:0 23px;background:#fff;color:#18273e;border-bottom:1px solid #e7eaf1;
  display:flex;align-items:center;gap:12px
}
#app.synka-studio-active .topbar .top-title{color:#18273e}
#app.synka-studio-active .topbar .eyebrow{color:#7690aa}
#app.synka-studio-active .topbar .select-team{background:#fff;color:#243753;border-color:#dee5ef}
#app.synka-studio-active .topbar .pill{background:#e7f7ef;color:#187953}
#app.synka-studio-active .topbar .user-avatar{background:#e6eafa;color:#465ba1}
#app.synka-studio-active .main-body{
  width:100%;max-width:1680px;min-width:0;padding:16px 22px 46px;margin:auto
}
#app.synka-studio-active .main-body>.page-head{margin-bottom:12px;gap:10px}
#app.synka-studio-active .main-body>.page-head h1{font-size:22px;color:#172a46}
#app.synka-studio-active .main-body>.page-head .eyebrow{color:#587cb0}
#app.synka-studio-active .main-body>.page-head .sub{color:#71849f}
#app.synka-studio-active .main-body>.notice.info.video-storage-notice{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:8px 16px;min-width:0;margin:0 0 14px;padding:10px 14px;
  background:#edf5ff;color:#35577e;border:1px solid #d4e5fc;border-radius:10px;
}
.video-storage-lead{display:flex;align-items:center;flex-wrap:wrap;gap:7px 13px;min-width:0;font-size:12px}
.video-storage-lead strong{color:#24466d}
.video-storage-notice .storage-ok{color:#168151!important;font-weight:650}
.video-storage-notice .storage-warning{color:#9b5e19!important}
.video-storage-help>summary{cursor:pointer;font-weight:650;font-size:11px;color:#3567ab}
.video-storage-help[open]{flex-basis:100%;max-width:100%}
.video-storage-help p{margin:8px 0 2px;font-size:12px;line-height:1.55}
#app.synka-studio-active .video-layout{
  display:grid;align-items:start;width:100%;max-width:100%;min-width:0;
  grid-template-columns:minmax(0,1fr) minmax(315px,355px);gap:16px
}
#app.synka-studio-active .video-analysis-main{
  background:#fff;border:1px solid #e0e8f4;border-radius:14px;min-width:0;
  padding:14px 16px 17px;box-shadow:0 6px 24px #233f5b08
}
#app.synka-studio-active .video-analysis-main>.card-head{margin-bottom:10px}
#app.synka-studio-active .video-analysis-main>.card-head h2{font-size:15px;overflow-wrap:anywhere}
#app.synka-studio-active .video-annotation-stage{
  position:relative;top:auto;z-index:2;width:100%;
  height:clamp(220px,38vh,330px);min-height:220px;max-height:330px;
  background:#0d1523;border:1px solid #223553;border-radius:11px;overflow:hidden;
  box-shadow:none
}
#app.synka-studio-active .video-annotation-stage .video-player{
  width:100%;height:100%;max-height:none;min-height:0;
  object-fit:contain;border-radius:0;background:#0d1523
}
#app.synka-studio-active .video-studio-panel{
  background:#f6f9fe;border:1px solid #dbe6f6;
  margin:12px 0 10px;padding:12px;border-radius:11px;min-width:0
}
#app.synka-studio-active .studio-head h2{font-size:16px}
#app.synka-studio-active .studio-head p{font-size:11px}
#app.synka-studio-active .studio-player-controls{padding:9px 0 0}
#app.synka-studio-active .studio-quick{margin:11px 0 9px}
#app.synka-studio-active .studio-tools{margin-bottom:11px}
#app.synka-studio-active .studio-ruler{margin-bottom:9px}
#app.synka-studio-active .studio-rows{max-height:240px}
#app.synka-studio-active .video-inspector-column{
  min-width:0;display:flex;flex-direction:column;gap:12px
}
#app.synka-studio-active .video-inspector-column>.card,
#app.synka-studio-active .video-inspector-column>.video-inspector-section,
#app.synka-studio-active .video-inspector-column>#clip-comments-panel{
  margin:0;min-width:0;max-width:100%
}
#app.synka-studio-active .video-inspector-column>.card{
  padding:14px 16px;border:1px solid #e0e8f4;box-shadow:0 4px 14px #233f5b08
}
#app.synka-studio-active .video-inspector-column .card-head{margin-bottom:11px}
#app.synka-studio-active .video-inspector-column .list-line{gap:9px}
#app.synka-studio-active .video-inspector-column .line-main,
#app.synka-studio-active .video-inspector-column .line-title,
#app.synka-studio-active .video-inspector-column .clip-saved-title{
  min-width:0;overflow-wrap:anywhere;word-break:normal
}
#app.synka-studio-active #video-clip-library,
#app.synka-studio-active #video-annotation-library{
  max-height:none;overflow:visible
}
#app.synka-studio-active #video-clip-library .card-head{position:static}
#app.synka-studio-active .video-inspector-column .small-actions{flex-wrap:wrap}
#app.synka-studio-active .video-inspector-column .button.tiny{white-space:normal}
#app.synka-studio-active .section-footer{color:#8294a8}
#app.synka-studio-active .studio-header-switch{background:#edf3ff;border-color:#c7dafa;color:#355da5}
#app.synka-studio-active .studio-header-switch.primary{background:#436fe2;color:#fff;border-color:#436fe2}
@media(max-width:1280px){
 #app.synka-studio-active .sidebar{flex:0 0 190px;width:190px;padding:20px 9px}
 #app.synka-studio-active .main{max-width:calc(100% - 190px)}
 #app.synka-studio-active .main-body{padding:14px 14px 38px}
 #app.synka-studio-active .video-layout{grid-template-columns:minmax(0,1fr) minmax(290px,330px);gap:12px}
}
@media(max-width:1050px){
 #app.synka-studio-active .video-layout{grid-template-columns:minmax(0,1fr)}
 #app.synka-studio-active .video-inspector-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}
 #app.synka-studio-active .video-annotation-stage{height:clamp(220px,40vh,340px);max-height:340px}
}
@media(max-width:830px){
 #app.synka-studio-active .sidebar{flex:0 0 66px;width:66px;padding:18px 7px}
 #app.synka-studio-active .sidebar .brand-title,
 #app.synka-studio-active .sidebar .brand-small,
 #app.synka-studio-active .sidebar .navgroup,
 #app.synka-studio-active .sidebar .navtext,
 #app.synka-studio-active .sidebar .side-footer{display:none}
 #app.synka-studio-active .sidebar .navlink{justify-content:center;padding:12px 4px}
 #app.synka-studio-active .sidebar .navicon{width:auto}
 #app.synka-studio-active .main{max-width:calc(100% - 66px)}
}
@media(max-width:630px){
 #app.synka-studio-active .sidebar{flex:0 0 52px;width:52px}
 #app.synka-studio-active .main{max-width:calc(100% - 52px)}
 #app.synka-studio-active .main-body{padding:9px 8px 28px}
 #app.synka-studio-active .topbar{height:auto;min-height:72px;padding:8px}
 #app.synka-studio-active .video-inspector-column{grid-template-columns:minmax(0,1fr)}
 #app.synka-studio-active .video-analysis-main{padding:9px}
 #app.synka-studio-active .video-annotation-stage{height:clamp(195px,34vh,270px);min-height:195px}
 #app.synka-studio-active .main-body>.notice.info.video-storage-notice{padding:9px 10px}
}


/* v22 — Etiquetado profesional integrado al diseño nativo */
.advanced-tag-panel{margin:16px 0 7px;padding:15px;border:1px solid #bfd6f4;border-radius:12px;background:#fff;min-width:0}
.advanced-tag-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.advanced-tag-head h3{margin:0 0 4px;font-size:15px;font-weight:820;color:#1f3c66}
.advanced-tag-head p{margin:0;line-height:1.5}
.advanced-tag-presets{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:9px 0}
.advanced-tag-presets .button{background:#e8f1ff;border-color:#c5dcff;color:#285da2}
.advanced-tag-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:10px 0}
.advanced-tag-form{border:1px solid #e0e9f6;background:#f7faff;border-radius:10px;padding:12px;min-width:0}
.advanced-tag-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 10px}
.advanced-field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px;font-weight:700;color:#385778}
.advanced-field input,.advanced-field select,.advanced-field textarea{
 font:inherit;font-size:12px;font-weight:450;color:#243c5d;
 width:100%;max-width:100%;min-width:0;border:1px solid #cdddf1;border-radius:7px;background:#fff;padding:9px
}
.advanced-tag-form>.advanced-field{margin-top:10px}
.advanced-tag-form-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}
.advanced-tag-status{margin:9px 0;line-height:1.5}
.advanced-tag-list{display:grid;gap:7px;margin-top:9px}
.advanced-tag-record{border:1px solid #e0e9f6;background:#fbfdff;border-radius:9px;padding:10px;display:flex;align-items:center;gap:12px}
.advanced-tag-record-body{flex:1;min-width:0;overflow-wrap:anywhere}
.advanced-tag-record-body strong{display:block;color:#244269;font-size:12px}
.advanced-tag-record-body .tinytext{display:block;margin:4px 0 0;line-height:1.5}
.advanced-tag-record-actions{display:flex;flex-wrap:wrap;gap:6px}
.studio-point.studio-advanced{background:#2a9b80;border-radius:4px;transform:none}
#app.synka-studio-active .advanced-tag-panel{margin:12px 0 7px}
#app.synka-studio-active .advanced-tag-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.advanced-tag-form-grid,#app.synka-studio-active .advanced-tag-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.advanced-tag-form-grid,#app.synka-studio-active .advanced-tag-form-grid{grid-template-columns:minmax(0,1fr)}.advanced-tag-record{flex-wrap:wrap}.advanced-tag-record-actions{width:100%}}


/* v23: navegación de herramientas del estudio sin ocultar el reproductor. */
.studio-nav-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 10px;padding:5px;background:#eaf0fa;border-radius:11px}
.studio-nav-tabs [role="tab"]{flex:1 1 145px;min-height:39px;border-radius:8px;white-space:normal}
.studio-nav-tabs [role="tab"][aria-selected="true"]{background:#355fbb;color:#fff;border-color:#355fbb}
.studio-nav-tabs [role="tab"]:disabled{opacity:.55;cursor:not-allowed}
.studio-tab-panel[hidden]{display:none!important}
.studio-tab-panel{min-width:0}
.studio-comment-panel{padding:13px;border:1px solid #d4e2f5;border-radius:10px;background:#fff}
.studio-comment-panel h3{font-size:15px;margin:0 0 7px;color:#244269}
.studio-comment-label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650;margin:12px 0}
.studio-comment-select,.studio-comment-form textarea{width:100%;min-width:0;border:1px solid #ccd9ee;border-radius:8px;padding:9px;font:inherit;background:#fff;color:#243a55}
.studio-comment-form{display:grid;gap:9px}
.studio-comment-form textarea{resize:vertical}
.studio-comment-form .button{justify-self:start}
.studio-comment-feed{display:grid;gap:9px;margin-top:15px}
.studio-comment-item{padding:10px 12px;background:#f5f8fd;border:1px solid #e0e8f2;border-radius:9px;overflow-wrap:anywhere}
.studio-comment-item strong{display:block;color:#294a7b;font-size:12px}
.studio-comment-item p{font-size:13px;white-space:pre-wrap;margin:8px 0}
.studio-comment-item .button{margin:8px 0 0;display:block}
@media(max-width:620px){.studio-nav-tabs [role="tab"]{flex:1 1 125px}.studio-comment-panel{padding:9px}}


/* SYNKA Sports v25 — Perfil 360 del deportista; solo Rendimiento */
.athlete-360{margin:0 0 18px;min-width:0}
.athlete-360-controls{display:flex;align-items:end;flex-wrap:wrap;gap:9px;margin:12px 0 15px}
.athlete-360-controls label{display:flex;flex:1 1 155px;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#3a567b;min-width:0}
.athlete-360-controls label:nth-child(3){flex-grow:2}
.athlete-360-controls select{width:100%;min-width:0;max-width:100%;padding:9px;border-radius:8px;border:1px solid #cbdcf1;background:#fff;color:#2c415e;font:inherit;font-weight:450}
.athlete-360-summary{padding:13px;background:#f5f9ff;border:1px solid #dce8f8;border-radius:11px}
.athlete-360-identity{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
.athlete-360-identity strong{color:#213e69;font-size:16px}
.athlete-360-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.athlete-360-stat{display:flex;flex-direction:column;gap:6px;min-width:0;border-radius:9px;background:#fff;border:1px solid #d8e5f6;padding:11px}
.athlete-360-stat strong{font-size:20px;color:#234c8d;overflow-wrap:anywhere}
.athlete-360-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:13px}
.athlete-360-panel{min-width:0;border:1px solid #e3eaf3;border-radius:10px;padding:13px;background:#fff}
.athlete-360-panel h3{font-size:14px;margin:0 0 8px;color:#2c496f}
.athlete-360-activity{display:grid;gap:7px;margin-top:12px}
.athlete-360-activity-row{display:grid;grid-template-columns:84px minmax(0,1fr) 100px;gap:8px;padding:8px;border-bottom:1px solid #e4eaf5;align-items:center;font-size:12px}
.athlete-360-activity-row span:last-child{text-align:right}
.athlete-360-metric{display:grid;gap:10px;margin:14px 0}
.athlete-360-metric-row{display:grid;grid-template-columns:85px minmax(0,1fr) auto;gap:9px;align-items:center;font-size:12px}
.athlete-360-track{background:#e5edfa;border-radius:100px;height:10px;overflow:hidden}
.athlete-360-track>span{display:block;height:100%;background:#4476e4;border-radius:100px}
.athlete-360-metric-row strong{color:#264b8d;white-space:nowrap}
.athlete-360-gaps{background:#f9fbff;border-left:3px solid #80a0d9;padding:12px 14px;margin-top:12px}
.athlete-360-gaps strong{color:#254779;font-size:13px}
.athlete-360-gaps p{margin:6px 0}
@media(max-width:920px){.athlete-360-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.athlete-360-details{grid-template-columns:minmax(0,1fr)}}
@media(max-width:550px){.athlete-360-stats{grid-template-columns:minmax(0,1fr)}.athlete-360-controls label{flex:1 1 100%}.athlete-360-activity-row{grid-template-columns:70px minmax(0,1fr);}.athlete-360-activity-row span:last-child{text-align:left;grid-column:2}.athlete-360-metric-row{grid-template-columns:75px minmax(0,1fr);}.athlete-360-metric-row strong{grid-column:2}}

/* Video Studio v27: montaje de jugadas guardadas. */
.clip-montage{margin:14px 0;padding:15px;border:1px solid #d5e4f8;border-radius:12px;background:#f5f9ff}
.clip-montage h3{font-size:15px;margin:0}
.clip-montage-item{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid #dce8f6}
.clip-montage-item>span{flex:1 1 200px;min-width:0;font-size:12px;font-weight:600;overflow-wrap:anywhere}
.clip-montage .clip-toolbar{margin-top:13px;display:flex;flex-wrap:wrap;gap:9px;align-items:center}
@media(max-width:550px){.clip-montage{padding:10px}.clip-montage-item>span{flex-basis:100%}}

/* v28: editor de parámetros de la presentación deportiva. */
.clip-presentation-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px;margin:13px 0}
.clip-presentation-settings label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;font-weight:650;color:#365577}
.clip-presentation-settings input,.clip-presentation-settings select{width:100%;min-width:0;border:1px solid #cddbef;border-radius:8px;background:#fff;color:#283e5f;padding:9px;font:inherit;font-weight:400}
@media(max-width:550px){.clip-presentation-settings{grid-template-columns:minmax(0,1fr)}}

/* v29: storyboard visual y controles de previsualización del montaje */
.montage-storyboard{display:flex;gap:5px;overflow-x:auto;padding:9px 0;margin:12px 0;max-width:100%;align-items:stretch}
.montage-storyboard-cut{min-width:110px;flex:var(--cut-width) 0 0;display:flex;flex-direction:column;gap:5px;justify-content:space-between;text-align:left;padding:10px;border-radius:8px;border:1px solid #b9cde9;background:#eaf1fc;color:#274977;cursor:pointer}
.montage-storyboard-cut:focus-visible{outline:3px solid #2e6aca;outline-offset:2px}
.montage-storyboard-cut span{font-size:12px;font-weight:650;overflow-wrap:anywhere}
.montage-storyboard-cut small{font-size:11px;color:#506d91}
.montage-preview-toolbar{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:10px 0}
.montage-preview-toolbar progress{width:150px;max-width:100%;height:12px;accent-color:#4476e4}
@media(max-width:560px){.montage-storyboard-cut{min-width:105px}.montage-preview-toolbar progress{width:100%}}

/* v32: controles de movimiento manual sobre figuras tácticas */
.annotation-keyframes{border:1px solid #d6e4f7;background:#f4f8ff;border-radius:11px;padding:11px 13px;margin:11px 0}
.annotation-keyframes>strong{font-size:13px;color:#245089}
.annotation-keyframes .annotation-toolbar{margin:7px 0;display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.annotation-keyframes .button{min-height:32px}
@media(max-width:550px){.annotation-keyframes{padding:10px}.annotation-keyframes .button{flex:1 1 115px}}

/* SYNKA Sports v33 — comparador de trayectorias manuales */
.annotation-trajectory-tools{margin:12px 0;padding:12px 14px;border:1px solid #cbdcef;border-radius:10px;background:#f6f9ff}
.annotation-trajectory-tools>strong{font-size:13px;color:#234979}
.annotation-trajectory-tools>label{display:flex;gap:9px;align-items:center;margin:9px 0;font-size:12px;font-weight:600}
.annotation-trajectory-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}
.annotation-trajectory-compare label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;font-weight:600;color:#284d7d}
.annotation-trajectory-compare select{padding:8px 10px;width:100%;min-width:0;border-radius:8px;background:#fff;border:1px solid #c7d8ed}
.annotation-trajectory-results{font-size:12px;color:#2a4a73}
.annotation-trajectory-results p{margin:5px 0;overflow-wrap:anywhere}
@media(max-width:550px){.annotation-trajectory-compare{grid-template-columns:minmax(0,1fr)}}

/* SYNKA v48: los iconos de reproducción de la biblioteca son botones reales. */
.video-library-play{border:0;cursor:pointer;flex:none;line-height:1}
.video-library-play:hover,.video-library-play:focus-visible{background:#dce8ff;color:#254fd1}
.video-library-play:focus-visible,.video-library-title:focus-visible{outline:2px solid #3b67e8;outline-offset:3px}
.video-library-title{display:block;border:0;padding:0;margin:0;background:transparent;text-align:left;color:#25364b;font-weight:750;font-size:13px;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.video-library-title:hover{color:#315fd6;text-decoration:underline}
.video-library-entry.is-selected .video-library-play{background:#dce8ff;color:#254fd1}

/* SYNKA v50: resultado de la exportación visible hasta cerrarlo. */
.clip-export-result{border:1px solid #c4d5ed;border-left:4px solid #4a78c6;border-radius:10px;background:#f7faff;padding:11px 12px;margin:11px 0;overflow-wrap:anywhere}
.clip-export-result.ok{border-left-color:#29885f;background:#f3fbf7}
.clip-export-result.review{border-left-color:#bd8a33;background:#fffaf0}
.clip-export-result.failure{border-left-color:#c14b57;background:#fff6f7}
.clip-export-result .clip-head{display:flex;justify-content:space-between;align-items:start;gap:10px}
.clip-export-result strong{font-size:12px;line-height:1.5}
.clip-export-result .tinytext{margin:6px 0 0;white-space:normal}

/* SYNKA v52 — métricas descriptivas por jugador, sin resultados inventados. */
.video-athlete-report{margin:16px 0;border:1px solid #c9dbf2;border-radius:11px;background:#f8fbff;padding:12px}
.video-athlete-report>summary{font-size:13px;font-weight:800;color:#274b7f;cursor:pointer}
.video-athlete-report-body{padding-top:12px}
.video-athlete-filters{display:flex;flex-wrap:wrap;align-items:end;gap:9px;margin:12px 0}
.video-athlete-filter{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:#3e5673;min-width:150px;max-width:230px;flex:1}
.video-athlete-filter select{padding:9px 10px;border:1px solid #d5e1f0;border-radius:8px;min-width:0;background:white;color:#213957}
.video-athlete-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.video-athlete-stat{background:#eef4ff;border:1px solid #e1eaf8;border-radius:9px;padding:10px;display:grid;gap:5px}
.video-athlete-stat strong{font-size:19px;color:#234779}
.video-athlete-stat span{font-size:11px;color:#607a98}
.video-athlete-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.video-athlete-counts{background:white;border:1px solid #e6ecf6;border-radius:9px;padding:11px}
.video-athlete-counts h4{margin:0 0 8px;font-size:12px;color:#294b75}
.video-athlete-counts p{margin:5px 0;color:#4a607e;font-size:11px}
.video-athlete-table{margin:12px 0}
.video-athlete-event-list{max-height:420px;overflow:auto;display:grid;gap:7px}
.video-athlete-event-list h4{font-size:12px;margin:6px 0}
.video-athlete-event{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px;border:1px solid #e0e8f5;border-radius:9px;background:white}
.video-athlete-event>div{min-width:0;overflow-wrap:anywhere;display:grid;gap:4px}
.video-athlete-event strong{font-size:11px;color:#244875}
@media(max-width:740px){.video-athlete-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.video-athlete-breakdown{grid-template-columns:1fr}.video-athlete-event{flex-wrap:wrap}}


/* SYNKA Sports v54: revisión guiada no destructiva de eventos del vídeo. */
.video-guided-controls{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:10px 0}
.video-guided-hint{flex:1 1 180px}
.video-guided-panel{position:fixed;z-index:11000;right:18px;bottom:18px;width:min(440px,calc(100vw - 36px));max-height:min(72vh,640px);overflow:auto;border:1px solid #bacdec;border-radius:14px;padding:16px;background:#fff;box-shadow:0 16px 44px rgba(18,37,72,.25);color:#203858}
.video-guided-panel:focus-visible{outline:3px solid #315ed8;outline-offset:2px}
.video-guided-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.video-guided-top strong{color:#244b8a;font-size:14px}
.video-guided-counter{color:#62758e;font-size:12px;margin:12px 0 4px}
.video-guided-title{font-size:18px;line-height:1.3;margin:4px 0}
.video-guided-details,.video-guided-observation{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.video-guided-status{min-height:20px;color:#45648b}
.video-guided-actions{display:flex;gap:7px;flex-wrap:wrap}
.video-guided-actions .button{flex:1 1 110px;min-height:34px}
@media(max-width:560px){.video-guided-panel{right:8px;bottom:8px;width:calc(100vw - 16px);padding:12px}}


/* SYNKA Sports v55: acta de revisión temporal con notas por jugada. */
.video-guided-review-row{display:flex;gap:9px;align-items:center;font-size:13px;font-weight:650;margin:11px 0;color:#274b7f}
.video-guided-review-row input{width:17px;height:17px;accent-color:#3265ce}
.video-guided-notes-label{display:grid;gap:6px;font-size:12px;font-weight:600;color:#335272}
.video-guided-notes{width:100%;min-height:64px;max-height:140px;resize:vertical;padding:9px;border:1px solid #cddcf0;border-radius:8px;background:#fff;color:#243b5d;font:inherit;font-size:13px}
.video-guided-notes:focus-visible{outline:2px solid #315ed8}
.video-guided-progress{font-size:12px;font-weight:700;color:#32558c;background:#edf4ff;border-radius:8px;padding:8px}

/* SYNKA v91–v93 · detalle y navegación de eventos */
.studio-selected-panel{margin:10px 0 12px;padding:12px;border:1px solid #b6cdec;background:#f6faff;border-radius:9px;display:grid;gap:6px;color:#284c7c}
.studio-selected-panel strong{font-size:13px}.studio-selected-panel p{margin:0;line-height:1.45}
.studio-selected-actions{display:flex;gap:7px;flex-wrap:wrap}.studio-selected-actions button{min-height:34px}
.studio-point-selected{outline:3px solid #17366c;outline-offset:2px;box-shadow:0 0 0 3px #bdd6ff}
.studio-event-selected{border-color:#2c69d8;background:#eaf2ff}
@media(max-width:600px){.studio-selected-actions>*{flex:1 1 130px}}

/* SYNKA v94–v96: resumen de codificación del video actual */
.studio-coding-report{background:#fff;border:1px solid #d6e3f4;border-radius:10px;padding:14px;margin:12px 0}
.studio-coding-report h3{font-size:14px;color:#294a78;margin:0 0 6px}
.studio-coding-report>strong{display:block;margin:10px 0 7px;color:#294a78;font-size:12px}
.studio-coding-report p{margin:6px 0;color:#526d8d}
.studio-coding-stats{display:grid;gap:6px}
.studio-coding-stat{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;border-radius:7px;background:#f1f6ff;color:#2b4a72;font-size:12px}
.studio-coding-stat span{min-width:0;overflow-wrap:anywhere}.studio-coding-stat strong{white-space:nowrap}
@media(max-width:600px){.studio-coding-stat{flex-wrap:wrap}.studio-coding-stat strong{white-space:normal}}


/* SYNKA v97–v99: ficha táctica con selección manual de sesión */
.studio-session-brief{border:1px solid #cbdcf1;background:#fff;border-radius:10px;margin:14px 0;padding:12px}
.studio-session-brief>summary{cursor:pointer;font-weight:700;color:#244f86;padding:4px 2px}
.studio-session-brief-body{display:grid;gap:9px;padding:13px 3px 2px}
.studio-session-brief-body>p{margin:0;line-height:1.5}
.studio-session-brief-body>select{max-width:100%;width:100%;padding:10px;border-radius:7px;border:1px solid #afc5e3;background:#fff}
.studio-session-brief-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.studio-session-brief-stat{padding:10px;border-radius:8px;background:#f0f5fd;display:grid;gap:4px}
.studio-session-brief-stat strong{font-size:18px;color:#274b80}
.studio-session-brief-stat span{font-size:11px;color:#536987}
@media(max-width:650px){.studio-session-brief-summary{grid-template-columns:1fr}}

/* SYNKA Sports v100: mapeo local de columnas de codificación externa */
.studio-coding-mapping{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:12px 0}
.studio-coding-field{display:flex;flex-direction:column;gap:5px;color:#2c4e7e;font-size:12px;font-weight:600;min-width:0}
.studio-coding-field select{width:100%;min-width:0;border:1px solid #b8cbe6;border-radius:7px;background:#fff;color:#223f67;padding:8px;font-size:12px}
.studio-coding-field select:focus-visible{outline:2px solid #366ed9;outline-offset:2px}


/* SYNKA v104 · revisión rápida y navegación táctil del Video Studio */
.video-studio-panel .studio-playback-speed{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:#31527d}
.video-studio-panel .studio-playback-speed select{background:#fff;color:#203f68;border:1px solid #b4c9e7;border-radius:8px;padding:7px;min-height:37px;font:inherit}
.video-studio-panel .studio-player-controls .button{min-width:63px;touch-action:manipulation}
.video-studio-panel .studio-nav-tabs [role="tab"]:focus-visible{outline:3px solid #2f6ce5;outline-offset:2px}
.video-studio-panel .studio-nav-tabs [role="tab"]{touch-action:manipulation}
.video-studio-panel .studio-selected-actions .button{touch-action:manipulation}
@media(max-width:740px){
 #app.synka-studio-active .studio-nav-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 #app.synka-studio-active .studio-nav-tabs [role="tab"]{width:100%;min-width:0;min-height:44px;padding:9px 5px;flex:none;font-size:12px}
 #app.synka-studio-active .studio-player-controls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
 #app.synka-studio-active .studio-player-controls>.button{min-width:0;padding:8px 2px;min-height:44px;font-size:11px}
 #app.synka-studio-active .studio-playback-speed{grid-column:span 3;justify-content:center}
 #app.synka-studio-active .studio-timecode{grid-column:span 2;justify-self:stretch;text-align:center;padding:9px 2px}
 #app.synka-studio-active .studio-tools .button{min-height:44px}
 #app.synka-studio-active .studio-selected-actions .button{min-height:44px}
 #app.synka-studio-active .studio-rows{max-height:none;overflow:visible}
}
@media(max-width:400px){
 #app.synka-studio-active .studio-player-controls>.button{font-size:10px}
 #app.synka-studio-active .studio-nav-tabs [role="tab"]{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 #app.synka-studio-active .studio-nav-tabs [role="tab"]{transition:none}
}


/* SYNKA Sports v115 · accesibilidad y confort táctil del modo de campo */
.field-block-nav{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:10px 2px 12px;margin-top:8px}
.field-block-nav-item{flex:0 0 auto;max-width:240px;min-height:44px;white-space:normal;text-align:left;overflow-wrap:anywhere;border-color:#cbd9ed}
.field-block-nav-item.active,.field-block-nav-item[aria-current="step"]{background:#e7efff;color:#264eae;border-color:#6f91e3;box-shadow:inset 0 0 0 1px #6f91e3}
.field-block-nav-item:focus-visible,.session-field-modal .button:focus-visible,.session-closure-dialog .button:focus-visible{outline:3px solid #3169dc;outline-offset:2px}
.field-local-summary{font-size:13px;font-weight:750;color:#345f9c;margin:6px 0 12px}
.session-field-modal .field-playbuttons .button{white-space:normal;text-align:left;min-height:40px}
.session-closure-dialog .closure-field-suggestions{border:1px solid #d7e3f5;border-radius:12px;padding:14px;margin:14px 0;background:#f7faff}
.session-closure-dialog .closure-field-suggestions h3{font-size:15px;margin:0 0 8px}
.session-closure-dialog .closure-field-lines{max-height:220px;overflow-y:auto}
.session-closure-dialog .closure-field-lines .tinytext{line-height:1.5;margin:6px 0}
@media(max-width:700px){
 .session-field-modal,.session-closure-dialog{width:100%;max-width:100%;max-height:calc(100dvh - 16px);border-radius:12px}
 #session-field-mode,#session-closure-modal{padding:8px;align-items:center}
 .session-field-modal .modal-head,.session-closure-dialog .modal-head{padding:14px 15px 10px}
 .session-field-modal .modal-body,.session-closure-dialog .modal-body{padding:12px 14px}
 .session-field-modal .field-overview{padding:14px 10px}
 .session-field-modal .field-timer{font-size:clamp(46px,14vw,82px)}
 .session-field-modal .field-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .session-field-modal .field-controls>.button{min-height:48px;white-space:normal;padding:10px 8px}
 .session-field-modal .field-controls>.button:nth-child(2){grid-column:span 2;grid-row:1;font-size:15px}
 .session-field-modal .field-controls>.button:last-child{grid-column:span 2}
 .session-field-modal .field-block-nav-item{max-width:75vw;min-width:110px}
 .session-closure-dialog .closure-block-fields{grid-template-columns:minmax(0,1fr)}
 .session-closure-dialog .modal-foot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 14px}
 .session-closure-dialog .modal-foot>.button{white-space:normal;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.field-progress-fill{transition:none}}


/* SYNKA v116–v118 · Navegación global accesible y menú móvil legible */
#app.synka-mobile-shell{min-width:0}
#app.synka-mobile-shell .synka-menu-toggle{display:none;min-width:44px;min-height:44px;padding:8px 10px;font-size:20px}
#app.synka-mobile-shell .synka-search-toggle{min-height:40px;white-space:nowrap}
#app.synka-mobile-shell .synka-nav-scrim{display:none;background:#0b1839a8;border:0;cursor:default}
#app.synka-mobile-shell .synka-command-backdrop[hidden]{display:none!important}
#app.synka-mobile-shell .synka-command-backdrop{position:fixed;inset:0;z-index:400;background:#10203f9e;display:flex;align-items:flex-start;justify-content:center;padding:clamp(30px,9vh,110px) 15px 15px}
#app.synka-mobile-shell .synka-command-panel{width:min(590px,100%);max-height:calc(100dvh - 70px);overflow:auto;background:#fff;border:1px solid #d6e1ef;box-shadow:0 20px 80px #061b4052;border-radius:16px;padding:16px}
#app.synka-mobile-shell .synka-command-header{display:flex;gap:8px;align-items:stretch}
#app.synka-mobile-shell .synka-command-input{min-width:0;flex:1 1 0;padding:12px 14px;border:1px solid #b6c9e6;border-radius:10px;font:inherit;font-size:15px;color:#233953}
#app.synka-mobile-shell .synka-command-results{display:grid;gap:5px;padding-top:12px;max-height:55vh;overflow-y:auto}
#app.synka-mobile-shell .synka-command-result{border:1px solid transparent;border-radius:9px;background:#f5f8fd;padding:12px 13px;text-align:left;color:#244268;min-height:44px;font:inherit;font-weight:650}
#app.synka-mobile-shell .synka-command-result:hover,#app.synka-mobile-shell .synka-command-result:focus-visible{background:#e7efff;border-color:#9bb6ec}
#app.synka-mobile-shell .synka-command-empty{font-size:13px;color:#6b7e96;padding:12px}
#app.synka-mobile-shell .synka-command-panel>.tinytext{margin:12px 2px 0;line-height:1.5}
#app.synka-mobile-shell .synka-search-toggle:focus-visible,#app.synka-mobile-shell .synka-menu-toggle:focus-visible,#app.synka-mobile-shell .synka-command-input:focus-visible{outline:3px solid #437ce9;outline-offset:2px}
@media(max-width:830px){
 #app.synka-mobile-shell .synka-menu-toggle{display:inline-flex;flex:none}
 #app.synka-mobile-shell .sidebar,#app.synka-mobile-shell.synka-studio-active .sidebar{position:fixed;left:0;top:0;bottom:0;width:min(285px,82vw);max-width:82vw;height:100dvh;min-height:0;z-index:350;overflow-y:auto;overflow-x:hidden;padding:20px 14px;transform:translateX(-103%);transition:transform .2s ease}
 #app.synka-mobile-shell.synka-nav-open .sidebar,#app.synka-mobile-shell.synka-nav-open.synka-studio-active .sidebar{transform:translateX(0)}
 #app.synka-mobile-shell .sidebar .brand-title,#app.synka-mobile-shell .sidebar .brand-small,#app.synka-mobile-shell .sidebar .navgroup,#app.synka-mobile-shell .sidebar .navtext,#app.synka-mobile-shell .sidebar .side-footer{display:block}
 #app.synka-mobile-shell .sidebar .navlink,#app.synka-mobile-shell.synka-studio-active .sidebar .navlink{display:flex;justify-content:flex-start;gap:12px;padding:12px 13px;min-height:44px}
 #app.synka-mobile-shell .sidebar .navicon{font-size:18px;width:23px;text-align:center}
 #app.synka-mobile-shell .main,#app.synka-mobile-shell.synka-studio-active .main{width:100%;max-width:100%;flex:1 1 100%;min-width:0}
 #app.synka-mobile-shell .topbar{gap:8px}
 #app.synka-mobile-shell .synka-search-toggle{padding:9px 11px}
 #app.synka-mobile-shell.synka-nav-open .synka-nav-scrim{display:block;position:fixed;inset:0;z-index:340}
}
@media(max-width:520px){
 #app.synka-mobile-shell .topbar,#app.synka-mobile-shell.synka-studio-active .topbar{padding:9px;gap:7px}
 #app.synka-mobile-shell .synka-search-toggle{font-size:12px}
 #app.synka-mobile-shell .top-actions{min-width:0;flex-wrap:wrap;justify-content:flex-end}
 #app.synka-mobile-shell .select-team{max-width:145px}
 #app.synka-mobile-shell .synka-command-panel{padding:11px}
 #app.synka-mobile-shell .synka-command-backdrop{padding:30px 8px 8px}
 #app.synka-mobile-shell .synka-command-header{flex-wrap:wrap}
 #app.synka-mobile-shell .synka-command-input{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){#app.synka-mobile-shell .sidebar{transition:none}}


/* SYNKA v118 · acceso rápido al flujo del entrenador */
.synka-dashboard-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.synka-dashboard-shortcuts>.button{min-width:0;min-height:50px;white-space:normal;text-align:center;padding:10px 8px}
@media(max-width:1150px){.synka-dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.synka-dashboard-shortcuts{grid-template-columns:minmax(0,1fr)}}


/* SYNKA Sports v121 · cola de preparación accesible para entrenadores */
.coach-session-queue{margin-bottom:20px}
.coach-session-queue .card-head{align-items:center}
.coach-session-queue-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.coach-session-queue-metrics>span{display:flex;align-items:center;gap:9px;border:1px solid #e4eaf2;border-radius:10px;padding:12px;background:#f8faff;color:#526985;font-size:12px}
.coach-session-queue-metrics strong{font-size:22px;color:#263e62;font-variant-numeric:tabular-nums}
.coach-session-queue-list{display:grid;gap:9px}
.coach-session-queue-entry{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid #e7edf6;border-radius:10px;padding:12px}
.coach-session-queue-info{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px}
.coach-session-queue-info>strong{flex-basis:100%;font-size:13px;overflow-wrap:anywhere}
.coach-session-queue-info>.tinytext{line-height:1.5}
.coach-session-queue-status{display:inline-block;border:1px solid #d9e3ee;border-radius:6px;padding:4px 7px;font-size:11px;font-weight:750}
.coach-session-queue-status.empty-plan{background:#fff3dc;border-color:#f4dfb6;color:#946014}
.coach-session-queue-status.review-plan{background:#fff0ee;border-color:#f2d0ce;color:#a64340}
.coach-session-queue-status.ready-plan{background:#e6f7ef;border-color:#c9ebdb;color:#246b4b}
.coach-session-queue-buttons{flex:none;display:flex;gap:7px;flex-wrap:wrap}
.coach-session-queue-buttons>.button{min-height:40px}
@media(max-width:760px){
 .coach-session-queue-metrics{grid-template-columns:1fr}
 .coach-session-queue-entry{align-items:stretch;flex-direction:column}
 .coach-session-queue-buttons{width:100%}
 .coach-session-queue-buttons>.button{flex:1 1 0;min-height:44px}
}

/* SYNKA Sports v147: control de búsqueda accesible del video.
 * No altera el reproductor ni las herramientas fuera de Video Studio. */
.video-studio-panel .studio-scrubber-label{display:flex;align-items:center;gap:10px;flex:1 1 100%;min-width:0;margin-top:4px;color:#284d77;font-size:12px;font-weight:700}
.video-studio-panel .studio-scrubber-label>span{white-space:nowrap}
.video-studio-panel .studio-scrubber{display:block;flex:1;min-width:0;width:100%;height:32px;accent-color:#355fbb;cursor:pointer;touch-action:pan-y}
.video-studio-panel .studio-scrubber:disabled{cursor:not-allowed;opacity:.5}
.video-studio-panel .studio-scrubber:focus-visible{outline:3px solid #234da3;outline-offset:3px;border-radius:7px}
@media(max-width:740px){.video-studio-panel .studio-scrubber-label{flex-basis:100%;gap:7px}.video-studio-panel .studio-scrubber{height:44px}.video-studio-panel .studio-player-controls .button{min-height:44px}}

/* SYNKA v271–275: local performance navigation; does not hide any mounted modules. */
.performance-navigation-v271{margin-bottom:20px}
.performance-navigation-controls{display:flex;gap:8px;align-items:center;margin:12px 0}
.performance-navigation-controls input{flex:1;min-width:0}
.performance-navigation-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.performance-navigation-groups>section{border:1px solid #dce5ef;border-radius:9px;padding:12px;min-width:0}
.performance-navigation-groups h3{font-size:13px;margin:0 0 8px}
.performance-navigation-buttons{display:flex;flex-wrap:wrap;gap:6px}
.performance-navigation-buttons .button{white-space:normal;text-align:left;min-height:36px}
.performance-navigation-v271 button:focus-visible,.performance-navigation-v271 input:focus-visible{outline:3px solid #437ce9;outline-offset:2px}
#main-content>div[id][tabindex="-1"]{scroll-margin-top:90px}
@media(max-width:740px){.performance-navigation-groups{grid-template-columns:1fr}.performance-navigation-buttons .button{min-height:44px}.performance-navigation-controls{flex-wrap:wrap}}

/* v291–295: separate responsive private comparison players */
.studio-comparison-v291{margin-top:16px;padding:12px;border:1px solid #dce5ef;border-radius:10px;min-width:0}
.studio-dual-grid-v291{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.studio-dual-grid-v291>section{display:grid;gap:7px;min-width:0}
.studio-dual-grid-v291 video{width:100%;aspect-ratio:16/9;background:#101827;object-fit:contain}
.studio-dual-grid-v291 select,.studio-dual-grid-v291 input{width:100%;min-width:0}
.studio-dual-controls-v291{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
@media(max-width:720px){.studio-dual-grid-v291{grid-template-columns:1fr}.studio-dual-controls-v291 .button{min-height:44px}}

/* v316–320: active destination and keyboard navigation affordances. */
#app.synka-mobile-shell .synka-command-result[aria-current="page"]{border-color:#9bb6ec;background:#e7efff;color:#1d3d80}
#app.synka-mobile-shell .synka-command-result:focus-visible{outline:3px solid #437ce9;outline-offset:-3px}
#app.synka-mobile-shell .synka-command-results{overscroll-behavior:contain}
@media(max-width:830px){#app.synka-mobile-shell .sidebar[inert]{visibility:hidden}}


/* v581–585: targeted layout safeguards. Preserve all actions and local table scrolling. */
#main-content .page-head>div:first-child,#main-content .card-head>div:first-child{min-width:0;overflow-wrap:anywhere}
#main-content .layout2>.card,#main-content .grid-cards>.card,#main-content .drill-grid>.card{min-width:0}
#main-content .team-title,#main-content .team-meta,#main-content .line-title,#main-content .line-meta{overflow-wrap:anywhere}
#main-content .team-foot{flex-wrap:wrap;gap:8px}
#main-content .table-wrap{min-width:0;max-width:100%;overflow-x:auto}
@media(max-width:520px){
 #app.synka-mobile-shell .topbar{height:auto;min-height:79px;flex-wrap:wrap}
 #app.synka-mobile-shell .topbar>div{min-width:0}
 #app.synka-mobile-shell .top-title{overflow-wrap:anywhere}
 #app.synka-mobile-shell .top-actions{max-width:100%;flex-wrap:wrap}
 #main-content .page-head{flex-direction:column;align-items:stretch}
 #main-content .head-buttons>.button{white-space:normal;max-width:100%;min-height:44px}
 #main-content .card-head{flex-wrap:wrap}
 #main-content .card-head>.button{white-space:normal;max-width:100%}
}

/* v634–638: narrow viewport safeguards, preserve every action and scrollable table. */
#main-content .sport-graph-filters label,#main-content .sport-graph-filters select{min-width:0;max-width:100%;overflow-wrap:anywhere}
#main-content .studio-coding-mapping{grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr))}
#main-content .studio-tools>*,#main-content .studio-selected-actions>*{min-width:0;max-width:100%}
#main-content .studio-tools .button,#main-content .studio-selected-actions .button{white-space:normal;overflow-wrap:anywhere}
#main-content .board-toolbar{min-width:0;max-width:100%}
#main-content .board-toolbar .board-tool{max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:740px){
 #app.synka-studio-active .studio-player-controls>.studio-scrubber-label{grid-column:1/-1;min-width:0;max-width:100%}
 #app.synka-studio-active .studio-player-controls>.studio-scrubber-label>span{white-space:normal;overflow-wrap:anywhere}
 #app.synka-studio-active .studio-player-controls>.button,#app.synka-studio-active .studio-nav-tabs [role="tab"]{white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:400px){
 #app.synka-studio-active .studio-player-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app.synka-studio-active .studio-playback-speed,#app.synka-studio-active .studio-timecode{grid-column:1/-1;min-width:0;max-width:100%;white-space:normal}
 #main-content .coach-session-queue-buttons>.button{flex:1 1 100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #main-content .head-buttons>*{min-width:0;max-width:100%}
}

/* v954: individual training screens; scoped to the coach and athlete panels. */
.individual-programs-v954,.individual-programs-v954 form,.individual-programs-v954 section,.individual-programs-v954 fieldset{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.individual-programs-v954 .individual-programs-panel-v954{padding:12px;border:1px solid var(--border,#dce5ef);border-radius:10px;margin-block:12px}
.individual-programs-v954 .individual-activity-v954{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:8px;padding:12px;border:1px solid var(--border,#dce5ef);border-radius:10px;margin-block:8px;align-items:start;min-width:0}
.individual-programs-v954 .individual-activity-v954>details,.individual-programs-v954 .individual-activity-v954>div{grid-column:1/-1;min-width:0}
.individual-programs-v954 label{min-width:0;max-width:100%;overflow-wrap:anywhere}
.individual-programs-v954 input:not([type="checkbox"]),.individual-programs-v954 select{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.individual-programs-v954 .button{max-width:100%;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
.individual-programs-v954 .list-line{flex-wrap:wrap;gap:8px;min-width:0}
.individual-programs-v954 .line-main{min-width:0;overflow-wrap:anywhere}
.individual-programs-v954 .individual-calendar-v954{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.individual-programs-v954 .individual-calendar-v954>.card{min-width:0;margin:0}
.individual-programs-v954 :is(button,input,select,summary):focus-visible{outline:3px solid #437ce9;outline-offset:2px}
@media(max-width:740px){
 .individual-programs-v954 .individual-calendar-v954,.individual-programs-v954 .individual-activity-v954{grid-template-columns:minmax(0,1fr)}
 .individual-programs-v954 .button{min-height:44px}
 .individual-programs-v954 .list-line>details,.individual-programs-v954 .list-line>.line-main{flex:1 1 100%}
 .individual-programs-v954 .individual-programs-panel-v954>.button{margin:3px 4px 3px 0}
 .individual-programs-v954 input:not([type="checkbox"]),.individual-programs-v954 select{font-size:16px}
}


/* v1002: constrain intrinsic widths without clipping content or removing actions.
   Screen only: preserve the executive PDF/print layout and local table scrolling. */
@media screen{
 #main-content .exec-view{min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}
 #main-content .exec-view :is(.exec-hero,.exec-hero>div,.exec-section,.exec-columns,.exec-kpis,.exec-steps,.exec-kpi,.exec-step,.exec-feature>div){min-width:0;max-width:100%;overflow-wrap:anywhere}
 #main-content .exec-view .table-wrap{min-width:0;max-width:100%;overflow-x:auto}
 #main-content .exec-view .button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #main-content .head-buttons{min-width:0;max-width:100%}
 #main-content .head-buttons>.button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #main-content .session-builder-entry :is(.session-builder-head,.session-builder-head>div,.session-builder-list,.session-builder-item,.session-ready-details,.session-builder-actions,.session-ready-videos){min-width:0;max-width:100%;overflow-wrap:anywhere}
 #main-content .session-builder-entry .button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
@media screen and (max-width:850px){
 #main-content .exec-hero,#main-content .exec-columns{grid-template-columns:minmax(0,1fr)}
}
@media screen and (max-width:530px){
 #main-content .exec-kpis,#main-content .exec-steps{grid-template-columns:minmax(0,1fr)}
 #main-content .session-builder-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%}
 #main-content .session-builder-actions>.button{width:100%;min-height:44px}
}


/* v1002.1: narrow agenda controls and event cards, preserving every action. */
@media screen and (max-width:530px){
 #main-content :is(#visual-calendar,.sports-calendar,.sports-calendar .fc,.sports-calendar .fc-toolbar,.sports-calendar .fc-toolbar-chunk){min-width:0;max-width:100%}
 #main-content .sports-calendar .fc-toolbar-chunk{flex-wrap:wrap;gap:4px}
 #main-content .sports-calendar .fc-button-group{display:flex;flex-wrap:wrap;min-width:0;max-width:100%}
 #main-content .sports-calendar .fc-button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #main-content .sports-calendar .fc-toolbar-title{min-width:0;max-width:100%;overflow-wrap:anywhere;text-align:center}
 #main-content .calendar-events{grid-template-columns:minmax(0,1fr)}
 #main-content .calendar-events .event{min-width:0;max-width:100%;overflow-wrap:anywhere}
 #main-content .calendar-events .event .small-actions{min-width:0;max-width:100%}
 #main-content .calendar-events .event .button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #main-content .session-builder-entry .session-builder-item{min-width:0;max-width:100%}
}


/* v1002.2: weekly planner and narrow agenda action groups. */
@media screen and (max-width:530px){
 #main-content .week-planner :is(.week-top,.week-top>div,.week-buttons,.week-cycle,.week-plan-list,.week-cycle-detail,.week-metrics>div,.week-events,.week-event){min-width:0;max-width:100%;overflow-wrap:anywhere}
 #main-content .week-planner :is(button,select,input){min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #main-content .week-planner .week-buttons{width:100%}
 #main-content .week-planner .week-buttons>.button{flex:1 1 110px}
 #main-content .week-planner .week-cycle{padding:12px}
 #main-content .calendar-events .event>div:not(.event-date){min-width:0;max-width:100%}
}

/* v1004.1: keep intrinsic canvas width within its container, including before
   Chart.js finishes asynchronous initialization; allow full labels to wrap. */
#performance-charts .sport-graph-box{min-width:0;max-width:100%}
#performance-charts .sport-graph-box canvas{display:block;max-width:100%}
#main-content .load-bars{height:auto;min-height:178px}
#main-content .report-bars{height:auto;min-height:172px}
#main-content .load-bar-cell small,#main-content .report-bar small,
#main-content .load-bar-cell b,#main-content .report-bar>span{
 min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere
}

/* v1013: explicit checkbox geometry and readable recovery code without global form changes. */
.auth-card form label.auth-check-v1013,.account-card form label.auth-check-v1013{display:flex;align-items:flex-start;gap:9px;line-height:1.5}
.auth-card form .auth-check-v1013 input[type=checkbox],.account-card form .auth-check-v1013 input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;min-height:0;max-width:18px;padding:0;margin:1px 0 0;accent-color:#3863e9}
.auth-card .recovery-help-v1013{margin:0;overflow-wrap:anywhere;line-height:1.5}
.assisted-recovery-v1013 form{display:grid;gap:13px;max-width:760px}
.assisted-recovery-v1013 [data-assisted-result]{min-width:0;overflow-wrap:anywhere}
.assisted-code-actions-v1013{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.assisted-code-actions-v1013 input{width:100%;max-width:340px;min-height:42px;font-family:monospace;font-size:14px;box-sizing:border-box}
