/* Оформление «Глина и лён»: льняной фон, терракота, заголовки с засечками. Тёмная пара — та же глина вечером. */
:root {
  --bg: #f5efe6; --card: #fbf7f1; --line: rgba(43,33,26,.13); --text: #2b211a; --text2: #5e5045; --muted: #8e7e71;
  --accent: #b5552f; --accent-ink: #fff8f1; --accent-soft: rgba(181,85,47,.12); --good: #3f8a5c; --warn: #b7791f; --bad: #c0392b;
  --user-bg: #e9d6c6; --user-line: rgba(181,85,47,.22); --bot-bg: #fffaf3; --shadow: rgba(43,33,26,.14);
  --radius: 18px; --safe-top: env(safe-area-inset-top, 0px);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'PT Serif', Georgia, serif;
}
:root[data-theme="dark"] {
  --bg: #1b1512; --card: #251d18; --line: rgba(242,232,220,.1); --text: #f2e8dc; --text2: #c4b3a3; --muted: #8f7f72;
  --accent: #d9774f; --accent-ink: #1b1512; --accent-soft: rgba(217,119,79,.16); --good: #7cc794; --warn: #e8b75c; --bad: #ff8b8b;
  --user-bg: rgba(217,119,79,.18); --user-line: rgba(217,119,79,.32); --bot-bg: #251d18; --shadow: rgba(0,0,0,.4);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; }
#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding: calc(var(--safe-top) + 16px) 16px 40px; }
h1 { font-family: var(--display); font-size: 28px; line-height: 1.2; margin: 6px 0 8px; }
h2 { font-size: 20px; margin: 22px 0 10px; }
h3 { font-size: 16px; margin: 16px 0 6px; }
p { margin: 8px 0; }
a { color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; padding: 40px 0; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 12px 0; }
.card.tap { cursor: pointer; transition: transform .1s; } .card.tap:active { transform: scale(.99); }
.card .emoji { font-size: 26px; } .card .title { font-weight: 700; font-size: 18px; margin: 6px 0 4px; }
.card .desc { color: var(--text2); font-size: 14.5px; } .card .open { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 10px; }
.card.tap { position: relative; } .badge.new { position: absolute; top: 14px; right: 14px; background: var(--accent); color: var(--bg); letter-spacing: .04em; }
.card.soon { opacity: .6; } .badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { display: block; width: 100%; border: 0; border-radius: 16px; padding: 15px; font: inherit; font-weight: 700; font-size: 16px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn:disabled { opacity: .4; } .btn.ghost { background: transparent; color: var(--text2); border: 1px solid var(--line); font-weight: 500; }
.btn + .btn { margin-top: 10px; }
.back { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; padding: 4px 0; cursor: pointer; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
input, textarea, select { width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none; }
input:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
.row { display: flex; gap: 8px; align-items: center; } .row > * { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 14px; background: var(--card); color: var(--text2); cursor: pointer; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 16px; } .progress > i { display: block; height: 100%; background: var(--accent); }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.opt { display: block; width: 100%; text-align: left; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; margin: 8px 0; cursor: pointer; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
/* чат */
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--safe-top) - 32px); }
.msgs { flex: 1; overflow-y: auto; padding: 8px 0; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; margin: 8px 0; white-space: pre-wrap; word-wrap: break-word; font-size: 15.5px; }
.msg { line-height: 1.55; }
.msg-back { display: block; margin: -2px 0 6px auto; padding: 2px 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.msg.user { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.assistant { background: var(--bot-bg); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg em { font-style: italic; } .msg b { font-weight: 650; }
.chat-title { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.chat-title span { font-size: 12px; color: var(--muted); }
.composer { display: flex; gap: 8px; align-items: flex-end; padding-top: 8px; }
.composer textarea { min-height: 46px; max-height: 160px; border-radius: 22px; }
.chat-privacy { margin: 8px 4px 0; text-align: center; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.round { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 18px; cursor: pointer; }
.round.alt { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.round.rec { background: #e5484d; color: #fff; }
.typing { color: var(--muted); font-size: 14px; }
/* модалка */
#modal .shade { position: fixed; inset: 0; background: rgba(27,21,18,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
#modal .sheet { background: var(--bg); border: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 22px 18px 30px; width: 100%; max-width: 560px; max-height: 90dvh; overflow-y: auto; }
/* трекер */
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .mood { text-align: center; padding: 10px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 12px; color: var(--text2); }
.mood b { display: block; font-size: 24px; } .mood.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 8px 0; cursor: pointer; }
.check .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--muted); display: grid; place-items: center; font-size: 14px; }
.check.on .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .cal span { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 12px; background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.cal span.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hgrid { display: flex; gap: 4px; overflow-x: auto; margin-top: 10px; padding-bottom: 2px; scrollbar-width: none; } .hgrid::-webkit-scrollbar { display: none; }
.hd { flex: 0 0 34px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--accent-ink); font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.hd small { font-size: 10px; color: var(--muted); line-height: 1; } .hd.on small { color: var(--accent-ink); opacity: .85; } .hd.today { border-width: 2px; border-color: var(--accent); }
.cal span.today { border: 2px solid var(--accent); color: var(--text); font-weight: 700; } .cal span.today.on { color: var(--accent-ink); }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 90px; } .chart div { flex: 1; text-align: center; font-size: 10px; color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.chart i { display: block; background: var(--accent); border-radius: 4px 4px 0 0; margin-bottom: 3px; min-height: 2px; }
/* Тесты — как у Phronesis */
.tst-link { display: block; margin: 4px auto 10px; background: none; border: 0; color: var(--text2); font: inherit; font-size: 14.5px; padding: 8px 16px; cursor: pointer; }
.tst-lead { font-size: 17px; line-height: 1.55; color: var(--text2); margin: 10px 0 14px; }
.tst-text { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.tst-subtitle { color: var(--muted); font-size: 15px; margin: -4px 0 8px; }
.tst-label { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 24px 0 10px; }
.tst-label.accent { color: var(--accent); margin: 0 0 6px; }
.tst-card .tst-label, .tst-hero .tst-label { margin-top: 0; }
.tst-scale { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 14px; }
.tst-scale .tst-label { margin: 0 0 8px; font-size: 10.5px; }
.tst-scale div:not(.tst-label) { padding: 4px 0; font-size: 14.5px; } .tst-scale b { color: var(--accent); display: inline-block; width: 22px; }
.tst-count { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.tst-done { text-align: center; color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.tst-q { margin: 22px 0 18px; font-size: 19px; line-height: 1.4; }
.tst-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font: inherit; font-size: 15px; padding: 13px 14px; margin: 8px 0; cursor: pointer; }
.tst-opt b { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--text2); display: flex; align-items: center; justify-content: center; font-size: 12.5px; }
.tst-opt.on { border-color: var(--accent); background: var(--accent-soft); } .tst-opt.on b { background: var(--accent); color: var(--accent-ink); }
.tst-phrase { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-align: center; font-size: 16px; line-height: 1.45; margin: 10px 0; }
.btn.tst-soft { background: transparent; color: var(--accent); border: 1px solid var(--accent); font-weight: 600; }
.btn.tst-neutral { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; margin: 10px 0; }
.tst-sub { color: var(--muted); font-size: 14px; margin: 18px 0 10px; }
.tst-grp { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: 14.5px; } .tst-grp span { flex: 0 0 30%; }
.tst-bar { flex: 1; height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; } .tst-bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.tst-bar.big { height: 8px; margin: 14px 0 6px; }
.tst-top { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; margin: 8px 0; }
.tst-top .n { color: var(--accent); width: 18px; } .tst-top .name { flex: 1; } .tst-top .cat { color: var(--muted); font-size: 12.5px; }
.tst-h2 { color: var(--accent); margin-top: 28px; }
.tst-portrait strong { color: var(--accent); }
.tst-hero { background: var(--accent-soft); border: 1px solid var(--accent-soft); border-radius: var(--radius); padding: 20px 18px; margin: 12px 0 8px; text-align: center; }
.tst-hero.left { text-align: left; } .tst-hero h1 { margin: 2px 0 8px; } .tst-hero p { line-height: 1.55; margin: 8px 0; }
.tst-hero-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; } .tst-hero-head h1 { margin: 0; } .tst-emoji { font-size: 34px; }
.tst-big { font-size: 46px; font-weight: 800; line-height: 1.1; } .tst-big small { font-size: 20px; color: var(--muted); font-weight: 600; }
.tst-band { font-size: 18px; font-weight: 700; margin-top: 4px; }
.tst-plain { line-height: 1.6; margin: 16px 0; }
.tst-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 10px 0; }
.tst-card p { margin: 6px 0 0; line-height: 1.5; color: var(--text2); } .tst-card .tst-label { font-size: 10.5px; margin-bottom: 6px; }
.tst-title { display: block; font-size: 16px; margin-bottom: 2px; }
.tst-tag { color: var(--muted); font-size: 12px; margin-left: 4px; } .tst-tag.good { color: var(--good); } .tst-tag.warn { color: var(--warn); } .tst-tag.bad { color: var(--bad); }
.tst-good { color: var(--good); } .tst-warn { color: var(--accent); } .tst-accent { color: var(--warn); }
.tst-arch { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 14px; } .tst-arch span { flex: 0 0 38%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tst-arch b { flex: 0 0 22px; text-align: right; color: var(--muted); font-weight: 600; } .tst-arch .tst-bar > i { opacity: .75; }
.tst-arch.lead span { color: var(--accent); font-weight: 700; } .tst-arch.lead .tst-bar > i { opacity: 1; } .tst-arch.shadow .tst-bar > i { background: var(--muted); }

/* Трекер — как у Phronesis */
.trk-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.trk-head div { flex: 1; display: flex; flex-direction: column; } .trk-head b { font-size: 16px; } .trk-head span { color: var(--muted); font-size: 12.5px; }
.trk-arrow { background: none; border: 0; color: var(--text2); font-size: 20px; padding: 0 4px 0 0; cursor: pointer; }
.trk-right { background: none; border: 0; color: var(--text2); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 0; }
.trk-h2 { margin: 18px 0 8px; font-size: 21px; }
.trk-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.trk-mood { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 2px 8px; font: inherit; font-size: 11.5px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.trk-mood b { font-size: 24px; line-height: 1; } .trk-mood.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.trk-habit { display: flex; align-items: center; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; margin: 8px 0; font: inherit; font-size: 15px; color: var(--text); text-align: left; cursor: pointer; }
.trk-habit span { flex: 1; }
.trk-switch { position: relative; flex: 0 0 40px; height: 24px; border-radius: 99px; background: var(--line); transition: background .15s; }
.trk-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.trk-switch.on { background: var(--accent); } .trk-switch.on::after { left: 19px; }
.trk-opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.trk-dump { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; background: var(--accent-soft); border: 1px solid var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; font: inherit; color: var(--text); cursor: pointer; }
.trk-dump b { font-size: 15px; } .trk-dump span { color: var(--muted); font-size: 12.5px; }
.trk-hint { text-align: center; color: var(--muted); font-size: 12.5px; margin: 8px 0 4px; min-height: 1em; }
.trk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.trk-cal span { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.trk-cal span.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; } .trk-cal span.today { border: 2px solid var(--accent); color: var(--text); }
.trk-hrow { display: flex; gap: 8px; margin: 8px 0; } .trk-hrow input { flex: 1; margin: 0; }
.trk-x { flex: 0 0 46px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 20px; cursor: pointer; }
.trk-area { min-height: 160px; }

/* Свой курс — как у Phronesis */
.rt-level { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.rt-lv-top { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; } .rt-lv-top > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.rt-lv-top span:not(.rt-lv-n) { color: var(--muted); font-size: 12.5px; } .rt-lv-top .tst-bar { flex: none; height: 7px; margin-top: 6px; }
.rt-lv-n { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rt-chip { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.rt-badges { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin: 4px 0 14px; }
.rt-badges div { display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: .4; } .rt-badges div.got { opacity: 1; }
.rt-badges i { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 20px; }
.rt-badges span { font-size: 11.5px; color: var(--muted); }
.rt-week { background: var(--card); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.rt-week > p { line-height: 1.55; color: var(--text2); }
.rt-wk-head { display: flex; justify-content: space-between; align-items: baseline; } .rt-wk-head b { color: var(--accent); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; } .rt-wk-head span { color: var(--muted); font-size: 12px; }
.rt-day { background: var(--bg); border-radius: 12px; padding: 10px 12px; margin: 8px 0; line-height: 1.45; }
.rt-label { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.rt-wait { color: var(--muted); font-size: 12.5px; font-style: italic; margin-top: 4px; } .rt-next { text-align: center; color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.rt-point { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.rt-point p { margin: 0; line-height: 1.5; }
.rt-pin { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--warn); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rt-point.b .rt-pin { background: var(--good); }
.rt-line { position: relative; margin: 4px 0; padding-left: 4px; } .rt-line::before { content: ''; position: absolute; left: 21px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.rt-node { position: relative; display: flex; gap: 14px; padding: 10px 0; } .rt-node[data-n] { cursor: pointer; }
.rt-dot { position: relative; flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 16px; z-index: 1; }
.rt-node.open .rt-dot { border-color: var(--accent); background: var(--accent-soft); } .rt-node.done .rt-dot { background: var(--good); color: #fff; border-color: var(--good); }
.rt-title { display: block; font-size: 16px; } .rt-title.muted { color: var(--muted); }
.rt-node p { margin: 4px 0 0; color: var(--text2); font-size: 14px; line-height: 1.5; } .rt-teaser { font-style: italic; color: var(--muted) !important; }
.rt-open { margin-top: 10px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px; padding: 9px 14px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }

/* Трекер привычек — как у Phronesis */
.hb-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.hb-grid { display: flex; gap: 8px; }
.hb-names { flex: 0 0 34%; min-width: 0; } .hb-days { flex: 1; overflow-x: auto; scrollbar-width: none; } .hb-days::-webkit-scrollbar { display: none; }
.hb-hd { height: 24px; display: flex; gap: 6px; } .hb-hd span { flex: 0 0 34px; text-align: center; color: var(--muted); font-size: 12px; } .hb-hd span.today { color: var(--accent); font-weight: 700; }
.hb-row { display: flex; gap: 6px; height: 46px; align-items: flex-start; }
.hb-row .hd { flex: 0 0 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: #fff; font-weight: 700; padding: 0; cursor: pointer; }
.hb-row .hd.today { border: 2px solid var(--accent); }
.hb-name { display: block; width: 100%; height: 46px; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.hb-name span { display: flex; align-items: center; gap: 8px; height: 34px; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-name i { flex: 0 0 9px; height: 9px; border-radius: 50%; } .hb-name em { display: block; height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 2px; } .hb-name em b { display: block; height: 100%; border-radius: 99px; }
.hb-note { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.hb-score { display: flex; gap: 16px; align-items: center; } .hb-score p { color: var(--text2); font-size: 13.5px; margin: 0; line-height: 1.45; }
.hb-big { color: var(--accent); font-size: 40px; font-weight: 800; line-height: 1; text-align: center; } .hb-big small { font-size: 16px; color: var(--muted); font-weight: 600; }
.hb-cap { color: var(--muted); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; text-align: center; white-space: nowrap; }
.hb-chart { display: flex; align-items: flex-end; gap: 4px; height: 80px; margin-top: 14px; } .hb-chart i { flex: 1; background: var(--accent); border-radius: 3px; opacity: .85; }
.hb-chart.sleep div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; } .hb-chart.sleep i { width: 70%; flex: none; } .hb-chart.sleep span { font-size: 11px; color: var(--muted); }
.hb-colors { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; } .hb-colors button { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; } .hb-colors button.on { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--text); }
.hb-goal { display: flex; align-items: center; gap: 10px; color: var(--text2); font-size: 14.5px; margin-bottom: 12px; }
.hb-pm { display: flex; align-items: center; gap: 4px; background: var(--bg); border-radius: 12px; padding: 4px; } .hb-pm button { width: 34px; height: 30px; border: 0; background: none; color: var(--text); font-size: 18px; cursor: pointer; } .hb-pm b { min-width: 40px; text-align: center; }
.hb-add-row { display: flex; align-items: center; gap: 10px; } .hb-add-row .btn { flex: 1; } .hb-add-row .tst-link { margin: 0; }
.hb-sleep { display: flex; align-items: center; justify-content: space-between; } .hb-sleep > b { font-size: 16px; }

/* 16 ассоциаций — как у Phronesis */
.as-h2 { margin: 18px 0 8px; font-size: 20px; }
.as-wait { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: var(--text2); }
.as-wait i { font-style: normal; font-size: 34px; animation: as-pulse 1.6s ease-in-out infinite; } .as-wait p { max-width: 240px; line-height: 1.5; }
@keyframes as-pulse { 50% { transform: scale(1.15); opacity: .6; } }
.as-suggest { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; margin: 8px 0 16px; }
.as-suggest .tst-label { margin: 0 0 6px; font-size: 10.5px; } .as-suggest b { font-size: 24px; }
.as-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; } .as-row span { flex: 0 0 22px; color: var(--muted); text-align: right; font-size: 14px; } .as-row input { flex: 1; margin: 0; }
.as-pair { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; } .as-pair input { margin: 8px 0 0; }
.as-pair-src { font-size: 13.5px; color: var(--text2); } .as-pair-src span { color: var(--accent); font-weight: 700; }
.as-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 6px 0 10px; font-size: 15px; }
.as-query { font-size: 17px; line-height: 1.5; margin: 0 0 6px; }
.as-p { line-height: 1.6; color: var(--text2); margin: 0 0 6px; }
.as-list { list-style: none; padding: 0; margin: 0; } .as-list li { position: relative; padding-left: 16px; margin: 6px 0; line-height: 1.5; color: var(--text2); }
.as-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.as-formula { background: var(--accent-soft); border: 1px solid var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; margin: 22px 0 6px; }
.as-formula .tst-label { margin: 0 0 8px; } .as-formula p { font-weight: 700; margin: 6px 0; line-height: 1.45; }

/* Шаги матрицы решений — как у Phronesis */
.mxs-top { position: relative; text-align: center; color: var(--muted); font-size: 14px; padding: 6px 0 14px; }
.mxs-arrow { position: absolute; left: 0; top: 0; background: none; border: 0; color: var(--muted); font-size: 20px; padding: 0 8px 0 0; cursor: pointer; }
.mxs-lead { font-size: 17px; line-height: 1.55; color: var(--text2); margin: 10px 0 14px; }
.mxs-text { color: var(--text2); font-size: 14.5px; line-height: 1.55; margin: 6px 0 16px; }
.mxs-time { color: var(--muted); font-size: 15px; margin: 16px 0 18px; }
.mxs-field { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.mxs-field input { flex: 1; margin: 0; }
.mxs-x { flex: 0 0 auto; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 8px; cursor: pointer; }
.mxs-add { background: none; border: 0; color: var(--accent); font: inherit; font-size: 14.5px; padding: 10px 0; cursor: pointer; }
.mxs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.mxs-chip { background: var(--card); border: 1px solid var(--line); border-radius: 99px; color: var(--text2); font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer; }
.mxs-chip.used { opacity: .45; }
.mxs-count { text-align: right; color: var(--muted); font-size: 13px; min-height: 1em; margin: 4px 0 12px; }
.mxs-row { margin: 16px 0; }
.mxs-label { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.mxs-label span { color: var(--muted); font-weight: 400; } .mxs-label b { font-weight: 400; }
.mxs-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.mxs-scale button { aspect-ratio: 1; max-height: 38px; border: 0; border-radius: 8px; background: var(--card); color: var(--text2); font: inherit; font-size: 14px; font-weight: 600; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.mxs-scale button.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.mxs-row + .btn, .mxs-scale + .btn { margin-top: 22px; }

/* Результат матрицы решений — лаконично, как у Phronesis */
.mxr-label { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 26px 0 12px; }
.mxr-label.accent { color: var(--accent); margin: 0 0 6px; }
.mxr-hero { text-align: center; background: var(--accent-soft); border: 1px solid var(--accent-soft); border-radius: var(--radius); padding: 22px 16px; margin: 12px 0 6px; }
.mxr-hero h1 { margin: 0; font-size: 26px; }
.mxr-score { color: var(--text2); font-size: 15px; font-weight: 600; margin-top: 6px; }
.mxr-opt { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-size: 14.5px; }
.mxr-opt-name { flex: 0 0 30%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mxr-opt.lead .mxr-opt-name { color: var(--accent); font-weight: 700; }
.mxr-bar { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.mxr-bar > i { display: block; height: 100%; background: var(--accent); opacity: .45; border-radius: 99px; }
.mxr-opt.lead .mxr-bar > i { opacity: 1; }
.mxr-num { flex: 0 0 auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
table.mxr-table { border-collapse: collapse; font-size: 14px; width: 100%; }
table.mxr-table th { color: var(--muted); font-weight: 500; font-size: 12.5px; text-align: right; padding: 0 4px 8px 10px; }
table.mxr-table td { border-top: 1px solid var(--line); padding: 8px 4px 8px 10px; text-align: right; }
table.mxr-table th:first-child, table.mxr-table td:first-child { text-align: left; padding-left: 0; }
.mxr-w { color: var(--muted); font-size: 12.5px; }
.mxr-total td { font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.mxr-total td:not(:first-child) { color: var(--accent); font-size: 15px; }
.mxr-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; }
.mxr-card .mxr-label { margin: 0 0 8px; font-size: 10.5px; }
.mxr-card p { margin: 0; line-height: 1.55; }
.mxr-note { color: var(--muted); font-size: 12.5px; line-height: 1.55; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px; }
.mxr-again { display: block; margin: 18px auto 8px; background: none; border: 0; color: var(--text2); font: inherit; font-size: 15px; padding: 10px 20px; cursor: pointer; }
table.mx { border-collapse: collapse; font-size: 13px; width: 100%; } table.mx td, table.mx th { border: 1px solid var(--line); padding: 6px; text-align: center; } table.mx th:first-child, table.mx td:first-child { text-align: left; }
.md h2 { font-size: 19px; } .md h3 { font-size: 16.5px; } .md p, .md li { color: var(--text2); } .md strong { color: var(--text); }
.err { color: var(--bad); font-size: 14px; }
/* База практик */
.sys-top { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sys-top .back { font-size: 20px; padding: 0 4px; }
.sys-top b { display: block; font-size: 15px; } .sys-top span { display: block; font-size: 12px; color: var(--muted); }
.sys-sticky { position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 10px 0 6px; margin-top: 8px; }
.sys-sticky input { border-radius: 99px; }
.sys-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.sys-chips::-webkit-scrollbar { display: none; }
.sys-chips .chip { white-space: nowrap; flex: 0 0 auto; }
.sys-chips .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sys-card .title { font-size: 17px; margin-top: 10px; }
.sys-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--accent-soft); }
.sys-ico.big { width: 52px; height: 52px; border-radius: 14px; font-size: 30px; margin: 16px 0 10px; }
.sys-h { font-family: var(--display); margin: 4px 0; }
.sys-lead { margin: 14px 0 6px; padding: 4px 0 4px 14px; border-left: 2px solid var(--accent); color: var(--text2); font-style: italic; font-size: 16px; line-height: 1.55; }
.sys-md h2 { font-family: var(--display); color: var(--accent); font-size: 20px; margin: 26px 0 8px; }
.sys-md p, .sys-md li { color: var(--text2); line-height: 1.6; }
.sys-md ol, .sys-md ul { padding-left: 20px; } .sys-md li { margin: 6px 0; }
.md blockquote { margin: 12px 0; padding: 4px 0 4px 14px; border-left: 2px solid var(--accent); color: var(--text2); font-style: italic; }
.md .tbl { overflow-x: auto; margin: 12px 0; }
.md table { border-collapse: collapse; width: 100%; font-size: 14px; }
.md th, .md td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.md th { color: var(--text); font-weight: 600; }
.md td { color: var(--text2); }
.plink { color: var(--accent); text-decoration: none; border-bottom: 1px dashed currentColor; cursor: pointer; }
.blank-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 14px; }
.blank-card h3 { font-family: var(--display); font-size: 16px; color: var(--text); margin: 16px 0 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.blank-card h3:first-child { border-top: 0; padding-top: 4px; }
.blank-card p { font-size: 14px; }
.blank { display: block; margin: 10px 0; } .blank span { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.blank textarea { min-height: 52px; font-size: 14px; }
.blank-check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: 14px; color: var(--text); cursor: pointer; }
.blank-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.point { display: flex; gap: 12px; align-items: flex-start; }
.point .pin { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #0a0807; }
.point.a .pin { background: #d98a5f; } .point.b .pin { background: #8fae8b; }
.step.done { border-color: rgba(91,176,160,.45); } .step.open { border-color: var(--accent); } .step.locked { opacity: .6; }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 8px 0; }
.scale button { padding: 8px 0; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 14px; cursor: pointer; }
.scale button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.daily { padding: 8px 0; border-top: 1px solid var(--line); } .daily .ans { margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--accent); color: var(--text2); }
.prompt-edit { width: 100%; min-height: 55vh; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.say { display: block; margin-top: 8px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.say:active { color: var(--text); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 14px; box-shadow: 0 8px 24px var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: none; }

/* ===== Оформление «Жидкое стекло v2» (2026-10-11) — слой поверх «Глины»: кремовый холст, стекло, коралл только на главном,
   тёмные «дымчатые» карточки для ритма, заголовки с засечками без жирности (палитра по DESIGN-claude.md).
   Вернуть прошлое стекло: docs/design/styles-glass-v1-backup.css; «Глину»: docs/design/styles-glina-backup.css. ===== */
:root {
  --bg: #faf9f5; --card: rgba(255,254,250,.55); --line: #e6dfd8; --text: #141413; --text2: #3d3d3a; --muted: #6c6a64; --muted2: #8e8b82;
  --accent: #cc785c; --accent-act: #a9583e; --accent-ink: #fff; --accent-soft: rgba(204,120,92,.13); --good: #3e9483; --warn: #b97a2e; --bad: #c64545;
  --teal: #5db8a6; --amber: #e8a55a; --cream: #efe9de; --cream-strong: #e8e0d2; --bot-bg: transparent;
  --g-fill: linear-gradient(150deg, rgba(255,254,250,.74), rgba(255,253,247,.42));
  --g-edge: rgba(255,255,255,.85); --g-hi: #fff; --g-line: rgba(20,20,19,.06); --well: #e6dfd8;
  --g-shadow: 0 1px 2px rgba(20,20,19,.04), 0 10px 28px rgba(120,70,40,.08);
  --smoke: linear-gradient(150deg, rgba(37,35,32,.92), rgba(24,23,21,.88)); --g-top: rgba(250,249,245,.72);
  --glow1: rgba(204,120,92,.34); --glow2: rgba(232,165,90,.3); --glow3: rgba(93,184,166,.22);
  --radius: 20px; --font: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}
:root[data-theme="dark"] {
  --bg: #181715; --card: rgba(250,249,245,.06); --line: rgba(250,249,245,.12); --text: #faf9f5; --text2: #d9d5cc; --muted: #a09d96; --muted2: #7d7a73;
  --accent: #d98a6e; --accent-act: #cc785c; --accent-ink: #fff; --accent-soft: rgba(217,138,110,.18); --good: #5db8a6; --warn: #e8a55a; --bad: #e07070;
  --cream: #252320; --cream-strong: #2e2b27;
  --g-fill: linear-gradient(150deg, rgba(250,249,245,.1), rgba(250,249,245,.035));
  --g-edge: rgba(250,249,245,.14); --g-hi: rgba(250,249,245,.2); --g-line: rgba(0,0,0,.2); --well: rgba(250,249,245,.1);
  --g-shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px rgba(0,0,0,.35);
  --smoke: linear-gradient(150deg, rgba(250,249,245,.15), rgba(250,249,245,.06)); --g-top: rgba(24,23,21,.72);
  --glow1: rgba(204,120,92,.22); --glow2: rgba(232,165,90,.12); --glow3: rgba(93,184,166,.12);
}
/* Едва заметные тёплые свечения за стеклом; неподвижные — чтобы на телефоне всё листалось плавно */
.glass-bg { position: fixed; inset: -15%; z-index: -1; pointer-events: none; filter: blur(60px); }
.glass-bg i { position: absolute; border-radius: 50%; }
.glass-bg i:nth-child(1) { width: 62%; height: 36%; left: -8%; top: 2%; background: var(--glow1); }
.glass-bg i:nth-child(2) { width: 55%; height: 32%; right: -8%; top: 34%; background: var(--glow2); }
.glass-bg i:nth-child(3) { width: 60%; height: 34%; left: 6%; bottom: 2%; background: var(--glow3); }
.glass-bg i:nth-child(4) { display: none; }
html, body { background: var(--bg); }
body { position: relative; z-index: 0; }

/* Шрифты: заголовки и крупные числа — с засечками, обычной толщины; остальное — Inter */
h1 { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: -.02em; line-height: 1.12; }
h2 { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -.01em; }
h3 { font-weight: 600; }
.tst-q { font-family: var(--display); font-weight: 400; font-size: 21px; }
.tst-big, .hb-big, .rt-lv-n, .mxr-hero h1, .tst-hero h1, .as-suggest b, .tst-band, .trk-h2, .as-h2 { font-family: var(--display); font-weight: 400; }
.tst-big { font-size: 52px; letter-spacing: -.03em; }
.card .title, .tst-title, .rt-title, .trk-head b, .sys-top b { font-weight: 500; }
.sys-card .title { font-family: var(--display); font-weight: 400; font-size: 19px; }
.eyebrow, .tst-label, .mxr-label, .rt-label, .hb-cap, .rt-wk-head b { font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.eyebrow { color: var(--muted); font-size: 12px; }
a, .plink, .mxs-add { color: var(--accent); }

/* Стекло: карточки, варианты ответа, поля ввода, пузыри помощника */
.card, .opt, .tst-opt, .tst-scale, .tst-phrase, .tst-top, .tst-card, .trk-mood, .trk-habit, .rt-level, .rt-week, .rt-point,
.hb-card, .as-suggest, .as-pair, .as-box, .mxr-card, .blank-card, .check, .mood, .chip, .mxs-chip, .trk-x, .rt-dot, .rt-badges i,
.msg.assistant, .btn.ghost, .round.alt, .toast, .say, .scale button, .mxs-scale button, .cal span, .trk-cal span, .hd, .sys-ico,
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  background: var(--g-fill); border: 1px solid var(--g-edge);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--g-shadow), inset 0 1px 0 var(--g-hi), inset 0 0 0 .5px var(--g-line);
}
.card, .tst-card, .rt-level, .rt-week, .rt-point, .hb-card, .mxr-card, .blank-card, .as-suggest, .as-pair, .tst-phrase, .tst-scale { border-radius: var(--radius); }
.opt, .tst-opt, .trk-habit, .check, .as-box, .tst-top { border-radius: 16px; }
.chip, .mxs-chip, .mood, .trk-mood, .scale button, .mxs-scale button, .cal span, .trk-cal span, .hd, .say { box-shadow: inset 0 1px 0 var(--g-hi), inset 0 0 0 .5px var(--g-line); }
input:not([type="checkbox"]):not([type="radio"]), textarea, select { border-radius: 14px; box-shadow: inset 0 1px 0 var(--g-hi), inset 0 0 0 .5px var(--g-line); }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card.soon { opacity: .55; }
.rt-week { border-color: var(--accent); }
.card .open { font-weight: 500; }

/* Выбранное — кремовое стекло с коралловой рамкой */
.opt.on, .tst-opt.on, .chip.on, .mood.on, .trk-mood.on, .rt-node.open .rt-dot {
  background: linear-gradient(150deg, rgba(204,120,92,.14), rgba(255,254,250,.6)); border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(20,20,19,.08), inset 0 0 0 .5px var(--accent);
}
:root[data-theme="dark"] .opt.on, :root[data-theme="dark"] .tst-opt.on, :root[data-theme="dark"] .chip.on, :root[data-theme="dark"] .mood.on,
:root[data-theme="dark"] .trk-mood.on, :root[data-theme="dark"] .rt-node.open .rt-dot { background: linear-gradient(150deg, rgba(217,138,110,.22), rgba(250,249,245,.05)); }
.rt-node.done .rt-dot { background: var(--good); border-color: var(--good); }

/* Коралл — только главное: кнопки, твои сообщения, отметки */
.btn, .round, .rt-open, .msg.user, .check.on .box, .cal span.on, .trk-cal span.on, .scale button.on, .mxs-scale button.on, .sys-chips .chip.on, .rt-lv-n, .badge.new {
  background: var(--accent); border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 6px 16px rgba(204,120,92,.26), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn { border-radius: 14px; font-weight: 500; }
.btn:active, .round:active, .rt-open:active { background: var(--accent-act); }
.btn:active, .round:active, .card.tap:active { transform: scale(.985); }
.btn.ghost { color: var(--text); font-weight: 500; }
.btn.tst-soft { background: var(--g-fill); color: var(--accent); border: 1px solid var(--accent); box-shadow: none; }
.btn.tst-neutral { box-shadow: none; }
.badge { font-weight: 500; } .badge.new { letter-spacing: 1.2px; font-size: 10.5px; box-shadow: none; }
.round.rec { background: var(--bad); }
.round.alt { color: var(--text); }
.hd.on, .hb-row .hd[style*="background"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }

/* Тёмное дымчатое стекло — для итоговых блоков: даёт ритм «светлое → тёмное → светлое».
   Внутри переопределяем цвета текста, поэтому всё вложенное само становится светлым. */
.smoke, .tst-hero, .mxr-hero, .trk-dump {
  --text: #faf9f5; --text2: #d9d5cc; --muted: #a09d96; --line: rgba(250,249,245,.14); --well: rgba(250,249,245,.14);
  background: var(--smoke); color: var(--text); border: 1px solid rgba(250,249,245,.1);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 14px 34px rgba(20,20,19,.2), inset 0 1px 0 rgba(250,249,245,.14);
}
.tst-hero, .mxr-hero { border-radius: var(--radius); }
.tst-hero .tst-label.accent, .mxr-hero .mxr-label.accent { color: var(--accent); }
/* Формула «зачем» — коралловая карточка-призыв */
.as-formula { --text: #fff; --muted: rgba(255,255,255,.8); color: #fff; border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 45%), linear-gradient(150deg, rgba(214,136,106,.96), rgba(196,110,82,.94));
  box-shadow: 0 16px 34px rgba(204,120,92,.3), inset 0 1px 0 rgba(255,255,255,.45); }
.as-formula .tst-label { color: rgba(255,255,255,.8); }

/* Полоски и графики */
.progress, .bar, .tst-bar, .mxr-bar, .hb-name em, .trk-switch { background: var(--well); box-shadow: none; }
.progress, .bar, .tst-bar { height: 5px; }
.progress > i, .bar > i, .tst-bar > i, .mxr-bar > i { background: var(--accent); }
.chart i, .hb-chart i { background: var(--accent); border-radius: 6px 6px 2px 2px; opacity: .85; }
.trk-switch.on { background: var(--accent); }
.rt-day, .hb-row .hd, .hb-pm { background: var(--cream); }
.rt-pin { background: var(--amber); } .rt-point.b .rt-pin { background: var(--teal); }

/* Чат */
.msg { border-radius: 18px; color: var(--text2); }
.msg.user { color: #fff; border-bottom-right-radius: 6px; }
.msg.assistant { border-bottom-left-radius: 6px; }
.composer textarea { border-radius: 24px; }

/* Шторка снизу и липкая строка поиска */
#modal .shade { background: rgba(20,20,19,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#modal .sheet { background: var(--g-top); border: 1px solid var(--g-edge); border-radius: 28px 28px 0 0;
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); box-shadow: 0 -10px 40px rgba(0,0,0,.12), inset 0 1px 0 var(--g-hi); }
.sys-sticky { background: var(--g-top); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); margin: 8px -16px 0; padding: 10px 16px 6px; }
.sys-chips .chip:not(.on) { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.sys-lead, .md blockquote, .daily .ans { border-left-color: var(--accent); }

/* Главная */
.brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.brand i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; background: var(--accent); }
.ib { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--text); padding: 0; cursor: pointer;
  background: var(--g-fill); border: 1px solid var(--g-edge); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 var(--g-hi), 0 1px 3px rgba(20,20,19,.06); }
.home-callout { position: relative; color: #fff; border-radius: 22px; border: 1px solid rgba(255,255,255,.28); padding: 22px 20px 20px; margin: 14px 0 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 45%), linear-gradient(150deg, rgba(214,136,106,.96), rgba(196,110,82,.94));
  box-shadow: 0 16px 34px rgba(204,120,92,.3), inset 0 1px 0 rgba(255,255,255,.45); }
.home-callout .eyebrow { color: rgba(255,255,255,.82); }
.home-callout h2 { font-size: 27px; line-height: 1.15; margin: 6px 0 6px; }
.home-callout p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.9); }
/* Сменяющийся текст: высота под самый длинный вариант, чтобы карточка не прыгала; мягкое затухание при смене */
.home-callout .cl-rot { min-height: 112px; transition: opacity .4s ease; }
@media (max-width: 340px) { .home-callout .cl-rot { min-height: 134px; } }
.home-callout .cl-rot.fade { opacity: 0; }
.btn.cream { background: #faf9f5; color: #141413; box-shadow: 0 1px 2px rgba(20,20,19,.12); }
.btn.cream:active { background: #efe9de; }
.home-course { display: block; padding: 16px 18px; border-radius: var(--radius); margin: 0 0 4px; cursor: pointer; }
.home-course .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.home-course .tag { font-size: 10.5px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: rgba(250,249,245,.12); }
.home-course b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; margin: 8px 0 2px; }
.home-course small { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }
.home-course .bar { margin: 12px 0 2px; }
.home-label { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; margin: 22px 4px 10px; }
.home-label[hidden] { display: none; }
.home-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 10px 0; }
.home-row > div { flex: 1; min-width: 0; }
.home-row b { display: block; font-weight: 500; font-size: 15px; } .home-row small { color: var(--muted); font-size: 13px; line-height: 1.35; display: block; }
.home-row .chev { color: var(--muted); font-size: 22px; }
.ico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.grid2 .card { margin: 0; padding: 14px; min-height: 124px; display: flex; flex-direction: column; justify-content: space-between; }
.grid2 .card .title { font-size: 14.5px !important; line-height: 1.3; margin: 10px 0 2px; } .grid2 .card .desc { font-size: 12px; color: var(--muted); }
.grid2 .card .emoji { font-size: 18px; }
.grid2 .badge.new { top: 12px; right: 12px; }

/* Плавающее нижнее меню */
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: calc(100% - 32px); max-width: 528px; height: 64px; z-index: 8;
  display: flex; align-items: center; justify-content: space-around; padding: 0 6px; border-radius: 32px;
  background: var(--g-fill); border: 1px solid var(--g-edge); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 10px 30px rgba(60,40,25,.14), inset 0 1px 0 var(--g-hi); }
.dock[hidden] { display: none; }
.dock button { flex: 1; border: 0; background: none; font: inherit; font-size: 10.5px; font-weight: 500; color: var(--muted); padding: 6px 0; border-radius: 26px; cursor: pointer; }
.dock button span { display: block; font-size: 19px; line-height: 1.25; filter: grayscale(.3); }
.dock button.on { color: var(--text); background: var(--cream-strong); }
.dock button.on span { filter: none; }
body.has-dock #app { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
body.has-dock .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

/* Живой клубок: рядом с приветствием и крупно на экранах знакомства */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Спрайт 10×7 = 70 кадров, кадры перечислены в @keyframes yarn-frames */
.yarn { --s: 96px; width: var(--s); height: var(--s); flex: none; pointer-events: none; animation: yarn-breathe 3.3s ease-in-out 8 forwards; }
.yarn.big { --s: 168px; margin: 0 auto 12px; }
.yarn.tap { pointer-events: auto; cursor: pointer; }
/* Солнце «Восход» на экранах знакомства: солнце поднимается из-за моря, потом раскрываются лучи — один раз */
.sunrise { width: 168px; height: 168px; display: block; margin: 0 auto 12px; flex: none; }
.sunrise.tap { width: 96px; height: 96px; margin: 0; cursor: pointer; }
.sunrise .sr-sun { animation: sr-rise 2.2s cubic-bezier(.2,.7,.2,1) both; }
.sunrise .sr-rays { transform-origin: 100px 120px; animation: sr-rays 2.6s ease-out both; }
@keyframes sr-rise { from { transform: translateY(70px); } to { transform: translateY(0); } }
@keyframes sr-rays { 0%, 50% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: scale(1); } }
/* Значок приложения в шапке — остановившийся клубок (тот же, что на ярлыке и во вкладке) */
.brand .brand-ico { width: 24px; height: 24px; object-fit: contain; }
/* Значок «Практики под тебя» (бывший «Мой путь») — картинка-лабиринт размером с эмодзи вокруг */
.maze { width: 1.15em; height: 1.15em; vertical-align: -0.2em; border-radius: 22%; }
.compass-ico { width: 1.35em; height: 1.35em; vertical-align: -0.25em; display: inline-block; }
/* Список тестов «Витрина» (2026-10-13, docs/design/tests-list.html) */
.tst-show { position: relative; overflow: hidden; text-align: center; padding: 22px 18px 18px; margin: 12px 0; border-radius: 22px; border: 1px solid var(--g-edge, var(--line)); box-shadow: var(--g-shadow); cursor: pointer; }
.tst-show .halo { width: 112px; height: 112px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.6); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.tst-show .halo img, .tst-show .halo .compass-ico { width: 86px; height: 86px; display: block; }
.tst-show b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--text); }
.tst-show span { display: block; color: var(--text2); font-size: 14px; margin-top: 4px; }
.tst-show .go { display: inline-block; margin-top: 12px; padding: 8px 18px; border-radius: 20px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 500; font-style: normal; }
.tst-show:active { transform: scale(.99); }
.tst-show.t-talents { background: linear-gradient(160deg, #fdf0dc, #fbf6ec); } .tst-show.t-lifemap { background: linear-gradient(160deg, #f9e3d9, #fbf6ec); }
.tst-show.t-happiness { background: linear-gradient(160deg, #fdf3d3, #eef7f3); } .tst-show.t-archetypes { background: linear-gradient(160deg, #f1e6f2, #fbf6ec); }
:root[data-theme="dark"] .tst-show .halo { background: rgba(255,255,255,.08); }
:root[data-theme="dark"] .tst-show.t-talents { background: linear-gradient(160deg, rgba(232,165,90,.18), rgba(250,249,245,.04)); }
:root[data-theme="dark"] .tst-show.t-lifemap { background: linear-gradient(160deg, rgba(204,120,92,.2), rgba(250,249,245,.04)); }
:root[data-theme="dark"] .tst-show.t-happiness { background: linear-gradient(160deg, rgba(242,193,78,.16), rgba(93,184,166,.08)); }
:root[data-theme="dark"] .tst-show.t-archetypes { background: linear-gradient(160deg, rgba(163,113,247,.16), rgba(250,249,245,.04)); }
.yarn i { display: block; width: 100%; height: 100%; background: var(--yarn-sprite, none) 0 0 / calc(var(--s) * 10) calc(var(--s) * 7) no-repeat;
  animation: yarn-frames 6.6s step-end 4; }
/* Клубок делает 4 круга (4 × 6,6 с; пульсация — 8 × 3,3 с, заканчивается вместе с ним) и замирает на тонком кадре
   (кадр 0 — тот, где пауза). Заново — когда экран перерисовывается: вход на главную или в приветствие */
/* 70 кадров по 0,08 с; первый (тонкий клубок) держится ~1 с — пауза по просьбе владельца */
@keyframes yarn-frames {
  0% { background-position: 0 0; }
  16.364% { background-position: calc(var(--s) * -1) calc(var(--s) * -0); }
  17.576% { background-position: calc(var(--s) * -2) calc(var(--s) * -0); }
  18.788% { background-position: calc(var(--s) * -3) calc(var(--s) * -0); }
  20% { background-position: calc(var(--s) * -4) calc(var(--s) * -0); }
  21.212% { background-position: calc(var(--s) * -5) calc(var(--s) * -0); }
  22.424% { background-position: calc(var(--s) * -6) calc(var(--s) * -0); }
  23.636% { background-position: calc(var(--s) * -7) calc(var(--s) * -0); }
  24.848% { background-position: calc(var(--s) * -8) calc(var(--s) * -0); }
  26.061% { background-position: calc(var(--s) * -9) calc(var(--s) * -0); }
  27.273% { background-position: calc(var(--s) * -0) calc(var(--s) * -1); }
  28.485% { background-position: calc(var(--s) * -1) calc(var(--s) * -1); }
  29.697% { background-position: calc(var(--s) * -2) calc(var(--s) * -1); }
  30.909% { background-position: calc(var(--s) * -3) calc(var(--s) * -1); }
  32.121% { background-position: calc(var(--s) * -4) calc(var(--s) * -1); }
  33.333% { background-position: calc(var(--s) * -5) calc(var(--s) * -1); }
  34.545% { background-position: calc(var(--s) * -6) calc(var(--s) * -1); }
  35.758% { background-position: calc(var(--s) * -7) calc(var(--s) * -1); }
  36.97% { background-position: calc(var(--s) * -8) calc(var(--s) * -1); }
  38.182% { background-position: calc(var(--s) * -9) calc(var(--s) * -1); }
  39.394% { background-position: calc(var(--s) * -0) calc(var(--s) * -2); }
  40.606% { background-position: calc(var(--s) * -1) calc(var(--s) * -2); }
  41.818% { background-position: calc(var(--s) * -2) calc(var(--s) * -2); }
  43.03% { background-position: calc(var(--s) * -3) calc(var(--s) * -2); }
  44.242% { background-position: calc(var(--s) * -4) calc(var(--s) * -2); }
  45.455% { background-position: calc(var(--s) * -5) calc(var(--s) * -2); }
  46.667% { background-position: calc(var(--s) * -6) calc(var(--s) * -2); }
  47.879% { background-position: calc(var(--s) * -7) calc(var(--s) * -2); }
  49.091% { background-position: calc(var(--s) * -8) calc(var(--s) * -2); }
  50.303% { background-position: calc(var(--s) * -9) calc(var(--s) * -2); }
  51.515% { background-position: calc(var(--s) * -0) calc(var(--s) * -3); }
  52.727% { background-position: calc(var(--s) * -1) calc(var(--s) * -3); }
  53.939% { background-position: calc(var(--s) * -2) calc(var(--s) * -3); }
  55.152% { background-position: calc(var(--s) * -3) calc(var(--s) * -3); }
  56.364% { background-position: calc(var(--s) * -4) calc(var(--s) * -3); }
  57.576% { background-position: calc(var(--s) * -5) calc(var(--s) * -3); }
  58.788% { background-position: calc(var(--s) * -6) calc(var(--s) * -3); }
  60% { background-position: calc(var(--s) * -7) calc(var(--s) * -3); }
  61.212% { background-position: calc(var(--s) * -8) calc(var(--s) * -3); }
  62.424% { background-position: calc(var(--s) * -9) calc(var(--s) * -3); }
  63.636% { background-position: calc(var(--s) * -0) calc(var(--s) * -4); }
  64.848% { background-position: calc(var(--s) * -1) calc(var(--s) * -4); }
  66.061% { background-position: calc(var(--s) * -2) calc(var(--s) * -4); }
  67.273% { background-position: calc(var(--s) * -3) calc(var(--s) * -4); }
  68.485% { background-position: calc(var(--s) * -4) calc(var(--s) * -4); }
  69.697% { background-position: calc(var(--s) * -5) calc(var(--s) * -4); }
  70.909% { background-position: calc(var(--s) * -6) calc(var(--s) * -4); }
  72.121% { background-position: calc(var(--s) * -7) calc(var(--s) * -4); }
  73.333% { background-position: calc(var(--s) * -8) calc(var(--s) * -4); }
  74.545% { background-position: calc(var(--s) * -9) calc(var(--s) * -4); }
  75.758% { background-position: calc(var(--s) * -0) calc(var(--s) * -5); }
  76.97% { background-position: calc(var(--s) * -1) calc(var(--s) * -5); }
  78.182% { background-position: calc(var(--s) * -2) calc(var(--s) * -5); }
  79.394% { background-position: calc(var(--s) * -3) calc(var(--s) * -5); }
  80.606% { background-position: calc(var(--s) * -4) calc(var(--s) * -5); }
  81.818% { background-position: calc(var(--s) * -5) calc(var(--s) * -5); }
  83.03% { background-position: calc(var(--s) * -6) calc(var(--s) * -5); }
  84.242% { background-position: calc(var(--s) * -7) calc(var(--s) * -5); }
  85.455% { background-position: calc(var(--s) * -8) calc(var(--s) * -5); }
  86.667% { background-position: calc(var(--s) * -9) calc(var(--s) * -5); }
  87.879% { background-position: calc(var(--s) * -0) calc(var(--s) * -6); }
  89.091% { background-position: calc(var(--s) * -1) calc(var(--s) * -6); }
  90.303% { background-position: calc(var(--s) * -2) calc(var(--s) * -6); }
  91.515% { background-position: calc(var(--s) * -3) calc(var(--s) * -6); }
  92.727% { background-position: calc(var(--s) * -4) calc(var(--s) * -6); }
  93.939% { background-position: calc(var(--s) * -5) calc(var(--s) * -6); }
  95.152% { background-position: calc(var(--s) * -6) calc(var(--s) * -6); }
  96.364% { background-position: calc(var(--s) * -7) calc(var(--s) * -6); }
  97.576% { background-position: calc(var(--s) * -8) calc(var(--s) * -6); }
  98.788% { background-position: calc(var(--s) * -9) calc(var(--s) * -6); }
}
@keyframes yarn-breathe { 0%, 100% { transform: scale(.93); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .yarn, .yarn i, .sunrise * { animation: none; } }

/* «Дневник и привычки» — вариант «Чек-лист» (2026-10-12): цвета прежние, меняются формы, иконки и нажатия */
.trk-head2 { align-items: center; }
.trk-head2 span::first-letter { text-transform: uppercase; }
.trk-ring { position: relative; width: 52px; height: 52px; flex: 0 0 52px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--text); }
.trk-ring svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.trk-ring circle { fill: none; stroke-width: 5; }
.trk-ring .trk-ring-bg { stroke: var(--well, var(--line)); }
.trk-ring .trk-ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .35s ease; }
.trk-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.trk-faces { display: flex; justify-content: space-between; gap: 6px; }
.trk-face { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 6px; border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--card); font: inherit; color: var(--muted); cursor: pointer; transition: transform .12s, border-color .15s, background .15s; }
.trk-face svg { width: 34px; height: 34px; transition: transform .15s; }
.trk-face small { font-size: 10.5px; }
.trk-face:active { transform: scale(.94); }
.trk-face.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.trk-face.on svg { transform: scale(1.12); }
.trk-list { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--g-fill, var(--card)); box-shadow: var(--g-shadow, none); }
.trk-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--line); background: none;
  font: inherit; font-size: 15px; color: var(--text); text-align: left; cursor: pointer; transition: background .15s; }
.trk-row:last-child { border-bottom: 0; }
.trk-row:active { background: var(--accent-soft); }
.trk-ck { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink); transition: background .15s, border-color .15s, transform .15s; }
.trk-ck svg { width: 15px; height: 15px; }
.trk-row.on .trk-ck { background: var(--accent); border-color: var(--accent); transform: scale(1.05); }
.trk-ico { flex: 0 0 22px; height: 22px; color: var(--accent); display: flex; }
.trk-ico svg { width: 22px; height: 22px; }
.trk-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk-row.on .trk-nm { color: var(--text2); }
.trk-streak { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.trk-pills { display: flex; gap: 10px; margin-top: 14px; }
.trk-pill { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 500;
  border: 1.5px solid var(--accent); background: var(--card); color: var(--accent); cursor: pointer; transition: transform .12s; }
.trk-pill svg { width: 19px; height: 19px; }
.trk-pill:active { transform: scale(.97); }
.trk-pill.dark { border-color: transparent; background: var(--smoke, #2b2622); color: #faf9f5; }
.trk-pill.on { background: var(--accent-soft); }
#note { margin-top: 12px; }
.tst-link.trk-table { border: 1px solid color-mix(in srgb, var(--text2) 22%, transparent); border-radius: 999px; padding: 9px 20px; }
.tst-link.trk-table:active { transform: scale(.97); }

/* Приветствие при первом входе в дневник: белый лист, чёрное перо — белый в любой теме */
#modal .sheet.dw-sheet { background: #fff; border-color: transparent; padding: 28px 24px 32px; animation: dwUp .32s cubic-bezier(.2,.8,.2,1); }
.dw-sheet::before { content: ''; display: block; width: 38px; height: 4px; border-radius: 2px; background: #e3ded6; margin: -14px auto 12px; }
.dw-art { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 272 / 168; margin: 0 auto 14px; }
.dw-h { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; color: #141413; margin: 0 0 12px; }
.dw-t { font-size: 16px; line-height: 1.6; color: #3d3d3a; margin: 0 0 24px; }
@keyframes dwUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Задание и цитата дня (утверждено 2026-10-13): при входе в дневник — только две карточки на живом фото.
   Цвет поля ответа берётся из самой фотографии (tracker.js → photoPalette) */
/* Карточка на весь экран (как у Stoic): текст сверху, фото во весь кадр, ответ снизу; по одной карточке за раз */
.dcs-full { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
.dcs-full .dcx { flex: 1; min-height: 0; max-height: none; height: auto; border-radius: 26px; padding: 26px 22px 18px; animation: dcxIn .35s ease; }
.dcs-full .dcx::before { background: linear-gradient(to bottom, color-mix(in srgb, var(--shade) 62%, transparent) 0%, color-mix(in srgb, var(--shade) 28%, transparent) 30%, transparent 50%, color-mix(in srgb, var(--shade) 40%, transparent) 72%, color-mix(in srgb, var(--shade) 82%, transparent) 100%); }
.dcs-full .dcx-body { margin-top: 0; padding: 26px 0 0; flex: 1; }
.dcs-full .dcx { container-type: inline-size; overflow-wrap: break-word; }
.dcs-full .dcx-q { font-size: clamp(20px, 8.4cqi, 28px); line-height: 1.25; }
.dcs-full .dcx.quote .dcx-q { font-size: clamp(22px, 9.2cqi, 31px); line-height: 1.28; }
.dcs-full .dcx-author { margin-top: 16px; font-size: 15px; }
.dcs-full .dcx-ans { margin-top: 16px; }
.dcs-full .dcx.leave { opacity: 0; transform: translateX(-24px) scale(.98); transition: opacity .3s, transform .3s; }
@keyframes dcxIn { from { opacity: 0; transform: translateX(24px) scale(.98); } to { opacity: 1; transform: none; } }
.dcx { --ink: #fff; --glass: rgba(40,40,40,.45); --line2: rgba(255,255,255,.28); --btn: #f4f1ec; --btnInk: #2a2a2a; --shade: #1a1a1a;
  position: relative; border-radius: 24px; overflow: hidden; color: var(--ink); background: #6d6a64 center/cover no-repeat;
  min-height: 430px; display: flex; flex-direction: column; padding: 20px 20px 16px; box-shadow: 0 10px 28px rgba(0,0,0,.16); isolation: isolate;
  transition: opacity .35s, transform .35s, max-height .45s .2s, min-height .45s .2s, margin .45s .2s, padding .45s .2s; max-height: 1000px; }
.dcx::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--shade) 50%, transparent) 0%, color-mix(in srgb, var(--shade) 12%, transparent) 34%, color-mix(in srgb, var(--shade) 18%, transparent) 55%, color-mix(in srgb, var(--shade) 78%, transparent) 100%); }
.dcx.gone { opacity: 0; transform: translateY(-14px) scale(.97); max-height: 0; min-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -14px; pointer-events: none; }
.dcx-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: var(--glass);
  color: var(--ink); font-size: 18px; line-height: 1; display: grid; place-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; padding: 0; }
.dcx-eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.dcx-theme { display: block; font-size: 12.5px; opacity: .9; margin-top: 3px; padding-right: 40px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.dcx-body { margin-top: auto; padding: 30px 0 16px; }
.dcx-q { font-size: 23px; line-height: 1.3; font-weight: 600; margin: 0; letter-spacing: -.01em; text-shadow: 0 1px 14px rgba(0,0,0,.35); color: var(--ink); }
.dcx.quote .dcx-q { font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.32; }
.dcx-author { margin-top: 12px; font-size: 14px; opacity: .92; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.dcx-ans { display: flex; align-items: flex-end; gap: 8px; background: var(--glass); border: 1px solid var(--line2); border-radius: 22px; padding: 6px 6px 6px 14px;
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.dcx-ans textarea { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.45; resize: none; outline: none;
  padding: 8px 0; margin: 0; width: auto; height: 38px; min-height: 0; max-height: 140px; box-shadow: none; border-radius: 0; }
.dcx-ans textarea::placeholder { color: var(--ink); opacity: .7; }
.dcx-btn { flex: 0 0 38px; height: 38px; border-radius: 50%; border: 0; background: var(--btn); color: var(--btnInk); display: grid; place-items: center; transition: transform .12s; cursor: pointer; padding: 0; }
.dcx-btn:active { transform: scale(.93); } .dcx-btn svg { width: 18px; height: 18px; } .dcx-btn[hidden] { display: none; }
.dcx-btn.rec { animation: dcxPulse 1.2s infinite; } .dcx-btn.busy { opacity: .6; }
@keyframes dcxPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--btn) 70%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.dcx-rec { flex: 1; font-size: 14.5px; padding: 9px 0; opacity: .92; }
/* В записи дня — ответы на карточки в компактном виде */
.dv-cards { display: flex; flex-direction: column; gap: 8px; }
.dv-card { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.dv-thumb { flex: 0 0 54px; height: 72px; border-radius: 12px; background: #888 center/cover; }
.dv-card small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 3px; }
.dv-card i { display: block; font-size: 13px; color: var(--text2); line-height: 1.4; margin-bottom: 6px; }
.dv-card p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); white-space: pre-wrap; }
.dv-card .dv-none { font-size: 13px; }
.trk-pill.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.trk-pill:disabled { opacity: .45; cursor: default; transform: none; }

/* «Выгрузить мысли» — в стиле нового дневника */
.dm-voice { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px 0 16px; }
.dm-mic { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: var(--smoke, #2b2622); color: #faf9f5; box-shadow: var(--g-shadow, 0 6px 18px rgba(0,0,0,.15)); transition: transform .12s, background .2s; }
.dm-mic svg { width: 34px; height: 34px; }
.dm-mic:active { transform: scale(.95); }
.dm-mic.rec { background: var(--accent); color: var(--accent-ink); }
.dm-mic.rec::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--accent); animation: dm-pulse 1.4s ease-out infinite; }
.dm-mic.busy { opacity: .6; }
@keyframes dm-pulse { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dm-mic.rec::after { animation: none; } }
.dm-cap { font-size: 13px; color: var(--muted); text-align: center; }
.dm-box { border-radius: 20px; border: 1px solid var(--line); background: var(--g-fill, var(--card)); box-shadow: var(--g-shadow, none); padding: 4px; }
.dm-box textarea { width: 100%; min-height: 120px; border: 0; background: transparent; box-shadow: none; resize: vertical; font: inherit; font-size: 15px; color: var(--text); padding: 10px 12px; outline: none; }
.dm-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: none;
  font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.dm-row:last-child { border-bottom: 0; }
.dm-row:active { background: var(--accent-soft); }
.dm-row .trk-ico { margin-top: 2px; }
.dm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dm-txt small { font-size: 12px; color: var(--muted); }
.dm-txt span { font-size: 14.5px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dm-row.open .dm-txt span { -webkit-line-clamp: unset; display: block; }

/* «Этот месяц» — круглые дни, как галочки и кольцо дневника (2026-10-12) */
.trk-cal { gap: 8px; }
.trk-cal span, .trk-cal span.on, .trk-cal span.today { border-radius: 50%; }
/* Дни — кнопки (можно открыть любой прошедший день) */
.trk-cal button { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--g-fill, var(--card)); border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 13px;
  box-shadow: inset 0 1px 0 var(--g-hi, transparent), inset 0 0 0 .5px var(--g-line, transparent); transition: transform .12s; }
.trk-cal button:active { transform: scale(.92); }
.trk-cal button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.trk-cal button.today { color: var(--text); font-weight: 700; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); border-color: var(--accent); }
.trk-cal button:disabled { opacity: .45; cursor: default; transform: none; }
.trk-cal i { display: block; }
.trk-mhead { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.trk-mhead b { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--text); }
.trk-mnav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--g-fill, var(--card)); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.trk-mnav:disabled { opacity: .3; cursor: default; }
.trk-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 6px; }
.trk-wd span { text-align: center; font-size: 11px; color: var(--muted); }
/* Просмотр прошедшего дня */
.dv-empty { margin: 30px 0; text-align: center; color: var(--muted); }
.dv-mood { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--g-fill, var(--card)); }
.dv-mood svg { width: 40px; height: 40px; } .dv-mood b { font-weight: 500; font-size: 16px; }
.dv-none { color: var(--muted); margin: 0; }
.dv-row { cursor: default; } .dv-row:active { background: none; }
.dv-note { padding: 12px 14px; white-space: pre-wrap; font-size: 15px; color: var(--text); }

/* ===== «Привычки» v2 (2026-10-13, макет docs/design/habits-v2.html) ===== */
.hb2-sum { display: flex; align-items: center; gap: 16px; }
.hb2-ring { width: 84px; height: 84px; flex: none; position: relative; }
.hb2-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hb2-ring circle { fill: none; stroke-width: 9; } .hb2-ring .trk { stroke: var(--cream); } .hb2-ring .val { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .4s; }
.hb2-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--text); }
.hb2-sum-t { font-size: 14px; color: var(--text2); line-height: 1.45; }
.hb2-sum-t strong { display: block; font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.hb2-sum-t em { display: block; font-style: normal; color: var(--muted); font-size: 13px; margin-top: 2px; }
.hb2-wk { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hb2-wk span { font-weight: 500; font-size: 14px; color: var(--text); }
.hb2-wk button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--cream); color: var(--text2); font-size: 18px; cursor: pointer; }
.hb2-wk button:disabled { opacity: .35; cursor: default; }
.hb2-days, .hb2-cells, .hb2-xl { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hb2-days span { text-align: center; font-size: 11px; color: var(--muted2); line-height: 1.25; }
.hb2-days span b { display: block; font-size: 13px; color: var(--text2); font-weight: 500; }
.hb2-days span.today b { color: var(--accent); }
.hb2-habit { padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 8px; }
.hb2-days + .hb2-habit { border-top: 0; margin-top: 0; }
.hb2-name { display: flex; align-items: flex-start; gap: 8px; width: 100%; background: none; border: 0; padding: 0 0 8px; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.hb2-name i { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.hb2-name span { flex: 1; font-weight: 500; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.hb2-name small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 1px; } .hb2-name small b { color: var(--text2); font-weight: 600; }
.hb2-name em { font-style: normal; color: var(--muted2); font-size: 18px; line-height: 1; padding: 2px 2px 0; }
.hb2-fire { color: var(--accent); font-weight: 500; }
.hb2-c { aspect-ratio: 1; width: 100%; border-radius: 10px; border: 1.5px solid transparent; background: var(--cream); color: #fff; font-weight: 700; font-size: 14px; padding: 0; cursor: pointer; }
.hb2-c.today { border-color: var(--accent); }
.hb2-c.rest { background: repeating-linear-gradient(135deg, var(--cream) 0 5px, var(--bg) 5px 10px); }
.hb2-add { display: block; width: 100%; margin: 12px 0; padding: 13px; border-radius: 16px; border: 1.5px dashed var(--accent); background: transparent; color: var(--accent); font: 500 15px var(--font); cursor: pointer; opacity: .9; }
.hb-sleep em.hb2-sl-avg { display: block; font-style: normal; color: var(--muted); font-size: 13px; }
.hb2-chart { position: relative; height: 92px; margin-top: 18px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; }
.hb2-band { position: absolute; left: 0; right: 0; background: rgba(62,148,131,.1); border-top: 1px dashed rgba(62,148,131,.5); border-bottom: 1px dashed rgba(62,148,131,.5); pointer-events: none; }
.hb2-band i { position: absolute; right: 0; top: -17px; font-style: normal; font-size: 10.5px; color: var(--good); }
.hb2-col { height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hb2-col i { width: 72%; border-radius: 8px 8px 3px 3px; background: var(--accent); opacity: .55; }
.hb2-col i.today { opacity: 1; }
.hb2-xl { margin-top: 6px; } .hb2-xl span { text-align: center; font-size: 11px; color: var(--muted2); }
/* карточка привычки */
#modal .sheet.hb2-modal { padding-top: 14px; }
.hb2-modal::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.hb2-sheet h3 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.hb2-sheet h3 i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.hb2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hb2-stats div { background: var(--cream); border-radius: 14px; padding: 10px 6px; text-align: center; }
.hb2-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--text); }
.hb2-stats span { font-size: 11.5px; color: var(--muted); line-height: 1.25; display: block; }
.hb2-month { margin-top: 14px; }
.hb2-mhead { display: flex; align-items: center; justify-content: space-between; max-width: 260px; margin-bottom: 6px; font-size: 13.5px; color: var(--text2); }
.hb2-mhead button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--cream); color: var(--text2); cursor: pointer; }
.hb2-mhead button:disabled { opacity: .35; }
.hb2-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 260px; }
.hb2-mgrid span { aspect-ratio: 1; border-radius: 7px; background: var(--cream); font-size: 10px; color: var(--muted2); display: grid; place-items: center; }
.hb2-mgrid span.wd { background: none; aspect-ratio: auto; font-size: 10.5px; }
.hb2-mgrid span.on { color: #fff; font-weight: 600; }
.hb2-mgrid span.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.hb2-mgrid span.fut { background: transparent; border: 1px dashed var(--line); }
.hb2-mgrid span.blank { background: none; }
.hb2-lbl { display: block; font-size: 12.5px; color: var(--muted); margin: 14px 0 6px; }
.hb2-sheet input { width: 100%; }
.hb2-sheet .hb-colors { margin: 0; }
.hb2-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 12px; padding: 3px; }
.hb2-seg button { border: 0; background: none; padding: 9px 4px; border-radius: 10px; color: var(--muted); font: 13.5px var(--font); cursor: pointer; }
.hb2-seg button.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hb2-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 14.5px; color: var(--text2); }
.hb2-line small { display: block; color: var(--muted); font-size: 12px; }
.hb2-tog { width: 46px; height: 28px; flex: none; border-radius: 28px; border: 0; background: var(--well); position: relative; cursor: pointer; transition: background .2s; }
.hb2-tog::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.hb2-tog.on { background: var(--good); } .hb2-tog.on::after { left: 21px; }
.hb2-sheet .btn { width: 100%; margin-top: 16px; }
.hb2-del { display: block; width: 100%; margin-top: 12px; background: none; border: 0; color: var(--bad); font: 14px var(--font); padding: 8px; cursor: pointer; }

/* ===== «Сон» v4 (2026-10-13, макет docs/design/sleep-v4.html): без смайликов, цифры и подписи ===== */
.sl3-h b { display: block; font-weight: 600; font-size: 16px; color: var(--text); }
.sl3-h span { font-size: 12.5px; color: var(--muted); }
.sl3-last { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 10px; }
.sl3-dur { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--text); }
.sl3-dur small { font-size: 16px; color: var(--muted); }
.sl3-vs { font-size: 13px; color: var(--good); text-align: right; line-height: 1.35; } .sl3-vs.low { color: var(--accent); }
.sl3-tt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 12px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.sl3-tt div { background: var(--cream); border-radius: 14px; padding: 9px 12px; }
.sl3-tt span { display: block; font-size: 12px; color: var(--muted); }
.sl3-tt b { font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--text); }
.sl3-empty { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--line); background: none; font: inherit; color: var(--muted); cursor: pointer; text-align: left; }
.sl3-empty b { color: var(--accent); font-weight: 500; white-space: nowrap; }
.sl3-qcap { font-size: 12.5px; color: var(--muted); margin: 12px 0 6px; }
.sl3-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sl3-chips button { padding: 8px 2px; border-radius: 12px; border: 0; background: var(--cream); font: 13px var(--font); color: var(--text2); cursor: pointer; }
.sl3-chips button.on { background: var(--text); color: var(--bg); }
.sl3-legend { display: flex; align-items: center; gap: 8px; margin: -2px 0 14px; padding: 0; border: 0; background: none; font: 12px var(--font); color: var(--good); cursor: pointer; }
.sl3-legend i { width: 22px; border-top: 1.5px dashed var(--good); }
.sl3-legend u { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; margin-left: 4px; }
.sl3-chart { position: relative; height: 160px; display: grid; grid-template-columns: 46px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; }
.sl3-norm { position: absolute; left: 46px; right: 0; border-top: 1.5px dashed var(--good); pointer-events: none; }
.sl3-c { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.sl3-c em { font-style: normal; font-size: 11.5px; color: var(--text2); font-weight: 500; background: var(--bg); padding: 0 3px; border-radius: 4px; position: relative; z-index: 1; }
.sl3-c i { width: 72%; border-radius: 7px 7px 3px 3px; background: #d9a48f; }
.sl3-c i.low { background: #e6c7ba; } .sl3-c i.today { background: var(--accent); }
.sl3-c .none { width: 72%; height: 42%; border: 1.5px dashed var(--line); border-radius: 7px; display: grid; place-items: center; font-size: 9.5px; color: var(--muted2); line-height: 1.15; text-align: center; }
.sl3-tbl { display: grid; grid-template-columns: 46px repeat(7, minmax(0, 1fr)); gap: 8px 6px; margin-top: 8px; font-size: 11px; text-align: center; color: var(--muted); }
.sl3-tbl .h { text-align: left; } .sl3-tbl b { font-weight: 500; color: var(--text2); } .sl3-tbl b.today { color: var(--accent); }
.sl3-tbl .x { color: var(--accent); }
.sl3-list { margin-top: 14px; border-top: 1px solid var(--line); }
.sl3-list div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text2); }
.sl3-list b { font-weight: 600; color: var(--text); text-align: right; } .sl3-list small { color: var(--muted); font-weight: 400; }
.sl3-obs { margin-top: 12px; font-size: 13.5px; color: var(--text2); background: var(--cream); border-radius: 14px; padding: 11px 13px; } .sl3-obs b { font-weight: 600; }
.sl3-sub { font-size: 13px; color: var(--muted); margin: -6px 0 6px; }
.sl3-step { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text2); }
.sl3-step small { display: block; color: var(--muted); font-size: 12px; }
.sl3-step .hb-pm b { min-width: 64px; font-family: var(--display); font-weight: 400; font-size: 20px; }
.sl3-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 0; }
.sl3-total span { color: var(--muted); font-size: 13.5px; } .sl3-total b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--text); }
.sl3-clear { color: var(--muted); }

/* ===== Уведомления (колокольчик на главной, views/notify.js): белое полупрозрачное стекло, лёгкие переключатели ===== */
.tb-btns { display: flex; gap: 8px; }
.ib.bell svg { display: block; }
.nf { --nf-glass: rgba(255,255,255,.52); --nf-edge: rgba(255,255,255,.9); --nf-sw: rgba(20,20,19,.1); --nf-sw-on: rgba(20,20,19,.72); }
:root[data-theme="dark"] .nf { --nf-glass: rgba(250,249,245,.06); --nf-edge: rgba(250,249,245,.12); --nf-sw: rgba(250,249,245,.14); --nf-sw-on: rgba(250,249,245,.78); }
.nf h1 { margin: 6px 0 4px; }
.nf-lead { margin: 0 0 18px; font-size: 15px; }
.nf-label { margin: 22px 4px 8px; font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.nf-morning { margin-left: 6px; font-family: var(--display); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text2); }
.nf-hint { margin: -2px 4px 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.nf-card { background: var(--nf-glass); border: 1px solid var(--nf-edge); border-radius: 20px; padding: 4px 16px;
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 1px 2px rgba(20,20,19,.03), 0 8px 24px rgba(120,70,40,.05), inset 0 1px 0 var(--nf-edge); }
.nf-card + .nf-card { margin-top: 10px; }
.nf-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.nf-card > .nf-row + .nf-row { border-top: 1px solid rgba(20,20,19,.06); }
:root[data-theme="dark"] .nf-card > .nf-row + .nf-row { border-top-color: rgba(250,249,245,.08); }
.nf-t { flex: 1; min-width: 0; } .nf-t b { display: block; font-weight: 500; font-size: 15.5px; color: var(--text); }
.nf-t small { display: block; margin-top: 1px; font-size: 13px; color: var(--muted); }
.nf-master { padding: 6px 18px; } .nf-master .nf-t b { font-family: var(--display); font-weight: 400; font-size: 19px; }
.nf-body { transition: opacity .25s; } .nf-body.off { opacity: .45; }
/* Переключатель: светлая «капсула», включённый — дымчато-чёрный, кружок белый */
.nf-sw { position: relative; flex: 0 0 46px; width: 46px; height: 28px; border-radius: 99px; border: 1px solid rgba(255,255,255,.7); padding: 0; cursor: pointer;
  background: var(--nf-sw); box-shadow: inset 0 1px 2px rgba(20,20,19,.06); transition: background .22s; }
.nf-sw i { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(20,20,19,.18); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.nf-sw.on { background: var(--nf-sw-on); } .nf-sw.on i { transform: translateX(18px); }
:root[data-theme="dark"] .nf-sw { border-color: rgba(250,249,245,.12); } :root[data-theme="dark"] .nf-sw.on i { background: #181715; }
/* Своё оповещение: текст правится прямо в карточке, ниже — время, «Удалить» и переключатель */
.nf-item { padding: 12px 16px 2px; } .nf-item.dim .nf-text { color: var(--text2); }
.nf .nf-text, .nf-new textarea { display: block; width: 100%; resize: none; overflow: hidden; border: 0; background: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; border-radius: 0; min-height: 0; font-family: var(--display); font-size: 18px; line-height: 1.35; color: var(--text); }
.nf .nf-text:focus, .nf-new textarea:focus { box-shadow: none; border: 0; }
.nf-new { padding: 14px 16px 2px; } .nf-new textarea { min-height: 52px; }
.nf .nf-time input { width: auto; min-width: 92px; padding: 6px 12px; border-radius: 99px; font-size: 15px; font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.55); border: 1px solid rgba(20,20,19,.08); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--text); }
:root[data-theme="dark"] .nf .nf-time input { background: rgba(250,249,245,.06); border-color: rgba(250,249,245,.12); color-scheme: dark; }
.nf-sp { flex: 1; }
.nf-del { background: none; border: 0; padding: 6px 4px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.nf-pill { border: 0; border-radius: 99px; padding: 8px 18px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; background: var(--nf-sw-on); color: var(--bg); }
.nf-pill.ghost { background: transparent; color: var(--text2); }
.nf-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 12px 0 24px; padding: 15px; border-radius: 20px; cursor: pointer;
  border: 1px dashed rgba(20,20,19,.18); background: rgba(255,255,255,.3); font: inherit; font-size: 15px; color: var(--text2); }
.nf-add span { font-size: 20px; line-height: 1; font-weight: 300; }
:root[data-theme="dark"] .nf-add { border-color: rgba(250,249,245,.18); background: rgba(250,249,245,.04); }

/* ===== Оформление «Золото звёзд» (2026-10-17, макет docs/design/elysium-home-v5.html) — слой поверх «Жидкого стекла v2».
   День — почти белый, с тёплой дымкой и тусклыми золотыми звёздами сверху; ночь — тёмно-синее небо со звёздами по всему экрану.
   Акцент: днём тёмно-синий, ночью мягкое золото. Карточки плотные (без прозрачного стекла), чтобы текст хорошо читался.
   Вернуть прошлое: docs/design/styles-glass-v2-backup.css, app-glass-v2-backup.js, index-glass-v2-backup.html ===== */
:root {
  --bg: #f4f1f9; --tg-top: #d8cfeb; --card: #fff; --line: #e9e3d4; --text: #1c1d2b; --text2: #3a3b4c; --muted: #5a5a6c; --muted2: #7a7a8a;
  --accent: #2a3266; --accent-act: #1c2350; --accent-ink: #fff; --accent-soft: rgba(42,50,102,.1); --gold: #e0b65a; --gold-ink: #8a6420;
  --teal: #4fae9b; --amber: #e0b65a; --cream: #f5efe0; --cream-strong: #efe6cf; --well: #ece6d6;
  --g-fill: linear-gradient(150deg, rgba(255,255,255,.96), rgba(255,255,255,.86)); --g-edge: rgba(233,227,212,.95); --g-hi: #fff; --g-line: rgba(28,29,43,.05);
  --g-shadow: 0 1px 2px rgba(28,29,43,.04), 0 8px 22px rgba(70,60,40,.08);
  --smoke: linear-gradient(150deg, #2a3266, #161a33); --g-top: rgba(255,255,255,.92);
  /* 2026-10-24: днём фон «Лаванда с небесным светом» (выбран владельцем; был бежевый #efe9d9 → белый) */
  --sky: radial-gradient(80% 35% at 100% 0%, rgba(200,222,240,.8), transparent 70%), linear-gradient(180deg, #d8cfeb 0%, #e2dbf1 35%, #ebe6f5 68%, #f4f1f9 100%); --star: #d1a64c; --star-max: .5;
  --btn-shadow: 0 6px 16px rgba(42,50,102,.2);
}
:root[data-theme="dark"] {
  --bg: #16172c; --tg-top: #16172c; --card: #222744; --line: rgba(255,255,255,.1); --text: #fff; --text2: #e6e1d2; --muted: #c2bcab; --muted2: #9a95a8;
  --accent: #f0c96e; --accent-act: #e0b65a; --accent-ink: #141830; --accent-soft: rgba(240,201,110,.16); --gold-ink: #f0c96e;
  --cream: #1d2140; --cream-strong: #2a3058; --well: rgba(255,255,255,.12);
  --g-fill: linear-gradient(150deg, #242a4a, #1f2343); --g-edge: rgba(255,255,255,.09); --g-hi: rgba(255,255,255,.06); --g-line: rgba(0,0,0,.2);
  --g-shadow: 0 8px 22px rgba(0,0,0,.25);
  --smoke: linear-gradient(150deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); --g-top: rgba(15,17,34,.92);
  /* 2026-10-24: ночью «Путь и сияние» (выбран владельцем): матовое небо, Млечный путь наискосок и мягкое сияние сверху; зерно — #sky::after ниже */
  --sky: linear-gradient(118deg, transparent 28%, rgba(215,205,245,.08) 40%, rgba(235,228,250,.16) 50%, rgba(215,205,245,.08) 60%, transparent 72%),
    radial-gradient(90% 40% at 50% 0%, rgba(205,195,240,.16), transparent 70%), linear-gradient(180deg, #16172c 0%, #1b1c34 55%, #20213b 100%);
  --star: #fff; --star-max: .7;
  --btn-shadow: none;
}
html, body { background: var(--bg); }
.glass-bg { display: none; }
/* Небо со звёздами — неподвижный фон за всем приложением (звёзды создаёт app.js) */
#sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--sky); overflow: hidden; }
#sky b { position: absolute; border-radius: 50%; background: var(--star); box-shadow: 0 0 4px var(--star); filter: blur(.3px); opacity: .1;
  animation: sky-tw var(--d) ease-in-out var(--dl) infinite; }
#sky b.x { background: none; box-shadow: none; width: 10px; height: 10px; }
#sky b.x::before, #sky b.x::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--star); border-radius: 2px; transform: translate(-50%,-50%); box-shadow: 0 0 3px var(--star); }
#sky b.x::before { width: 1.2px; height: 100%; } #sky b.x::after { width: 100%; height: 1.2px; }
/* днём звёзды только в верхней дымке */
:root:not([data-theme="dark"]) #sky .st { position: absolute; inset: 0 0 58% 0; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
:root[data-theme="dark"] #sky .st { position: absolute; inset: 0; }
@keyframes sky-tw { 0%, 100% { opacity: .08; transform: scale(.8); } 50% { opacity: var(--star-max); transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { #sky b { animation: none; opacity: calc(var(--star-max) * .6); } }

/* Кнопки и выбранное — в новых цветах вместо коралла */
.btn, .round, .rt-open, .msg.user, .check.on .box, .cal span.on, .trk-cal span.on, .scale button.on, .mxs-scale button.on, .sys-chips .chip.on, .rt-lv-n, .badge.new {
  box-shadow: var(--btn-shadow); }
.msg.user { color: var(--accent-ink); }
.opt.on, .tst-opt.on, .chip.on, .mood.on, .trk-mood.on, .rt-node.open .rt-dot {
  background: linear-gradient(150deg, var(--accent-soft), rgba(255,255,255,.7)); border-color: var(--accent); box-shadow: inset 0 0 0 .5px var(--accent); }
:root[data-theme="dark"] .opt.on, :root[data-theme="dark"] .tst-opt.on, :root[data-theme="dark"] .chip.on, :root[data-theme="dark"] .mood.on,
:root[data-theme="dark"] .trk-mood.on, :root[data-theme="dark"] .rt-node.open .rt-dot { background: linear-gradient(150deg, var(--accent-soft), rgba(255,255,255,.04)); }
.as-formula, .home-callout { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 45%), linear-gradient(150deg, #2a3266, #3f4677);
  box-shadow: 0 16px 34px rgba(42,50,102,.25), inset 0 1px 0 rgba(255,255,255,.2); }
.tst-hero .tst-label.accent, .mxr-hero .mxr-label.accent { color: var(--gold); }
.eyebrow { color: var(--gold-ink); }

/* Нижнее меню: иконки крупнее, без рамок */
.dock { box-shadow: 0 10px 30px rgba(20,20,50,.14), inset 0 1px 0 var(--g-hi); }
.dock button span { height: 30px; display: grid; place-items: center; font-size: 22px; filter: none; }
.dock button span .maze { width: 27px; height: 27px; border-radius: 0; vertical-align: 0; }
.dock button.on { color: var(--text); background: var(--accent-soft); }

/* ===== Главная «Золото звёзд» ===== */
.hello { margin: 4px 0 0; }
.hello h1 { margin: 10px 0 4px; }
.sunrise.tap { width: 54px; height: 54px; }
.hm-moon { width: 46px; height: 46px; flex: none; cursor: pointer; filter: drop-shadow(0 0 10px rgba(255,240,200,.4)); }
.hm-moon { display: none; }
:root[data-theme="dark"] .hello .sunrise { display: none; } :root[data-theme="dark"] .hm-moon { display: block; }
/* Описание — по центру, курсивом, как надпись */
.hm-desc { text-align: center; margin: 20px 4px 22px; }
.hm-desc .orn { display: block; color: var(--gold); font-size: 13px; letter-spacing: 8px; padding-left: 8px; }
.hm-desc p { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.4; color: var(--text); margin: 10px 0; text-wrap: balance; }
/* AI Помощник — главная кнопка; «Практики под тебя» — второстепенная */
/* 2026-10-23: стиль «Туман» со «Светящимся краем» (макет планеровщик/elysium-knopka-pomoshnika.html, вариант 2) — одинаково днём и ночью */
.hm-primary { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px; cursor: pointer; color: #f3f2ee;
  border: 2px solid transparent;
  background: radial-gradient(130% 120% at 0% 0%, rgba(150,150,146,.5), transparent 60%) padding-box, linear-gradient(180deg, #2b2b2a, #121312) padding-box,
              linear-gradient(135deg, #f2f1ed 0%, rgba(160,158,150,.5) 40%, #d9783f 100%) border-box;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 8px 26px rgba(214,118,66,.35); }
.hm-primary::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hm-primary img { width: 50px; height: 50px; flex: none; }
/* Шерстяной клубок AI Помощника: картинка с запасом под ворсинки, поэтому чуть крупнее соседей и с мягкой тенью */
img.yarn-ico { border-radius: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.22)); }
.hm-primary img.yarn-ico { filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.dock button span img.yarn-ico { width: 30px; height: 30px; }
/* Клубок медленно «дышит» — как живой (2026-10-26, просьба владельца) */
img.yarn-ico { animation: yarn-pulse 4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes yarn-pulse { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { img.yarn-ico { animation: none; } }
.hm-primary b { display: block; font: 400 20px/1.2 'Source Serif 4', Georgia, serif; }
.hm-primary small { display: block; font: 300 14.5px/1.35 'Source Serif 4', Georgia, serif; color: #a9a8a2; margin-top: 2px; }
.hm-primary .arr, .hm-item .arr, .hm-secondary .arr { margin-left: auto; font-size: 22px; opacity: .6; }
.hm-primary > div, .hm-secondary > div { flex: 1; min-width: 0; }
.hm-secondary { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 18px; margin-top: 10px; cursor: pointer;
  background: var(--card); color: var(--text); border: 1.5px solid var(--line); }
:root[data-theme="dark"] .hm-secondary { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.hm-secondary b { display: block; font-size: 15px; font-weight: 600; } .hm-secondary small { display: block; font-size: 13px; color: var(--muted); }
.hm-mini { margin-left: auto; flex: none; width: 54px; height: 5px; border-radius: 9px; background: var(--well); overflow: hidden; }
.hm-mini i { display: block; height: 100%; background: var(--gold); }
/* лабиринт «Практики под тебя» — круглый значок, показываем целиком (раньше обрезали рамку квадратной картинки) */
.hm-crop { width: 40px; height: 40px; flex: none; position: relative; }
.hm-crop img { width: 100%; height: 100%; display: block; }
.hm-free { margin: 10px 4px 0; }
/* Разделы — сверху вниз: крупная иконка без рамки, название и подпись */
.hm-list { display: flex; flex-direction: column; gap: 10px; }
.hm-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 20px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(70,60,40,.07); }
:root[data-theme="dark"] .hm-item { border-color: rgba(255,255,255,.08); box-shadow: none; }
.hm-item:active, .hm-primary:active, .hm-secondary:active { transform: scale(.985); }
.hm-item .ic { width: 56px; height: 56px; flex: none; display: grid; place-items: center; font-size: 42px; line-height: 1; }
.hm-item .ic img { width: 54px; height: 54px; }
/* Рисованные значки практик (public/icons/practices) — вместо эмодзи в библиотеке и «Практиках под тебя» */
.p-ico { width: 1.3em; height: 1.3em; vertical-align: -0.28em; }
.sys-ico .p-ico { width: 30px; height: 30px; vertical-align: 0; } .sys-ico.big .p-ico { width: 44px; height: 44px; }
.rt-dot .p-ico { width: 26px; height: 26px; vertical-align: 0; }
.hm-item .tx { flex: 1; min-width: 0; }
.hm-item b { display: block; font-size: 16.5px; font-weight: 600; color: var(--text); } .hm-item small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* Живая подача практики (route.js livePractice, первая — «Лучшая версия меня», 2026-10-18) */
.bv-hello { background: linear-gradient(160deg, #fff3dc, #f9e1d3); color: #2b211a; border-radius: 20px; padding: 14px 16px; margin-top: 12px; }
.bv-hello p { margin: 8px 0 0; font-size: 15px; } .bv-hello .muted { color: #8e7e71; } .bv-hello .sys-h { margin: 8px 0 0; color: #2b211a; }
.bv-row { display: flex; gap: 12px; align-items: center; } .bv-hello .sys-ico { margin: 0; background: rgba(255,255,255,.6); } .bv-meta { color: #b5552f; font-size: 13.5px; font-weight: 600; }
:root[data-theme="dark"] .bv-hello { background: linear-gradient(160deg, rgba(217,119,79,.22), rgba(217,119,79,.08)); color: var(--text); }
:root[data-theme="dark"] .bv-hello .sys-h { color: var(--text); } :root[data-theme="dark"] .bv-hello .muted { color: var(--muted); } :root[data-theme="dark"] .bv-meta { color: var(--accent); } :root[data-theme="dark"] .bv-hello .sys-ico { background: rgba(255,255,255,.08); }
.bv-blk { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-top: 12px; } .bv-ey { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.bv-th { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; } .bv-ey + .bv-th { border-top: 0; } .bv-blk .btn { margin-top: 12px; }
.bv-q { font-family: var(--display); font-size: 18px; line-height: 1.3; margin: 4px 0 12px; } .bv-qrow { display: flex; gap: 8px; }
.bv-qrow button { flex: 1; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 12px; padding: 11px; font: inherit; font-weight: 600; cursor: pointer; }
.bv-qrow button.ok { border-color: var(--good); background: rgba(63,138,92,.12); color: var(--good); } .bv-qrow button.no { border-color: var(--bad); background: rgba(192,57,43,.08); color: var(--bad); } .bv-qa { margin-top: 10px; font-size: 14.5px; color: var(--text2); }
.bv-stories { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .bv-stories::-webkit-scrollbar { display: none; }
.bv-story { flex: 0 0 86%; scroll-snap-align: start; border-radius: 18px; padding: 14px; min-height: 260px; display: flex; flex-direction: column; color: #2b211a; cursor: pointer; }
.bv-s0 { background: linear-gradient(160deg, #ffe9c7, #f6d3c3); } .bv-s1 { background: linear-gradient(160deg, #dcefe4, #cfe3f0); } .bv-s2 { background: linear-gradient(160deg, #f3e2f0, #ffe3cf); }
.bv-bars { display: flex; gap: 3px; } .bv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(43,33,26,.18); } .bv-bars i.on { background: #2b211a; }
.bv-st-e { font-size: 40px; margin: 16px 0 6px; } .bv-st-h { font-family: var(--display); font-size: 21px; line-height: 1.25; } .bv-st-p { color: #5e5045; margin-top: 8px; font-size: 15px; } .bv-st-tap { margin-top: auto; text-align: right; color: #8e7e71; font-size: 12px; }
.bv-aud { display: flex; gap: 12px; align-items: center; } .bv-play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 18px; cursor: pointer; flex: none; }
.bv-wave { display: flex; align-items: center; gap: 3px; height: 32px; margin-top: 10px; } .bv-wave i { flex: 1; background: var(--accent); opacity: .35; border-radius: 2px; }
.bv-wave.on i { animation: bvw 1s ease-in-out infinite alternate; } .bv-wave.on i:nth-child(odd) { animation-delay: .3s; } @keyframes bvw { from { opacity: .25; transform: scaleY(.6); } to { opacity: .8; transform: scaleY(1); } }
.bv-seek { width: 100%; margin: 14px 0 2px; accent-color: var(--accent); height: 22px; }
.bv-time { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bv-ctl { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.bv-ctl button { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 12px; padding: 9px 4px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.bv-ctl button:active { transform: scale(.97); } .bv-ctl #bvSpeed { color: var(--accent); }
.bv-sec { border-top: 1px solid var(--line); padding: 10px 0; } .bv-sec:first-child { border-top: 0; } .bv-sec summary { cursor: pointer; font-weight: 600; font-size: 15.5px; } .bv-sec > div { padding-top: 4px; }

/* ===== AI Помощник «Туман» (2026-10-23, макет планеровщик/elysium-ai-pomoshnik-tuman.html, вариант А).
   Всегда тёмный, как Claude: серый свет слева сверху, мягкий тёплый край снизу, зерно.
   И ответы, и сообщения человека, и строка ввода — Source Serif 4 тонкий (300). ===== */
.chat.fog { --fog-text: #f3f2ee; --fog-dim: #8d8c87; --fog-serif: 'Source Serif 4', Georgia, serif; color: var(--fog-text); }
.fog-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* 2026-10-24: матовый вариант «Бархат» — туман шире и мягче, тёплый край спокойнее, зерно плотнее */
  background: radial-gradient(140% 85% at 0% 20%, rgba(150,150,146,.34), transparent 70%), linear-gradient(180deg, #1a1a19 0%, #111211 55%, #0a0b0a 100%);
  box-shadow: inset 0 -34px 60px -36px rgba(190,110,70,.32), inset 14px -24px 46px -38px rgba(190,110,70,.26), inset -14px -24px 46px -38px rgba(190,110,70,.26); }
.fog-bg::after { content: ''; position: absolute; inset: 0; opacity: .4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.chat.fog .trk-head { border-bottom: 0; }
.chat.fog .trk-head b { font-family: var(--fog-serif); font-weight: 400; font-size: 18px; color: var(--fog-text); }
.chat.fog .trk-head span, .chat.fog .trk-arrow, .chat.fog .trk-right { color: #a9a8a2; }
/* 2026-10-23 (по просьбе владельца): ответы и вопросы снова в отдельных «пузырях», как раньше, шрифт плотнее — текст не сливается с фоном */
.chat.fog { --fog-fs: 17.5px; } .chat.fog[data-fs="s"] { --fog-fs: 15.5px; } .chat.fog[data-fs="l"] { --fog-fs: 20px; }
.chat.fog .msg { font-family: var(--fog-serif); font-weight: 400; font-size: var(--fog-fs); line-height: 1.5; color: #fbfaf7; box-shadow: none; padding: 12px 15px; margin: 10px 0; }
.chat.fog .msg b { font-weight: 500; }
/* фон плашек — «Матовое стекло» (макет планеровщик/elysium-fon-soobsheniy.html, вариант 3): сквозь плашки чуть просвечивает туман */
/* 2026-10-24: ответы Помощника — «Серая дымка» (темнее стекла, чтобы выделялись) и чуть жирнее буквы */
/* «Бархат»: плашки сплошные, матовые, с лёгким зерном (вместо прозрачного стекла) */
.chat.fog { --fog-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E"); }
.chat.fog .msg.assistant { max-width: 92%; background: var(--fog-noise), #2e2e2c; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; border-bottom-left-radius: 6px;
  color: #f6f4ef; font-weight: 500; }
.chat.fog .msg.assistant b { font-weight: 600; }
.chat.fog .msg.user { margin-left: auto; max-width: 82%; background: var(--fog-noise), #4a3428; border: 1px solid rgba(240,150,100,.35); border-radius: 18px; border-bottom-right-radius: 6px;
  color: #fff3ea; }
.chat.fog .typing, .chat.fog .msg-back, .chat.fog #hint { color: var(--fog-dim); }
.chat.fog .composer { display: block; margin-top: 8px; padding: 12px 10px 10px 16px; border-radius: 26px;
  background: var(--fog-noise), #1c1c1b; border: 1px solid rgba(255,255,255,.09); }
.chat.fog .composer textarea { display: block; width: 100%; min-height: 0; max-height: 160px; padding: 2px 0 10px; border: 0; border-radius: 0; resize: none;
  background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--fog-text); font: 300 17px/1.4 var(--fog-serif); }
.chat.fog .composer textarea::placeholder { color: #85847e; }
.chat.fog .cmp-row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.chat.fog .round { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; padding: 0; font-size: 14px; box-shadow: none; border: 0; }
.chat.fog .round.alt { background: rgba(255,255,255,.07); color: #d6d5d0; }
.chat.fog #send { background: #f2f1ed; color: #151515; }
.chat.fog .round.rec { background: var(--bad); color: #fff; }
.chat.fog .chat-privacy { color: #6b6a64; }
/* ===== AI Помощник днём — «Тетрадь в линейку» (2026-10-24, выбран владельцем): кремовая бумага, линейки, красные поля,
   чёрный текст, ответы прямо на линейках, ваши сообщения — медовый стикер. Ночью остаётся «Бархат» (правила выше). ===== */
:root:not([data-theme="dark"]) .chat.fog { --fog-text: #1b1b1a; --fog-dim: #8f8a7e; color: #1b1b1a; }
:root:not([data-theme="dark"]) .chat.fog .fog-bg { background: #fbf8f0; box-shadow: none; }
:root:not([data-theme="dark"]) .chat.fog .fog-bg::after { opacity: .08; mix-blend-mode: multiply; }
:root:not([data-theme="dark"]) .chat.fog .msgs { padding-top: 0; padding-left: 22px; background-attachment: local;
  background-image: linear-gradient(90deg, transparent 30px, rgba(214,90,90,.45) 30px, rgba(214,90,90,.45) 31.5px, transparent 31.5px),
    repeating-linear-gradient(180deg, transparent 0, transparent 27px, rgba(110,140,180,.28) 27px, rgba(110,140,180,.28) 28px); }
:root:not([data-theme="dark"]) .chat.fog .msg { color: #1b1b1a; font-weight: 400; line-height: 28px; padding: 0 14px; margin: 0 0 28px; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
:root:not([data-theme="dark"]) .chat.fog .msg.assistant { max-width: 96%; background: transparent; border: 0; }
:root:not([data-theme="dark"]) .chat.fog .msg.assistant b { font-weight: 600; color: #000; }
:root:not([data-theme="dark"]) .chat.fog .msg.user { background: rgba(246,214,150,.8); border: 1px solid rgba(190,140,60,.4); color: #1b1b1a; box-shadow: 0 2px 6px rgba(60,45,20,.08); }
:root:not([data-theme="dark"]) .chat.fog .trk-head b { color: #1b1b1a; }
:root:not([data-theme="dark"]) .chat.fog .trk-head span, :root:not([data-theme="dark"]) .chat.fog .trk-arrow, :root:not([data-theme="dark"]) .chat.fog .trk-right { color: #6b665c; }
:root:not([data-theme="dark"]) .chat.fog .fs-btn { color: #8a6420; border-color: rgba(138,100,32,.45); }
:root:not([data-theme="dark"]) .chat.fog .fs-pick button { background: #fffdf7; color: #1b1b1a; border-color: rgba(60,45,20,.16); }
:root:not([data-theme="dark"]) .chat.fog .fs-pick button.on { border-color: #b7894f; color: #8a6420; }
:root:not([data-theme="dark"]) .chat.fog .composer { background: #fffdf7; border: 1px solid rgba(60,45,20,.16); box-shadow: 0 4px 14px rgba(60,45,20,.08); }
:root:not([data-theme="dark"]) .chat.fog .composer textarea { color: #1b1b1a; }
:root:not([data-theme="dark"]) .chat.fog .composer textarea::placeholder { color: #8f8a7e; }
:root:not([data-theme="dark"]) .chat.fog .round.alt { background: rgba(60,45,20,.07); color: #3b372f; }
:root:not([data-theme="dark"]) .chat.fog #send { background: #1b1b1a; color: #fff; }
:root:not([data-theme="dark"]) .chat.fog .to-end { background: #fff; color: #1b1b1a; border-color: rgba(60,45,20,.16); box-shadow: 0 4px 14px rgba(60,45,20,.12); }
:root:not([data-theme="dark"]) .chat.fog .chat-privacy { color: #8f8a7e; }
:root:not([data-theme="dark"]) .chat.fog .typing.dots i { background: #b7894f; }

/* Компактные шапка и строка ввода (2026-10-24, вариант «А Компактно», обе темы): чату больше места.
   Шапка в одну строку без подписи; ввод — текст, микрофон и «отправить» в одном ряду; надпись о данных мельче */
.chat.fog .trk-head { padding: 0 0 4px; gap: 8px; margin-bottom: 0; }
.chat.fog .trk-head span { display: none; }
.chat.fog .trk-head b { font-size: 17px; }
.chat.fog .fs-btn { padding: 2px 8px; font-size: 13px; }
.chat.fog .trk-right { font-size: 13px; padding: 2px 0; }
.chat.fog .composer { display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 24px; margin-top: 6px; }
.chat.fog .composer textarea { flex: 1; padding: 7px 0; min-height: 0; }
.chat.fog .cmp-row { flex: none; }
.chat.fog .chat-privacy { font-size: 10.5px; margin: 4px 4px 0; line-height: 1.3; }

/* Кнопка «Aa» и выбор размера шрифта */
.fs-btn { flex: none; padding: 4px 10px; border-radius: 12px; border: 1px solid rgba(224,182,90,.5); background: transparent; color: #e0b65a; font: 500 14px var(--fog-serif); cursor: pointer; }
.fs-pick { display: flex; gap: 8px; margin: 0 0 6px; }
.fs-pick[hidden] { display: none; }
.fs-pick button { flex: 1; padding: 9px 4px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(32,32,31,.9); color: #f3f2ee; font-family: var(--fog-serif); cursor: pointer; }
.fs-pick [data-fs="s"] { font-size: 14px; } .fs-pick [data-fs="m"] { font-size: 16px; } .fs-pick [data-fs="l"] { font-size: 18px; }
.fs-pick button.on { border-color: #e0b65a; color: #f0d08a; }

/* Ночная тема (2026-10-24): матовое зерно на небе и карточки «Светлое стекло» — светлее фона, с заметной рамкой, чтобы не сливались */
:root[data-theme="dark"] #sky::after { content: ''; position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .hm-item, :root[data-theme="dark"] .hm-secondary, :root[data-theme="dark"] .card {
  background: rgba(255,255,255,.13) !important; border: 1px solid rgba(255,255,255,.26) !important; box-shadow: 0 6px 18px rgba(0,0,0,.3) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
:root[data-theme="dark"] .dock, :root[data-theme="dark"] .ib { background: rgba(255,255,255,.13) !important; border: 1px solid rgba(255,255,255,.26) !important; }

/* Чат: новые сообщения плавно всплывают; кнопка «вниз» над строкой ввода (оба чата) */
/* AI Помощник думает: три золотые точки по очереди мягко вспыхивают, как звёзды */
.chat.fog .msg.wait { width: fit-content; }
.typing.dots { display: inline-flex; gap: 7px; align-items: center; height: 24px; padding: 0 2px; vertical-align: middle; }
.typing.dots i { width: 8px; height: 8px; border-radius: 50%; background: #e0b65a; animation: dot-glow 1.3s infinite ease-in-out; }
.typing.dots i:nth-child(2) { animation-delay: .18s; } .typing.dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dot-glow { 0%, 70%, 100% { opacity: .2; transform: scale(.8); box-shadow: none; } 35% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 8px rgba(224,182,90,.8); } }
.msg.pop { animation: msg-pop .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes msg-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg.pop { animation: none; } }
.composer { position: relative; }
.composer textarea { overflow-y: auto; }
.to-end { position: absolute; left: 50%; top: -54px; z-index: 3; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.to-end.on { opacity: 1; transform: none; pointer-events: auto; }
/* ===== Один шрифт на всё приложение (2026-10-23, просьба владельца): Source Serif 4, как в AI Помощнике.
   Везде — тексты, кнопки, поля, меню, подписи на картинках (SVG). Исключение — редактор инструкций в админке (моноширинный). ===== */
:root { --font: 'Source Serif 4', Georgia, 'Times New Roman', serif; --display: 'Source Serif 4', Georgia, 'Times New Roman', serif; }
*:not(.prompt-edit), *::before, *::after, input::placeholder, textarea::placeholder { font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif !important; }
.home-label { text-transform: none; letter-spacing: 0; font-size: 19px; font-weight: 400; color: var(--text); }
.hm-item b, .hm-secondary b { font-weight: 500; font-size: 18px; }
.hm-item small, .hm-secondary small { font-size: 15px; }
.topbar .brand { font-size: 19px; font-weight: 500; }
.dock button { white-space: nowrap; font-size: 12px; }
.chat.fog .to-end { background: rgba(32,32,31,.92); border-color: rgba(255,255,255,.16); color: #f3f2ee; box-shadow: 0 4px 14px rgba(0,0,0,.4); }

/* Библиотека практик: крупный значок по центру, текст под ним (2026-11-05, по просьбе владельца) */
.sys-card { text-align: center; }
.sys-card .sys-ico { width: 104px; height: 104px; margin: 4px auto 0; background: none; box-shadow: none; border: 0; border-radius: 0; font-size: 72px; line-height: 1; }
.sys-card .sys-ico .p-ico { width: 104px; height: 104px; }


/* «Помощь прямо сейчас» (2026-11-05): кнопка первой помощи, дыхание, оценка, сохранённые практики */
.hn-top { padding: 8px 0 6px; }
.hn-sos { display: block; width: 100%; border: 0; border-radius: 16px; padding: 13px; font: inherit; font-size: 16px; font-weight: 600; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.hn-top-row { display: flex; gap: 8px; margin-top: 8px; }
.hn-top-row button, .hn-top-row a { flex: 1 1 0; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 7px 6px; font: inherit; font-size: 13.5px; background: var(--card); color: var(--text); text-decoration: none; cursor: pointer; }
.hn-breath { position: relative; display: grid; place-items: center; height: 280px; }
.hn-flower { position: relative; width: 120px; height: 120px; transition: transform 4s ease-in-out; }
.hn-flower i { position: absolute; left: 29px; top: 29px; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 206, 130, .3); border: 1px solid rgba(255, 255, 255, .5); transition: transform 4s ease-in-out; }
.hn-flower i:nth-child(even) { background: rgba(160, 180, 255, .3); }
:root[data-theme="dark"] .hn-flower i { background: rgba(240, 201, 110, .22); border-color: rgba(255, 255, 255, .14); }
:root[data-theme="dark"] .hn-flower i:nth-child(even) { background: rgba(150, 170, 255, .2); }
.hn-word { position: absolute; font-family: var(--display); font-size: 21px; color: var(--text); }
.hn-lab { margin-top: 20px; }
.hn-methods { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.hn-methods button { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.hn-methods b { display: block; font-size: 15px; font-weight: 600; }
.hn-methods small { display: block; color: var(--muted); font-size: 13px; }
.hn-methods button.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.hn-note { text-align: center; color: var(--muted); font-size: 14.5px; margin: 8px 0; }
.hn-wide { display: block; width: 100%; margin-top: 10px; }
.hn-live { text-align: center; margin-top: 14px; }
.hn-live a { color: var(--text); font-size: 15px; font-weight: 600; }
.hn-live small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.hn-warn { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.hn-warn a { color: var(--text); font-weight: 600; }
.hn-scale { display: flex; gap: 3px; margin: 6px 0 14px; }
.hn-scale button { flex: 1 1 0; min-width: 0; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.hn-scale button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hn-res { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 14px; margin: 12px 0; font-size: 16px; }
.hn-res b { font-size: 24px; } .hn-res.good b { color: #2f8a4a; }
.hn-res small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.hn-saved { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; margin: 10px 0; }
.hn-saved summary { font-weight: 600; cursor: pointer; }
.hn-saved-b { margin-top: 8px; color: var(--text2); font-size: 14.5px; line-height: 1.55; }
.hn-del { margin-top: 10px; border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.hn-tools { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.hn-tools button, .hn-done { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 8px 11px; font: inherit; font-size: 13.5px; background: var(--card); color: var(--text); cursor: pointer; }
.hn-done { color: var(--muted); cursor: default; }
@media (prefers-reduced-motion: reduce) { .hn-flower, .hn-flower i { transition: none !important; } }


/* Дневник, карточки дня: вместо крестика лёгкие уголки справа по центру, карточка испаряется (2026-11-05, по просьбе владельца) */
.dcs-full .dcx-x { top: 50%; right: 2px; width: 68px; height: 104px; margin-top: -52px; padding: 0; border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; color: #fff; display: grid; place-items: center; cursor: pointer; filter: drop-shadow(0 0 3px rgba(0,0,0,.18)); }
.dcs-full .dcx-body { padding-right: 34px; }
.dcs-full .dcx.vanish { animation: dcxVanish .8s ease-out forwards; pointer-events: none; }
@keyframes dcxVanish { to { opacity: 0; filter: blur(16px); transform: translateY(-22px) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .dcs-full .dcx.vanish { animation: none; opacity: 0; } }

/* Тесты: выделенное слово в подписи ответа */
.tst-em { font-weight: 700; }

/* «Уровень счастья»: результат кольцом (2026-11-06) */
.hp-ring { position: relative; width: 168px; height: 168px; margin: 10px auto 4px; }
.hp-ring svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.hp-track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 11; }
.hp-arc { fill: none; stroke: url(#hpG); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset 1.2s ease-out; }
.hp-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); font-size: 46px; line-height: 1; color: inherit; }
.hp-num small { font-size: 14px; margin-top: 6px; opacity: .65; font-family: inherit; }
@media (prefers-reduced-motion: reduce) { .hp-arc { transition: none; } }

/* «Мой ведущий герой»: результат — значок и имя, колесо героев, список с полосками (2026-11-06) */
.hr-top { display: flex; gap: 14px; align-items: center; margin: 14px 0 4px; }
.hr-ico { flex: 0 0 auto; display: block; }
.hr-name { margin: 2px 0 2px; }
.hr-wheel { display: block; width: 100%; max-width: 300px; margin: 6px auto 0; }
.hr-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }
.hr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hr-sup { display: flex; gap: 12px; align-items: flex-start; }
.hr-sup > div { min-width: 0; flex: 1; }
.hr-sup p { margin: 6px 0 0; }
.hr-list { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 12px; }
.hr-li { display: grid; grid-template-columns: 30px 104px minmax(0, 1fr) 22px 42px; gap: 7px; align-items: center; padding: 5px 8px; border-radius: 12px; }
.hr-li.lead { background: var(--card); }
.hr-li.sh { opacity: .55; }
.hr-nm { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-bar { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.hr-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f0c96e, #e8915c); }
.hr-li b { font-size: 13px; text-align: right; }
.hr-li em { font-style: normal; font-size: 11px; font-weight: 600; color: #3f7a35; }
.hr-li em.s { color: var(--muted); }

/* Результат «Зачем» — вариант Б (2026-11-06): сверху финальное слово и путь к нему, разделы в рамках, длинный текст абзацами */
.asr-hero { text-align: center; color: #fff; border-radius: 22px; padding: 18px 16px; margin: 4px 0 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 45%), linear-gradient(150deg, #2a3266, #3f4677);
  box-shadow: 0 16px 34px rgba(42,50,102,.25), inset 0 1px 0 rgba(255,255,255,.2); }
.asr-hero small { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,.75); }
.asr-hero b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.2; color: #f0c96e; margin: 6px 0 12px; overflow-wrap: anywhere; }
.asr-chain { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; font-size: 13px; }
.asr-chain span { border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 2px 10px; color: #fff; }
.asr-chain i { font-style: normal; color: rgba(255,255,255,.7); }
.asr-sec { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 15px 16px; margin: 0 0 12px; }
.asr-sec .tst-label, .as-formula .asr-lb { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--accent); }
.asr-sec svg, .as-formula svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #c99a3a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.as-formula svg { stroke: #f0c96e; }
.asr-sec p { margin: 0 0 10px; line-height: 1.6; color: var(--text2); } .asr-sec p:last-child { margin-bottom: 0; }
.asr-sec.q p { font-size: 17px; font-style: italic; color: var(--text); }
.asr-list { list-style: none; margin: 0; padding: 0; }
.asr-list li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); line-height: 1.5; color: var(--text2); }
.asr-list li:first-child { border-top: 0; padding-top: 0; } .asr-list li:last-child { padding-bottom: 0; }
.asr-list li i { font-style: normal; color: #c99a3a; flex: none; font-weight: 700; width: 12px; text-align: center; }
.as-formula.asr-f { margin-top: 2px; }

/* Окно «Значок на экран телефона» (2026-11-07) */
.inst-steps { margin: 4px 0 16px; padding-left: 22px; color: var(--text2); line-height: 1.55; }
.inst-steps li { margin: 6px 0; }
