:root{--bg:#07111f;--bg2:#0b1627;--surface:#0f1b2d;--surface2:#111f34;--card:#ffffff;--card2:#f8fafc;--line:#dbe4ef;--lineDark:rgba(148,163,184,.22);--text:#0f172a;--textSoft:#475569;--textLight:#f8fafc;--muted:#94a3b8;--green:#84cc16;--green2:#16a34a;--blue:#38bdf8;--blue2:#2563eb;--amber:#f59e0b;--red:#dc2626;--purple:#8b5cf6;--radius:18px;--shadow:0 18px 60px rgba(2,6,23,.18);--font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:var(--font);background:radial-gradient(circle at top left,rgba(56,189,248,.10),transparent 34%),linear-gradient(135deg,#07111f 0%,#0b1220 44%,#08111f 100%);color:var(--textLight);min-height:100vh}.nav,.athlete-nav{position:sticky;top:0;z-index:30;background:rgba(7,17,31,.86);backdrop-filter:blur(16px);border-bottom:1px solid var(--lineDark);color:#fff;padding:12px 24px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.nav strong,.athlete-nav strong{font-weight:900;letter-spacing:-.03em;margin-right:8px}.nav a,.athlete-nav a{color:#e2e8f0;text-decoration:none;border-radius:999px;padding:8px 11px;font-size:14px;font-weight:700;transition:.2s}.nav a:hover,.athlete-nav a:hover{background:rgba(132,204,22,.13);color:#fff}.container{max-width:1280px;margin:22px auto;padding:0 16px}.card{background:rgba(255,255,255,.96);color:var(--text);border:1px solid rgba(226,232,240,.9);border-radius:var(--radius);padding:18px;margin-bottom:16px;box-shadow:var(--shadow)}.card h1,.card h2,.card h3{color:var(--text)}h1{margin:10px 0 18px;color:var(--textLight);font-size:clamp(28px,3vw,42px);letter-spacing:-.045em}h2{margin:0 0 14px;font-size:22px;letter-spacing:-.025em}h3{letter-spacing:-.015em}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}label{display:block;margin:0 0 6px;color:#334155;font-size:13px;font-weight:800}input,select,textarea{width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#0f172a;font:inherit;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:#38bdf8;box-shadow:0 0 0 4px rgba(56,189,248,.18)}textarea{min-height:110px}.table-wrap{overflow-x:auto;border-radius:14px;border:1px solid #dbe4ef;background:#fff}table{width:100%;border-collapse:collapse;background:#fff;color:#0f172a}th,td{padding:11px;border-bottom:1px solid #e2e8f0;vertical-align:top;text-align:left}th{background:#f1f5f9;color:#334155;font-size:12px;text-transform:uppercase;letter-spacing:.055em}td{font-size:14px}tr:last-child td{border-bottom:0}.btn{border:0;border-radius:999px;padding:9px 13px;background:var(--blue2);color:white;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;cursor:pointer;margin:2px;font-weight:800;font-size:13px;box-shadow:0 8px 20px rgba(37,99,235,.20);transition:transform .15s,filter .15s}.btn:hover{transform:translateY(-1px);filter:brightness(1.04)}.green{background:var(--green2);box-shadow:0 8px 20px rgba(22,163,74,.20)}.red{background:var(--red);box-shadow:0 8px 20px rgba(220,38,38,.18)}.amber{background:var(--amber);color:#111827;box-shadow:0 8px 20px rgba(245,158,11,.20)}.secondary{background:#475569}.badge{display:inline-flex;align-items:center;border-radius:999px;background:#dbeafe;color:#1d4ed8;padding:5px 9px;font-size:12px;font-weight:900}.status-planned{background:#dbeafe;color:#1d4ed8}.status-done,.status-completed{background:#dcfce7;color:#166534}.status-resigned{background:#ffedd5;color:#9a3412}.muted{color:#64748b}.kpi{font-size:34px;font-weight:900;letter-spacing:-.05em}.kpi-card{background:linear-gradient(135deg,rgba(15,27,45,.96),rgba(17,31,52,.92));color:#fff;border:1px solid rgba(148,163,184,.25);box-shadow:0 16px 50px rgba(2,6,23,.28)}.kpi-card .muted{color:#cbd5e1}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.calendar-headers{color:#cbd5e1}.day{background:rgba(255,255,255,.96);color:#0f172a;min-height:132px;border-radius:16px;padding:10px;border:1px solid #dbe4ef;box-shadow:0 10px 34px rgba(2,6,23,.10)}.out{opacity:.48}.mini{font-size:12px;background:#eff6ff;border:1px solid #dbeafe;border-radius:10px;margin:5px 0;padding:7px;display:block;text-decoration:none;color:#0f172a}.week-section{border-left:5px solid var(--green);background:rgba(255,255,255,.96)}.month-title{text-align:center;font-size:28px;margin:16px 0;color:#fff;font-weight:900;letter-spacing:-.04em}.public .trainer-only,.public .nav{display:none}.hidden{display:none}.setbox{border:1px solid #bfdbfe;border-radius:16px;padding:14px;margin:12px 0;background:#f8fafc}.exerciseBlock{border-left:4px solid var(--blue2);padding:12px;margin:10px 0;background:#fff;border-radius:12px}.link-cell{font-size:12px;word-break:break-all}.numeric-cell{text-align:right;font-variant-numeric:tabular-nums}.exercise-sequence{display:flex;flex-wrap:wrap;gap:8px}.exercise-pill{display:inline-flex;gap:8px;align-items:center;border:1px solid #d1d5db;border-radius:999px;padding:6px 10px;background:#fff}.exercise-pill a{font-weight:800;color:#2563eb}.alert{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:14px;padding:12px;margin:10px 0}.ok{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0;border-radius:14px;padding:12px;margin:10px 0}.race-done td{background:#ecfdf5}.race-resigned td{background:#fff7ed}.action-stack{display:flex;flex-wrap:wrap;gap:6px}.dashboard-row{align-items:stretch}.quick-link-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(135deg,#0f1b2d,#0b1627);color:white;border:1px solid rgba(148,163,184,.2)}@media(max-width:760px){body{background:#07111f}.container{margin:14px auto;padding:0 10px}.nav,.athlete-nav{padding:10px;gap:7px;overflow-x:auto;flex-wrap:nowrap}.nav strong,.athlete-nav strong{min-width:max-content}.nav a,.athlete-nav a{min-width:max-content;font-size:13px;padding:8px 10px}.card{padding:13px;border-radius:15px;margin-bottom:12px}.grid,.form-grid{grid-template-columns:1fr}h1{font-size:28px}.kpi{font-size:27px}.calendar{grid-template-columns:1fr}.day{min-height:auto}.table-wrap{overflow-x:auto}table{min-width:760px}th,td{padding:8px;font-size:13px}.btn{padding:8px 11px;font-size:12px}.month-title{font-size:22px}.action-stack{flex-direction:column;align-items:stretch}.action-stack .btn{width:100%}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* v5.14 mobile strength training and athlete actions polish */
.inline-toggle-form{display:flex;align-items:center;gap:8px;min-width:190px}.inline-toggle-form input{width:auto}.athlete-actions form{display:inline-flex;margin:0}.archived-row{opacity:.72}.archived-row td{background:#f8fafc}.strength-set-list,.sets-list,.exercise-sets,.workout-strength-section{max-width:100%;overflow-x:hidden}.setbox,.exerciseBlock,.strength-set,.set-row,.exercise-row{max-width:100%;overflow-wrap:anywhere;word-break:break-word}.exercise-sequence{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}.exercise-pill{max-width:100%;white-space:normal;overflow-wrap:anywhere}.workout-detail-card,.workout-detail,.strength-details,.strength-table-wrapper{max-width:100%;overflow-x:auto}pre,code{white-space:pre-wrap;word-break:break-word}
@media(max-width:760px){
  .athletes-table-wrap{border:0;background:transparent;overflow:visible}.athletes-table{min-width:0!important;background:transparent}.athletes-table thead,.athletes-table tbody,.athletes-table tr,.athletes-table th,.athletes-table td{display:block;width:100%}.athletes-table tr:first-child{display:none}.athletes-table tr{background:#fff;border:1px solid #dbe4ef;border-radius:16px;margin:0 0 12px;padding:12px;box-shadow:0 10px 30px rgba(2,6,23,.08)}.athletes-table td{border-bottom:0!important;padding:8px 0!important}.athletes-table td:before{content:attr(data-label);display:block;font-size:11px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin-bottom:3px}.athlete-actions{display:grid!important;grid-template-columns:1fr;gap:8px}.athlete-actions .btn,.athlete-actions form,.athlete-actions form button{width:100%;justify-content:center}.inline-toggle-form{min-width:0}.card,.setbox,.exerciseBlock{max-width:100%;overflow:hidden}.setbox{padding:12px}.exerciseBlock{padding:12px}.exercise-sequence{display:grid;grid-template-columns:1fr}.exercise-pill{display:flex;width:100%;align-items:flex-start;justify-content:space-between;border-radius:14px;line-height:1.35}.table-wrap table.strength-table,.strength-table{min-width:0!important}.strength-table thead,.strength-table tbody,.strength-table tr,.strength-table th,.strength-table td{display:block;width:100%}.strength-table tr{border:1px solid #e2e8f0;border-radius:14px;padding:10px;margin-bottom:10px}.strength-table th{display:none}.strength-table td{border-bottom:0!important;padding:6px 0!important}.strength-table td:before{content:attr(data-label);display:block;font-size:11px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.06em}.form-grid input,.form-grid select,.form-grid textarea{max-width:100%}button,.btn{white-space:normal;text-align:center}.workout-detail-card table,.workout-detail table{min-width:0!important}.workout-detail-card td,.workout-detail td{word-break:break-word;overflow-wrap:anywhere}
}


/* v5.15 archive and mobile strength detail fixes */
.archive-table-wrap,.athletes-table-wrap{overflow-x:auto}.inline-toggle-form{display:flex;align-items:center;gap:8px}.inline-toggle-form input{width:auto}.athlete-actions form{display:inline-flex;margin:0}.detail-scroll-x,.strength-scroll-x{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:760px){
  .archive-table-wrap,.athletes-table-wrap{border:0;background:transparent;overflow:visible}.archive-table,.athletes-table{min-width:0!important;background:transparent}.archive-table tr:first-child,.athletes-table tr:first-child{display:none}.archive-table tr,.athletes-table tr{display:block;background:#fff;border:1px solid #dbe4ef;border-radius:16px;margin:0 0 12px;padding:12px;box-shadow:0 10px 30px rgba(2,6,23,.08)}.archive-table td,.athletes-table td{display:block;width:100%;border-bottom:0!important;padding:8px 0!important}.archive-table td:before,.athletes-table td:before{content:attr(data-label);display:block;font-size:11px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin-bottom:3px}.athlete-actions{display:grid!important;grid-template-columns:1fr;gap:8px}.athlete-actions .btn,.athlete-actions form,.athlete-actions form button{width:100%;justify-content:center}
  .setbox,.exerciseBlock,.strength-details,.workout-strength-section,.workout-detail-card,.workout-detail{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}.setbox table,.exerciseBlock table,.strength-details table,.workout-strength-section table,table.strength-table{min-width:760px!important;width:max-content!important;display:table!important;border-collapse:collapse}.setbox thead,.exerciseBlock thead,.strength-details thead,.workout-strength-section thead,.strength-table thead{display:table-header-group!important}.setbox tbody,.exerciseBlock tbody,.strength-details tbody,.workout-strength-section tbody,.strength-table tbody{display:table-row-group!important}.setbox tr,.exerciseBlock tr,.strength-details tr,.workout-strength-section tr,.strength-table tr{display:table-row!important}.setbox th,.setbox td,.exerciseBlock th,.exerciseBlock td,.strength-details th,.strength-details td,.workout-strength-section th,.workout-strength-section td,.strength-table th,.strength-table td{display:table-cell!important;white-space:nowrap!important;min-width:90px}.setbox td:before,.exerciseBlock td:before,.strength-details td:before,.workout-strength-section td:before,.strength-table td:before{content:none!important}.exercise-sequence{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px}.exercise-pill{flex:0 0 auto;white-space:nowrap}
}


/* v5.16.1 mobile strength detail table fixes */
@media(max-width:760px){
  .strength-details,.workout-strength-section,.exerciseBlock,.setbox,.workout-detail,.workout-detail-card,.strength-scroll-x,.detail-scroll-x{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;}
  .strength-details table,.workout-strength-section table,.exerciseBlock table,.setbox table,table.strength-table{display:table!important;min-width:max-content!important;width:max-content!important;border-collapse:collapse!important;table-layout:auto!important;}
  .strength-details thead,.workout-strength-section thead,.exerciseBlock thead,.setbox thead,.strength-table thead{display:table-header-group!important;}
  .strength-details tbody,.workout-strength-section tbody,.exerciseBlock tbody,.setbox tbody,.strength-table tbody{display:table-row-group!important;}
  .strength-details tr,.workout-strength-section tr,.exerciseBlock tr,.setbox tr,.strength-table tr{display:table-row!important;}
  .strength-details th,.strength-details td,.workout-strength-section th,.workout-strength-section td,.exerciseBlock th,.exerciseBlock td,.setbox th,.setbox td,.strength-table th,.strength-table td{display:table-cell!important;white-space:nowrap!important;vertical-align:top!important;padding:8px 10px!important;}
  .strength-details td:before,.workout-strength-section td:before,.exerciseBlock td:before,.setbox td:before,.strength-table td:before{content:none!important;}
  .strength-details th:first-child,.strength-details td:first-child,.workout-strength-section th:first-child,.workout-strength-section td:first-child,.exerciseBlock th:first-child,.exerciseBlock td:first-child,.setbox th:first-child,.setbox td:first-child,.strength-table th:first-child,.strength-table td:first-child{width:58px!important;min-width:58px!important;max-width:58px!important;text-align:center!important;}
  .strength-details th:nth-child(2),.strength-details td:nth-child(2),.workout-strength-section th:nth-child(2),.workout-strength-section td:nth-child(2),.exerciseBlock th:nth-child(2),.exerciseBlock td:nth-child(2),.setbox th:nth-child(2),.setbox td:nth-child(2),.strength-table th:nth-child(2),.strength-table td:nth-child(2){width:auto!important;min-width:max-content!important;max-width:none!important;white-space:nowrap!important;}
  .strength-details th,.workout-strength-section th,.exerciseBlock th,.setbox th,.strength-table th{font-size:11px!important;}
  .exercise-sequence{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;padding-bottom:6px!important;}
  .exercise-pill{flex:0 0 auto!important;white-space:nowrap!important;max-width:none!important;}
}


/* v5.16.2 mobile strength horizontal scroll and column sizing */
@media(max-width:760px){
  .strength-details,.workout-strength-section,.exerciseBlock,.setbox,.workout-detail,.workout-detail-card,.strength-scroll-x,.detail-scroll-x{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;}
  .strength-details table,.workout-strength-section table,.exerciseBlock table,.setbox table,table.strength-table{display:table!important;min-width:max-content!important;width:max-content!important;border-collapse:collapse!important;table-layout:auto!important;}
  .strength-details thead,.workout-strength-section thead,.exerciseBlock thead,.setbox thead,.strength-table thead{display:table-header-group!important;}
  .strength-details tbody,.workout-strength-section tbody,.exerciseBlock tbody,.setbox tbody,.strength-table tbody{display:table-row-group!important;}
  .strength-details tr,.workout-strength-section tr,.exerciseBlock tr,.setbox tr,.strength-table tr{display:table-row!important;}
  .strength-details th,.strength-details td,.workout-strength-section th,.workout-strength-section td,.exerciseBlock th,.exerciseBlock td,.setbox th,.setbox td,.strength-table th,.strength-table td{display:table-cell!important;white-space:nowrap!important;vertical-align:top!important;padding:8px 10px!important;}
  .strength-details td:before,.workout-strength-section td:before,.exerciseBlock td:before,.setbox td:before,.strength-table td:before{content:none!important;}
  .strength-details th:first-child,.strength-details td:first-child,.workout-strength-section th:first-child,.workout-strength-section td:first-child,.exerciseBlock th:first-child,.exerciseBlock td:first-child,.setbox th:first-child,.setbox td:first-child,.strength-table th:first-child,.strength-table td:first-child{width:58px!important;min-width:58px!important;max-width:58px!important;text-align:center!important;}
  .strength-details th:nth-child(2),.strength-details td:nth-child(2),.workout-strength-section th:nth-child(2),.workout-strength-section td:nth-child(2),.exerciseBlock th:nth-child(2),.exerciseBlock td:nth-child(2),.setbox th:nth-child(2),.setbox td:nth-child(2),.strength-table th:nth-child(2),.strength-table td:nth-child(2){width:auto!important;min-width:max-content!important;max-width:none!important;white-space:nowrap!important;}
}


/* v5.17.1 UI fixes: HH:MM:SS fields and workout athlete multi-filter */
.tc-workout-athlete-filter select{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:10px;background:#fff;color:#0f172a}.tc-workout-athlete-filter option{padding:6px}.tc-workout-athlete-filter label{font-weight:900;color:#334155}input[name$="duration_min"],input[name$="duration_minutes"],input[name$="time_min"]{font-variant-numeric:tabular-nums;letter-spacing:.02em}.tc-hidden-non-running{display:none!important}


/* v5.18 complete workout time/distance and workouts athlete filter */
.tc-workout-athlete-filter select{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:10px;background:#fff;color:#0f172a}.tc-workout-athlete-filter option{padding:6px}.tc-workout-athlete-filter label{font-weight:900;color:#334155}.tc-hidden-non-running{display:none!important}input[name$="duration_min"],input[name$="duration_minutes"],input[name$="time_min"]{font-variant-numeric:tabular-nums;letter-spacing:.02em}


/* v5.18.1 single athlete filter under Wszystkie treningi */
.tc-workout-athlete-filter{margin-top:10px;margin-bottom:16px}.tc-workout-athlete-filter.compact{padding:14px 16px}.tc-workout-athlete-filter-row{display:grid;grid-template-columns:minmax(220px,360px) auto;gap:12px;align-items:end}.tc-workout-athlete-filter label{display:block;font-size:12px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}.tc-workout-athlete-filter select{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:10px 12px;background:#fff;color:#0f172a;font-weight:700}.tc-workout-athlete-counter{font-size:13px;color:#64748b;margin-top:8px}@media(max-width:760px){.tc-workout-athlete-filter-row{grid-template-columns:1fr}.tc-workout-athlete-filter .btn{width:100%}}


/* v5.18.2 filter placement and mobile month plan weekday labels */
.tc-workout-athlete-filter{margin:10px 0 16px 0;position:relative!important;top:auto!important;z-index:1!important}.tc-workout-athlete-filter.compact{padding:14px 16px}.tc-workout-athlete-filter-row{display:grid;grid-template-columns:minmax(220px,360px) auto;gap:12px;align-items:end}.tc-workout-athlete-filter label{display:block;font-size:12px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}.tc-workout-athlete-filter select{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:10px 12px;background:#fff;color:#0f172a;font-weight:700}.tc-workout-athlete-counter{font-size:13px;color:#64748b;margin-top:8px}.tc-weekday-inline{display:inline-flex;align-items:center;margin-left:8px;padding:3px 8px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:12px;font-weight:900;letter-spacing:.02em}.tc-mobile-weekday-header-row{display:table-row}.tc-day-number-inline{display:inline-flex;align-items:center;gap:4px}
@media(max-width:760px){.tc-workout-athlete-filter-row{grid-template-columns:1fr}.tc-workout-athlete-filter .btn{width:100%}.tc-mobile-weekday-header-row{display:none!important}.tc-weekday-inline{font-size:11px;padding:3px 7px}.tc-month-day-enhanced{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important}}


/* v5.18.3 smaller clear filter button and mobile month weekday labels */
.tc-workout-athlete-filter{margin:10px 0 16px 0;position:relative!important;top:auto!important;z-index:1!important}.tc-workout-athlete-filter.compact{padding:14px 16px}.tc-workout-athlete-filter-row{display:grid;grid-template-columns:minmax(220px,360px) max-content;gap:10px;align-items:end}.tc-workout-athlete-filter label{display:block;font-size:12px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}.tc-workout-athlete-filter select{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:10px 12px;background:#fff;color:#0f172a;font-weight:700}.tc-workout-athlete-filter .tc-clear-filter-btn{font-size:12px!important;padding:5px 9px!important;min-height:0!important;line-height:1.15!important;border-radius:10px!important;width:auto!important;max-width:120px!important}.tc-workout-athlete-counter{font-size:13px;color:#64748b;margin-top:8px}.tc-weekday-inline{display:inline-flex;align-items:center;margin-left:8px;padding:3px 8px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:12px;font-weight:900;letter-spacing:.02em}.tc-mobile-weekday-header-row{display:table-row}.tc-day-number-inline{display:inline-flex;align-items:center;gap:4px}.tc-month-day-enhanced{gap:6px}
@media(max-width:760px){.tc-workout-athlete-filter-row{grid-template-columns:1fr auto}.tc-workout-athlete-filter .tc-clear-filter-btn{width:auto!important;max-width:112px!important;justify-self:start!important;padding:5px 8px!important;font-size:11px!important}.tc-mobile-weekday-header-row,.tc-mobile-weekday-header-cell{display:none!important}.tc-weekday-inline{font-size:11px;padding:3px 7px;margin-left:6px}.tc-month-day-enhanced{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important}.tc-day-number-inline strong{font-weight:950}}


/* v5.18.4 force mobile month weekday labels */
.tc-weekday-inline{display:inline-flex;align-items:center;margin-left:8px;padding:3px 8px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:12px;font-weight:900;letter-spacing:.02em;vertical-align:middle}.tc-day-number-inline{display:inline-flex;align-items:center;gap:4px}.tc-month-day-enhanced{gap:6px}.tc-mobile-weekday-header-row,.tc-mobile-weekday-header-cell{ }
@media(max-width:760px){.tc-mobile-weekday-header-row,.tc-mobile-weekday-header-cell{display:none!important}.tc-weekday-inline{font-size:11px;padding:3px 7px;margin-left:6px}.tc-month-day-enhanced{display:inline-flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important}.tc-day-number-inline strong{font-weight:950}.tc-month-day-cell-enhanced{position:relative!important}.tc-month-day-cell-enhanced .tc-day-number-inline{margin-bottom:4px}}


/* v5.18.5 mobile plan card weekday labels */
.tc-plan-day-title{display:flex!important;align-items:center!important;gap:8px!important;line-height:1.1!important}.tc-plan-weekday-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 9px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:900;letter-spacing:.02em;vertical-align:middle}.tc-plan-weekday-header-hidden{display:none!important}.tc-plan-card-weekday-enhanced{position:relative}
@media(max-width:760px){.tc-plan-weekday-badge{font-size:11px;padding:3px 8px}.tc-plan-day-title{gap:6px!important}.tc-plan-card-weekday-enhanced{overflow:visible!important}}


/* v5.19 weekly AI summaries */
.summary-text{line-height:1.65;color:#0f172a}.summary-text h2,.summary-text h3{margin-top:18px}.summaries-table td{vertical-align:top}@media(max-width:760px){.summaries-table tr:first-child{display:none}.summaries-table tr{display:block;background:#fff;border:1px solid #dbe4ef;border-radius:16px;margin:0 0 12px;padding:12px}.summaries-table td{display:block;width:100%;padding:7px 0!important;border-bottom:0!important}.summaries-table td:before{content:attr(data-label);display:block;font-size:11px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin-bottom:3px}}
/* v5.18.6 mobile plan card weekday fix */

.tc-v5186-day-heading {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.1 !important;
}

.tc-v5186-day-number {
  font-weight: 950 !important;
}

.tc-v5186-weekday {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
}

.tc-v5186-weekday-header {
  display: none !important;
}

@media (max-width: 760px) {
  .tc-v5186-day-heading {
    gap: 6px !important;
  }

  .tc-v5186-weekday {
    padding: 3px 7px !important;
    font-size: 11px !important;
  }
}
/* v5.18.7 frontend recovery */
.tc-day-heading{display:flex!important;align-items:center!important;gap:7px!important;width:100%!important;margin:0 0 4px!important;line-height:1.1!important}.tc-day-weekday{display:inline-flex!important;align-items:center!important;padding:3px 8px!important;border-radius:999px!important;background:#dbeafe!important;color:#1d4ed8!important;font-size:11px!important;font-weight:900!important}.tc-workout-athlete-filter{position:relative!important;top:auto!important;z-index:1!important}.tc-workout-athlete-filter .tc-clear-filter-btn{font-size:11px!important;padding:5px 8px!important;min-height:0!important;width:auto!important;max-width:112px!important}


/* v5.18.8 exact .day selector weekday labels */
.day > .tc-v5188-day-header{display:flex;align-items:center;gap:7px;margin:0 0 6px 0;line-height:1.1}.tc-v5188-day-number{font-weight:950}.tc-v5188-weekday{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:900}.tc-v5188-weekday-row{display:none!important}


/* v5.18.10 hide only direct calendar weekday headers on mobile */
@media (max-width: 760px) {
  .calendar > strong {
    display: none !important;
  }
}


/* v5.20 email notifications history */
.email-log-filter-grid{align-items:end}.email-log-actions{display:flex;gap:8px;align-items:center}.email-log-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.email-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:900}.email-status-sent{background:#dcfce7;color:#166534}.email-status-pending{background:#fef3c7;color:#92400e}.email-status-error{background:#fee2e2;color:#991b1b}.email-error-message{margin-top:8px;padding:10px;border-radius:10px;background:#fff1f2;color:#9f1239;white-space:pre-wrap;word-break:break-word}.email-log-table td{vertical-align:top}
@media(max-width:760px){.email-log-filter-grid{display:grid!important;grid-template-columns:1fr!important}.email-log-actions{display:grid;grid-template-columns:1fr 1fr}.email-log-actions .btn{width:100%;justify-content:center}.email-log-table tr:first-child{display:none}.email-log-table tr{display:block;background:#fff;border:1px solid #dbe4ef;border-radius:16px;margin:0 0 12px;padding:12px;box-shadow:0 8px 24px rgba(2,6,23,.06)}.email-log-table td{display:block;width:100%;padding:7px 0!important;border-bottom:0!important;overflow-wrap:anywhere}.email-log-table td:before{content:attr(data-label);display:block;font-size:11px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin-bottom:3px}}


/* v5.20.2 targeted strength scroll hint and regression fixes */
.tc-strength-scroll-hint{display:none}
@media(max-width:760px){
  .workout-strength-section > .tc-strength-scroll-hint,
  .strength-details > .tc-strength-scroll-hint{display:block;font-size:12px;color:#64748b;margin-top:6px}
  .tc-running-distance-only{display:block}
}


/* v5.21.2 strength history assistant */
.strength-history-panel{margin-top:10px;padding:12px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff;color:#0f172a}.strength-history-panel.is-empty{border-color:#e2e8f0;background:#f8fafc}.strength-history-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:900}.strength-history-date{font-size:12px;color:#475569}.strength-history-series{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.strength-history-chip{display:inline-flex;padding:5px 8px;border-radius:999px;background:#fff;border:1px solid #bfdbfe;font-size:12px;font-weight:800}.strength-history-meta{margin-top:8px;font-size:12px;color:#475569}.strength-history-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.strength-history-actions button{font-size:12px;padding:7px 10px;min-height:0}.strength-history-list{margin-top:10px;border-top:1px solid #bfdbfe;padding-top:8px}.strength-history-entry{padding:8px 0;border-bottom:1px solid #dbeafe}.strength-history-entry:last-child{border-bottom:0}.strength-history-entry-date{font-weight:900;font-size:12px}.strength-history-entry-data{font-size:12px;color:#475569;margin-top:3px}.strength-history-progress{margin-top:8px;padding:7px 9px;border-radius:10px;background:#dcfce7;color:#166534;font-size:12px;font-weight:800}.strength-history-loading{font-size:12px;color:#475569}.strength-history-error{font-size:12px;color:#991b1b}
@media(max-width:760px){.strength-history-title{align-items:flex-start;flex-direction:column;gap:3px}.strength-history-actions{display:grid;grid-template-columns:1fr}.strength-history-actions button{width:100%;justify-content:center}.strength-history-chip{font-size:11px}}


/* v5.21.3 progress analytics */
.strength-analytics-box{margin-top:10px;padding:10px;border:1px solid #c7d2fe;border-radius:12px;background:#eef2ff}.strength-analytics-button{font-size:12px!important;padding:7px 10px!important}.strength-record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:9px}.strength-record-card{padding:8px;border:1px solid #dbeafe;border-radius:10px;background:#fff}.strength-record-label{display:block;font-size:10px;font-weight:900;color:#64748b;text-transform:uppercase}.strength-record-value{display:block;margin-top:3px;font-size:15px;font-weight:950}.strength-record-date{display:block;margin-top:2px;font-size:10px;color:#64748b}.strength-mini-chart{width:100%;height:140px;margin-top:10px;background:#fff;border-radius:10px}.strength-chart-note{font-size:10px;color:#64748b;margin-top:4px}
@media(max-width:760px){.strength-record-grid{grid-template-columns:1fr}.strength-mini-chart{height:125px}.strength-analytics-button{width:100%}}


/* v5.22.1 workout templates foundation */
.template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px}.template-card{border:1px solid #dbe4ef;border-radius:16px;padding:16px;background:#fff}.template-card h3{margin:0 0 6px}.template-meta{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.template-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.template-empty{padding:20px;text-align:center;color:#64748b}
@media(max-width:760px){.template-actions{display:grid;grid-template-columns:1fr}.template-actions .btn,.template-actions button{width:100%;justify-content:center}}

/* v5.21.3.1 analytics stability */
.analytics-panel-anchor{width:100%;display:block;margin-top:8px}


/* v5.22.2 save and load workout templates */
.save-template-box{margin-top:16px;padding:14px;border:1px solid #dbe4ef;border-radius:14px;background:#f8fafc}.save-template-box h3{margin:0 0 10px}.save-template-form,.template-picker-form{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:10px;align-items:center}.template-picker-box{border-color:#bfdbfe;background:#eff6ff}.template-picker-box h2{margin-top:0}
@media(max-width:760px){.save-template-form,.template-picker-form{grid-template-columns:1fr}.save-template-form .btn,.template-picker-form .btn{width:100%;justify-content:center}}


/* v5.21.3.3 final analytics stability */
.strength-analytics-box{display:block;width:100%;margin-top:10px}.strength-analytics-content.hidden{display:none!important}.strength-analytics-content:not(.hidden){display:block!important}


/* v5.22.3 template manager */
.template-manager-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(170px,240px) auto auto;gap:10px;align-items:end}.template-card.favorite{border-color:#fbbf24;box-shadow:0 10px 28px rgba(245,158,11,.12)}.template-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.favorite-toggle{border:0;background:transparent;font-size:24px;line-height:1;cursor:pointer;padding:0}.template-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.template-stat{padding:8px;border-radius:10px;background:#f8fafc}.template-stat-label{font-size:10px;color:#64748b;text-transform:uppercase;font-weight:900}.template-stat-value{font-weight:900;margin-top:2px}.template-edit-form{display:grid;gap:14px}.template-edit-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:760px){.template-manager-filters{grid-template-columns:1fr}.template-stats{grid-template-columns:1fr}.template-edit-actions{display:grid;grid-template-columns:1fr}.template-edit-actions .btn{width:100%;justify-content:center}.save-template-form{grid-template-columns:1fr!important}}


/* v5.22.3.1 visual fix */

.template-card{
    color:#0f172a !important;
}

.template-card h3{
    color:#0f172a !important;
    font-weight:900;
}

.template-card .muted{
    color:#475569 !important;
}

.template-card p{
    color:#334155 !important;
}

.template-stat{
    background:#f8fafc !important;
    border:1px solid #e2e8f0;
}

.template-stat-value{
    color:#0f172a !important;
    font-weight:900;
    font-size:15px;
}

.template-stat-label{
    color:#64748b !important;
}

.favorite-toggle{
    width:44px;
    height:44px;
    border-radius:12px;
    background:#fff7d6;
    border:1px solid #facc15;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
}

.favorite-toggle:hover{
    background:#fef3c7;
}

.template-card.favorite{
    border:2px solid #facc15 !important;
}

.template-meta .badge{
    font-weight:700;
}

.template-actions{
    margin-top:12px;
}



/* v5.23.1 smart strength suggestions */
.strength-suggestion-box{display:block;width:100%;margin-top:10px;padding:12px;border:1px solid #cbd5e1;border-radius:14px;background:#f8fafc;color:#0f172a}.strength-suggestion-box.confidence-high{border-color:#86efac;background:#f0fdf4}.strength-suggestion-box.confidence-medium{border-color:#fde047;background:#fefce8}.strength-suggestion-box.confidence-low{border-color:#fca5a5;background:#fef2f2}.strength-suggestion-title{font-size:15px;font-weight:950}.strength-suggestion-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.strength-suggestion-grid>div{padding:9px;border:1px solid rgba(148,163,184,.35);border-radius:10px;background:#fff}.strength-suggestion-grid span,.strength-suggestion-grid small{display:block;color:#64748b;font-size:10px}.strength-suggestion-grid strong{display:block;margin:3px 0;font-size:16px}.strength-suggestion-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px;font-size:12px;font-weight:900}.strength-suggestion-meta span{padding:5px 8px;border-radius:999px;background:#fff}.strength-suggestion-reason{margin-top:9px;font-size:12px;color:#475569}.suggestion-apply{margin-top:10px}.suggestion-applied{margin-top:8px;color:#166534;font-size:12px;font-weight:900}.strength-suggestion-loading{font-size:12px;color:#64748b}
@media(max-width:760px){.strength-suggestion-grid{grid-template-columns:1fr}.suggestion-apply{width:100%;justify-content:center}}

/* v5.23.7 Coach Alerts Dashboard */

.coach-alert-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(280px,1fr));
    gap:12px;
    margin-top:12px;
}

.coach-alert-grid .card{
    height:100%;
}

.coach-alert-grid h3{
    margin-top:0;
    margin-bottom:10px;
}

.coach-alert-grid p{
    margin:4px 0;
}

@media (max-width:768px){

    .coach-alert-grid{

        grid-template-columns:1fr;

        gap:10px;
    }

    .coach-alert-grid .card{

        padding:12px;
    }

}
/* v5.23.8 performance analytics */
.v5238-performance-dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}.v5238-insight-row{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:10px;padding:9px 0;border-bottom:1px solid #e2e8f0}.v5238-insight-row span:last-child{text-align:right}@media(max-width:900px){.v5238-performance-dashboard,.v5238-insight-row{grid-template-columns:1fr}.v5238-insight-row span:last-child{text-align:left}}

/* v5.23.8.1 skipped status and flexible duration */
.status-skipped{background:#fee2e2!important;color:#991b1b!important;border:1px solid #fecaca}

/* Status treningu niezrealizowanego */
.status-skipped,
.status-missed {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}
`

/* v5.23.9.1 Communication Center */
.communication-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:16px;align-items:start}
.communication-candidate{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e2e8f0}
.communication-message-form{display:grid;gap:14px;margin-top:16px}
.communication-picker{align-items:end}
@media(max-width:900px){.communication-grid{grid-template-columns:1fr}}
@media(max-width:760px){.communication-candidate{align-items:stretch;flex-direction:column}.communication-candidate .btn{width:100%}.communication-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v5.23.9 Completion Reminder & Descriptive RPE */
.completion-reminder{display:flex;flex-direction:column;gap:4px;padding:12px 14px;margin:0 0 14px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff;color:#1e3a8a}
.completion-reminder span{font-size:13px;line-height:1.45;color:#334155}
.rpe-help{margin-top:6px;font-size:12px}


/* PROgresja by MS branding */
.progresja-brand{display:inline-flex;align-items:center;text-decoration:none;padding:0!important;margin-right:12px;flex:0 0 auto}
.progresja-brand img{display:block;width:230px;max-width:28vw;height:54px;object-fit:contain;object-position:left center}
.progresja-login-brand{text-align:center;margin:4px auto 22px}
.progresja-login-brand img{display:block;width:min(430px,92%);height:auto;margin:0 auto 8px}
.progresja-login-brand p{margin:4px 0;color:#a3e635;font-weight:900;letter-spacing:.04em}
.progresja-login-brand small{color:#64748b;font-weight:700}
.progresja-footer{max-width:1280px;margin:28px auto 12px;padding:20px 16px;text-align:center;color:#cbd5e1;border-top:1px solid rgba(148,163,184,.2)}
.progresja-footer strong{color:#a3e635;font-size:15px}
.progresja-footer span{display:inline-block;margin:5px 0;font-weight:700}
.progresja-footer small{color:#94a3b8}
@media(max-width:760px){
  .progresja-brand img{width:48px;height:42px;object-fit:cover;object-position:left}
  .progresja-brand{overflow:hidden;width:48px;margin-right:4px}
  .progresja-login-brand img{width:min(330px,96%)}
  .progresja-footer{margin-top:20px;padding:16px 10px}
}


/* v5.24.1 PROgresja branding final fix */
.nav,.athlete-nav{min-height:68px}
.nav .progresja-brand,.athlete-nav .progresja-brand{display:inline-flex;align-items:center;flex:0 0 auto;width:235px;max-width:none;padding:0!important;margin-right:8px;overflow:visible}
.nav .progresja-brand img,.athlete-nav .progresja-brand img{display:block;width:235px;height:56px;max-width:none;object-fit:contain;object-position:left center}
@media(max-width:980px){
  .nav .progresja-brand,.athlete-nav .progresja-brand{width:190px}
  .nav .progresja-brand img,.athlete-nav .progresja-brand img{width:190px;height:50px}
}
@media(max-width:760px){
  .nav,.athlete-nav{min-height:58px}
  .nav .progresja-brand,.athlete-nav .progresja-brand{width:48px;min-width:48px;height:42px;overflow:hidden;margin-right:2px}
  .nav .progresja-brand img,.athlete-nav .progresja-brand img{width:178px;max-width:none;height:42px;object-fit:contain;object-position:left center}
}


/* v5.24.1.1 mobile full logo fix */
@media(max-width:760px){
  .nav,.athlete-nav{
    min-height:58px;
    align-items:center;
  }
  .nav .progresja-brand,
  .athlete-nav .progresja-brand{
    width:156px !important;
    min-width:156px !important;
    height:42px !important;
    overflow:visible !important;
    margin-right:4px !important;
    padding:0 !important;
  }
  .nav .progresja-brand img,
  .athlete-nav .progresja-brand img{
    display:block !important;
    width:156px !important;
    max-width:156px !important;
    height:42px !important;
    object-fit:contain !important;
    object-position:left center !important;
  }
}

@media(max-width:390px){
  .nav .progresja-brand,
  .athlete-nav .progresja-brand{
    width:138px !important;
    min-width:138px !important;
  }
  .nav .progresja-brand img,
  .athlete-nav .progresja-brand img{
    width:138px !important;
    max-width:138px !important;
  }
}


/* v5.24.1.2 desktop wrapped menu alignment */
@media (min-width:761px){
  .nav,
  .athlete-nav{
    position:sticky;
    padding-left:278px;
    min-height:68px;
    align-content:center;
    align-items:center;
    column-gap:10px;
    row-gap:8px;
  }

  .nav .progresja-brand,
  .athlete-nav .progresja-brand{
    position:absolute;
    left:24px;
    top:50%;
    transform:translateY(-50%);
    width:235px;
    min-width:235px;
    height:56px;
    margin:0;
    padding:0 !important;
    overflow:visible;
  }

  .nav .progresja-brand img,
  .athlete-nav .progresja-brand img{
    display:block;
    width:235px;
    max-width:235px;
    height:56px;
    object-fit:contain;
    object-position:left center;
  }

  .nav > a:not(.progresja-brand),
  .athlete-nav > a:not(.progresja-brand){
    flex:0 0 auto;
  }
}

@media (min-width:761px) and (max-width:1100px){
  .nav,
  .athlete-nav{
    padding-left:224px;
  }

  .nav .progresja-brand,
  .athlete-nav .progresja-brand{
    left:18px;
    width:190px;
    min-width:190px;
    height:50px;
  }

  .nav .progresja-brand img,
  .athlete-nav .progresja-brand img{
    width:190px;
    max-width:190px;
    height:50px;
  }
}

/* Na telefonie zachowaj dzialajace poziome menu i pelne logo. */
@media (max-width:760px){
  .nav,
  .athlete-nav{
    padding-left:10px;
  }

  .nav .progresja-brand,
  .athlete-nav .progresja-brand{
    position:static;
    transform:none;
  }
}


/* v5.24.2 PROgresja phase 2 */
:root{
  --progresja-navy:#07111f;
  --progresja-surface:#0f172a;
  --progresja-lime:#84cc16;
  --progresja-lime-light:#a3e635;
}
.progresja-welcome{display:flex;align-items:center;justify-content:space-between;min-height:150px;margin:10px 0 18px;padding:25px 28px;border:1px solid rgba(132,204,22,.28);border-radius:24px;background:linear-gradient(135deg,rgba(15,23,42,.98),rgba(7,17,31,.96));box-shadow:0 18px 55px rgba(2,6,23,.28)}
.progresja-welcome-kicker{display:inline-block;color:var(--progresja-lime-light);font-size:13px;font-weight:950;text-transform:uppercase;letter-spacing:.16em}
.progresja-welcome h1{margin:8px 0 4px;color:#f8fafc}
.progresja-welcome p{margin:0;color:#cbd5e1;font-weight:800;letter-spacing:.055em}
.progresja-ai-signature{margin:18px 0 0;padding:11px 13px;border-left:4px solid var(--progresja-lime);border-radius:10px;background:#f7fee7;color:#365314;font-size:13px;font-weight:850}
.progresja-athlete-intro{margin:0 0 18px;padding:20px 22px;border-radius:20px;background:linear-gradient(135deg,#0f172a,#07111f);border:1px solid rgba(132,204,22,.28);color:#f8fafc}
.progresja-athlete-intro span{color:var(--progresja-lime-light);font-size:12px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}
.progresja-athlete-intro h1{margin:7px 0 3px;font-size:clamp(25px,4vw,38px)}
.progresja-athlete-intro p{margin:0;color:#cbd5e1;font-weight:700}
@media(max-width:760px){
  .progresja-welcome{min-height:126px;padding:19px 18px;border-radius:18px}
  .progresja-welcome h1{font-size:28px}
  .progresja-welcome p{font-size:13px}
  .progresja-athlete-intro{padding:17px 16px}
}


/* v5.24.3 Athlete authentication methods */
.athlete-access-form{min-width:185px}.athlete-access-form select{min-width:185px}.auth-card{max-width:760px;margin-left:auto;margin-right:auto}.auth-help{margin-top:6px;font-size:12px}
@media(max-width:760px){.athlete-access-form,.athlete-access-form select{min-width:0;width:100%}}


/* v5.24.4 compact athletes table */
.athletes-table{table-layout:auto}
.athletes-table th,.athletes-table td{vertical-align:middle}
.athletes-table .athletes-email-notifications-col,
.athletes-table .athletes-email-notifications-cell{width:82px;min-width:82px;max-width:82px;text-align:center;padding-left:6px;padding-right:6px}
.athlete-email-toggle{display:flex;justify-content:center;margin:0}
.compact-switch{display:inline-flex;align-items:center;gap:5px;margin:0;cursor:pointer;color:#475569;font-size:10px;font-weight:900;white-space:nowrap}
.compact-switch input{position:absolute;opacity:0;pointer-events:none}
.compact-switch-slider{position:relative;display:inline-block;width:34px;height:19px;border-radius:999px;background:#cbd5e1;transition:.18s}
.compact-switch-slider:after{content:"";position:absolute;left:3px;top:3px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.3);transition:.18s}
.compact-switch input:checked + .compact-switch-slider{background:#16a34a}
.compact-switch input:checked + .compact-switch-slider:after{transform:translateX(15px)}
.compact-switch input:focus-visible + .compact-switch-slider{outline:3px solid rgba(56,189,248,.35);outline-offset:2px}
.athletes-actions-cell{min-width:390px}
.athlete-actions-compact{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;position:relative}
.athlete-primary-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.athlete-primary-actions form{display:inline-flex;margin:0}
.athlete-primary-actions .btn,.athlete-more-actions summary{padding:7px 10px;font-size:11px;white-space:nowrap;margin:0}
.athlete-more-actions{position:relative;flex:0 0 auto}
.athlete-more-actions summary{list-style:none;cursor:pointer}
.athlete-more-actions summary::-webkit-details-marker{display:none}
.athlete-more-actions summary:after{content:" ▼";font-size:8px}
.athlete-more-actions[open] summary:after{content:" ▲"}
.athlete-more-menu{position:absolute;right:0;top:calc(100% + 7px);z-index:45;width:205px;padding:7px;border:1px solid #dbe4ef;border-radius:13px;background:#fff;box-shadow:0 18px 46px rgba(2,6,23,.22)}
.athlete-more-menu form{display:block;width:100%;margin:0}
.athlete-menu-action{display:block;width:100%;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:#334155;text-align:left;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.athlete-menu-action:hover{background:#f1f5f9}
.athlete-menu-action.danger{color:#b91c1c}
.athlete-menu-action.danger:hover{background:#fef2f2}
.athlete-menu-action.positive{color:#166534}
.athlete-menu-action.positive:hover{background:#f0fdf4}
@media(max-width:1100px) and (min-width:761px){
  .athletes-actions-cell{min-width:290px}
  .athlete-primary-actions{display:grid;grid-template-columns:repeat(2,max-content);gap:5px}
  .athlete-primary-actions form:last-child{grid-column:1 / -1}
}
@media(max-width:760px){
  .athletes-table .athletes-email-notifications-cell{width:100%;min-width:0;max-width:none;text-align:left;padding:8px 0!important}
  .athlete-email-toggle{justify-content:flex-start}
  .compact-switch-text{font-size:11px}
  .athletes-actions-cell{min-width:0}
  .athlete-actions-compact{display:grid;grid-template-columns:1fr;gap:8px}
  .athlete-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .athlete-primary-actions form{display:block}
  .athlete-primary-actions form:last-child{grid-column:1 / -1}
  .athlete-primary-actions .btn{width:100%;height:100%;white-space:normal}
  .athlete-more-actions{width:100%}
  .athlete-more-actions summary{width:100%;justify-content:center}
  .athlete-more-menu{position:static;width:100%;margin-top:7px;box-shadow:none}
}


/* v5.24.4 Modern password policy */
.password-policy-box{grid-column:1/-1;padding:13px 15px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff;color:#1e3a8a}
.password-policy-box ul{margin:8px 0 10px;padding-left:20px;color:#334155;font-size:13px;line-height:1.5}
.password-show-label{display:flex;align-items:center;gap:8px;font-size:13px;color:#334155;cursor:pointer}
.password-show-label input{width:auto;margin:0}
.password-strength{margin-top:9px;font-size:13px;font-weight:800;color:#475569}
.password-strength.is-weak{color:#b91c1c}.password-strength.is-good{color:#a16207}.password-strength.is-strong{color:#15803d}


/* v5.24.5 athlete menu login logout */
.athlete-nav .athlete-auth-link{
  border:1px solid rgba(163,230,53,.42);
  font-weight:900;
}
.athlete-nav .athlete-login-link{
  background:rgba(132,204,22,.14);
  color:#d9f99d;
}
.athlete-nav .athlete-login-link:hover{
  background:#84cc16;
  color:#07111f;
}
.athlete-nav .athlete-logout-link{
  background:rgba(220,38,38,.12);
  border-color:rgba(248,113,113,.38);
  color:#fecaca;
}
.athlete-nav .athlete-logout-link:hover{
  background:#dc2626;
  color:#fff;
}
@media(max-width:760px){
  .athlete-nav .athlete-auth-link{
    min-width:max-content;
  }
}


/* v5.25.0 Strength set completion */
.strength-completion-section{grid-column:1/-1;margin-top:8px}.strength-completion-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.completion-actions{display:flex;flex-wrap:wrap;gap:6px}.strength-completion-list{display:grid;gap:10px}.strength-completion-row{display:grid;grid-template-columns:130px minmax(190px,1.4fr) minmax(150px,1fr) minmax(150px,1fr);gap:12px;align-items:end;padding:14px;border:1px solid #dbe4ef;border-radius:14px;background:#f8fafc}.completion-check{align-self:center}.completion-check label{display:flex;align-items:center;gap:8px;margin:0}.completion-check input{width:auto}.completion-set-info{display:flex;flex-direction:column;gap:4px;align-self:center}.completion-set-info span{font-size:13px;color:#64748b}.completion-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;margin:14px 0;border:1px solid #bbf7d0;border-radius:14px;background:#ecfdf5;color:#166534}.completion-summary span{font-size:22px;font-weight:900}.completion-inline{display:block;margin-top:4px;font-size:11px;font-weight:800}.completion-inline.is-done{color:#166534}.completion-inline.is-missed{color:#991b1b}
@media(max-width:900px){.strength-completion-row{grid-template-columns:120px 1fr 1fr}.completion-set-info{grid-column:2/-1}}
@media(max-width:760px){.strength-completion-heading{flex-direction:column}.completion-actions,.completion-actions .btn{width:100%}.strength-completion-row{grid-template-columns:1fr}.completion-set-info{grid-column:auto}.completion-check{padding-bottom:4px}}


/* v5.25.1 compatible mobile UX fix */
.mobile-label,.strength-mobile-progress,.mobile-completion-save-bar{display:none}
#workout-completion-form button:disabled{cursor:wait;opacity:.72}
@media(max-width:760px){
  body:has(#workout-completion-form){padding-bottom:88px}
  .desktop-label{display:none!important}.mobile-label{display:inline!important}
  #workout-completion-form.form-grid{display:block}
  #workout-completion-form>div:not(.mobile-completion-save-bar),#workout-completion-form>section{margin-bottom:12px}
  #workout-completion-form input[name="completed_duration_min"]{font-size:16px;letter-spacing:.02em}
  .strength-completion-section{margin:12px 0 16px;padding:0}
  .strength-completion-heading{display:block}.strength-completion-heading h2{font-size:20px;margin-bottom:4px}.strength-completion-heading p{font-size:12px;margin:0 0 10px}
  .completion-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.completion-actions .btn{width:100%;min-width:0;margin:0;padding:8px 5px;font-size:10px;white-space:nowrap}
  .strength-mobile-progress{display:block;position:sticky;top:58px;z-index:17;margin:10px 0;padding:10px 12px;border:1px solid rgba(132,204,22,.34);border-radius:14px;background:rgba(7,17,31,.95);color:#f8fafc;box-shadow:0 10px 28px rgba(2,6,23,.24);backdrop-filter:blur(12px)}
  .strength-mobile-progress-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:850}.strength-mobile-progress-label strong{color:#a3e635;font-size:14px}
  .strength-mobile-progress-track{height:7px;margin-top:7px;border-radius:999px;background:rgba(148,163,184,.28);overflow:hidden}.strength-mobile-progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#84cc16,#22c55e);transition:width .2s ease}
  .strength-completion-list{display:grid;gap:8px}
  .strength-completion-row{display:grid!important;grid-template-columns:auto 1fr!important;gap:8px 10px!important;align-items:center!important;padding:11px!important;border:1px solid #e2e8f0!important;border-radius:14px!important;background:#fff!important;box-shadow:0 6px 18px rgba(2,6,23,.06);transition:border-color .18s,background .18s}
  .strength-completion-row.is-completed-mobile{border-color:#86efac!important;background:#f0fdf4!important}
  .completion-check{grid-column:1;grid-row:1}.completion-check label{display:flex;align-items:center;justify-content:center;margin:0;padding:8px;border-radius:10px;background:#eef2ff;font-size:0}.completion-check label:after{content:'Wykonana';font-size:11px;font-weight:900;color:#1e3a8a}.completion-check input{width:21px!important;height:21px!important;margin:0 7px 0 0;accent-color:#16a34a}
  .is-completed-mobile .completion-check label{background:#dcfce7}.is-completed-mobile .completion-check label:after{color:#166534}
  .completion-set-info{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0}.completion-exercise-name{font-size:14px;line-height:1.25}.completion-exercise-name span{font-size:11px;color:#64748b;white-space:nowrap}.completion-plan-value{font-size:12px;color:#475569;margin-top:3px}
  .strength-completion-row>div:nth-child(3),.strength-completion-row>div:nth-child(4){grid-row:2;min-width:0}.strength-completion-row>div:nth-child(3){grid-column:1}.strength-completion-row>div:nth-child(4){grid-column:2}
  .strength-completion-row label{font-size:10px;margin-bottom:4px}.strength-completion-row .actual-weight,.strength-completion-row .actual-reps{min-height:44px;padding:9px 8px;font-size:16px;font-variant-numeric:tabular-nums}
  .desktop-completion-save{display:none!important}
  .mobile-completion-save-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;align-items:center;justify-content:space-between;gap:10px;padding:10px max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border-top:1px solid rgba(148,163,184,.28);background:rgba(7,17,31,.97);box-shadow:0 -12px 34px rgba(2,6,23,.28);backdrop-filter:blur(14px)}
  .mobile-completion-save-status{display:flex;flex-direction:column;color:#cbd5e1;font-size:10px}.mobile-completion-save-status strong{color:#a3e635;font-size:18px;line-height:1}.mobile-completion-save-bar .btn{min-width:150px;min-height:44px;margin:0}
  .completion-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-radius:13px}
  .workout-detail-card .setbox,.card .setbox{border-radius:13px}
  .completion-inline{display:block;margin-top:5px;padding:4px 7px;border-radius:8px;white-space:normal}.completion-inline.is-done{background:#dcfce7;color:#166534}.completion-inline.is-missed{background:#fee2e2;color:#991b1b}
}
@media(max-width:390px){
  .completion-actions{grid-template-columns:1fr 1fr}.completion-actions .btn:last-child{grid-column:1/-1}
  .strength-completion-row{grid-template-columns:1fr!important}.completion-check,.completion-set-info,.strength-completion-row>div:nth-child(3),.strength-completion-row>div:nth-child(4){grid-column:1!important;grid-row:auto!important}.completion-check label{justify-content:flex-start}.mobile-completion-save-bar .btn{min-width:135px}
}
@media(prefers-reduced-motion:reduce){.strength-mobile-progress-track i,.strength-completion-row{transition:none!important}}


/* v5.25.1 Strength exercise substitutions */
.substitution-toggle{grid-column:1/-1;padding-top:8px;border-top:1px dashed #cbd5e1}.substitution-toggle label{display:flex;align-items:center;gap:8px;margin:0;color:#92400e}.substitution-toggle input{width:auto}.substitution-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;border:1px solid #fed7aa;border-radius:14px;background:#fff7ed}.substitution-panel.is-hidden{display:none}.substitution-comment-field{grid-column:1/-1}.substitution-panel .apply-substitution{justify-self:start}.substitution-badge{margin-right:6px;background:#ffedd5;color:#9a3412}.substitution-detail-comment{display:block;margin-top:5px;color:#64748b}.completion-summary small{display:block;margin-top:4px;color:#166534}
@media(max-width:760px){.substitution-panel{grid-template-columns:1fr}.substitution-comment-field{grid-column:auto}.substitution-panel .apply-substitution{width:100%}}


/* v5.25.4.6 server month weekdays */
.calendar[data-server-weekdays="true"] .server-day-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.calendar[data-server-weekdays="true"] .server-day-heading>strong{font-size:16px;line-height:1}
.calendar[data-server-weekdays="true"] .server-weekday-label{font-size:10px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.calendar[data-server-weekdays="true"] .out .server-weekday-label{opacity:.55}
.calendar[data-server-weekdays="true"] .tc-v5188-day-header,
.calendar[data-server-weekdays="true"] .tc-day-heading,
.calendar[data-server-weekdays="true"] .tc-v5186-day-heading,
.calendar[data-server-weekdays="true"] .tc-plan-day-title,
.calendar[data-server-weekdays="true"] .tc-day-number-inline{display:none!important}
@media(max-width:760px){
  .calendar[data-server-weekdays="true"] .server-day-heading{margin-bottom:7px;padding-bottom:4px;border-bottom:1px solid rgba(148,163,184,.18)}
  .calendar[data-server-weekdays="true"] .server-day-heading>strong{font-size:18px}
  .calendar[data-server-weekdays="true"] .server-weekday-label{font-size:11px}
}


/* v5.25.4.7 searchable strength exercises */
.v52547-searchable-exercise{margin-bottom:7px}
.exercise-search-input{width:100%;min-height:42px}
.exercise-search-hint{margin-top:4px;font-size:11px;color:#64748b}
.searchable-exercise-select.is-searching{min-height:44px;border-color:#60a5fa;box-shadow:0 0 0 3px rgba(59,130,246,.12)}
.searchable-exercise-select option[hidden]{display:none}
@media(max-width:760px){
  .exercise-search-input,.searchable-exercise-select{font-size:16px}
  .searchable-exercise-select.is-searching{max-height:250px}
}


/* v5.25.4.8 combobox and workout delete */
.v52547-searchable-exercise{position:relative;margin-bottom:6px}
.exercise-search-input[role="combobox"]{min-height:42px;border-color:#93c5fd;background:#f8fbff}
.exercise-search-input[role="combobox"]:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14)}
.searchable-exercise-select.is-searching{min-height:42px;max-height:240px}
.inline-workout-delete,.month-workout-delete{display:inline-flex;margin:0}
.inline-workout-delete .btn,.month-workout-delete .btn{margin:0}
@media(max-width:760px){
  .exercise-search-input[role="combobox"]{font-size:16px}
  .searchable-exercise-select.is-searching{width:100%;font-size:16px}
  .inline-workout-delete{display:flex;width:100%;margin-top:7px}.inline-workout-delete .btn{width:100%}
  .month-workout-delete{display:block;width:100%;margin-top:5px}.month-workout-delete .btn{width:100%}
}


/* v5.26.0A asymmetric strength exercises */
.asymmetric-exercise-checkbox{grid-column:1/-1;padding:10px 12px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc}
.asymmetric-exercise-checkbox label{display:flex;align-items:center;gap:9px;margin:0;font-weight:800}
.asymmetric-exercise-checkbox input{width:auto}
.asymmetric-exercise-checkbox small{display:block;margin-top:5px}
@media(max-width:760px){.strength-completion-row .actual-reps-right,.strength-completion-row .actual-reps-left{font-size:16px}}
