/* Маркетплейс: те же токены, что у трекера (app.css), шире сетка и свои блоки витрины и кабинетов */
body.mk #app { max-width: 1180px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.mk-main { min-height: 60vh; }
.mk-main > h1 { margin-top: 8px; }

/* шапка */
.mk-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 0; background: var(--bg); }
.mk-logo { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: 1px; margin-right: auto; }
.mk-logo b { background: var(--accent); color: #07070a; padding: 0 6px; border-radius: 5px; }
.mk-links { display: flex; gap: 4px; }
.mk-links a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.mk-links a.on, .mk-links a:hover { color: var(--text); background: var(--surface); }
.mk-lang, .mk-me { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; height: 40px; padding: 0 12px; font-weight: 700; font-size: 13px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-cart { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 18px; }
.mk-cart b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.mk-tabs { display: none; }
.mk-ti { font-size: 20px; line-height: 1; }
@media (max-width: 820px) {
  .mk-links { display: none; }
  .mk-tabs { display: flex; }
  .mk-me { display: none; }
}

/* hero и заголовки */
.mk-hero { border-radius: 30px; padding: 32px 26px; margin: 6px 0 22px; background: #07070a; color: #fff; position: relative; overflow: hidden; }
.mk-hero::after { content: ""; position: absolute; right: -90px; top: -90px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255,222,2,.3), transparent 70%); }
.mk-hero > * { position: relative; z-index: 1; max-width: 760px; }
.mk-hero h1 { color: #fff; font-size: 44px; }
.mk-hero p { color: #c9cbd3; font-size: 16px; }
.mk-kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
:root:not([data-theme="dark"]) main > .mk-kicker, :root:not([data-theme="dark"]) .row-between .mk-kicker { color: #8a6d00; }
.mk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.mk-steps div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 12px; font-size: 14px; }
.mk-steps b { display: block; font-family: var(--font-head); font-size: 26px; color: var(--accent); }
.mk-h { margin: 26px 0 12px; }
@media (max-width: 640px) { .mk-hero h1 { font-size: 32px; } .mk-steps { grid-template-columns: 1fr; } }

/* спортсмены */
.mk-athletes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mk-ath { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); }
.mk-ath > img, .mk-ath > .mk-noimg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--accent); }
.mk-ath div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.mk-ath-cta { border: 2px dashed var(--line2); box-shadow: none; }
.mk-noimg { display: grid; place-items: center; background: var(--surface2); font-size: 28px; }
.mk-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 2px 7px; border-radius: 6px; background: #fff1b8; color: #6b5300; }
.mk-ath-hero { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; margin: 8px 0 10px; }
.mk-ath-hero > img, .mk-ath-hero > .mk-noimg { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 5px solid var(--accent); }
@media (max-width: 640px) { .mk-ath-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* сетки карточек */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mk-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mk-grid > .card { margin: 0; }
.mk-prog { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; }
.mk-prog:hover { transform: translateY(-2px); }
.mk-prog-img { position: relative; aspect-ratio: 16 / 10; background: #07070a; }
.mk-prog-img img, .mk-prog-img .mk-noimg { width: 100%; height: 100%; object-fit: cover; }
.mk-price { position: absolute; left: 12px; bottom: 12px; background: var(--accent); color: #07070a; font-family: var(--font-head); font-size: 20px; font-weight: 700; padding: 3px 12px; border-radius: 10px; }
.mk-prog-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.mk-prog-body b { font-family: var(--font-head); text-transform: uppercase; font-size: 20px; font-weight: 600; line-height: 1.1; }
.mk-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mk-meta span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface2); }
.mk-meta.light span { background: rgba(255,255,255,.14); color: #fff; }

.mk-prod { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mk-prod-img { aspect-ratio: 1; border-radius: 16px; background: var(--surface2); display: grid; place-items: center; overflow: hidden; font-size: 64px; }
.mk-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-prod b { line-height: 1.25; }
.mk-prod p { flex: 1; }
.mk-prod select, .mk-table input, .mk-reply textarea, .mk-main textarea, .mk-main select, .day-ed input, .day-ed select { padding: 9px 11px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--text); width: 100%; font-size: 14px; }
.mk-cost { font-family: var(--font-head); font-size: 22px; }
.quick a { display: inline-block; text-decoration: none; border: 1px solid var(--line2); background: var(--surface); border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 600; }
.quick a.on { background: var(--accent); border-color: var(--accent); color: #07070a; }
.mk-filter { margin-bottom: 16px; }

/* страница программы */
.mk-p-hero { position: relative; border-radius: 30px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; margin: 6px 0 16px; background: #07070a; }
.mk-p-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mk-p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(7,7,10,.92)); }
.mk-p-head { position: relative; z-index: 1; padding: 24px; color: #fff; }
.mk-p-head h1 { color: #fff; font-size: 42px; margin-top: 10px; }
.mk-p-head p { color: #d6d8df; }
.mk-p-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.mk-buy { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 6px; }
.mk-big-price { font-family: var(--font-head); font-size: 48px; font-weight: 700; line-height: 1; }
@media (max-width: 860px) { .mk-p-grid { grid-template-columns: 1fr; } .mk-buy { position: static; order: -1; } .mk-p-head h1 { font-size: 32px; } }
.mk-check { padding-left: 0; list-style: none; }
.mk-check li { padding: 4px 0 4px 28px; position: relative; }
.mk-check li::before { content: "✓"; position: absolute; left: 4px; font-weight: 700; color: var(--ok); }
.mk-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.mk-levels div { background: var(--surface2); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.mk-day-lock { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface2); margin: 6px 0; }
.mk-day-lock span:first-child { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 52px; }
.mk-day-lock b { flex: 1; }

/* корзина и заказы */
.mk-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mk-line > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mk-line-ic { font-size: 26px; }
.mk-line .stepper { display: flex; align-items: center; gap: 6px; }
.mk-line .stepper button { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); font-weight: 700; }
.mk-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; font-size: 18px; }
.mk-total b { font-family: var(--font-head); font-size: 30px; }
.mk-done { padding: 34px 20px; }
.mk-done-ic { font-size: 56px; }
.mk-st { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface2); white-space: nowrap; }
.mk-st.done, .mk-st.delivered, .mk-st.live, .mk-st.answered { background: #dcf5e6; color: #11663a; }
.mk-st.paid, .mk-st.open { background: #fff1b8; color: #6b5300; }
.mk-st.shipped { background: #e1e8ff; color: #2b3f9e; }
.mk-st.refunded { background: #ffe1e5; color: #9c0f22; }

/* мои программы и план */
.mk-myprog { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; }
.mk-myprog-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
@media (max-width: 560px) { .mk-myprog { grid-template-columns: 1fr; } }
.mk-level { border: 2px solid var(--accent); }
.mk-ex { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mk-ex:last-child { border-bottom: 0; }
.mk-ex small { grid-column: 1 / -1; color: var(--muted); }
.mk-sex { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.mk-sex label { position: relative; }
.mk-sex input { position: absolute; opacity: 0; }
.mk-sex span { display: block; text-align: center; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line2); font-weight: 700; cursor: pointer; }
.mk-sex input:checked + span { background: var(--accent); border-color: var(--accent); color: #07070a; }
.mk-sex input:focus-visible + span { outline: 2px solid var(--text); }
.mk-form3 { grid-template-columns: repeat(3, 1fr); }
.check-line { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-weight: 600; }

/* поддержка */
.mk-msg { background: var(--surface2); border-radius: 14px; padding: 8px 12px; margin: 8px 40px 8px 0; }
.mk-msg.staff { background: #fff6cc; margin: 8px 0 8px 40px; }
:root[data-theme="dark"] .mk-msg.staff { background: #3a3200; }
.mk-msg p { margin: 2px 0 0; white-space: pre-wrap; }
.mk-reply { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.linkish { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; font-size: inherit; }

/* кабинеты */
.mk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mk-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line2); }
.mk-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mk-table .mk-num { width: 90px; }
.mk-scroll { overflow-x: auto; }
.mk-sprog h3 { margin: 0; }
.mk-ava { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.mk-ava > img, .mk-ava > .mk-noimg { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; }
.mk-pipe { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-top: 12px; }
.mk-pipe > div { background: var(--surface2); border-radius: 18px; padding: 10px; min-height: 120px; }
.mk-pipe h3 { font-size: 15px; }
.mk-pipe-card { padding: 12px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.mk-bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.mk-bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.mk-bars i { display: block; width: 100%; max-width: 28px; background: var(--accent); border-radius: 6px 6px 0 0; }
.mk-bars small { font-size: 10px; }
.mk-agree li { margin: 8px 0; }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

/* конструктор программы */
.day-ed { border: 1.5px solid var(--line2); border-radius: 20px; padding: 14px; margin: 12px 0; background: var(--bg); }
.it { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 10px 0; background: var(--surface); }
.it-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.it-row > .form-1 { flex: 1 1 200px; }
.it-row > .form-1.sm { flex: 0 1 96px; }
.it-tools { display: flex; gap: 4px; justify-content: flex-end; margin-bottom: 4px; }
.it-tools button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line2); background: var(--surface); font-size: 13px; }
.form-1 > span { display: flex; align-items: center; gap: 6px; }
.form-1 textarea { width: 100%; }
.mic { border: 0; background: var(--surface2); border-radius: 8px; padding: 2px 7px; font-size: 14px; }
.mic.on { background: var(--red); animation: pulse 1s infinite; }
.lv-box { margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--surface2); }
.chk { display: inline-flex; align-items: center; gap: 5px; margin: 4px 10px 4px 0; font-size: 13px; font-weight: 600; }
.var { margin-top: 6px; }
.var-body { border-left: 3px solid var(--accent); padding-left: 10px; margin: 6px 0 4px; }
.thr { margin-top: 8px; }
.thr-q { flex: 1 1 200px; align-self: center; }
.say { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.pv { margin-top: 12px; padding: 12px; border-radius: 18px; background: var(--surface2); }
.pv .card { box-shadow: none; }
.mk-publish { border: 2px solid var(--accent); }

/* переключатель ролей (демо) */
.role-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.role-fab > button { border: 0; border-radius: 999px; padding: 11px 16px; background: #07070a; color: #fff; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.role-menu { order: -1; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); min-width: 220px; }
.role-menu small { padding: 4px 8px; }
.role-menu button { border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 10px; font-weight: 600; }
.role-menu button:hover { background: var(--surface2); }
@media (max-width: 820px) { .role-fab { bottom: calc(86px + env(safe-area-inset-bottom)); } }

/* подвал */
.mk-foot { margin-top: 40px; padding: 24px 0 10px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.mk-foot .mk-logo { margin: 0; }
.mk-foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.mk-foot-links a { font-weight: 600; }
@media (max-width: 640px) {
  .mk-pipe { grid-template-columns: 1fr; overflow: visible; }
  .mk-pipe > div:not(:has(.mk-pipe-card)) { display: none; }
  .mk-pipe > div { min-height: 0; }
}

/* метка «Имитация» и документы */
.sim { display: inline-block; vertical-align: middle; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .3px; 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; }
.mk-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.mk-docs .card { margin: 0; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.mk-docs .card.on { border-color: var(--accent); }
.mk-doc { max-width: 820px; }
.mk-doc p { line-height: 1.6; }
.check-line a { font-weight: 700; }

/* ---------- сообщество ---------- */
.feed-wrap { max-width: 640px; margin: 0 auto; }
.ava { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--surface2); font-weight: 700; font-size: 16px; }
.ava.big { width: 92px; height: 92px; font-size: 34px; }
.who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #07070a; font-size: 10px; }
.sparks { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 12px; scrollbar-width: none; }
.spk { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; text-decoration: none; width: 70px; }
.spk small { font-size: 11px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.spk .ring { padding: 3px; border-radius: 50%; background: conic-gradient(#ffde02, #ff4d2e, #ffde02); }
.spk .ring.seen { background: var(--line2); }
.spk .ring .ava { width: 58px; height: 58px; border: 3px solid var(--bg); font-size: 22px; }
.spk.add .ring { background: var(--line2); }
.composer { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.composer .btn { flex: none; width: auto; margin: 0; padding: 10px 14px; font-size: 14px; }
.pc { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; margin: 0 0 14px; box-shadow: var(--shadow); overflow: hidden; }
.pc.pend { border: 2px dashed var(--line2); }
.pc header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; flex-wrap: wrap; }
.pc header small { color: var(--muted); }
.pc .note { margin: 0 14px 10px; }
.pc .note.bad, p.note.bad { background: #ffe1e5; color: #9c0f22; }
.pm img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.pm.multi { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.pm.multi img { flex: none; width: 100%; scroll-snap-align: start; }
.pb { padding: 12px 14px 4px; }
.pb h3 { margin: 0 0 8px; }
.pt { white-space: pre-wrap; }
.tg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tg span { font-size: 13px; font-weight: 600; color: #2b3f9e; }
:root[data-theme="dark"] .tg span { color: #9db0ff; }
.pc footer { display: flex; align-items: center; gap: 4px; padding: 6px 8px 10px; }
.pc footer button, .pc footer a { border: 0; background: none; padding: 8px 10px; border-radius: 12px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--text); }
.pc footer button:hover, .pc footer a:hover { background: var(--surface2); }
.sp { flex: 1; }
.pc.ad { border: 1.5px solid #ffe78a; }
.adl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.mcs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; align-items: center; }
.mc { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface2); }
.mc.p { background: #dcf5e6; color: #11663a; } .mc.f { background: #fff1b8; color: #6b5300; } .mc.c { background: #e1e8ff; color: #2b3f9e; }
.ing { list-style: none; padding: 0; margin: 6px 0; }
.ing li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.steps li { margin: 6px 0; }
.meal-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.cm { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cm p { margin: 4px 0 2px 46px; }
.cm small { margin-left: 46px; }
.ints-card { border: 2px solid var(--accent); }
.prof { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.prof h1 { font-size: 28px; margin: 0; }
.pstats { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; font-size: 14px; }
@media (max-width: 520px) { .prof { grid-template-columns: 1fr; justify-items: start; } }
.subtabs a { flex: 1; text-align: center; white-space: nowrap; text-decoration: none; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--muted); }
.subtabs a.on { background: var(--text); color: var(--bg); }
.ph-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.ph { position: relative; width: 86px; height: 86px; border-radius: 14px; overflow: hidden; background: var(--surface2); display: grid; place-items: center; font-size: 28px; cursor: pointer; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; }
.ph.add { border: 2px dashed var(--line2); }
.bgc { width: 40px; height: 40px; border-radius: 50% !important; padding: 0 !important; }
.bgc.on { outline: 3px solid var(--text); }
.ing-row { display: grid; grid-template-columns: 1fr 76px auto auto; gap: 6px; align-items: center; padding: 8px; border-radius: 14px; margin: 6px 0; background: var(--surface2); }
.ing-row input { padding: 9px 11px; border-radius: 11px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--text); width: 100%; font-size: 14px; }
.ing-row.ok { background: #e7f8ee; } .ing-row.unk { background: #fff6cc; }
:root[data-theme="dark"] .ing-row.ok { background: #0f2a1b; } :root[data-theme="dark"] .ing-row.unk { background: #2e2800; }
.ing-row small { grid-column: 1 / -1; }
.ing-row .fix { color: #11663a; font-weight: 600; }
.unk-box { grid-column: 1 / -1; }
.unk-box .it-row input { flex: 1 1 60px; }
.tot { padding: 10px 12px; border-radius: 14px; background: var(--surface2); margin: 10px 0; }
/* просмотр Sparks */
#spark { position: fixed; inset: 0; z-index: 95; background: #000; display: grid; place-items: center; }
.sv-frame { position: relative; width: min(100vw, 480px); height: min(100vh, 860px); border-radius: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; color: #fff; }
@media (min-width: 520px) { .sv-frame { border-radius: 22px; } }
.bg-fire { background: linear-gradient(160deg, #ff8a00, #e5132f); } .bg-ocean { background: linear-gradient(160deg, #00b4db, #0052d4); } .bg-mint { background: linear-gradient(160deg, #3ad59f, #0f7a54); }
.bg-violet { background: linear-gradient(160deg, #8e2de2, #4a00e0); } .bg-dark { background: linear-gradient(160deg, #23232b, #07070a); }
.sv-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.sv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.sv-bars i.done { background: #fff; }
.sv-bars i.run::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: svbar 5s linear forwards; }
@keyframes svbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sv-top { position: absolute; top: 22px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 3; }
.sv-top small { color: rgba(255,255,255,.75); }
.sv-top button { margin-left: auto; border: 0; background: rgba(0,0,0,.3); color: #fff; border-radius: 50%; width: 34px; height: 34px; font-size: 15px; }
.sv-top button + button { margin-left: 0; }
.sv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-text { position: relative; z-index: 2; padding: 24px; font-family: var(--font-head); font-size: 30px; text-transform: uppercase; text-align: center; line-height: 1.15; }
.sv-text.over { position: absolute; bottom: 70px; left: 0; right: 0; font-size: 22px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.sv-cta { position: relative; z-index: 4; display: flex; flex-direction: column; gap: 8px; padding: 0 24px; }
.sv-l, .sv-r { position: absolute; top: 80px; bottom: 0; width: 35%; border: 0; background: none; z-index: 1; }
.sv-l { left: 0; } .sv-r { right: 0; }
/* залы */
.gym-bar { display: grid; gap: 8px; margin: 10px 0; }
.gym-bar input { padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--text); width: 100%; font-size: 15px; }
.gym-map { height: 380px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; z-index: 0; background: var(--surface2); }
.gym-row { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.gym-row.ad { border: 1.5px solid #ffe78a; }
/* эфиры */
.live-video { margin: 10px 0; border-radius: 18px; overflow: hidden; background: #07070a; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.live-video video { width: 100%; height: 100%; object-fit: cover; }
.live-ph { color: #c9cbd3; text-align: center; padding: 20px; }
.chat { max-height: 280px; overflow-y: auto; padding: 8px 4px; margin-bottom: 8px; }
.chat .msg { margin: 4px 0; font-size: 14px; }
.chat .msg.bad { color: var(--muted); }
#chatForm input, #liveForm input, #commentForm input, #deskFind input { padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--text); width: 100%; font-size: 15px; }
.mod-spark { display: flex; gap: 12px; }
.mod-spark img { width: 90px; height: 140px; object-fit: cover; border-radius: 12px; }
.mk-trial { position: absolute; right: 12px; top: 12px; background: #07070a; color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 4px 9px; border-radius: 8px; }
.role-menu button small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; padding: 0; }
.role-menu button.on { background: var(--accent); color: #07070a; }
.role-menu { max-height: 70vh; overflow-y: auto; }

/* Базовая программа на главной */
.mk-base { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border: 2px solid var(--accent); }
.mk-base > div { flex: 1 1 420px; }
.mk-base .mk-kicker { color: var(--muted); }
.mk-base .btn { flex: none; }
.mk-story { border: 2px dashed var(--accent); }
.mk-story textarea { min-height: 140px; }
