:root {
  --bg: #faf7f2; --card: #ffffff; --text: #1b1b1f; --muted: #8e8a85; --line: #f0ebe4; --track: #f1ede7;
  --orange: #ff7a1a; --orange-2: #ff5c00; --orange-soft: #fff1e4; --orange-grad: linear-gradient(135deg, #ff9a3c, #ff6a00);
  --p: #7b5cff; --p-soft: #efeaff; --f: #ff4d6d; --f-soft: #ffe9ed; --c: #2f9bff; --c-soft: #e6f3ff;
  --green: #22b35e; --green-soft: #e3f7ea; --red: #ff4d4f; --red-soft: #ffe9e9; --warn: #f5a623; --warn-soft: #fff4dd;
  --water: #2f9bff;
  --shadow: 0 6px 24px rgba(40, 25, 5, .06); --radius: 22px;
}
:root[data-theme="dark"] {
  --bg: #121110; --card: #1e1c1a; --text: #f5f2ee; --muted: #9c958d; --line: #2c2926; --track: #2a2724;
  --orange-soft: #3a2616; --p-soft: #28223f; --f-soft: #3b1f25; --c-soft: #1a2b3b; --green-soft: #183224;
  --red-soft: #3b1f1f; --warn-soft: #3a2f18; --shadow: 0 6px 24px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', -apple-system, system-ui, sans-serif; background: var(--bg); color: var(--text);
  min-height: 100vh; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button { font-family: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1 { font-size: 30px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 19px; font-weight: 800; margin: 0; }
h3 { font-size: 17px; font-weight: 800; margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }

.screen { padding: 14px 16px 120px; max-width: 520px; margin: 0 auto; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; border: none; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.sh-type-btn { border: none; background: none; padding: 0; margin: 0; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin: 20px 2px 12px; }
.link { background: none; border: none; color: var(--orange); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; padding: 4px; }
.link svg { width: 16px; height: 16px; stroke-width: 2.5; }
.badge { background: var(--orange-soft); color: var(--orange); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.lbl { font-size: 13px; color: var(--muted); font-weight: 600; }

/* кнопки */
.btn { width: 100%; border: none; border-radius: 16px; padding: 14px; font-size: 15px; font-weight: 800; margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--orange-grad); color: #fff; box-shadow: 0 8px 18px rgba(255, 106, 0, .28); }
.btn.soft { background: var(--orange-soft); color: var(--orange); }
.btn.white { background: #fff; color: var(--orange-2); }
.btn.sm { width: auto; margin-top: 0; padding: 12px 16px; font-size: 14px; border-radius: 14px; }
.btn:disabled { opacity: .45; box-shadow: none; }
.ghost-btn { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.danger-btn { background: transparent; color: var(--red); margin-top: 24px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--card); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; position: relative; flex: 0 0 auto; }
.icon-btn.sq { border-radius: 14px; width: 46px; height: 56px; }
.icon-btn.ghost { background: transparent; box-shadow: none; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--card); }
.chip-btn { height: 44px; padding: 0 14px; border-radius: 999px; border: none; background: var(--card); box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 16px; color: var(--orange); }
.chip-btn .fire { fill: var(--orange); stroke: none; }
.pill-btn, .pill-select { background: var(--card); border: none; box-shadow: var(--shadow); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.pill-btn svg { width: 16px; height: 16px; }
.pill-select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8a85' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }

input[type=text], input[type=number], input[type=email], textarea, select.field {
  width: 100%; border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 14px;
  padding: 13px 14px; font-size: 15px; outline: none; margin-top: 8px;
}
input:focus, textarea:focus { border-color: var(--orange); }
textarea { resize: vertical; min-height: 96px; }
.row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.row input { margin-top: 0; flex: 1; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2 .btn { margin-top: 10px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* бары */
.bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .5s ease; }
.bar.orange i { background: var(--orange-grad); }

/* аватар */
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--orange-grad) center/cover; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 20px; flex: 0 0 auto; box-shadow: 0 0 0 3px var(--card), var(--shadow); }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }

/* ===== Сегодня ===== */
.head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hello { font-size: 14px; color: var(--muted); font-weight: 600; }
.name { font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 250px); }
.head-actions { display: flex; gap: 10px; }

.week { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.week-days { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wd { border: none; background: var(--card); box-shadow: var(--shadow); border-radius: 14px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; padding: 0; }
.wd .w { font-size: 11px; color: var(--muted); font-weight: 600; }
.wd .d { font-size: 15px; font-weight: 800; }
.wd.sel { background: var(--orange-grad); color: #fff; box-shadow: 0 8px 16px rgba(255, 106, 0, .3); }
.wd.sel .w { color: rgba(255,255,255,.85); }
.wd.future { opacity: .45; }
.wd .mark { position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.wd.sel .mark { background: #fff; }
.wd.today:not(.sel) .d { color: var(--orange); }

.cal-card { display: flex; align-items: center; position: relative; overflow: hidden; min-height: 150px; padding: 20px; background: linear-gradient(100deg, var(--card) 55%, var(--orange-soft)); }
.cal-left { z-index: 1; }
.cal-left .big { font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: 6px; }
.cal-left .sub { color: var(--muted); font-weight: 600; font-size: 15px; }
.cal-left .remain { font-size: 12.5px; font-weight: 700; margin-top: 6px; color: var(--green); }
.cal-left .remain.over { color: var(--red); }
.ring-wrap { position: relative; width: 112px; height: 112px; margin-left: 8px; z-index: 1; }
.ring { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring-bg { stroke: var(--track); }
.ring-fg { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset .8s ease; }
.ring-pct { position: absolute; top: -4px; right: -4px; background: var(--card); box-shadow: var(--shadow); border-radius: 999px; font-size: 12px; font-weight: 800; padding: 4px 8px; }
.cal-card .mascot { position: absolute; right: 2px; bottom: -6px; width: 92px; height: auto; filter: drop-shadow(0 8px 12px rgba(255,106,0,.25)); pointer-events: none; }
.reaction { background: var(--orange-soft); color: var(--orange-2); border-radius: 16px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; margin: -4px 0 14px; }

.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.macro { border-radius: 18px; padding: 12px; }
.macro .mh { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.macro .mi { font-size: 15px; }
.macro .mv { font-size: 15px; margin: 8px 0; font-weight: 600; white-space: nowrap; }
.macro .mv b { font-weight: 800; }
.macro .bar { background: rgba(255,255,255,.7); height: 7px; }
:root[data-theme="dark"] .macro .bar { background: rgba(0,0,0,.25); }
.m-p { background: var(--p-soft); } .m-p .mv { color: var(--p); } .m-p .bar i { background: var(--p); }
.m-f { background: var(--f-soft); } .m-f .mv { color: var(--f); } .m-f .bar i { background: var(--f); }
.m-c { background: var(--c-soft); } .m-c .mv { color: var(--c); } .m-c .bar i { background: var(--c); }

.water { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.water-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--c-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; }
.water-main { flex: 1; min-width: 0; }
.water-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; gap: 6px; }
.water-top span { color: var(--muted); white-space: nowrap; }
.water-top span b { color: var(--water); }
.water-bar i { background: var(--water); }
.water-btns { display: flex; gap: 6px; }
.water-btns button { border: none; border-radius: 12px; background: var(--c-soft); color: var(--water); font-weight: 800; font-size: 13px; padding: 9px 10px; }
.water-btns .w-minus { padding: 9px 12px; }

.tips { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.tips::-webkit-scrollbar { display: none; }
.tip { flex: 0 0 104px; height: 136px; border-radius: 18px; overflow: hidden; position: relative; border: none; padding: 0; background: var(--track) center/cover; scroll-snap-align: start; box-shadow: var(--shadow); }
.tip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6)); }
.tip span { position: absolute; left: 10px; right: 8px; bottom: 9px; color: #fff; font-size: 12px; font-weight: 700; text-align: left; line-height: 1.25; z-index: 1; }
.tip.seen { opacity: .75; }
.tip.new::before { content: ''; position: absolute; inset: 0; border: 2.5px solid var(--orange); border-radius: 18px; z-index: 2; }
.tip.more { background: var(--card); border: 1.5px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.tip.more::after { display: none; }
.tip.more .plus-c { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); display: flex; align-items: center; justify-content: center; }

.meals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.meal { border: none; background: var(--card); box-shadow: var(--shadow); border-radius: 18px; padding: 8px 6px 10px; text-align: left; position: relative; display: flex; flex-direction: column; align-items: stretch; }
.meal .pic { height: 62px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 8px; }
.meal .t { font-size: 13px; font-weight: 800; padding: 0 4px; }
.meal .k { font-size: 12px; color: var(--muted); padding: 0 4px; font-weight: 600; }
.meal .ok { position: absolute; top: -5px; right: -5px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange-grad); display: flex; align-items: center; justify-content: center; border: 2px solid var(--card); }
.meal .ok svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3.5; }
.meal.empty .pic { background: var(--orange-soft) !important; color: var(--orange); font-size: 28px; font-weight: 400; }
.pic-breakfast { background: linear-gradient(135deg, #ffe8cc, #ffd29a); }
.pic-lunch { background: linear-gradient(135deg, #e2f5d6, #bfe6a5); }
.pic-dinner { background: linear-gradient(135deg, #ffe0d6, #ffc0a8); }
.pic-snack { background: linear-gradient(135deg, #fde4ec, #f9c6d6); }
.pic-pending { background: var(--track); color: var(--muted); animation: pic-pulse 1.4s ease-in-out infinite; }
.pic-pending svg { width: 20px; height: 20px; }
@keyframes pic-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.add-big { display: flex; margin-top: 18px; border-radius: 999px; background: var(--orange-grad); box-shadow: 0 10px 22px rgba(255, 106, 0, .32); overflow: hidden; }
.add-main { flex: 1; border: none; background: none; color: #fff; font-size: 17px; font-weight: 800; padding: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.add-main svg { stroke-width: 3; }
.add-cam { border: none; background: rgba(255,255,255,.14); color: #fff; padding: 0 20px; border-left: 1px solid rgba(255,255,255,.25); }

/* ===== Навигация ===== */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--card); box-shadow: 0 -4px 24px rgba(40,25,5,.06); display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: end; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
.tab { border: none; background: none; color: var(--muted); font-size: 11px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; }
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--orange); }
.tab.active svg { fill: var(--orange-soft); }
.plus { justify-self: center; width: 64px; height: 64px; margin-top: -32px; border-radius: 50%; border: 5px solid var(--bg); background: var(--orange-grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(255, 106, 0, .35); }
.plus svg { width: 28px; height: 28px; stroke-width: 3; }

/* ===== Общие страницы ===== */
.page-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; min-height: 44px; }
.page { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; animation: pageIn .22s ease; }
@keyframes pageIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.page-top { position: sticky; top: 0; z-index: 2; background: var(--bg); display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 10px 10px; text-align: center; }
.page-body { padding: 4px 16px 40px; max-width: 520px; margin: 0 auto; }

.seg { display: flex; background: var(--card); box-shadow: var(--shadow); border-radius: 16px; padding: 4px; margin-bottom: 14px; gap: 4px; }
.seg button { flex: 1; border: none; background: none; border-radius: 12px; padding: 10px 4px; font-weight: 700; font-size: 14px; color: var(--muted); line-height: 1.35; }
.seg button.active { background: var(--orange-grad); color: #fff; }
.seg.four button { font-size: 12px; }

/* ===== Аналитика ===== */
.bars { width: 100%; height: 170px; display: block; stroke: none; }
.wt-chart, .ring { stroke: none; }
.bars-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--muted); margin-top: 12px; font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg-ok { background: var(--green); } .lg-under { background: var(--warn); } .lg-over { background: var(--red); }
.lg-line { background: none !important; border-top: 2px dashed var(--orange); height: 0 !important; width: 14px !important; vertical-align: 3px !important; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); box-shadow: var(--shadow); border-radius: 18px; padding: 14px; }
.stat .n { font-size: 22px; font-weight: 800; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.mrow { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; font-weight: 700; }
.mrow .v { font-size: 13px; white-space: nowrap; }
.mrow .v span { color: var(--muted); font-weight: 600; }
.wt-now { font-size: 14px; color: var(--muted); font-weight: 600; }
.wt-now b { font-size: 30px; color: var(--text); font-weight: 800; }
.wt-chart { width: 100%; height: 140px; margin: 10px 0 4px; display: block; }

/* ===== План / цель ===== */
.goal-card { position: relative; background: linear-gradient(135deg, #ffe3c6, #ffc98f); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; overflow: hidden; min-height: 176px; }
:root[data-theme="dark"] .goal-card { background: linear-gradient(135deg, #4a2c14, #6b3a12); }
.goal-card .lbl { color: #9a6a3e; }
:root[data-theme="dark"] .goal-card .lbl { color: #e0b58a; }
.gc-title { font-size: 20px; font-weight: 800; margin-top: 2px; }
.goal-card .mascot { position: absolute; right: 2px; bottom: 6px; width: 112px; height: auto; }
.gc-edit { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--card); color: var(--orange); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.gc-edit svg { width: 18px; height: 18px; }
.gc-inner { position: relative; z-index: 1; background: rgba(255,255,255,.85); border-radius: 18px; padding: 14px; margin-top: 16px; width: 72%; }
:root[data-theme="dark"] .gc-inner { background: rgba(30,28,26,.85); }
.gc-row { display: flex; justify-content: space-between; font-size: 17px; margin-bottom: 10px; }
.gc-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; font-weight: 600; }
.quest { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.quest:last-child { border-bottom: none; }
.quest .qi { width: 38px; height: 38px; border-radius: 12px; background: var(--track); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.quest .qt { flex: 1; font-size: 14px; font-weight: 700; }
.quest .qt small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.quest .qc { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.quest.done .qc { background: var(--orange-grad); border-color: transparent; }
.quest.done .qc svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3.5; }
.quest.done .qt { color: var(--muted); text-decoration: line-through; }
.quest.done .qi { background: var(--orange-soft); }
.reward { margin-top: 10px; background: var(--c-soft); color: var(--water); border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 700; }
.info-dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--track); color: var(--muted); font-size: 12px; font-weight: 800; border: none; padding: 0; margin-left: 4px; vertical-align: middle; cursor: pointer; line-height: 1; }
.info-dot:active { background: var(--orange-soft); color: var(--orange); }
.week-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-dots div { height: 44px; border-radius: 12px; background: var(--track); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.week-dots div.ok { background: var(--green-soft); color: var(--green); }
.week-dots div.bad { background: var(--warn-soft); color: var(--warn); }
.week-dots div.today { box-shadow: 0 0 0 2px var(--orange) inset; }
.norm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.norm { background: var(--track); border-radius: 14px; padding: 10px; }
.norm-edit { cursor: pointer; }
.norm-custom-badge { font-size: 11px; opacity: .7; }
.norm .n { font-size: 16px; font-weight: 800; }
.norm .l { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* ===== Профиль ===== */
.user-card { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; }
.uc-text { flex: 1; min-width: 0; }
.uc-name { font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-sub { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 3px; }
.chev { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.pro-tag { background: linear-gradient(135deg, #ffd36b, #ff9a3c); color: #5a2d00; font-weight: 800; font-size: 11px; padding: 4px 8px; border-radius: 8px; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.info { background: var(--card); box-shadow: var(--shadow); border-radius: 18px; padding: 12px 10px; }
.info .ii { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 10px; }
.ii-g { background: var(--green-soft); } .ii-p { background: var(--p-soft); } .ii-y { background: var(--warn-soft); } .ii-o { background: var(--orange-soft); }
.info .il { font-size: 12px; color: var(--muted); font-weight: 600; }
.info .iv { font-size: 14px; font-weight: 800; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list { padding: 6px 16px; }
.srow { display: grid; grid-template-columns: 26px 86px 1fr auto 14px; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.srow:last-child { border-bottom: none; }
.srow .si { font-size: 18px; }
.srow .sv { font-size: 13px; white-space: nowrap; }
.srow .sv span { color: var(--muted); font-weight: 600; }
.srow .chev { width: 14px; height: 14px; }
.streak-banner { width: 100%; border: none; display: flex; align-items: center; gap: 14px; background: linear-gradient(100deg, var(--orange-soft), #ffe2c2); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; text-align: left; }
:root[data-theme="dark"] .streak-banner { background: linear-gradient(100deg, #3a2616, #4a2c14); }
.sb-ico { font-size: 34px; }
.sb-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.sb-text span { font-size: 13px; color: var(--muted); font-weight: 600; }
.menu-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 0; border: none; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.menu-row:last-child { border-bottom: none; }
.menu-row.static { cursor: default; }
.mr-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--orange-soft); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.mr-t { flex: 1; font-weight: 800; font-size: 15px; }
.mr-t small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; margin-top: 1px; }
.switch { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--track); position: relative; transition: background .2s; margin: 0; flex: 0 0 auto; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch:checked { background: var(--orange); }
.switch:checked::after { transform: translateX(20px); }

/* PRO / рефералка */
.pro-hero { position: relative; background: var(--orange-grad); color: #fff; border-radius: var(--radius); padding: 20px; overflow: hidden; margin-bottom: 14px; }
.pro-hero .lbl { color: rgba(255,255,255,.8); }
.pro-hero .mascot { position: absolute; right: -6px; top: 6px; width: 104px; height: auto; }
.pro-status { font-size: 22px; font-weight: 800; margin: 4px 0 8px; max-width: 70%; }
.benefits { list-style: none; padding: 0; margin: 10px 0 6px; }
.benefits li { padding: 5px 0; font-size: 14.5px; font-weight: 600; }
.pro-note { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 10px; text-align: center; }
.link-card { width: 100%; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; }
.ref-hero { background: var(--orange-grad); color: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; line-height: 1.4; }
.ref-big { font-size: 40px; font-weight: 800; line-height: 1.1; }
.ref-link { background: var(--track); border-radius: 12px; padding: 12px; font-size: 13px; word-break: break-all; margin: 8px 0 0; font-weight: 600; }
.steps { padding-left: 20px; margin: 10px 0 0; font-size: 14px; line-height: 1.7; font-weight: 600; }
.wd-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.wd-item:last-child { border-bottom: none; }
.status { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; font-weight: 800; }
.status.pending { background: var(--warn-soft); color: var(--warn); }
.status.paid { background: var(--green-soft); color: var(--green); }
.status.rejected { background: var(--red-soft); color: var(--red); }

/* Добавить */
.add-date { text-align: center; margin: -4px 0 10px; font-weight: 700; color: var(--orange); }
.add-input textarea { border: none; padding: 4px; margin: 0; min-height: 90px; }
.add-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.add-actions #parse-btn { grid-column: 1 / -1; }
.add-actions #photo-btn:not(.hidden):has(~ #barcode-btn.hidden) { grid-column: 1 / -1; }
.photo-preview { display: flex; gap: 12px; align-items: center; }
.photo-preview img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.photo-status { font-weight: 700; font-size: 14px; }
.pv-item { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 0; border: none; border-bottom: 1px solid var(--line); background: none; font-family: inherit; font-size: 14px; font-weight: 600; text-align: left; color: inherit; }
.pv-item:last-child { border-bottom: none; }
.pv-item span:last-child { color: var(--muted); white-space: nowrap; margin-left: 8px; }
.pv-item:active { opacity: .6; }
.pv-portion { color: var(--orange); font-weight: 700; }

/* Советы */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tips-grid .tip { flex: none; width: 100%; height: 200px; }
.tips-grid .tip span { font-size: 14px; }

/* Шторка */
.sheet-wrap { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: 100%; max-width: 560px; margin: 0 auto; background: var(--bg); border-radius: 26px 26px 0 0; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; animation: up .25s ease; }
@keyframes up { from { transform: translateY(40px); } to { transform: none; } }
.sheet-handle { width: 42px; height: 5px; border-radius: 999px; background: var(--line); background-clip: content-box; box-sizing: content-box; padding: 12px 30px; margin: -8px auto 6px; cursor: grab; touch-action: none; }
.sheet h2 { margin-bottom: 14px; }
.meal-block { background: var(--card); box-shadow: var(--shadow); border-radius: 18px; padding: 14px; margin-bottom: 10px; }
.meal-block .h { display: flex; justify-content: space-between; align-items: center; font-weight: 800; gap: 8px; }
.meal-block .it { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.55; font-weight: 600; }
.meal-block .del { border: none; background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 800; }
.notif { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: none; }
.notif .ni { width: 40px; height: 40px; border-radius: 12px; background: var(--orange-soft); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.notif .nt { font-weight: 800; font-size: 14px; }
.notif .nb { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: pre-line; font-weight: 600; }
.notif .nd { font-size: 11px; color: var(--muted); margin-top: 4px; }
.notif.unread .nt::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-left: 6px; vertical-align: 2px; }
.empty-state { text-align: center; padding: 20px 10px; color: var(--muted); font-weight: 600; }
.empty-state img { width: 84px; height: auto; display: block; margin: 0 auto 10px; }
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ach { background: var(--card); box-shadow: var(--shadow); border-radius: 16px; padding: 10px 6px; text-align: center; height: 112px; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.ach .ai { font-size: 26px; line-height: 1.1; }
.ach .at { font-size: 11.5px; font-weight: 800; margin-top: 5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ach .ad { font-size: 10px; color: var(--muted); margin-top: 3px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ach.locked { opacity: .35; filter: grayscale(1); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-head .m { font-size: 18px; font-weight: 800; text-transform: capitalize; }
.cal-head button { border: none; width: 38px; height: 38px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); font-size: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-wd { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.cal-day { aspect-ratio: 1; border-radius: 12px; border: none; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; padding: 0; }
.cal-day small { font-size: 8.5px; font-weight: 700; opacity: .85; }
.cal-day.empty { background: none; }
.cal-day.future { opacity: .3; }
.cal-day.good { background: var(--green-soft); color: var(--green); }
.cal-day.under { background: var(--warn-soft); color: var(--warn); }
.cal-day.over { background: var(--red-soft); color: var(--red); }
.cal-day.sel { box-shadow: 0 0 0 2.5px var(--orange) inset; }
.cal-day.today:not(.sel) { box-shadow: 0 0 0 1.5px var(--text) inset; }
.form-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 2px -2px; display: block; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.opt { border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px 12px; font-weight: 800; font-size: 15px; text-align: left; }
.opt small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; margin-top: 2px; }
.opt.sel { border-color: var(--orange); background: var(--orange-soft); }
.opt-list .opt { width: 100%; margin-top: 8px; }

/* Сторис */
.story { position: fixed; inset: 0; z-index: 200; background: #000; color: #fff; display: flex; flex-direction: column; }
.story-bars { display: flex; gap: 4px; padding: calc(10px + env(safe-area-inset-top)) 12px 8px; z-index: 3; }
.story-bars div { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.story-bars i { display: block; height: 100%; width: 0; background: #fff; }
.story-head { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 0 16px; z-index: 3; font-weight: 800; }
.story-close { background: none; border: none; color: #fff; font-size: 34px; line-height: 1; padding: 4px 8px; }
.story-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.story-content img { width: 100%; height: 100%; object-fit: contain; }
.story-text { background: var(--orange-grad); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 40px 28px; font-size: 22px; font-weight: 800; line-height: 1.4; text-align: center; }
.story-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px calc(30px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); font-size: 16px; font-weight: 700; line-height: 1.45; }
.story-tap { position: absolute; top: 80px; bottom: 0; z-index: 2; }
.story-tap.left { left: 0; width: 35%; }
.story-tap.right { right: 0; width: 65%; }

/* Админка */
details.adm { background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
details.adm > summary { padding: 16px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.adm > summary::-webkit-details-marker { display: none; }
details.adm > summary::after { content: '›'; font-size: 22px; color: var(--muted); transition: transform .2s; }
details.adm[open] > summary::after { transform: rotate(90deg); }
details.adm > .body { padding: 0 16px 16px; }
.adm-item { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.adm-item:last-child { border-bottom: none; }
.adm-item .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.adm-item .acts .btn { width: auto; margin-top: 0; padding: 8px 12px; font-size: 12.5px; border-radius: 10px; }
.tip-row { display: flex; gap: 12px; align-items: center; }
.tip-row .th { width: 54px; height: 70px; border-radius: 10px; background: var(--track) center/cover; flex: 0 0 auto; }
.slide-ed { background: var(--track); border-radius: 14px; padding: 10px; margin-top: 10px; }
.slide-ed .row { margin-top: 0; }
.slide-ed img { width: 56px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--card); }
.slide-ed textarea { min-height: 60px; }
.upload-btn { border: 1.5px dashed var(--line); background: var(--card); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 13px; color: var(--orange); }

/* Онбординг */
.onb { position: fixed; inset: 0; z-index: 150; background: var(--bg); display: flex; flex-direction: column; }
.onb-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 6px; }
.onb-progress { flex: 1; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; margin-right: 34px; }
.onb-progress div { height: 100%; background: var(--orange-grad); border-radius: 999px; transition: width .3s; }
.onb-step { flex: 1; overflow-y: auto; padding: 16px 20px; max-width: 520px; width: 100%; margin: 0 auto; }
.onb-step h1 { font-size: 26px; margin: 8px 0 8px; }
.onb-step p { color: var(--muted); font-weight: 600; margin: 0 0 18px; line-height: 1.45; }
.onb-hero { text-align: center; padding-top: 20px; }
.onb-hero img { width: 170px; height: auto; filter: drop-shadow(0 12px 20px rgba(255,106,0,.3)); }
.onb-num { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 30px 0; }
.onb-num input { width: 150px; text-align: center; font-size: 44px; font-weight: 800; border: none; border-bottom: 3px solid var(--orange); border-radius: 0; background: none; padding: 4px; margin: 0; }
.onb-num span { font-size: 20px; font-weight: 700; color: var(--muted); }
.onb-warn { text-align: center; font-size: 13px; color: #b45309; background: #fef3c7; border-radius: 12px; padding: 10px 16px; margin: -14px 8px 0; }
.onb-footer { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); max-width: 520px; width: 100%; margin: 0 auto; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }

/* Прочее */
.toast { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%) translateY(-10px); background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 700; opacity: 0; transition: all .25s; pointer-events: none; z-index: 400; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 300; padding: 24px; animation: fade .2s; }
.popup { background: var(--card); border-radius: 26px; padding: 28px 22px; text-align: center; max-width: 320px; width: 100%; }
.popup .icon { font-size: 60px; }
.popup .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 8px 0 4px; font-weight: 700; }
.popup .title { font-size: 22px; font-weight: 800; }
.popup .desc { font-size: 14px; color: var(--muted); margin: 6px 0 8px; font-weight: 600; }
.loader { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.loader img { width: 110px; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--orange-soft); border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 370px) {
  .macro .mv { font-size: 13px; }
  .cal-left .big { font-size: 36px; }
  .cal-card .mascot { width: 80px; }
  .info .iv { font-size: 12.5px; }
}

/* Дневник за день — список записей без ограничений по типам */
.meal-list { display: flex; flex-direction: column; gap: 8px; }
.meal-row { width: 100%; border: none; background: var(--card); box-shadow: var(--shadow); border-radius: 18px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; text-align: left; }
.meal-row .pic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: 0 0 auto; }
.meal-row .pic-img { object-fit: cover; background: var(--track); }
.mr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.mr-body .muted { font-weight: 600; }
.mr-items { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-kcal { font-weight: 800; font-size: 16px; text-align: right; flex: 0 0 auto; }
.mr-kcal small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.meal-empty { display: flex; align-items: center; gap: 14px; background: var(--card); box-shadow: var(--shadow); border-radius: 18px; padding: 12px 16px; }
.meal-empty img { width: 60px; height: auto; }
.meal-empty div { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.meal-empty span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.seg.mini { margin: 0; padding: 3px; box-shadow: none; background: var(--track); flex: 0 0 auto; }
.seg.mini button { padding: 7px 9px; font-size: 12px; flex: 0 0 auto; }
.loader img { height: auto; }

/* ===== Пробный период / PRO ===== */
.trial-banner { width: 100%; border: none; display: flex; align-items: center; gap: 12px; padding: 11px 14px; margin: -4px 0 14px; border-radius: 18px; text-align: left;
  background: linear-gradient(100deg, #fff1e4, #ffe0bf); box-shadow: var(--shadow); }
:root[data-theme="dark"] .trial-banner { background: linear-gradient(100deg, #3a2616, #4a2c14); }
.trial-banner.expired { background: linear-gradient(100deg, #efeaff, #e3dcff); }
:root[data-theme="dark"] .trial-banner.expired { background: linear-gradient(100deg, #28223f, #332a55); }
.tb-ico { font-size: 22px; }
.tb-t { flex: 1; display: flex; flex-direction: column; gap: 1px; font-size: 14px; min-width: 0; }
.tb-t small { font-size: 12px; color: var(--muted); font-weight: 600; }
.tb-btn { background: var(--orange-grad); color: #fff; font-weight: 800; font-size: 13px; padding: 8px 12px; border-radius: 12px; flex: 0 0 auto; }
.trial-banner.expired .tb-btn { background: var(--p); }
.trial-card .tc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.tc-left { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.tc-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.tc-days div { background: var(--track); border-radius: 12px; padding: 8px 0; text-align: center; display: flex; flex-direction: column; }
.tc-days b { font-size: 16px; font-weight: 800; }
.tc-days span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.tc-days .done { background: var(--orange-soft); color: var(--orange); }
.tc-days .done span { color: var(--orange); }
.tc-days .now { background: var(--orange-grad); color: #fff; }
.tc-days .now span { color: rgba(255,255,255,.85); }
.pro-mini { background: var(--orange-grad); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; margin-left: 2px; }
.hint-card { background: var(--c-soft); color: var(--text); border-radius: 16px; padding: 11px 14px; font-size: 13px; font-weight: 600; line-height: 1.45; margin-top: 12px; }
.upsell { text-align: center; padding: 4px 4px 0; }
.upsell .m-wrap, .upsell > img { width: 110px; margin: 0 auto; display: block; }
.upsell-ico { font-size: 30px; margin-top: 4px; }
.upsell h2 { margin: 6px 0 6px; }
.upsell p { margin: 0 0 6px; font-weight: 600; line-height: 1.45; }
.upsell-note { font-size: 12.5px; color: var(--p); font-weight: 700; margin-bottom: 4px; }

/* ===== Обучение ===== */
.tour { position: fixed; inset: 0; z-index: 450; }
.tour-hole { position: fixed; box-shadow: 0 0 0 9999px rgba(10, 6, 2, .66); transition: all .35s ease; pointer-events: none; }
.tour-tip { position: fixed; left: 16px; right: 16px; max-width: 420px; margin: 0 auto; background: var(--card); border-radius: 22px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.3); animation: tipIn .25s ease; }
@keyframes tipIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tour-tip.center { top: 50%; transform: translateY(-50%); text-align: center; animation: none; }
.tour-tip.center .m-wrap, .tour-tip.center > img { width: 120px; display: block; margin: -70px auto 4px; }
.tour-tip h3 { font-size: 17px; margin: 4px 0 4px; }
.tour-tip p { margin: 0; color: var(--muted); font-weight: 600; font-size: 14px; line-height: 1.45; }
.tour-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 12px; }
.tour-btns .btn { margin-top: 0; padding: 12px; }
.tour-dots { display: flex; gap: 4px; margin-bottom: 8px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .2s; }
.tour-dots i.on { width: 18px; background: var(--orange); }

.bc-scan { position: fixed; inset: 0; z-index: 460; background: #000; }
.bc-scan video { width: 100%; height: 100%; object-fit: cover; }
.bc-frame { position: absolute; top: 38%; left: 12%; right: 12%; height: 110px; border: 3px solid #fff; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); pointer-events: none; }
.bc-top { position: absolute; top: 0; left: 0; right: 0; padding: 16px; display: flex; align-items: center; gap: 10px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.bc-top .icon-btn { background: rgba(255,255,255,.18); color: #fff; }
.bc-top .icon-btn svg { stroke: #fff; }
.bc-hint { color: #fff; font-weight: 700; font-size: 14px; }

/* ===== Живой маскот ===== */
.m-wrap { position: relative; display: inline-block; transform-origin: 50% 100%; cursor: pointer; }
.m-wrap.mascot { display: block; }
.m-wrap .m-fill { width: 100% !important; height: auto !important; position: static !important; display: block; filter: none; animation: none; }
.m-lid { position: absolute; border-radius: 50%; background: #ff9312; transform: scaleY(0); transform-origin: 50% 0; border-bottom: 2px solid #5a3214;
  animation: mBlink 5.2s infinite; animation-delay: var(--d, 0s); pointer-events: none; }
@keyframes mIdle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-1.5deg); } }
@keyframes mWave {
  0%, 100% { transform: translateY(0) rotate(0); }
  8% { transform: translateY(-3px) rotate(-5deg); } 14% { transform: translateY(-3px) rotate(4deg); }
  20% { transform: translateY(-3px) rotate(-4deg); } 26% { transform: translateY(0) rotate(2deg); }
  32% { transform: translateY(0) rotate(0); } 60% { transform: translateY(-4px) rotate(-1deg); }
}
@keyframes mBlink { 0%, 91% { transform: scaleY(0); animation-timing-function: cubic-bezier(.55,0,.8,.4); } 93.2% { transform: scaleY(1); animation-timing-function: linear; } 94% { transform: scaleY(1); animation-timing-function: cubic-bezier(.2,.6,.45,1); } 97%, 100% { transform: scaleY(0); } }
.m-wrap.m-jump { animation: mJump .6s cubic-bezier(.3, 1.6, .5, 1) 1 !important; }
@keyframes mJump { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-14px) scale(1.06, .95); } 60% { transform: translateY(0) scale(.96, 1.05); } 100% { transform: none; } }
.loader .m-wrap { width: 110px; }
.loader .m-wrap .m-fill { animation: none; }
@media (prefers-reduced-motion: reduce) { .m-wrap, .m-lid { animation: none !important; } }
.empty-state .m-wrap { width: 84px; display: block; margin: 0 auto 10px; }
.onb-hero .m-wrap { width: 170px; filter: drop-shadow(0 12px 20px rgba(255,106,0,.3)); }
.meal-empty .m-wrap { width: 60px; }
.m-wrap .m-fill { margin: 0 !important; }
/* Повтор приёма пищи */
.rp-chips { display: flex; gap: 6px; overflow-x: auto; margin: -4px -16px 12px; padding: 0 16px; scrollbar-width: none; }
.rp-chips::-webkit-scrollbar { display: none; }
.rp-chip { flex: none; border: 0; background: var(--card); color: var(--text); font: inherit; font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 999px; }
.rp-chip.on { background: var(--orange-grad); color: #fff; }
.rp-list { display: grid; gap: 8px; }
.rp-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: var(--card); color: var(--text); font: inherit; padding: 12px; border-radius: 16px; }
.rp-item:active { transform: scale(.98); }
.rp-item:disabled { opacity: .5; }
.rp-ico { font-size: 22px; width: 40px; height: 40px; border-radius: 12px; background: var(--orange-soft, #fff1e4); display: grid; place-items: center; flex: none; }
.rp-t { flex: 1; min-width: 0; }
.rp-t b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-t small { color: var(--muted); font-weight: 600; font-size: 12px; }
.rp-kcal { font-weight: 800; font-size: 16px; text-align: right; }
.rp-kcal small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
/* Ежедневник спорта */
.wo-datebar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; font-weight: 800; font-size: 15px; }
.wo-item { display: flex; align-items: center; gap: 10px; padding: 12px; }
.wo-ico { font-size: 20px; width: 38px; height: 38px; border-radius: 12px; background: var(--orange-soft); display: grid; place-items: center; flex: none; }
.wo-t { flex: 1; min-width: 0; }
.wo-t b { display: block; font-size: 14px; }
.wo-t small { color: var(--muted); font-weight: 600; font-size: 12px; }
.wo-del { border: 0; background: transparent; color: var(--muted); font-size: 15px; padding: 6px; }
.wo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wo-chip { border: 0; background: var(--track); color: var(--text); font: inherit; font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 999px; }
.wo-chip.on { background: var(--orange-grad); color: #fff; }
.wo-sets-btn { border: 0; background: var(--orange-soft); color: var(--text); font-size: 15px; padding: 6px 9px; border-radius: 10px; flex: none; }
.wo-ex-group { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.wo-ex-group:last-child { border-bottom: none; }
.wo-ex-group b { display: block; font-size: 13px; margin-bottom: 6px; }
.wo-ex-sets { display: flex; flex-wrap: wrap; gap: 6px; }
.wo-set-chip { background: var(--track); color: var(--text); font-weight: 700; font-size: 12px; padding: 6px 9px; border-radius: 999px; cursor: pointer; }
/* Таймер пробного периода */
.tb-cap { display: block; }
.tb-timer { display: block; font-size: 22px !important; font-weight: 800; letter-spacing: .5px; font-variant-numeric: tabular-nums; color: var(--orange-2); line-height: 1.15; margin: 1px 0 2px; }
.tc-left { font-variant-numeric: tabular-nums; }
/* Тарифы */
.plans-h { margin: 18px 2px 10px; font-size: 18px; }
.plans { display: grid; gap: 8px; }
.plan { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 2px solid transparent; background: var(--card); color: var(--text); font: inherit; padding: 14px; border-radius: 18px; transition: border-color .15s, transform .1s; }
.plan:active { transform: scale(.985); }
.plan.on { border-color: var(--orange); box-shadow: 0 6px 18px rgba(255,106,0,.14); }
.plan-flag { position: absolute; top: -9px; left: 14px; background: var(--orange-grad); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 8px; text-transform: uppercase; letter-spacing: .4px; }
.plan-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; position: relative; }
.plan.on .plan-radio { border-color: var(--orange); }
.plan.on .plan-radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--orange); }
.plan-t { flex: 1; min-width: 0; }
.plan-t b { display: block; font-size: 16px; }
.plan-t small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.plan-t em { font-style: normal; color: var(--orange-2); font-weight: 800; }
.plan-p { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.plan-p b { font-size: 17px; font-weight: 800; white-space: nowrap; }
.plan-p s { color: var(--muted); font-size: 12px; font-weight: 600; }
.plan-off { font-style: normal; font-size: 11px; font-weight: 800; color: #1a9c4a; background: rgba(26,156,74,.12); padding: 2px 6px; border-radius: 6px; }
.plan-off.ref { color: #6a4cff; background: rgba(106,76,255,.12); }
.plan-gift { margin-top: 10px; background: var(--orange-soft); color: var(--text); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.pay-btn { margin-top: 12px; }
/* Компактная плашка пробного периода в профиле */
.trial-banner.compact { margin: 0 0 14px; padding: 10px 12px; }
.trial-banner.compact .tb-ico { font-size: 20px; }
.trial-banner.compact .tb-timer { font-size: 17px !important; margin: 0; }
.trial-banner.compact .tb-t small { font-size: 11.5px; }
/* Сравнение Free / PRO */
.pro-sub { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.88); max-width: 62%; margin-bottom: 4px; }
.cmp { padding: 6px 14px; }
.cmp-row { display: grid; grid-template-columns: 1fr 68px 78px; gap: 6px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row span:nth-child(2), .cmp-row span:nth-child(3) { text-align: center; font-size: 12.5px; }
.cmp-row span:nth-child(2) { color: var(--muted); }
.cmp-row span:nth-child(3) { color: var(--orange-2); font-weight: 800; }
.cmp-head { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.cmp-head span:nth-child(3) { background: var(--orange-grad); color: #fff !important; border-radius: 8px; padding: 2px 0; }
.cmp .yes { color: #1a9c4a !important; font-size: 16px !important; font-weight: 800; }
.cmp .no { opacity: .6; }
/* Поле ввода еды */
.add-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 2px 8px; }
#char-count.warn { color: #e5484d; }
.q-free { cursor: pointer; }
.q-free u { color: var(--orange-2); text-decoration: none; font-weight: 800; }
.q-out { color: #e5484d; }
#repeat-btn .pro-mini { margin-left: 6px; }
/* Свернуть / развернуть дневник */
.meals-toggle { border: 0; background: var(--card); color: var(--orange-2); font: inherit; font-weight: 800; font-size: 13px; padding: 6px 10px 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 2px; box-shadow: var(--shadow); }
.meals-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.meal-list.scroll { max-height: 384px; overflow-y: auto; padding: 2px 2px 26px; margin: -2px -2px 0; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.meals-more { width: 100%; border: 1.5px dashed var(--line); background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 13.5px; padding: 11px; border-radius: 16px; }
/* Длинные названия: перенос вместо вылезания за край */
.sheet { overflow-x: hidden; }
.rp-list { grid-template-columns: minmax(0, 1fr); }
.rp-item { min-width: 0; align-items: flex-start; }
.rp-ico, .rp-kcal { margin-top: 2px; }
.rp-kcal { flex: none; min-width: 44px; }
.rp-t b { white-space: normal; overflow: hidden; text-overflow: clip; line-height: 1.3; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.rp-t small { display: block; line-height: 1.35; }
.mr-items { white-space: normal; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.rp-m { white-space: nowrap; }
/* Главная карточка калорий и карточки цели — оранжевый градиент как у «Пробный PRO» */
.cal-card, .goal-card, :root[data-theme="dark"] .goal-card, :root[data-theme="dark"] .cal-card { background: var(--orange-grad); color: #fff; box-shadow: 0 10px 24px rgba(255,106,0,.22); }
.cal-card .lbl, .cal-left .sub, .goal-card .lbl, :root[data-theme="dark"] .goal-card .lbl { color: rgba(255,255,255,.85); }
.cal-left .big { color: #fff; }
.cal-left .remain, .cal-left .remain.over { color: #fff; opacity: .95; }
.cal-left .remain.over { background: rgba(143,29,12,.28); display: inline-block; padding: 2px 8px; border-radius: 8px; }
.ring-bg { stroke: rgba(255,255,255,.28); }
.cal-card .ring-pct { background: #fff; color: var(--orange-2); }
.cal-card .mascot, .cal-card .m-wrap, .goal-card .mascot, .goal-card .m-wrap { filter: drop-shadow(0 10px 14px rgba(120,40,0,.35)); }
.gc-title { color: #fff; }
.gc-inner { background: rgba(255,255,255,.92); color: var(--text); }
:root[data-theme="dark"] .gc-inner { background: rgba(30,28,26,.88); }
.gc-inner .bar i, .goal-card .bar i { background: var(--orange-grad); }
/* Кольцо калорий на оранжевой карточке */
.cal-card .ring-wrap { width: 108px; height: 108px; margin-left: auto; margin-right: 62px; }
.cal-card .ring { width: 108px; height: 108px; }
.cal-card .ring circle { stroke-width: 10; }
.cal-card .ring-bg { stroke: rgba(255,255,255,.25); }
.cal-card .ring-fg { stroke: #fff; filter: drop-shadow(0 2px 4px rgba(150,50,0,.25)); }
.ring-over { fill: none; stroke: #ffd36b; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; opacity: 0; transition: stroke-dashoffset .8s ease, opacity .3s; filter: drop-shadow(0 2px 4px rgba(150,50,0,.35)); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.ring-center b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.ring-center span { font-size: 11px; font-weight: 700; opacity: .85; margin-top: 3px; }
.cal-card .ring-pct { position: static; background: none; box-shadow: none; padding: 0; color: #fff; font-size: 22px; }
.cal-card .mascot, .cal-card .m-wrap { width: 78px; right: 0; }
.cal-left .remain.over { background: rgba(255,255,255,.2); }
@media (max-width: 370px) { .cal-card .ring-wrap { margin-right: 48px; width: 96px; height: 96px; } .cal-card .ring { width: 96px; height: 96px; } .ring-center b { font-size: 19px; } }
/* Кольцо крупнее */
.cal-card .ring-wrap { width: 124px; height: 124px; margin-right: 66px; }
.cal-card .ring { width: 124px; height: 124px; }
.cal-card .ring circle { stroke-width: 11; }
.ring-center b { font-size: 26px; }
.ring-center span { font-size: 11.5px; }
.cal-card .mascot, .cal-card .m-wrap { width: 84px; }
.cal-card { min-height: 164px; }
@media (max-width: 370px) { .cal-card .ring-wrap { width: 108px; height: 108px; margin-right: 52px; } .cal-card .ring { width: 108px; height: 108px; } .ring-center b { font-size: 22px; } .cal-card .mascot, .cal-card .m-wrap { width: 74px; } }
.cal-left .remain { white-space: nowrap; } .cal-left { flex: none; }
/* ===== Вход на сайте и установка PWA ===== */
.weblogin { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; }
.wl-box { text-align: center; background: var(--card); border-radius: 28px; padding: 28px 22px 22px; box-shadow: var(--shadow); }
.wl-box .m-wrap, .wl-mascot { width: 150px; margin: -8px auto 6px; display: block; }
.wl-logo { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 0; background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-sub { color: var(--muted); font-weight: 600; font-size: 15px; line-height: 1.45; margin: 6px 0 18px; }
.wl-btn { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; padding: 16px; width: 100%; }
.wl-btn svg { width: 22px; height: 22px; fill: #fff; stroke: none; }
.wl-status { margin-top: 12px; background: var(--orange-soft); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; font-weight: 700; color: var(--orange-2); }
.wl-note { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.45; margin: 14px 0 0; }
.install-card { position: relative; background: var(--card); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.weblogin .install-card { margin-bottom: 0; }
.ic-row { display: flex; align-items: center; gap: 12px; padding-right: 22px; }
.ic-row img { width: 48px; height: 48px; border-radius: 12px; flex: none; box-shadow: 0 4px 10px rgba(255,106,0,.2); }
.ic-row b { display: block; font-size: 15px; }
.ic-row span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.install-card .btn { margin-top: 12px; width: 100%; }
.ic-steps { margin: 12px 0 0; padding-left: 22px; font-size: 13.5px; font-weight: 600; line-height: 1.7; }
.ic-ico { display: inline-block; background: var(--orange-soft); color: var(--orange-2); border-radius: 6px; padding: 0 6px; font-weight: 800; }
.ic-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--track); color: var(--muted); font-size: 13px; font-weight: 800; }
.wl-status a { display: inline-block; margin-top: 6px; color: var(--orange-2); font-weight: 800; }
/* Время приёма */
.time-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--orange-soft); border-radius: 14px; padding: 8px 10px 8px 14px; margin: 10px 0; font-weight: 700; font-size: 14px; }
.time-row input[type=time] { border: 0; background: var(--card); color: var(--text); font: inherit; font-weight: 800; font-size: 16px; padding: 8px 10px; border-radius: 10px; min-width: 96px; text-align: center; box-shadow: var(--shadow); }
/* Шторки: прокрутка не уходит на фон */
.sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-wrap { overscroll-behavior: contain; touch-action: none; }
.sheet-wrap .sheet { touch-action: pan-y; }
.switch.on { background: var(--orange); } .switch.on::after { transform: translateX(20px); } #push-banner .btn { margin-top: 12px; }

/* ===== Лендинг edapremium.com ===== */
.landing { max-width: 1080px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px calc(90px + env(safe-area-inset-bottom)); display: block; min-height: 100vh; }
.ld-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 14px; position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--bg) 70%, transparent); }
.ld-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.ld-logo img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 12px rgba(255,106,0,.18); }
.ld-head-actions { display: flex; gap: 8px; }
.ld-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 14px; padding: 10px 14px; font: inherit; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; }
.ld-btn svg { width: 18px; height: 18px; }
.ld-tg { background: #2aa1e0; color: #fff; } .ld-tg svg { fill: #fff; }
.ld-login { background: var(--card); color: var(--text); box-shadow: var(--shadow); } .ld-login svg { fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 420px) { .ld-tg span { display: none; } .ld-btn { padding: 10px 12px; } }
.ld-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; padding: 18px 0 30px; }
@media (max-width: 760px) { .ld-hero { grid-template-columns: 1fr; } }
.ld-badge { display: inline-block; background: var(--orange-soft); color: var(--orange-2); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.ld-hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -.035em; margin: 14px 0 12px; }
.ld-hero h1 em { font-style: normal; background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-hero p { color: var(--muted); font-size: 17px; line-height: 1.5; font-weight: 600; margin: 0 0 18px; max-width: 520px; }
.ld-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ld-cta .btn { width: auto; margin: 0; padding: 15px 22px; font-size: 16px; text-decoration: none; display: inline-flex; align-items: center; }
.ld-note { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 12px; }
.ld-hero-art { position: relative; min-height: 330px; border-radius: 32px; background: radial-gradient(120% 120% at 70% 20%, #ffb35e 0%, #ff7a1a 55%, #ff5c00 100%); overflow: hidden; box-shadow: 0 20px 50px rgba(255,106,0,.25); }
.ld-mascot { position: absolute; right: -4px; bottom: -10px; width: 58%; max-width: 250px; filter: drop-shadow(0 16px 20px rgba(120,40,0,.35)); }
.ld-card { position: absolute; background: #fff; color: #1b1b1f; border-radius: 18px; padding: 12px 14px; box-shadow: 0 12px 30px rgba(120,40,0,.25); }
.ld-card small { display: block; color: #8e8a85; font-weight: 700; font-size: 11px; }
.ld-card-cal { left: 18px; top: 22px; width: 170px; }
.ld-card-cal b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; } .ld-card-cal span { color: #8e8a85; font-size: 12px; font-weight: 700; margin-left: 4px; }
.ld-bar { height: 7px; border-radius: 9px; background: #f1ede7; margin-top: 8px; overflow: hidden; } .ld-bar i { display: block; width: 62%; height: 100%; background: var(--orange-grad); }
.ld-card-meal { left: 18px; top: 150px; display: flex; align-items: center; gap: 10px; width: 200px; }
.ld-ico { width: 38px; height: 38px; border-radius: 11px; background: #fff1e4; display: grid; place-items: center; font-size: 20px; }
.ld-card-meal div { flex: 1; } .ld-card-meal b { font-size: 14px; } .ld-kc { font-size: 16px !important; }
.ld-sec { padding: 18px 0; }
.ld-sec h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 14px; }
.ld-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .ld-grid { grid-template-columns: repeat(2, 1fr); } }
.ld-f { background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.ld-f span { font-size: 28px; } .ld-f b { display: block; font-size: 16px; margin: 8px 0 4px; } .ld-f p { margin: 0; color: var(--muted); font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.ld-prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .ld-prices { grid-template-columns: repeat(2, 1fr); } }
.ld-p { position: relative; background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); border: 2px solid transparent; }
.ld-p.hot { border-color: var(--orange); }
.ld-p i { position: absolute; top: -10px; left: 14px; background: var(--orange-grad); color: #fff; font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 8px; }
.ld-p b { font-size: 15px; } .ld-sum { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0; } .ld-p p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.45; }
.ld-small { color: var(--muted); font-size: 13px; font-weight: 600; }
.landing .install-card { margin: 10px 0 0; }
.ld-foot { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.ld-foot-cols { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ld-foot-h { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; margin-bottom: 8px; }
.ld-foot a { display: block; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 3px 0; }
.ld-copy { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 16px; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.ld-req { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.ld-cookie { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; z-index: 60; background: var(--card); border-radius: 18px; padding: 12px 12px 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.15); display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.ld-cookie a { color: var(--orange-2); } .ld-cookie .btn { width: auto; margin: 0; padding: 10px 16px; flex: none; }
/* окно входа */
.lm-wrap { position: fixed; inset: 0; z-index: 200; background: rgba(15,10,5,.55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s; }
.lm { position: relative; width: 100%; max-width: 420px; background: var(--bg); border-radius: 28px; padding: 26px 22px 18px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); max-height: 92vh; overflow-y: auto; }
.lm-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--card); color: var(--muted); font-weight: 800; box-shadow: var(--shadow); }
.lm-logo { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 24px rgba(255,106,0,.25); }
.lm h2 { margin: 12px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.lm-sub { color: var(--muted); font-weight: 600; font-size: 14px; margin: 0 0 16px; }
.lm-cap { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; margin: 6px 0 10px; }
#lm-step2 .lm-cap { text-transform: none; letter-spacing: 0; font-size: 14px; }
.lm-tg { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); font: inherit; color: var(--text); cursor: pointer; }
.lm-tg-ico { width: 44px; height: 44px; border-radius: 13px; background: #2aa1e0; display: grid; place-items: center; flex: none; } .lm-tg-ico svg { width: 24px; height: 24px; fill: #fff; }
.lm-tg-t { flex: 1; } .lm-tg-t b { display: block; font-size: 16px; } .lm-tg-t small { color: var(--muted); font-weight: 600; }
.lm-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.lm-or::before, .lm-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.lm input { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px; font: inherit; font-size: 16px; font-weight: 600; color: var(--text); }
#lm-code { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: 8px; }
.lm .btn { margin-top: 10px; }
.lm-hint { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 10px; }
.lm-link { border: 0; background: none; color: var(--orange-2); font: inherit; font-weight: 800; font-size: 13.5px; margin-top: 10px; cursor: pointer; }
.lm-legal { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.5; }
.lm-legal a { color: var(--text); }

.pay-paused { display: flex; gap: 12px; align-items: flex-start; background: var(--orange-soft); border: 1.5px solid var(--orange); border-radius: 16px; padding: 14px; margin: 16px 0 4px; }
.pay-paused .pp-ico { font-size: 22px; line-height: 1; }
.pay-paused b { display: block; font-size: 15px; margin-bottom: 4px; }
.pay-paused p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.plans.paused { opacity: .45; pointer-events: none; }
.adm-switch { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 10px; }
.adm-switch input { width: 20px; height: 20px; accent-color: var(--orange); }
#adm-pay-msg { width: 100%; box-sizing: border-box; margin-bottom: 10px; }

/* ---- лендинг: «Зачем это тебе» ---- */
.ld-lead { color: var(--muted); font-size: 16px; line-height: 1.55; font-weight: 600; max-width: 640px; margin: -4px 0 18px; }
.ld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; margin: 0 0 18px; }
.ld-row.rev .ld-row-text { order: 2; }
@media (max-width: 760px) { .ld-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; } .ld-row.rev .ld-row-text { order: 0; } }
.ld-num { display: inline-block; font-weight: 800; font-size: 13px; color: var(--orange-2); background: var(--orange-soft); border-radius: 10px; padding: 4px 9px; }
.ld-row h3 { font-size: 24px; letter-spacing: -.02em; margin: 10px 0 8px; line-height: 1.15; }
.ld-row p { color: var(--muted); font-size: 15.5px; line-height: 1.55; font-weight: 600; margin: 0; }
.ld-vis { position: relative; min-height: 220px; border-radius: 28px; padding: 18px; overflow: hidden; background: radial-gradient(120% 120% at 70% 10%, #ffb35e 0%, #ff7a1a 55%, #ff5c00 100%); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.ld-vis .lv-mascot { position: absolute; right: -8px; bottom: -14px; width: 120px; filter: drop-shadow(0 12px 16px rgba(120,40,0,.35)); }
.lv-photo { position: relative; width: 110px; height: 110px; border-radius: 22px; background: #fff3e6; display: grid; place-items: center; font-size: 60px; box-shadow: 0 12px 28px rgba(120,40,0,.25); overflow: hidden; }
.lv-scan { position: absolute; left: 0; right: 0; height: 3px; background: #ff6a00; box-shadow: 0 0 12px #ff6a00; animation: lvscan 2.2s ease-in-out infinite; }
@keyframes lvscan { 0%,100% { top: 12%; } 50% { top: 85%; } }
.ld-vis-photo { flex-direction: row; align-items: center; }
.lv-res { flex: 1; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 12px 28px rgba(120,40,0,.25); color: #1b1b1f; }
.lv-item { display: grid; grid-template-columns: 1fr auto; row-gap: 1px; padding: 6px 0; border-bottom: 1px solid #f1ede7; }
.lv-item b { font-size: 13.5px; } .lv-item small { color: #8e8a85; font-size: 11.5px; font-weight: 700; grid-column: 1; } .lv-item em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-weight: 800; }
.lv-sum { display: flex; gap: 8px; align-items: center; padding-top: 8px; font-size: 11.5px; font-weight: 800; color: #8e8a85; } .lv-sum b { margin-left: auto; color: #ff6a00; font-size: 15px; }
.lv-bubble { align-self: flex-end; max-width: 85%; background: #fff; color: #1b1b1f; border-radius: 18px 18px 4px 18px; padding: 12px 14px; font-weight: 700; font-size: 14px; line-height: 1.4; box-shadow: 0 12px 28px rgba(120,40,0,.25); }
.lv-chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 75%; } .lv-chips span { background: rgba(255,255,255,.92); color: #1b1b1f; border-radius: 12px; padding: 7px 10px; font-size: 12.5px; font-weight: 800; }
.ld-vis-stats { flex-direction: row; align-items: center; flex-wrap: wrap; }
.lv-ring { position: relative; width: 120px; height: 120px; } .lv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lv-ring circle { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 11; } .lv-ring circle.on { stroke: #fff; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 120; }
.lv-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; } .lv-ring b { font-size: 22px; } .lv-ring small { font-size: 11px; font-weight: 700; opacity: .85; }
.lv-bars { flex: 1; min-width: 140px; height: 110px; display: flex; align-items: flex-end; gap: 7px; background: rgba(255,255,255,.16); border-radius: 16px; padding: 12px; }
.lv-bars i { flex: 1; background: rgba(255,255,255,.55); border-radius: 6px; } .lv-bars i.today { background: #fff; }
.lv-goal { width: 100%; background: #fff; color: #1b1b1f; border-radius: 14px; padding: 10px 12px; font-weight: 800; font-size: 14px; }
.lv-fire { display: flex; align-items: baseline; gap: 8px; color: #fff; font-size: 44px; } .lv-fire b { font-size: 48px; letter-spacing: -.03em; } .lv-fire small { font-size: 15px; font-weight: 800; opacity: .9; }
.lv-badges { display: flex; gap: 8px; } .lv-badges span { width: 48px; height: 48px; border-radius: 15px; background: #fff; display: grid; place-items: center; font-size: 24px; box-shadow: 0 10px 20px rgba(120,40,0,.2); }
.ld-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .ld-steps { grid-template-columns: 1fr; } }
.ld-step { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); font-weight: 700; font-size: 15px; }
.ld-step b { flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--orange-grad); color: #fff; display: grid; place-items: center; }
/* ---- тарифы-аккордеон ---- */
.ld-acc { display: flex; flex-direction: column; gap: 10px; }
.ld-t { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); border: 2px solid transparent; overflow: hidden; }
.ld-t.hot { border-color: var(--orange); }
.ld-t summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; cursor: pointer; font-weight: 800; font-size: 16px; }
.ld-t summary::-webkit-details-marker { display: none; }
.ld-t summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); margin-left: 6px; transition: transform .2s; flex: none; }
.ld-t[open] summary::after { transform: rotate(-135deg); }
.ld-t .t-n { flex: 1; display: flex; align-items: center; gap: 8px; } .ld-t .t-n i { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; background: var(--orange-grad); color: #fff; border-radius: 8px; padding: 3px 7px; }
.ld-t .t-p { font-size: 20px; letter-spacing: -.02em; }
.ld-t ul { margin: 0; padding: 0 18px 16px 38px; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.7; }

.ld-lang { background: var(--card); color: var(--text); box-shadow: var(--shadow); min-width: 44px; justify-content: center; }

.ld-relogin { color: var(--orange-2); font-weight: 800; }

/* Пробный период — «кричащая» красная плашка */
.trial-banner:not(.expired) { background: linear-gradient(100deg, #ff4d4d, #e8252e); color: #fff; box-shadow: 0 10px 24px rgba(232,37,46,.28); }
:root[data-theme="dark"] .trial-banner:not(.expired) { background: linear-gradient(100deg, #d92f35, #b3161f); }
.trial-banner:not(.expired) .tb-t small { color: rgba(255,255,255,.85); }
.trial-banner:not(.expired) .tb-timer { color: #fff !important; }
.trial-banner:not(.expired) .tb-btn { background: #fff; color: #e8252e; }

.pro-tag.free { background: var(--line, #ece7e0); color: var(--muted); }

.rf-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.rf-top b { font-size: 20px; }
.rf-bar { height: 12px; border-radius: 10px; background: var(--line, #efe9e1); overflow: hidden; margin-top: 10px; }
.rf-bar i { display: block; height: 100%; width: 0; background: var(--orange-grad); border-radius: 10px; transition: width .4s; }
.adm-item { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
#bc-ch { margin: 8px 0 4px; }

/* ---- PRO-заглушки ---- */
.pro-lock-wrap { position: relative; }
.pro-lock-wrap.locked > :not(.pro-lock) { filter: blur(5px); pointer-events: none; user-select: none; }
.pro-lock { position: absolute; inset: -6px; z-index: 5; display: flex; align-items: flex-start; justify-content: center; padding-top: 48px;
  background: rgba(15,12,10,.55); border-radius: 24px; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.pl-box { width: min(320px, 88%); background: var(--card); border-radius: 24px; padding: 22px 20px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.pl-ico { width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--orange-grad); }
.pl-box h3 { margin: 8px 0 10px; font-size: 19px; }
.pl-box ul { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.9; }
.pl-box .btn { margin: 0; }
.pl-note { margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.lock-mini { position: absolute; top: 7px; right: 9px; width: 20px; height: 20px; border-radius: 50%; background: #1b1b1f; color: #fff; font-size: 11px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.add-cam { position: relative; }
.wt-empty { height: 110px; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; }
#wt-card { margin-bottom: 14px; }
