/* ===== VKFlow — дизайн-система ===== */
:root {
  --bg: #f3f2ee;
  --bg-2: #ebe9e3;
  --surface: #ffffff;
  --surface-2: #f7f6f2;
  --surface-3: #efede7;
  --line: #e7e5de;
  --line-2: #d9d6cd;
  --text: #16161a;
  --text-2: #4a4944;
  --muted: #8a877e;
  --ink: #16161a;          /* основные кнопки */
  --ink-text: #ffffff;
  --lime: #d4f871;
  --lime-ink: #1d2a00;
  --violet: #6d5dfc;
  --violet-soft: rgba(109, 93, 252, .1);
  --pink: #ff5c8a;
  --ok: #1a9a55;
  --ok-soft: rgba(26, 154, 85, .1);
  --warn: #c57a00;
  --warn-soft: rgba(230, 150, 0, .12);
  --bad: #e5484d;
  --bad-soft: rgba(229, 72, 77, .1);
  --glass: rgba(255, 255, 255, .72);
  --shadow-sm: 0 1px 2px rgba(22, 22, 26, .04), 0 2px 8px rgba(22, 22, 26, .04);
  --shadow: 0 2px 6px rgba(22, 22, 26, .04), 0 12px 32px rgba(22, 22, 26, .07);
  --shadow-lg: 0 24px 80px rgba(22, 22, 26, .18);
  --r: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #09090d;
  --bg-2: #101016;
  --surface: #17171f;
  --surface-2: #20202a;
  --surface-3: #2b2b37;
  --line: #2e2e3b;
  --line-2: #444452;
  --text: #f5f4ef;
  --text-2: #d3d1c9;
  --muted: #a09e96;
  --ink: #f5f4ef;
  --ink-text: #111116;
  --violet: #998dff;
  --violet-soft: rgba(153, 141, 255, .16);
  --ok: #45d686;
  --ok-soft: rgba(69, 214, 134, .14);
  --warn: #f7b84a;
  --warn-soft: rgba(247, 184, 74, .14);
  --bad: #ff7175;
  --bad-soft: rgba(255, 113, 117, .14);
  --glass: rgba(23, 23, 31, .78);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 2px 8px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 500 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.02em; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 24px; height: 24px; }
svg.i.fill { fill: currentColor; }
::selection { background: var(--lime); color: var(--lime-ink); }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }

.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-blobs i:nth-child(1) { width: 520px; height: 520px; left: -160px; top: -200px; background: #d9d3ff; }
.bg-blobs i:nth-child(2) { width: 460px; height: 460px; right: -120px; top: 30%; background: #eaffb8; }
.bg-blobs i:nth-child(3) { width: 380px; height: 380px; left: 30%; bottom: -220px; background: #ffd6e2; }
:root[data-theme="dark"] .bg-blobs i { opacity: .12; }

/* ===== Верхняя панель и «сторис» пабликов ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 28px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.03em; flex: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--ink); position: relative; display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; stroke: var(--ink-text); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark::after { content: ""; position: absolute; right: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.stories { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; padding: 2px; scrollbar-width: none; }
.story { display: flex; align-items: center; gap: 9px; padding: 4px 14px 4px 4px; border-radius: 99px; cursor: pointer; border: 1px solid transparent; flex: none; transition: background .15s, border-color .15s; }
.story:hover { background: var(--surface); }
.story.active { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.story .ring { position: relative; width: 40px; height: 40px; border-radius: 50%; padding: 2px; background: var(--line-2); flex: none; }
.story .ring.on { background: conic-gradient(from 200deg, var(--violet), var(--pink), #ffb547, var(--lime), var(--violet)); }
.story .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); background: var(--surface-3); }
.story .ring .mk { position: absolute; right: -4px; bottom: -4px; font-size: 13px; line-height: 1; }
.story .nm { font-weight: 700; font-size: 13px; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .sub { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.story.add .ring { background: none; border: 1.5px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.me { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }

.page { max-width: 1440px; margin: 0 auto; padding: 24px 28px 140px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-2);
  background: var(--surface); font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .08s, box-shadow .15s, opacity .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.ink { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.btn.ink:hover { box-shadow: 0 6px 20px rgba(22, 22, 26, .25); background: var(--ink); }
.btn.lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn.lime:hover { filter: brightness(1.03); box-shadow: 0 6px 20px rgba(160, 210, 40, .35); background: var(--lime); }
.btn.violet { background: var(--violet); color: #fff; border-color: var(--violet); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: transparent; }
.btn.sm { height: 32px; padding: 0 13px; font-size: 12.5px; }
.btn.xs { height: 26px; padding: 0 10px; font-size: 12px; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn.icon.xs { width: 26px; }
.btn .spin { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Переключатель ===== */
.switch { position: relative; width: 42px; height: 24px; flex: none; display: inline-block; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .22s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--lime); }
:root[data-theme="dark"] .switch input:checked + span { background: var(--lime); }
:root[data-theme="dark"] .switch input:checked + span::after { background: #121214; }

/* ===== Бенто-шапка паблика ===== */
.bento { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; grid-auto-rows: minmax(118px, auto); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; position: relative; overflow: hidden; }
.tile .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 6px; }
.tile .big { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tile .big small { font-family: var(--font); font-size: 15px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.tile .foot { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.tile.hero { grid-row: span 2; padding: 0; display: flex; flex-direction: column; background: #16161a; color: #fff; border: 0; }
.hero-cover { position: absolute; inset: 0; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(1.6); transform: scale(1.5); opacity: .55; }
.hero-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .7)); }
.hero-in { position: relative; padding: 22px; display: flex; flex-direction: column; height: 100%; gap: 14px; color: #fff; }
.hero-top { display: flex; align-items: center; gap: 14px; }
.hero-top img { width: 64px; height: 64px; border-radius: 20px; object-fit: cover; border: 2px solid rgba(255, 255, 255, .3); }
.hero h1 { margin: 0; font-size: 26px; line-height: 1.15; color: #fff; }
.hero h1 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hero .meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.hero-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hero .btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(6px); }
.hero .btn:hover { background: rgba(255, 255, 255, .24); }
.hero .btn.lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.power { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 16px; border-radius: 99px; font-weight: 800; font-size: 13px; cursor: pointer; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(6px); }
.power.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.power .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: .6; }
.power.on .dot { background: var(--lime-ink); opacity: 1; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }
.power .switch input:checked + span { background: var(--lime-ink); }
.power .switch input:checked + span::after { background: var(--lime); }
.ring-prog { position: absolute; right: 18px; top: 18px; width: 58px; height: 58px; }
.ring-prog circle { fill: none; stroke-width: 7; }
.ring-prog .bgc { stroke: var(--surface-3); }
.ring-prog .fg { stroke: var(--violet); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .6s; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
:root[data-theme="dark"] .bar i { background: var(--lime); }
.tile.accent { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.tile.accent .lbl, .tile.accent .foot, .tile.accent .big small { color: rgba(29, 42, 0, .65); }
.tile.violet { background: var(--violet); border-color: var(--violet); color: #fff; }
.tile.violet .lbl, .tile.violet .foot, .tile.violet .big small { color: rgba(255, 255, 255, .72); }
.tile.clickable { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tile.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ===== Навигация разделов ===== */
.navwrap { position: sticky; top: 72px; z-index: 30; display: flex; justify-content: center; margin: 0 0 20px; pointer-events: none; }
.nav { pointer-events: auto; display: flex; gap: 2px; padding: 5px; border-radius: 99px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.nav button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border: 0; border-radius: 99px; background: transparent; font-weight: 700; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.nav button:hover { color: var(--text); background: var(--surface-3); }
.nav button.on { background: var(--ink); color: var(--ink-text); }
.nav button .n { font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); line-height: 18px; }
.nav button.on .n { background: var(--lime); color: var(--lime-ink); }

/* ===== Карточки, поля ===== */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-h h3 { margin: 0; font-size: 16px; font-weight: 600; flex: 1; display: flex; align-items: center; gap: 10px; }
.card-h h3 .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); flex: none; }
.card-d { color: var(--muted); font-size: 13px; margin: -2px 0 12px; font-weight: 500; }
.field { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.field:first-child, .card-h + .field, .card-d + .field { border-top: 0; }
.field .l { flex: 1; min-width: 0; }
.field .l b { font-weight: 700; display: block; }
.field .l small { color: var(--muted); font-size: 12.5px; display: block; line-height: 1.45; margin-top: 2px; font-weight: 500; }
.field.col { flex-direction: column; align-items: stretch; gap: 8px; }
.field .c { flex: none; display: flex; align-items: center; gap: 8px; }
.field.col .c { width: 100%; }
.input, .select, .textarea {
  height: 40px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface-2); outline: none; font-weight: 600; transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 4px var(--violet-soft); }
.select { appearance: none; padding-right: 34px; cursor: pointer; min-width: 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a877e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; width: 100%; line-height: 1.55; font-weight: 500; }
.input.num { width: 96px; text-align: right; }
.input.time { width: 108px; }
.input.wide { width: 100%; }
.range { display: flex; align-items: center; gap: 10px; }
.range input[type=range] { width: 170px; accent-color: var(--violet); }
.range output { min-width: 50px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 99px; background: var(--surface-3); }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 99px; font-weight: 700; font-size: 13px; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg button .n { font-size: 11px; color: var(--muted); font-weight: 800; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 5px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 700; user-select: none; transition: all .15s; }
.chip.on { border-color: var(--ink); background: var(--ink); color: var(--ink-text); }
.chip input { display: none; }
.chip.plain { padding: 0 14px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.lime { background: var(--lime); color: var(--lime-ink); }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 16px; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.55; font-weight: 500; }
code { background: var(--surface-3); padding: 1px 7px; border-radius: 7px; font-size: 12px; font-weight: 700; }

/* ===== Лента ===== */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .select { height: 38px; min-width: 0; border-radius: 99px; }
.search { position: relative; }
.search .input { padding-left: 38px; border-radius: 99px; width: 220px; height: 38px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.feed { columns: 290px; column-gap: 16px; }
.post { break-inside: avoid; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; transition: box-shadow .2s, transform .2s, border-color .2s; }
.post:hover { box-shadow: var(--shadow); }
.post.sel { box-shadow: 0 0 0 3px var(--lime); border-color: transparent; }
.post.picked { box-shadow: 0 0 0 3px var(--violet); border-color: transparent; }
.media { position: relative; background: var(--surface-3); margin: 6px 6px 0; border-radius: 19px; overflow: hidden; }
.media img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.media .nav-ph { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #111; border: 0; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.post:hover .media .nav-ph { opacity: 1; }
.media .nav-ph.l { left: 10px; } .media .nav-ph.r { right: 10px; }
.media .dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 4px; }
.media .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.media .dots i.on { background: #fff; width: 16px; border-radius: 4px; }
.media .play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.media .play span { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; color: #111; }
.ov { position: absolute; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 99px; background: rgba(255, 255, 255, .9); color: #16161a; font-size: 12px; font-weight: 800; backdrop-filter: blur(8px); }
.ov.score { left: 10px; top: 10px; }
.ov.score.hot { background: var(--lime); color: var(--lime-ink); }
.ov.type { left: 10px; bottom: 10px; }
.ov.cnt { right: 10px; bottom: 10px; }
.ov.ai { left: 10px; top: 44px; background: var(--violet); color: #fff; }
.star { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .9); color: #16161a; z-index: 2; transition: transform .12s; }
.star:hover { transform: scale(1.1); }
.star.on { background: var(--lime); color: var(--lime-ink); }
.star.on svg { fill: currentColor; }
.quick { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; z-index: 2; }
.post:hover .quick { opacity: 1; transform: none; }
.quick .btn { background: rgba(255, 255, 255, .92); border: 0; color: #16161a; backdrop-filter: blur(8px); }
.quick .btn.ink { background: #16161a; color: #fff; }
.quick .btn.danger { color: var(--bad); }
.pick { position: absolute; left: 12px; top: 12px; z-index: 3; width: 26px; height: 26px; border-radius: 9px; border: 2px solid #fff; background: rgba(0, 0, 0, .3); display: grid; place-items: center; color: #fff; }
.post.picked .pick { background: var(--violet); border-color: var(--violet); }
.post-b { padding: 14px 16px 4px; }
.src { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.src img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.src b { color: var(--text); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.src a:hover b { color: var(--violet); }
.ptext { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.6; font-weight: 500; }
.ptext.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.more { color: var(--violet); cursor: pointer; font-size: 13px; font-weight: 800; margin-top: 2px; display: inline-block; }
.versions { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--surface-3); margin-top: 10px; }
.versions button { border: 0; background: none; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 800; color: var(--muted); cursor: pointer; }
.versions button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.versions button.on.ai { background: var(--violet); color: #fff; }
.extra { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.extra .x { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--text-2); overflow: hidden; }
.extra .x span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metrics { display: flex; gap: 14px; padding: 10px 16px 14px; color: var(--muted); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.metrics span { display: inline-flex; align-items: center; gap: 5px; }
.post-f { display: flex; align-items: center; gap: 6px; padding: 10px 12px 12px 16px; border-top: 1px solid var(--line); }
.post-f .when { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex: 1; }
.post .err { margin: 0 14px 12px; padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 12.5px; font-weight: 600; }
.kindtag { position: absolute; right: 52px; top: 13px; z-index: 2; }

/* ===== Плавающая панель действий ===== */
#dock { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; }
.dock { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 20px; border-radius: 99px; background: var(--ink); color: var(--ink-text); box-shadow: var(--shadow-lg); animation: rise .25s cubic-bezier(.2, 1.2, .4, 1); white-space: nowrap; }
.dock .btn { background: rgba(255, 255, 255, .1); border-color: transparent; color: var(--ink-text); }
:root[data-theme="dark"] .dock .btn { background: rgba(0, 0, 0, .08); }
.dock .btn:hover { background: rgba(255, 255, 255, .2); }
.dock .btn.lime { background: var(--lime); color: var(--lime-ink); }
.dock .btn.danger { color: #ff8a8d; }
.dock b { font-family: var(--display); font-weight: 600; }
.dock .stepper { display: inline-flex; align-items: center; gap: 2px; background: rgba(255, 255, 255, .1); border-radius: 99px; padding: 3px; }
:root[data-theme="dark"] .dock .stepper { background: rgba(0, 0, 0, .08); }
.dock .stepper button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-weight: 800; }
.dock .stepper span { min-width: 22px; text-align: center; font-weight: 800; }
.dock .sep { width: 1px; height: 22px; background: currentColor; opacity: .15; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ===== Пустые состояния ===== */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ic { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 18px; }
.empty p { margin: 0 auto 18px; max-width: 440px; font-weight: 500; }

.welcome { max-width: 860px; margin: 5vh auto 0; }
.welcome h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 18px; font-weight: 700; }
.welcome h1 mark { background: var(--lime); color: var(--lime-ink); padding: 0 .18em; border-radius: .2em; }
.welcome > p { color: var(--text-2); font-size: 17px; margin: 0 0 30px; max-width: 600px; font-weight: 500; }
.bigadd { display: flex; gap: 8px; padding: 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bigadd .input { border: 0; background: transparent; flex: 1; height: 48px; font-size: 15px; box-shadow: none !important; }
.bigadd .btn { height: 48px; padding: 0 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 28px; }
.step { padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.step .n { width: 34px; height: 34px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; font-family: var(--display); font-weight: 600; margin-bottom: 12px; }
.step.done .n { background: var(--lime); color: var(--lime-ink); }
.step h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); background: var(--warn-soft); margin-bottom: 18px; font-weight: 600; }
.notice svg { color: var(--warn); margin-top: 1px; }
.notice.info { background: var(--violet-soft); }
.notice.info svg { color: var(--violet); }

/* ===== Источники ===== */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .15s, opacity .15s; }
.scard:hover { box-shadow: var(--shadow); }
.scard.off { opacity: .55; }
.scard .top { display: flex; align-items: center; gap: 12px; }
.scard .top img { width: 46px; height: 46px; border-radius: 15px; object-fit: cover; background: var(--surface-3); }
.scard .nm { min-width: 0; flex: 1; }
.scard .nm b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard .nm small { color: var(--muted); font-size: 12px; font-weight: 600; }
.scard .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.scard .nums div { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; }
.scard .nums b { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; }
.scard .nums small { color: var(--muted); font-size: 11px; font-weight: 700; }
.scard .err { color: var(--bad); font-size: 12px; font-weight: 600; }
.scard .acts { display: flex; gap: 4px; align-items: center; }
.results { display: grid; gap: 6px; max-height: 360px; overflow-y: auto; margin-top: 10px; }
.res { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); }
.res img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }

/* ===== Расписание ===== */
.week { display: grid; grid-template-columns: 52px repeat(7, 1fr); gap: 3px; user-select: none; }
.week .h { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding-bottom: 6px; }
.week .t { font-size: 11px; color: var(--muted); text-align: right; padding-right: 8px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.week .c { height: 16px; border-radius: 5px; background: var(--surface-3); cursor: pointer; transition: background .08s, transform .08s; }
.week .c:hover { background: var(--line-2); }
.week .c.on { background: var(--ink); }
:root[data-theme="dark"] .week .c.on { background: var(--lime); }
.timeline { display: grid; gap: 8px; }
.tl { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: var(--surface-2); }
.tl img, .tl .ph { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--surface-3); flex: none; display: grid; place-items: center; }
.tl .when { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 104px; }
.tl .txt { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.tl.foreign { background: var(--warn-soft); }

/* ===== Водяной знак ===== */
.wm-pick { display: grid; grid-template-columns: 30px repeat(3, 38px) 30px; grid-template-rows: 30px repeat(3, 38px) 30px; gap: 4px; }
.wm-pick button { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 9px; cursor: pointer; display: grid; place-items: center; color: var(--muted); padding: 0; }
.wm-pick button i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.wm-pick button.on { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.wm-pick button.on i { background: var(--lime); }
.wm-pick .img { grid-column: 2 / 5; grid-row: 2 / 5; pointer-events: none; }
.preview-box { border-radius: var(--r-md); overflow: hidden; background: var(--surface-3); min-height: 260px; display: grid; place-items: center; }
.preview-box img { width: 100%; height: auto; max-height: 600px; object-fit: contain; }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r-md); padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--ink); background: var(--surface-2); }
.drop img, .drop .ph { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: repeating-conic-gradient(var(--surface-3) 0 25%, var(--surface-2) 0 50%) 0 0/12px 12px; display: grid; place-items: center; flex: none; }

/* ===== Статистика ===== */
.chart { display: flex; align-items: flex-end; gap: 5px; height: 170px; }
.chart .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.chart .b i { width: 100%; max-width: 26px; border-radius: 8px; background: var(--ink); min-height: 3px; transition: height .4s; }
:root[data-theme="dark"] .chart .b i { background: var(--lime); }
.chart .b i.z { background: var(--surface-3); }
.chart .b:hover i { background: var(--violet); }
.chart .b span { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; }
.hours div { aspect-ratio: 1; border-radius: 7px; background: var(--violet); }
.hours-l { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; margin-top: 6px; font-size: 10px; color: var(--muted); font-weight: 700; text-align: center; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 800; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table .n { text-align: right; font-variant-numeric: tabular-nums; }
.table img.th { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.table a:hover { color: var(--violet); }

.log { display: grid; gap: 2px; font-size: 13px; }
.log .li { display: flex; gap: 14px; padding: 9px 14px; border-radius: 12px; font-weight: 600; }
.log .li:nth-child(odd) { background: var(--surface-2); }
.log .li time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; width: 116px; }
.log .li.error { color: var(--bad); }
.notes { width: 100%; min-height: 60vh; border: 0; background: transparent; outline: none; resize: vertical; font: 500 15px/1.7 var(--font); color: var(--text); }

/* ===== Модалки, меню, тосты ===== */
.backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(15, 15, 18, .45); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 24px; animation: fade .15s; }
.modal { width: min(580px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2, 1.1, .4, 1); }
.modal.wide { width: min(820px, 100%); }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 22px 24px 12px; }
.modal-h h2 { margin: 0; font-size: 19px; flex: 1; font-weight: 600; }
.modal-b { padding: 0 24px 8px; overflow-y: auto; }
.modal-f { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 16px 24px 22px; border-top: 1px solid var(--line); margin-top: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.95) translateY(10px); } }
.menu { position: fixed; z-index: 120; min-width: 240px; padding: 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: fade .12s; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; text-align: left; font-weight: 700; }
.menu button:hover { background: var(--surface-2); }
.menu button.danger { color: var(--bad); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
#toasts { position: fixed; right: 22px; top: 80px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 18px; background: var(--ink); color: var(--ink-text); box-shadow: var(--shadow-lg); font-weight: 700; max-width: 440px; animation: pop .22s; }
.toast.ok svg { color: var(--lime); }
.toast.bad { background: var(--bad); color: #fff; }
.toast .btn { height: 28px; padding: 0 12px; font-size: 12px; background: rgba(255, 255, 255, .15); border: 0; color: inherit; }
:root[data-theme="dark"] .toast .btn { background: rgba(0, 0, 0, .1); }
.mtabs { display: flex; gap: 2px; margin: 0 0 8px; padding: 4px; border-radius: 99px; background: var(--surface-3); width: fit-content; max-width: 100%; overflow-x: auto; }
.mtabs button { border: 0; background: none; height: 32px; padding: 0 14px; font-weight: 800; color: var(--muted); cursor: pointer; border-radius: 99px; white-space: nowrap; }
.mtabs button.on { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.edit-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 12px; }
.edit-photos .ph { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--surface-3); cursor: grab; }
.edit-photos .ph img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.edit-photos .ph .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.edit-photos .ph .no { position: absolute; left: 6px; top: 6px; }
.edit-photos .ph.dragging { opacity: .4; }
.skeleton { background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); border: 1px solid var(--line); }
@keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.hero { grid-column: span 2; grid-row: auto; min-height: 240px; }
}
@media (max-width: 720px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .logo span { display: none; }
  .page { padding: 16px 14px 140px; }
  .navwrap { top: 64px; }
  .cols { grid-template-columns: 1fr; }
  .story .meta { display: none; }
  .story { padding: 2px; }
  .search .input { width: 100%; }
  .dock { padding-left: 14px; }
}

/* ===== Подключение ВК ===== */
.step.clickable { cursor: pointer; border-color: var(--ink); box-shadow: 0 0 0 4px var(--lime); transition: transform .15s; }
.step.clickable:hover { transform: translateY(-2px); }
.notice.vkn { align-items: center; }
.notice.vkn .btn { flex: none; }
.btn.big { height: 48px; padding: 0 22px; font-size: 15px; }
.vkc { display: grid; gap: 4px; }
.vkc-step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line-2); }
.vkc-step:last-of-type { border-bottom: 0; }
.vkc-step h4 { margin: 4px 0 4px; font-size: 15px; font-weight: 800; }
.vkc-step .hint { margin: 0; }
.vkc-n { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); font-family: var(--display); font-weight: 600; }
.vkc-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.vkc-app { position: relative; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; display: grid; gap: 2px; font: inherit; transition: all .15s; }
.vkc-app:hover { border-color: var(--text-2); }
.vkc-app b { font-size: 14px; font-weight: 800; }
.vkc-app span { font-size: 12px; color: var(--muted); font-weight: 600; }
.vkc-app em { position: absolute; top: -9px; right: 10px; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--violet); color: #fff; }
.vkc-app.on { border-color: var(--ink); background: var(--ink); color: var(--ink-text); }
.vkc-app.on span { color: inherit; opacity: .7; }
.vkc-list { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.vkc-list h4 { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.vkc-noimg { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); }
.res.ok { background: var(--ok-soft); }

/* ===== Отчёт о сборе ===== */
.log .li.warn { color: var(--warn); }
.err { color: var(--bad); font-size: 12px; font-weight: 600; }
.sfoot { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sfoot small { font-size: 12px; line-height: 1.45; }
.rep-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.rep-tiles div { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; }
.rep-tiles b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.rep-tiles small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.rep-bars { display: grid; gap: 10px; }
.rb-h { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.rb-h b { font-weight: 800; }
.rb-h span { font-weight: 800; font-variant-numeric: tabular-nums; }
.rb-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rb-bar i { display: block; height: 100%; border-radius: 99px; background: var(--violet); }
.rb.norm .rb-bar i { background: var(--text-2); opacity: .45; }
.rb-d { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.rb-d em { font-style: normal; color: var(--ok); font-weight: 700; }
.rb-d .btn { flex: none; }
.rep-h { margin: 22px 0 8px; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rep-src { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }

/* ===== Лучшее время ===== */
.bt { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.bt .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; cursor: default; }
.bt .b i { width: 100%; max-width: 22px; border-radius: 7px; background: var(--surface-3); }
.bt .b:not(.none) i { background: var(--ink); opacity: .55; }
.bt .b.best i { background: var(--lime); opacity: 1; box-shadow: inset 0 0 0 1.5px var(--lime-ink); }
.bt .b span { font-size: 10.5px; color: var(--muted); font-weight: 700; height: 12px; }

/* ===== Реклама ===== */
.ads { display: grid; gap: 10px; }
.ad { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.ad:hover { box-shadow: var(--shadow-sm); }
.ad-th { flex: none; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.ad-th img { width: 100%; height: 100%; object-fit: cover; }
.ad-t { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad .hint { margin-top: 3px; }
.ad-st { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 12.5px; font-weight: 700; }
.ad-st span { display: inline-flex; align-items: center; gap: 4px; }
.ad-acts { display: flex; gap: 6px; align-items: center; flex: none; }
.ad-files { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ad-files:empty { display: none; }
.af { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--surface-3); }
.af img { width: 100%; height: 100%; object-fit: cover; }
.af .btn { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; background: rgba(0, 0, 0, .55); color: #fff; border: 0; }
@media (max-width: 640px) {
  .ad { flex-wrap: wrap; }
  .ad-acts { width: 100%; justify-content: flex-end; }
  .rep-tiles { grid-template-columns: repeat(2, 1fr); }
  .rb-d { flex-direction: column; align-items: flex-start; }
}

/* ===== Рейтинг и рекомендации ===== */
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
.rpill { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 4px; border-radius: 99px; font-size: 11.5px; font-weight: 800; background: var(--surface-3); color: var(--text-2); white-space: nowrap; cursor: help; }
.rpill b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 99px; background: var(--surface); font-family: var(--display); font-size: 11px; font-weight: 600; }
.rpill.top { background: var(--lime); color: var(--lime-ink); }
.rpill.good { background: var(--ok-soft); color: var(--ok); }
.rpill.mid { background: var(--surface-3); }
.rpill.low { background: var(--bad-soft); color: var(--bad); }
.stock { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin-bottom: 14px; }
.stock.low { background: var(--warn-soft); }
.stock.low > svg { color: var(--warn); }
.stock b { font-size: 14px; }
.recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 8px; }
.rec { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.rec > img { width: 48px; height: 48px; border-radius: 15px; object-fit: cover; flex: none; }
.rec-n { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rec-n a { color: inherit; }
.rec-a { display: flex; gap: 4px; flex: none; }
@media (max-width: 640px) { .recs { grid-template-columns: 1fr; } .rec { flex-wrap: wrap; } .rec-a { width: 100%; justify-content: flex-end; } }

/* ===== Статистика паблика ===== */
.dl { font-weight: 800; }
.dl.up { color: var(--ok); }
.dl.down { color: var(--bad); }
.tile.accent .dl { color: inherit; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 700; margin-left: auto; margin-right: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.lg-a { background: var(--violet); } .lg-b { background: var(--surface-3); border: 1px solid var(--line-2); }
.lg-up { background: var(--ok); } .lg-down { background: var(--bad); }
.chart.reach { height: 180px; gap: 3px; }
.chart.reach .b i { position: relative; background: var(--surface-3); overflow: hidden; display: flex; align-items: flex-end; max-width: 22px; }
.chart.reach .b i u { display: block; width: 100%; background: var(--violet); border-radius: 0 0 8px 8px; }
.chart.reach .b:hover i { background: var(--line-2); }
.chart.reach .b span { white-space: nowrap; height: 12px; }
.growth { display: flex; gap: 3px; height: 150px; margin-bottom: 10px; }
.growth .g { flex: 1; display: flex; flex-direction: column; cursor: default; }
.growth .up, .growth .dn { flex: 1; display: flex; justify-content: center; }
.growth .up { align-items: flex-end; border-bottom: 1px solid var(--line-2); }
.growth .dn { align-items: flex-start; }
.growth i { width: 100%; max-width: 18px; display: block; min-height: 1px; }
.growth .up i { background: var(--ok); border-radius: 5px 5px 0 0; }
.growth .dn i { background: var(--bad); border-radius: 0 0 5px 5px; opacity: .8; }
.growth .g:hover i { opacity: 1; filter: brightness(1.1); }
.sexbar { display: flex; height: 30px; border-radius: 10px; overflow: hidden; margin-bottom: 14px; font-size: 12px; font-weight: 800; }
.sexbar i { display: flex; align-items: center; padding: 0 10px; font-style: normal; white-space: nowrap; overflow: hidden; }
.sexbar .f { background: var(--violet); color: #fff; }
.sexbar .m { background: var(--lime); color: var(--lime-ink); }
.ages { display: grid; gap: 8px; }
.ages > div { display: grid; grid-template-columns: 82px 1fr 50px auto; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.ages b { text-align: right; font-variant-numeric: tabular-nums; }
.topposts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tp { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface-2); color: inherit; text-decoration: none; transition: transform .15s; }
.tp:hover { transform: translateY(-2px); }
.tp img, .tp-ph { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-items: center; background: var(--surface-3); }
.tp-b { padding: 10px 12px; display: grid; gap: 3px; font-size: 12px; }
.tp-b b { display: flex; gap: 4px; align-items: center; font-size: 15px; font-family: var(--display); font-weight: 600; }
.tp-b span { display: flex; gap: 4px; align-items: center; color: var(--muted); font-weight: 700; }
.tp-b small { color: var(--muted); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Советы на главной ===== */
#tips:empty { display: none; }
#tips { margin: 18px 0 4px; }
.tips-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.tips-h h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.tip { display: flex; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); border-left-width: 4px; }
.tip.bad { border-left-color: var(--bad); }
.tip.warn { border-left-color: var(--warn); }
.tip.idea { border-left-color: var(--violet); }
.tip.good { border-left-color: var(--ok); }
.tip-i { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); }
.tip.bad .tip-i { background: var(--bad-soft); color: var(--bad); }
.tip.warn .tip-i { background: var(--warn-soft); color: var(--warn); }
.tip.idea .tip-i { background: var(--violet-soft); color: var(--violet); }
.tip.good .tip-i { background: var(--ok-soft); color: var(--ok); }
.tip small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tip b { display: block; font-size: 14.5px; font-weight: 800; margin: 2px 0 4px; }
.tip p { margin: 0 0 10px; font-size: 13px; color: var(--text-2); line-height: 1.5; font-weight: 500; }
.tip p:last-child { margin: 0; }
@media (max-width: 640px) { .ages > div { grid-template-columns: 70px 1fr 44px; } .ages small { display: none; } }
.rec-n { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.rec .rpill { align-self: flex-start; }
.chart.reach .b i { background: var(--violet-soft); box-shadow: inset 0 0 0 1px var(--violet-soft); }
.chart.reach .b:hover i { background: rgba(109, 93, 252, .25); }
.lg-b { background: var(--violet-soft); border: 0; }

/* Ровные отступы главной: плитки → советы → панель разделов → содержимое */
.bento { margin-bottom: 24px; }
#tips { margin: 0 0 28px; }
.navwrap { margin: 0 0 24px; }
.tips-h { margin-bottom: 12px; }
.tip { min-height: 0; }

/* ===== Шапка паблика v2 ===== */
.bento { grid-template-columns: minmax(340px, 1.45fr) 1fr 1fr 1fr; grid-auto-rows: minmax(148px, auto); gap: 14px; }
.tile { display: flex; flex-direction: column; padding: 18px 20px 16px; border-radius: 24px; }
.t-h { display: flex; align-items: center; gap: 8px; }
.t-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.tile .lbl { font-size: 11.5px; letter-spacing: .07em; }
.t-go { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: all .18s; }
.tile.clickable:hover .t-go { opacity: 1; transform: none; background: var(--surface-2); }
.tile .big { margin-top: auto; padding-top: 14px; font-size: 38px; line-height: 1; }
.tile .big small { font-size: 14px; margin-left: 2px; }
.tile .foot { margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tile .bar { margin-top: 12px; height: 6px; }
.tile .bar.v i { background: var(--violet); }
.warn-t { color: var(--warn); font-weight: 800; }
.dotm { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dotm.ok { background: var(--ok); } .dotm.bad { background: var(--bad); }
.tile.accent .t-ic { background: rgba(29, 42, 0, .1); color: var(--lime-ink); }
.tile.accent .t-go { color: var(--lime-ink); }
.tile.violet .t-ic { background: rgba(255, 255, 255, .16); color: #fff; }
.tile.violet .t-go { color: #fff; }
.tile.accent .big small, .tile.violet .big small { color: inherit; opacity: .6; }

/* карточка паблика */
.tile.hero { border-radius: 28px; min-height: 310px; }
.hero-cover img { opacity: .45; }
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(109, 93, 252, .45), transparent 55%), radial-gradient(90% 70% at 0% 100%, rgba(212, 248, 113, .22), transparent 60%); }
.hero-in { padding: 24px; gap: 18px; }
.hero-top { align-items: flex-start; gap: 16px; }
.hero-top img { width: 76px; height: 76px; border-radius: 24px; border: 2px solid rgba(255, 255, 255, .25); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); flex: none; }
.hero h1 { font-size: 30px; letter-spacing: -.03em; margin: 6px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero h1 a { text-decoration: none; }
.hero h1 a:hover { text-decoration: none; opacity: .85; }
.hero-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.hero-state { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: rgba(255, 255, 255, .6); }
.hero-state i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.hero-state.on { color: var(--lime); }
.hero-state.on i { background: var(--lime); box-shadow: 0 0 0 0 rgba(212, 248, 113, .6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(212, 248, 113, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(212, 248, 113, 0); } }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.hero-stats div { padding: 12px 14px; background: rgba(0, 0, 0, .22); backdrop-filter: blur(6px); min-width: 0; }
.hero-stats b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stats small { display: block; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .55); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-actions { margin-top: auto; flex-wrap: nowrap; gap: 8px; }
.hero-actions .btn { height: 44px; }
.hero-actions .btn.icon { width: 44px; flex: none; }
.power { height: 44px; padding: 0 16px 0 10px; gap: 10px; flex: none; }
.power .switch input:checked + span { background: var(--lime-ink); }
@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.hero { grid-column: span 2; grid-row: auto; min-height: 0; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px 14px 12px; border-radius: 20px; }
  .tile .big { font-size: 30px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn.lime { order: -1; flex-basis: 100%; }
  .hero h1 { font-size: 24px; }
}
.bento { grid-template-columns: minmax(400px, 1.75fr) 1fr 1fr 1fr; }
@media (max-width: 1100px) { .bento { grid-template-columns: 1fr 1fr; } }
:root[data-theme="dark"] .power .switch input:checked + span { background: var(--lime-ink); }
:root[data-theme="dark"] .power .switch input:checked + span::after { background: var(--lime); }
@media (max-width: 520px) {
  .hero-in { padding: 18px; gap: 14px; }
  .hero-top img { width: 60px; height: 60px; border-radius: 18px; }
  .hero-stats div { padding: 10px; }
  .hero-stats b { font-size: 16px; }
  .hero-stats small { white-space: normal; font-size: 10.5px; line-height: 1.25; }
  .tile .lbl { font-size: 10.5px; letter-spacing: .04em; }
  .t-ic { width: 24px; height: 24px; }
}

/* ===== Вход и регистрация ===== */
.auth { min-height: calc(100vh - 140px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; max-width: 1040px; margin: 0 auto; padding: 20px 0 60px; }
.auth-side h1 { font-family: var(--display); font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.045em; margin: 18px 0 26px; }
.auth-side h1 mark { background: var(--lime); color: var(--lime-ink); padding: 0 .16em; border-radius: .2em; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 15px; color: var(--text-2); }
.auth-side li svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); color: var(--violet); }
.auth-badge { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: var(--ink-text); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.auth-badge svg { color: var(--lime); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.auth-card h2 { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: -.03em; }
.auth-card > .hint { margin: -6px 0 4px; font-size: 14px; }
.auth-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); }
.af-f { display: grid; gap: 6px; }
.af-f span { font-size: 12.5px; font-weight: 800; color: var(--text-2); }
.af-f .input { height: 48px; font-size: 15px; }
.wide-b { width: 100%; justify-content: center; }
.af-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; }
.af-links a { color: var(--violet); text-decoration: none; }
.af-links a:hover { text-decoration: underline; }
.af-err { padding: 10px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: 13.5px; }
.acc-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line-2); padding: 0; overflow: hidden; cursor: pointer; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.acc-btn img { width: 100%; height: 100%; object-fit: cover; }
.acc-btn.big { width: 48px; height: 48px; font-size: 18px; cursor: default; }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-side ul { display: none; }
  .auth-side h1 { margin-bottom: 4px; }
  .auth-card { padding: 22px; }
}
.auth-side li svg { width: 16px; height: 16px; padding: 0; border: 0; background: none; border-radius: 0; }
.li-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--violet); }


/* ===== Тёмная тема: чёткие слои ===== */
:root[data-theme="dark"] .tile,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .scard,
:root[data-theme="dark"] .post,
:root[data-theme="dark"] .tip,
:root[data-theme="dark"] .ad,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .step,
:root[data-theme="dark"] .modal { border-color: var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .4); }
:root[data-theme="dark"] .tile.hero { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 40px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .tile.accent { box-shadow: 0 10px 40px rgba(212, 248, 113, .12); }
:root[data-theme="dark"] .t-ic { background: var(--surface-3); color: var(--text); }
:root[data-theme="dark"] .tile .lbl { color: var(--text-2); }
:root[data-theme="dark"] .input, :root[data-theme="dark"] .select, :root[data-theme="dark"] .textarea { background: var(--bg-2); border-color: var(--line-2); }
:root[data-theme="dark"] .input:focus, :root[data-theme="dark"] .select:focus, :root[data-theme="dark"] .textarea:focus { background: var(--bg); border-color: var(--violet); }
:root[data-theme="dark"] .btn:not(.ink):not(.lime):not(.violet):not(.ghost):not(.danger) { background: var(--surface-2); border-color: var(--line-2); }
:root[data-theme="dark"] .btn:not(.ink):not(.lime):not(.violet):not(.ghost):not(.danger):hover { background: var(--surface-3); }
:root[data-theme="dark"] .nav { background: rgba(23, 23, 31, .85); border-color: var(--line-2); }
:root[data-theme="dark"] .nav button .n { background: var(--surface-3); color: var(--text); }
:root[data-theme="dark"] .topbar { border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .notice.info { background: var(--violet-soft); border: 1px solid rgba(153, 141, 255, .25); }
:root[data-theme="dark"] .notice { border: 1px solid rgba(247, 184, 74, .25); }
:root[data-theme="dark"] .badge { background: var(--surface-3); color: var(--text-2); }
:root[data-theme="dark"] .field { border-color: var(--line); }
:root[data-theme="dark"] .switch span { background: var(--line-2); }
:root[data-theme="dark"] .bg-blobs i { opacity: .18; }
:root[data-theme="dark"] code { background: var(--surface-3); color: var(--text); }
:root[data-theme="dark"] .tile.accent .lbl, :root[data-theme="dark"] .tile.accent .foot { color: rgba(29, 42, 0, .7); }
:root[data-theme="dark"] .tile.accent .t-ic { background: rgba(29, 42, 0, .12); color: var(--lime-ink); }
:root[data-theme="dark"] .tile.violet .lbl, :root[data-theme="dark"] .tile.violet .foot { color: rgba(255, 255, 255, .78); }
:root[data-theme="dark"] .tile.violet .t-ic { background: rgba(255, 255, 255, .16); color: #fff; }

/* ===== Карточка паблика: показатели ===== */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: none; border-radius: 0; overflow: visible; }
.hero-stats > div { position: relative; padding: 12px 14px 11px; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); transition: background .15s, transform .15s; }
.hero-stats > div.clickable { cursor: pointer; }
.hero-stats > div.clickable:hover { background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07)); transform: translateY(-1px); }
.hero-stats i { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); }
.hero-stats i svg { width: 13px; height: 13px; }
.hero-stats b { font-size: 22px; line-height: 1.15; padding-right: 26px; }
.hero-stats small { color: rgba(255, 255, 255, .6); margin-top: 3px; }
@media (max-width: 520px) { .hero-stats { gap: 6px; } .hero-stats > div { padding: 10px; } .hero-stats i { display: none; } .hero-stats b { font-size: 17px; padding-right: 0; } }

/* ===== Закрытые функции и тарифы ===== */
.locked { display: flex; gap: 16px; align-items: center; padding: 22px 24px; border-radius: var(--r); border: 1.5px dashed var(--line-2);
  background: linear-gradient(135deg, var(--violet-soft), transparent 70%), var(--surface); }
.locked.compact { padding: 16px 18px; }
.locked b { font-size: 15.5px; font-weight: 800; display: block; }
.locked p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.lk-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--violet); color: #fff; }
#tips > .locked { margin-bottom: 4px; }
.nav button.lk { opacity: .7; }
.nav button.lk svg:last-child { width: 12px; height: 12px; opacity: .7; }
.viewsw { flex: none; margin-right: 6px; }
.viewsw button { height: 34px; }
.bill-cur { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-radius: 18px; background: var(--surface-2); }
.bill-cur small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bill-cur b { font-family: var(--display); font-size: 22px; margin-right: 8px; }
.bill-cur .bar { margin: 6px 0 4px; max-width: 320px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--surface); }
.plan.hot { border-color: var(--violet); box-shadow: 0 10px 40px var(--violet-soft); }
.plan.cur { border-color: var(--ok); }
.plan-tag { position: absolute; top: -10px; left: 18px; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--ok); color: #fff; }
.plan h3 { margin: 0; font-size: 18px; }
.plan-price { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin: 8px 0 2px; }
.plan-price small { font-family: var(--font); font-size: 14px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.plan > .hint { margin: 0 0 12px; min-height: 2.6em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 7px; font-size: 13px; font-weight: 600; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { color: var(--ok); margin-top: 2px; }
.plan li.off { color: var(--muted); font-weight: 500; }
.plan li.off svg { color: var(--muted); }

/* ===== Админка ===== */
.adm-head { margin: 4px 0 22px; }
.adm-head h1 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.04em; margin: 14px 0 6px; }
.adm-bento { grid-template-columns: repeat(3, 1fr) !important; }
.adm-bento .tile .big { font-size: 34px; }
.adm-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.adm-list { display: grid; gap: 6px; }
.adm-table td { vertical-align: middle; }
.adm-table tr.blocked td { opacity: .55; }
.adm-table .select { height: 34px; min-width: 170px; }
.adm-acts { white-space: nowrap; text-align: right; }
.adm-acts .btn { margin-left: 4px; }
.adm-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.adm-plan.arch { opacity: .55; }
.adm-pname { font-family: var(--display); font-size: 18px; font-weight: 600; height: 44px; flex: 1; }
.adm-feats { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-feats .chip { padding: 0 12px; height: 32px; font-size: 12.5px; }
.af-f em { font-style: normal; margin-left: 6px; }
@media (max-width: 900px) { .adm-bento { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 720px) { .viewsw button { padding: 0 10px; font-size: 0; gap: 0; } .viewsw button svg { width: 16px; height: 16px; } }
.hero-stats > div { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; }
.hero-stats b { grid-column: 1 / -1; padding-right: 0; }
.hero-stats i { position: static; grid-row: 2; width: 18px; height: 18px; border-radius: 6px; margin-top: 3px; }
.hero-stats i svg { width: 11px; height: 11px; }
.hero-stats small { grid-row: 2; grid-column: 2; }
@media (max-width: 520px) { .hero-stats i { display: none; } .hero-stats small { grid-column: 1 / -1; } }

/* ===== Упрощение: свёрнутые настройки, «Ещё» в разделах ===== */
.field[hidden] { display: none; }
details.adv { margin-top: 4px; border-top: 1px solid var(--line); }
details.adv > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 4px;
  cursor: pointer; font-size: 13px; font-weight: 800; color: var(--text-2); user-select: none; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); transition: background .15s; }
details.adv > summary:hover span { background: var(--surface-3); color: var(--text); }
details.adv > summary > svg { transition: transform .2s; color: var(--muted); }
details.adv[open] > summary > svg { transform: rotate(180deg); }
details.adv[open] > summary span { background: var(--surface-3); }
details.adv .adv-in { padding-top: 4px; }
details.adv .adv-in > .field:first-child { border-top: 0; }
.nav-more { border-left: 1px solid var(--line) !important; border-radius: 0 99px 99px 0 !important; margin-left: 4px; }
.nav-more.on { border-left-color: transparent !important; border-radius: 99px !important; }
.nav-more svg:last-child { width: 13px; height: 13px; opacity: .6; }
.hero-stats small { font-size: 11px; }
.hero-stats small { white-space: normal; overflow: visible; line-height: 1.2; word-break: break-word; }
.hero-stats > div { column-gap: 5px; }
.hero-stats i { width: 16px; height: 16px; }

/* ===== Комментарии, конкурсы, конкуренты, поддержка, бренд ===== */
.rule { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.rule:first-child { border-top: 0; }
.rule .textarea { min-height: 42px; }
.winners { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.winners .chip { text-decoration: none; color: var(--text); }
.me-row td { background: var(--surface-2); }
.review { margin-bottom: 14px; }
.ticket { padding: 14px 0; border-top: 1px solid var(--line); }
.ticket:first-of-type { border-top: 0; }
.msg { margin-top: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); max-width: 85%; white-space: pre-wrap; font-weight: 500; }
.msg.adm { background: var(--violet-soft); margin-left: auto; }
.msg small { display: block; color: var(--muted); font-weight: 700; font-size: 11px; margin-bottom: 2px; }
.brand-logo { max-height: 32px; max-width: 160px; object-fit: contain; }
input[type=color] { width: 52px; height: 36px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 2px; cursor: pointer; }
@media (max-width: 640px) { .rule { grid-template-columns: 1fr; } }

/* Панель разделов поверх картинок ленты: плотный фон, чёткая граница и тень */
.nav { background: rgba(255, 255, 255, .94); border: 1px solid var(--line-2);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 6px 16px rgba(22, 22, 26, .08), 0 18px 40px rgba(22, 22, 26, .12); }
:root[data-theme="dark"] .nav { background: rgba(23, 23, 31, .95); border-color: var(--line-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 8px 24px rgba(0, 0, 0, .5); }
.nav button:not(.on):hover { background: var(--surface-2); }
.nav-more { border-left: 0 !important; border-radius: 99px !important; margin-left: 6px; position: relative; }
.nav-more::before { content: ""; position: absolute; left: -4px; top: 9px; bottom: 9px; width: 1px; background: var(--line-2); }
.nav-more.on::before { display: none; }

/* ===== Окно тарифов: широкое, 4 колонки ===== */
.modal.xwide { width: min(1240px, 100%); }
.modal.xwide .plans { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-items: stretch; }
.plan { padding: 22px 20px; }
.plan > .hint { min-height: 2.8em; margin-bottom: 14px; }
.plan > .btn { margin-bottom: 14px; }
.plan-price { font-size: 32px; }
.plan-tag.hot { background: var(--violet); }
.plan-lim { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin-bottom: 14px; font-size: 13px; font-weight: 800; }
.plan ul { gap: 9px; margin-bottom: 0; }
.plan li.plus { font-weight: 800; color: var(--text-2); padding-bottom: 2px; }
.plan li.off { color: var(--muted); }
@media (max-width: 720px) { .modal.xwide .plans { grid-template-columns: 1fr; } }
.plan ul { align-content: start; }

/* Панель разделов прилипает строго под шапкой (её высота меряется в JS → --top-h) */
.navwrap { top: calc(var(--top-h, 72px) + 10px); }
@media (max-width: 720px) { .navwrap { top: calc(var(--top-h, 64px) + 8px); } }
.topbar { background: rgba(243, 242, 238, .92); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .topbar { background: rgba(9, 9, 13, .92); }

/* ===== Настройки: переключатель разделов ===== */
.subnav-wrap { display: flex; justify-content: center; margin: -4px 0 18px; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 6px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; }
.subnav button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: transparent;
  font-weight: 700; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.subnav button:hover { background: var(--surface-2); color: var(--text); }
.subnav button.on { background: var(--lime); color: var(--lime-ink); }
.subnav button svg:last-child:not(:first-child) { width: 12px; height: 12px; opacity: .6; }
.set-one { max-width: 860px; margin: 0 auto; display: grid; gap: 16px; }
.set-one > [data-sub][hidden] { display: none; }
#set-body > .cols, #set-body > .notice { max-width: 1100px; margin-left: auto; margin-right: auto; }
.nav-g svg:last-child { width: 13px; height: 13px; opacity: .6; }
@media (max-width: 720px) { .subnav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; border-radius: 99px; scrollbar-width: none; } }

/* ===== Разделы вкладок и полоса совета на главной ===== */
#tab > .subnav-wrap { margin: -6px 0 20px; }
.subnav button .n { font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); line-height: 18px; }
.subnav button.on .n { background: rgba(0, 0, 0, .12); color: inherit; }
.tip-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  border-left-width: 4px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.tip-strip:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.tip-strip.bad { border-left-color: var(--bad); } .tip-strip.warn { border-left-color: var(--warn); }
.tip-strip.idea { border-left-color: var(--violet); } .tip-strip.good { border-left-color: var(--ok); }
.tip-strip small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tip-strip b { font-size: 14.5px; font-weight: 800; }
.tip-strip.bad .tip-i { background: var(--bad-soft); color: var(--bad); } .tip-strip.warn .tip-i { background: var(--warn-soft); color: var(--warn); }
.tip-strip.idea .tip-i { background: var(--violet-soft); color: var(--violet); } .tip-strip.good .tip-i { background: var(--ok-soft); color: var(--ok); }
#tips-full .tips { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.sa-table th.sortable { cursor: pointer; user-select: none; }
.sa-table th.sortable.on { color: var(--text); }
.sa-table th.sortable.on::after { content: " ↓"; }
.sa-table tr.off td { opacity: .5; }
.sa-table td { vertical-align: middle; }
@media (max-width: 640px) { .tip-strip .hint { display: none; } }

/* Разделы прилипают вместе с главной панелью, сразу под ней */
.navwrap { flex-direction: column; align-items: center; gap: 8px; }
#subnav { pointer-events: auto; max-width: 100%; }
#subnav .subnav-wrap { margin: 0; }
#subnav .subnav { box-shadow: 0 4px 14px rgba(22, 22, 26, .08); background: rgba(255, 255, 255, .96); backdrop-filter: blur(20px); border-color: var(--line-2); padding: 4px; }
#subnav .subnav button { height: 32px; font-size: 12.5px; padding: 0 12px; }
:root[data-theme="dark"] #subnav .subnav { background: rgba(23, 23, 31, .96); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.hero-stats b { font-size: 19px; overflow: visible; }

/* ===== Премиум ===== */
.nav button.nav-prem:not(.on) { color: var(--violet); }
.nav button.nav-prem.on { background: linear-gradient(135deg, var(--violet), #b25dfc); color: #fff; }
.prem-hero { display: flex; align-items: center; gap: 20px; padding: 26px 28px; border-radius: var(--r); margin-bottom: 16px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(212, 248, 113, .35), transparent 50%), linear-gradient(135deg, #5b4bf0, #9a5cf6); }
.prem-hero h2 { margin: 12px 0 4px; font-size: 26px; letter-spacing: -.03em; color: #fff; }
.prem-hero p { margin: 0; opacity: .85; font-weight: 600; }
.prem-hero .auth-badge { background: rgba(255, 255, 255, .18); color: #fff; }
.prem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.prem { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.prem:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.prem-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); margin-bottom: 4px; }
.prem.on .prem-ic { background: var(--violet-soft); color: var(--violet); }
.prem b { font-size: 15px; font-weight: 800; }
.prem p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; font-weight: 500; flex: 1; }
.prem-f { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.prem-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--violet); }
.prem:not(.on) { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
@media (max-width: 640px) { .prem-hero { flex-direction: column; align-items: flex-start; } }
#subnav { max-width: min(1180px, 100%); }
#subnav .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; border-radius: 99px; }
#subnav .subnav::-webkit-scrollbar { display: none; }
#subnav .subnav button { flex: none; }
#subnav { max-width: 100%; }
#subnav .subnav { gap: 2px; }
#subnav .subnav button { padding: 0 10px; gap: 5px; font-size: 12.5px; }
#subnav .subnav button svg { width: 13px; height: 13px; }
details.adv > summary:focus { outline: none; }
details.adv > summary:focus-visible span { box-shadow: 0 0 0 3px var(--violet-soft); }

/* ===== Расписание: без пустот ===== */
.sch-head { margin-bottom: 14px; padding-top: 16px; padding-bottom: 16px; }
.sch-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; align-items: start; }
.sch-cols > .stack { gap: 14px; }
.sch-up { margin-top: 14px; }

/* ===== Закрытая функция: размытый пример + объяснение ===== */
.lock-wrap { position: relative; min-height: 330px; border-radius: 16px; overflow: hidden; }
.lock-prev { filter: blur(6px); opacity: .55; pointer-events: none; user-select: none; padding: 8px 4px; }
.lock-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 18px 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .88)); }
:root[data-theme="dark"] .lock-over { background: linear-gradient(180deg, rgba(23, 23, 31, .55), rgba(23, 23, 31, .9)); }
.lock-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--violet); color: #fff; margin-bottom: 10px; box-shadow: 0 8px 24px var(--violet-soft); }
.lock-over h4 { margin: 0 0 8px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.lock-over p { margin: 0 0 8px; max-width: 560px; font-size: 13px; line-height: 1.55; color: var(--text-2); font-weight: 500; }
.lock-over .btn { margin-top: 6px; }

/* Ближайшие публикации: строки не вылезают за карточку при узком окне */
.timeline { grid-template-columns: minmax(0, 1fr); }
.tl { min-width: 0; }
.tl .when { white-space: nowrap; flex: none; }
.tl .badge { flex: 0 1 auto; min-width: 0; max-width: 170px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 24px; }
.sch-cols { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
@media (max-width: 760px) {
  .tl { flex-wrap: wrap; row-gap: 4px; }
  .tl .when { min-width: 0; }
  .tl .txt { order: 5; flex-basis: 100%; padding-left: 58px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tl .badge { max-width: 140px; }
}

/* Расписание: низ колонок на одной линии — последняя карточка короткой колонки тянется */
.sch-cols { align-items: stretch; }
.sch-cols > .stack { display: flex; flex-direction: column; }
.sch-cols > .stack > .card:last-child { flex: 1; }

/* ===== Размытая заглушка для любой закрытой функции ===== */
.lock-wrap.compact { min-height: 280px; }
.fake-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.fake-tiles div { height: 78px; border-radius: 16px; background: var(--surface-2); padding: 14px; }
.fake-tiles i { display: block; width: 40%; height: 10px; border-radius: 6px; background: var(--line-2); }
.fake-tiles b { display: block; width: 60%; height: 22px; border-radius: 8px; background: var(--violet-soft); margin-top: 12px; }
.fake-bars { display: flex; align-items: flex-end; gap: 6px; height: 100px; margin-bottom: 14px; }
.fake-bars i { flex: 1; border-radius: 6px; background: var(--violet); opacity: .45; }
.fake-rows { display: grid; gap: 8px; }
.fake-rows div { display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 14px; background: var(--surface-2); padding: 0 12px; }
.fake-rows span { width: 28px; height: 28px; border-radius: 9px; background: var(--line-2); }
.fake-rows i { flex: 1; height: 10px; border-radius: 6px; background: var(--line-2); }
.fake-rows em { width: 60px; height: 22px; border-radius: 99px; background: var(--lime); opacity: .6; }
#tab > div > .lock-wrap { min-height: 420px; }

/* ===== Настройки → Тариф: лесенка ===== */
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.step-plan { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.step-plan.cur { border-color: var(--violet); box-shadow: 0 10px 30px var(--violet-soft); }
.step-plan.next { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.sp-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sp-h b { font-family: var(--display); font-size: 18px; font-weight: 600; }
.sp-h span { color: var(--muted); font-weight: 700; font-size: 13px; }
.sp-h em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--violet); color: #fff; }
.sp-lim { font-size: 12.5px; font-weight: 700; color: var(--text-2); padding: 8px 12px; border-radius: 12px; background: var(--surface-2); }
.sp-plus { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.sp-list { display: grid; gap: 4px; }
.sp-i { display: flex; align-items: flex-start; gap: 8px; text-align: left; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 5px 6px; border-radius: 10px; cursor: pointer; }
.sp-i svg { margin-top: 2px; flex: none; }
.sp-i.on { color: var(--text); }
.sp-i.on svg { color: var(--ok); }
.sp-i:hover { background: var(--surface-2); }
span.sp-i { cursor: default; }
span.sp-i:hover { background: none; }
.lock-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card .lock-wrap { border: 0; padding: 4px 0 0; background: none; }
.lock-prev { filter: blur(5px); opacity: .9; }
.lock-over { background: radial-gradient(ellipse 60% 70% at center, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .7) 55%, rgba(255, 255, 255, .25) 100%); }
:root[data-theme="dark"] .lock-over { background: radial-gradient(ellipse 60% 70% at center, rgba(23, 23, 31, .94) 0%, rgba(23, 23, 31, .72) 55%, rgba(23, 23, 31, .3) 100%); }
.fake-tiles div, .fake-rows div { background: var(--surface-3); }
.fake-tiles b { background: var(--violet); opacity: .35; }

/* ===== Закрытая функция: пример размыт на всю высоту блока, объяснение поверх ===== */
.lock-wrap { display: flex; flex-direction: column; }
.lock-prev { position: absolute; inset: 0; padding: 18px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.card .lock-prev { padding: 4px 0 0; }
.lock-prev > * { margin: 0 !important; flex: none; }
.lock-over { position: relative; inset: auto; flex: 1; }
.lock-over p b { color: var(--text); }
.card:has(> #best-body > .lock-wrap) { display: flex; flex-direction: column; }
#best-body:has(> .lock-wrap) { flex: 1; display: flex; flex-direction: column; }
#best-body > .lock-wrap { flex: 1; }
.fake-text { display: grid; gap: 8px; }
.fake-text i { display: block; height: 10px; border-radius: 6px; background: var(--line-2); }
.lock-prev > .fake-heat { flex: 1 1 auto; min-height: 220px; display: grid; grid-template-columns: 26px repeat(24, 1fr); grid-auto-rows: 1fr; gap: 4px; }
.fake-heat b { font-size: 11px; font-weight: 700; color: var(--muted); align-self: center; }
.fake-heat i { border-radius: 5px; background: var(--lime); box-shadow: inset 0 0 0 1px var(--line); }

/* Логотип ведёт на главную; просмотренные советы */
.topbar .logo[data-act="home"], .logo[data-act="home"] { cursor: pointer; }
.tips-sub { margin: 22px 0 10px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tip.seen { opacity: .62; }
.tip.seen:hover { opacity: 1; }
.tip-strip .btn.ghost { flex: none; }
@media (max-width: 720px) { .tip-strip .hint { display: none; } }

/* Совет: «Просмотрено» в углу */
.tip-top { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.tip-mark { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 0; border-radius: 99px; background: transparent;
  font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; flex: none; transition: background .15s, color .15s; }
.tip-mark:hover { background: var(--surface-2); color: var(--text); }
.tip-mark svg { width: 13px; height: 13px; }
.tip > .grow > .btn { margin-top: 2px; }

/* Окно «Поменять расписание?» */
.rg-sum { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); }
.rg-sum small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.rg-sum b { font-family: var(--display); font-size: 18px; font-weight: 600; white-space: nowrap; }
.rg-list { display: grid; gap: 4px; max-height: 340px; overflow: auto; margin-bottom: 6px; }
.rg-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 14px auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; }
.rg-row:nth-child(odd) { background: var(--surface-2); }
.rg-row img, .rg-ph { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.rg-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rg-row > svg { color: var(--muted); }
.rg-new { font-size: 13px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; padding: 3px 9px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); }
@media (max-width: 560px) { .rg-sum { grid-template-columns: 1fr; } .rg-old { display: none; } .rg-row { grid-template-columns: 36px minmax(0, 1fr) 14px auto; } }

/* =====================================================================
   Полировка интерфейса (декабрь): шапка, лента, меню, расписание, анимации
   ===================================================================== */
body { overflow-x: clip; }

/* --- Шапка паблика: иконки цветные, подписи читаются, без пустоты между цифрами и кнопками --- */
.hero-in { justify-content: space-between; }
.hero-actions { margin-top: 0; }
.hero-stats i { background: rgba(212, 248, 113, .16); color: var(--lime); }
.hero-stats small { color: rgba(255, 255, 255, .74); }
.hero-link { color: rgba(255, 255, 255, .66); }
.hero .btn.icon { background: rgba(255, 255, 255, .12); }

/* --- Лента: фильтры одной группой, строка источника не разваливается --- */
.toolbar .tb-f { display: flex; align-items: center; gap: 8px; flex: 1 1 560px; justify-content: flex-end; min-width: 0; }
.toolbar .tb-f .search { flex: 1 1 180px; max-width: 280px; min-width: 140px; }
.toolbar .tb-f .select { flex: 0 1 190px; min-width: 130px; }
@media (max-width: 720px) { .toolbar .tb-f { flex-wrap: wrap; justify-content: stretch; } .toolbar .tb-f .search { max-width: none; flex-basis: 100%; } .toolbar .tb-f .select { flex: 1 1 0; } }
.src { min-width: 0; }
.src img { flex: none; }
.src a { min-width: 0; display: flex; }
.src b { max-width: none; }
.src > span { white-space: nowrap; flex: none; }

/* --- Меню разделов: подсветка выбранного плавно переезжает --- */
.nav, .subnav { position: relative; isolation: isolate; }
.nav > .ind, .subnav > .ind { position: absolute; top: 0; left: 0; z-index: 0; border-radius: 99px; pointer-events: none; opacity: 0;
  transition: transform .42s cubic-bezier(.3, 1.2, .35, 1), width .42s cubic-bezier(.3, 1.2, .35, 1), height .3s, opacity .2s; }
.nav button, .subnav button { position: relative; z-index: 1; }
.nav > .ind { background: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.nav button.on, .nav button.on:hover, :root[data-theme="dark"] .nav button.on { background: transparent !important; }

/* Строка разделов — лёгкие вкладки без коробки; выбранный раздел — белая «таблетка» */
#subnav .subnav { background: transparent; border: 0; box-shadow: none; padding: 4px; gap: 2px; backdrop-filter: none; }
#subnav .subnav button { height: 34px; padding: 0 14px; color: var(--muted); font-weight: 700; background: transparent; transition: color .2s, background .2s; }
#subnav .subnav button:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 55%, transparent); }
#subnav .subnav button.on, #subnav .subnav button.on:hover { color: var(--text); background: transparent !important; }
#subnav .subnav button.on > svg:first-child { color: var(--violet); }
#subnav .subnav > .ind { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 8px 22px rgba(20, 20, 40, .09); }
:root[data-theme="dark"] #subnav .subnav > .ind { background: var(--surface-3); border-color: rgba(255, 255, 255, .08); box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
#subnav .subnav button .n { background: var(--surface-3); }
#subnav .subnav button.on .n { background: var(--lime); color: var(--lime-ink); }

/* Прилипшее меню — на мягкой матовой полосе, контент под ним не просвечивает */
.navwrap::before { content: ""; position: absolute; z-index: -1; top: -14px; bottom: -10px; left: 50%; width: 100vw; transform: translateX(-50%);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); opacity: 0; transition: opacity .25s; pointer-events: none; }
.navwrap.stuck::before { opacity: 1; }

/* --- Расписание: сетка тянется на всю высоту карточки, без пустоты --- */
.sch-cols > .stack > .card:only-child { display: flex; flex-direction: column; }
.sch-cols > .stack > .card:only-child > .week { flex: 1 1 auto; }
.week { grid-template-rows: auto; grid-auto-rows: minmax(var(--rh, 16px), 1fr); }
.week .c { height: auto; min-height: var(--rh, 16px); }
.week .t { line-height: 1; align-self: center; }

/* --- Анимации --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes softIn { from { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes shine { from { background-position: -160% 0; } to { background-position: 260% 0; } }

/* появление раздела и карточек — каскадом */
#tab.anim > div > *, #tab.anim .cols > *, #tab.anim .stack > *, #tab.anim .tips > *, #tab.anim .ladder > *, #tab.anim .sgrid > *, #tab.anim .feed > * {
  animation: fadeUp .5s cubic-bezier(.2, .8, .2, 1) both; }
#tab.anim .stack > *:nth-child(2), #tab.anim .tips > *:nth-child(2), #tab.anim .ladder > *:nth-child(2), #tab.anim .sgrid > *:nth-child(2), #tab.anim .feed > *:nth-child(2), #tab.anim > div > *:nth-child(2), #tab.anim .cols > *:nth-child(2) { animation-delay: .05s; }
#tab.anim .stack > *:nth-child(3), #tab.anim .tips > *:nth-child(3), #tab.anim .ladder > *:nth-child(3), #tab.anim .sgrid > *:nth-child(3), #tab.anim .feed > *:nth-child(3), #tab.anim > div > *:nth-child(3), #tab.anim .cols > *:nth-child(3) { animation-delay: .1s; }
#tab.anim .stack > *:nth-child(4), #tab.anim .tips > *:nth-child(4), #tab.anim .ladder > *:nth-child(4), #tab.anim .sgrid > *:nth-child(4), #tab.anim .feed > *:nth-child(4), #tab.anim > div > *:nth-child(4) { animation-delay: .15s; }
#tab.anim .tips > *:nth-child(n+5), #tab.anim .sgrid > *:nth-child(n+5), #tab.anim .feed > *:nth-child(n+5), #tab.anim > div > *:nth-child(n+5) { animation-delay: .2s; }
#tab.anim .sgrid > *:nth-child(n+9), #tab.anim .feed > *:nth-child(n+9) { animation-delay: .26s; }

/* плитки на главной — при открытии паблика */
#bento.anim > * { animation: softIn .55s cubic-bezier(.2, .8, .2, 1) both; }
#bento.anim > *:nth-child(2) { animation-delay: .04s; } #bento.anim > *:nth-child(3) { animation-delay: .08s; }
#bento.anim > *:nth-child(4) { animation-delay: .12s; } #bento.anim > *:nth-child(5) { animation-delay: .16s; }
#bento.anim > *:nth-child(6) { animation-delay: .2s; } #bento.anim > *:nth-child(7) { animation-delay: .24s; }
#bento.anim .bar i { animation: grow .9s .25s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.tip-strip { animation: fadeUp .45s .15s cubic-bezier(.2, .8, .2, 1) both; }

/* отклик на нажатия и наведение */
.btn { transition: transform .14s cubic-bezier(.3, 1.3, .5, 1), background .18s, box-shadow .18s, border-color .18s, color .18s, opacity .18s; }
.btn:not(:disabled):active { transform: scale(.96); }
.btn.ink:not(:disabled):hover, .btn.lime:not(:disabled):hover, .btn.violet:not(:disabled):hover { box-shadow: 0 8px 20px rgba(20, 20, 40, .16); }
.tile { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.tile.clickable:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post .media img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.post:hover .media img { transform: scale(1.025); }
.tip, .step-plan, .rec, .src-card { transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, opacity .2s; }
.tip:hover, .step-plan:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.week .c { transition: background .12s, transform .12s; }
.week .c:hover { transform: scale(1.06); }
.week .c.on { animation: softIn .25s both; }
.menu { animation: menuIn .18s cubic-bezier(.2, 1, .4, 1); transform-origin: top; }
.toast { animation: toastIn .32s cubic-bezier(.2, 1.2, .4, 1); }
.badge.lime, .rg-new { position: relative; }
.skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 220% 100%; animation: shine 1.3s ease-in-out infinite; }
.lock-ic { animation: softIn .5s .1s both; }
.lock-over .btn.ink { background-image: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); background-size: 260% 100%; animation: shine 3.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* строка разделов: мягкая «дорожка», выбранный раздел — белая таблетка с тенью */
#subnav .subnav { background: color-mix(in srgb, var(--surface-3) 75%, transparent); border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
:root[data-theme="dark"] #subnav .subnav { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .07); }
#subnav .subnav button { color: var(--text-2); }
#subnav .subnav button > svg:first-child { opacity: .75; transition: opacity .2s, color .2s; }
#subnav .subnav button.on > svg:first-child { opacity: 1; }
#subnav .subnav button:hover { background: transparent; }
.toolbar .tb-f { flex: 1 1 460px; }
.toolbar .tb-f .search { min-width: 0; display: block; }
.toolbar .tb-f .search .input { width: 100%; min-width: 0; }
.navwrap::before { bottom: -22px; -webkit-mask: linear-gradient(#000 78%, transparent); mask: linear-gradient(#000 78%, transparent); }
/* шапка паблика: крупные карточки цифр заполняют высоту — без пустоты до кнопок */
.hero-stats > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 14px 16px 13px; }
.hero-stats i { position: static; width: 30px; height: 30px; border-radius: 10px; margin: 0 0 12px; display: grid; place-items: center; }
.hero-stats i svg { width: 15px; height: 15px; }
.hero-stats b { font-size: 26px; padding-right: 0; line-height: 1.1; }
.hero-stats small { margin-top: 3px; }
@media (max-width: 520px) { .hero-stats i { display: none; } .hero-stats b { font-size: 18px; } }

/* --- Раскладка: колонки одной высоты, без дыр между карточками --- */
.cols { align-items: stretch; }
.cols > .stack { display: flex; flex-direction: column; }
.cols > .stack > :last-child { flex: 1 1 auto; }
.grow-card { display: flex; flex-direction: column; }
.grow-card > textarea, .grow-card *:has(> textarea) { flex: 1 1 auto; display: flex; flex-direction: column; }
.grow-card *:has(textarea) { display: flex; flex-direction: column; flex: 1 1 auto; }
.grow-card textarea { flex: 1 1 auto; min-height: 120px; resize: none; }
.grow-card > .ages:last-child { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.grow-card > p.hint:last-child { margin-top: auto; }

/* =========================== Технологичные анимации =========================== */

/* Живой фон: цветные пятна медленно плывут, поверх — едва заметная точечная сетка */
.bg-blobs i:nth-child(1) { animation: drift1 26s ease-in-out infinite alternate; }
.bg-blobs i:nth-child(2) { animation: drift2 32s ease-in-out infinite alternate; }
.bg-blobs i:nth-child(3) { animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-160px, 120px) scale(.9); } }
@keyframes drift3 { to { transform: translate(120px, -140px) scale(1.2); } }
.bg-blobs::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 0); background-size: 26px 26px;
  -webkit-mask: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 75%); mask: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 75%); }

/* Свет за курсором на карточках */
.card, .tile:not(.hero), .tip, .scard, .step-plan, .post { --mx: -400px; --my: -400px; }
.card, .tip, .scard, .step-plan, .tile:not(.hero) { position: relative; }
.card::after, .tile:not(.hero)::after, .tip::after, .scard::after, .step-plan::after, .post::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--violet) 9%, transparent), transparent 45%); }
.card:hover::after, .tile:not(.hero):hover::after, .tip:hover::after, .scard:hover::after, .step-plan:hover::after, .post:hover::after { opacity: 1; }
:root[data-theme="dark"] .card::after, :root[data-theme="dark"] .tile:not(.hero)::after, :root[data-theme="dark"] .tip::after, :root[data-theme="dark"] .scard::after, :root[data-theme="dark"] .post::after {
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(212, 248, 113, .07), transparent 45%); }
.tile.accent::after { display: none; }

/* Шапка паблика: тонкая светящаяся рамка медленно бежит по кругу */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.tile.hero::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--ang), transparent 0 60%, rgba(212, 248, 113, .9) 75%, rgba(156, 132, 255, .9) 85%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinAng 6s linear infinite; opacity: .85; }
@keyframes spinAng { to { --ang: 360deg; } }
.hero-glow { animation: glowShift 9s ease-in-out infinite alternate; }
@keyframes glowShift { to { transform: translate(18px, -10px) scale(1.08); opacity: .85; } }

/* Кольцо у работающего паблика вверху — крутится */
.story .ring.on { background: none; isolation: isolate; }
.story .ring.on::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, var(--violet), var(--pink), #ffb547, var(--lime), var(--violet)); animation: spin 5s linear infinite; }

/* Полосы прогресса: бежит блик */
.bar i { position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%);
  background-size: 250% 100%; animation: shine 2.6s ease-in-out infinite; }

/* Блик по лаймовым кнопкам при наведении */
.btn.lime, .btn.ink { background-image: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); background-size: 280% 100%; background-position: 160% 0; background-repeat: no-repeat; }
.btn.lime:not(:disabled):hover, .btn.ink:not(:disabled):hover { animation: sweep .8s ease-out; }
@keyframes sweep { from { background-position: 160% 0; } to { background-position: -80% 0; } }

/* Появление при прокрутке */
.rv { opacity: 0; transform: translateY(18px) scale(.985); }
.rv.in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); }

/* Переключатели и галочки — пружинят */
.switch i, .toggle i, .sw i { transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background .2s; }

/* Заголовки разделов мягко проявляются */
#tab.anim .card-h h3 .ic { animation: softIn .5s .1s both; }

/* Шкалы на графиках вырастают снизу */
#tab.anim .bt .b i, #tab.anim .chart .b i, #tab.anim .growth .g { animation: rise2 .7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: bottom; }
#tab.anim .rb-bar i, #tab.anim .ages i, #tab.anim .sexbar i { animation: grow .8s .15s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
@keyframes rise2 { from { transform: scaleY(0); } }

@media (prefers-reduced-motion: reduce) {
  .bg-blobs i, .tile.hero::before, .story .ring.on::before, .bar i::after { animation: none !important; }
  .rv { opacity: 1; transform: none; }
}
.card.spread { display: flex; flex-direction: column; justify-content: space-between; }
.cm-log { display: flex; flex-direction: column; }
.cm-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 20px; color: var(--muted); }
.cm-empty svg { width: 34px; height: 34px; padding: 14px; box-sizing: content-box; border-radius: 18px; background: var(--surface-2); color: var(--violet); animation: floaty 4s ease-in-out infinite; }
.cm-empty b { color: var(--text); font-size: 15px; }
.cm-empty span { max-width: 300px; font-size: 13px; line-height: 1.5; }
@keyframes floaty { 50% { transform: translateY(-5px); } }
/* Нижняя панель в тёмной теме: кнопки читаются, лаймовая — лаймовая */
:root[data-theme="dark"] .dock .btn { background: rgba(0, 0, 0, .07) !important; color: var(--ink-text) !important; border-color: transparent !important; }
:root[data-theme="dark"] .dock .btn:hover { background: rgba(0, 0, 0, .14) !important; }
:root[data-theme="dark"] .dock .btn.lime { background-color: var(--lime) !important; color: var(--lime-ink) !important; }
@media (max-width: 720px) {
  .hero-stats > div { padding: 12px 12px 11px; }
  .hero-stats small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; max-width: 100%; }
}
@media (max-width: 720px) {
  .sch-head .row { flex-direction: column; align-items: stretch; gap: 12px; }
  .sch-head .seg { align-self: flex-start; }
  .card-h { flex-wrap: wrap; row-gap: 10px; }
  .card-h h3 { flex: 1 1 100%; }
  .card-h:has(> h3:only-child) h3 { flex: 1; }
}
/* Прогресс переноса отложки */
.toast.prog { align-items: flex-start; min-width: 320px; }
.toast.prog .spin { margin-top: 3px; color: var(--lime); }
.toast.prog b { display: block; font-size: 13.5px; }
.toast.prog small { display: block; font-weight: 600; opacity: .65; font-size: 12px; margin-top: 2px; }
.toast.prog .bar { margin-top: 8px; height: 6px; background: rgba(255, 255, 255, .14); }
.toast.prog .bar i { background: var(--lime); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 480px) { [data-act="sch-random"] { font-size: 0; gap: 0; width: 36px; padding: 0; justify-content: center; } }

/* ===== Знакомство с кабинетом ===== */
.tour { position: fixed; inset: 0; z-index: 300; animation: fade .25s; }
.tour.out { opacity: 0; transition: opacity .25s; }
.tour-block { position: absolute; inset: 0; }
.tour-hole { position: fixed; pointer-events: none; border-radius: 20px; box-shadow: 0 0 0 9999px rgba(12, 12, 20, .62), 0 0 0 2px var(--lime), 0 0 30px 4px rgba(212, 248, 113, .35);
  transition: left .45s cubic-bezier(.3, 1.1, .4, 1), top .45s cubic-bezier(.3, 1.1, .4, 1), width .45s cubic-bezier(.3, 1.1, .4, 1), height .45s cubic-bezier(.3, 1.1, .4, 1), border-radius .45s; }
.tour-hole.center { box-shadow: 0 0 0 9999px rgba(12, 12, 20, .62); }
.tour-hole::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--lime); animation: tourPulse 1.8s ease-out infinite; }
.tour-hole.center::after { display: none; }
@keyframes tourPulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }
.tour-tip { position: fixed; z-index: 2; width: 360px; padding: 20px 20px 16px; border-radius: 22px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transition: left .45s cubic-bezier(.3, 1.1, .4, 1), top .45s cubic-bezier(.3, 1.1, .4, 1); }
.tour-tip.in { animation: tourIn .35s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes tourIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.tour-tip[data-side="center"] { width: min(400px, calc(100vw - 24px)); text-align: center; padding: 28px 26px 20px; }
.tour-tip[data-side="center"].in { animation: tourInC .4s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes tourInC { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
.tour-tip[data-side="below"]::before, .tour-tip[data-side="above"]::before { content: ""; position: absolute; left: var(--ax); width: 14px; height: 14px; background: var(--surface); border: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.tour-tip[data-side="below"]::before { top: -8px; border-right: 0; border-bottom: 0; }
.tour-tip[data-side="above"]::before { bottom: -8px; border-left: 0; border-top: 0; }
.tour-n { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--violet); text-transform: uppercase; }
.tour-tip h3 { margin: 6px 0 6px; font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.tour-tip[data-side="center"] h3 { font-size: 22px; }
.tour-tip p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; font-weight: 500; }
.tour-f { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.tour-tip[data-side="center"] .tour-f { justify-content: center; flex-wrap: wrap; }
.tour-dots { display: flex; gap: 4px; margin-right: auto; }
.tour-tip[data-side="center"] .tour-dots { flex-basis: 100%; justify-content: center; margin: 0 0 12px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); transition: width .3s, background .3s; }
.tour-dots i.done { background: var(--violet); opacity: .45; }
.tour-dots i.on { width: 18px; background: var(--violet); }

/* ===== Экран входа: ссылки на сайт ===== */
.logo-link { text-decoration: none; color: inherit; }
.auth-about { text-decoration: none; height: 38px; }
.auth-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; color: var(--violet); font-weight: 800; text-decoration: none; font-size: 14.5px; }
.auth-more svg { transition: transform .2s; }
.auth-more:hover svg { transform: translateX(4px); }
.af-legal { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }
.af-legal a { color: var(--text-2); font-weight: 700; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; max-width: 1040px; margin: -30px auto 30px; font-size: 13px; font-weight: 700; }
.auth-foot a { color: var(--muted); text-decoration: none; }
.auth-foot a:hover { color: var(--text); }
@media (max-width: 720px) { .auth-about { display: none; } .auth-foot { margin-top: 0; } }

/* ===== Подвал кабинета — тонкая строка в самом низу ===== */
.app-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin: 56px 0 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.app-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.app-foot a { color: var(--muted); text-decoration: none; transition: color .15s; }
.app-foot a:hover { color: var(--text); }
/* матовая полоса под прилипшим меню — с запасом ниже строки разделов */
.navwrap::before { bottom: -54px; -webkit-mask: linear-gradient(#000 calc(100% - 40px), transparent); mask: linear-gradient(#000 calc(100% - 40px), transparent);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); }
/* строка разделов на прилипшем меню — своя стеклянная подложка, не сливается с полосой */
#subnav .subnav { transition: background .25s, box-shadow .25s, border-color .25s; }
.navwrap.stuck #subnav .subnav { background: var(--glass); border-color: var(--line-2); box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.navwrap.stuck #subnav .subnav button { color: var(--text); }
:root[data-theme="dark"] .navwrap.stuck #subnav .subnav { background: rgba(32, 32, 42, .9); border-color: rgba(255, 255, 255, .1); }

/* знак VKFlow: «V» со стрелкой роста на фиолетовом переходе */
.logo-mark, .s-logo-mark { background: linear-gradient(135deg, #4b3fd1 0%, #1a1730 62%, #121216 100%) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 14px rgba(75, 63, 209, .28); }
.logo-mark::after, .s-logo-mark::after { display: none !important; }
.logo-mark svg, .s-logo-mark svg { width: 100% !important; height: 100% !important; }

/* знак VKFlow — шевроны на чёрном */
.logo-mark, .s-logo-mark { background: #16161a !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06) !important; }
:root[data-theme="dark"] .logo-mark, :root[data-theme="dark"] .s-logo-mark { background: #1c1c24 !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12) !important; }

/* смена темы — мгновенная: на время переключения анимации цвета отключены */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: none !important; }
