/* ProRost 2.0 — повтор интерфейса 1.0 по скриншотам владельца */
:root {
  --bg: #000;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --chip: #3a3a3c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --muted: #8e8e93;
  --soft: #c7c7cc;
  --gold: #e8d08a;
  --gold-hi: #f3dfa0;
  --gold-lo: #b8984f;
  --gold-ink: #1a1405;
  --cream: #ead39b;
  --green: #34c759;
  --red: #ff453a;
  --coral: #ff7a70;
  --wheel-label: #c7c7cc;
  --wheel-value: #e8d08a;
  --wheel-grid: rgba(255, 255, 255, 0.08);
  --wheel-axis: rgba(255, 255, 255, 0.06);
  --wheel-hi: #f3dfa0;
  --wheel-lo: #c9a24f;
  --ring-track: rgba(255, 255, 255, 0.08);
  --ring-negative-track: rgba(255, 122, 112, 0.22);
  --radius: 26px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100dvh; padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom); }
main { max-width: 440px; margin: 0 auto; padding: 48px 0; }
button { font: inherit; cursor: pointer; border: 0; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--card-2);
  border: 1px solid transparent; border-radius: 14px; padding: 15px 16px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold-lo); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
label.f { display: block; color: var(--muted); font-size: 14px; margin: 14px 0 8px; }

/* Кнопки */
.btn { display: block; width: 100%; padding: 18px; border-radius: 16px; font-size: 17px; font-weight: 600; text-align: center; }
.btn.gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #d9bb6d); color: var(--gold-ink); }
.btn.dark { background: var(--card-2); color: var(--text); }
.btn.danger { background: var(--card-2); color: var(--red); }
.btn + .btn { margin-top: 10px; }
.btn[disabled] { opacity: 0.55; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.pill.gold { background: var(--gold); color: var(--gold-ink); }
.pill.dark { background: var(--card-2); color: var(--soft); }
.linkgold { background: none; color: var(--cream); font-weight: 600; font-size: 17px; padding: 14px 0 0; width: 100%; }

/* Вход */
.brand { color: var(--gold); font-weight: 700; letter-spacing: 0.14em; font-size: 12px; margin-bottom: 24px; }
.login h1 { font-size: 40px; line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.03em; font-weight: 800; }
.login h1 .g { color: var(--gold); }
.login p { color: var(--muted); line-height: 1.5; margin: 0 0 24px; font-size: 17px; }
.login .btn { margin-top: 16px; }
.login .linkbtn { background: none; color: var(--muted); width: 100%; margin-top: 10px; padding: 10px; }
input.code { letter-spacing: 0.4em; text-align: center; font-size: 26px; }
.error { color: var(--red); min-height: 20px; margin-top: 12px; font-size: 15px; }

/* Каркас */
body.in main { padding: 20px 0 150px; max-width: 560px; }
.avatars { display: flex; gap: 16px; margin-bottom: 20px; }
.ava { position: relative; width: 64px; text-align: center; }
.ava .c { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 700;
  background: linear-gradient(145deg, #c15b8a, #7d3fa8); border: 2px solid var(--gold-lo); }
.ava img.sh { position: absolute; right: -8px; top: 34px; width: 32px; height: 32px; }
.ava .plus { position: absolute; left: -2px; top: 42px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-size: 16px; font-weight: 800; display: grid; place-items: center; }
.ava small { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }
.date { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.h1 { font-size: 30px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 8px; }
.sub { color: var(--muted); font-size: 15px; line-height: 1.35; margin: 0 0 18px; }
.h2 { font-size: 22px; font-weight: 800; margin: 28px 0 14px; }

/* Карточки */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.card.hero { background: radial-gradient(120% 70% at 30% 0%, rgba(232, 208, 138, 0.13), transparent 60%), #17140d; border-color: rgba(232, 208, 138, 0.28); }
.cap { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cap.gold { color: var(--gold); justify-content: center; }
.cap.red { color: var(--red); }
.cap .r { color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.muted { color: var(--muted); }
.neg { color: var(--red); }
.pos { color: var(--green); }
.cream { color: var(--cream); }
.empty { color: var(--muted); font-size: 16px; line-height: 1.45; margin: 0; }
.bar { height: 6px; background: var(--chip); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }

/* Кольцо цели */
.ring { position: relative; width: 74%; max-width: 300px; aspect-ratio: 1; margin: 6px auto 22px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .pct { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.ring .amt { font-size: 21px; font-weight: 800; margin-top: 10px; }
.ring .of { color: var(--muted); font-size: 16px; margin-top: 6px; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: rgba(255, 255, 255, 0.06); border-radius: 20px; padding: 18px 8px; text-align: center; }
.stats3 b { display: block; font-size: 17px; white-space: nowrap; font-weight: 700; }
.stats3 span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.25; }

/* Метки */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, 0.1); color: var(--soft); white-space: nowrap; }
.chip.gold { background: var(--gold); color: var(--gold-ink); }
.chip.goldsoft { background: rgba(232, 208, 138, 0.22); color: var(--gold); }
.chip.red { background: rgba(255, 69, 58, 0.18); color: var(--red); }
.chip.green { background: rgba(52, 199, 89, 0.14); color: var(--green); }

/* Задачи */
.tasks { list-style: none; margin: 0; padding: 0; }
.task { position: relative; display: flex; gap: 16px; padding: 18px 70px 18px 0; border-top: 1px solid var(--line); }
.tasks > .task:first-child { border-top: 0; }
.task.hl { margin: 6px -14px; padding: 18px 70px 18px 14px; border: 0; border-left: 3px solid var(--gold); border-radius: 18px; background: rgba(232, 208, 138, 0.12); }
.task.over { margin: 6px -14px; padding: 18px 70px 18px 14px; border: 0; border-left: 3px solid var(--red); border-radius: 18px; background: rgba(255, 69, 58, 0.12); }
.task + .task.hl, .task + .task.over { margin-top: 10px; }
.check { width: 34px; height: 34px; flex: none; border-radius: 50%; background: none; border: 2px solid var(--gold); color: var(--gold); font-size: 18px; line-height: 1; padding: 0; }
.task.over .check { border-color: var(--red); color: var(--red); }
.task.done .check { background: var(--gold); color: var(--gold-ink); }
.task.done .tt { color: var(--muted); text-decoration: line-through; }
.tt { font-size: 17px; line-height: 1.32; }
.more { position: absolute; right: 0; top: 16px; width: 50px; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--soft); font-size: 18px; letter-spacing: 1px; padding: 0; }
.task.hl .more, .task.over .more { right: 14px; }
.foot-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.toolbar .sp { flex: 1; }
.dashed { width: 100%; padding: 18px; border: 1.5px dashed rgba(232, 208, 138, 0.45); border-radius: 18px; background: rgba(232, 208, 138, 0.05); color: var(--gold); font-weight: 600; font-size: 17px; margin-bottom: 16px; }

/* Сферы */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sph { position: relative; min-height: 200px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; overflow: hidden; text-align: left; color: var(--text); }
.sph b { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; }
.sph .d { color: var(--muted); font-size: 14px; line-height: 1.3; margin-top: 4px; }
.sph .chips { flex-direction: column; align-items: flex-start; gap: 6px; }
.sph .chip { font-size: 13px; padding: 4px 10px; }
.sph .chips { padding-bottom: 64px; }
.sph img { position: absolute; right: 10px; bottom: 10px; width: 64px; height: 64px; }

/* Звание и плитки */
.rank { display: flex; gap: 18px; align-items: center; }
.rank img { width: 96px; height: 96px; flex: none; }
.rank .nm { color: var(--gold); font-size: 26px; font-weight: 800; }
.rank .lv { color: var(--muted); font-size: 16px; margin-top: 4px; }
.between { display: flex; justify-content: space-between; color: var(--muted); font-size: 16px; margin-top: 20px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.tiles.two { grid-template-columns: 1fr 1fr; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 12px; min-width: 0; }
.tile .cap { margin-bottom: 8px; font-size: 11px; letter-spacing: 0.06em; }
.tile b { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.tile b.g { color: var(--gold); }
.tile b img { width: 30px; height: 30px; }
.tile span { color: var(--muted); font-size: 15px; display: block; margin-top: 2px; }
.chal { padding: 14px 0; border-top: 1px solid var(--line); }
.chal:first-of-type { border-top: 0; }
.chal .row { display: flex; justify-content: space-between; font-size: 17px; }

/* Деньги */
.money3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; background: rgba(255, 255, 255, 0.06); border-radius: 20px; padding: 18px 12px; gap: 6px; }
.money3 b { display: block; font-size: 16px; white-space: nowrap; font-weight: 800; }
.money3 span { color: var(--muted); font-size: 14px; line-height: 1.25; }
.acc { display: flex; justify-content: space-between; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.acc:first-of-type { border-top: 0; padding-top: 0; }
.acc .n { font-size: 16px; line-height: 1.3; }
.acc .n small { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.acc .s { text-align: right; font-size: 17px; font-weight: 700; white-space: nowrap; }
.monthnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.monthnav button { width: 52px; height: 52px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 24px; }
.monthnav b { font-size: 21px; }
.bigsum { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.accgrid .card { padding: 22px 20px; margin: 0; }
.accgrid .t { font-size: 16px; font-weight: 600; line-height: 1.3; }
.accgrid .v { color: var(--cream); font-size: 23px; font-weight: 800; margin: 10px 0 4px; }
.accgrid .chips { margin-top: 8px; }
.op { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.op:first-of-type { border-top: 0; padding-top: 0; }
.op .n { font-size: 17px; }
.op .n small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.op .s { font-size: 18px; font-weight: 700; white-space: nowrap; }

/* Вкладки «Ещё» */
.segcap { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 6px; margin-bottom: 20px; }
.segcap button { flex: 1; background: none; color: var(--muted); padding: 12px 4px; border-radius: 15px; font-size: 16px; font-weight: 600; }
.segcap button.on { background: #111; color: #fff; border: 1px solid rgba(255, 255, 255, 0.12); }
.tariff { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.tariff:first-of-type { border-top: 0; padding-top: 0; }
.tariff b { font-size: 19px; }
.tariff .p { font-size: 22px; font-weight: 800; }

/* Нижний лист */
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--card); border-radius: 28px 28px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
.sheet .h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet .h b { font-size: 22px; }
.sheet .x { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); color: var(--soft); font-size: 18px; }
.sheet .row { display: flex; gap: 10px; }
.sheet .row > * { flex: 1; min-width: 0; }
.segs { display: flex; flex-wrap: wrap; gap: 8px; }
.segs button { padding: 10px 16px; border-radius: 999px; background: var(--card-2); color: var(--soft); font-weight: 600; font-size: 15px; }
.segs button.on { background: var(--gold); color: var(--gold-ink); }

/* Нижнее меню */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: linear-gradient(180deg, rgba(10, 10, 10, 0.92), #000); border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 6px calc(14px + env(safe-area-inset-bottom)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.tabs .wrap { display: flex; max-width: 560px; margin: 0 auto; }
.tabs button { position: relative; flex: 1; background: none; color: #d0d0d0; font-size: 13px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 0; }
.tabs svg { width: 28px; height: 28px; }
.tabs button span { color: #b8b8bc; }
.tabs button.on, .tabs button.on span { color: var(--gold); }
.tabs button.on::before { content: ""; position: absolute; top: -11px; width: 36px; height: 3px; border-radius: 2px; background: var(--gold); }

/* Кнопка ИИ */
.ai-fab { position: fixed; z-index: 21; right: max(12px, calc(50vw - 270px)); bottom: calc(108px + env(safe-area-inset-bottom)); width: 84px; height: 84px; padding: 0; background: none; border-radius: 50%; }
.ai-fab::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(232, 208, 138, 0.28); background: radial-gradient(circle, rgba(232, 208, 138, 0.12), transparent 70%); }
.ai-fab img { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 6px 14px rgba(232, 180, 80, 0.35)); }
.ai-fab i { position: absolute; top: -2px; right: -6px; font-style: normal; font-size: 13px; font-weight: 800; color: #111; background: var(--gold); border: 2px solid #111; border-radius: 999px; padding: 2px 8px; }

/* Чат */
.chat { display: flex; flex-direction: column; height: 82dvh; }
.chat > .h { flex-wrap: wrap; gap: 10px; }
.neuro-memory { overflow-wrap: anywhere; }
.neuro-memory [hidden] { display: none !important; }
.assistant-packs .pack-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 14px; line-height: 1.4; }
.assistant-packs .pack-consent input { flex: none; width: 20px; height: 20px; min-height: 20px; margin: 0; accent-color: var(--gold); }
.assistant-packs .pack-consent a { color: var(--gold); }
.neuro-memory .memory-entry { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.neuro-memory .memory-entry p { white-space: pre-wrap; }
.neuro-memory form { margin-top: 20px; }
.neuro-memory label { display: block; margin-bottom: 12px; }
.neuro-memory :is(textarea, select) { display: block; width: 100%; min-width: 0; margin-top: 6px; }
.chat .msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 8px 0 12px; }
.msg { max-width: 86%; padding: 13px 16px; border-radius: 20px; line-height: 1.45; font-size: 17px; }
.msg.assistant { background: var(--card-2); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.user { background: rgba(232, 208, 138, 0.18); align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.typing { color: var(--muted); }
.msg.error { background: rgba(255, 69, 58, 0.15); color: var(--red); }
.chat .sugg { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.chat .sugg button { padding: 10px 16px; border-radius: 999px; background: var(--card-2); color: var(--soft); font-size: 15px; font-weight: 600; }
.chat form { display: flex; gap: 8px; align-items: flex-end; }
.chat textarea { flex: 1; border-radius: 24px; resize: none; padding: 13px 18px; }
.chat form button { width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-size: 22px; font-weight: 800; }
.chat .note { color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.35; }

.toast { position: fixed; left: 50%; bottom: 210px; transform: translateX(-50%); background: #2c2c2e; border-radius: 999px; padding: 12px 20px; z-index: 60; font-weight: 600; }
@media (min-width: 900px) { body.in main { max-width: 640px; } .grid2.sph-grid { grid-template-columns: repeat(3, 1fr); } }
.sph { font: inherit; width: 100%; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cw { color: var(--muted); font-size: 12px; font-weight: 700; padding: 6px 0; }
.cd { position: relative; height: 46px; border-radius: 50%; background: none; color: var(--text); font-size: 17px; font-weight: 500; padding: 0 0 8px; }
.cd.today { box-shadow: inset 0 0 0 2px var(--gold); }
.cd.sel { background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.cd i { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); min-width: 6px; height: 6px; border-radius: 3px; background: var(--gold); font-size: 9px; font-style: normal; line-height: 6px; color: transparent; }
.cd i.r { background: var(--red); }
.cd.sel i { background: var(--gold-ink); }
.cd i.done, .cd.sel i.done { background: #8e8e93; }
.cd.sel i.r { background: var(--red); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); vertical-align: middle; margin-right: 4px; }
.dot.r { background: var(--red); }
.dot.done { background: #8e8e93; }
.fab-plus { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); font-size: 30px; font-weight: 600; box-shadow: 0 0 22px rgba(232, 208, 138, 0.35); flex: none; }
.chal .row b { font-weight: 600; }
.toolbar .pill { padding: 8px 13px; font-size: 14px; white-space: nowrap; }
.toolbar { gap: 6px; }
.lnk { display: block; background: none; padding: 4px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; text-align: left; }
.acc .s .lnk { text-align: right; margin-left: auto; }
.lnk.gold { color: var(--cream); font-weight: 600; }
.lnk[disabled] { opacity: 0.35; }
.acc .s { display: flex; flex-direction: column; align-items: flex-end; }
.op[data-op], .op[data-tr] { cursor: pointer; }
.xpbars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 110px; align-items: end; }
.xpbars div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.xpbars i { width: 100%; max-width: 14px; background: var(--gold); border-radius: 4px 4px 2px 2px; }
.xpbars span { color: var(--muted); font-size: 10px; }
html, body { overflow-x: hidden; }

/* ===== Премиальная полировка ===== */
:root {
  --card: #18181a;
  --card-top: #1e1e21;
  --hair: rgba(255, 255, 255, 0.07);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-feature-settings: "tnum" 1, "ss01" 1;
}
body { background: radial-gradient(120% 60% at 50% -10%, #17140c 0%, #050505 45%, #000 70%) fixed; }
.h1, .bigsum, .ring .pct, .login h1 { font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, Inter, sans-serif; letter-spacing: -0.025em; }
.card, .sph, .tile {
  background: linear-gradient(180deg, var(--card-top), var(--card));
  border: 0.5px solid var(--hair); box-shadow: var(--shadow);
}
.card.hero {
  background: radial-gradient(130% 80% at 20% -10%, rgba(232, 208, 138, 0.18), transparent 55%),
              linear-gradient(180deg, #1d1910, #121009);
  border: 0.5px solid rgba(232, 208, 138, 0.32);
  box-shadow: 0 1px 0 rgba(255, 236, 190, 0.08) inset, 0 24px 60px -24px rgba(201, 162, 79, 0.35);
}
.btn, .pill, .check, .sph, .chip, .tabs button, .monthnav button, .fab-plus, .lnk, .more, .x { transition: transform 0.18s var(--ease), background-color 0.2s, opacity 0.2s, box-shadow 0.2s; }
.btn:active, .pill:active, .sph:active, .monthnav button:active, .fab-plus:active, .more:active { transform: scale(0.97); }
.check:active { transform: scale(0.9); }
.btn.gold, .pill.gold, .fab-plus {
  background: linear-gradient(180deg, #f7e7b6 0%, #e9cf88 45%, #d6b465 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 -1px 0 rgba(120, 85, 20, 0.35) inset, 0 10px 24px -12px rgba(232, 190, 90, 0.55);
}
.btn.dark, .pill.dark { background: rgba(255, 255, 255, 0.07); border: 0.5px solid var(--hair); }
.chip { background: rgba(255, 255, 255, 0.08); font-weight: 600; letter-spacing: -0.005em; }
.cap { letter-spacing: 0.14em; font-size: 12px; }
.task.hl { background: linear-gradient(90deg, rgba(232, 208, 138, 0.16), rgba(232, 208, 138, 0.06)); }
.task.over { background: linear-gradient(90deg, rgba(255, 69, 58, 0.17), rgba(255, 69, 58, 0.06)); }
.tabs { background: rgba(12, 12, 13, 0.72); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-top: 0.5px solid var(--hair); }
.sheet { background: linear-gradient(180deg, #202023, #18181a); border-top: 0.5px solid var(--hair); animation: sheetUp 0.32s var(--ease); }
.sheet-bg { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn 0.2s ease; }
#screen.enter > * { animation: rise 0.42s var(--ease) both; }
#screen.enter > *:nth-child(2) { animation-delay: 0.03s; }
#screen.enter > *:nth-child(3) { animation-delay: 0.06s; }
#screen.enter > *:nth-child(4) { animation-delay: 0.09s; }
#screen.enter > *:nth-child(5) { animation-delay: 0.12s; }
#screen.enter > *:nth-child(n+6) { animation-delay: 0.15s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ring circle:last-child { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12)); transition: stroke-dasharray 0.9s var(--ease); }
.bar i { background: linear-gradient(90deg, #c9a24f, #f3dfa0); box-shadow: 0 0 10px rgba(232, 208, 138, 0.35); }
.ava .c { box-shadow: 0 0 0 3px #000, 0 0 0 4px rgba(232, 208, 138, 0.55); border: 0; }
.side-head, .side-foot { display: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===== Компьютер: левая боковая панель ===== */
@media (min-width: 1000px) {
  body.in { padding: 0; }
  body.in main { max-width: none; margin: 0 0 0 280px; padding: 40px 56px 80px; }
  body.in #screen { max-width: 980px; margin: 0 auto; }
  .tabs {
    top: 0; bottom: 0; right: auto; width: 280px; padding: 28px 18px; display: flex; flex-direction: column;
    background: linear-gradient(180deg, rgba(20, 18, 12, 0.92), rgba(8, 8, 9, 0.96));
    border-top: 0; border-right: 0.5px solid var(--hair);
  }
  .side-head { display: block; margin-bottom: 26px; }
  .logo { font-family: "SF Pro Display", -apple-system, sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; padding: 0 12px; }
  .logo span { color: var(--gold); }
  .side-me { display: flex; gap: 12px; align-items: center; margin-top: 22px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 0.5px solid var(--hair); }
  .side-me .c { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(145deg, #c15b8a, #7d3fa8); box-shadow: 0 0 0 2px #000, 0 0 0 3px rgba(232, 208, 138, 0.5); }
  .side-me b { display: block; font-size: 15px; }
  .side-me small { display: block; color: var(--muted); font-size: 12px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs .wrap { flex-direction: column; gap: 4px; max-width: none; margin: 0; }
  .tabs button { flex: none; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 13px 14px; border-radius: 14px; font-size: 16px; color: var(--soft); }
  .tabs button span { color: inherit; }
  .tabs button:hover { background: rgba(255, 255, 255, 0.05); }
  .tabs button.on { background: linear-gradient(90deg, rgba(232, 208, 138, 0.16), rgba(232, 208, 138, 0.04)); color: var(--gold); }
  .tabs button.on::before { top: 12px; bottom: 12px; left: 0; width: 3px; height: auto; }
  .tabs svg { width: 22px; height: 22px; }
  .side-foot { display: block; margin-top: auto; padding: 0 12px; color: var(--muted); font-size: 13px; line-height: 1.4; }
  .side-foot span { color: var(--gold); }
  .avatars { display: none; }
  .ai-fab { right: 36px; bottom: 36px; }
  .h1 { font-size: 40px; }
  .grid2.sph-grid, .grid2.accgrid { grid-template-columns: repeat(3, 1fr); }
  .tiles.two { grid-template-columns: repeat(2, 1fr); }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 28px; max-width: 520px; padding: 28px; border: 0.5px solid var(--hair); }
  .chat { height: 72dvh; }
  /* Главная: цель и фокус рядом */
  .home-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; align-items: start; }
  .home-grid > * { margin: 0; }
}
.sph { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.home-grid > * { margin-top: 0 !important; }
.home-grid { margin-top: 18px; }
@media (max-width: 999px) { .home-grid > * + * { margin-top: 16px !important; } }
.sleepbars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 90px; align-items: end; margin-top: 14px; }
.sleepbars div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.sleepbars i { width: 70%; background: linear-gradient(180deg, #f3dfa0, #c9a24f); border-radius: 6px; }
.sleepbars span { color: var(--muted); font-size: 11px; }
.sw { position: relative; width: 51px; height: 31px; flex: none; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 999px; background: #3a3a3c; transition: background 0.2s; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.25s var(--ease); }
.sw input:checked + i { background: linear-gradient(90deg, #d6b465, #e9cf88); }
.sw input:checked + i::after { transform: translateX(20px); }
.tinp { display: inline-block; width: auto; padding: 4px 8px; font-size: 15px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); }
select.tinp { padding-right: 26px; background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; }

/* ===== Сверка с 1.0: вес шрифтов и анимации ===== */
.h1, .title-xl, .page-title, .login h1 { font-weight: 700; letter-spacing: -0.025em; }
.bigsum, .ring .pct, .tile b, .rank .nm, .money3 b, .accgrid .v, .stats3 b, .ring .amt, .h2, .sph b, .logo { font-weight: 700; }
.btn, .pill, .chip, .tabs button { font-weight: 600; }
.chip { font-weight: 500; }
.ring circle:last-child { transition: stroke-dasharray 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar i { transform-origin: left; animation: fill 1.1s 0.15s var(--ease) both; }
@keyframes fill { from { transform: scaleX(0); } }
.sph img, .rank img { transition: transform 0.45s var(--ease); }
.sph:hover img { transform: scale(1.1) rotate(-4deg); }
.ai-fab img { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-4deg); } }
.card { transition: transform 0.35s var(--ease), border-color 0.35s; }
@media (hover: hover) { .card:hover, .sph:hover, .tile:hover { border-color: rgba(232, 208, 138, 0.22); } }

/* Масштаб как в 1.0: на телефоне всё на ~14% компактнее */
@media (max-width: 999px) {
  body.in #screen { zoom: 0.86; }
  .tabs svg { width: 24px; height: 24px; }
  .tabs button { font-size: 11.5px; gap: 4px; }
  .ai-fab { width: 72px; height: 72px; bottom: calc(96px + env(safe-area-inset-bottom)); }
  .sph img { width: 76px; height: 76px; }
  .sph { min-height: 0; padding-bottom: 18px; }
  .sph .chips { padding-bottom: 8px; }
}
@media (max-width: 999px) {
  body.in { padding-left: 12px; padding-right: 12px; }
  .ava, .ava .c { width: 52px; height: 52px; }
  .ava .c { font-size: 20px; }
  .ava img.sh { top: 26px; width: 26px; height: 26px; }
  .ava .plus { top: 32px; }
  .sph .chips { max-width: calc(100% - 64px); }
}
.jobi { display: block; width: 100%; text-align: left; background: rgba(255, 255, 255, 0.06); border: 0.5px solid var(--hair); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; color: var(--text); }
.jobi b { display: block; font-size: 16px; font-weight: 600; }
.jobi span { color: var(--muted); font-size: 14px; }
@media (max-width: 999px) {
  .card { padding: 20px; margin-bottom: 12px; border-radius: 22px; }
  .bigsum { font-size: 30px; }
  .h2 { margin: 22px 0 12px; }
}
.cd.o { color: #48484a; display: grid; place-items: start center; padding-top: 12px; height: 46px; }
.emptyday { text-align: center; padding: 22px 10px 6px; }
.emptyday i { display: block; width: 26px; height: 26px; margin: 0 auto 12px; border-radius: 50%; border: 1.5px dashed #636366; }
.segbtn { padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.chat form .ic { width: 40px; height: 40px; border-radius: 50%; background: none; color: var(--muted); font-size: 26px; font-weight: 300; padding: 0; flex: none; }
.chat form .inp { flex: 1; position: relative; display: flex; }
.chat form .inp textarea { padding-right: 46px; }
.chat form .mic { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; background: none; color: var(--muted); padding: 7px; }
.chat form .send { width: 46px; height: 46px; flex: none; }
@media (min-width: 1000px) { .trio { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-bottom: 16px; } .trio > .card { margin: 0; } }
/* Боковое меню как в 1.0: девять разделов, без карточки профиля */
.tabs .t-path, .tabs .t-rewards, .tabs .t-settings, .tabs .t-sub { display: none; }
@media (min-width: 1000px) {
  .tabs { width: 218px; padding: 30px 14px; background: #121214; border-right: 0.5px solid var(--hair); }
  body.in main { margin-left: 218px; padding: 36px 64px 80px; }
  .logo { color: var(--gold); font-size: 22px; font-weight: 700; padding: 0 12px; letter-spacing: -0.01em; }
  .side-head { margin-bottom: 34px; }
  .side-me, .side-foot { display: none !important; }
  .tabs .t-more { display: none; }
  .tabs .t-path, .tabs .t-rewards, .tabs .t-settings, .tabs .t-sub { display: flex; }
  .tabs .wrap { gap: 6px; }
  .tabs button { padding: 12px 12px; font-size: 16px; font-weight: 500; color: #d0d0d0; }
  .tabs button.on { background: #2a2a2d; color: var(--gold); }
  .tabs button.on::before { display: none; }
  .avatars { display: flex; }
  .more-tabs { display: none; }
  body.in #screen { max-width: 920px; margin: 0; }
}
.cd { width: 46px; justify-self: center; }
.cd.o { width: 46px; }
@media (min-width: 1000px) {
  body.in #screen { zoom: 0.8; max-width: 1150px; }
  .tabs button { font-size: 15px; padding: 11px 12px; }
  .tabs svg { width: 21px; height: 21px; }
  .ava, .ava .c { width: 52px; height: 52px; }
  .ava .c { font-size: 20px; }
  .ava img.sh { top: 26px; width: 26px; height: 26px; }
  .ava .plus { top: 32px; }
  .calwrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
  .calwrap > .card { margin: 0; }
  .h1 { font-size: 32px; }
}
@media (min-width: 1000px) { .cal { row-gap: 14px; } .cd, .cd.o { height: 52px; font-size: 19px; } .calwrap b[style*="font-size:24px"] { font-size: 34px !important; } }
.toast.undo { display: flex; gap: 18px; align-items: center; padding: 10px 10px 10px 20px; }
.toast.undo button { background: var(--gold); color: var(--gold-ink); border-radius: 999px; padding: 8px 14px; font-weight: 600; }
.segs .ex { font-size: 13px; padding: 7px 12px; font-weight: 500; }
.stepbars { position: relative; display: grid; gap: 3px; height: 160px; align-items: end; margin-right: 46px; }
.stepbars div { height: 100%; display: flex; align-items: flex-end; }
.stepbars i { width: 100%; border-radius: 3px 3px 1px 1px; background: #3a3a3c; }
.stepbars i.ok { background: linear-gradient(180deg, #f3dfa0, #c9a24f); }
.stepbars i.low { background: linear-gradient(180deg, #ff9b7a, #e0573f); }
.stepbars .goal { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(232, 208, 138, 0.6); }

/* ===== Звания и сферы: выпрыгивание, парение, пульс, ореол Легенды ===== */
.rank img { animation: pop 0.7s var(--ease) both, hover 4.2s 0.7s ease-in-out infinite; filter: drop-shadow(0 8px 22px rgba(232, 190, 90, 0.35)); }
.rank { position: relative; }
.rank::before { content: ""; position: absolute; left: 0; top: 50%; width: 96px; height: 96px; margin-top: -48px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 223, 160, 0.38), transparent 68%); animation: pulse 3s ease-in-out infinite; pointer-events: none; }
.rank.legend::before { width: 130px; height: 130px; margin: -65px 0 0 -17px; background: conic-gradient(from 0deg, rgba(243, 223, 160, 0.55), transparent 30%, rgba(243, 223, 160, 0.45) 55%, transparent 80%, rgba(243, 223, 160, 0.55));
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 48%, #000 62%, transparent 70%); mask: radial-gradient(circle, transparent 46%, #000 48%, #000 62%, transparent 70%); animation: spin 9s linear infinite; }
.ranks8 > div { perspective: 500px; }
.ranks8 img { transition: transform 0.45s var(--ease), filter 0.45s; animation: pop 0.6s var(--ease) both; }
.ranks8 > div:nth-child(2) img { animation-delay: 0.05s; } .ranks8 > div:nth-child(3) img { animation-delay: 0.1s; }
.ranks8 > div:nth-child(4) img { animation-delay: 0.15s; } .ranks8 > div:nth-child(5) img { animation-delay: 0.2s; }
.ranks8 > div:nth-child(6) img { animation-delay: 0.25s; } .ranks8 > div:nth-child(7) img { animation-delay: 0.3s; }
.ranks8 > div:nth-child(8) img { animation-delay: 0.35s; }
.ranks8 > div.cur img { filter: drop-shadow(0 0 14px rgba(243, 223, 160, 0.7)); }
@media (hover: hover) { .ranks8 > div:hover img { transform: rotateY(18deg) rotateX(6deg) translateY(-6px) scale(1.08); } }
.sph img { animation: hover 5s ease-in-out infinite; }
.sph:nth-child(2n) img { animation-delay: -1.6s; } .sph:nth-child(3n) img { animation-delay: -3.1s; }
@keyframes pop { 0% { opacity: 0; transform: translateY(16px) scale(0.6); } 60% { opacity: 1; transform: translateY(-6px) scale(1.06); } 100% { transform: none; } }
@keyframes hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes pulse { 0%, 100% { opacity: 0.45; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rank img, .rank::before, .ranks8 img, .sph img { animation: none; } }

/* ===== Платные возможности: премиальная витрина ===== */
.premium { position: relative; overflow: hidden; border-radius: 30px; padding: 26px; margin: 6px 0 18px; min-height: 286px; isolation: isolate;
  background: linear-gradient(135deg, #17120a 0%, #080807 48%, #16120a 100%);
  border: 0.5px solid rgba(232, 208, 138, 0.42);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 34px 80px -38px rgba(232, 190, 90, 0.58), 0 24px 60px -34px rgba(0, 0, 0, 0.95); }
.premium::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.9;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 42%),
    linear-gradient(28deg, transparent 0 56%, rgba(232, 208, 138, 0.15) 56% 57%, transparent 57%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%); }
.premium::after { content: ""; position: absolute; left: -20%; right: -20%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 241, 194, 0.8), transparent); }
.premium-copy { position: relative; z-index: 2; max-width: 58%; }
.premium .badge { display: inline-flex; gap: 7px; align-items: center; border: 1px solid rgba(232, 208, 138, 0.62); color: var(--gold); border-radius: 999px; padding: 6px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; background: rgba(232, 208, 138, 0.1); box-shadow: 0 0 22px rgba(232, 208, 138, 0.12); }
.premium .badge svg { width: 14px; height: 14px; }
.premium h3 { margin: 15px 0 10px; font-size: clamp(31px, 8vw, 54px); line-height: 0.94; font-weight: 700; letter-spacing: 0;
  color: #fff4d0; text-shadow: 0 18px 44px rgba(232, 208, 138, 0.18); }
.premium p { margin: 0; color: rgba(255, 255, 255, 0.76); font-size: 14px; line-height: 1.5; }
.premium-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.premium-tags span { color: #f5e6b5; background: rgba(255, 255, 255, 0.07); border: 0.5px solid rgba(232, 208, 138, 0.25); border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 600; }
.premium-stage { position: absolute; inset: 0 0 0 44%; z-index: 1; perspective: 900px; }
.premium-stage img { position: absolute; object-fit: contain; pointer-events: none; user-select: none; }
.ps-shield { right: 22%; top: 38px; width: 118px; filter: drop-shadow(0 22px 36px rgba(232, 208, 138, 0.42)); animation: hover 5.4s ease-in-out infinite; }
.ps-trophy { right: 7%; bottom: 34px; width: 112px; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.55)); animation: hover 6s ease-in-out infinite -1.4s; }
.ps-ai { right: 32%; bottom: 26px; width: 96px; filter: drop-shadow(0 18px 24px rgba(54, 213, 136, 0.28)); animation: hover 6.4s ease-in-out infinite -2.6s; }
.ps-card { width: 82px; opacity: 0.92; filter: saturate(1.06) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }
.ps-card-a { right: 4%; top: 26px; transform: rotate(9deg); }
.ps-card-b { right: 43%; top: 116px; transform: rotate(-13deg); }
.ps-card-c { right: 18%; top: 146px; transform: rotate(6deg); }
.paid-grid { display: grid; gap: 16px; }
.paid { position: relative; overflow: hidden; border-radius: 28px; padding: 16px; margin-bottom: 0; min-height: 390px; display: flex; flex-direction: column; color: #fff8e8; isolation: isolate;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 22%, #21180c) 0%, #11100e 42%, #050505 100%);
  border: 0.5px solid color-mix(in srgb, var(--c) 36%, rgba(255, 255, 255, 0.12));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 24px 62px -38px color-mix(in srgb, var(--c) 70%, #000), 0 20px 50px -32px rgba(0, 0, 0, 0.92); }
.paid::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(112deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 44%),
  linear-gradient(0deg, transparent 0 62%, color-mix(in srgb, var(--c) 18%, transparent) 100%); opacity: 0.78; }
.paid::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 55%, #fff), transparent); opacity: 0.8; }
.paid-glow { position: absolute; inset: auto -12% -18% -12%; height: 44%; z-index: -1;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 28%, transparent), transparent); filter: blur(28px); opacity: 0.86; }
.paid-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 2; }
.paid .ic { flex: none; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c) 56%, color-mix(in srgb, var(--c) 66%, #000));
  box-shadow: 0 1.5px 0 rgba(255, 255, 255, 0.6) inset, 0 -2px 0 rgba(0, 0, 0, 0.22) inset, 0 14px 30px -13px color-mix(in srgb, var(--c) 92%, transparent); }
.paid .ic svg { width: 27px; height: 27px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
.paid .st { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.paid .st.ok { background: rgba(52, 199, 89, 0.13); color: #8bf0a6; border: 0.5px solid rgba(139, 240, 166, 0.34); }
.paid .st.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 10px rgba(52, 199, 89, 0.85); }
.paid .st.soon { background: rgba(232, 208, 138, 0.12); color: #f4daa0; border: 0.5px solid rgba(232, 208, 138, 0.3); }
.paid-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; align-items: start; margin-top: 20px; }
.paid h4 { margin: 0 0 8px; font-size: 24px; line-height: 1.05; font-weight: 700; letter-spacing: 0; color: #fff8e8; text-wrap: balance; }
.paid p { margin: 0; color: rgba(255, 255, 255, 0.66); font-size: 13.5px; line-height: 1.46; }
.paid-visual { position: relative; height: 142px; display: grid; place-items: center; align-self: stretch; }
.paid-visual i { position: absolute; inset: 20px 4px 0; border-radius: 24px; transform: skewY(-7deg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 28%, rgba(255, 255, 255, 0.12)), rgba(255, 255, 255, 0.04));
  border: 0.5px solid rgba(255, 255, 255, 0.13); box-shadow: 0 12px 30px -22px color-mix(in srgb, var(--c) 70%, transparent); }
.paid-visual img { position: relative; z-index: 1; max-width: 126px; max-height: 132px; object-fit: contain; filter: saturate(1.08) drop-shadow(0 18px 18px rgba(0, 0, 0, 0.45)); animation: hover 5.4s ease-in-out infinite; }
.paid-visual img.bubble { max-width: 104px; max-height: 104px; }
.paid-visual img.green { filter: hue-rotate(85deg) saturate(1.3) drop-shadow(0 16px 18px rgba(0, 0, 0, 0.42)); }
.paid .pt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 17px 0 15px; }
.paid .pt div { min-width: 0; background: rgba(255, 255, 255, 0.065); border: 0.5px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 11px 9px; font-size: 11.5px; color: rgba(255, 255, 255, 0.74); line-height: 1.24; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset; }
.paid .pt svg { display: block; width: 18px; height: 18px; color: color-mix(in srgb, var(--c) 72%, #fff); margin-bottom: 7px; }
.paid .buy { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 2px; }
.paid .price { flex: none; min-width: 86px; }
.paid .price b { font-size: 27px; font-weight: 700; letter-spacing: 0; display: block; color: #fff2c8; line-height: 1; }
.paid .price small { color: rgba(255, 255, 255, 0.52); font-size: 12px; }
.paid .buybtn { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 12px; margin: 0; border-radius: 17px; font-weight: 700; font-size: 15px; color: #211600;
  background: linear-gradient(180deg, #fff1bf 0%, #e8c066 48%, #b98223 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset, 0 -2px 0 rgba(105, 66, 8, 0.36) inset, 0 13px 28px -14px rgba(232, 190, 90, 0.95); }
.paid .buybtn svg { width: 20px; height: 20px; flex: none; }
.paid .buybtn span { margin-left: auto; font-size: 20px; line-height: 1; } .paid .buybtn.pressed, .paid .buybtn:active { transform: translateY(2px) scale(0.99); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 4px 10px -6px rgba(201, 150, 52, 0.9); }
.paid .soonbtn { margin: auto 0 0; background: rgba(255, 255, 255, 0.08); color: #f4daa0; border: 0.5px solid rgba(232, 208, 138, 0.22); border-radius: 17px; font-weight: 700; opacity: 1; }
.paid .notify { display: block; width: 100%; background: none; color: #f4daa0; font-weight: 600; font-size: 14px; padding: 12px 0 2px; }
.paid .notify:disabled { color: #8bf0a6; opacity: 1; }
.paid .pnote { color: rgba(255, 255, 255, 0.42); font-size: 11px; line-height: 1.35; margin-top: 8px; text-align: center; }
.paid .want { color: rgba(255, 255, 255, 0.42); font-size: 12px; margin-top: 8px; text-align: center; }
.paid .who { margin: -3px 0 14px; } .paid .who summary { color: #f4daa0; font-weight: 600; font-size: 14px; cursor: pointer; }
.paid .who ul { margin: 8px 0 0; padding-left: 18px; color: rgba(255, 255, 255, 0.68); font-size: 13px; line-height: 1.5; }
@media (min-width: 1000px) {
  .premium { min-height: 324px; padding: 32px; }
  .premium-copy { max-width: 50%; }
  .premium h3 { font-size: 58px; }
  .premium p { font-size: 15px; }
  .premium-stage { left: 40%; }
  .ps-shield { width: 148px; right: 24%; top: 42px; }
  .ps-trophy { width: 132px; right: 8%; bottom: 44px; }
  .ps-ai { width: 112px; right: 34%; bottom: 36px; }
  .ps-card { width: 98px; }
  .paid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .paid { min-height: 420px; }
}
@media (max-width: 520px) {
  .premium { min-height: 302px; padding: 21px; border-radius: 28px; }
  .premium-copy { max-width: 61%; }
  .premium .badge { white-space: nowrap; font-size: 9.5px; padding: 6px 10px; letter-spacing: 0.1em; }
  .premium h3 { font-size: 35px; }
  .premium p { font-size: 13px; }
  .premium-tags { gap: 6px; margin-top: 14px; }
  .premium-tags span { padding: 6px 9px; font-size: 11.5px; }
  .premium-stage { left: 42%; }
  .ps-shield { width: 100px; right: 18%; top: 48px; }
  .ps-trophy { width: 94px; right: 3%; bottom: 40px; }
  .ps-ai { width: 76px; right: 34%; bottom: 34px; }
  .ps-card { width: 64px; }
  .ps-card-a { right: 0; top: 34px; }
  .ps-card-b { right: 48%; top: 136px; }
  .ps-card-c { right: 12%; top: 164px; }
  .paid { min-height: 0; padding: 15px; }
  .paid-main { grid-template-columns: minmax(0, 1fr) 118px; gap: 8px; }
  .paid h4 { font-size: 21px; }
  .paid-visual { height: 126px; }
  .paid-visual img { max-width: 112px; max-height: 118px; }
  .paid .pt { gap: 7px; }
  .paid .pt div { padding: 10px 8px; font-size: 11px; }
  .paid .price { min-width: 78px; }
  .paid .price b { font-size: 24px; }
  .paid .buybtn { font-size: 14px; padding: 14px 10px; }
}
@media (max-width: 370px) {
  .premium-copy { max-width: none; padding-bottom: 132px; }
  .premium-stage { left: 34%; }
  .paid-main { grid-template-columns: 1fr; }
  .paid-visual { height: 116px; margin-top: -8px; }
}
@media (prefers-reduced-motion: reduce) { .premium-stage img, .paid-visual img { animation: none; } }
.tariff .pay { margin-left: 12px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--gold-ink);
  background: linear-gradient(180deg, #f7e7b6, #d6b465); }
.tariff .r { display: flex; align-items: center; }
.fullsheet .sheet { min-height: 92dvh; }
.incl { margin: 0; padding: 0; list-style: none; } .incl li { padding: 11px 0 11px 30px; position: relative; border-top: 1px solid var(--line); }
.incl li::before { content: "✓"; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }
.rules details { border-top: 1px solid var(--line); padding: 16px 0; } .rules details:first-of-type { border-top: 0; }
.rules summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.rules summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; } .rules details[open] summary::after { content: "–"; }
.rules p { color: var(--soft); line-height: 1.5; margin: 10px 0 0; }

.stephead { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; min-height: 64px; }
.stepnum b { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; } .stepnum { color: var(--muted); font-size: 15px; }
.stepnav { display: flex; gap: 8px; } .stepnav button { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: var(--text); font-size: 20px; }
.stepnav button:disabled { opacity: 0.3; }
.stepbars .gl { position: absolute; left: 0; right: -46px; border-top: 0.5px solid var(--line); }
.stepbars .gl em { position: absolute; right: 0; top: -8px; font-style: normal; font-size: 11px; color: var(--muted); background: var(--card); padding-left: 4px; }
.stepbars div { cursor: pointer; position: relative; }
.stepbars div.sel::before { content: ""; position: absolute; left: 50%; top: -8px; bottom: 0; border-left: 1px solid var(--muted); }
.stepbars div.sel i { filter: brightness(1.25); }
.stepbars i { transform-origin: bottom; animation: grow 0.6s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.steplab { display: grid; gap: 3px; margin: 6px 46px 0 0; } .steplab span { font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; overflow: visible; }
.anal .bigsum { margin-bottom: 4px; }
.donutnav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.donutnav > button { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 22px; flex: none; }
.dwrap { position: relative; flex: 1; }
.dwrap svg { width: 70% !important; max-width: 220px !important; animation: dspin 0.8s var(--ease) both; }
.dwrap span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; color: var(--soft); }
@keyframes dspin { from { opacity: 0; transform: rotate(-200deg) scale(0.85); } to { opacity: 1; transform: rotate(-90deg); } }
.catrow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.catrow > i { width: 34px; height: 34px; border-radius: 50%; flex: none; opacity: 0.9; }
.catrow .n { flex: 1; min-width: 0; } .catrow small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.catrow b { white-space: nowrap; }
.tourbtn { display: block; margin: 8px auto 24px; }
.tourdots { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.tourdots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); } .tourdots i.past { background: var(--gold-lo); } .tourdots i.on { background: var(--gold); }
.tourcard { text-align: center; padding: 6px 4px 16px; animation: rise 0.4s var(--ease) both; }
.tourcard img { width: 120px; height: 120px; animation: pop 0.7s var(--ease) both, hover 4s 0.7s ease-in-out infinite; filter: drop-shadow(0 10px 24px rgba(232, 190, 90, 0.35)); }
.tourcard h3 { font-size: 26px; margin: 6px 0 10px; letter-spacing: -0.02em; } .tourcard p { color: var(--soft); line-height: 1.55; margin: 0; font-size: 16px; }
.btn:disabled { opacity: 0.35; }
.donut { position: relative; flex: 1; max-width: 250px; margin: 0 auto; aspect-ratio: 1; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.donut .seg { stroke-linecap: butt; animation: segdraw 0.9s var(--ease) both; }
@keyframes segdraw { from { stroke-dasharray: 0 var(--c); } }
.donut .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: fadeIn 0.6s 0.3s both; }
.donut .in b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; } .donut .in span { color: var(--muted); font-size: 14px; margin-top: 4px; }
.catline { padding: 12px 0 2px; }
.catline .row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.catline .row > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.catline small { color: var(--muted); font-size: 12.5px; flex-basis: 100%; padding-left: 18px; }
.catline .row > span:last-child { white-space: nowrap; }
.catline .bar { margin-top: 8px; }
.opday { color: var(--muted); font-size: 13px; padding: 14px 0 4px; border-top: 1px solid var(--line); }
.opday:first-child { border-top: 0; padding-top: 0; }

/* ===== Здоровье: главная и разделы ===== */
.hgrid { display: grid; gap: 14px; margin-bottom: 14px; } .hgrid > .card { margin: 0; }
.hgrid.four { grid-template-columns: 1fr 1fr; }
@media (min-width: 1000px) { .hgrid { grid-template-columns: 1fr 1fr; } }
.hcard { cursor: pointer; position: relative; overflow: hidden; }
.hh { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .hh b { font-size: 19px; letter-spacing: -0.01em; }
.hh .hic { font-size: 20px; filter: drop-shadow(0 0 10px currentColor); } .hh .hmore { margin-left: auto; color: var(--muted); font-size: 24px; line-height: 1; }
.hlog { padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--text); font-size: 14px; font-weight: 600; border: 0.5px solid var(--hair); white-space: nowrap; }
.hlog:active { transform: scale(0.95); }
.hact { display: flex; align-items: center; gap: 18px; } .hact.big { justify-content: space-between; margin-top: 18px; }
.hleg { display: grid; gap: 10px; } .hleg span { display: block; font-size: 13px; font-weight: 600; } .hleg b { font-size: 22px; } .hleg small { color: var(--muted); font-size: 13px; font-weight: 500; }
.hrings { flex: none; transform: rotate(-90deg); }
.hrings .arc { animation: arcdraw 1.1s var(--ease) both; }
@keyframes arcdraw { from { stroke-dasharray: 0 var(--c); } }
.hring { position: relative; flex: none; } .hring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; }
.hpair { display: flex; gap: 22px; align-items: flex-end; } .hpair > div { display: flex; flex-direction: column; gap: 4px; }
.hpair b { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; } .hpair .hlog { margin-left: auto; }
.hbar { position: relative; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 14px; }
.hbar i { display: block; height: 100%; border-radius: inherit; animation: fill 1s var(--ease) both; transform-origin: left; opacity: 0.85; }
.hbar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--soft); }
.hbar.sm { height: 6px; margin: 8px 0 6px; }
.hbmi { display: flex; flex-direction: column; } .hbmi b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; } .hbmi span { color: var(--muted); }
.bmiscale { position: relative; height: 10px; border-radius: 5px; margin: 22px 0 8px; background: linear-gradient(90deg, #4f8ef7 0%, #34c759 25%, #34c759 45%, #ffd60a 62%, #ff9f43 78%, #ff453a 100%); }
.bmiscale i { position: absolute; top: -12px; width: 0; height: 0; margin-left: -7px; border: 7px solid transparent; border-top: 9px solid var(--text); animation: rise 0.8s var(--ease) both; }
.bmilab { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 11px; color: var(--muted); text-align: center; }
.hweeks { display: grid; grid-template-columns: 34px repeat(7, 1fr) 34px; gap: 6px; align-items: center; }
.hweeks > span { font-size: 11px; color: var(--muted); text-align: center; text-transform: capitalize; }
.hweeks .wl { font-size: 13px; color: var(--soft); text-align: left; } .hweeks .wl.cur { color: var(--gold); border-left: 3px solid var(--gold); padding-left: 6px; }
.hweeks i { aspect-ratio: 1; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 0.5px solid var(--hair); animation: pop 0.5s var(--ease) both; }
.hweeks i.on { background: linear-gradient(145deg, #f3dfa0, #c9a24f); box-shadow: 0 0 12px rgba(232, 190, 90, 0.35); }
.hweeks i.td { outline: 1.5px solid var(--gold); } .hweeks i.fut { opacity: 0.35; }
.hstats { margin-top: 18px; border-top: 1px solid var(--line); }
.hstats > div { display: flex; align-items: center; gap: 14px; padding: 14px 0; } .hstats > div > span { width: 26px; text-align: center; font-size: 18px; }
.hstats .n { flex: 1; } .hstats small { color: var(--muted); font-size: 12px; } .hstats b { font-size: 18px; }
.hmini { display: flex; gap: 4px; align-items: flex-end; height: 44px; margin-left: auto; } .hmini i { width: 9px; border-radius: 3px; animation: grow 0.6s var(--ease) both; transform-origin: bottom; }
.coach { background: radial-gradient(80% 120% at 0% 0%, rgba(163, 230, 53, 0.12), transparent 60%), linear-gradient(180deg, var(--card-top), var(--card)); cursor: default; }
.hhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; } .hhead b { font-size: 20px; } .hhead .x { font-size: 18px; }
.hdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hdays button { background: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; border-radius: 12px; font-size: 13px; text-transform: capitalize; }
.hdays button.on { color: var(--gold); background: rgba(232, 208, 138, 0.1); } .hdays.plain b { font-size: 17px; color: var(--text); } .hdays button.fut { opacity: 0.4; }
.hgoals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.hgoals .hg { margin: 0; padding: 16px; } .hgoals .hg b { font-size: 18px; } .hgoals .hgi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); }
.hgoals .hg.first { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, var(--card)), var(--card)); }
.hline { width: 100%; height: 150px; display: block; margin-top: 10px; overflow: visible; } .hline text { fill: var(--muted); font-size: 10px; }
.hline .ln { stroke-dasharray: 1200; animation: lndraw 1.4s var(--ease) both; } @keyframes lndraw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
.kc-top { background: radial-gradient(90% 60% at 20% 0%, rgba(255, 159, 67, 0.2), transparent 60%), linear-gradient(180deg, #1c150d, #111); border-color: rgba(255, 159, 67, 0.25); }
.kcrow { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.kcl { border-left: 3px solid var(--c); padding-left: 12px; display: flex; flex-direction: column; } .kcl b { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; } .kcl span { font-size: 13px; }
.slot { border-top: 1px solid var(--line); padding: 12px 0 4px; } .slot:first-of-type { margin-top: 10px; } .slot > .between span:first-child { text-transform: capitalize; }
.plus { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--text); font-size: 18px; }
.x.sm { width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); color: var(--muted); flex: none; }
.macro4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .macro4 div { background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 10px; text-align: center; }
.macro4 b { display: block; font-size: 17px; } .macro4 span { font-size: 12px; color: var(--muted); }
.hsl { margin: 14px 0; } .hsl .between { margin-bottom: 10px; } .hsl b { font-size: 17px; }
.hsl input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; padding: 0; border-radius: 4px; border: 0;
  background: linear-gradient(90deg, var(--gold) var(--p, 50%), rgba(255, 255, 255, 0.1) var(--p, 50%)); }
.hsl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.hsl input[type="range"]::-moz-range-thumb { width: 46px; height: 28px; border-radius: 14px; background: #fff; border: 0; }
.wzh { font-size: 22px; font-weight: 700; margin-top: 8px; } .wzr { padding: 8px 0; border-top: 1px solid var(--line); } .wzr:first-of-type { margin-top: 10px; }
.wtop { background: radial-gradient(90% 70% at 10% 0%, rgba(56, 189, 248, 0.22), transparent 60%), linear-gradient(180deg, #0d171c, #0d1114); border-color: rgba(56, 189, 248, 0.25); }
.wbig { font-size: 18px; color: var(--muted); margin: 8px 0 4px; } .wbig b { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; color: var(--text); }
.wdots { position: relative; display: flex; justify-content: space-between; margin: 22px 0 10px; } .wdots::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255, 255, 255, 0.12); }
.wdots i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #3a3f44; } .wdots i.on { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.wquick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 16px; }
.wquick button { padding: 18px; border-radius: 22px; background: rgba(56, 189, 248, 0.1); border: 0.5px solid rgba(56, 189, 248, 0.3); color: var(--text); font-weight: 600; font-size: 16px; }
.wquick button.hl { background: linear-gradient(180deg, rgba(56, 189, 248, 0.45), rgba(14, 116, 144, 0.5)); }
.wquick button:active { transform: scale(0.96); }
.tilew { margin: 0; padding: 16px; cursor: pointer; } .tilew b { font-size: 22px; display: block; margin-top: 2px; }
.wch { display: grid; grid-template-columns: 74px 1fr 76px 84px; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; } .wch b { text-align: right; } .wch .muted { font-size: 12px; text-align: right; } .wch .hbar { margin: 0; }
.wcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; } .wcal span { font-size: 11px; color: var(--muted); }
.wcal b { padding: 8px 0; border-radius: 10px; font-weight: 500; font-size: 14px; } .wcal b.on { background: linear-gradient(145deg, #f3dfa0, #c9a24f); color: var(--gold-ink); font-weight: 700; } .wcal b.td { outline: 1.5px solid var(--gold); }
html[data-theme="light"] .kc-top, html[data-theme="light"] .wtop { background: var(--card); }
.hgear { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 0.5px solid var(--hair); color: var(--text); font-size: 18px; display: grid; place-items: center; }
.hgear:disabled { opacity: 0.3; }
.hgrid.six { grid-auto-rows: 1fr; } .hgrid.six > .card { display: flex; flex-direction: column; } .hgrid.six > .card > :last-child { margin-top: auto; }
.hbrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); } .hbrow .n { flex: 1; min-width: 0; } .hbrow small { display: block; color: var(--muted); font-size: 12.5px; }
.hbdots { display: flex; gap: 3px; flex: none; } .hbdots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); } .hbdots i.on { background: var(--gold); box-shadow: 0 0 6px rgba(232, 190, 90, 0.6); }
.hx { margin-top: 18px; } .hx .task { display: flex; align-items: center; gap: 12px; }
.hprog .hweeks { max-width: 460px; }
@media (min-width: 1000px) { .hprog { display: grid; grid-template-columns: 460px 1fr; column-gap: 40px; align-items: start; } .hprog > .hh, .hprog > .hpair { grid-column: 1 / -1; } .hprog .hstats { margin-top: 0; border-top: 0; } }
.paid .soonbtn:disabled { opacity: 1; color: #f4daa0; }

/* ===== Настройки: меню в стиле iOS ===== */
.sprof { display: flex; gap: 16px; align-items: center; width: 100%; text-align: left; color: var(--text); padding: 18px; margin: 4px 0 20px; border-radius: var(--radius);
  background: radial-gradient(120% 90% at 0% 0%, rgba(232, 208, 138, 0.16), transparent 60%), linear-gradient(180deg, var(--card-top), var(--card)); border: 0.5px solid rgba(232, 208, 138, 0.28); }
.sprof .av { width: 62px; height: 62px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, #c15b8a, #7d3fa8); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(232, 208, 138, 0.6); }
.sprof .st, .srow .st { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sprof b { font-size: 20px; } .sprof small, .srow small { color: var(--muted); font-size: 13px; line-height: 1.35; } .sprof small.gold { color: var(--gold); margin-top: 4px; }
.sgroup { margin-bottom: 20px; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, var(--card-top), var(--card)); border: 0.5px solid var(--hair); box-shadow: var(--shadow); }
.sgroup .sh { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 14px 18px 4px; }
.srow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; background: none; color: var(--text); text-align: left; position: relative; }
.srow + .srow::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; border-top: 0.5px solid var(--line); }
.srow:not(.static):active { background: rgba(255, 255, 255, 0.05); }
.srow b { font-size: 16.5px; font-weight: 600; }
.sic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 75%, #000));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 14px -8px var(--c); }
.sic svg { width: 19px; height: 19px; }
.srow .sr { color: var(--muted); font-size: 22px; line-height: 1; }
.segs.mini { margin: 0; flex: none; } .segs.mini button { padding: 7px 12px; font-size: 13.5px; }
.pans { padding: 12px 0; border-top: 1px solid var(--line); } .pans:first-child { border-top: 0; padding-top: 0; } .pans p { margin: 4px 0 0; line-height: 1.5; color: var(--soft); font-size: 15px; }
.intg { display: grid; gap: 10px; } @media (min-width: 1000px) { .intg { grid-template-columns: 1fr 1fr; } }
.intc { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; color: var(--text); margin: 0; padding: 16px; }
.intc .ie { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, 0.07); }
.intc b { font-size: 16px; } .intc small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.isteps { margin: 6px 0 0; padding-left: 22px; line-height: 1.55; } .isteps li { padding: 4px 0; }
.intc .st { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.themecard { padding: 18px; } .themecard b { font-size: 17px; display: block; } .themecard small { color: var(--muted); font-size: 13px; }
.tswitch { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 0.5px solid var(--hair); }
.tswitch > i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 12px; transition: transform 0.35s var(--ease);
  background: linear-gradient(180deg, #f7e7b6, #d6b465); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 16px -8px rgba(232, 190, 90, 0.8); }
.tswitch[data-v="dark"] > i { transform: translateX(100%); } .tswitch[data-v="light"] > i { transform: translateX(200%); }
.tswitch button { position: relative; z-index: 1; background: none; color: var(--soft); padding: 11px 6px; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; transition: color 0.3s; }
.tswitch button span { font-size: 16px; } .tswitch button.on { color: var(--gold-ink); }
.nbadge { font-size: 12px; font-weight: 700; color: var(--gold-ink); background: var(--gold); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.newsi b { display: block; font-size: 18px; margin: 8px 0 4px; } .newsi p { margin: 0; color: var(--soft); line-height: 1.5; }
.newsi.fresh { border-color: rgba(232, 208, 138, 0.4); }
.sic.ie2 { font-size: 17px; }
.acc .s.an2 { display: flex; flex-direction: row; gap: 0; } .an2 span { width: 70px; text-align: right; }
.agentcard { padding: 18px; } .agentcard b { font-size: 17px; display: block; } .agentcard small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.agentcard .between { align-items: flex-start; gap: 10px; } .agnote { display: block; margin-top: 10px; }
.tswitch.two { grid-template-columns: 1fr 1fr; } .tswitch.two > i { width: calc((100% - 8px) / 2); }
.tswitch.two[data-v="codex"] > i { transform: translateX(100%); }
.tswitch.two[data-v="codex"] > i { background: linear-gradient(180deg, #b6f0d9, #3fb98a); box-shadow: 0 6px 16px -8px rgba(63, 185, 138, 0.9); }
.themecard b, .agentcard b { color: var(--text); }
.agentbar { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; color: var(--text); font-size: 15px;
  background: linear-gradient(90deg, rgba(232, 208, 138, 0.14), rgba(232, 208, 138, 0.04)); border: 0.5px solid rgba(232, 208, 138, 0.35); }
.agentbar b { font-weight: 700; } .agentbar .sw2 { margin-left: auto; color: var(--gold); font-weight: 600; font-size: 14px; }
.agentbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); } .agentbar .dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.oaip { margin-top: 14px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border-left: 3px solid var(--c); }
.oaip b { font-size: 16px; display: block; } .oaip small { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; }

.history-dates { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; margin:12px 0; }
.history-dates input { min-width:0; width:100%; box-sizing:border-box; }

/* Раздел задач: длинные названия не сдвигают действия и поля на телефоне. */
.task-content { flex: 1; min-width: 0; }
.task-content .tt, .task-content .chip { overflow-wrap: anywhere; }
.task-content .chips { min-width: 0; }
.tasks-toolbar { flex-wrap: wrap; }
.tasks-toolbar .pill { white-space: nowrap; }
@media (max-width: 520px) {
  .tasks-toolbar .sp { display: none; }
  .task { gap: 10px; padding-right: 54px; }
  .task.hl, .task.over { padding-right: 60px; }
  .task .more { width: 42px; }
}

.task-dictation{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}.task-dictation small{flex-basis:100%;color:var(--muted);line-height:1.4}.task-dictation [aria-pressed="true"]{color:#ff6b6b;border-color:currentColor}.task-dictation [hidden]{display:none}

/* Светлая тема · 23.11.2026: нейтральные поверхности, читаемый текст, бронзовый акцент. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f8;
  --card: #fff;
  --card-top: #fff;
  --card-2: #eef0f3;
  --chip: #e8ebef;
  --line: #e4e7ec;
  --hair: #e4e7ec;
  --text: #202630;
  --muted: #606775;
  --soft: #454e5c;
  --gold: #80613a;
  --gold-hi: #a88a5f;
  --gold-lo: #80613a;
  --gold-ink: #fff;
  --cream: #80613a;
  --green: #23734b;
  --red: #b83b43;
  --coral: #b64648;
  --shadow: 0 4px 16px -8px rgba(26, 36, 50, 0.13);
  --wheel-label: #454e5c;
  --wheel-value: #80613a;
  --wheel-grid: #dce1e7;
  --wheel-axis: #e4e7ec;
  --wheel-hi: #a88a5f;
  --wheel-lo: #bba17c;
  --ring-track: #e4e7ec;
  --ring-negative-track: #efdadd;
}
html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] .card.hero {
  background: linear-gradient(135deg, #fff, #faf9f6);
  border-color: #ded8ce;
  box-shadow: var(--shadow);
}
html[data-theme="light"] .tabs { background: rgba(255, 255, 255, 0.96); }
html[data-theme="light"] .tabs button,
html[data-theme="light"] .tabs button span { color: var(--soft); }
html[data-theme="light"] .tabs button.on,
html[data-theme="light"] .tabs button.on span { color: var(--text); }
html[data-theme="light"] .tabs button.on { background: #eee9e1; }
html[data-theme="light"] .tabs button:hover { background: #f0f2f5; }
html[data-theme="light"] .tabs button.on:hover { background: #e8e2d8; }
html[data-theme="light"] .tabs button.on svg { color: var(--gold); }
html[data-theme="light"] :is(.btn.gold, .pill.gold, .fab-plus, .tariff .pay, .segbtn) {
  background: #343c48;
  color: #fff;
  box-shadow: 0 1px 2px rgba(26, 36, 50, 0.12);
}
html[data-theme="light"] :is(.btn.gold, .pill.gold, .tariff .pay, .segbtn):hover { background: #242c36; }
html[data-theme="light"] :is(.btn.dark, .pill.dark, .more, .stepnav button, .donutnav > button,
  .monthnav button, .hgear, .hlog, .x, .jobi, .tswitch) { background: var(--card-2); }
html[data-theme="light"] .sheet { background: #fff; }
html[data-theme="light"] .toast { background: #343c48; color: #fff; }
html[data-theme="light"] .chip { background: #eef0f3; color: var(--soft); }
html[data-theme="light"] :is(.chip.gold, .chip.goldsoft) { background: #eee7dc; color: #654c2b; }
html[data-theme="light"] .chip.red { background: #f8e9eb; color: var(--red); }
html[data-theme="light"] .chip.green { background: #e8f2ec; color: var(--green); }
html[data-theme="light"] .task.hl { background: #f8f6f2; }
html[data-theme="light"] .task.over { background: #fcf2f3; }
html[data-theme="light"] :is(.stats3, .money3, .macro4 > div) { background: #f1f3f5; }
html[data-theme="light"] .hero :is(.stats3, .money3) { background: transparent; }
html[data-theme="light"] .ava .c { color: #fff; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px #bba17c; }
html[data-theme="light"] :is(input, textarea, select) { border-color: #d7dce3; }
html[data-theme="light"] :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
html[data-theme="light"] :is(button, a, input, textarea, select):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
html[data-theme="light"] .cd.o { color: var(--muted); }
html[data-theme="light"] .cd.sel { background: var(--gold); color: #fff; }
html[data-theme="light"] .bar i { background: var(--gold); box-shadow: none; }
html[data-theme="light"] :is(.sleepbars i, .stepbars i.ok, .hweeks i.on) { background: #a88a5f; box-shadow: none; }
html[data-theme="light"] .tswitch > i,
html[data-theme="light"] .tswitch.two[data-v="codex"] > i { background: #343c48; box-shadow: 0 1px 3px rgba(26, 36, 50, 0.16); }
html[data-theme="light"] .tswitch button.on { color: #fff; }
html[data-theme="light"] .sprof { background: #fff; border-color: var(--hair); }
html[data-theme="light"] .agentbar { background: #f8f6f2; border-color: #ded8ce; }
/* Тёмные промокарточки сохраняют собственную контрастную палитру. */
html[data-theme="light"] :is(.premium, .paid) {
  --text: #fff;
  --soft: #c7c7cc;
  --muted: #b4b4ba;
  --gold: #e8d08a;
  --gold-ink: #1a1405;
  --cream: #ead39b;
}
@media (min-width: 1000px) {
  html[data-theme="light"] .tabs { background: #fbfcfd; }
  html[data-theme="light"] .tabs .logo { color: var(--text); }
}


/* Баланс: общий кошелёк и независимые ленты счетов, 23.11.2026. */
.wallet { min-width: 0; }
.wallet-total { padding: 25px 22px; margin: 18px 0 28px; border-radius: 26px; background: radial-gradient(ellipse at top right, #4b4934, transparent 75%), #202522; border: 1px solid #ffffff14; }
.wallet-label { display: block; font-size: 13px; color: var(--soft); }
.wallet-amount { font-size: clamp(24px, 7.4vw, 38px); font-weight: 700; letter-spacing: -.04em; margin: 10px 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.wallet-caption { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.wallet-group { margin-bottom: 26px; min-width: 0; }
.wallet-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.wallet h2 { font-size: 17px; letter-spacing: -.02em; margin: 0; }
.wallet-heading > span { color: var(--soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.wallet-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #59594e transparent; padding: 2px 0 10px; }
.wallet-account { flex: 0 0 calc(40% - 9.6px); min-width: 0; padding: 12px; border: 1px solid #ffffff14; border-radius: 22px; background: linear-gradient(135deg, #303a34, #1e2522); scroll-snap-align: start; }
.wallet-personal { background: linear-gradient(135deg, #36342b, #25231e); }
.wallet-cash { background: linear-gradient(135deg, #30333a, #22242a); }
.wallet-bank { display: flex; align-items: center; gap: 9px; color: var(--soft); font-size: 13px; overflow-wrap: anywhere; }
.wallet-symbol { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #ffffff12; color: var(--gold); flex-shrink: 0; }
.wallet-account-amount { font-size: clamp(16px, 2.8vw, 24px); font-weight: 650; margin: 14px 0 6px; letter-spacing: -.03em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.wallet-name { font-size: 15px; overflow-wrap: anywhere; }
.wallet-details { color: var(--muted); font-size: 12px; min-height: 32px; margin-top: 6px; overflow-wrap: anywhere; }
.wallet-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 12px; }
.wallet-actions button { background: none; color: var(--gold); font-size: 12px; padding: 10px 0; min-height: 44px; text-align: left; }
.wallet-empty { border: 1px dashed var(--line); border-radius: 18px; padding: 20px; color: var(--muted); font-size: 14px; }
.wallet-commitments h2 { margin-bottom: 8px; }
.wallet-oblig, .wallet-debts { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; background: none; color: var(--text); text-align: left; padding: 18px 0; }
.wallet-oblig strong { display: block; font-size: 24px; margin: 7px 0; overflow-wrap: anywhere; }
.wallet-debts { border-top: 1px solid var(--line); padding-bottom: 0; }
.wallet-debts > span { min-width: 0; }
.wallet-debts strong { display: block; font-size: 16px; margin-top: 8px; overflow-wrap: anywhere; }
.wallet button:focus-visible, .wallet-rail:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Ленты Баланса сохраняют действующую светлую палитру. */
html[data-theme="light"] .wallet-total { background: linear-gradient(135deg, #fff, #faf9f6); border-color: #ded8ce; box-shadow: var(--shadow); }
html[data-theme="light"] .wallet-account { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
html[data-theme="light"] .wallet-symbol { background: var(--card-2); }
html[data-theme="light"] .wallet-rail { scrollbar-color: #aeb6c2 transparent; }

.wallet-nav { display:flex; gap:6px; }
.wallet-symbol img { display:block; width:100%; height:100%; object-fit:contain; border-radius:inherit; background:#fff; }
.wallet-symbol svg { width:75%; height:75%; }
.wallet-nav button { width:36px; height:36px; border-radius:50%; background:var(--card); color:var(--gold); border:1px solid var(--line); cursor:pointer; }
.wallet-nav button:disabled { opacity:.3; cursor:default; }
.wallet-rail { touch-action:pan-x pan-y; }
@media(max-width:500px) { .wallet-actions { flex-direction:column; gap:0; } .wallet-bank { font-size:11px; gap:5px; } .wallet-symbol { width:22px; height:22px; } .wallet-name { font-size:13px; } }

/* Own categories: restrained actions, generous typography, no cramped labels. */
.category-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.category-edit{border:1px solid var(--line);border-radius:12px;padding:9px 14px;background:var(--card-2);color:var(--gold);font:inherit;font-size:13px;font-weight:600;letter-spacing:.015em}
.category-edit:hover{border-color:var(--gold)}
#list .acc{gap:14px;flex-wrap:wrap;padding:16px 0}
#list .acc .n{min-width:0;overflow-wrap:anywhere;font-weight:500;line-height:1.5;flex:1 1 160px}

/* Compact Telegram login: isolated from full-width email buttons. */
.login .telegram-login-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: auto; max-width: 100%; min-height: 44px; margin: 0 auto;
  padding: 11px 20px; border: 0; border-radius: 10px;
  background: #007bb5; color: #fff; font: inherit; font-size: 15px;
  font-weight: 600; line-height: 22px; cursor: pointer;
  transition: background-color .15s ease;
}
.login .telegram-login-button svg { flex: 0 0 20px; }
.login .telegram-login-button:hover { background: #006da3; }
.login .telegram-login-button:active { background: #005e90; }
.login .telegram-login-button:focus-visible { outline: 3px solid #83cfff; outline-offset: 3px; }
.login .telegram-login-button:disabled { opacity: .6; cursor: wait; }
.login .telegram-login-status { max-width: 360px; margin: 12px auto 0; font-size: 13px; line-height: 1.5; }
.login .telegram-login-status:empty { display: none; }

/* Переводы — отдельный тип, не расход. */
.own-transfer-type.on{background:#9ac7f5!important;color:#102a43!important}
#transfer-dst{border-left:3px solid #9ac7f5;padding-left:12px}

/* Счета организациям: ясные согласия и спокойная типографика. */
.invoice-view input[type=checkbox]{display:inline-block;width:20px;height:20px;min-height:20px;margin:0 10px 0 0;vertical-align:middle;accent-color:#d9b85f}
.invoice-view a:not(.btn){color:var(--gold,#e8c46a)}
.invoice-view [hidden]{display:none!important}
.invoice-view select{width:100%;min-width:0}
.invoice-view .btn{white-space:normal}
#invoice-search{margin:10px 0 18px}
.paid [data-invoice-product]{width:100%;margin:12px 0 0;font-size:14px}

/* Вторичная оплата: спокойная типографика, без конкуренции с основной кнопкой. */
.invoice-link{display:block;width:100%;box-sizing:border-box;background:none;border:0;border-radius:8px;padding:12px 8px;margin:6px auto 0;color:#cbb77e;font:inherit;font-size:13px;font-weight:500;line-height:1.5;text-align:center;text-decoration:none;cursor:pointer;white-space:normal;position:relative}
.invoice-link:hover{color:#f1d993;background:rgba(218,183,100,.05)}
.invoice-link:focus-visible{outline:2px solid #d9b85f;outline-offset:2px}
.invoice-history{margin-top:0;color:var(--muted,#aaa);font-size:12px}
.paid [data-invoice-product]{margin:4px 0 0;font-size:13px}
.invoice-product{padding:20px;margin:20px 0 24px;border:1px solid rgba(218,183,100,.24);border-radius:16px;background:rgba(218,183,100,.04)}
.invoice-product h3{font-size:18px;line-height:1.45;margin:8px 0 12px;overflow-wrap:anywhere}
.invoice-product b{font-size:22px;color:#e8c46a}
/* ===== Студия контента: интерфейс по образцу Polza.ai ===== */
.sheet-bg.studio-full { align-items: stretch; justify-content: stretch; padding: 0; }
.studio-full .sheet { max-width: none; width: 100%; height: 100dvh; max-height: none; border-radius: 0; padding: 0; overflow: hidden; border: 0; background: #0b0b0c; animation: none; }
.stu-load { padding: 40px 24px; display: grid; gap: 14px; }
.stu { display: flex; flex-direction: column; height: 100dvh; min-height: 0; }
.stu-side { display: flex; gap: 8px; overflow-x: auto; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; border-bottom: 0.5px solid var(--hair, rgba(255,255,255,.1)); flex: none; scrollbar-width: none; order: 2; }
.stu-side::-webkit-scrollbar { display: none; }
.stu-brand, .stu-cap, .stu-bal { display: none; }
.stu-nav { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 14px; background: rgba(255,255,255,.06); color: var(--soft); font-size: 15px; white-space: nowrap; }
.stu-nav i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); font-style: normal; }
.stu-nav em { font-style: normal; font-size: 11px; color: var(--muted); }
.stu-nav.on { background: rgba(255,255,255,.14); color: var(--text); }
.stu-main { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); order: 1; display: flex; flex-direction: column; }
.stu-top { display: flex; align-items: center; gap: 10px; padding: calc(14px + env(safe-area-inset-top)) 0 6px; position: sticky; top: 0; background: #0b0b0c; z-index: 3; }
.stu-ttl { font-size: 18px; flex: 1; }
.stu-balchip { padding: 7px 12px; border-radius: 12px; background: rgba(232,208,138,.14); color: var(--gold); font-weight: 600; font-size: 14px; }
.stu-top .x { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); color: var(--soft); font-size: 18px; }
.stu-status { min-height: 0; margin: 4px 0; }
.stu-status:empty { display: none; }
.stu-hero { text-align: center; padding: 26px 0 18px; }
.stu-hero h2 { margin: 0; font-size: clamp(30px, 8vw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.stu-hero h2 span { background: linear-gradient(90deg, #f3dfa0, #b8984f 60%, #8fae3a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stu-composer { background: #151517; border: 1px solid rgba(255,255,255,.1); border-radius: 26px; padding: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.35); width: 100%; max-width: 760px; margin: 0 auto; position: relative; }
.stu-composer textarea { background: transparent; border: 0; padding: 8px 6px; font-size: 17px; resize: none; min-height: 84px; border-radius: 0; }
.stu-fields { display: grid; gap: 8px; }
.stu-fields:empty { display: none; }
.stu-fields input { background: rgba(255,255,255,.06); font-size: 15px; padding: 11px 14px; }
.stu-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; }
.stu-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 100%; order: 1; position: relative; }
.stu-chip { padding: 9px 14px; border-radius: 14px; background: rgba(255,255,255,.07); color: var(--soft); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.stu-chip.on { background: rgba(232,208,138,.2); color: var(--gold); }
.stu-model { order: 2; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; min-height: 44px; border-radius: 22px; background: rgba(255,255,255,.08); color: var(--text); font-size: 14px; max-width: calc(100% - 64px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stu-go { order: 3; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
.stu-go[disabled] { opacity: .35; }
.stu-ar { width: 14px; height: 10px; border: 1.6px solid currentColor; border-radius: 3px; display: inline-block; }
.stu-lg { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(145deg, #3a3a3d, #262629); display: grid; place-items: center; font-weight: 700; color: var(--gold); flex: none; }
.stu-lg.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
.stu-price { text-align: center; font-size: 13px; margin: 10px 0 0; }
.stu-conf { max-width: 760px; margin: 14px auto 0; padding: 16px; border-radius: 20px; background: rgba(232,208,138,.1); border: 1px solid rgba(232,208,138,.3); display: grid; gap: 12px; }
.stu-conf small { display: block; margin-top: 4px; }
.stu-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; max-height: min(52vh, 360px); overflow-y: auto; background: #222225; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.55); display: grid; gap: 2px; }
.stu-menu .stu-mt { padding: 8px 12px 4px; color: var(--muted); font-size: 12px; }
.stu-menu button { text-align: left; padding: 11px 12px; border-radius: 12px; background: transparent; color: var(--text); font-size: 15px; min-height: 44px; }
.stu-menu button.on { background: rgba(232,208,138,.16); color: var(--gold); }
.stu-menu button:hover { background: rgba(255,255,255,.07); }
.stu-pick-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.62); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; }
.stu-pick { width: 100%; max-width: 680px; max-height: 88dvh; background: #1a1a1c; border-radius: 26px 26px 0 0; display: flex; flex-direction: column; padding: 16px 14px calc(14px + env(safe-area-inset-bottom)); }
.stu-ps { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 12px; }
.stu-ps i { color: var(--muted); display: grid; }
.stu-ps input { background: transparent; border: 0; padding: 8px 4px; font-size: 17px; }
.stu-ps .x { width: 38px; height: 38px; border-radius: 50%; background: var(--card-2); color: var(--soft); flex: none; }
.stu-pick .stu-cap { display: block; padding: 12px 6px 6px; color: var(--muted); font-size: 13px; letter-spacing: 0; }
.stu-pl { overflow-y: auto; display: grid; gap: 4px; align-content: start; }
.stu-pi { display: flex; gap: 12px; padding: 12px; border-radius: 16px; cursor: pointer; align-items: flex-start; }
.stu-pi:hover, .stu-pi.on { background: rgba(255,255,255,.07); }
.stu-pm { flex: 1; min-width: 0; }
.stu-pm b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.stu-pm small { color: var(--muted); display: block; }
.stu-more { background: none; color: var(--muted); font-size: 13px; padding: 6px 0; min-height: 32px; }
.stu-desc { margin: 4px 0 0; color: var(--soft); font-size: 13px; }
.stu-pr { text-align: right; font-size: 13px; flex: none; max-width: 38%; }
.stu-pr small { display: block; color: var(--muted); }
.stu-pr b { font-size: 15px; white-space: nowrap; }
.stu-none { text-align: center; padding: 24px; }
.stu-cap { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 22px auto 10px; width: 100%; max-width: 760px; }
.stu-jobs { display: grid; gap: 12px; width: 100%; max-width: 760px; margin: 0 auto; }
#stu-recent { width: 100%; }
.stu-job { background: #151517; border-radius: 20px; padding: 14px; display: grid; gap: 8px; border: 1px solid rgba(255,255,255,.07); min-width: 0; }
.stu-jh { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.stu-st { font-size: 12px; color: var(--muted); text-align: right; }
.stu-st.completed { color: var(--green); }
.stu-st.failed, .stu-st.unknown, .stu-st.cancelled { color: var(--coral); }
.stu-jp { margin: 0; color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.stu-img, .stu-vid { width: 100%; max-height: 420px; object-fit: contain; border-radius: 14px; background: #000; }
.stu-aud { width: 100%; }
.stu-dl { text-align: center; }
.stu-open { color: var(--gold); font-size: 14px; }
.stu-empty { text-align: center; padding: 40px 12px; display: grid; justify-items: center; gap: 10px; }
.stu-empty i { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #e8d08a) 22%, #1c1c1e); color: var(--c, var(--gold)); font-style: normal; }
.stu-soon .stu-empty { max-width: 520px; margin: 0 auto; }
.stu-main > .card, .stu-main > .muted { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) {
  .sheet-bg.studio-full { align-items: center; justify-content: center; padding: 28px; }
  .studio-full .sheet { max-width: 1240px; height: min(900px, calc(100dvh - 56px)); border-radius: 28px; border: 0.5px solid var(--hair, rgba(255,255,255,.12)); }
  .stu { flex-direction: row; height: 100%; }
  .stu-side { order: 0; flex-direction: column; width: 250px; overflow: visible; padding: 22px 14px; border-bottom: 0; border-right: 0.5px solid var(--hair, rgba(255,255,255,.1)); background: #101012; gap: 4px; }
  .stu-brand { display: block; font-weight: 800; font-size: 20px; padding: 4px 12px 14px; letter-spacing: -0.02em; }
  .stu-cap { display: block; margin: 8px 12px 4px; font-size: 12px; max-width: none; width: auto; }
  .stu-nav { width: 100%; padding: 10px 12px; border-radius: 14px; background: transparent; }
  .stu-nav:hover { background: rgba(255,255,255,.05); }
  .stu-nav.on { background: rgba(255,255,255,.09); }
  .stu-bal { display: grid; margin-top: auto; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); gap: 2px; }
  .stu-bal b { font-size: 20px; color: var(--gold); }
  .stu-bal small { color: var(--muted); }
  .stu-main { order: 1; padding: 0 40px 28px; align-items: center; }
  .stu-top { width: 100%; }
  .stu-ttl { display: none; }
  .stu-top { justify-content: flex-end; }
  .stu-balchip { display: none; }
  .stu-chips { flex: 1 1 0; order: 0; }
  .stu-bar { flex-wrap: nowrap; }
  .stu-model { max-width: 260px; }
  .stu-hero { padding-top: 56px; }
  .stu-pick-bg { align-items: center; }
  .stu-pick { border-radius: 26px; max-height: 80dvh; }
}
.studio-package{padding:8px 0 12px;border-bottom:1px solid rgba(255,255,255,.08)}
.studio-package .tariff{border:0;gap:12px}.studio-package .tariff>div{min-width:0}.studio-package .btn{flex-shrink:0;width:auto}
.tariff[data-tf]{gap:12px}.tariff[data-tf]>div:first-child{min-width:0;flex:1}.tariff[data-tf] .r{flex:none;flex-direction:column;align-items:flex-end;gap:8px}.tariff[data-tf] .p{white-space:nowrap;font-size:20px;font-variant-numeric:tabular-nums}.tariff[data-tf] .pay{margin-left:0;min-width:96px;min-height:36px}
@media(min-width:600px){.tariff[data-tf] .r{flex-direction:row;align-items:center;gap:16px}}

/* Операции: прежние карточки и цвета, ленты как в Балансе. */
.ops-account-groups { min-width:0; }
.ops-account-groups .wallet-heading h2 { font-size:17px; margin:0; }
.ops-account-groups .ops-account { flex:0 0 calc(40% - 9.6px); min-width:0; margin-bottom:0; scroll-snap-align:start; overflow-wrap:anywhere; }

/* Поля даты: Safari не должен растягивать строку за правый край формы. */
input[type="date"] {
  display:block; width:100%; min-width:0; max-width:100%;
  box-sizing:border-box; -webkit-appearance:none; appearance:none;
}
input[type="date"]::-webkit-date-and-time-value {
  min-width:0; text-align:left;
}
input[type="date"]::-webkit-datetime-edit { min-width:0; padding:0; }
#ops-range-form { min-width:0; max-width:100%; }

/* 02.12: расписание в единой панели, без вложенных окон. */
.task-schedule{margin-top:18px;padding:16px;border:1px solid var(--line,#ffffff18);border-radius:20px;background:var(--card)}
.schedule-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.schedule-head span,.schedule-hint{color:var(--muted);font-size:12px}
.schedule-hint{line-height:1.5;margin:10px 0}
.schedule-toggle{display:flex;gap:10px;align-items:center;margin:16px 0}
.schedule-toggle input{width:22px;height:22px}
.task-schedule .row>div{min-width:0;flex:1}
.task-schedule input:not([type=checkbox]),.task-schedule select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:block}
.task-schedule [hidden]{display:none!important}
.schedule-presets{margin-top:10px;flex-wrap:wrap}
.schedule-days{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.schedule-days label{position:relative;flex:1;min-width:30px}
.schedule-days input{position:absolute;opacity:0;width:100%;height:100%;margin:0}
.schedule-days span{display:block;text-align:center;padding:10px 2px;border:1px solid var(--line,#ffffff18);border-radius:10px;font-size:12px}
.schedule-days input:checked+span{background:var(--gold);color:#141414}
.schedule-days input:focus-visible+span{outline:2px solid var(--gold)}
.schedule-summary{font-size:13px;line-height:1.5;color:var(--gold)}
#schedule-error{color:var(--coral);font-size:13px}

#task-reminder-box{position:fixed;top:max(16px,env(safe-area-inset-top));right:16px;left:16px;margin-left:auto;max-width:380px;max-height:45vh;overflow:auto;z-index:2000}
.task-reminder-card{position:relative;background:var(--card,#20232b);border:1px solid var(--gold);border-radius:18px;padding:18px 46px 18px 18px;box-shadow:0 8px 32px #0006;margin-bottom:8px}
.task-reminder-card p{overflow-wrap:anywhere;margin:8px 0}
.task-reminder-card button{position:absolute;right:12px;top:12px;background:none;color:var(--text);border:0;padding:8px}
.budget-check {display:flex;align-items:flex-start;gap:10px;margin:14px 0;font-size:14px;line-height:1.45}
.budget-check input[type=checkbox] {width:22px;height:22px;flex:0 0 22px;margin:0;accent-color:var(--gold)}
[data-ai-budget] input,[data-ai-budget] select {max-width:100%;box-sizing:border-box}
[data-ai-budget] p {overflow-wrap:anywhere}
.neuro-voice [data-voice-transcript] {max-height:40vh;overflow:auto;overflow-wrap:anywhere}
.neuro-voice .btn {margin-top:12px}

/* Голосовая сфера и постоянно видимое состояние микрофона. */
.neuro-voice{max-width:620px;margin:auto;overflow-wrap:anywhere}.neuro-orb{display:block;width:150px;height:150px;border-radius:50%;margin:22px auto;border:2px solid #ebd48b;background:radial-gradient(circle at 32% 25%,#fff3c2,#c99b37 32%,#372408 65%,#090909);color:#fff4d0;box-shadow:0 0 32px #d3ad5255,inset 0 0 25px #f6dfa3aa;font-size:23px;cursor:pointer}.neuro-orb[data-phase=listening],.neuro-orb[data-phase=speaking],.neuro-orb[data-phase=activating]{animation:neuro-breathe 1.5s ease-in-out infinite}.neuro-orb[data-phase=thinking]{filter:hue-rotate(18deg);animation:neuro-breathe .7s ease-in-out infinite}.neuro-orb[data-phase=error]{border-color:#ff655a}.voice-phase{text-align:center;font-weight:700}.voice-controls{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.voice-controls .btn{flex:1 1 160px}.neuro-voice form input[type=number],.neuro-voice form select{width:100%;box-sizing:border-box}.neuro-mic-badge{position:fixed;left:50%;bottom:calc(90px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:110;display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 24px);padding:10px 14px;border:1px solid #bb9645;border-radius:16px;background:#171511;color:#f8e4a3;font-size:12px;box-sizing:border-box}.neuro-mic-badge[hidden]{display:none}.neuro-mic-badge span{min-width:0}.neuro-mic-badge button{flex-shrink:0}@keyframes neuro-breathe{50%{box-shadow:0 0 46px #e6bb7077,inset 0 0 30px #ffefbe;transform:scale(1.035)}}@media(prefers-reduced-motion:reduce){.neuro-orb{animation:none!important}}

/* Один голосовой режим внутри окна помощника. */
.chat [hidden]{display:none!important}.chat-voice-entry svg{width:25px;height:25px}.chat form .chat-voice-entry{width:40px;flex:none;padding:7px}.chat form #mic[aria-pressed=true]{color:#ef7568;background:#512d2d}.voice-options{margin:20px 0 10px}.voice-options summary{cursor:pointer;color:var(--muted)}.voice-options form{display:block!important}.voice-options .budget-check{display:flex;align-items:center;gap:8px;margin:12px 0}.voice-privacy{font-size:12px}.neuro-voice [data-voice-text]{max-height:28vh;overflow:auto}.neuro-orb span{font-size:16px;line-height:1.3}.chat [data-chat-voice]{min-height:340px}.chat .neuro-voice{padding:8px}.chat .voice-options input[type=checkbox]{width:20px;height:20px;flex:none}.chat .voice-options input[type=range]{width:100%}

.neuro-voice .neuro-orb{--voice-energy:0;position:relative;width:176px;height:176px;isolation:isolate;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 42%,#504020,#271e0b 48%,#100d07 72%);border:1px solid #d3b56caa;box-shadow:0 0 calc(24px + var(--voice-energy)*42px) #d2ab4844,inset 0 0 35px #dcbe7855;animation:none}.voice-core{position:absolute;inset:38px;border-radius:50%;background:radial-gradient(circle,#fff1bf88,#d9b76533 45%,transparent 70%);filter:blur(2px);z-index:-1}.voice-orbit{position:absolute;inset:9px;border:1px solid #dfc78b88;border-radius:50%;border-left:3px solid #fff2c5;border-right:3px solid #967a41;z-index:-1}.voice-orbit:before,.voice-orbit:after{content:"";position:absolute;border-radius:50%}.voice-orbit:before{inset:8px;border:1px dashed #e6cf8aaa}.voice-orbit:after{inset:-15px;border:1px dotted #bda26066}.neuro-voice .neuro-orb .voice-toggle-label{position:absolute;top:calc(100% + 14px);font-size:14px;color:var(--text);white-space:nowrap}.neuro-voice .neuro-orb{margin-bottom:55px}.neuro-orb[data-phase=listening] .voice-core,.neuro-orb[data-phase=interrupted] .voice-core{transform:scale(calc(.8 + var(--voice-energy)*.6));transition:transform .1s}.neuro-orb[data-phase=listening] .voice-orbit{animation:neuro-orbit 12s linear infinite}.neuro-orb[data-phase=thinking] .voice-orbit,.neuro-orb[data-phase=loading] .voice-orbit{animation:neuro-orbit 2s linear infinite}.neuro-orb[data-phase=speaking] .voice-core{animation:neuro-answer .65s ease-in-out infinite alternate}.neuro-orb[data-phase=speaking] .voice-orbit{animation:neuro-orbit 5s linear infinite reverse}.voice-live-bars{display:flex;align-items:center;justify-content:center;gap:5px;height:28px;margin:8px}.voice-live-bars i{width:3px;height:5px;border-radius:2px;background:#d8bd7b}.voice-live-bars[data-phase=speaking] i{animation:neuro-wave .7s ease-in-out infinite alternate}.voice-live-bars[data-phase=speaking] i:nth-child(2n){animation-delay:-.4s}.voice-live-bars[data-phase=speaking] i:nth-child(3n){animation-delay:-.2s}.voice-live-bars[data-phase=listening] i{background:#d8bd7b}.voice-phase{min-height:24px}.neuro-voice .voice-privacy{margin-top:16px}@keyframes neuro-orbit{to{transform:rotate(360deg)}}@keyframes neuro-answer{from{opacity:.5;transform:scale(.8)}to{opacity:1;transform:scale(1.25)}}@keyframes neuro-wave{to{height:23px}}@media(prefers-reduced-motion:reduce){.voice-orbit,.voice-core,.voice-live-bars i{animation:none!important;transition:none!important}}

.ai-fab.voice-active{box-shadow:0 0 20px #d9b76588;border-color:var(--gold)}
/* Окно Нейро: спокойный графит, шампань и компактная панель. */
.neuro-chat-bg{justify-content:flex-end;align-items:stretch;padding:16px;pointer-events:none;background:#0004}
.neuro-chat-bg .neuro-chat-sheet{pointer-events:auto;width:min(620px,100%);max-width:620px;max-height:100%;height:100%;border:1px solid #c9a65d44;border-radius:26px;background:linear-gradient(150deg,#252426f5,#141416fa);box-shadow:0 16px 80px #0007;padding:20px;overflow:hidden}
.neuro-chat-sheet .chat{height:100%;min-height:0;position:relative}
.neuro-chat-sheet.chat-expanded{width:100%;max-width:100%}
.chat .chat-head-actions{display:flex;align-items:center;gap:4px}
.chat .chat-head-actions .ic{width:38px;height:38px;background:transparent;color:var(--soft);font-size:23px;border-radius:50%}
.chat .chat-subtitle{font-size:12px;margin-top:3px}
.chat .msgs{min-height:0;overscroll-behavior:contain;padding:12px 2px;gap:18px;scrollbar-width:thin}
.chat .msg{font-size:15px;overflow-wrap:anywhere;max-width:96%;min-width:0}
.chat .msg.assistant{background:transparent;padding:2px 6px}
.chat .msg.user{background:#dfbe7020;border:1px solid #dfbe7026}
.chat .msg-content p{margin:0 0 8px}.chat .msg-content p:last-child{margin-bottom:0}
.chat .msg-content pre{max-width:100%;overflow:auto;background:#0004;border:1px solid var(--hair);border-radius:12px;padding:12px;white-space:pre}
.chat .msg-content code{font-size:13px}.chat .msg-content a{color:var(--gold);text-decoration:underline}
.chat .msg-tools{display:flex;gap:12px;margin-top:8px}.chat .msg-tools button{font-size:11px;background:none;color:var(--muted);padding:4px 0}
.chat .chat-table{overflow-x:auto;max-width:100%}.chat table{border-collapse:collapse;font-size:13px}.chat :is(th,td){padding:8px;border:1px solid var(--hair);text-align:left;min-width:80px}
.chat .chat-settings{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0;border-bottom:1px solid var(--hair)}
.chat .chat-settings button{font-size:12px;padding:6px 10px}
.chat .chat-plus-menu{position:absolute;z-index:3;bottom:86px;left:0;right:0;border:1px solid #c9a65d55;box-shadow:0 8px 28px #0006;background:var(--card);border-radius:18px;padding:8px;max-height:55%;overflow:auto}
.chat .chat-plus-menu button{display:flex;align-items:center;gap:12px;text-align:left;background:none;color:var(--text);width:100%;padding:12px;border-radius:12px}
.chat .chat-plus-menu button:hover{background:var(--card-2)}.chat-plus-menu button>span{color:var(--gold);font-size:23px;width:24px;text-align:center}.chat-plus-menu small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.chat #f{border:1px solid #c9a65d44;border-radius:25px;padding:5px;gap:2px;background:var(--card-2)}
.chat #f textarea{border:0;background:transparent;box-shadow:none;font-size:15px;padding-left:8px;min-width:0}
.chat #f .inp{min-width:0}.chat #f .ic{width:34px;height:40px}.chat #f .chat-voice-entry{width:36px}.chat #f .send{width:38px;height:38px;font-size:23px}
.chat .note{font-size:11px;text-align:center}.chat [data-voice-mute]{display:block;margin:12px auto;font-size:12px}
html[data-theme="light"] .neuro-chat-bg .neuro-chat-sheet{background:linear-gradient(150deg,#fff,#faf8f1)}
@media(max-width:650px){.neuro-chat-bg{padding:0;align-items:flex-end}.neuro-chat-bg .neuro-chat-sheet{height:92dvh;max-height:92dvh;border-radius:24px 24px 0 0;padding:18px 12px calc(12px + env(safe-area-inset-bottom))}.neuro-chat-bg .neuro-chat-sheet.chat-expanded{height:100dvh;max-height:100dvh;border-radius:0}.chat .msg{max-width:100%}.chat .chat-head-actions .ic{width:34px}.chat .h{margin-bottom:8px}}
/* Фирменная эмблема остаётся прежней; дыхание не означает доступ к микрофону. */
.ai-fab img{animation:neuro-breathe 5s ease-in-out infinite;transform-origin:center;transition:filter .3s,transform .3s}
.ai-fab::before{animation:neuro-light 5s ease-in-out infinite;pointer-events:none}
.ai-fab::after{content:"";position:absolute;inset:-9px;border-radius:50%;border:1px solid #e8d08a33;animation:neuro-wave 7s ease-out infinite;pointer-events:none}
.ai-fab:hover img{filter:drop-shadow(0 0 19px #e8be7299)}
.ai-fab[data-voice-phase="standby"]::before{border-color:#c7d8a6}
.ai-fab:is([data-voice-phase="activating"],[data-voice-phase="listening"],[data-voice-phase="speaking"]) img{animation-duration:1.7s;filter:drop-shadow(0 0 19px #e6c16ecc)}
.ai-fab:is([data-voice-phase="thinking"],[data-voice-phase="preparing"])::after{animation-duration:2s}
.ai-fab[data-voice-phase="error"]::before{border-color:#c97a65}
.neuro-mic-status{position:fixed;z-index:22;right:24px;bottom:14px;max-width:190px;border:1px solid #ddc17b66;border-radius:20px;background:#191918;color:#eddba5;padding:7px 10px;font-size:11px}
.neuro-mic-status[hidden]{display:none!important}
@keyframes neuro-breathe{0%,100%{transform:scale(.98);filter:drop-shadow(0 4px 10px #d6ab5a55)}45%{transform:scale(1.025);filter:drop-shadow(0 2px 19px #e8bd7777)}55%{transform:scale(1.015)}}
@keyframes neuro-light{0%,100%{opacity:.45;transform:scale(.99)}50%{opacity:1;transform:scale(1.04)}}
@keyframes neuro-wave{0%{opacity:0;transform:scale(.94)}15%{opacity:.6}80%,100%{opacity:0;transform:scale(1.17)}}
@media(max-width:650px){.neuro-mic-status{bottom:calc(78px + env(safe-area-inset-bottom));right:12px}}
.ai-fab.animation-paused :is(img),.ai-fab.animation-paused::before,.ai-fab.animation-paused::after{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.ai-fab img,.ai-fab::before,.ai-fab::after{animation:none!important;transition:none!important}}
.ai-fab[data-voice-phase="working"]::after{animation-duration:2.5s;border-color:#efdca488}
.ai-fab[data-voice-phase="done"] img{animation-duration:1.2s;filter:drop-shadow(0 0 24px #f5dc93)}
.chat .chart-toggle{padding:6px 10px;margin-top:8px;background:var(--card-2);color:var(--gold);border:1px solid var(--hair);border-radius:10px;font-size:12px}
.assistant-table-chart{margin:12px 0;padding:12px;border:1px solid var(--hair);border-radius:14px;min-width:0}.assistant-table-chart>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:7px 0}.assistant-table-chart span{font-size:12px;overflow-wrap:anywhere}.assistant-table-chart b{font-size:12px}.assistant-table-chart i{display:block;grid-column:1/-1;height:7px;border-radius:8px;background:linear-gradient(90deg,#a88745,#e8d28d)}.assistant-table-chart i.negative{background:#b27d69}.assistant-table-chart figcaption{font-size:10px;color:var(--muted);margin-top:8px}
.chat .chat-head-actions #chat-mic-status{color:var(--gold);font-size:14px;width:26px}

/* Изображение владельца: только размер карточки, поля свечения вне её рамки. */
.paid.paid-studio-image { min-height: 450px; padding: 0; align-self: stretch; background: #21051f; border: 0; box-shadow: none; }
.paid-studio-image::before, .paid-studio-image::after { display: none; }
.paid-studio-image .studio-card-open { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; overflow: hidden; }
.paid-studio-image img { position: absolute; width: 133.333333%; max-width: none; height: 106.666667%; left: -16.666667%; top: -2.1875%; }
.paid-studio-image .studio-card-open:focus-visible { outline: 3px solid #f4daa0; outline-offset: -4px; }
