/* GENOM v0.6 — тема «мягкая бумага». Подключается последней и переопределяет базу:
   системный шрифт (читается на любом телефоне), крупные скругления, лёгкие тени вместо жёстких,
   без зерна. Палитра прежняя: крем, чернила, оранжевый. */
:root {
  --fd: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fb: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fm: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r: 16px;
  --sh: 0 1px 2px rgba(21, 19, 15, .06), 0 8px 24px rgba(21, 19, 15, .10);
  --sh-sm: 0 1px 2px rgba(21, 19, 15, .06), 0 4px 12px rgba(21, 19, 15, .08);
  --line: rgba(21, 19, 15, .14);
  --nav-h: 72px;
}
body { font-size: 16px; line-height: 1.45; }
.grain { display: none; }
.shell { background: linear-gradient(180deg, #F4F1EA 0%, var(--paper) 30%); }
@media (min-width: 431px) { .shell { border-left-color: var(--line); border-right-color: var(--line); } }

/* типографика: без моноширинного капса, крупнее и спокойнее */
.display { font-weight: 800; letter-spacing: -.025em; line-height: 1.06; }
.eyebrow { font-size: 12px; letter-spacing: .04em; font-weight: 600; text-transform: uppercase; color: var(--mute); }
.hint { font-size: 14px; line-height: 1.45; }
.mono { font-variant-numeric: tabular-nums; }
.top { border-bottom-color: var(--line); padding: 16px 0 12px; }
.top .mono { font-size: 12px; letter-spacing: .02em; font-weight: 600; }
.wordmark { font-weight: 800; letter-spacing: .02em; }
.wordmark sup { font-weight: 600; letter-spacing: .02em; font-size: 10px; }
.link { font-size: 13px; letter-spacing: .02em; text-transform: none; font-weight: 600; }
.auth h1 { font-size: 34px; }
.ob .q { font-size: 30px; }
.lead { font-size: 16px; }

/* кнопки: мягкие, без сдвига при нажатии */
.btn { min-height: 54px; border-radius: 14px; border-color: var(--line); box-shadow: var(--sh-sm); font-weight: 700; font-size: 16px; letter-spacing: 0; }
.btn:active { transform: scale(.98); box-shadow: 0 1px 2px rgba(21, 19, 15, .06); }
.btn--primary { border-color: var(--ink); }
.btn--acc { border-color: var(--acc); box-shadow: 0 1px 2px rgba(255, 79, 31, .15), 0 6px 18px rgba(255, 79, 31, .28); }
.btn--ghost { box-shadow: none; border-style: dashed; }
.btn--sm { min-height: 42px; font-size: 14px; border-radius: 12px; }
.btn--sm:active { transform: scale(.98); }
.btn--big { min-height: 64px; font-size: 18px; }
.input, .textarea { border-radius: 14px; border-color: var(--line); font-size: 17px; }
.input:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 79, 31, .18); }
.field label { font-size: 12px; letter-spacing: .03em; font-weight: 600; text-transform: none; }

/* плитки, чипы, карточки */
.tile { border-radius: 14px; border-color: var(--line); }
.tile.on { box-shadow: var(--sh-sm); }
.tile .k { letter-spacing: .04em; }
.chip { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 7px 12px; border-color: var(--line); }
.chip b { font-size: 13px; }
.chip--ghost { border-style: solid; background: var(--paper-2); }
.tag { border-radius: 100px; letter-spacing: .02em; text-transform: none; font-weight: 600; padding: 4px 10px; border-color: var(--line); color: var(--ink-2); }
.pill { letter-spacing: .02em; text-transform: none; font-weight: 600; font-size: 11px; border-color: var(--line); }
.ticket, .closed, .bigstat, .sparkwrap, .pay__card, .excard__fig, .excell, .badge, .ustats, .lockpanel, .notice, .post, .seg, .dev { border-radius: var(--r); }
.ticket, .closed, .bigstat, .sparkwrap, .ustats { border-color: var(--line); }
.ticket__head { border-bottom-color: var(--line); }
.ticket__tear { border-top-style: dashed; border-top-color: var(--line); }
.ticket__tear::before, .ticket__tear::after { border-color: var(--line); }
.ticket__list .n, .check .n { letter-spacing: -.02em; }
.ticket__list .n small, .check .n small { letter-spacing: 0; font-weight: 600; }
.ticket__code { letter-spacing: .04em; font-weight: 600; }
.barcode { opacity: .8; }
.ticket__title { font-weight: 700; font-size: 14px; }
.ticket__list li .q, .check .q { border-color: var(--line); font-weight: 700; }
.excell { border-color: var(--line); box-shadow: var(--sh-sm); padding: 14px 12px 12px; }
.excell .t { font-size: 14px; }
.excell .k { letter-spacing: .02em; text-transform: none; font-weight: 600; }
.excell.today::after, .excell.donebonus::after, .excell--pending::after, .excell--rejected::after { border-radius: 100px; letter-spacing: .02em; font-weight: 700; font-size: 10px; padding: 3px 8px; border: 0; }
.excard__fig { border-color: var(--line); }
.excard h3 { letter-spacing: .03em; font-weight: 700; font-size: 12px; }
.steps li::before { font-weight: 800; }
.easier { border-radius: 0 12px 12px 0; }
.badge { border-color: var(--line); }
.badge.on { box-shadow: var(--sh-sm); }
.badge .h { letter-spacing: 0; }
.seg { border-color: var(--line); background: var(--paper-2); padding: 4px; gap: 4px; }
.seg button { border-radius: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 13px; padding: 10px 4px; }
.seg button + button { border-left: 0; }
.seg button.on { box-shadow: var(--sh-sm); }
.stat .code, .gain .l .code, .tiles4 small, .ustats small, .hrow .d small, .minepost .t small, .frow .m, .post__who .m, .clip__meta, .version { letter-spacing: .03em; font-weight: 600; }
.stat .bar, .gain .bar, .used i { border-radius: 100px; border-color: var(--line); overflow: hidden; }
.stat .bar i, .gain .bar i { border-radius: 100px; }
.ob__progress i { border-radius: 100px; border: 0; background: var(--paper-3); }
.ob__progress i.on { background: var(--ink); }
.ob__progress i.cur { background: var(--acc); }
.sub-row, .switch, .index-row { border-color: var(--line); }
.countdown { border-top-color: var(--line); font-weight: 600; }
.stamp { border-radius: 10px; }
.avatar, .ava { border-color: rgba(21, 19, 15, .2); }
.lb .row.me { border-radius: 10px; }
.frow, .hrow, .minepost, .exagg .row, .check { border-bottom-color: var(--line); }
.check .box { border-radius: 8px; border-color: var(--line); }
.tgl { border-color: var(--line); }

/* нижняя навигация: всегда на экране, крупные зоны нажатия */
.nav { height: calc(var(--nav-h) + var(--safe-b)); border-top-color: var(--line); background: rgba(239, 235, 226, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 431px) { .nav { border-left-color: var(--line); border-right-color: var(--line); } }
.nav button { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 600; gap: 3px; padding-top: 2px; color: var(--mute); }
.nav button svg { width: 24px; height: 24px; padding: 4px; box-sizing: content-box; border-radius: 12px; transition: background .15s, color .15s; }
.nav button.on { color: var(--ink); }
.nav button.on svg { background: var(--acc); color: var(--ink); }
.nav button.on::after { display: none; }
.nav .dot { top: 8px; left: calc(50% + 10px); }
.toast { border-radius: 100px; letter-spacing: 0; font-weight: 600; font-size: 13px; }

/* шторки */
.sheet { border-radius: 22px 22px 0 0; border-top: 0; }
.sheet h3 { font-weight: 800; }
.sheet__grip { border-radius: 22px 22px 0 0; }

/* лента */
.chip--dark { border-color: rgba(239, 235, 226, .5); }
.exchip { border-radius: 100px; }
.clip__who button { font-weight: 800; }
.rail__btn { letter-spacing: 0; font-weight: 700; }
.clip__meta { text-transform: none; }
.dclip__name small { letter-spacing: .03em; text-transform: none; font-weight: 600; }
.dclip__rec { letter-spacing: .1em; }
.vpick { border-radius: var(--r); border-color: rgba(239, 235, 226, .35); }
.vpick--short { height: 34dvh; min-height: 200px; }
.vrow .btn { box-shadow: none; }

/* авторские упражнения */
.seg--2 { grid-template-columns: 1fr 1fr; margin: 0 0 16px; }
.dot-in { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); margin-left: 4px; vertical-align: middle; }
.excell--author .thumb { width: 100%; height: 92px; object-fit: cover; border-radius: 10px; background: var(--ink); }
.excell--author .fig { height: 92px; }
.excell--pending::after { content: 'НА ПРОВЕРКЕ'; position: absolute; top: 8px; left: 8px; background: #FFE8A3; color: var(--ink); }
.excell--rejected { opacity: .6; }
.excell--rejected::after { content: 'ОТКЛОНЕНО'; position: absolute; top: 8px; left: 8px; background: var(--ink); color: var(--paper); }
.fig--video .frame { fill: var(--paper-3); stroke: var(--ink); stroke-width: 2.5; }
.fig--video .play { fill: var(--ink); }
.fig--paper.fig--video .frame { fill: rgba(239, 235, 226, .12); stroke: var(--paper); }
.fig--paper.fig--video .play { fill: var(--paper); }
.excard__fig--video { padding: 0; overflow: hidden; cursor: pointer; background: var(--ink); }
.excard__fig--video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.excard__fig--video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-size: 20px; padding-left: 4px; box-shadow: var(--sh); }
.excard__video { display: block; width: 100%; max-height: 60dvh; background: #000; border-radius: var(--r); margin: 10px 0 16px; }
.excard .author { font-size: 13px; color: var(--ink-2); margin: -2px 0 12px; }
.submit .field { margin-bottom: 14px; }
.submit .eyebrow { display: block; margin: 4px 0 8px; }
.submit .exsel { margin-bottom: 14px; }
.submit .lead { color: var(--ink-2); margin-bottom: 16px; }
.submit .stack { margin-top: 10px; padding-top: 10px; }
.basebox { height: 54px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper-2); display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.basebox b { font-size: 26px; font-weight: 800; }
.basebox small { font-size: 12px; color: var(--mute); font-weight: 600; }

/* панель модерации */
.abar { border-bottom-color: var(--line); }
.abar .who { letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 13px; }
.tiles4 { border-radius: var(--r); border-color: var(--line); }
.tiles4 > div + div { border-left-color: var(--line); }
.arow { border-bottom-color: var(--line); }
.arow .th { border-radius: 10px; }
.arow .m, .audit .l .d, .audit .l .a, .acc-row .m { letter-spacing: 0; text-transform: none; font-weight: 600; }
.bars .b { letter-spacing: 0; }
.bars .b i { border-radius: 100px; }
.alogin .warnbox { border-radius: 14px; }
.tech .danger { border-radius: var(--r); }

@media (max-height: 700px) { .auth h1 { font-size: 30px; } }

/* ==== v0.7: лента во весь экран, компактная прозрачная навигация, сердечко, достижения ==== */
.nav button { font-size: 11px; }
.nav button span { white-space: nowrap; }
/* в ленте навигация лежит поверх видео: прозрачная, маленькая, подписи остаются */
.app[data-screen="feed"] { --nav-h: 50px; }
.app[data-screen="feed"] .feedwrap { height: 100dvh; }
.app[data-screen="feed"] .nav { background: linear-gradient(to top, rgba(21, 19, 15, .55), rgba(21, 19, 15, 0)); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.app[data-screen="feed"] .nav button { color: rgba(239, 235, 226, .72); font-size: 10px; gap: 1px; padding-top: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.app[data-screen="feed"] .nav button svg { width: 20px; height: 20px; padding: 3px; border-radius: 9px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.app[data-screen="feed"] .nav button.on { color: var(--paper); }
.app[data-screen="feed"] .nav button.on svg { background: var(--acc); color: var(--ink); filter: none; }
.app[data-screen="feed"] .nav .dot { top: 2px; }
.app[data-clean="1"] .nav { display: none; }
.clip__rail, .clip__info { bottom: calc(var(--nav-h) + var(--safe-b) + 10px); }
.clip__info { right: 70px; }
/* кнопки справа: меньше, сердечко вместо кулака */
.clip__rail { right: 10px; gap: 10px; }
.rail__ava .ava { width: 40px; height: 40px; font-size: 15px; }
.rail__ava .plus { width: 16px; height: 16px; font-size: 12px; line-height: 13px; bottom: -7px; }
.rail__btn { font-size: 11px; gap: 2px; }
.rail__btn .i { width: 36px; height: 36px; border-width: 1px; border-color: rgba(239, 235, 226, .7); background: rgba(21, 19, 15, .35); }
.rail__btn svg { width: 18px; height: 18px; }
.rail__btn--like.on .i { background: var(--acc); border-color: var(--acc); color: var(--paper); animation: pop .3s cubic-bezier(.2, .9, .3, 1.4); }
.rail__btn--like.on svg path { fill: currentColor; }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.rail__btn--full .i { background: transparent; }
.clip__mute { top: 56px; width: 32px; height: 32px; border-width: 1px; }
.clip__mute svg { width: 15px; height: 15px; }
.chip--dark { font-size: 12px; padding: 6px 11px; }
.reel__top { padding: 10px var(--gutter); }
/* чистый режим: вообще без значков */
.feedwrap--clean .reel__top, .feedwrap--clean .clip__rail, .feedwrap--clean .clip__info, .feedwrap--clean .clip__mute, .feedwrap--clean .clip__shade { display: none; }
.feedwrap--clean .clip.paused .clip__media::after { display: none; }

/* профиль: популярность */
.bigstat--3 { grid-template-columns: 1fr 1fr 1.15fr; }
.bigstat--3 > div, .bigstat--3 > button { padding: 14px 10px; text-align: left; }
.bigstat--3 > button { border-left: 1.5px solid var(--line); font: inherit; color: inherit; background: none; cursor: pointer; }
.bigstat--3 > button .eyebrow { color: var(--acc); }
.bigstat--3 b { font-size: 32px; }
.bigstat--3 .eyebrow { font-size: 11px; }
.popgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.popgrid > div { border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper-2); padding: 12px 8px; text-align: center; display: grid; gap: 2px; justify-items: center; }
.popgrid .i { width: 22px; height: 22px; color: var(--acc); }
.popgrid .i svg { width: 22px; height: 22px; }
.popgrid b { font-size: 24px; font-weight: 800; }
.popgrid small { font-size: 11px; color: var(--mute); font-weight: 600; }
.poptop .eyebrow { display: block; margin-bottom: 8px; }
.poptop .row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; cursor: pointer; margin-bottom: 18px; }
.poptop .row img, .poptop .row .ph { width: 52px; height: 68px; border-radius: 10px; object-fit: cover; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.poptop .row .ph svg { width: 22px; height: 22px; }
.poptop .row b { display: block; font-weight: 700; }
.poptop .row small { color: var(--mute); font-size: 12px; font-weight: 600; }

/* достижения */
.achv { margin-bottom: 22px; }
.achv__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.achv__bar { flex: 1; max-width: 140px; height: 6px; border-radius: 100px; background: var(--paper-3); overflow: hidden; }
.achv__bar i { display: block; height: 100%; background: var(--acc); border-radius: 100px; }
.achv .badges { margin-bottom: 10px; }
.achv__cat { display: block; margin: 12px 0 8px; }
.achv__more { width: 100%; min-height: 46px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--paper-2); font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.achv__more i { display: inline-flex; width: 16px; height: 16px; transition: transform .2s; }
.achv__more i svg { width: 16px; height: 16px; }
.achv__more.open i { transform: rotate(180deg); }
.badges { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge { position: relative; overflow: hidden; padding: 12px 6px 10px; gap: 6px; font: inherit; color: inherit; cursor: pointer; text-align: center; border-color: var(--line); min-height: 96px; align-content: start; }
.badge .ic { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; background: var(--acc); color: var(--ink); }
.badge .ic svg { width: 18px; height: 18px; }
.badge .ic--code { font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.badge .t { font-size: 11px; font-weight: 700; line-height: 1.2; }
.badge .h { font-size: 10px; font-weight: 600; color: var(--mute); letter-spacing: 0; }
.badge.off { opacity: 1; background: transparent; border-style: dashed; color: var(--ink-2); }
.badge.off .ic { background: var(--paper-3); color: var(--mute); }
.badge.off .t { color: var(--ink-2); }
.badge .p { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--acc); }
.bsheet { text-align: center; display: grid; justify-items: center; }
.bsheet .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--paper-3); color: var(--mute); display: grid; place-items: center; margin-bottom: 12px; }
.bsheet .ic svg { width: 30px; height: 30px; }
.bsheet .ic--code { font-size: 16px; font-weight: 800; }
.bsheet.on .ic { background: var(--acc); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 79, 31, .3); }
.bsheet p { margin-bottom: 14px; }
.bsheet .bstate { font-weight: 700; color: var(--acc); margin-bottom: 18px; }
.bsheet .bstate.off { color: var(--mute); }
.bsheet .bprog { width: 100%; margin-bottom: 18px; display: grid; gap: 6px; justify-items: center; }
.bsheet .bprog .bar { width: 100%; height: 8px; border-radius: 100px; background: var(--paper-3); overflow: hidden; }
.bsheet .bprog .bar i { display: block; height: 100%; background: var(--acc); border-radius: 100px; }
.bsheet .bprog small { font-weight: 600; color: var(--mute); }
.bsheet .stack { width: 100%; }

/* ==== v0.7.1: бонус только после ролика с сердцами ==== */
.pendbox { border: 1.5px dashed var(--acc); border-radius: var(--r); background: rgba(255, 79, 31, .06); padding: 12px 14px; margin: 12px 0 14px; display: grid; gap: 6px; }
.pendbox .eyebrow { color: var(--acc); }
.pendbox .row { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14px; }
.pendbox .row small { color: var(--mute); font-weight: 600; font-size: 12px; white-space: nowrap; }
.pendbox .hint { margin: 2px 0 0; }
.closed .pendbox { margin-top: 12px; }
.hrow .st .pend { display: block; font-size: 10px; color: var(--acc); font-weight: 600; }
.excell.pendbonus::after { content: "БОНУС · ЖДЁТ ♥"; position: absolute; top: 8px; left: 8px; background: #FFE8A3; color: var(--ink); border-radius: 100px; font-weight: 700; font-size: 10px; padding: 3px 8px; }
.clip__bonus { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--paper); background: rgba(255, 79, 31, .85); border-radius: 100px; padding: 4px 10px; justify-self: start; }
.clip__bonus svg { width: 13px; height: 13px; fill: currentColor; }
