/* Атлетизм: неделя на первом экране, компактные раскрываемые детали */
#ath-planner{margin-top:0!important;margin-bottom:22px;scroll-margin-top:100px}
#ath-planner .ath-top{border-radius:18px;padding:20px;background:linear-gradient(130deg,#174b34,#28674a);color:#fffdf2;margin-bottom:14px}
#ath-planner .ath-eyebrow{font-size:10px;letter-spacing:.13em;color:#d9c792;font-weight:800}
#ath-planner .ath-top h2{font:600 clamp(25px,4vw,36px) Georgia,serif;color:#fff9e9;margin:7px 0}
#ath-planner .ath-top p{font-size:13px;line-height:1.55;color:#eef3e7;margin:5px 0 14px}
#ath-planner button{border:1px solid #bfd2c1;border-radius:10px;background:#e7f0e7;color:#24563d;padding:10px 12px;font-weight:700;cursor:pointer;font-family:inherit}
#ath-planner button.ath-primary{background:#286547;color:#fff;border-color:#286547}
#ath-planner .ath-top-actions{display:flex;flex-wrap:wrap;gap:8px}
#ath-planner .ath-top-actions button{background:#f7f4e8}
#ath-planner .ath-top-actions button.ath-primary{background:#e8d5a5;color:#244e39;border-color:#e8d5a5}
#ath-planner .ath-week-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:0 0 12px}
#ath-planner .ath-week-nav button{padding:11px 2px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;background:#f2f6ed;color:#345440}
#ath-planner .ath-week-nav strong{font-size:13px}
#ath-planner .ath-week-nav small{font-size:10px;white-space:nowrap}
#ath-planner .ath-week-nav button.is-active{background:#286547;color:white;border-color:#286547}
#ath-planner .ath-day-content{border-radius:16px;border:1px solid #dce6dc;background:#f9fbf6;padding:14px}
#ath-planner .ath-day-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
#ath-planner .ath-day-heading h3{font:600 24px Georgia,serif;color:#28543c;margin:5px 0}
#ath-planner .ath-day-heading .ath-eyebrow{color:#8d825e}
#ath-planner #ath-day-counter{font-size:12px;color:#66806c}
#ath-planner .ath-empty-day{border:1px dashed #bfcfc0;border-radius:12px;padding:16px;text-align:center;color:#607a66;font-size:13px}
#ath-planner .ath-plan-card{padding:14px;background:white;border:1px solid #d9e6d9;border-radius:13px;margin-bottom:9px}
#ath-planner .ath-plan-main{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;flex-wrap:wrap}
#ath-planner .ath-plan-main strong{color:#2b513a;font-size:16px}
#ath-planner .ath-plan-main span,#ath-planner .ath-plan-meta{font-size:12px;color:#65816c}
#ath-planner .ath-plan-meta{margin:7px 0}
#ath-planner .ath-plan-card p{font-size:13px;line-height:1.5;color:#435f4c}
#ath-planner .ath-plan-card ul{margin:9px 0;padding-left:19px}
#ath-planner .ath-plan-card li{font-size:13px;margin:6px 0;color:#345c43}
#ath-planner .ath-plan-card li span{display:block;font-size:12px;color:#768577}
#ath-planner .ath-plan-actions,#ath-planner .ath-form-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
#ath-planner #ath-editor-panel{scroll-margin-top:120px;margin-top:12px}
#ath-planner #ath-editor-panel[hidden]{display:none!important}
#ath-planner #ath-form{background:#fff;border:1px solid #d9e5d6;border-radius:13px;padding:16px}
#ath-planner #ath-form h3{font-size:18px;color:#28563d;margin:0 0 16px}
#ath-planner #ath-form label{display:block;color:#355640;font-size:12px;font-weight:700;margin-bottom:10px}
#ath-planner #ath-form input,#ath-planner #ath-form textarea,#ath-planner #ath-form select{box-sizing:border-box;display:block;width:100%;min-width:0;border:1px solid #bbcdbd;border-radius:9px;padding:10px;background:white;color:#1d402d;font:inherit;margin-top:5px}
#ath-planner .ath-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
#ath-planner .ath-quick label:first-child{grid-column:1/-1}
#ath-planner .ath-exercise-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
#ath-planner .ath-exercise-heading h4{margin:0;color:#28563d}
#ath-planner .ath-exercise{border:1px solid #d9e6d9;padding:12px;border-radius:12px;margin-bottom:10px;background:#f8faf4}
#ath-planner .ath-exercise-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#ath-planner .ath-remove{border:0;background:transparent;text-decoration:underline;font-size:12px}
#ath-planner .ath-history{margin-top:14px;padding:12px;border:1px solid #e0e6df;border-radius:12px;font-size:13px}
#ath-planner .ath-history summary{cursor:pointer;font-weight:700;color:#31543f}
#ath-planner #ath-log p{border-bottom:1px solid #e4e8e1;padding:8px 0}
#ath-planner #ath-log span{display:block;color:#667a6c;margin-top:3px}
@media(max-width:420px){#ath-planner{padding:12px}#ath-planner .ath-week-nav{gap:3px}#ath-planner .ath-week-nav button{padding:10px 1px}#ath-planner .ath-week-nav strong{font-size:12px}#ath-planner .ath-week-nav small{font-size:9px}#ath-planner .ath-top{padding:16px}}

/* No native time wheel: compact direct numeric HH:MM entry. */
#ath-planner .ath-time-fields{display:flex;align-items:center;gap:7px;margin-top:5px;max-width:190px}
#ath-planner #ath-form .ath-time-fields input{display:block;margin:0;width:65px;min-width:0;flex:0 0 65px;text-align:center;font-size:18px;letter-spacing:.05em;font-variant-numeric:tabular-nums;padding:10px 7px}
#ath-planner .ath-time-fields>span{font-weight:800;color:#335941;font-size:20px}

/* UX 3.0: одна тренировка -> несколько упражнений -> одно сохранение. */
#ath-planner .ath-step-help{
  border:1px solid #dae5d9;border-radius:12px;
  background:#f3f8f0;padding:12px 13px;margin:13px 0 14px;
  color:#31533d;
}
#ath-planner .ath-step-help b{
  display:flex;align-items:center;gap:9px;
  font-size:15px;line-height:1.4;font-weight:800;color:#215640;
}
#ath-planner .ath-step-help b span{
  display:inline-grid;place-items:center;width:27px;height:27px;flex:0 0 27px;
  color:white;background:#2c684c;border-radius:100%;font-size:14px;
}
#ath-planner .ath-step-help p{
  font-size:13px;line-height:1.55;margin:7px 0 0;color:#496554;
}
#ath-planner .ath-step-two{margin-top:18px}
#ath-planner .ath-step-three{background:#fcf7ea;border-color:#e3d5b4}
#ath-planner .ath-step-three b span{background:#97713d}
#ath-planner .ath-exercise-heading{flex-wrap:wrap;gap:8px}
#ath-planner .ath-exercise-heading h4{font-size:16px}
#ath-planner #ath-exercise-count{font-size:13px;font-weight:600;color:#647b6b}
#ath-planner #ath-add-exercise{
  min-height:46px;padding:11px 15px;border-radius:12px;
  background:#256b4c;color:white;border-color:#256b4c;
  font-size:14px;font-weight:800;
}
#ath-planner .ath-empty-exercise{
  font-size:13px;line-height:1.55;color:#526c59;
  background:#f7faf5;border:1px dashed #bbd4bf;border-radius:11px;
  padding:13px;margin:7px 0 12px;
}
#ath-planner .ath-empty-exercise[hidden],
#ath-planner .ath-form-feedback[hidden],
#ath-planner .ath-day-notice[hidden]{display:none!important}
#ath-planner .ath-exercise-number{
  display:block;font-size:13px;font-weight:800;color:#226549;
  margin-bottom:10px;
}
#ath-planner .ath-exercise{
  background:#f8fbf6;border:1px solid #cadccc;
  border-left:3px solid #78ad84;
}
#ath-planner #ath-form input,#ath-planner #ath-form select,
#ath-planner #ath-form textarea{
  min-height:45px;font-size:16px;
}
#ath-planner #ath-form textarea{min-height:75px}
#ath-planner .ath-form-actions button{min-height:47px;font-size:14px}
#ath-planner .ath-form-feedback{
  background:#fff3df;color:#795122;border:1px solid #dcbf8c;
  border-radius:11px;padding:11px 12px;
  font-size:13px;line-height:1.5;margin:11px 0;
}
#ath-planner .ath-day-notice{
  background:#edf7ec;color:#215b40;border:1px solid #b6d8bc;
  border-radius:11px;padding:11px 12px;
  font-size:13px;line-height:1.45;margin:10px 0 12px;
}
#ath-planner.ath-is-editing .ath-empty-day{display:none}
#ath-planner .ath-add-inside{min-height:42px}
#ath-planner .ath-exercise .ath-remove{
  font-size:12px;color:#795c4c;text-decoration:underline;
}
#ath-planner button:focus-visible{outline:3px solid #d6b56e;outline-offset:2px}
@media(max-width:540px){
 #ath-planner .ath-exercise-heading{flex-direction:column;align-items:stretch}
 #ath-planner #ath-add-exercise{width:100%}
 #ath-planner .ath-plan-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #ath-planner .ath-plan-actions button{min-width:0;min-height:43px;white-space:normal;line-height:1.25}
 #ath-planner .ath-plan-actions .ath-add-inside{grid-column:1/-1}
 #ath-planner .ath-form-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch}
 #ath-planner .ath-form-actions button{padding:10px 12px}
 #ath-planner .ath-step-help p{font-size:13px}
}
@media(max-width:365px){
 #ath-planner .ath-exercise-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}
 #ath-planner .ath-form-actions{grid-template-columns:1fr}
}

/* Скрываем необязательные поля, чтобы новичок сразу видел блок упражнений. */
#ath-planner .ath-optional-fields{
 margin:12px 0 4px;border:1px solid #dce4d6;border-radius:12px;
 background:#fafbf7;padding:0 13px;
}
#ath-planner .ath-optional-fields summary{
 min-height:44px;display:flex;align-items:center;cursor:pointer;
 color:#3c6650;font-size:13px;font-weight:750;
 padding:10px 0;touch-action:manipulation;
}
#ath-planner .ath-optional-fields summary:focus-visible{
 outline:2px solid #c3a469;outline-offset:2px;
}
#ath-planner .ath-optional-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 11px;
 padding:11px 0 4px;border-top:1px solid #e6e9de;
}
#ath-planner .ath-optional-grid>label:last-child{grid-column:1/-1}
@media(max-width:390px){
 #ath-planner .ath-optional-grid{grid-template-columns:1fr}
 #ath-planner .ath-optional-grid>label:last-child{grid-column:1}
}

/* Weekly training calendar: readable seven-day colors and dated exercise records. */
#ath-planner .ath-calendar{
 padding:13px 12px 12px;border-radius:16px;
 border:1px solid #cbdccf;background:linear-gradient(145deg,#fffef9,#f2f8f0);
 margin-bottom:13px
}
#ath-planner .ath-calendar-heading{
 display:flex;align-items:center;gap:7px;margin:0 0 12px
}
#ath-planner .ath-calendar-heading>div{flex:1;min-width:0;text-align:center}
#ath-planner #ath-week-range{display:block;font-size:15px;line-height:1.35;color:#24553a;font-variant-numeric:tabular-nums}
#ath-planner .ath-calendar-heading small{display:block;font-size:11px;color:#657c6a;line-height:1.3}
#ath-planner .ath-calendar-heading>button{
 flex:0 0 auto;min-width:39px;min-height:42px;padding:8px 9px;
 font-size:22px;background:#f2f5ee;border:1px solid #b8cbbb;
}
#ath-planner #ath-week-today{font-size:11px;font-weight:800;padding:7px;min-width:0}
#ath-planner .ath-week-nav{gap:5px;margin:0}
#ath-planner .ath-week-nav button.ath-week-day{
 min-width:0;min-height:93px;padding:8px 2px 7px;gap:3px;
 border:1px solid #cbdaca;border-top:4px solid var(--ath-day-accent,#d3ddd0);
 background:#fff;color:#2d5440;display:flex;flex-direction:column;align-items:center;
 position:relative;transition:background .15s,border .15s;
}
#ath-planner .ath-week-day.is-active{
 background:#f6f7ed;border-color:var(--ath-day-accent,#34694b);
 border-top-color:var(--ath-day-accent,#34694b);
 outline:2px solid var(--ath-day-accent,#34694b);outline-offset:1px;
 color:#1d4832
}
#ath-planner .ath-week-day.is-today::after{
 content:"";width:5px;height:5px;background:#c79539;
 border-radius:50%;position:absolute;top:4px;right:4px;
}
#ath-planner .ath-week-day.is-rest{background:#edf1f2}
#ath-planner .ath-week-day .ath-day-number{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}
#ath-planner .ath-week-day .ath-day-type{
 font-size:10px;line-height:1.2;max-width:100%;text-align:center;
 overflow-wrap:anywhere;word-break:normal;min-height:22px;
 display:flex;align-items:center;justify-content:center
}
#ath-planner .ath-week-day .ath-day-done{
 position:absolute;top:-6px;right:-4px;background:#27674e;
 display:grid;place-items:center;border-radius:99px;
 width:17px;height:17px;color:white;font-size:11px;line-height:1;
 border:1px solid #f9f8ed
}
#ath-planner .ath-week-hint{
 font-size:12px;color:#58705d;margin:9px 0 0;line-height:1.45
}
#ath-planner .ath-day-toolbar{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 14px
}
#ath-planner .ath-day-toolbar button{
 min-width:0;min-height:44px;white-space:normal;line-height:1.25;
 padding:9px 7px;font-size:12px
}
#ath-planner .ath-day-toolbar button:disabled{opacity:.42;cursor:not-allowed}
#ath-planner .ath-rest-card{
 background:#f4f7f7;border:1px solid #ccd8da;border-left:5px solid var(--ath-day-accent,#778a91);
 padding:14px 15px;border-radius:13px;margin:8px 0 14px;color:#435963
}
#ath-planner .ath-rest-card strong{display:block;font-size:16px;color:#345264}
#ath-planner .ath-rest-card p{font-size:13px;line-height:1.55;margin:8px 0;color:#576e73}
#ath-planner .ath-rest-card label{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:750}
#ath-planner .ath-rest-card input[type=color]{
 width:52px;height:42px;padding:3px;border:1px solid #adbfc0;
 background:white;border-radius:9px;cursor:pointer
}
#ath-planner .ath-rest-card button{margin-top:9px;min-height:40px}
#ath-planner .ath-plan-card{
 border-left:5px solid var(--ath-plan-accent,#2d704d)
}
#ath-planner .ath-plan-dot{
 display:inline-block;width:9px;height:9px;border-radius:50%;
 vertical-align:middle;margin-right:6px
}
#ath-planner .ath-color-choose{
 display:flex;align-items:center;gap:11px;margin-top:6px
}
#ath-planner #ath-form input[type=color]{
 width:66px;flex:0 0 66px;height:47px;min-height:47px;
 padding:4px;border-radius:10px;background:#fff;cursor:pointer
}
#ath-planner .ath-color-choose small{font-size:12px;color:#5f7868}
#ath-planner .ath-quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 11px}
#ath-planner .ath-quick label:first-child{grid-column:1/-1}
#ath-planner .ath-exercise select.ath-preset{font-size:16px;min-height:46px}
#ath-planner .ath-own-exercise[hidden]{display:none!important}
#ath-planner .ath-own-exercise{background:#f1f7ec;border-radius:10px;padding:10px;margin:7px 0 12px}
#ath-planner #ath-day-records{
 margin:16px 0 5px;border-top:1px solid #d7e3d7;padding-top:12px
}
#ath-planner #ath-day-records h4{font-size:16px;color:#27543d;margin:0 0 9px}
#ath-planner #ath-day-records>.ath-empty{font-size:13px;color:#617565;line-height:1.5}
#ath-planner .ath-record{
 background:#f9fcf8;border:1px solid #d5e4d6;
 border-left:5px solid var(--ath-plan-accent,#2e7052);
 border-radius:11px;padding:12px;margin-bottom:10px
}
#ath-planner .ath-record strong,#ath-planner .ath-record small{display:block}
#ath-planner .ath-record strong{color:#1f5439;font-size:15px}
#ath-planner .ath-record small{color:#607b68;font-size:11px;margin:4px 0}
#ath-planner .ath-record p{font-size:13px;line-height:1.5;color:#496a53}
#ath-planner .ath-record ul{margin:8px 0 8px;padding-left:19px}
#ath-planner .ath-record li{font-size:13px;color:#315b41;margin:5px 0}
#ath-planner .ath-record li span{display:block;font-size:12px;color:#647d6c}
#ath-planner .ath-record button{
 background:transparent;color:#6b695b;text-decoration:underline;border:0;
 padding:7px 3px;font-size:12px
}
#ath-planner .ath-editor-purpose{font-size:13px;color:#537361;line-height:1.5;margin:-7px 0 15px}
#ath-planner .ath-week-day:focus-visible,#ath-planner #ath-week-today:focus-visible,
#ath-planner .ath-rest-card input[type=color]:focus-visible{
 outline:3px solid #b59a57;outline-offset:2px
}
@media(max-width:530px){
 #ath-planner .ath-calendar{padding:12px 7px}
 #ath-planner .ath-week-nav{gap:3px}
 #ath-planner .ath-week-nav button.ath-week-day{min-height:91px;padding:9px 1px 6px}
 #ath-planner .ath-week-day .ath-day-type{font-size:9px;min-height:22px}
 #ath-planner .ath-week-day strong{font-size:12px}
 #ath-planner .ath-week-day .ath-day-number{font-size:15px}
 #ath-planner .ath-calendar-heading>button{min-width:34px;padding:7px 5px}
 #ath-planner #ath-week-range{font-size:13px}
 #ath-planner .ath-day-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
 #ath-planner .ath-day-toolbar button:first-child{grid-column:1/-1}
}
@media(max-width:350px){
 #ath-planner .ath-week-day .ath-day-number{font-size:13px}
 #ath-planner .ath-week-day .ath-day-type{font-size:8px}
 #ath-planner .ath-week-nav button.ath-week-day{min-height:90px}
}

#ath-planner .ath-color-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:5px 11px;margin:10px 0 5px}
#ath-planner .ath-color-legend span{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#576f5e;white-space:nowrap}
#ath-planner .ath-color-legend i{display:block;width:9px;height:9px;border-radius:50%;flex:none}
#ath-planner .ath-multi-colors{display:inline-flex;justify-content:center;gap:2px;margin:1px 0}
#ath-planner .ath-multi-colors i{width:7px;height:7px;border-radius:50%;display:block}
#ath-planner .ath-top-actions button:disabled{opacity:.48;cursor:not-allowed}
