/* CLENA SPORTS • cockpit 2026-11-27 • scoped to authenticated home only */
:root{--spx-dark:#251e19;--spx-muted:#81766f;--spx-orange:#c04417;--spx-line:#ecded5;--spx-paper:#fff;--spx-bg:#fffaf7}
body:has(#sportsApp:not(.is-hidden)){background:linear-gradient(128deg,#fffaf6,#fdf7f3 56%,#fffdfb)!important}
.spx-home{min-height:calc(100dvh - 86px);width:100%;padding:clamp(15px,2.1vw,31px) clamp(15px,3vw,52px) 45px;color:var(--spx-dark);background:transparent}
.spx-container{width:100%;max-width:1920px;margin:auto;display:grid;gap:18px;min-width:0}
.spx-welcome{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,.65fr);gap:15px;min-width:0}
.spx-welcome-copy{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:start;min-height:233px;padding:clamp(23px,2.9vw,39px);border-radius:20px;background:linear-gradient(112deg,#2a211b 0%,#452a1e 65%,#824025 130%);color:#fff;box-shadow:0 13px 34px #361f151c}
.spx-eyebrow{font-size:10px;letter-spacing:.095em;font-weight:850;color:#f1cbb7;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.spx-spark{width:8px;height:8px;border-radius:50%;background:#f3ab83;box-shadow:0 0 0 4px #f3ab8320}.spx-dot-sep{opacity:.6}
.spx-welcome h1{font-family:Sora,Manrope,system-ui,sans-serif;font-size:clamp(31px,2.9vw,51px);line-height:1.14;letter-spacing:-.065em;font-weight:800;margin:13px 0 9px}.spx-welcome h1 em{font-style:normal;color:#ffab7e}
.spx-welcome-copy>p{max-width:690px;font-size:clamp(12px,.95vw,14px);color:#e9d6cb;line-height:1.65;margin:0}
.spx-unit-line{display:flex;align-items:center;gap:9px;margin-top:19px;max-width:100%;min-width:0}.spx-unit-emblem{width:35px;height:35px;display:grid;place-items:center;flex:none;border:1px solid #ffffff25;border-radius:10px;background:#ffffff1e}.spx-unit-emblem .svg{width:18px;height:18px}.spx-unit-line>span:nth-child(2){min-width:0;display:grid;gap:3px}.spx-unit-line strong{font-size:12px;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spx-unit-line small{font-size:10px;color:#c9b8af;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spx-public-status{margin-left:auto;font-size:10px;padding:6px 10px;border-radius:99px;background:#ffffff16;color:#f5ddd1;white-space:nowrap}.spx-public-status.published{background:#d6f5df24;color:#bdf1cd}
.spx-feature{display:grid;align-content:space-between;gap:7px;min-width:0;padding:24px 24px 19px;background:#fff;border:1px solid #ead9cb;border-radius:20px;box-shadow:0 10px 29px #4529160c}
.spx-feature-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.spx-feature-label{font-size:10px;color:#b84b20;font-weight:900;letter-spacing:.09em}.spx-feature-day{font-size:10px;color:#907f72}.spx-feature-time{font-size:clamp(37px,3.4vw,59px);letter-spacing:-.085em;font-weight:900;line-height:1;color:#302117;margin-top:10px;font-variant-numeric:tabular-nums}.spx-feature h2{font-size:clamp(16px,1.25vw,20px);line-height:1.2;letter-spacing:-.035em;overflow-wrap:anywhere;margin:2px 0 0}.spx-feature p{font-size:11px;color:#877a71;line-height:1.4;margin:0}.spx-feature-footer{border-top:1px solid #f0e4dc;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:9px}.spx-feature-footer>span{font-size:10px;font-weight:750;border-radius:50px;background:#fff0e6;color:#af4d23;padding:6px 9px}.spx-feature-footer>a{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:850;color:#af461a}.spx-feature-footer .svg{width:14px;height:14px}
.spx-focus-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 14px;border:1px solid #eee2d9;border-radius:13px;background:#fff}.spx-focus-copy{display:grid;gap:4px;margin-right:auto;min-width:175px}.spx-section-overline{font-size:9px;letter-spacing:.13em;font-weight:900;color:#bd4b1c}.spx-focus-copy strong{font-size:12px;font-weight:850;letter-spacing:-.02em}.spx-focus-pills{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.spx-focus-pill{border:1px solid #eaded7;border-radius:9px;padding:7px 10px;min-height:32px;background:#fff;color:#77675e;font-size:10px;font-weight:850}.spx-focus-pill.active{background:#3e2c22;color:#fff;border-color:#3e2c22}.spx-refresh-wrap{display:flex;align-items:center;gap:9px}.spx-freshness{font-size:10px;color:#92857c;white-space:nowrap}.spx-refresh{display:inline-flex;align-items:center;gap:5px;min-height:33px;padding:7px 9px;border:1px solid #e8dbd2;border-radius:9px;background:#fefbf8;color:#765446;font-size:10px;font-weight:850}.spx-refresh .svg{width:14px;height:14px}.spx-refresh[disabled]{opacity:.55}.spx-refresh.is-loading .svg{animation:spx-spin 1.1s linear infinite}@keyframes spx-spin{to{transform:rotate(360deg)}}
.spx-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.spx-stat{position:relative;overflow:hidden;min-width:0;display:grid;gap:7px;padding:16px;border:1px solid #eaded6;border-radius:15px;background:#fff;box-shadow:0 5px 23px #48281709}.spx-stat-caption{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;color:#776960;font-weight:780}.spx-stat-caption .svg{width:18px;height:18px;color:#bd6943}.spx-stat strong{font-size:clamp(28px,2.35vw,38px);font-weight:900;line-height:1.1;letter-spacing:-.075em;color:#302218;font-variant-numeric:tabular-nums}.spx-stat .spx-stat-money{font-size:clamp(19px,1.65vw,28px);letter-spacing:-.055em}.spx-stat small{font-size:10px;color:#95877d;line-height:1.4}.spx-stat-accent{position:absolute;bottom:0;left:0;right:0;height:3px}.spx-accent-orange{background:#df7641}.spx-accent-blue{background:#6e92c9}.spx-accent-violet{background:#9c85d2}.spx-accent-rose{background:#d97d81}.spx-accent-green{background:#58ac81}
.spx-primary-layout,.spx-secondary-layout,.spx-bottom-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(295px,.75fr);align-items:start;gap:15px}.spx-secondary-layout{grid-template-columns:minmax(0,1.5fr) minmax(295px,.8fr)}.spx-bottom-layout{grid-template-columns:1fr 1fr}
.spx-card{min-width:0;padding:20px;background:#fff;border:1px solid #eaded5;border-radius:16px;box-shadow:0 7px 26px #3c23100b}.spx-card-header{display:flex;align-items:start;justify-content:space-between;gap:13px;margin-bottom:17px}.spx-card-header h2{font-family:Sora,Manrope,system-ui,sans-serif;font-size:clamp(16px,1.23vw,21px);font-weight:800;letter-spacing:-.045em;line-height:1.25;margin:4px 0 0;color:#2b211c}.spx-card-header p{font-size:11px;color:#998b80;line-height:1.45;margin:5px 0 0}.spx-small-link{display:inline-flex;align-items:center;gap:5px;font-size:11px;line-height:1.4;font-weight:850;white-space:nowrap;color:#b64d25}.spx-small-link .svg{width:13px;height:13px}
.spx-date-switch{display:flex;flex:none;align-items:center;gap:3px;padding:3px;border-radius:9px;background:#f8f3ef}.spx-date-switch button{padding:7px 10px;min-height:30px;border:0;border-radius:7px;font-size:10px;font-weight:850;color:#84746a;background:transparent}.spx-date-switch button.active{background:#fff;color:#a44520;box-shadow:0 2px 6px #43241111}
.spx-sport-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:13px}.spx-sport-filters button{font-size:10px;padding:6px 9px;min-height:30px;border:1px solid #f0e6df;border-radius:999px;background:#fff;color:#85756b;font-weight:800}.spx-sport-filters button.active{border-color:#e8b69b;background:#fff1e8;color:#ad4f25}
.spx-timeline{display:grid;gap:8px;min-height:116px}.spx-timeline-item{display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 12px;border-radius:11px;border:1px solid #efe5de;background:#fffdfa}.spx-timeline-time{font-size:15px;font-weight:850;letter-spacing:-.05em;line-height:1.25;font-variant-numeric:tabular-nums}.spx-timeline-time small{display:block;margin-top:3px;font-size:9px;color:#a3958a;font-weight:650;letter-spacing:0}.spx-timeline-main{display:grid;gap:3px;min-width:0}.spx-timeline-main strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spx-timeline-main small{font-size:10px;color:#93857b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spx-timeline-type{padding:6px 8px;border-radius:999px;background:#f4eaff;color:#8061b4;font-size:9px;font-weight:850}.spx-timeline-type.booking{background:#fff1e7;color:#b05123}.spx-empty{display:grid;justify-items:center;gap:7px;text-align:center;padding:23px 12px;background:#fffaf6;border:1px dashed #ecdccf;border-radius:10px}.spx-empty .svg{width:26px;height:26px;color:#c38a6c}.spx-empty strong{font-size:12px;color:#564337}.spx-empty small{font-size:10px;color:#908176;max-width:370px}
.spx-loading{color:#a08f83;font-size:11px;padding:12px 0}.spx-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #f1e7e1;margin-top:15px;padding-top:12px}.spx-card-foot span{font-size:10px;color:#9c8d84}.spx-card-foot a{display:flex;align-items:center;gap:5px;color:#ba4b20;font-size:11px;font-weight:850}.spx-card-foot .svg{width:13px;height:13px}
.spx-actions{display:grid;gap:8px}.spx-action-item{display:flex;align-items:start;gap:10px;min-height:58px;padding:12px;border:1px solid #efe5dd;border-radius:10px;background:#fffdfa}.spx-action-bullet{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:9px;background:#fff1e6;color:#bd571f}.spx-action-bullet .svg{width:16px;height:16px}.spx-action-content{display:grid;gap:4px;min-width:0;flex:1}.spx-action-content strong{font-size:12px;font-weight:850}.spx-action-content small{font-size:10px;color:#9b8b80;line-height:1.4}.spx-action-link{font-size:10px;font-weight:850;color:#b34a21;white-space:nowrap;margin-top:3px}.spx-action-help{padding:12px 0 0;color:#9e8e82;font-size:10px;line-height:1.5}.spx-action-icon{width:32px;height:32px;flex:none;display:grid;place-items:center;background:#f8efe7;border-radius:10px;color:#b95728}.spx-action-icon .svg{width:18px;height:18px}
.spx-academy-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}.spx-academy-stats>div{min-width:0;background:#fff8f3;border:1px solid #f1e7de;border-radius:10px;padding:13px 12px;display:grid;gap:4px}.spx-academy-stats strong{font-size:24px;line-height:1.1;letter-spacing:-.07em;font-weight:900}.spx-academy-stats small{font-size:10px;color:#988779}.spx-academy-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.spx-academy-mini{display:grid;align-content:start;gap:9px;padding:13px;border:1px solid #f0e6de;border-radius:11px}.spx-academy-mini h3{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:850;margin:0}.spx-academy-mini h3 .svg{width:17px;height:17px;color:#c36b39}.spx-class-schedule,.spx-student-insight{display:grid;gap:7px}.spx-mini-row{display:flex;justify-content:space-between;align-items:start;gap:9px;padding:9px 0;border-bottom:1px solid #f6efea}.spx-mini-row:last-child{border-bottom:0}.spx-mini-row>span{min-width:0;display:grid;gap:4px}.spx-mini-row strong{font-size:11px;line-height:1.3}.spx-mini-row small{font-size:10px;color:#9b8a7e;line-height:1.4}.spx-mini-row>b{font-size:11px;color:#ad4b20}.spx-academy-mini>.spx-small-link{margin-top:6px}
.spx-modalities{display:flex;gap:7px;flex-wrap:wrap}.spx-modality{display:inline-flex;align-items:center;gap:6px;border:1px solid #ede0d8;border-radius:99px;padding:8px 10px;color:#765c4c;background:#fffbf8;font-size:11px;font-weight:800}.spx-modality i{height:7px;width:7px;border-radius:50%;background:#d8875f;flex:none}.spx-sport-highlight{margin:17px 0 14px;padding:13px;background:#fff5ee;border:1px solid #f0e3d8;border-radius:11px}.spx-sport-highlight span{font-size:10px;font-weight:850;color:#bd5126}.spx-sport-highlight p{font-size:10px;color:#927869;line-height:1.5;margin:5px 0 0}
.spx-finance-rows{display:grid;gap:0}.spx-finance-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #f2e8e2;padding:12px 0;font-size:11px;color:#7f7168}.spx-finance-row strong{font-size:16px;font-weight:850;color:#30231c;font-variant-numeric:tabular-nums}.spx-finance-dot{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%}.spx-finance-dot.green{background:#53a977}.spx-finance-dot.amber{background:#dc974f}.spx-finance-dot.red{background:#dc8686}.spx-finance-caption{padding:12px 0;font-size:10px;color:#9e8e82;line-height:1.5}
.spx-readiness-percent{font-size:13px;font-weight:850;color:#b95529;background:#fff0e4;padding:7px 9px;border-radius:9px}.spx-readiness-track{width:100%;height:8px;border-radius:50px;background:#f1e7df;overflow:hidden}.spx-readiness-track span{height:100%;display:block;background:linear-gradient(90deg,#d9733e,#e7a264);transition:width .2s}.spx-readiness-list{display:grid;gap:5px;margin-top:12px}.spx-readiness-row{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:11px;color:#7b6b5f}.spx-readiness-row .svg{width:15px;height:15px;flex:none;color:#d3b4a1}.spx-readiness-row.complete .svg{color:#3b9c62}.spx-readiness-row span{flex:1}.spx-readiness-row a{font-size:10px;font-weight:800;color:#ad4b25}
.spx-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 0 4px;border-top:1px solid #ede0d7;font-size:10px;color:#9c897d}
@media(max-width:1250px){.spx-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.spx-primary-layout,.spx-secondary-layout{grid-template-columns:minmax(0,1.3fr) minmax(280px,.78fr)}.spx-welcome{grid-template-columns:minmax(0,1.4fr) minmax(265px,.75fr)}}
@media(max-width:1020px){.spx-welcome{grid-template-columns:minmax(0,1fr)}.spx-primary-layout,.spx-secondary-layout,.spx-bottom-layout{grid-template-columns:minmax(0,1fr)}.spx-feature{min-height:160px}.spx-focus-bar{align-items:stretch}.spx-refresh-wrap{margin-left:auto}}
@media(max-width:680px){.spx-home{min-height:calc(100dvh - 68px);padding:12px 10px 32px}.spx-container{gap:11px}.spx-welcome{gap:9px}.spx-welcome-copy{padding:21px 17px;min-height:0;border-radius:15px}.spx-welcome h1{font-size:29px}.spx-welcome-copy>p{font-size:11px}.spx-eyebrow{font-size:9px}.spx-unit-line{margin-top:15px}.spx-unit-line strong{font-size:11px}.spx-unit-line small{font-size:9px}.spx-feature{border-radius:14px;padding:17px;min-height:0}.spx-feature-time{font-size:38px;margin-top:6px}.spx-feature h2{font-size:17px}.spx-focus-bar{padding:11px;border-radius:12px;gap:9px}.spx-focus-copy{width:100%}.spx-focus-pills{display:flex;overflow:auto;flex-wrap:nowrap;max-width:100%;padding-bottom:3px;scrollbar-width:none}.spx-focus-pills::-webkit-scrollbar{display:none}.spx-focus-pill{white-space:nowrap;flex:none}.spx-refresh-wrap{width:100%;justify-content:space-between}.spx-freshness{white-space:normal}.spx-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.spx-stat{padding:12px;border-radius:11px}.spx-stat-caption{font-size:10px}.spx-stat strong{font-size:27px}.spx-stat .spx-stat-money{font-size:20px}.spx-stat small{font-size:9px}.spx-card{padding:13px;border-radius:13px}.spx-card-header{margin-bottom:11px;gap:6px;flex-wrap:wrap}.spx-card-header h2{font-size:15px}.spx-card-header p{font-size:10px}.spx-date-switch{width:100%;justify-content:space-between}.spx-date-switch button{flex:1}.spx-timeline-item{grid-template-columns:52px minmax(0,1fr);gap:8px;padding:9px}.spx-timeline-type{grid-column:2;justify-self:start;font-size:9px;padding:4px 7px}.spx-timeline-time{font-size:12px}.spx-academy-stats{gap:5px}.spx-academy-stats>div{padding:9px}.spx-academy-stats strong{font-size:19px}.spx-academy-stats small{font-size:9px}.spx-academy-columns{grid-template-columns:1fr}.spx-stat-grid .spx-stat:last-child{grid-column:1/-1}.spx-finance-row{font-size:10px}.spx-finance-row strong{font-size:13px}}
@media(max-width:370px){.spx-welcome h1{font-size:26px}.spx-unit-line{flex-wrap:wrap}.spx-public-status{margin-left:0}.spx-stat-grid{grid-template-columns:1fr}.spx-stat-grid .spx-stat:last-child{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.spx-refresh.is-loading .svg{animation:none}.spx-readiness-track span{transition:none}}

/* Focus modes reuse the same cached dashboard data; no network request on switching. */
.spx-home[data-focus="academia"] .spx-academy-card,
.spx-home[data-focus="escolinha"] .spx-academy-card{border-color:#d1b4f0;box-shadow:0 10px 31px #663d9a15}
.spx-home[data-focus="quadras"] .spx-agenda-card,
.spx-home[data-focus="quadras"] .spx-sports-card{border-color:#e8b89d;box-shadow:0 10px 31px #ad5a1d12}
.spx-home[data-focus="academia"] .spx-academy-stats>div{background:#faf7ff;border-color:#e9dff5}
.spx-home[data-focus="escolinha"] .spx-academy-stats>div{background:#f3f9ff;border-color:#e2ecf7}
.spx-focus-pill:focus-visible,.spx-date-switch button:focus-visible,.spx-sport-filters button:focus-visible{outline:2px solid #9f572e;outline-offset:2px}
