/* Layout: mobile-first app shell (Telegram Mini App). All breakpoints are container queries on .screen,
   so the same markup is a phone app inside the device frame and a website when the screen is wide. */
:root {
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --surface-2: #E9EDF2;
  --ink: #11151B;
  --ink-2: #5B6573;
  --line: #DCE1E8;
  --accent: #C9420E;
  --accent-strong: #C9420E;
  --accent-ink: #FFFFFF;
  --accent-soft: #FFE7DD;
  --ok: #0F9950;
  --ok-text: #0B7A3F;
  --ok-soft: #DCF4E6;
  --warn: #B7791F;
  --warn-text: #8A5A12;
  --danger: #D23B3B;
  --scrim: rgba(10, 13, 18, .5);
  --press: rgba(17, 21, 27, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .07);
  --stage: #DFE4EA;
  --bezel: #0B0D12;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --gutter: 16px;
  --tabbar-h: 60px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1015; --surface: #161A21; --surface-2: #1F242D; --ink: #EEF1F5; --ink-2: #98A2B1;
    --line: #272D37; --accent: #FF6631; --accent-strong: #C9420E; --accent-ink: #FFFFFF; --accent-soft: #3A1D12;
    --ok: #2BC46D; --ok-text: #2BC46D; --ok-soft: #10301E; --warn: #E0A43A; --warn-text: #E0A43A; --danger: #F06464; --scrim: rgba(0,0,0,.62);
    --press: rgba(255,255,255,.06); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.28);
    --stage: #07090C; --bezel: #2A2F38;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1015; --surface: #161A21; --surface-2: #1F242D; --ink: #EEF1F5; --ink-2: #98A2B1;
  --line: #272D37; --accent: #FF6631; --accent-strong: #C9420E; --accent-ink: #FFFFFF; --accent-soft: #3A1D12;
  --ok: #2BC46D; --ok-text: #2BC46D; --ok-soft: #10301E; --warn: #E0A43A; --warn-text: #E0A43A; --danger: #F06464; --scrim: rgba(0,0,0,.62);
  --press: rgba(255,255,255,.06); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.28);
  --stage: #07090C; --bezel: #2A2F38;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font-body);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: var(--accent); -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.ico, .tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.spacer { flex: 1; }

/* ---------- screen (container) ---------- */
.screen {
  container: app / inline-size;
  position: relative; background: var(--bg); color: var(--ink); min-height: 100%;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --head-h: 0px;
  --bottom-ui: 0px;
}
.screen.has-head { --head-h: 56px; }
.app { min-height: 100%; display: flex; flex-direction: column; }

/* ---------- headers ---------- */
.head {
  position: sticky; top: var(--sat); z-index: 20; height: 56px;
  background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-in { max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 10px; }
/* Telegram header imitation (outside Telegram the preview draws it; inside Telegram the client draws its own) */
.tg-head .head-in { display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 8px; }
.tg-left { justify-self: start; display: flex; align-items: center; gap: 2px; border: 0; background: none; color: var(--accent); font-weight: 500; font-size: 16px; padding: 8px; border-radius: 10px; }
.tg-left svg { width: 24px; height: 24px; }
.tg-title { text-align: center; line-height: 1.2; min-width: 0; }
.tg-title b { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.tg-title span { font-size: 12px; color: var(--ink-2); }
.tg-more { justify-self: end; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; }
.tg-more svg { width: 18px; height: 18px; }
/* Chrome imitation: the lesson opened from the mini app in the browser */
.chrome-head { background: #F1F3F4; border-bottom: 1px solid #DADCE0; color: #202124; }
.chrome-head .head-in { gap: 8px; padding: 0 10px; }
.chrome-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: #FFFFFF; font-size: 13px; color: #202124; }
.chrome-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chrome-url .ico, .chrome-home .ico, .chrome-more .ico { width: 16px; height: 16px; color: #5F6368; }
.chrome-tabs { width: 22px; height: 22px; border: 2px solid #5F6368; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #5F6368; }
/* website header */
.back-btn { width: 40px; height: 40px; margin-left: -8px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; flex: none; }
.back-btn:active { background: var(--press); }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em; background: none; border: 0; padding: 0; white-space: nowrap; min-width: 0; }
.logo > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-strong); color: var(--accent-ink); display: grid; place-items: center; font-size: 11px; flex: none; }
.topnav { display: none; gap: 4px; margin-left: 20px; }
.topnav button { border: 0; background: none; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; }
.topnav button.on { background: var(--surface-2); color: var(--ink); }
.ava-chip { display: flex; align-items: center; gap: 8px; min-height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ava-chip .ava { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ava-chip.admin .ava { background: var(--accent-strong); color: var(--accent-ink); }

/* ---------- main view ---------- */
.view {
  flex: 1; width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 16px var(--gutter) calc(28px + var(--bottom-ui) + var(--sab));
  display: flex; flex-direction: column; gap: 24px;
}
.view.flush-top { padding-top: 0; }
.view { animation: view-in .18s ease-out; }
@keyframes view-in { from { opacity: .4; transform: translateY(6px); } }

/* ---------- tab bar (root screens) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--surface); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding-bottom: var(--sab);
}
.tabbar-in { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--tabbar-h); max-width: 560px; margin: 0 auto; }
.tabbar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--ink-2); font-weight: 500; }
.tabbar button.on { color: var(--accent); }
.tabbar button:active svg { transform: scale(.9); }

/* ---------- bottom action bar (Telegram MainButton imitation / website CTA) ---------- */
.cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + var(--sab));
}
.cta-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.cta .btn { flex: 1; min-height: 50px; border-radius: 12px; font-size: 16px; }
.cta .btn.secondary { flex: 0 1 auto; }
.cta-price { display: flex; flex-direction: column; line-height: 1.1; }
.cta-price small { font-size: 12px; color: var(--ink-2); }
.cta-price b { font-family: var(--font-display); font-size: 18px; white-space: nowrap; }
.screen.real-tg .cta { display: none; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border: 1px solid transparent; border-radius: var(--r-md); padding: 10px 18px; font-weight: 600;
  background: var(--surface-2); color: var(--ink); text-decoration: none; white-space: nowrap; transition: transform .08s, filter .15s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent-strong); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.sm { min-height: 40px; padding: 6px 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn.block { width: 100%; }
.btn.wrap { white-space: normal; text-align: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; padding: 0; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn[disabled] { opacity: .35; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint, .hint { font-size: 12px; color: var(--ink-2); }
.input, .textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px;
  padding: 11px 12px; outline: none; min-width: 0; font-size: 16px; /* 16px: iOS не зумит поле при фокусе */
}
.input:focus, .textarea:focus { border-color: var(--accent); }
.textarea { min-height: 96px; resize: vertical; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch:first-child { border-top: 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked { background: var(--ok); border-color: var(--ok); }
.switch input:checked::after { transform: translateX(20px); }
.search { position: relative; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-2); pointer-events: none; }
.search .input { padding-left: 38px; background: var(--surface-2); border-color: transparent; }
.search .input:focus { background: var(--surface); border-color: var(--accent); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.section-head > :first-child { min-width: 0; overflow-wrap: anywhere; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: none; min-height: 40px; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; flex: 1 0 auto; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.badge .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.badge.ok { background: var(--ok-soft); color: var(--ok-text); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.dark { background: rgba(0,0,0,.5); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.badge.draft { background: var(--surface-2); color: var(--ink-2); }
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .3s; }

/* ---------- banners ---------- */
.banner { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; color: #fff; background-size: cover; background-position: center; isolation: isolate; }
.banner.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,20,0) 28%, rgba(8,10,20,.55) 58%, rgba(8,10,20,.9)); z-index: -1; }
.banner.has-img .banner-txt { text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.banner.no-overlay.has-img::before { display: none; }
.banner-txt { position: absolute; inset: auto 0 0 0; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.banner-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.1; text-wrap: balance; max-width: 16ch; }
.banner-sub { font-size: 13px; opacity: .88; max-width: 34ch; }
.banner-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.art-1, .art-2, .art-3, .art-4, .art-5, .art-6 { z-index: 0; }
.art-1 { background: radial-gradient(circle at 82% 22%, #FFC15E 0 13%, transparent 13.5%), radial-gradient(circle at 92% 115%, #F2541B 0 42%, transparent 42.5%), linear-gradient(140deg, #141A3A, #26307A); }
.art-2 { background: repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 22px), radial-gradient(circle at 78% 30%, #4FE3B0 0 22%, transparent 22.5%), linear-gradient(150deg, #052B2A, #0B5A4E); }
.art-3 { background: radial-gradient(circle at 70% 40%, transparent 0 26%, rgba(255,255,255,.12) 26.5% 27.5%, transparent 28% 36%, rgba(255,255,255,.1) 36.5% 37.5%, transparent 38%), linear-gradient(160deg, #3A0F2E, #8C1F4A 60%, #E2553D); }
.art-4 { background: linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(135deg, #0D1117, #1E2A44); }
.art-4::after { content: ""; position: absolute; right: -4%; top: 14%; width: 62%; height: 52%; z-index: -1; border-top: 3px solid #39D98A;
  clip-path: polygon(0 80%, 15% 60%, 28% 70%, 45% 30%, 60% 45%, 78% 10%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(57,217,138,.45), rgba(57,217,138,0)); }
.art-5 { background: radial-gradient(ellipse at 20% 0%, #FFE08A 0 30%, transparent 31%), radial-gradient(circle at 85% 80%, #FF8A3D 0 30%, transparent 30.5%), linear-gradient(170deg, #2A1B0E, #6B3A12); }
.art-6 { background: conic-gradient(from 210deg at 80% 30%, #6E8BFF, #B06BFF, #FF6BB0, #6E8BFF); }
.art-6::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,30,.1), rgba(10,10,30,.65)); z-index: -1; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.round-btn svg { width: 18px; height: 18px; }

/* full-bleed blocks on phone width */
.bleed { margin-inline: calc(var(--gutter) * -1); border-radius: 0; max-width: none; }

/* ---------- lists ---------- */
.lessons { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.lesson { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; min-height: 60px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; width: 100%; }
.lesson:first-child { border-top: 0; }
button.lesson:active { background: var(--press); }
.lesson .num { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.lesson .num svg { width: 16px; height: 16px; }
.lesson.done .num { background: var(--ok-soft); color: var(--ok); }
.lesson.current { background: var(--accent-soft); }
.lesson.current .num { background: var(--accent-strong); color: var(--accent-ink); }
.lesson.locked { color: var(--ink-2); }
.lesson-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lesson-t b { font-weight: 600; font-size: 14px; }
.lesson-t span { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lesson .dur { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }

/* ---------- sheets & toast ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; overscroll-behavior: contain; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease-out; }
.sheet { width: 100%; max-width: 520px; max-height: 92%; overflow: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + var(--sab)); display: flex; flex-direction: column; gap: 14px; animation: up .24s cubic-bezier(.2,.8,.2,1); }
.grabber { height: 22px; margin: -8px -18px -6px; display: grid; place-items: center; flex: none; cursor: grab; touch-action: none; }
.grabber::before { content: ""; width: 40px; height: 5px; border-radius: 99px; background: var(--line); }
html.sheet-open, html.sheet-open body, html.sheet-open .scroller { overflow: hidden; }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-ui) + var(--sab) + 12px); z-index: 60; margin: 0 auto; max-width: 440px; background: var(--ink); color: var(--bg); padding: 12px 14px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start; animation: up .2s ease-out; pointer-events: none; }
.toast.top { bottom: auto; top: calc(var(--sat) + 12px); }
.toast svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
@keyframes pop { from { transform: scale(.4); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 36px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.note { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; }
.note b { color: var(--ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.demo-flag { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--warn-text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---------- wide screens: website layout ---------- */
@container app (min-width: 900px) {
  .topnav { display: flex; }
  .screen.web-ui .tabbar { display: none; }
  .view { padding-top: 24px; padding-bottom: calc(40px + var(--bottom-ui)); }
  .bleed { margin-inline: 0; border-radius: var(--r-lg); }
  h1 { font-size: 32px; }
  .banner-title { font-size: 26px; }
}

/* ---------- reserved space under content for bottom bars ---------- */
.screen.with-tabbar { --bottom-ui: var(--tabbar-h); }
.screen.with-cta { --bottom-ui: 71px; }
.screen.real-tg.with-cta { --bottom-ui: 0px; }
@container app (min-width: 900px) {
  .screen.web-ui.with-tabbar:not(.with-cta) .view, .screen.cta-wide-hide .view,
  .screen.web-ui.with-tabbar:not(.with-cta) .toast, .screen.cta-wide-hide .toast { --bottom-ui: 0px; }
  .screen.cta-wide-hide .cta { display: none; }
}
