:root {
  --ink: #2f2940;
  --muted: #746c80;
  --paper: #fffaf4;
  --peach: #fff0e5;
  --coral: #ff6b5e;
  --coral-dark: #e8554b;
  --violet: #7454d9;
  --violet-soft: #eee8ff;
  --yellow: #ffc94a;
  --teal: #2bb7a9;
  --line: #eadfd7;
  --shadow: 0 12px 28px rgba(74, 47, 62, .13);
  font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #ffd9cc;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); -webkit-text-size-adjust: 100%; }
body { min-height: 100%; margin: 0; min-width: 320px; overscroll-behavior-y: none; background: radial-gradient(circle at 15% 5%, #ffe9af 0 8%, transparent 22%), linear-gradient(135deg, #ffc4b1, #d7c8ff); -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .64; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #4b9dff; outline-offset: 2px; }
.app-shell { width: min(100%, 460px); min-height: 100dvh; margin: 0 auto; background: var(--paper); box-shadow: 0 0 60px rgba(48, 20, 53, .25); overflow: hidden; }

.screen { min-height: 100dvh; padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
.dashboard { background: linear-gradient(180deg, #fffaf4 0 54%, #fff0e5 100%); }
.eyebrow { margin: 0 0 7px; color: var(--coral-dark); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 9vw, 2.8rem); line-height: .98; letter-spacing: -.07em; }
h2 { margin-bottom: 8px; font-size: 1.5rem; letter-spacing: -.04em; }
h3 { margin-bottom: 6px; font-size: 1.05rem; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .82rem; line-height: 1.42; }
.tiny { font-size: .73rem; }
.screen-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.screen-head > div { flex: 1; }
.back-button { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(73, 49, 61, .1); font-size: 1.35rem; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill, .tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 100px; font-weight: 800; }
.pill { padding: 7px 10px; background: var(--violet-soft); color: #563ab0; font-size: .79rem; }
.tag { padding: 5px 9px; font-size: .72rem; background: #fff; color: var(--muted); }
.tag.demo { background: #fff0c0; color: #906400; }

.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 1000; font-size: 1.1rem; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--coral); color: white; box-shadow: 0 4px 0 var(--coral-dark); transform: rotate(-5deg); }
.landing { padding: 24px 18px 40px; background: radial-gradient(circle at 87% 9%, #ffe68f 0 6%, transparent 19%), linear-gradient(180deg, #fff6e8, #ffe4db); }
.landing h1 { max-width: 360px; margin: 24px 0 14px; }
.landing-lead { max-width: 365px; margin-bottom: 22px; color: #5c5369; font-size: 1rem; line-height: 1.5; }
.pwa-install-card { display: grid; grid-template-columns: 38px 1fr; align-items: center; width: 100%; gap: 10px; margin: 0 0 18px; padding: 12px; border: 1px solid #e8dcff; border-radius: 18px; color: #443473; background: #f6f1ff; text-align: left; box-shadow: 0 5px 16px rgba(80, 58, 130, .08); }
button.pwa-install-card:active { transform: translateY(1px); }
.pwa-install-card > span:first-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: white; background: var(--violet); font-weight: 1000; }
.pwa-install-card b, .pwa-install-card small { display: block; }
.pwa-install-card b { font-size: .84rem; }
.pwa-install-card small { margin-top: 2px; color: #665d75; font-size: .71rem; line-height: 1.35; }
.pwa-install-card.installed { border-color: #bfe9df; color: #267b6f; background: #effcf8; }
.pwa-install-card.installed > span:first-child { background: var(--teal); }
.announcement-card { position: relative; min-height: 202px; display: flex; align-items: end; margin: 24px 0; padding: 18px; overflow: hidden; border-radius: 28px; color: white; background: linear-gradient(135deg, rgba(79, 55, 117, .75), rgba(255, 101, 92, .64)), url("assets/shtab-characters-v1.png") 100% 100% / 205% auto; box-shadow: var(--shadow); }
.announcement-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(25, 15, 38, .52)); }
.announcement-card > * { position: relative; z-index: 1; }
.announcement-copy { max-width: 260px; }
.announcement-copy h2 { margin-bottom: 4px; }
.play-button { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 54px; height: 54px; padding-left: 3px; border-radius: 50%; background: #fff; color: var(--coral); box-shadow: 0 6px 20px rgba(18, 9, 27, .3); font-size: 1.25rem; }
.video-note { font-size: .77rem; opacity: .86; }
.pricing-intro { margin: 32px 0 12px; }
.price-stack { display: grid; gap: 12px; }
.plan-card { position: relative; padding: 17px; border: 2px solid transparent; border-radius: 22px; background: #fff; box-shadow: 0 6px 18px rgba(74, 47, 62, .08); }
.plan-card.recommended { border-color: var(--violet); background: #f8f6ff; }
.plan-title { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.plan-price { margin: 8px 0 3px; font-size: 1.35rem; font-weight: 1000; letter-spacing: -.05em; }
.plan-card ul { display: grid; gap: 5px; margin: 12px 0 14px; padding: 0; list-style: none; color: #5c5369; font-size: .85rem; }
.plan-card li::before { content: "✓"; margin-right: 7px; color: var(--teal); font-weight: 1000; }
.price-btn, .primary-btn, .secondary-btn, .ghost-btn { min-height: 46px; padding: 11px 15px; border-radius: 14px; font-weight: 900; transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
.price-btn:hover, .primary-btn:hover, .secondary-btn:hover { transform: translateY(-1px); }
.price-btn, .primary-btn { width: 100%; color: white; background: var(--coral); box-shadow: 0 5px 0 var(--coral-dark); }
.price-btn:active, .primary-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--coral-dark); }
.secondary-btn { color: #4b397f; background: var(--violet-soft); }
.ghost-btn { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.footnote { margin-top: 16px; font-size: .75rem; line-height: 1.4; color: var(--muted); }

.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.profile-rank { display: flex; align-items: center; gap: 8px; min-width: 0; }
.profile-badge { display: grid; place-items: center; width: 45px; height: 45px; border: 3px solid white; border-radius: 16px; background: linear-gradient(135deg, var(--yellow), #ff9a48); box-shadow: 0 4px 0 #e68f31; font-size: 1.35rem; }
.profile-rank span { display: block; font-size: .76rem; color: var(--muted); }
.profile-rank strong { display: block; max-width: 150px; overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.rank-track { min-width: 62px; text-align: right; }
.rank-track strong { display: block; color: var(--violet); font-size: 1.05rem; }
.mini-progress { height: 7px; margin-top: 4px; overflow: hidden; border-radius: 20px; background: #e7e0fb; }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--violet); }

.boss-card { position: relative; overflow: hidden; margin: 5px 0 18px; padding: 18px; border-radius: 28px; color: white; background: linear-gradient(130deg, #4a346c, #7c53a4); box-shadow: var(--shadow); }
.boss-card::after { content: ""; position: absolute; width: 235px; height: 235px; right: -51px; bottom: -55px; opacity: .22; background: radial-gradient(circle, #fff 0 18%, transparent 19% 36%, #fff 37% 39%, transparent 40%); transform: rotate(20deg); }
.boss-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.boss-top h2 { margin: 2px 0 4px; color: white; }
.boss-status { color: #efe7ff; font-size: .8rem; }
.boss-art { position: relative; z-index: 1; width: 132px; height: 132px; margin: 10px auto 2px; border-radius: 25px; background-image: url("assets/laziness-evolution-v1.png"); background-size: 200% 200%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.18), 0 12px 22px rgba(19, 8, 43, .22); }
.boss-art.stage-0 { background-position: 0 0; }
.boss-art.stage-1 { background-position: 100% 0; }
.boss-art.stage-2 { background-position: 0 100%; }
.boss-art.stage-3 { background-position: 100% 100%; }
.boss-health { position: relative; z-index: 1; margin-top: 10px; }
.health-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .8rem; font-weight: 800; }
.health-bar { height: 15px; overflow: hidden; border: 2px solid rgba(255,255,255,.65); border-radius: 99px; background: rgba(25, 12, 50, .32); }
.health-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffdb64, #ff735f); transition: width .45s ease; }
.boss-caption { position: relative; z-index: 1; margin: 11px 0 0; color: #eee6ff; font-size: .78rem; line-height: 1.35; }
.activity-section { margin: 20px 0 26px; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.section-title-row h2 { margin: 0; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.activity-btn { min-height: 68px; padding: 11px; border: 2px solid #f0e5dd; border-radius: 18px; text-align: left; color: var(--ink); background: #fff; box-shadow: 0 4px 0 #eee2db; }
.activity-btn strong { display: block; font-size: .84rem; }
.activity-btn span { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; }
.activity-btn.done { border-color: #8bdecf; background: #effdf9; box-shadow: 0 4px 0 #bde9df; }
.activity-btn:disabled { cursor: not-allowed; opacity: .78; }
.combat-plan { margin-top: 15px; padding: 13px 14px; border-radius: 17px; background: #fff0e5; color: #6b5361; font-size: .8rem; line-height: 1.38; }
.combat-plan strong { color: var(--ink); }
.demo-actions { display: flex; gap: 8px; margin-top: 12px; }
.demo-actions .ghost-btn { flex: 1; min-height: 38px; padding: 8px; font-size: .78rem; }

.section-list { display: grid; gap: 12px; }
.feature-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(112px, 35vw, 142px); min-height: 128px; overflow: hidden; border-radius: 25px; text-align: left; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.feature-card .card-copy { position: relative; z-index: 1; align-self: center; min-width: 0; padding: 17px 12px 17px 18px; }
.feature-card h3 { margin: 0 0 5px; font-size: 1.12rem; }
.feature-card p { margin: 0; color: #625a6b; font-size: .79rem; line-height: 1.32; }
.feature-card .arrow { position: absolute; z-index: 2; right: 14px; bottom: 13px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: var(--ink); font-size: 1.05rem; }
.feature-art { position: relative; align-self: center; width: 100%; aspect-ratio: 1; background-image: url("assets/shtab-characters-v1.png"); background-size: 200% 200%; background-repeat: no-repeat; }
.feature-card.nutrition { background: #fff4d6; }
.feature-card.training { background: #e9faf5; }
.feature-card.chat { background: #f2ecff; }
.feature-card.ai { background: #e8f3ff; }
.feature-card.video { background: #ffe8ef; }
.feature-card.rehab { background: #fff0e9; }
.nutrition .feature-art { background-position: 0 0; }
.training .feature-art { background-position: 100% 0; }
.chat .feature-art { background-image: url("assets/chat-community-v1.png"); background-size: cover; background-position: center; opacity: .9; }
.ai .feature-art { background-image: url("assets/ai-helper-robot-v1.png"); background-size: cover; background-position: center; opacity: .9; }
.video .feature-art { background-image: url("assets/video-nikolay-tatyana-v1.png"); background-size: cover; background-position: center; opacity: .9; }
.rehab .feature-art { background-position: 0 100%; }
.locked-cover { position: absolute; z-index: 4; inset: 0; display: flex; align-items: end; justify-content: space-between; padding: 12px; color: white; background: linear-gradient(180deg, transparent, rgba(48, 41, 64, .82)); font-size: .75rem; font-weight: 800; }
.lock-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink); background: var(--yellow); }
.bottom-nav { position: fixed; z-index: 12; bottom: max(10px, env(safe-area-inset-bottom)); left: 50%; display: flex; justify-content: space-around; width: min(calc(100% - 24px), 436px); padding: 9px 8px; border: 1px solid rgba(255,255,255,.88); border-radius: 23px; background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(57, 38, 61, .2); backdrop-filter: blur(12px); transform: translateX(-50%); }
.nav-btn { display: grid; justify-items: center; gap: 2px; min-width: 59px; padding: 4px 7px; border-radius: 14px; color: var(--muted); background: transparent; font-size: .65rem; font-weight: 800; }
.nav-btn b { font-size: 1.1rem; line-height: 1; }
.nav-btn.active { color: var(--coral-dark); background: #fff0ec; }

.panel { padding: 15px; border-radius: 22px; background: #fff; box-shadow: 0 6px 18px rgba(74, 47, 62, .08); }
.panel + .panel { margin-top: 12px; }
.tabs { display: flex; gap: 7px; padding: 4px; overflow-x: auto; border-radius: 15px; background: #f6efe9; }
.tab { flex: 1; min-width: max-content; padding: 9px 12px; border-radius: 11px; color: var(--muted); background: transparent; font-size: .79rem; font-weight: 850; }
.tab.active { color: var(--ink); background: white; box-shadow: 0 3px 8px rgba(65, 40, 55, .09); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 5px; color: #625a6b; font-size: .75rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 10px; border: 1.5px solid #eadfd7; border-radius: 12px; color: var(--ink); background: #fffcf9; font-weight: 700; }
.field textarea { min-height: 80px; resize: vertical; }
.calc-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding: 13px; border-radius: 16px; background: linear-gradient(135deg, #fff2cd, #ffe9dc); }
.calc-result strong { display: block; font-size: 1.35rem; letter-spacing: -.05em; }
.macro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.macro { padding: 9px 6px; border-radius: 12px; text-align: center; background: #f7f4ff; }
.macro b { display: block; color: var(--violet); font-size: .98rem; }
.macro small { color: var(--muted); font-size: .65rem; }
.recipe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.recipe { min-height: 130px; padding: 12px; border-radius: 18px; color: #3d354b; background: #fff4d6; }
.recipe:nth-child(2n) { background: #e9faf5; }
.recipe-emoji { font-size: 2rem; }
.recipe b { display: block; margin-top: 14px; font-size: .85rem; }
.recipe span { display: block; margin-top: 3px; color: var(--muted); font-size: .71rem; }
.plate { min-height: 144px; padding: 20px; border: 9px solid #e7ecf3; border-radius: 50%; text-align: center; background: conic-gradient(#fff2bd 0 25%, #e2f4f1 0 50%, #fde0d9 0 75%, #e8ddff 0); box-shadow: inset 0 0 0 7px white, 0 8px 19px rgba(61, 46, 55, .11); }
.plate-inner { display: grid; place-items: center; min-height: 88px; padding: 10px; border-radius: 50%; background: rgba(255,255,255,.9); }
.plate-inner strong { font-size: 1.2rem; }
.food-log { display: grid; gap: 8px; margin-top: 15px; }
.food-row, .record-row, .chat-message { padding: 11px 12px; border-radius: 14px; background: #fffcf8; border: 1px solid #f0e5dd; }
.food-row { display: flex; justify-content: space-between; gap: 10px; font-size: .83rem; }
.food-row button { align-self: center; color: var(--coral-dark); background: transparent; font-weight: 900; }
.empty { padding: 16px; border: 1.5px dashed #decfc5; border-radius: 16px; color: var(--muted); text-align: center; font-size: .82rem; }

.one-rm-result { margin: 14px 0; padding: 18px; border-radius: 20px; color: white; background: linear-gradient(135deg, #2bb7a9, #347ed9); }
.one-rm-result b { display: block; margin-top: 4px; font-size: 2.25rem; letter-spacing: -.06em; }
.one-rm-result span { color: #e7fffb; font-size: .8rem; }
.records { display: grid; gap: 8px; }
.record-row { display: flex; justify-content: space-between; gap: 10px; }
.record-row b { display: block; font-size: .86rem; }
.record-row small { color: var(--muted); }
.record-row strong { color: var(--teal); white-space: nowrap; }
.tracker-visual { height: 112px; margin: 12px 0; padding: 14px; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg, #e4f8f2, #dceafd); }
.tracker-bars { display: flex; align-items: end; gap: 9px; height: 80px; }
.tracker-bars i { width: 14%; border-radius: 8px 8px 2px 2px; background: linear-gradient(#2bb7a9, #7fdacc); }

.chat-hero { min-height: 132px; padding: 18px; border-radius: 23px; color: white; background: linear-gradient(120deg, #7454d9, #a66be2); }
.chat-hero h2 { color: white; }
.chat-hero p { margin-bottom: 0; color: #f0eaff; font-size: .83rem; }
.chat-feed { display: grid; gap: 10px; margin: 14px 0; }
.chat-message { display: grid; grid-template-columns: 32px 1fr; gap: 9px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; color: white; background: #f09257; font-size: .78rem; font-weight: 900; }
.chat-message:nth-child(2n) .avatar { background: #7354cf; }
.chat-message b { display: block; margin-bottom: 3px; font-size: .8rem; }
.chat-message p { margin: 0; color: #5f5767; font-size: .8rem; line-height: 1.35; }
.chat-compose { display: flex; gap: 7px; margin-top: 12px; }
.chat-compose input { flex: 1; min-width: 0; padding: 12px 13px; border: 1.5px solid #eadfd7; border-radius: 14px; background: #fff; }
.send-btn { width: 45px; border-radius: 14px; color: white; background: var(--violet); font-size: 1.05rem; }
.media-btn { width: 45px; border-radius: 14px; color: #563ab0; background: var(--violet-soft); font-size: 1rem; }

.robot-card { min-height: 210px; padding: 20px; overflow: hidden; border-radius: 26px; color: white; background: radial-gradient(circle at 68% 30%, #f6d56c 0 2%, transparent 3% 6%, #bce9ff 7% 9%, transparent 10%), linear-gradient(135deg, #31549e, #7755d5); }
.robot { display: grid; place-items: center; width: 105px; height: 98px; margin: 10px auto 15px; border: 7px solid #d6fbff; border-radius: 35px 35px 29px 29px; background: #a5d8ed; box-shadow: 0 0 0 7px rgba(255,255,255,.12), inset 0 -14px #69b4d0; font-size: 3.1rem; }
.robot-card p { margin: 0; color: #e5eaff; text-align: center; font-size: .85rem; line-height: 1.4; }
.coming { margin-top: 14px; padding: 12px; border-radius: 14px; text-align: center; background: rgba(255,255,255,.15); font-size: .8rem; font-weight: 800; }

.video-category { display: flex; align-items: center; min-height: 130px; margin-bottom: 12px; padding: 17px; overflow: hidden; border-radius: 22px; text-align: left; background: #fff; box-shadow: var(--shadow); }
.video-category:nth-of-type(2) { background: #eaf8f5; }
.video-category h3 { margin: 0 0 5px; font-size: 1.2rem; }
.video-category p { max-width: 220px; margin: 0; color: var(--muted); font-size: .8rem; }
.folder-icon { margin-left: auto; font-size: 3.8rem; }
.rehab-hero { position: relative; min-height: 220px; padding: 20px; overflow: hidden; border-radius: 26px; color: white; background: linear-gradient(135deg, #704d87, #e77d71); }
.rehab-copy { position: relative; z-index: 1; width: 52%; }
.rehab-hero h2 { margin-bottom: 8px; color: white; }
.rehab-hero p { margin: 0; color: white; font-size: .85rem; line-height: 1.4; }
.rehab-art { position: absolute; right: 12px; bottom: 12px; width: min(44%, 184px); aspect-ratio: 1; border: 3px solid rgba(255,255,255,.52); border-radius: 22px; background: url("assets/shtab-characters-v1.png") 0 100% / 200% 200% no-repeat; box-shadow: 0 11px 24px rgba(41, 22, 45, .22); }
.pain-scale { display: flex; justify-content: space-between; gap: 5px; margin-top: 12px; }
.pain-scale button { width: 100%; padding: 9px 3px; border-radius: 10px; color: #6e4b43; background: #fff0e5; font-size: .78rem; font-weight: 900; }
.pain-scale button.active { color: white; background: var(--coral); }
.locked-panel { padding: 20px; border-radius: 22px; text-align: center; background: #fff3db; }
.locked-panel p { color: #6a5a56; font-size: .84rem; line-height: 1.45; }

.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; align-items: end; background: rgba(37, 27, 42, .45); backdrop-filter: blur(5px); }
.modal { width: min(100%, 460px); max-height: 90dvh; margin: 0 auto; padding: 21px 18px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 29px 29px 0 0; background: var(--paper); box-shadow: 0 -10px 35px rgba(36, 15, 36, .2); animation: rise .24s ease-out; }
.modal h2 { margin-bottom: 8px; }
.modal p { color: #625a6b; line-height: 1.45; }
.modal-buttons { display: grid; gap: 9px; margin-top: 18px; }
.poster { position: relative; min-height: 390px; margin: 15px 0; padding: 26px 23px; overflow: hidden; border-radius: 25px; color: white; background: linear-gradient(160deg, #ff745f 0%, #ffb557 49%, #7252c8 100%); }
.poster::before { content: ""; position: absolute; inset: auto -50px -58px auto; width: 265px; height: 265px; border: 28px solid rgba(255,255,255,.2); border-radius: 50%; }
.poster h2 { position: relative; z-index: 1; margin: 28px 0 6px; color: white; font-size: 2.45rem; line-height: .95; }
.poster p { position: relative; z-index: 1; max-width: 220px; color: white; font-weight: 800; }
.poster .poster-boss { position: absolute; right: -5px; bottom: 16px; width: 195px; height: 195px; border-radius: 35px; background: url("assets/laziness-evolution-v1.png") 0 0 / 200% 200%; mix-blend-mode: multiply; }
.poster .poster-stamp { position: absolute; z-index: 2; top: 21px; right: 19px; display: grid; place-items: center; width: 65px; height: 65px; border: 3px solid rgba(255,255,255,.7); border-radius: 50%; text-align: center; font-size: .65rem; font-weight: 1000; transform: rotate(12deg); }
.poster.promotion { background: linear-gradient(145deg, #6551cd, #f07086 54%, #ffa958); }
.poster .poster-characters { position: absolute; right: -35px; bottom: -22px; width: 285px; height: 260px; background: url("assets/shtab-characters-v1.png") 100% 100% / 200% 200%; mix-blend-mode: multiply; }
.poster-award { position: relative; margin: 15px 0; overflow: hidden; border: 1px solid rgba(56, 39, 66, .14); border-radius: 21px; background: #14233d; box-shadow: 0 14px 26px rgba(38, 22, 44, .16); }
.poster-award img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.poster-award figcaption { position: absolute; right: 10px; bottom: 10px; padding: 5px 7px; border-radius: 7px; color: #f5d991; background: rgba(10, 19, 31, .72); font-size: .6rem; font-weight: 850; letter-spacing: .01em; }

@media (max-width: 600px) {
  input, select, textarea { font-size: 16px; }
  .app-shell { box-shadow: none; }
}

@media (display-mode: standalone) {
  .screen { padding-top: max(20px, env(safe-area-inset-top)); }
  .bottom-nav { bottom: max(10px, env(safe-area-inset-bottom)); }
}
.toast-region { position: fixed; z-index: 99; top: 14px; left: 50%; width: min(calc(100% - 24px), 410px); transform: translateX(-50%); pointer-events: none; }
.toast { margin-bottom: 8px; padding: 12px 14px; border-radius: 15px; color: #fff; background: #40334d; box-shadow: var(--shadow); font-size: .84rem; font-weight: 750; animation: toast .22s ease-out; }

@keyframes rise { from { transform: translateY(36px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toast { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.activity-entry { position: relative; margin-top: 10px; padding: 12px; border: 1px solid #efe2d8; border-radius: 17px; background: #fffcf9; }
.activity-entry .mini-x, .exercise-entry > .mini-x { position: absolute; top: 8px; right: 8px; }
.mini-x { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 9px; color: var(--coral-dark); background: #fff0ec; font-size: 1.2rem; line-height: 1; }
.day-cards { display: grid; gap: 10px; margin-top: 12px; }
.day-cards .day-card { margin-top: 0; }
.day-card { display: grid; gap: 8px; margin-top: 10px; padding: 13px; border: 1px solid #e6dcf5; border-radius: 18px; background: #faf8ff; }
.day-card > div:first-child { display: flex; justify-content: space-between; gap: 9px; }
.day-card span { color: var(--muted); font-size: .75rem; }
.day-macros { color: #5f576e; font-size: .78rem; line-height: 1.45; }
.day-card .secondary-btn { width: 100%; }
.water-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.water-grid span { padding: 12px; border-radius: 15px; background: #e7f7ff; color: #466174; font-size: .78rem; }
.water-grid b { display: block; margin-top: 4px; color: #2677a0; font-size: 1rem; }
.plate-summary { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 12px; margin-top: 15px; }
.plate-summary .plate { min-height: 132px; padding: 13px; }
.plate-summary .plate-inner { min-height: 88px; }
.plate-bars { display: grid; gap: 10px; }
.plate-line > div { display: flex; justify-content: space-between; gap: 7px; font-size: .75rem; }
.plate-line > div span, .plate-line small { color: var(--muted); }
.plate-line i { display: block; height: 8px; margin: 5px 0 3px; overflow: hidden; border-radius: 9px; background: #f0e6df; }
.plate-line i em { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.plate-line.over i em { background: var(--coral); }
.plate-line small { display: block; font-size: .67rem; }
.plate-line.over small { color: var(--coral-dark); }
.autofit { margin-top: 15px; padding: 13px; border-radius: 17px; background: #fff2d9; }
.autofit h3 { margin-bottom: 8px; }
.week-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.week-chip { display: grid; justify-items: center; gap: 4px; min-height: 63px; padding: 8px 4px; border: 1px solid #e8ded7; border-radius: 15px; color: var(--muted); background: #fffaf6; font-size: .68rem; font-weight: 850; }
.week-chip b { display: grid; place-items: center; width: 19px; height: 19px; border: 1.5px solid #d7cabe; border-radius: 6px; color: white; font-size: .7rem; }
.week-chip.active { border-color: var(--violet); color: #563ab0; background: var(--violet-soft); }
.week-chip.active b, .week-chip:not(.active) b:not(:empty) { border-color: var(--teal); background: var(--teal); }
.session-grid { display: grid; gap: 9px; }
.session-card { display: grid; grid-template-columns: 42px 1fr; overflow: hidden; border: 1px solid #e8e0d8; border-radius: 17px; background: #fffdfa; }
.session-check { display: grid; place-items: center; margin: 7px; border: 2px solid #cfc3b9; border-radius: 13px; color: white; background: #fff; font-size: 1.1rem; font-weight: 900; }
.session-check.done { border-color: var(--teal); background: var(--teal); }
.session-open { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 12px 13px 12px 5px; text-align: left; background: transparent; }
.session-open span { font-weight: 900; }
.session-open small { grid-column: 1; margin-top: 3px; color: var(--muted); font-size: .71rem; }
.session-open b { grid-column: 2; grid-row: 1 / span 2; color: var(--violet); font-size: 1.15rem; }
.exercise-entry { position: relative; margin-top: 12px; padding: 14px; border: 1px solid #e5dbf2; border-radius: 19px; background: #fcfaff; }
.exercise-entry h3 { padding-right: 30px; }
.exercise-actions { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8px; margin-top: 11px; }
.rm-table { display: grid; gap: 6px; }
.rm-table > div { display: grid; grid-template-columns: 44px 1fr 1fr auto; gap: 7px; align-items: center; padding: 9px 10px; border-radius: 11px; background: #f8fbfb; color: #536463; font-size: .74rem; }
.rm-table > div:nth-child(2n) { background: #f8f5ff; }
.rm-table > div b { color: var(--ink); }
.rm-table > div small { color: var(--muted); }
.rm-table > div.deload { background: #fff0e8; }
.history-list .record-row > div { display: flex; align-items: center; gap: 8px; }
.template-actions { display: flex; align-items: center; gap: 6px; }
.template-actions .ghost-btn { min-height: 34px; padding: 7px 9px; font-size: .72rem; }
.logic-card { border: 1px solid #f1dfa8; background: linear-gradient(135deg, #fff9e6, #fff0e8); }
.logic-card h2 { margin-bottom: 7px; }
.logic-card ol { display: grid; gap: 7px; margin: 10px 0 0; padding-left: 22px; color: #5e5350; font-size: .82rem; line-height: 1.35; }
.logic-card li::marker { color: var(--coral); font-weight: 1000; }
.calc-warning, .safety-alert { margin: 11px 0 0; padding: 11px 12px; border-radius: 13px; font-size: .77rem; line-height: 1.4; }
.calc-warning { color: #704f2c; background: #fff0d2; }
.safety-alert { color: #743d40; background: #ffeaeb; border: 1px solid #f6c9cd; }
.cycle-week { display: grid; gap: 7px; margin-top: 11px; }
.cycle-day { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 8px 9px; border-radius: 12px; background: #f8f5ff; color: #60546c; font-size: .76rem; font-weight: 850; }
.cycle-day > div { display: flex; gap: 4px; }
.cycle-choice { min-width: 38px; padding: 6px 5px; border: 1px solid #e3dced; border-radius: 9px; color: #776a88; background: #fff; font-size: .65rem; font-weight: 900; }
.cycle-choice.active { border-color: var(--violet); color: white; background: var(--violet); }
.cycle-choice:disabled { opacity: .4; cursor: not-allowed; }
.calibration-result { display: grid; gap: 5px; margin-top: 12px; padding: 11px 12px; border-radius: 14px; color: #59675e; background: #eef9f4; font-size: .77rem; line-height: 1.4; }
.calibration-result b { color: var(--teal); font-size: .91rem; }
.calibration-result .ghost-btn { justify-self: start; margin-top: 2px; min-height: 31px; padding: 6px 9px; font-size: .7rem; }
.recovery-row { display: grid; gap: 7px; margin: 12px 0 0; padding: 12px; border: 1px solid #d9e8ee; border-radius: 16px; background: #f3fbff; }
.recovery-row span { color: #5c7080; font-size: .74rem; line-height: 1.35; }
.recovery-row .ghost-btn { justify-self: start; min-height: 34px; padding: 7px 10px; }
.medical-note { margin: 12px 0 0; padding: 11px 12px; border-left: 3px solid #d8a853; border-radius: 12px; color: #715839; background: #fff8e8; font-size: .75rem; line-height: 1.45; }
.cycle-day.selected-date { outline: 2px solid #a694dc; background: #eee9ff; }
.rehab-alert { margin-top: 14px; padding: 13px; border: 1px solid #f2b8bd; border-radius: 17px; color: #773f45; background: #fff1f1; font-size: .78rem; line-height: 1.45; }
.cycle-intro { color: #51465e; background: linear-gradient(135deg, #fbf1fb, #f1f7ff); }
.cycle-intro h2 { margin-bottom: 7px; }
.cycle-intro p:last-child { margin-bottom: 0; color: #62576b; font-size: .82rem; line-height: 1.45; }
.cycle-estimate { display: grid; grid-template-columns: 1fr auto; gap: 4px 9px; margin-top: 11px; padding: 11px 12px; border-radius: 14px; color: #5a4c6e; background: #f4effd; font-size: .78rem; }
.cycle-estimate b { color: var(--violet); font-size: 1rem; }
.cycle-estimate span { grid-column: 1 / -1; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.check-row { display: flex; align-items: center; gap: 8px; margin-top: 11px; color: #62586d; font-size: .78rem; line-height: 1.35; }
.check-row input { width: 17px; height: 17px; accent-color: var(--violet); }
.cycle-support { border: 1px solid #dce9ef; background: #f3fbfb; }
.cycle-support h3 { margin-bottom: 7px; }
.cycle-support p { margin: 0; color: #4f6567; font-size: .81rem; line-height: 1.45; }
.cycle-support .hint { margin-top: 10px; color: var(--muted); font-size: .73rem; }
@media (max-width: 370px) { .pain-scale { gap: 3px; } .pain-scale button { min-width: 0; padding: 8px 1px; font-size: .68rem; } }
@media (max-width: 360px) { .feature-card .card-copy { max-width: none; } .form-grid.three { grid-template-columns: 1fr; } .activity-grid { gap: 8px; } }
@media (max-width: 360px) { .plate-summary { grid-template-columns: 1fr; } .plate-summary .plate { width: 142px; justify-self: center; } .rm-table > div { grid-template-columns: 41px 1fr 1fr; } .rm-table > div small { grid-column: 2 / -1; } }
