/* Дизайн рисовался под 390×844; здесь — настоящий экран телефона и аккуратная колонка на компьютере. */
/* Как приложение. Листается сама страница (на iPhone это самое плавное), нижняя панель и кнопки прибиты к низу экрана.
   Увеличение щипком и двойным касанием выключено (touch-action), страница не «тянется» за край (overscroll-behavior). */
html, body { margin: 0; padding: 0; background: var(--bg, #000); }
html { touch-action: pan-x pan-y; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-size: max(16px, 1em); }      /* iPhone не приближает поле при вводе */
.app { width: 100%; max-width: 560px; height: auto; min-height: 100vh; min-height: 100dvh; margin: 0 auto; overflow: visible; }
.scroll { flex: 1 0 auto; overflow: visible; padding-top: calc(12px + env(safe-area-inset-top)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-width: 560px; margin: 0 auto;
  padding-bottom: calc(8px + env(safe-area-inset-bottom)); height: auto; min-height: 60px; }
.scroll:has(+ .tabbar) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.foot { position: sticky; bottom: 0; z-index: 4; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.sheetbg { position: fixed; left: 0; right: 0; top: 0; bottom: 0; max-width: 560px; margin: 0 auto; }
.sheet { padding-bottom: calc(18px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
.hint { font-size: 13px; line-height: 18px; color: var(--muted); padding: 0 4px; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.app-in { display: contents; }
.setb { width: auto; min-width: 44px; padding: 0 12px; border-radius: 22px; }
.input { min-width: 0; } .input input, .row input, .stack input { min-width: 0; width: 100%; box-sizing: border-box; }
input[type="time"], input[type="date"]:not(.stack input) { background: var(--card2); color: var(--ink); border: 0; border-radius: 10px; min-height: 40px; padding: 6px 10px; font: inherit; font-variant-numeric: tabular-nums; }
/* фигура с мышцами и «герой»-карточки (дизайн TrainingDay / Trainings / Home) */
.hero { border-radius: 22px; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 14px; color: #fff; overflow: hidden; }
.hero .s { color: rgba(255,255,255,.72); }
.fig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.figcol { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.figcol .s { color: inherit; opacity: .7; }
.figbox { position: relative; width: 100%; max-width: 168px; aspect-ratio: 341 / 544; margin: 0 auto; --mfill: color-mix(in srgb, var(--acc) 72%, #000); }
.figbox img, .figbox .mu, .figbox .mu i { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.mu { opacity: 0; transition: opacity .35s; }
.mu.on { opacity: 1; filter: drop-shadow(0 0 2px var(--glow, var(--acc))); animation: mupulse 2.6s ease-in-out infinite; }
@keyframes mupulse { 50% { opacity: .8; } }
.fig.forming { animation: figsh 1.6s ease-in-out infinite; }
@keyframes figsh { 50% { opacity: .45; } }
.hero .tag.glass { background: rgba(255,255,255,.12); color: #fff; gap: 6px; }
.dotg { width: 8px; height: 8px; border-radius: 4px; display: inline-block; background: var(--glow, var(--acc)); }
.tile { border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 8px; color: #fff; min-height: 120px; overflow: hidden; }
.tile .s { color: rgba(255,255,255,.72); }
.plancard { width: 168px; min-height: 128px; gap: 6px; justify-content: space-between; flex-shrink: 0; }
