:root {
  --bg: #FDF6F3;
  --bg-2: #FBEFF1;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #FFFFFF;
  --ink: #4B3B44;
  --ink-2: #6E5C66;
  --muted: #A0909A;
  --line: #F1E2E6;
  --rose: #E8A3B5;
  --rose-deep: #C76E88;
  --rose-soft: #FCE7ED;
  --sage: #9FC5A8;
  --sage-deep: #5F9470;
  --sage-soft: #E6F2E8;
  --lav: #BDB4E6;
  --lav-deep: #7D72B8;
  --lav-soft: #EEEBFA;
  --peach: #F3C29F;
  --peach-deep: #C98A5E;
  --peach-soft: #FDEEE3;
  --sky: #A9D0E6;
  --sky-deep: #5B93B3;
  --sky-soft: #E5F1F8;
  --shadow: 0 6px 24px rgba(199, 110, 136, 0.10), 0 1px 3px rgba(75, 59, 68, 0.05);
  --radius: 22px;
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
  --font: "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Lora", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  background-color: var(--bg);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }

/* --- фон: ветки сакуры и редкие лепестки --- */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-branch { position: absolute; width: min(78vw, 360px); opacity: .55; }
.bg-branch.tr { top: -8px; right: -18px; }
.bg-branch.bl { bottom: 70px; left: -24px; width: min(62vw, 280px); transform: rotate(180deg); opacity: .38; }
.petal {
  position: absolute; top: -20px; width: 10px; height: 8px; border-radius: 10px 1px 10px 1px;
  background: #F7C6D3; opacity: 0; animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10% { opacity: .55; }
  90% { opacity: .4; }
  100% { transform: translate(-90px, 105vh) rotate(320deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .petal { display: none; } }

/* --- каркас --- */
#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto;
  padding: 18px 16px calc(96px + var(--safe-bottom)); min-height: 100vh; }
/* появление экрана: блоки поднимаются по очереди */
.screen > * { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.screen > *:nth-child(2) { animation-delay: .05s; }
.screen > *:nth-child(3) { animation-delay: .10s; }
.screen > *:nth-child(4) { animation-delay: .15s; }
.screen > *:nth-child(5) { animation-delay: .20s; }
.screen > *:nth-child(6) { animation-delay: .25s; }
.screen > *:nth-child(7) { animation-delay: .30s; }
.screen > *:nth-child(n+8) { animation-delay: .34s; }
.screen .days > * { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.screen .days > *:nth-child(2) { animation-delay: .12s; } .screen .days > *:nth-child(3) { animation-delay: .17s; }
.screen .days > *:nth-child(4) { animation-delay: .22s; } .screen .days > *:nth-child(5) { animation-delay: .27s; }
.screen .days > *:nth-child(6) { animation-delay: .32s; } .screen .days > *:nth-child(7) { animation-delay: .37s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* кольцо калорий и полоски «рисуются» */
.screen .ring-p { animation: draw 1.1s cubic-bezier(.3, .7, .2, 1) .15s both; }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: var(--off); } }
.screen .bar i, .screen .progress-line i { animation: grow 1s cubic-bezier(.3, .7, .2, 1) .2s both; }
@keyframes grow { from { width: 0; } }
.screen .chart .col i { animation: bar-up .8s cubic-bezier(.3, .7, .2, 1) both; transform-origin: bottom; }
.screen .chart .col:nth-child(3) i { animation-delay: .05s; } .screen .chart .col:nth-child(4) i { animation-delay: .1s; }
.screen .chart .col:nth-child(5) i { animation-delay: .15s; } .screen .chart .col:nth-child(6) i { animation-delay: .2s; }
.screen .chart .col:nth-child(7) i { animation-delay: .25s; } .screen .chart .col:nth-child(8) i { animation-delay: .3s; }
@keyframes bar-up { from { transform: scaleY(0); } }

/* ветки чуть покачиваются, цветок на экране рецепта «дышит» */
.bg-branch.tr { transform-origin: 100% 0; animation: sway 9s ease-in-out infinite alternate; }
.bg-branch.bl { transform-origin: 0 100%; animation: sway-bl 11s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.4deg); } }
@keyframes sway-bl { from { transform: rotate(179deg); } to { transform: rotate(181.5deg); } }
.recipe-hero .flower { display: inline-block; animation: bloom 3.2s ease-in-out infinite; }
@keyframes bloom { 50% { transform: scale(1.12) rotate(12deg); } }

/* отклик на нажатия */
.day-card, .quick button, button.card, .list-item, .chip, .wd, .glass { transition: transform .15s ease, box-shadow .2s, background .2s; }
.day-card:active, .quick button:active, button.card:active { transform: scale(.97); }
.chip:active, .wd:active, .glass:active { transform: scale(.92); }
.nav button.on svg { animation: hop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop { 40% { transform: translateY(-4px) scale(1.12); } }
.check.pop .box { animation: pop .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop { 40% { transform: scale(1.35); } }
.glass.pour::after { animation: pour .6s ease-out both; }
@keyframes pour { from { height: 0; } to { height: 78%; } }
.btn.primary { background-size: 200% 100%; background-image: linear-gradient(110deg, #EDA9BB 0%, #D9849D 45%, #F0B5C4 55%, #D9849D 100%); animation: shine 6s ease-in-out infinite; }
@keyframes shine { 0%, 70% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.burst { position: fixed; z-index: 50; pointer-events: none; border-radius: 10px 1px 10px 1px; }

/* рецепт-шутка */
.card.joke-note { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, #FDEEE3, #FCE7ED);
  border: 1.5px dashed var(--peach); color: var(--peach-deep); }
.joke-note .art { font-size: 26px; line-height: 1; }
.joke-note p { margin: 4px 0 0; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 6px 2px 18px; }
.head h1 { font-family: var(--font-title); font-weight: 500; font-size: 27px; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.head .back { display: inline-flex; align-items: center; gap: 4px; color: var(--rose-deep); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--rose-soft);
  color: var(--rose-deep); font-weight: 800; font-size: 18px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px #fff, var(--shadow); }

.card { background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, .7); }
.card.tight { padding: 14px 16px; }
.card h2 { font-family: var(--font-title); font-weight: 500; font-size: 19px; margin: 0 0 12px; }
.card h3 { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 12px; }
.section-title { font-family: var(--font-title); font-size: 18px; font-weight: 500; margin: 22px 4px 10px; }

/* --- кнопки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 16px;
  padding: 13px 18px; font-weight: 800; font-size: 15px; transition: transform .12s, filter .12s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, #EDA9BB, #D9849D); color: #fff; box-shadow: 0 6px 16px rgba(217, 132, 157, .32); }
.btn.soft { background: var(--rose-soft); color: var(--rose-deep); }
.btn.ghost { background: rgba(255, 255, 255, .7); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:active { background: var(--rose-soft); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .75);
  box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.chip.on { background: var(--rose-soft); color: var(--rose-deep); box-shadow: inset 0 0 0 1.5px var(--rose); }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.tag.rose { background: var(--rose-soft); color: var(--rose-deep); }
.tag.sage { background: var(--sage-soft); color: var(--sage-deep); }
.tag.lav { background: var(--lav-soft); color: var(--lav-deep); }
.tag.peach { background: var(--peach-soft); color: var(--peach-deep); }
.tag.sky { background: var(--sky-soft); color: var(--sky-deep); }

/* --- калории: кольцо и полоски --- */
.ring-wrap { display: flex; align-items: center; gap: 18px; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .val b { font-family: var(--font-title); font-size: 26px; font-weight: 500; line-height: 1; }
.ring .val span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.macros { flex: 1; display: grid; gap: 10px; min-width: 0; }
.macro .top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.macro .top span:last-child { color: var(--muted); font-weight: 600; }
.bar { height: 8px; border-radius: 99px; background: rgba(160, 144, 154, .14); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; transition: width .5s ease; }

/* --- списки блюд и дни --- */
.days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.day-card { text-align: left; background: var(--card); border-radius: 20px; padding: 14px; box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .7); display: flex; flex-direction: column; gap: 6px; min-height: 140px; }
.day-card:active { transform: scale(.98); }
.day-card .name { font-family: var(--font-title); font-size: 17px; }
.day-card .kcal { font-weight: 800; color: var(--rose-deep); font-size: 13px; }
.day-card ul { margin: 2px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-2); }
.day-card li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 0; }
.day-card.today { box-shadow: inset 0 0 0 1.5px var(--rose), var(--shadow); }
.days.single { grid-template-columns: 1fr; }

.meal { display: block; width: 100%; text-align: left; }
.meal .title { font-family: var(--font-title); font-size: 18px; line-height: 1.3; margin: 8px 0 6px; }
.meal .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.meal-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }

.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.list-item .ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; flex: none; }
.list-item .name { font-weight: 700; }
.list-item .note { color: var(--muted); font-size: 13px; }
button.list-item { width: 100%; text-align: left; }

/* --- покупки --- */
.check { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.check:last-child { border-bottom: none; }
.box { width: 24px; height: 24px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px var(--rose);
  display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.check.done .box { background: var(--sage); box-shadow: none; }
.check .box svg { opacity: 0; transition: opacity .2s; }
.check.done .box svg { opacity: 1; }
.check .label { flex: 1; min-width: 0; transition: color .2s; }
.check.done .label { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--rose); }
.check .amount { color: var(--muted); font-size: 13px; white-space: nowrap; }
.progress-line { height: 10px; border-radius: 99px; background: var(--rose-soft); overflow: hidden; }
.progress-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), #B9D9BF); border-radius: 99px; transition: width .5s; }

/* --- рецепт --- */
.recipe-hero { text-align: center; padding: 22px 18px; }
.recipe-hero .flower { font-size: 34px; }
.recipe-hero h1 { font-family: var(--font-title); font-weight: 500; font-size: 25px; margin: 6px 0 12px; line-height: 1.25; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; padding: 9px 0; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--rose-soft);
  color: var(--rose-deep); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.tip { background: linear-gradient(135deg, var(--sage-soft), #F3F8EE); border-radius: 18px; padding: 14px 16px; color: #4F6F58; }

/* --- формы --- */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px 4px; }
.input { width: 100%; border: none; outline: none; background: #fff; border-radius: 14px; padding: 12px 14px;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s; font-size: 16px; }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--rose); }
textarea.input { resize: none; min-height: 80px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg { display: flex; background: var(--rose-soft); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.seg button { flex: 1; padding: 9px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--rose-deep); }
.seg button.on { background: #fff; box-shadow: var(--shadow); }
.total-box { background: var(--peach-soft); border-radius: 16px; padding: 12px 14px; margin: 4px 0 14px; color: var(--peach-deep); font-weight: 700; }
.switch { width: 50px; height: 30px; border-radius: 99px; background: #E9DDE1; position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: transform .2s; }
.switch.on { background: var(--sage); }
.switch.on::after { transform: translateX(20px); }

.suggest { margin-top: -6px; margin-bottom: 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.suggest button { display: flex; justify-content: space-between; width: 100%; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.suggest button:last-child { border-bottom: none; }

/* --- дневник --- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 7px; border-radius: 16px; font-size: 12px; color: var(--muted); }
.wd b { font-size: 16px; color: var(--ink); font-weight: 700; }
.wd .dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.wd .dot.has { background: var(--rose); }
.wd.on { background: var(--card-solid); box-shadow: var(--shadow); color: var(--rose-deep); }
.wd.on b { color: var(--rose-deep); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; position: relative; padding-top: 8px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .col i { width: 100%; max-width: 30px; border-radius: 10px 10px 6px 6px; background: linear-gradient(180deg, #F2B9C8, #F8D7E0); transition: height .5s; min-height: 3px; }
.chart .col.on i { background: linear-gradient(180deg, #D9849D, #EDA9BB); }
.chart .col span { font-size: 11px; color: var(--muted); }
.chart .norm { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--sage); }
.chart .norm span { position: absolute; right: 0; top: -18px; font-size: 11px; color: var(--sage-deep); font-weight: 700; }

/* --- ЗОЖ --- */
.acc { padding: 0; overflow: hidden; }
.acc > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; text-align: left; }
.acc .ico { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-size: 21px; flex: none; }
.acc .t { font-weight: 800; }
.acc .d { font-size: 13px; color: var(--muted); }
.acc .chev { transition: transform .25s; color: var(--muted); }
.acc.open .chev { transform: rotate(90deg); }
.acc .body { display: none; padding: 0 18px 16px 72px; }
.acc.open .body { display: block; animation: appear .25s; }
.acc .body ul { margin: 0; padding-left: 18px; }
.acc .body li { margin: 6px 0; color: var(--ink-2); }
.glasses { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.glass { width: 32px; height: 40px; border-radius: 6px 6px 11px 11px; box-shadow: inset 0 0 0 2px var(--sky); position: relative; overflow: hidden; }
.glass::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, #C9E3F1, var(--sky)); transition: height .3s; }
.glass.full::after { height: 78%; }

/* --- чат --- */
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 80px; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 20px; white-space: pre-wrap; word-wrap: break-word; box-shadow: var(--shadow); }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #F3B7C6, #E8A0B4); color: #fff; border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: var(--card-solid); border-bottom-left-radius: 6px; }
.bubble .chips { margin-top: 10px; flex-wrap: wrap; }
.chat-input { position: fixed; left: 0; right: 0; bottom: calc(72px + var(--safe-bottom)); z-index: 5; padding: 10px 16px; }
.chat-input .inner { max-width: 528px; margin: 0 auto; display: flex; gap: 8px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); border-radius: 20px; padding: 6px; box-shadow: var(--shadow); }
.chat-input input { flex: 1; border: none; outline: none; background: transparent; padding: 8px 10px; font-size: 16px; }

/* --- нижнее меню --- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 8px 10px calc(8px + var(--safe-bottom));
  background: rgba(255, 252, 251, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(241, 226, 230, .9); }
.nav .inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0; font-size: 11px; font-weight: 700; color: var(--muted); border-radius: 14px; }
.nav button svg { width: 24px; height: 24px; transition: transform .2s; }
.nav button.on { color: var(--rose-deep); }
.nav button.on svg { transform: translateY(-1px); }

/* --- шторка, загрузка, уведомления --- */
.sheet-bg { position: fixed; inset: 0; background: rgba(75, 59, 68, .28); z-index: 20; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 88vh; overflow-y: auto;
  background: #FFFBFA; border-radius: 28px 28px 0 0; padding: 10px 18px calc(20px + var(--safe-bottom));
  animation: up .28s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 -10px 40px rgba(75, 59, 68, .15); }
.sheet .inner { max-width: 528px; margin: 0 auto; }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grip { width: 42px; height: 5px; border-radius: 9px; background: #EBDDE1; margin: 0 auto 14px; }
.sheet h2 { font-family: var(--font-title); font-weight: 500; font-size: 22px; margin: 0 0 14px; }

.loading { position: fixed; inset: 0; z-index: 30; background: rgba(253, 246, 243, .88); backdrop-filter: blur(6px);
  display: grid; place-content: center; text-align: center; padding: 30px; animation: fade .2s; }
.loading .bloom { width: 74px; height: 74px; margin: 0 auto 18px; animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading .bloom svg { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.86); } }
.loading p { margin: 0; font-weight: 700; color: var(--ink-2); max-width: 280px; }
.loading .muted { font-weight: 600; margin-top: 6px; font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-bottom)); transform: translateX(-50%); z-index: 40;
  background: #4B3B44; color: #fff; padding: 11px 18px; border-radius: 16px; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: up2 .25s; max-width: calc(100vw - 40px); text-align: center; }
.toast.err { background: #B5546F; }
@keyframes up2 { from { opacity: 0; transform: translate(-50%, 10px); } }

.empty { text-align: center; padding: 26px 16px; }
.empty .art { font-size: 44px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 6px 0 16px; }
.skeleton { background: linear-gradient(90deg, #F6EAEE 25%, #FBF3F5 50%, #F6EAEE 75%); background-size: 200% 100%;
  animation: shimmer 1.4s infinite; border-radius: 10px; height: 14px; margin: 10px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick button { background: var(--card); border-radius: 20px; padding: 14px 8px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  border: 1px solid rgba(255,255,255,.7); line-height: 1.25; }
.quick .ico { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; font-size: 20px; }

@media (max-width: 360px) {
  .ring { width: 112px; height: 112px; }
  .ring svg { width: 112px; height: 112px; }
  .head h1 { font-size: 24px; }
}
