/* Desktop compositions reuse the existing PULSE typography, cards and controls. */
.fc-athlete-desktop-columns,.fc-athlete-progress-coach,.fc-athlete-desktop-calendar,.fc-athlete-desktop-join,.fc-athlete-desktop-chat-label,.fc-athlete-day-agenda,.fc-progress-inbody-upload{display:none}
.fc-progress-scan,.fc-progress-inbody-wrap,.fc-athlete-unlinked{display:contents}
.fc-progress-desktop { display:none; }
@media(min-width:1100px){
  .fc-athlete-desktop-columns{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:20px;align-items:start;min-width:0}
  .fc-athlete-desktop-column{display:grid;gap:20px;align-content:start;min-width:0}
  .fc-athlete-progress-layout.is-desktop>.fc-progress-pair{display:none}
  body.fc-design .fc-athlete-today>.fc-athlete-home-sections{display:block;grid-column:1/-1;grid-row:auto}
  .fc-athlete-home-sections.is-desktop>.fc-athlete-session-block{display:none}
  .fc-athlete-home-sections.is-desktop>.p-stack:empty{display:none}
  .fc-athlete-desktop-column>[hidden],.fc-athlete-desktop-column>:empty{display:none}
  .fc-athlete-desktop-calendar,.fc-athlete-desktop-join{display:inline-flex}
  .fc-athlete-desktop-calendar{margin-left:auto}
  .fc-athlete-desktop-chat-label{display:inline}
  body.fc-design .fc-athlete-coach-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;min-width:0;margin:0;background:var(--p-card);border:1px solid var(--p-line);border-radius:24px;padding:18px}
  .fc-athlete-coach-profile{flex:1;min-width:140px}
  .fc-athlete-coach-links .fc-athlete-shortcuts>[aria-label="Календарь тренировок"]{display:none}
  .fc-athlete-coach-links [data-coach-chat]{display:inline-flex;align-items:center;justify-content:center;width:auto;max-width:100%;gap:8px;padding-inline:12px;border:1px solid var(--p-line);border-radius:var(--p-control-radius,14px);background:var(--p-card);color:var(--p-text);font:inherit;font-weight:600}
  .fc-athlete-unlinked{display:grid;gap:12px}
  .fc-athlete-today .fc-today-heading{justify-content:start;gap:20px}
  .fc-athlete-day-agenda{display:grid;gap:12px}
  .fc-athlete-day-agenda .p-card-head{margin:0}
  .fc-athlete-day-agenda>.p-btn{justify-self:start}
  .fc-athlete-day-list{display:grid;gap:10px}
  .fc-athlete-agenda-row{display:grid;grid-template-columns:86px minmax(0,1fr) auto 18px;align-items:center;gap:12px;padding:14px;border:1px solid var(--p-line);border-radius:14px;background:var(--p-card);font:inherit;color:inherit;text-align:left;cursor:pointer;min-width:0}
  .fc-athlete-agenda-row:hover{background:var(--p-raised)}
  .fc-athlete-agenda-row time{font-weight:600;font-size:13px}
  .fc-athlete-agenda-copy{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
  .fc-athlete-agenda-status{font-size:11px;color:var(--p-text-2)}
  .fc-athlete-agenda-row svg{width:18px;height:18px}
  body.fc-design .fc-athlete-today .fc-athlete-next{--p-text:var(--text);--p-text-2:var(--muted);--p-text-3:var(--muted);min-height:0;padding:20px;background:var(--p-card-2);color:var(--p-text);border:1px solid var(--p-line);border-radius:24px;box-shadow:none}
  .fc-athlete-today .fc-athlete-next>.fc-today-cover{display:none}
  body.fc-design .fc-athlete-today .fc-athlete-training-content{padding:0;background:transparent;backdrop-filter:none;border:0;box-shadow:none;border-radius:0;gap:12px}
  body.fc-design .fc-athlete-today .fc-athlete-training-content>strong{font-size:24px;line-height:1.2;letter-spacing:-.6px}
  .fc-athlete-today .fc-athlete-training-content>h2{font-size:18px;line-height:1.3;margin:0}
  .fc-athlete-today .fc-athlete-training-content>.p-btn{justify-self:start;width:auto;min-width:180px}
  .fc-athlete-today .fc-athlete-training-content .p-cap,.fc-athlete-today .fc-athlete-next>.p-cap{color:var(--p-text-2)}
  .fc-athlete-today .fc-athlete-balance .fc-training-package{margin:0;background:var(--p-card);border-radius:24px}
  .fc-athlete-today .fc-athlete-no-training{background:var(--p-card);border:1px solid var(--p-line);border-radius:24px;padding:20px;color:var(--p-text)}
  .fc-athlete-progress-coach{display:flex;align-items:center;gap:10px;min-width:0;max-width:320px;margin-left:auto;padding:9px 12px;border:1px solid var(--p-line);border-radius:14px;background:var(--p-card-2);text-decoration:none;color:var(--p-text)}
  .fc-athlete-progress-coach span{display:grid;gap:2px;min-width:0}
  .fc-athlete-progress-coach small{font-size:12px;color:var(--p-text-2)}
  .fc-athlete-progress-coach b{font-size:14px;overflow-wrap:anywhere}
  .fc-athlete-progress-coach>svg{width:18px;height:18px;flex:none}
  body.fc-design[data-route=progress] .fc-athlete-progress-layout .p-weight{--p-card:#151a36;--p-text:#f9faff;--p-text-2:#cbd2ef;--p-line:#465072;--p-raised:#242c4c;background:var(--p-card);color:var(--p-text)}
  body.fc-design[data-route=progress] .fc-athlete-progress-layout .p-weight .p-card-head h3,body.fc-design[data-route=progress] .fc-athlete-progress-layout .p-weight .p-weight-big{color:var(--p-text)}
  body.fc-design[data-route=progress] .fc-athlete-progress-layout .p-weight .p-seg{background:var(--p-raised)}
  body.fc-design[data-route=progress] .fc-athlete-progress-layout .p-weight .p-seg button:not([aria-pressed=true]){color:var(--p-text-2)}
  body.fc-design[data-route=progress] .fc-athlete-progress-layout .p-weight .p-chart .lbl{fill:var(--p-text-2)}
  body.fc-design[data-route=progress] .fc-athlete-progress-layout .p-weight .p-delta.muted{color:var(--p-text-2)}
  .fc-athlete-progress-layout .p-weight .p-weight-big b{font-size:40px}
  .fc-athlete-progress-layout .p-card{margin:0}
  .fc-athlete-progress-layout .fc-progress-measures{display:flex;gap:12px;align-items:center}
  .fc-athlete-progress-layout .fc-progress-measures>b{width:100%;font-size:17px}
  .fc-athlete-progress-layout .fc-progress-measures>span{flex:1;min-width:72px}
  .fc-athlete-progress-layout .fc-progress-measures>span>b{font-size:21px}
  .fc-athlete-progress-layout .fc-progress-inbody-wrap{display:grid;gap:14px;min-width:0}
  .fc-athlete-progress-layout .fc-progress-inbody{padding:0;min-height:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--p-text);gap:10px}
  .fc-athlete-progress-layout .fc-progress-inbody img{display:none}
  .fc-athlete-progress-layout .fc-progress-inbody.is-empty{min-height:0;align-content:start}
  .fc-athlete-progress-layout .fc-progress-inbody.is-empty>svg{display:none}
  .fc-athlete-progress-layout .fc-progress-inbody.is-empty>small{color:var(--p-text-2);font-weight:400}
  .fc-athlete-progress-layout .fc-progress-inbody-upload{display:inline-flex;justify-self:start}
  .fc-athlete-progress-layout .fc-progress-steps{gap:12px}
  .fc-athlete-progress-layout .fc-progress-steps>.p-qtile{box-shadow:none;border:0;padding:0;background:transparent;justify-content:start;min-height:36px}
  .fc-athlete-progress-layout .fc-progress-steps .p-ring{width:80px!important;height:80px!important}
  .fc-athlete-progress-layout .fc-progress-steps .p-ring svg{width:80px;height:80px}
  .fc-athlete-progress-layout .fc-progress-regularity .p-heat{max-width:none}
  .fc-athlete-progress-layout .fc-progress-photo-preview{min-height:100px}
  .fc-athlete-progress-layout .fc-strength-tile{background:var(--p-card);color:var(--p-text)}
  .fc-athlete-progress-layout .fc-strength-open{color:var(--p-text)}
  .fc-athlete-progress-layout .fc-strength-tile .p-cap{color:var(--p-text-2)}
  .fc-athlete-progress-layout .fc-strength-tile .p-chart text{fill:var(--p-text-2)}
}
@media(min-width:1100px) and (max-width:1300px){.fc-athlete-desktop-columns{grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);gap:16px}.fc-athlete-desktop-column{gap:16px}.fc-athlete-agenda-row{grid-template-columns:70px minmax(0,1fr) 18px}.fc-athlete-agenda-status{grid-column:2;grid-row:2}.fc-athlete-agenda-row>svg{grid-column:3;grid-row:1}.fc-athlete-progress-coach{max-width:240px}}

@media(min-width:1100px){
  body.fc-design #main .fc-athlete-progress-layout .p-card,body.fc-design #main .fc-athlete-day-agenda,body.fc-design #main .fc-athlete-today .fc-athlete-balance .fc-training-package{border:1px solid var(--p-line);border-radius:24px;padding:18px;padding-inline:18px!important;background:var(--p-card);box-shadow:var(--p-shadow)}
  body.fc-design #main .fc-athlete-progress-layout .fc-progress-inbody{padding:0!important;border:0;border-radius:0;box-shadow:none;background:transparent}
  .fc-athlete-progress-layout .fc-progress-steps [data-testid="qa.progress.steps.value"]{display:none}
  .fc-athlete-progress-layout .fc-steps-compact-facts{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}
  .fc-athlete-progress-layout .fc-steps-compact-facts>b{font-size:28px;line-height:1.1}
  .fc-athlete-progress-layout .fc-steps-compact-facts>small{flex-basis:100%;color:var(--p-text-2)}
  .fc-athlete-progress-layout .fc-strength-open small{color:var(--p-text-2)}
}

.fc-progress-photo-empty,.fc-progress-photo-shot.is-earlier{display:none}
.fc-progress-photo-shot{display:contents}
@media(min-width:1100px){
 .fc-athlete-progress-layout .fc-progress-steps>.p-stack>.p-stack{grid-template-columns:minmax(0,1fr)}
 .fc-athlete-progress-layout .fc-steps-compact-facts span,.fc-athlete-progress-layout .fc-steps-compact-facts small{font-size:13px;overflow-wrap:normal}
 body.fc-design #main .fc-athlete-progress-layout :is(.p-card-head h3,.fc-progress-photo>b,.fc-progress-measures>b,.fc-strength-open>span>b,.fc-progress-inbody>b,.fc-progress-inbody>.p-row>b){font-size:17px;font-weight:700;line-height:1.3}
 .fc-athlete-progress-layout .fc-progress-photo-preview:has(.is-earlier){grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .fc-athlete-progress-layout .fc-progress-photo-shot,.fc-athlete-progress-layout .fc-progress-photo-shot.is-earlier{display:grid;gap:6px;min-width:0}
 .fc-athlete-progress-layout .fc-progress-photo-shot.is-earlier{order:-1}
 .fc-athlete-progress-layout .fc-progress-photo-shot img{height:160px;width:100%;object-fit:cover}
 .fc-athlete-progress-layout .fc-progress-photo-shot small{color:var(--p-text-2);font-size:12px}
}

@media (min-width:1100px) {
  body.fc-design #main > .fc-court-progress-page { position:relative; }
  body.fc-design #main .fc-court-progress-page > .p-top.fc-header-duplicate {
    position:absolute;
    top:3px;
    right:0;
    display:flex;
    padding:0;
    border:0;
  }
  body.fc-design #main .fc-court-progress-page > .p-top :is([data-bell],.p-ava-link) { display:inline-flex!important; }
  body.fc-design #main .fc-court-progress-page > .p-stack > .p-title-row { padding-right:110px; gap:12px; }
  body.fc-design #main .fc-court-progress-page > .p-stack > .p-title-row > h1 { font-size:clamp(36px,3.1vw,50px); }
  .fc-athlete-progress-layout.is-desktop > .fc-athlete-desktop-columns {
    grid-template-columns:repeat(12,minmax(0,1fr));
    grid-template-areas:
      "weight weight weight weight weight weight weight scan scan scan scan scan"
      "steps steps steps steps steps steps regularity regularity regularity regularity regularity regularity"
      "photos photos photos photos photos photos strength strength strength strength strength strength"
      "measure measure measure measure measure measure measure measure measure measure measure measure"
      "history history history history history history history history history history history history";
    align-items:stretch;
  }
  .fc-athlete-progress-layout.is-desktop > .fc-athlete-desktop-columns > .fc-athlete-desktop-column { display:contents; }
  .fc-athlete-progress-layout .p-weight { grid-area:weight; min-width:0; }
  .fc-athlete-progress-layout .fc-progress-scan { grid-area:scan; display:grid; min-width:0; }
  .fc-athlete-progress-layout .fc-progress-steps { grid-area:steps; }
  .fc-athlete-progress-layout .fc-progress-regularity { grid-area:regularity; }
  .fc-athlete-progress-layout .fc-progress-photo { grid-area:photos; }
  .fc-athlete-progress-layout .fc-strength-tile { grid-area:strength; }
  .fc-athlete-progress-layout .fc-progress-measures { grid-area:measure; }
  .fc-athlete-progress-layout .fc-progress-history { grid-area:history; }
  .fc-athlete-progress-layout .fc-progress-mobile { display:none; }
  .fc-athlete-progress-layout .fc-progress-desktop { display:inline; }
  body.fc-design #main .fc-athlete-progress-layout :is(.p-card-head h3,.fc-progress-photo>b,.fc-strength-open>span>b,.fc-progress-inbody>b,.fc-progress-inbody>.p-row>b) {
    font-size:clamp(19px,1.55vw,25px);
    letter-spacing:-.025em;
  }
  .fc-athlete-progress-layout .p-weight .p-chart .ln { stroke:#b3a8ff; }
  .fc-athlete-progress-layout .p-weight .p-chart .pt { fill:#b3a8ff; }
  .fc-athlete-progress-layout .p-weight .p-chart .grid { stroke-dasharray:4 4; }
  .fc-athlete-progress-layout .p-weight .p-chart stop { stop-color:#a597ff; }
  .fc-athlete-progress-layout .p-weight .p-seg { border:1px solid var(--p-line); }
  .fc-athlete-progress-layout .p-weight .p-seg button { min-width:78px; }
  .fc-athlete-progress-layout .p-weight .fc-weight-reading { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; }
  .fc-athlete-progress-layout .p-weight .fc-weight-last { order:1; flex-basis:100%; }
  .fc-athlete-progress-layout .p-weight .p-delta { font-size:12px; }
  .fc-athlete-progress-layout .p-weight .p-delta:not(.muted) { background:#dcd7ff; }
  .fc-athlete-progress-layout .fc-progress-inbody-wrap { grid-template-rows:1fr auto; }
  .fc-athlete-progress-layout .fc-progress-inbody > .fc-inbody-metric { display:none; }
  .fc-athlete-progress-layout .fc-progress-composition {
    display:grid;
    grid-template-columns:clamp(44px,6vw,86px) minmax(0,1fr);
    align-items:center;
    gap:clamp(10px,1.4vw,24px);
    align-self:center;
  }
  .fc-progress-body-figure { position:relative; height:134px; color:#aeabf4; }
  .fc-progress-body-figure::before {
    content:"";
    position:absolute;
    top:0;
    left:50%;
    width:27px;
    height:27px;
    transform:translateX(-50%);
    border-radius:50%;
    background:currentColor;
  }
  .fc-progress-body-figure::after {
    content:"";
    position:absolute;
    inset:31px 0 0;
    border-radius:46% 46% 14% 14%;
    background:currentColor;
    clip-path:polygon(19% 0,81% 0,98% 55%,85% 59%,73% 20%,76% 99%,57% 100%,50% 61%,43% 100%,24% 99%,27% 20%,15% 59%,2% 55%);
  }
  .fc-progress-body-values { display:grid; gap:14px; min-width:0; }
  .fc-progress-body-metric { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 8px; align-items:baseline; font-size:14px; }
  .fc-progress-body-metric > b { white-space:nowrap; font-variant-numeric:tabular-nums; }
  .fc-progress-body-track { grid-column:1 / -1; height:7px; background:var(--p-line); border-radius:20px; overflow:hidden; }
  .fc-progress-body-track > i { display:block; height:100%; background:#a39afb; border-radius:inherit; }
  .fc-athlete-progress-layout .fc-progress-steps:has(.fc-progress-week) > .p-stack > .p-stack { display:none; }
  .fc-athlete-progress-layout .fc-progress-week { display:grid; gap:12px; }
  .fc-progress-week-average,.fc-progress-completion { align-items:baseline; gap:8px; }
  .fc-progress-week-average { display:flex; flex-wrap:wrap; }
  .fc-progress-week-average strong,.fc-progress-completion strong { font-size:clamp(27px,2.6vw,40px); line-height:1.1; letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
  .fc-progress-week-average small,.fc-progress-completion small { color:var(--p-text-2); font-size:13px; }
  .fc-progress-week-bars { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); align-items:end; gap:6px; min-height:86px; }
  .fc-progress-week-bars > div { display:grid; justify-items:center; gap:6px; font-size:12px; color:var(--p-text-2); }
  .fc-progress-week-bars i { width:min(80%,46px); border-radius:5px 5px 0 0; background:#a49cf7; }
  .fc-progress-week-bars i.is-missing { background:transparent; border:1px dashed var(--p-line); }
  .fc-athlete-progress-layout .fc-progress-regularity { align-content:start; text-align:start; color:var(--p-text); font:inherit; cursor:pointer; }
  .fc-athlete-progress-layout .fc-progress-completion { display:flex; justify-content:space-between; flex-wrap:wrap; }
  .fc-athlete-progress-layout .fc-progress-regularity .p-heat { grid-template-columns:repeat(15,minmax(0,1fr)); }
  .fc-athlete-progress-layout .fc-progress-regularity .p-heat i { height:17px; aspect-ratio:auto; }
  .fc-athlete-progress-layout .fc-progress-photo { align-content:start; text-align:start; display:grid; gap:10px; }
  .fc-athlete-progress-layout .fc-progress-photo-preview:not(:has(.fc-progress-photo-shot)) {
    justify-items:center;
    min-height:146px;
    padding:16px;
    border:1px dashed var(--p-line);
    border-radius:15px;
  }
  .fc-athlete-progress-layout .fc-progress-photo-preview > svg { width:30px; height:30px; color:#8477cf; }
  .fc-athlete-progress-layout .fc-progress-photo-callout { display:grid; gap:9px; justify-items:center; color:var(--p-text); font-size:14px; text-align:center; }
  .fc-athlete-progress-layout .fc-progress-photo-callout > small { min-height:38px; font-size:13px; }
  .fc-progress-strength-list { display:grid; gap:6px; }
  .fc-progress-strength-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,74px);
    gap:10px;
    align-items:center;
    padding:8px 10px;
    border:1px solid var(--p-line);
    border-radius:10px;
    color:var(--p-text);
    background:var(--p-card-2);
    text-decoration:none;
    font-size:14px;
  }
  .fc-progress-strength-row:hover { background:var(--p-raised); }
  .fc-progress-strength-row > span { overflow-wrap:anywhere; }
  .fc-progress-strength-row > b { font-variant-numeric:tabular-nums; white-space:nowrap; }
  .fc-progress-strength-row > small { justify-self:end; white-space:nowrap; padding:3px 6px; color:var(--p-text-2); }
  .fc-progress-strength-row > small.is-up { border-radius:6px; background:var(--p-lime); color:#161e30; }
  .fc-progress-strength-chart > summary { color:var(--p-text-2); font-size:13px; cursor:pointer; }
  :root[data-theme="light"] .fc-athlete-progress-layout :is(.fc-progress-inbody-wrap,.fc-progress-steps,.fc-progress-regularity,.fc-progress-photo,.fc-strength-tile) {
    --p-card:#f0f4fe;
    --p-card-2:#eaf0fc;
    --p-line:#d6dff1;
  }
}
