/* шрифты лежат локально (OFL, google/fonts): сайт работает без внешних запросов */
@font-face { font-family: "Oswald"; src: url("fonts/Oswald.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/Onest.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
/* MYFIT — светлая «воздушная» тема в стиле Anatoly Fit (чёрный + жёлтый акцент), тёмная по переключателю */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface2: #f5f3ee; --line: #eceef2; --line2: #e2e4ea;
  --text: #07070a; --muted: #7e8395; --muted2: #b7b9c3; --track: #eceef2;
  --accent: #ffde02; --accent-2: #ffe600; --accent-ink: #07070a; --ink: #07070a; --ink-text: #ffffff;
  --red: #e5132f; --ok: #1f9d55; --mid: #e0a100;
  --p: #2bb673; --f: #ffb800; --c: #4f6bed; --burn: #ff4d2e;
  --shadow: 0 1px 2px rgba(7,7,10,.04), 0 10px 30px -14px rgba(7,7,10,.14);
  --r: 22px; --gap: 16px;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Onest", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #07070a; --surface: #111114; --surface2: #18181d; --line: #22232a; --line2: #2c2d35;
  --text: #f7f8fb; --muted: #9a9eae; --muted2: #585c6b; --track: #22232a;
  --ink: #ffde02; --ink-text: #07070a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 var(--font-body); min-height: 100vh; -webkit-font-smoothing: antialiased; }
#app { max-width: 820px; margin: 0 auto; padding: env(safe-area-inset-top) 16px calc(96px + env(safe-area-inset-bottom)); }
h1, h2, h3 { font-family: var(--font-head); text-transform: uppercase; font-weight: 600; letter-spacing: .3px; margin: 0 0 10px; line-height: 1.08; }
h1 { font-size: 40px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 6px 0; }
small { color: var(--muted); }
a { color: inherit; }
code { background: var(--surface2); padding: 1px 6px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.ja-photo, .jc-photo, .mv-tech img { max-width: none; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .red { color: var(--red); }
.ic { width: 20px; height: 20px; flex: none; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 14px 0 12px; background: var(--bg); }
.brand { display: flex; flex-direction: column; margin-right: auto; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: 1px; line-height: 1; }
.logo b { background: var(--accent); color: #07070a; padding: 0 5px; margin-left: 2px; border-radius: 4px; font-weight: 700; }
.brand small { margin-top: 3px; font-size: 12px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--text); color: var(--bg); }
.seg.small button { padding: 6px 11px; font-size: 12px; }
.seg.full { display: flex; width: 100%; margin-bottom: 14px; }
.seg.full button { flex: 1; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; width: 40px; height: 40px; display: grid; place-items: center; flex: none; color: var(--text); }
.icon-btn:disabled { opacity: .3; }

/* нижняя навигация */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabs a { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; border-radius: 14px; }
.tabs a .ic { width: 22px; height: 22px; }
.tabs a.on { color: var(--text); }
.tabs a.on .ic { color: #07070a; background: var(--accent); border-radius: 10px; padding: 3px; width: 30px; height: 26px; }

/* карточки */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 0 0 var(--gap); box-shadow: var(--shadow); }
.grad-card { background: #07070a; color: #fff; border-color: #07070a; }
.grad-card small, .grad-card .muted { color: #b7b9c3; }
.grad-card h2 { color: #fff; }
.grad-card.grad-red { background: linear-gradient(135deg, #e5132f, #8e0018); border: 0; }
.link-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; border: 2px solid var(--accent); }
.link-card b { font-family: var(--font-head); text-transform: uppercase; font-size: 18px; font-weight: 600; }

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: 22px; margin: 4px 0 var(--gap); color: #fff; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end; background: #07070a; box-shadow: var(--shadow); }
.hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(7,7,10,.1) 0%, rgba(7,7,10,.5) 45%, rgba(7,7,10,.93) 100%); }
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 44px; }
.hero p { color: #e4e5ea; }
.hero-top { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: auto; padding-bottom: 90px; }
.chip { display: inline-block; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; color: #fff; text-decoration: none; }
.chip.accent { background: var(--accent); color: #07070a; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; font-size: 13px; }
.chip.ghost { background: rgba(255,255,255,.16); }
.chip.dark { background: var(--surface2); color: var(--text); border: 1px solid var(--line); }
.hero-stats { display: flex; gap: 8px; margin: 14px 0 4px; }
.hero-stats div { flex: 1; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 10px 12px; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 600; line-height: 1.1; }
.hero-stats small { color: #c9cbd3; font-size: 11px; }
.pill-ok { background: rgba(255,255,255,.14); border-radius: 12px; padding: 6px 10px; display: inline-block; }

/* кнопки */
.btn { border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 700; background: var(--accent); color: #07070a;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; transition: transform .1s, filter .2s; text-decoration: none; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: scale(.98); }
.btn.big { width: 100%; padding: 17px; font-size: 16px; border-radius: 16px; margin-top: 12px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; font-size: 18px; }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 12px; }
.btn.wide { width: 100%; margin: 8px 0; }
.btn.light { background: var(--accent); color: #07070a; }
.btn.dark { background: var(--ink); color: var(--ink-text); }
.btn.ghost { background: var(--surface2); color: var(--text); width: 100%; margin-top: 8px; }
.btn.small.ghost { width: auto; margin-top: 0; }
.btn.outline { background: transparent; color: var(--text); border: 1.5px solid var(--line2); }
.btn.ghost-light { background: rgba(255,255,255,.14); color: #fff; width: 100%; margin-top: 8px; font-weight: 600; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.mid { background: #ffcc33; color: #2a1a00; }
.btn.bad { background: var(--red); color: #fff; }
.btn.danger { color: var(--red); background: none; }
.btn.grad-btn { background: var(--ink); color: var(--ink-text); }
.btn.busy { opacity: .6; pointer-events: none; }
.btn .ic { width: 16px; height: 16px; }
.pulse { animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,222,2,.6); } 60% { box-shadow: 0 0 0 14px rgba(255,222,2,0); } }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.row-between h2 { margin: 0; }
@media (max-width: 560px) { .card.row-2 { grid-template-columns: 1fr; } }

/* статусы */
.status { border-radius: 14px; padding: 11px 13px; margin: 10px 0 0; font-weight: 600; }
.status.ok { background: #e7f7ee; color: #146c3c; }
.status.mid { background: #fff6d6; color: #7a5a00; }
.status.bad { background: #fde8eb; color: #a3101f; }
:root[data-theme="dark"] .status.ok { background: rgba(31,157,85,.18); color: #8fe5b3; }
:root[data-theme="dark"] .status.mid { background: rgba(255,204,51,.14); color: #ffe08a; }
:root[data-theme="dark"] .status.bad { background: rgba(229,19,47,.18); color: #ffb3bd; }
.hero .status { background: rgba(255,255,255,.14); color: #fff; }
.note { background: var(--surface2); border-radius: 14px; padding: 11px 13px; font-size: 14px; }
.note.warn { background: #fff8d6; border: 1px solid #ffe680; color: #4a3b00; }
:root[data-theme="dark"] .note.warn { background: rgba(255,222,2,.08); border-color: rgba(255,222,2,.3); color: #ffe88a; }
.grad-card .note { background: rgba(255,255,255,.08); color: #e4e5ea; }
.ok-line { color: var(--ok); font-weight: 700; margin: 8px 0; }
.quote { text-align: center; color: var(--muted); font-style: italic; margin: 20px 12px; }

/* блок упражнения */
.bl { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bl:last-child { border-bottom: 0; }
.bl.muted { opacity: .5; }
.bl-t { flex: 1; display: flex; flex-direction: column; min-width: 0; text-align: left; }
.bl-t b { font-weight: 700; }
.bl-t small { font-size: 13px; }
.bl-t em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.kc { font-family: var(--font-head); font-weight: 600; font-size: 20px; text-align: right; white-space: nowrap; }
.kc small { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 500; }

/* фото/иллюстрации */
.art { position: relative; border-radius: 16px; overflow: hidden; background: #1a1c24; aspect-ratio: 4 / 3; }
.art svg, .art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.art img { object-fit: cover; }
.art.thumb { width: 84px; flex: none; border-radius: 14px; }
.art.hero-art { max-width: 100%; margin: -18px -18px 14px; border-radius: var(--r) var(--r) 0 0; aspect-ratio: 16 / 9; }
.fthumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface2); }
.fthumb.noimg { display: inline-block; }

/* красный алерт */
.alert-red { display: flex; gap: 14px; align-items: center; padding: 12px; margin: 0 0 var(--gap); border-radius: var(--r); cursor: pointer;
  background: linear-gradient(135deg, #e5132f, #8e0018); color: #fff; box-shadow: 0 16px 34px -16px rgba(229,19,47,.7); }
.ar-img { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; flex: none; border: 2px solid rgba(255,255,255,.25); }
.ar-emoji { font-size: 42px; flex: none; }
.alert-red b { font-family: var(--font-head); text-transform: uppercase; font-weight: 600; font-size: 17px; letter-spacing: .3px; }
.alert-red p { margin: 4px 0 0; font-size: 13px; opacity: .95; }
.alert-red u { text-decoration-thickness: 2px; text-decoration-color: rgba(255,255,255,.55); }

/* кольца и полоски */
.ring { position: relative; flex: none; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; }
.ring circle { transition: stroke-dashoffset .6s ease; }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-in b { font-family: var(--font-head); font-size: 30px; font-weight: 600; line-height: 1; }
.ring-in small { font-size: 11px; margin-top: 3px; }
.ring-box { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.macro-list { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.macro-list span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.macro-list small { font-size: 12px; }
.bar { height: 8px; border-radius: 8px; background: var(--track); overflow: hidden; margin: 3px 0; }
.bar i { display: block; height: 100%; border-radius: 8px; background: var(--accent); transition: width .5s; }
.b-p i { background: var(--p); } .b-f i { background: var(--f); } .b-c i { background: var(--c); } .b-burn i { background: var(--burn); }

/* вес, вода */
.weigh { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.weigh input { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--surface); font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.weigh.small input { font-family: var(--font-body); font-size: 15px; padding: 8px; width: 90px; }
.water { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 6px 0; }
.water button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 0; color: var(--muted2); display: grid; place-items: center; }
.water button.on { background: #e8f4ff; color: #1f7ae0; border-color: #bfe0ff; }
:root[data-theme="dark"] .water button.on { background: rgba(31,122,224,.2); border-color: rgba(31,122,224,.4); color: #6fb2ff; }

/* план */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stages div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 12px; font-size: 12px; }
.stages div.on { background: var(--accent); color: #07070a; border-color: var(--accent); }
.stages div.on small { color: #3b3200; }
.stages b { display: block; font-family: var(--font-head); text-transform: uppercase; font-size: 18px; font-weight: 600; }
.stages p { margin: 4px 0 0; }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.kpis div { background: var(--surface2); border-radius: 16px; padding: 12px; }
.grad-card .kpis div { background: rgba(255,255,255,.07); }
.kpis b { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 600; line-height: 1.1; }
.kpis small { font-size: 11px; line-height: 1.25; display: block; margin-top: 2px; }
.kpis .red b { color: var(--red); }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.weeks { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 10px; scrollbar-width: none; }
.weeks button { flex: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.weeks button.cur { border: 2px solid var(--text); }
.weeks button.on { background: var(--accent); border-color: var(--accent); color: #07070a; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.day { position: relative; border-radius: 18px; overflow: hidden; background: #07070a; min-height: 168px; }
.day.today { outline: 3px solid var(--accent); outline-offset: 2px; }
.day-main { position: absolute; inset: 0; border: 0; background: none; padding: 12px; color: #fff; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.day-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.day-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,10,0) 20%, rgba(7,7,10,.9)); }
.day-main > * { position: relative; z-index: 1; }
.day-main b { font-family: var(--font-head); text-transform: uppercase; font-size: 20px; font-weight: 600; }
.day-main small { color: #d9dbe2; font-size: 11.5px; }
.day .dw { font-size: 12px; font-weight: 600; color: var(--accent); }
.day .st { position: absolute; left: 12px; top: 10px; font-size: 18px; }
.day-gear { position: absolute; right: 8px; top: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255,255,255,.88); color: #07070a; display: grid; place-items: center; }
.day-gear .ic { width: 18px; height: 18px; }
.prog { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prog-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); font-size: 20px; font-weight: 700; }
.stepper b { min-width: 34px; text-align: center; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.stepper input { width: 76px; padding: 9px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--surface); text-align: center; font-weight: 700; }
.stepper.big { justify-content: center; gap: 16px; margin: 8px 0; }
.stepper.big button { width: 60px; height: 60px; font-size: 28px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line2); color: var(--text); }
.stepper.big b { font-size: 56px; min-width: 70px; }
.sets-mini { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px 98px; }
.sets-mini span { background: var(--surface2); border-radius: 10px; padding: 4px 9px; font-weight: 700; font-size: 13px; text-align: center; }
.sets-mini small { display: block; font-size: 10px; font-weight: 500; }
.segs-mini { display: flex; gap: 2px; height: 22px; margin: 0 0 12px 98px; border-radius: 8px; overflow: hidden; }
.segs-mini span { display: grid; place-items: center; font-size: 10px; font-weight: 700; min-width: 4px; color: #fff; }
.segs-mini.big { margin: 12px 0; height: 12px; }
.segs-mini .past { opacity: .35; }
.segs-mini .now { outline: 2px solid var(--text); outline-offset: -2px; }
.segs-mini .int-easy { background: var(--line2); color: var(--muted); } .segs-mini .int-mod { background: var(--muted2); } .segs-mini .int-hard { background: var(--accent); color: #07070a; }
ul.mini { margin: 6px 0; padding-left: 18px; }
ul.mini li { margin: 5px 0; }

/* редактор дня */
.ed-block { border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin: 0 0 10px; background: var(--surface); }
.ed-block.off { opacity: .5; }
.ed-block.added { border: 1.5px dashed var(--line2); }
.ed-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ed-head .art.thumb { width: 64px; }
.ed-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ed-row > span { font-size: 14px; font-weight: 600; }
.ed-row > span small { display: block; font-weight: 400; }
.ed-text { padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--surface); width: 120px; font-weight: 600; }
.ed-text.wide { width: 100%; margin: 4px 0; }
.ed-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 12px; }
.ed-add span { font-weight: 600; font-size: 14px; }
.ed-total { background: var(--surface2); border-radius: 14px; padding: 12px 14px; margin-top: 6px; }
.ed-total b { font-family: var(--font-head); font-size: 22px; font-weight: 600; }

/* подтабы */
.subtabs { display: flex; gap: 4px; margin: 4px 0 var(--gap); background: var(--surface); padding: 4px; border-radius: 16px; border: 1px solid var(--line); }
.subtabs.scroll { overflow-x: auto; scrollbar-width: none; }
.subtabs button { flex: 1; white-space: nowrap; border: 0; background: none; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--muted); }
.subtabs button.on { background: var(--text); color: var(--bg); }

/* еда */
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.quick button { border: 1px solid var(--line2); background: var(--surface); border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 600; }
.quick button.on { background: var(--accent); border-color: var(--accent); color: #07070a; }
.search input, .recog textarea, .modal-body textarea { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--surface); }
.recog textarea, .modal-body textarea { min-height: 72px; resize: vertical; margin: 10px 0 8px; }
.sug { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 8px 2px; text-align: left; }
.sug b { flex: 1; font-weight: 600; }
.sug .fthumb { width: 40px; height: 40px; }
.sug.junk b { color: var(--red); }
.fe { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fe > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fe > span { font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.fe.junk { background: #fde8eb; border-radius: 14px; padding: 10px; border: 1px solid #f7b9c2; }
:root[data-theme="dark"] .fe.junk { background: rgba(229,19,47,.14); border-color: rgba(229,19,47,.4); }
.fe.junk b { color: var(--red); }
.fe.warn b::after { content: " · осторожно"; color: var(--mid); font-weight: 500; font-size: 12px; }
.meal { padding: 0; overflow: hidden; }
.meal > *:not(.meal-photo) { margin-left: 18px; margin-right: 18px; }
.meal > .row-between { margin-top: 14px; }
.meal > .btn, .meal > .ok-line { margin-bottom: 16px; }
.meal > small { display: block; margin-bottom: 10px; }
.meal-photo { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.meal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meal-photo span { position: absolute; left: 14px; top: 14px; background: var(--accent); color: #07070a; font-family: var(--font-head); font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.meal-items { list-style: none; padding: 0; margin: 6px 18px; }
.meal-items li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.meal-items li span { flex: 1; font-weight: 500; }
.meal-items .fthumb { width: 38px; height: 38px; border-radius: 10px; }
.meal.eaten { opacity: .65; }
.junk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.junk-card { border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 0 14px 14px; }
.jc-photo { width: calc(100% + 28px); margin: 0 -14px 10px; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.jc-top b { font-family: var(--font-head); text-transform: uppercase; font-weight: 600; font-size: 17px; display: block; }
.junk-card ul { padding-left: 18px; margin: 8px 0; font-size: 14px; }
.junk-card li b { color: var(--red); }
.rc { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rc.junk b { color: var(--red); }
.modal-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 26px 26px 0 0; }

/* стоп-алерт */
.sheet.red { background: linear-gradient(170deg, #e5132f, #6d0012); border: 0; }
.junk-alert { padding: 0 20px 22px; text-align: center; color: #fff; }
.ja-photo { width: calc(100% + 40px); margin: 0 -20px 6px; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 26px 26px 0 0; filter: saturate(1.1); }
.ja-emoji { font-size: 76px; padding-top: 20px; }
.junk-alert h2 { font-size: 54px; font-weight: 700; letter-spacing: 3px; margin: 6px 0 2px; color: #fff; }
.ja-name { font-size: 16px; }
.ja-cost { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.ja-cost div { background: rgba(0,0,0,.22); border-radius: 16px; padding: 12px; }
.ja-cost b { display: block; font-family: var(--font-head); font-size: 32px; font-weight: 600; }
.ja-cost small { color: rgba(255,255,255,.85); }
.junk-alert .btn.light { background: #fff; }

/* итоги */
.chart { margin: 10px 0 4px; overflow-x: auto; }
.chart svg { width: 100%; min-width: 300px; height: auto; display: block; }
.gl { stroke: var(--line); }
.ax { fill: var(--muted); font-size: 10px; }
.ln-g { stroke: var(--ok); stroke-width: 2; stroke-dasharray: 6 5; }
.ln-p { fill: none; stroke: var(--c); stroke-width: 2; stroke-dasharray: 2 4; }
.ln-a { fill: none; stroke: var(--text); stroke-width: 3; stroke-linejoin: round; }
.pt-a { fill: var(--accent); stroke: var(--text); stroke-width: 2; }
.ln-t { stroke: var(--muted2); stroke-dasharray: 2 3; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend span[class]::before { content: ""; display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.lg-a::before { background: var(--text); } .lg-g::before { background: var(--ok); } .lg-p::before { background: var(--c); }
.lg-in::before { background: var(--accent); } .lg-out::before { background: var(--c); }
.kbars { position: relative; display: flex; gap: 4px; height: 150px; align-items: flex-end; margin: 12px 0 4px; padding-bottom: 18px; }
.kb { flex: 1; height: 100%; position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.kb i { width: 42%; border-radius: 4px 4px 0 0; min-height: 2px; }
.kb i.in { background: var(--accent); } .kb i.in.over { background: var(--red); } .kb i.out { background: var(--c); }
.kb small { position: absolute; bottom: -18px; font-size: 10px; }
.kb em { position: absolute; top: -2px; font-style: normal; font-size: 11px; }
.tline { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--ok); pointer-events: none; }
.hm-head, .hm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hm-head span { text-align: center; font-size: 11px; color: var(--muted); }
.hm-grid { margin-top: 4px; }
.hm { aspect-ratio: 1; border: 0; border-radius: 9px; background: var(--surface2); font-size: 11px; color: var(--muted); }
.hm.done { background: var(--ok); color: #fff; font-weight: 700; }
.hm.partial { background: var(--accent); color: #07070a; font-weight: 700; }
.hm.skipped, .hm.missed { background: #f7c3ca; color: #8e0018; }
:root[data-theme="dark"] .hm.skipped, :root[data-theme="dark"] .hm.missed { background: rgba(229,19,47,.4); color: #fff; }
.hm.today { outline: 2px solid var(--text); color: var(--text); }

/* курсы */
.step { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.step > span { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; background: var(--accent); color: #07070a; }
.step p, .mist p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.mist { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mist b { color: var(--red); }
.abs-table { display: grid; gap: 6px; }
.abs-table div { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; background: var(--surface2); border-radius: 12px; padding: 9px 11px; }
.abs-table div.rest { opacity: .5; }
.abs-table em { font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.lvl summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.lvl summary::-webkit-details-marker { display: none; }
.lvl summary b { font-family: var(--font-head); text-transform: uppercase; font-size: 19px; font-weight: 600; }
.lvl summary b::after { content: " ▾"; color: var(--muted); }
.phase { background: var(--surface2); border-radius: 14px; padding: 11px 13px; margin: 8px 0; }
.gear { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gear-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.gear-card b { font-family: var(--font-head); text-transform: uppercase; font-weight: 600; margin-top: 6px; }
.gear-card.off { opacity: .6; }

/* режим тренировки — в той же теме, что и весь сайт */
#workout { position: fixed; inset: 0; z-index: 50; background: var(--bg); color: var(--text); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.wo-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 16px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.wo-title { flex: 1; display: flex; flex-direction: column; }
.wo-title small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: 11px; }
.wo-title b { font-family: var(--font-head); font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.05; }
.wo-head .btn.light { background: var(--ink); color: var(--ink-text); }
.wo-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--track); }
.wo-prog i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.wo-body { max-width: 820px; margin: 0 auto; padding: 16px 16px calc(30px + env(safe-area-inset-bottom)); }
.wo-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.wo-block.open { border: 2px solid var(--text); }
.wo-block.done { border-color: var(--ok); }
.wo-block.rest { opacity: .5; box-shadow: none; }
.wo-bh { width: 100%; border: 0; background: none; display: flex; align-items: center; gap: 12px; padding: 12px; text-align: left; color: var(--text); }
.badge { flex: none; min-width: 48px; padding: 7px 9px; border-radius: 12px; background: var(--surface2); font-weight: 700; text-align: center; font-size: 13px; }
.wo-block.open .badge { background: var(--accent); color: #07070a; }
.wo-block.done .badge { background: var(--ok); color: #fff; }
.cue { margin: 0 14px 10px; font-size: 13px; color: var(--muted); }
.wo-block > .btn, .wo-block > p, .check { margin-left: 14px; margin-right: 14px; }
.wo-block > .btn { margin-bottom: 14px; }
.sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; padding: 0 14px 14px; }
.set { border: 1px solid var(--line); background: var(--surface2); border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; color: var(--text); }
.set .sn { font-size: 10px; color: var(--muted); }
.set b { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.set.done { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: var(--ok); }
.set:disabled { opacity: .5; }
.set.cur { grid-column: 1 / -1; padding: 16px; background: var(--surface2); border: 0; }
.set.cur .sn { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; background: var(--accent); color: #07070a; padding: 3px 10px; border-radius: 999px; }
.set.cur .tg { color: var(--muted); font-size: 14px; margin-top: 4px; }
.cardio { margin: 0 14px 14px; padding: 18px; border-radius: 20px; text-align: center; background: var(--surface2); border: 2px solid transparent; }
.cardio.int-hard { border-color: var(--accent); animation: hardpulse 1.4s infinite; }
@keyframes hardpulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent); } }
.c-seg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.c-seg small { color: var(--muted); text-transform: uppercase; letter-spacing: .6px; font-size: 11px; font-weight: 600; }
.c-seg b { font-family: var(--font-head); text-transform: uppercase; font-size: 20px; font-weight: 600; }
.int-tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; background: var(--line2); color: var(--text); }
.cardio.int-mod .int-tag { background: var(--text); color: var(--bg); }
.cardio.int-hard .int-tag { background: var(--accent); color: #07070a; }
.c-time { font-family: var(--font-head); font-size: 84px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; margin: 10px 0 6px; }
.c-meta { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.cardio .row-2 { margin-top: 6px; }
.cardio .btn.ghost { background: var(--surface); border: 1.5px solid var(--line2); margin-top: 0; }
.check { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.check label { display: flex; gap: 10px; align-items: center; background: var(--surface2); padding: 12px; border-radius: 12px; }
.check input, .check-line input { width: 22px; height: 22px; accent-color: #07070a; flex: none; }
:root[data-theme="dark"] .check input { accent-color: #ffde02; }
.rest-layer { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; background: var(--bg); color: var(--text); text-align: center; }
.rest-layer > small { letter-spacing: 8px; font-weight: 600; font-family: var(--font-head); font-size: 20px; background: var(--accent); color: #07070a; padding: 4px 14px; border-radius: 999px; }
.rest-layer .ring-in b { font-size: 68px; }
.rest-layer p { color: var(--muted); font-weight: 600; }
.rest-layer .row-2 { width: min(380px, 100%); }
.rest-layer .btn.light:first-child { background: var(--surface); color: var(--text); border: 1.5px solid var(--line2); }
#pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 40; border: 0; border-radius: 999px; padding: 11px 20px;
  background: #07070a; color: #fff; font-weight: 700; box-shadow: 0 12px 30px -8px rgba(7,7,10,.5); white-space: nowrap; }
#pill b { color: var(--accent); font-variant-numeric: tabular-nums; }

/* модалка */
#modal { position: fixed; inset: 0; z-index: 70; background: rgba(7,7,10,.45); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; }
.sheet { position: relative; width: 100%; max-width: 580px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 26px 26px 0 0;
  padding-bottom: env(safe-area-inset-bottom); animation: up .25s ease; }
@media (min-width: 640px) { #modal { align-items: center; } .sheet { border-radius: 26px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet .close { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(255,255,255,.9); color: #07070a; border: 0; }
.modal-head { padding: 24px 20px 18px; color: #fff; background: #07070a; border-radius: 26px 26px 0 0; }
.modal-head small { color: var(--accent); font-weight: 600; }
.modal-head h2 { color: #fff; padding-right: 44px; font-size: 26px; }
.modal-head p { color: #c9cbd3; }
.modal-head.grad-red { background: linear-gradient(135deg, #e5132f, #8e0018); }
.modal-head.grad-red small { color: #fff; }
.modal-body { padding: 20px; }
.modal-head + .modal-body { padding-top: 14px; }
.modal-body > h2 { padding-right: 44px; }
.modal-body h3 { margin-top: 18px; }
.fin { list-style: none; padding: 0; }
.fin li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.check-line { display: flex; gap: 10px; align-items: center; padding: 11px; background: #fff8d6; border-radius: 12px; color: #4a3b00; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.form label, .form-1 { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.form input, .form select, .form-1 input { padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--surface); font-size: 15px; color: var(--text); width: 100%; font-weight: 500; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(14px + env(safe-area-inset-top)); z-index: 90; background: #07070a; color: #fff; padding: 11px 18px;
  border-radius: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100% - 28px); text-align: center; border-left: 4px solid var(--accent); }
[hidden] { display: none !important; }

@media (min-width: 820px) {
  h1 { font-size: 52px; }
  .hero { padding: 32px; min-height: 420px; }
  .hero h1 { font-size: 60px; }
}

/* логотип Bruenok Fit: маленькое BRUENOK над крупным FIT, чёрное на ядовито-жёлтом */
.brand { text-decoration: none; color: inherit; }
.brand-lock { display: inline-flex; flex-direction: column; align-items: flex-start; background: var(--accent); color: #07070a; border-radius: 10px; padding: 4px 9px 3px; line-height: .9; font-family: var(--font-head); }
.brand-lock span { font-size: 10px; font-weight: 600; letter-spacing: 2.6px; }
.brand-lock b { font-size: 25px; font-weight: 700; letter-spacing: 1px; }
.brand-lock.big { border-radius: 26px; padding: 18px 26px 14px; }
.brand-lock.big span { font-size: 22px; letter-spacing: 6px; }
.brand-lock.big b { font-size: 84px; letter-spacing: 3px; }
.brand small { display: flex; align-items: center; gap: 4px; margin-top: 4px; }

/* индикатор сохранения на сервер */
.sync { display: inline-grid; place-items: center; }
.sync .ic { width: 15px; height: 15px; }
.sync.ok { color: var(--ok); } .sync.saving { color: var(--muted); } .sync.offline, .sync.auth { color: var(--red); }

/* вход */
.login { max-width: 420px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; padding: 24px 0; text-align: center; }
.login form { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.form-1 input { margin-top: 2px; }

/* весы */
.w-card .row-between h2 { text-align: center; flex: 1; }
.w-input { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.w-input input { flex: 1; min-width: 0; text-align: center; padding: 14px 8px; border-radius: 20px; border: 2px solid var(--line2); background: var(--surface); font-family: var(--font-head); font-size: 56px; font-weight: 600; }
.w-input input:focus { outline: none; border-color: var(--text); }
.w-input button { width: 64px; height: 64px; border-radius: 20px; border: 1.5px solid var(--line2); background: var(--surface); font-size: 30px; font-weight: 700; flex: none; }
.center-row { justify-content: center; }
.w-today { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.w-slot { display: flex; flex-direction: column; text-decoration: none; background: var(--surface2); border-radius: 14px; padding: 8px 12px; }
.w-slot b { font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.w-slot.on { background: var(--accent); color: #07070a; }
.w-slot.on small { color: #3b3200; }
.w-hist { display: flex; flex-direction: column; }
.w-row { display: grid; grid-template-columns: 1fr 72px 72px 56px; gap: 6px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.w-row button { border: 1px solid var(--line); background: var(--surface2); border-radius: 10px; padding: 6px 0; font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.w-row em { font-style: normal; text-align: right; font-weight: 700; font-size: 13px; }
.w-row em.down { color: var(--ok); } .w-row em.up { color: var(--red); }
.ln-pm { fill: none; stroke: var(--muted2); stroke-width: 2; stroke-dasharray: 4 4; }
.pt-pm { fill: var(--surface); stroke: var(--muted); stroke-width: 2; }
.lg-pm::before { background: var(--muted2); }

/* 6 вкладок внизу — компактнее на узких экранах */
@media (max-width: 400px) { .tabs a { font-size: 10px; } }

/* свои упражнения */
.gear-card .row-2 { gap: 8px; margin-top: 8px; }
.modal-body .form-1 { margin: 10px 0; }

/* шаблон недели и пресеты */
.tpl { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tpl-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.tpl-row .bl-t { flex: 1; min-width: 0; }
.tpl-row .bl-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-row .ic { flex: none; width: 20px; height: 20px; color: var(--muted); }
.tpl-wd { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 16px; background: #07070a; color: var(--accent); }
.tpl-wd.rest { background: var(--surface2); color: var(--muted); }
.tpl-kc { flex: none; font-family: var(--font-head); font-weight: 600; font-size: 15px; text-align: right; }
.tpl-kc small { display: block; font-family: inherit; font-size: 11px; color: var(--muted); font-weight: 400; }
.preset { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.preset.on .bl-t b::before { content: '● '; color: var(--accent); }
.preset .bl-t { flex: 1 1 220px; min-width: 0; }
.preset-act { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-new { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.hm.rest { background: transparent; border: 1px dashed var(--line2); }

/* лента купленной программы */
.prog-card { border: 2px solid var(--accent); }
.feed { display: flex; flex-direction: column; gap: 6px; }
.feed-row, .pick-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 10px 12px; color: var(--text); }
.feed-row.rest { background: var(--surface2); border-color: transparent; }
.feed-row.today { border: 2px solid var(--accent); }
.feed-date { flex: none; width: 40px; text-align: center; line-height: 1.1; }
.feed-date b { display: block; font-family: var(--font-head); font-size: 22px; }
.feed-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feed-main small, .pick-row small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-row { flex-direction: column; align-items: flex-start; gap: 2px; margin: 6px 0; }

/* Базовая программа: мои показатели и журнал изменений */
.rep-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rep-row > span { flex: 1; min-width: 110px; display: flex; flex-direction: column; }
.rep-row > span small { color: var(--muted); }
.rep-row .stepper small { color: var(--muted); }
.rep-max { display: flex; flex-direction: column; width: 92px; font-size: 12px; color: var(--muted); }
.rep-max input { width: 100%; padding: 9px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--text); text-align: center; font-weight: 700; }
.log-list { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.log-list > div { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.log-list time { flex: none; width: 104px; color: var(--muted); font-size: 12px; padding-top: 2px; }

/* направления базовой программы */
.disc-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 2px 0 12px; }
.disc-tabs button { flex: none; border: 1px solid var(--line2); background: var(--surface); border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 14px; color: var(--text); }
.disc-tabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.disc-tabs button.add { border-style: dashed; color: var(--muted); }
.disc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.disc-pick button { text-align: left; border: 1.5px solid var(--line2); background: var(--surface); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.disc-pick button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.disc-pick button:disabled { opacity: .45; }
.disc-pick small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.rep-row.off > span b { color: var(--muted); text-decoration: line-through; }
.tgl { position: relative; width: 44px; height: 26px; flex: none; }
.tgl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.tgl i { position: absolute; inset: 0; border-radius: 999px; background: var(--line2); transition: background .15s; }
.tgl i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.tgl input:checked + i { background: var(--ok); }
.tgl input:checked + i::after { transform: translateX(18px); }
.tgl input:focus-visible + i { outline: 2px solid var(--text); outline-offset: 2px; }
.coach-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.coach { flex: none; width: 120px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.coach img { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; }
.coach small { color: var(--muted); font-size: 12px; }
.sim-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 7px; background: repeating-linear-gradient(135deg, #fff1b8 0 6px, #ffe78a 6px 12px); color: #5a4300; border: 1px dashed #c9a400; }
.check-line { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
