:root{--ink:#12211b;--muted:#718078;--line:#e5ebe7;--green:#176b4d;--lime:#d9f45b;--paper:#f5f7f3;--white:#fff;--danger:#e95c58;--amber:#e6a535}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Manrope,Arial,sans-serif;font-size:14px}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#102d23;color:#dce8df;padding:26px 18px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;color:white;text-decoration:none;font-weight:800;font-size:18px;letter-spacing:1.4px;margin:0 10px 39px}.brandmark{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;overflow:hidden;background:transparent url('runform-brandmark.png') center/cover no-repeat!important;color:transparent!important;font-style:normal;font-size:0!important;box-shadow:none!important}.sidebar nav{display:grid;gap:5px}.sidebar nav a,.sidebar-bottom>a{display:flex;align-items:center;gap:13px;color:#a8bcb2;text-decoration:none;padding:12px 13px;border-radius:10px;font-weight:600}.sidebar nav a span{width:18px;font-size:18px}.sidebar nav a b{margin-left:auto;border-radius:20px;background:var(--lime);color:#17392d;padding:2px 7px;font-size:13px}.sidebar nav a:hover,.sidebar nav a.active{color:white;background:#22493a}.sidebar-bottom{margin-top:auto}.support{background:#193c2f;border:1px solid #2c5143;border-radius:13px;padding:15px;margin-top:15px}.support strong,.support small{display:block}.support small{color:#91a99d;font-size:13px;margin:5px 0 12px}.support button{border:0;width:100%;background:var(--lime);color:#17372a;padding:9px;border-radius:8px;font:700 13px Manrope}main{grid-column:2;min-width:0}header{height:80px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 34px;justify-content:space-between;position:sticky;top:0;z-index:10}.search{width:min(420px,40vw);display:flex;gap:10px;align-items:center;background:#f5f7f4;border:1px solid #edf0ed;padding:10px 14px;border-radius:10px;color:#8a9690}.search input{border:0;outline:0;background:transparent;width:100%;font:500 13px Manrope}.head-actions,.profile{display:flex;align-items:center;gap:18px}.profile{gap:10px}.profile div{display:grid}.profile small{color:var(--muted);font-size:13px}.avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#d3e8dc;color:#205e47;font-weight:800;font-size:13px}.icon-button{border:0;background:#f4f6f3;width:38px;height:38px;border-radius:50%;position:relative}.icon-button i{position:absolute;width:7px;height:7px;background:#ef665e;border:2px solid white;border-radius:50%;right:6px;top:5px}.menu{display:none}.content{max-width:1460px;margin:auto;padding:30px 34px 70px}.demo-note,.toast{padding:10px 15px;border-radius:9px;margin-bottom:15px;font-weight:700}.demo-note{background:#fff5d9;color:#765b15}.demo-note span{font-weight:500;margin-left:8px}.toast{position:fixed;right:28px;top:94px;background:#173e30;color:#fff;z-index:50;box-shadow:0 8px 25px #173e3044}.hero{display:flex;justify-content:space-between;align-items:end;margin:5px 0 26px}.hero p{font-weight:800;font-size:13px;letter-spacing:1.5px;color:#839087;margin:0 0 9px}.hero h1{font-size:28px;letter-spacing:-.8px;margin:0 0 7px}.hero span{color:var(--muted)}.primary,.small-primary{background:var(--green);color:white;border:0;border-radius:9px;text-decoration:none;padding:12px 17px;font:700 13px Manrope;cursor:pointer}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}.metrics article{background:white;border:1px solid var(--line);border-radius:14px;padding:19px;display:flex;align-items:center;gap:15px}.metric-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e6f2ea;color:#277255;font-size:20px}.metric-icon.i1{background:#eef7cc}.metric-icon.i2{background:#fff1e3;color:#cc7d2b}.metrics article div{display:grid;grid-template-columns:auto 1fr;align-items:end;column-gap:8px}.metrics strong{font-size:24px;letter-spacing:-1px}.metrics b{font-size:13px;margin-bottom:4px}.metrics small{grid-column:1/3;color:var(--muted);margin-top:2px;font-size:13px}.grid-main{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr);gap:18px;margin-bottom:18px}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:21px}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.card h2{font-size:16px;margin:0 0 4px}.card p{color:var(--muted);font-size:13px;margin:0}.card-head a{color:var(--green);font-weight:700;font-size:13px;text-decoration:none}.athlete-list{display:grid}.athlete-row{display:grid;grid-template-columns:40px minmax(150px,1.5fr) minmax(80px,1fr) 42px 74px 12px;gap:11px;align-items:center;border:0;border-top:1px solid #eef1ee;background:white;padding:12px 0;text-align:left;font:inherit;color:inherit;cursor:pointer}.athlete-row:first-child{border-top:0}.athlete-row:hover{background:#fafcf9}.athlete-name{display:grid}.athlete-name small,.workout small{color:var(--muted);font-size:13px;margin-top:3px}.colored{background:#e6eee7}.bar{height:6px;background:#edf1ed;border-radius:10px;overflow:hidden}.bar i{display:block;height:100%;background:#77b16e;border-radius:10px}.athlete-row em{font-style:normal;font-size:13px;padding:5px 7px;border-radius:20px;text-align:center}.good{color:#317255;background:#e7f2e9}.warn{color:#a46612;background:#fff1d9}.bad{color:#ad4d49;background:#fee8e7}.attention ul{list-style:none;padding:0;margin:0;display:grid}.attention li{display:grid;grid-template-columns:9px 1fr auto;gap:10px;align-items:center;padding:13px 0;border-top:1px solid #edf0ed}.attention li:first-child{border:0}.attention li div{display:grid}.attention li small{color:var(--muted);font-size:13px;margin-top:3px}.attention li button{border:1px solid var(--line);background:white;color:#35634f;border-radius:7px;padding:6px 8px;font:700 13px Manrope;cursor:pointer}.dot{width:8px;height:8px;border-radius:50%}.red{background:var(--danger)}.amber{background:var(--amber)}.green{background:#5da273}.schedule{padding-bottom:8px}.schedule .card-head>div:last-child{display:flex;background:#f3f5f2;border-radius:8px;padding:3px}.filter{border:0;background:transparent;padding:7px 11px;border-radius:6px;font:600 13px Manrope;color:var(--muted)}.filter.active{background:white;box-shadow:0 1px 5px #17291e18;color:var(--ink)}.workout{display:grid;grid-template-columns:90px 38px minmax(180px,1fr) 100px auto;gap:14px;align-items:center;border-top:1px solid #edf0ed;padding:13px 2px}.date{color:#64726b;font-size:13px}.workout-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#e4f0ea;color:#247056}.workout-icon.interval{background:#fff0d8;color:#b87922}.workout-icon.long{background:#e8e5f5;color:#6755a2}.workout span:nth-child(3){display:grid}.workout em{font-style:normal;font-size:13px;color:#49725e;background:#e8f2eb;padding:5px 8px;text-align:center;border-radius:20px}.dots{border:0;background:transparent;color:#7a867f;letter-spacing:2px}.week-bars{height:185px;display:flex;align-items:end;justify-content:space-around;padding-top:12px;border-bottom:1px solid var(--line)}.week-bars div{height:100%;width:8%;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:8px}.week-bars i{display:block;width:18px;background:#dce4df;border-radius:5px 5px 0 0}.week-bars i.done{background:#75a979}.week-bars small{color:var(--muted)}.ring-wrap{display:flex;align-items:center;justify-content:center;gap:25px;padding:20px}.ring{width:120px;height:120px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle,#fff 55%,transparent 57%),conic-gradient(var(--green) 0 86%,#e8ede9 86%)}.ring strong{font-size:23px}.ring small{color:var(--muted)}.legend{display:grid;gap:12px}.legend span{font-size:13px;color:var(--muted)}.legend i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:7px}.legend span:nth-child(2) i{background:var(--lime)}.legend span:nth-child(3) i{background:#dce4df}.role-switch{position:fixed;right:22px;bottom:18px;background:#122d23;color:white;border-radius:12px;padding:5px;box-shadow:0 7px 25px #0d21194d;z-index:12;font-size:13px}.role-switch span{padding:0 7px;color:#adc0b6}.role-switch a{display:inline-block;color:#adc0b6;text-decoration:none;padding:7px 10px;border-radius:8px}.role-switch a.active{background:var(--lime);color:#173729;font-weight:800}.modal{position:fixed;inset:0;display:grid;place-items:center;background:#0b241a99;z-index:100;opacity:0;visibility:hidden;transition:.2s;padding:20px}.modal.show{opacity:1;visibility:visible}.modal-card{position:relative;background:white;border-radius:18px;padding:28px;width:min(510px,100%);box-shadow:0 30px 80px #07170f55}.modal-card .close{position:absolute;right:17px;top:13px;border:0;background:transparent;font-size:25px;color:#819087;cursor:pointer}.modal-card h2{margin:13px 0 5px}.modal-card>p{color:var(--muted);margin:0 0 20px}.large{width:52px;height:52px}.modal-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.modal-stats span{background:#f3f6f3;border-radius:10px;padding:12px;display:grid;color:var(--muted);font-size:13px}.modal-stats strong{color:var(--ink);font-size:17px}textarea,input,select{font-family:inherit}.modal textarea,.modal input,.modal select{width:100%;border:1px solid #dfe6e1;border-radius:9px;padding:11px;outline:none;margin-top:6px}.modal textarea{min-height:80px;resize:vertical}.modal form>.primary{width:100%;margin-top:10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:13px}.form-grid label,.modal-card>label{font-size:13px;font-weight:700}.locked{overflow:hidden}@media(max-width:1050px){.shell{grid-template-columns:210px 1fr}.sidebar{width:210px}.grid-main{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(3,1fr)}.profile div{display:none}}@media(max-width:760px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:.25s;box-shadow:10px 0 30px #071a1244}.sidebar.open{transform:translateX(0)}main{width:100%}header{height:64px;padding:0 17px}.menu{display:block;border:0;background:none;font-size:20px}.search{display:none}.content{padding:22px 16px 75px}.hero{align-items:start}.hero .primary{display:none}.hero h1{font-size:23px}.metrics{grid-template-columns:1fr;gap:9px}.metrics article{padding:14px}.grid-main{display:block}.grid-main>.card{margin-bottom:14px}.athlete-row{grid-template-columns:38px 1fr 38px}.athlete-row .bar,.athlete-row em,.athlete-row>span:last-child{display:none}.workout{grid-template-columns:72px 35px 1fr auto}.workout em{display:none}.small-primary{grid-column:3/5}.schedule{overflow:hidden}.card{padding:17px}.role-switch{right:10px;bottom:10px}.form-grid{grid-template-columns:1fr}.ring-wrap{padding:10px 0}.demo-note span{display:block;margin:3px 0 0}}


/* Контекстное меню ближайших тренировок */
.workout-menu-wrap{position:relative;justify-self:end}
.dots{cursor:pointer;min-width:34px;height:34px;border-radius:8px}
.dots:hover,.workout-menu-wrap.open>.dots{background:#f1f5f2;color:#315f4c}
.workout-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:210px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 14px 35px #17312624;display:none}
.workout-menu-wrap.open .workout-menu{display:grid}
.workout-menu a,.workout-menu button{display:block;width:100%;border:0;background:transparent;color:var(--ink);padding:9px 10px;border-radius:7px;text-align:left;text-decoration:none;font:600 13px Manrope;cursor:pointer}
.workout-menu a:hover,.workout-menu button:hover{background:#f3f7f4}
.workout-menu form{margin:2px 0 0;padding-top:4px;border-top:1px solid #edf0ed}
.workout-menu button.danger{color:#b84d49}
.workout-menu button.danger:hover{background:#fff0ef}
.workout-empty{padding:26px 2px;color:var(--muted);border-top:1px solid #edf0ed}


.workout-menu a.workout-menu-primary{color:#176b4d;background:#f0f8f4}
.workout-menu a.workout-menu-primary:hover{background:#e5f3eb}

/* Исправление контекстного меню тренировок */
.schedule{overflow:visible!important}
.workout{position:relative}
.workout-menu-wrap{z-index:auto}
.workout-menu-wrap.open{z-index:1000}
.workout-menu{z-index:1001;pointer-events:auto;background:#fff}
.workout-menu-wrap.open .workout-menu{display:grid!important}
[data-workout-menu]{pointer-events:auto;cursor:pointer}
@media(max-width:760px){
  .schedule{overflow:visible!important}
  .workout-menu{right:0;left:auto}
}


/* Создание тренировки из кабинета тренера */
.hero .primary:disabled{opacity:.5;cursor:not-allowed}
.overview-workout-form{width:min(620px,100%)}
.overview-workout-form .modal-kicker{margin:0;color:var(--green);font-size:13px;font-weight:800;letter-spacing:1.4px}
.overview-workout-form h2{margin:7px 0 20px}
.overview-workout-form>label{display:block;margin-bottom:13px}
.overview-workout-empty{padding:16px;border-radius:10px;background:#f4f7f4;color:var(--muted);line-height:1.5}


/* Динамический центр внимания тренера */
.attention li .attention-action{
  border:1px solid var(--line);
  background:#fff;
  color:#35634f;
  border-radius:7px;
  padding:6px 8px;
  font:700 13px Manrope;
  text-decoration:none;
  white-space:nowrap;
}
.attention li .attention-action:hover{background:#f4f8f5;border-color:#d8e4dc}
.dot.purple{background:#7c6cc6}
.attention-empty{padding:20px 4px 18px;display:grid;gap:5px;color:var(--muted)}
.attention-empty strong{color:var(--ink);font-size:13px}
.attention-empty span{font-size:13px;line-height:1.5}
.attention-footer{padding-top:12px;border-top:1px solid #edf0ed;text-align:center}
.attention-footer a{color:var(--green);font:700 13px Manrope;text-decoration:none}
.attention-footer a:hover{text-decoration:underline}

/* Очередь событий тренера */
.attention-action-form{margin:0}
.attention-action-form .attention-action{cursor:pointer}

/* Быстрый ввод результата спортсменом */
.athlete-result-card{width:min(650px,calc(100vw - 28px))}
.athlete-result-card>p{margin:-4px 0 16px;color:var(--muted);font-size:13px}
.athlete-result-card>label{display:grid;gap:6px;margin:10px 0;color:var(--muted);font-size:13px;font-weight:700}
.athlete-result-card input,.athlete-result-card select,.athlete-result-card textarea{width:100%;box-sizing:border-box}
.athlete-result-card textarea{min-height:90px;resize:vertical}
.athlete-result-card .primary{margin-top:8px}

/* Динамический составной график недели спортсмена */
.dynamic-week{height:154px;align-items:end;gap:12px}
.dynamic-week .week-day-column{height:100%;display:grid;grid-template-rows:1fr auto;align-items:end;min-width:0}
.dynamic-week .week-stack{height:126px;display:flex;flex-direction:column-reverse;justify-content:flex-start;gap:3px;align-items:stretch}
.dynamic-week .week-segment{display:block;min-height:18px;border-radius:5px;background:#1b9b95;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);transition:transform .15s ease,filter .15s ease,opacity .15s ease}
.dynamic-week .week-segment:hover{transform:translateY(-1px);filter:brightness(.96)}
.dynamic-week .week-segment.type-interval,.dynamic-week .week-segment.type-tempo{background:#dc913d}
.dynamic-week .week-segment.type-long{background:#7568ba}
.dynamic-week .week-segment.type-strength{background:#5876aa}
.dynamic-week .week-segment.type-rest{background:#8b959f}
.dynamic-week .week-segment.planned{opacity:.46}
.dynamic-week .week-segment.missed{opacity:.38;background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.34) 0 3px,transparent 3px 7px)}
.dynamic-week .week-segment.completed{opacity:1}
.dynamic-week .week-empty{display:block;height:5px;border-radius:4px;background:#e5ebe7;margin-top:auto}
.dynamic-week small{text-align:center;margin-top:7px}
@media(max-width:760px){.dynamic-week{gap:7px}.dynamic-week .week-stack{height:116px}}


/* Исправление ширины составных столбцов недельного плана */
.dynamic-week .week-day-column{width:100%;justify-items:center}
.dynamic-week .week-stack{width:min(42px,72%);min-width:24px}
.dynamic-week .week-segment{width:100%!important;max-width:none!important}
.dynamic-week .week-empty{width:100%}
@media(max-width:760px){
  .dynamic-week .week-stack{width:min(34px,78%);min-width:20px}
}


/* Недельный объём спортсмена: план и факт по дням */
.distance-week{
  height:170px;
  align-items:end;
  gap:clamp(8px,2vw,22px);
  padding:8px 8px 0;
}
.distance-week .week-day-column{
  height:100%;
  flex:1;
  width:auto;
  display:grid;
  grid-template-rows:18px 1fr auto;
  justify-items:center;
  align-items:end;
  gap:5px;
}
.distance-week .week-km-label{
  font-size:13px;
  color:#617485;
  line-height:1;
  align-self:end;
}
.distance-week .week-distance-stack{
  width:min(30px,70%);
  min-width:20px;
  height:126px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-self:end;
  text-decoration:none;
  overflow:visible;
}
.distance-week .week-distance-stack span{
  display:block;
  width:100%;
}
.distance-week .week-distance-remaining{
  background:#e3e8e9;
  border-radius:7px 7px 0 0;
}
.distance-week .week-distance-fact{
  background:linear-gradient(180deg,#64d8c9,#258fa4);
}
.distance-week .week-distance-remaining + .week-distance-fact{
  border-radius:0;
}
.distance-week .week-distance-fact:first-child,
.distance-week .week-distance-stack:not(:has(.week-distance-remaining)) .week-distance-fact{
  border-radius:7px 7px 0 0;
}
.distance-week .week-distance-zero{
  height:4px;
  min-height:4px;
  background:#e3e8e9;
  border-radius:7px 7px 0 0;
}
.distance-week .week-distance-stack:hover{
  filter:brightness(.97);
}
.distance-week small{
  margin-top:0;
  text-align:center;
  color:var(--muted);
}
@media(max-width:760px){
  .distance-week{gap:5px;padding-inline:2px}
  .distance-week .week-distance-stack{width:18px;min-width:16px}
}


/* Исправление компоновки недельного графика спортсмена */
.distance-week{
  border-bottom:0!important;
  padding-bottom:0!important;
}
.distance-week::after{
  display:none!important;
}
.distance-week .week-day-column{
  position:relative;
  grid-template-rows:1fr auto;
  gap:7px;
}
.distance-week .week-km-label{
  position:absolute;
  left:50%;
  bottom:calc(100% - 126px);
  transform:translate(-50%,-10px);
  width:max-content;
  margin:0;
  line-height:1;
  z-index:2;
}
.distance-week .week-distance-stack{
  position:relative;
  align-self:end;
}
.distance-week .week-distance-stack::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-1px;
  width:0;
  height:0;
}
.distance-week .week-day-column>small{
  position:relative;
  z-index:2;
  background:transparent;
  margin-top:0;
  line-height:1.2;
}
.distance-week .week-distance-stack,
.distance-week .week-day-column>small{
  border-bottom:0!important;
}

.distance-week .week-km-label{
  bottom:calc(7px + var(--bar-height));
  transform:translateX(-50%);
}
.distance-week .week-day-column{
  padding-top:16px;
}


/* Точное позиционирование километража над недельным столбцом */
.distance-week .week-day-column{
  position:relative!important;
  display:grid!important;
  grid-template-rows:1fr auto!important;
  padding-top:0!important;
  gap:7px!important;
  justify-items:stretch!important;
}

.distance-week .week-chart-area{
  position:relative;
  height:146px;
  width:100%;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:visible;
}

.distance-week .week-bar-wrap{
  position:relative;
  width:min(30px,70%);
  min-width:20px;
  height:var(--bar-height);
  min-height:4px;
  margin:0 auto;
}

.distance-week .week-distance-stack{
  position:absolute!important;
  left:0;
  right:0;
  bottom:0;
  width:100%!important;
  min-width:0!important;
  height:var(--bar-height)!important;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  overflow:visible;
}

.distance-week .week-km-label{
  position:absolute!important;
  left:50%!important;
  bottom:calc(var(--bar-height) + 8px)!important;
  top:auto!important;
  transform:translateX(-50%)!important;
  width:max-content!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
  text-align:center!important;
  z-index:3;
}

.distance-week .week-day-column>small{
  position:static!important;
  display:block;
  width:100%;
  text-align:center;
  margin:0!important;
  line-height:1.2;
  border:0!important;
}

@media(max-width:760px){
  .distance-week .week-chart-area{height:136px}
  .distance-week .week-bar-wrap{width:18px;min-width:16px}
}


/* Прижимаем все столбцы недельного графика к общей нижней линии */
.distance-week .week-chart-area{
  align-items:flex-end!important;
}

.distance-week .week-bar-wrap{
  position:absolute!important;
  left:50%;
  bottom:0!important;
  transform:translateX(-50%);
  margin:0!important;
  align-self:auto!important;
}

.distance-week .week-distance-stack{
  bottom:0!important;
}


/* Центрируем всю семидневную область недельного графика внутри карточки */
.distance-week{
  width:min(860px,92%)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  justify-content:center!important;
}

.distance-week .week-day-column{
  flex:1 1 0!important;
  min-width:0!important;
  max-width:none!important;
}


/* Финальное центрирование недельной диаграммы */
.distance-week{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  column-gap:clamp(16px,2.6vw,34px)!important;
  width:min(760px,88%)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
  justify-content:initial!important;
}

.distance-week .week-day-column{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  flex:none!important;
  justify-self:stretch!important;
}

@media(max-width:760px){
  .distance-week{
    width:94%!important;
    column-gap:8px!important;
  }
}


/* Симметричные боковые отступы дневных колонок недельной диаграммы */
.distance-week .week-day-column{
  box-sizing:border-box!important;
  padding-left:4%!important;
  padding-right:4%!important;
}


/* Симметричные внешние интервалы дневных колонок */
.distance-week .week-day-column{
  padding-left:0!important;
  padding-right:0!important;
  width:calc(100% - 8%)!important;
  margin-left:4%!important;
  margin-right:4%!important;
  justify-self:center!important;
}


/* Модальное окно «Мой тренер» */
.my-coach-card{width:min(620px,calc(100vw - 28px));max-height:min(760px,88vh);overflow:auto}
.my-coach-head{display:grid;grid-template-columns:76px 1fr;gap:16px;align-items:center}
.my-coach-head>div>p{margin:0 0 5px;color:#258e97;font-size:13px;font-weight:800;letter-spacing:1.4px}
.my-coach-head h2{margin:0;font-size:22px}
.my-coach-avatar{width:76px;height:76px;border-radius:20px;object-fit:cover;border:1px solid #d9e6e5;background:#eef6f4}
.my-coach-initials{display:grid;place-items:center;font-size:22px;font-weight:800;color:#176b4d}
.my-coach-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.my-coach-badges span{padding:5px 8px;border-radius:20px;background:#f0f3f4;color:#60727d;font-size:13px;font-weight:700}
.my-coach-badges .verified{background:#e5f5ef;color:#16715e}
.my-coach-plan{display:grid;gap:4px;margin-top:18px;padding:14px;border:1px solid #dfe9e7;border-radius:12px;background:#f7faf9}
.my-coach-plan small,.my-coach-info small,.my-coach-text small{color:#78909a;font-size:13px;font-weight:800;letter-spacing:.9px}
.my-coach-plan strong{font-size:13px}
.my-coach-plan span{color:var(--muted);font-size:13px}
.my-coach-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.my-coach-info>div{display:grid;gap:4px;padding:12px;border:1px solid #e4ebe9;border-radius:10px}
.my-coach-info strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.my-coach-info a{color:#267680;text-decoration:none}
.my-coach-text{margin-top:14px;padding-top:12px;border-top:1px solid #e7edeb}
.my-coach-text p{margin:6px 0 0;color:#52656e;font-size:13px;line-height:1.6}
.my-coach-actions{display:flex;gap:9px;margin-top:18px}
.my-coach-actions .primary,.my-coach-actions .secondary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.my-coach-empty{text-align:center;padding:20px 8px 8px}
.my-coach-empty>span{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 12px;border-radius:18px;background:#e8f5f2;color:#168378;font-size:22px}
.my-coach-empty h2{margin:0 0 7px}
.my-coach-empty p{max-width:400px;margin:0 auto 16px;color:var(--muted);font-size:13px;line-height:1.55}
.my-coach-empty .primary{display:inline-flex;text-decoration:none}
@media(max-width:620px){
  .my-coach-head{grid-template-columns:58px 1fr}
  .my-coach-avatar{width:58px;height:58px;border-radius:16px}
  .my-coach-info{grid-template-columns:1fr}
  .my-coach-actions{display:grid}
}


/* Увеличенная читаемость модального окна «Мой тренер» */
.my-coach-head>div>p{font-size:13px!important}
.my-coach-badges span{font-size:13px!important;padding:6px 9px}
.my-coach-plan small,
.my-coach-info small,
.my-coach-text small{font-size:13px!important}
.my-coach-plan strong{font-size:14px!important}
.my-coach-plan span{font-size:13px!important;line-height:1.45}
.my-coach-info strong{font-size:13px!important;line-height:1.45}
.my-coach-text p{font-size:13px!important;line-height:1.6}
.my-coach-empty p{font-size:13px!important}


/* Колонки статусов после увеличения минимального шрифта до 13px */
.workout{
  grid-template-columns:90px 38px minmax(180px,1fr) minmax(122px,max-content) auto!important;
}
.workout em{
  min-width:122px!important;
  justify-self:center!important;
}
.athlete-row{
  grid-template-columns:40px minmax(150px,1.5fr) minmax(80px,1fr) 42px minmax(104px,max-content) 12px!important;
}
.athlete-row em{
  min-width:104px!important;
  justify-self:center!important;
}

/* Кнопки и действия тоже должны расширяться по содержимому */
.attention li button,
.attention li .attention-action,
.program-footer button,
.application-actions button,
.apply-button,
.review-button,
.small-primary,
.secondary,
.primary{
  box-sizing:border-box;
  min-height:32px;
  height:auto;
  line-height:1.2;
  white-space:nowrap;
}


/* Рабочая кнопка перехода в диалог с администрацией */
.support .support-link{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:40px;
  padding:9px 12px;
  border:1px solid transparent;
  border-radius:8px;
  background:var(--lime);
  color:#17372a;
  font:700 13px/1.3 Manrope;
  text-decoration:none;
  cursor:pointer;
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.support .support-link:hover{
  transform:translateY(-1px);
  filter:brightness(.94);
  border-color:rgba(255,255,255,.38);
  box-shadow:0 7px 18px rgba(0,0,0,.16);
}
.support .support-link:active{
  transform:translateY(0);
  filter:brightness(.9);
}
.support .support-link:focus-visible{
  outline:3px solid rgba(108,220,209,.45);
  outline-offset:2px;
}


/* Возвращаем прежний вид кнопки поддержки и сохраняем текст в одну строку */
.support .support-link{
  min-height:36px!important;
  padding:9px 10px!important;
  background:var(--lime)!important;
  color:#17372a!important;
  border:0!important;
  border-radius:8px!important;
  box-shadow:none!important;
  transform:none!important;
  filter:none!important;
  white-space:nowrap!important;
  flex-wrap:nowrap!important;
  font:700 13px/1 Manrope!important;
}
.support .support-link:hover{
  background:var(--lime)!important;
  color:#17372a!important;
  filter:brightness(.92)!important;
  box-shadow:none!important;
  transform:none!important;
}
.support .support-link:active{
  filter:brightness(.86)!important;
  transform:none!important;
}

/* Выпадающие панели в правой части шапки */
.header-popover-wrap{position:relative}
.header-notification-button{position:relative;cursor:pointer}
.header-notification-button>b{position:absolute;top:-7px;right:-8px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border:2px solid #fff;border-radius:20px;background:#ef6d6d;color:#fff;font:800 11px/1 Manrope}
.header-profile-button{border:0;background:transparent;cursor:pointer;padding:4px 6px;border-radius:10px}
.header-profile-button:hover{background:#f3f7f5}
.header-profile-button .avatar{overflow:hidden}
.header-profile-button .avatar img,.profile-popover-user .avatar img{width:100%;height:100%;object-fit:cover}
.header-profile-copy{display:grid;text-align:left}
.header-profile-chevron{color:#7f9088;font-size:15px}
.header-popover{position:absolute;top:calc(100% + 12px);right:0;z-index:80;width:min(390px,calc(100vw - 30px));border:1px solid #dce6e2;border-radius:14px;background:#fff;box-shadow:0 20px 55px rgba(32,58,49,.18);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .15s ease,transform .15s ease,visibility .15s}
.header-popover.show{opacity:1;visibility:visible;transform:translateY(0)}
.header-popover-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid #e6ece9}
.header-popover-title>div{display:grid;gap:2px}
.header-popover-title strong{font-size:15px}
.header-popover-title small{font-size:13px;color:var(--muted)}
.header-popover-title>a{font-size:13px;font-weight:800;color:#267680;text-decoration:none}
.notification-list{max-height:430px;overflow:auto}
.notification-item{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px 15px;border-top:1px solid #eef2f0;color:var(--ink);text-decoration:none}
.notification-item:first-child{border-top:0}
.notification-item:hover{background:#f6faf8}
.notification-dot{width:9px;height:9px;margin-top:6px;border-radius:50%;background:#7ca9a0}
.notification-item.message .notification-dot{background:#7a85d8}
.notification-item.admin .notification-dot{background:#d18a4f}
.notification-item.attention .notification-dot{background:#db6b6b}
.notification-item.workout .notification-dot{background:#3cae8e}
.notification-item>span:nth-child(2){display:grid;gap:3px;min-width:0}
.notification-item strong{font-size:13px}
.notification-item small{font-size:13px;line-height:1.45;color:#71827a}
.notification-item>i{font-style:normal;color:#92a09a}
.header-popover-empty{padding:26px 18px;text-align:center;color:var(--muted);font-size:13px}
.header-popover-footer{display:block;padding:12px 15px;border-top:1px solid #e6ece9;color:#267680;text-align:center;text-decoration:none;font-size:13px;font-weight:800}
.profile-popover{width:300px}
.profile-popover-user{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;padding:15px;border-bottom:1px solid #e6ece9}
.profile-popover-user .avatar{width:44px;height:44px;overflow:hidden}
.profile-popover-user>div{display:grid;gap:2px;min-width:0}
.profile-popover-user strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-popover-user small{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-popover nav{display:grid;padding:7px}
.profile-popover nav a{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px;border-radius:9px;color:#40534b;text-decoration:none;font-size:13px;font-weight:700}
.profile-popover nav a:hover{background:#f2f7f5;color:#176b58}
.profile-popover nav a>b{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:20px;background:#58d6c6;color:#123f38;font-size:11px}
.profile-popover-logout{display:block;margin:0 7px 7px;padding:10px;border-top:1px solid #edf1ef;color:#a04952;text-decoration:none;font-size:13px;font-weight:800}
@media(max-width:700px){.header-profile-copy,.header-profile-chevron{display:none}.profile-popover,.notification-popover{position:fixed;top:72px;right:12px;width:calc(100vw - 24px)}}

/* Единый центр событий */
.notification-center-list{max-height:480px}
.notification-group-title{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 14px;
  border-top:1px solid #e8eeee;
  border-bottom:1px solid #e8eeee;
  background:#f7faf9;
  color:#667a73;
  font-size:13px;
  font-weight:800;
}
.notification-group-title:first-child{border-top:0}
.notification-group-title span{
  display:grid;
  place-items:center;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:18px;
  font-size:11px;
}
.notification-group-title.attention{color:#9b4e55}
.notification-group-title.attention span{background:#f8e7e8;color:#9b4e55}
.notification-group-title.information{color:#32716c}
.notification-group-title.information span{background:#e5f3ef;color:#32716c}
.notification-item.application .notification-dot{background:#42a884}
.notification-item.high_rpe .notification-dot{background:#e46c6c}
.notification-item.missing_report .notification-dot{background:#dc8f51}
.notification-item.workout_today .notification-dot{background:#4d9fcd}
.notification-item.race .notification-dot{background:#8d77c8}
.notification-item.information-event{background:#fcfdfd}
.notification-item.attention-event:hover{background:#fff8f8}

.medical-data-warning{
 display:block;
 margin-top:7px;
 color:#7a6861;
 font-size:11px;
 line-height:1.45;
 font-weight:600;
}
