@font-face { font-family: Manrope; src: url(/static/fonts/Manrope.ttf) format("truetype"); font-weight: 200 800; font-display: swap; }
:root { --bg: #0B0D10; --card: #15191E; --up: #1C2229; --ink: #F4F6F2; --mut: #8E989F; --line: #293139; --lime: #C7F36B; --blue: #69D5E8; --r: 20px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; } html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 Manrope, -apple-system, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.wrap { max-width: 640px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 100px); }
h1 { font-size: 30px; line-height: 1.1; margin: 4px 0 12px; font-weight: 800; letter-spacing: -.02em; } h2 { font-size: 19px; margin: 0 0 10px; font-weight: 800; }
a { color: var(--lime); } .muted { color: var(--mut); font-size: 14px; } .center { text-align: center; }
.kicker { color: var(--mut); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; }
.card { display: block; background: var(--card); border-radius: var(--r); padding: 16px; margin: 12px 0; border: 1px solid #1F252C; text-decoration: none; color: inherit; box-shadow: 0 12px 32px #00000055; }
.card.warn { border-color: #5B5220; background: #1D1C12; } .card.today { border-color: var(--lime); }
.card.cook { background: linear-gradient(135deg, #1C2229, #20291A); } .card.cook span { display: block; color: var(--lime); font-size: 14px; margin-top: 4px; }
/* шапка */
.head { display: flex; justify-content: space-between; align-items: flex-start; } .head h1 { margin-top: 6px; }
.weight { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; margin: 6px 0 14px; }
.weight b { font-size: 64px; line-height: .9; font-weight: 800; letter-spacing: -.04em; } .weight b small { font-size: 24px; color: var(--mut); font-weight: 700; margin-left: 4px; }
.goalbar small { color: var(--mut); font-size: 13px; display: flex; justify-content: space-between; } .goalbar div { height: 8px; background: var(--up); border-radius: 9px; overflow: hidden; margin-top: 6px; }
.goalbar i { display: block; height: 100%; background: var(--lime); border-radius: 9px; box-shadow: 0 0 20px #C7F36B55; }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--card); border-radius: var(--r); padding: 16px 8px; border: 1px solid #1F252C; }
.ring { position: relative; text-align: center; } .ring svg { width: 100%; max-width: 110px; } .ring circle { fill: none; stroke-width: 9; }
.ring .bgc { stroke: var(--up); } .ring .fg { stroke: var(--lime); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; filter: drop-shadow(0 0 6px #C7F36B66); }
.ring div { position: absolute; inset: 0; display: grid; place-content: center; } .ring b { font-size: 21px; font-weight: 800; line-height: 1; } .ring span { color: var(--mut); font-size: 12px; }
/* тренировка дня */
.wo { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.wo .ic { width: 64px; height: 64px; border-radius: 16px; background: var(--up); display: grid; place-items: center; font-size: 32px; }
.wo b { font-size: 20px; display: block; } .wo .tag { display: inline-block; border: 1px solid var(--lime); color: var(--lime); border-radius: 99px; padding: 1px 9px; font-size: 11px; font-weight: 800; letter-spacing: .06em; margin-bottom: 2px; }
.chev { color: var(--mut); font-size: 26px; }
/* еда */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 14px 0 6px; }
.days a { text-align: center; padding: 9px 0; border-radius: 12px; background: var(--card); text-decoration: none; color: var(--mut); font-weight: 700; font-size: 14px; }
.days a.on { background: var(--lime); color: #0B0D10; }
.meals { display: grid; gap: 10px; }
.meal { position: relative; display: block; min-height: 132px; border-radius: var(--r); overflow: hidden; background: var(--card); text-decoration: none; color: var(--ink); border: 1px solid #1F252C; }
.meal img { position: absolute; right: 0; top: 0; width: 62%; height: 100%; object-fit: cover; }
.meal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--card) 36%, #15191Ecc 52%, transparent 80%); }
.meal div { position: relative; z-index: 1; padding: 16px; max-width: 62%; display: grid; gap: 3px; }
.meal small { color: var(--mut); font-size: 13px; } .meal b { font-size: 18px; line-height: 1.2; font-weight: 800; } .meal span { font-weight: 800; font-size: 17px; }
.meal span em { color: var(--mut); font-style: normal; font-weight: 600; font-size: 13px; }
.total { text-align: right; color: var(--mut); font-size: 14px; padding: 2px 4px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: var(--lime); color: #0B0D10; border: 0; border-radius: 16px; padding: 14px 20px;
  font: 800 17px Manrope, system-ui; text-decoration: none; cursor: pointer; min-height: 52px; box-shadow: 0 0 24px #C7F36B33; }
.btn.ghost { background: transparent; color: var(--lime); border: 1.5px solid var(--lime); box-shadow: none; } .btn.big { width: 100%; min-height: 60px; font-size: 20px; }
.btn.dark { background: var(--up); color: var(--ink); box-shadow: none; }
input { width: 100%; font: 600 17px Manrope, system-ui; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--up); color: var(--ink); margin-top: 5px; }
input::placeholder { color: #5C666D; } label { display: block; font-size: 13px; color: var(--mut); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .full { grid-column: 1 / -1; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.list { margin: 6px 0 0; padding-left: 18px; } .list li { margin: 6px 0; } .list small { color: var(--mut); display: block; font-size: 12px; }
.steps { padding-left: 22px; } .steps li { margin: 10px 0; } .tag { margin: 6px 0; font-size: 14px; color: var(--lime); font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; } .pills span { background: var(--up); border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 700; }
.chk { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; }
.chk input { width: 22px; height: 22px; margin: 0; accent-color: var(--lime); } .chk b { font-weight: 600; color: var(--mut); font-size: 14px; }
.chk input:checked ~ span { text-decoration: line-through; color: var(--mut); }
.chart { width: 100%; height: auto; } .chart polyline { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 6px #C7F36B66); }
.chart circle { fill: var(--lime); } .chart .goal { stroke: var(--blue); stroke-dasharray: 6 6; stroke-width: 2; } .chart .gl { fill: var(--mut); font-size: 12px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; } .cmp img, .gal img { width: 100%; border-radius: 14px; aspect-ratio: 3/4; object-fit: cover; display: block; }
.cmp figure { margin: 0; } .cmp figcaption { text-align: center; color: var(--mut); font-size: 13px; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .gal a { text-decoration: none; color: var(--mut); font-size: 12px; text-align: center; }
.flash { background: #1E2A14; color: var(--lime); padding: 12px 14px; border-radius: 14px; font-weight: 700; margin-bottom: 8px; } .flash.err { background: #2B1716; color: #FF8A7A; }
.tab { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: rgb(11 13 16 / .92); backdrop-filter: blur(16px);
  border-top: 1px solid #1F252C; padding: 8px 0 calc(env(safe-area-inset-bottom) + 6px); z-index: 10; }
.tab a { text-align: center; text-decoration: none; color: var(--mut); font-size: 11.5px; font-weight: 700; } .tab i { display: block; font-style: normal; font-size: 22px; filter: grayscale(1) opacity(.7); }
.tab a.on { color: var(--lime); } .tab a.on i { filter: none; }
.login { max-width: 380px; margin: 14vh auto 0; text-align: center; } .login .card { display: grid; gap: 10px; text-align: left; }
.logo { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto; background: var(--card); color: var(--lime); font: 800 42px/76px Manrope; box-shadow: 0 0 30px #C7F36B33; }
.back { text-decoration: none; font-size: 15px; font-weight: 700; } code { background: var(--up); padding: 2px 6px; border-radius: 6px; word-break: break-all; font-size: 13.5px; color: var(--lime); }
.hero-img { width: 100%; border-radius: var(--r); margin: 6px 0 10px; display: block; }
/* дорожка */
.tcard { display: grid; grid-template-columns: 1fr 88px; gap: 10px; align-items: center; } .tcard h1 { margin: 2px 0; font-size: 28px; } .tcard .ic { font-size: 54px; text-align: center; filter: drop-shadow(0 0 14px #C7F36B66); }
.incl { width: 100%; height: auto; } .incl path.f { fill: url(#g); } .incl path.l { fill: none; stroke: var(--lime); stroke-width: 2.5; } .incl text { fill: var(--mut); font-size: 11px; }
.incl line { stroke: #232A31; } .incl .now { stroke: var(--lime); stroke-dasharray: 3 3; }
.segc { display: grid; grid-template-columns: 1.35fr .9fr .6fr .95fr; gap: 6px; align-items: center; background: var(--card); border: 1px solid #1F252C; border-radius: 18px; padding: 14px; margin: 8px 0; }
.segc.now { border: 1.5px solid var(--lime); background: linear-gradient(135deg, #1A2114, #15191E); box-shadow: 0 0 24px #C7F36B22; } .segc.done { opacity: .45; }
.segc small { display: block; color: var(--mut); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; } .segc b { font-size: 22px; font-weight: 800; }
.segc b em { font-size: 12px; color: var(--mut); font-style: normal; } .segc .nm { font-size: 17px; font-weight: 800; line-height: 1.15; } .segc .hr b { color: var(--blue); font-size: 18px; }
.segc .feel { grid-column: 1 / -1; color: var(--mut); font-size: 13px; } .nowtag { background: var(--lime); color: #0B0D10; border-radius: 6px; padding: 1px 6px; font-size: 10px; font-weight: 800; margin-left: 6px; }
.timer { position: sticky; top: calc(env(safe-area-inset-top) + 6px); z-index: 5; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: #11161Bee; backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px; margin: 10px 0; } .timer b { font-size: 34px; font-weight: 800; } .timer small { display: block; color: var(--mut); font-size: 13px; }
.timer .nx { color: var(--lime); font-weight: 700; font-size: 14px; }
.ex { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; margin: 10px 0; } .ex img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; }
.ex:not(:has(img)) { grid-template-columns: 1fr; } .ex p { margin: 2px 0 0; }
.segs { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0; } .segs th { text-align: left; color: var(--mut); font-weight: 600; font-size: 12.5px; padding: 4px; }
.segs td { padding: 9px 4px; border-top: 1px solid var(--line); vertical-align: top; } .segs td small { display: block; color: var(--mut); font-size: 12px; } .segs tr.now td { color: var(--lime); }
details summary { color: var(--lime); font-weight: 700; cursor: pointer; }
