/* oscarbot.top public site. Design system ported from docs/design/site-redesign (approved prototype).
   Layout idea: a group chat pinned to a corkboard. Blunt display type, real Telegram chats as evidence,
   stickers with white die-cut edges stuck on top. One loud motif: the red clown-nose dot.
   Fonts are self-hosted (OFL: Dela Gothic One, Golos Text, JetBrains Mono; cyrillic + latin subsets). */
@font-face { font-family: "Dela Gothic One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dela-gothic-one-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Dela Gothic One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dela-gothic-one-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/golos-text-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/golos-text-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #e8ebe3;
  --paper-2: #dde1d6;
  --card: #fbfcf8;
  --ink: #1d1623;
  --ink-2: #5d5462;
  --line: #c9cec1;
  --nose: #e2322c;
  --nose-ink: #ffffff;
  --nose-soft: #fbe2dc;
  --sticker-edge: #ffffff;
  --shadow: 0 1px 0 rgba(29, 22, 35, .08), 0 10px 24px -12px rgba(29, 22, 35, .35);
  --tang: #f08a24;
  --mustard: #e8b522;
  --moss: #3d8b48;
  --plum: #6b2b6e;
  --on-warm: #1d1623;
  --on-cool: #ffffff;
  --focus: #2a6df4;

  /* Telegram day theme (iOS) */
  --tg-wall-1: #d0e3a6; --tg-wall-2: #b4d9a0; --tg-wall-3: #8fcda8;
  --tg-pattern-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%23466e3c' stroke-opacity='.28' stroke-width='1.2'%3E%3Cpath d='M15 25c8-8 20 3 12 11-8 8-20-3-12-11zm70-9 5 9 10 2-8 7 2 10-9-5-9 5 2-10-8-7 10-2zM32 74c7-10 21-9 27 1 6 11-4 23-17 22-12-1-18-13-10-23zm72 23 11-8 11 8-11 8zM15 123c8-7 18 4 10 11-7 6-17-4-10-11z'/%3E%3C/g%3E%3C/svg%3E");
  --tg-bar: rgba(247, 247, 247, .94);
  --tg-bar-line: rgba(0, 0, 0, .12);
  --tg-bubble: #ffffff;
  --tg-text: #000000;
  --tg-meta: #8c9a8a;
  --tg-accent: #3390ec;
  --tg-sub: #8a8a8e;
  --tg-reaction: #e3f1d7;
  --tg-reaction-ink: #2e6b33;
  --tg-highlight: rgba(51, 144, 236, .28);
  --tg-input: #ffffff;
  --tg-bezel: #121212;
  --tg-photo-bg: #e9efe3;
  --tg-own: #e1fec6;
  --tg-own-meta: #4fae4e;

  --f-display: "Dela Gothic One", "Arial Black", "Helvetica Neue", sans-serif;
  --f-body: "Golos Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-tg: -apple-system, "SF Pro Text", Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-3: clamp(1.75rem, 3.2vw, 2.5rem);
  --step-4: clamp(2.25rem, 5vw, 3.75rem);
  --step-5: clamp(3.4rem, 10vw, 7.5rem);

  --wrap: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141117; --paper-2: #1b171f; --card: #211b26; --ink: #f1ece3; --ink-2: #a89fab;
    --line: #362e3c; --nose: #ff4f45; --nose-ink: #1a0d0d; --nose-soft: #3b1e22; --sticker-edge: #efe9df;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 14px 30px -14px rgba(0, 0, 0, .8);
    --tang: #f39a3c; --mustard: #efc23d; --moss: #4fa35b; --plum: #8b3e8e; --focus: #7aa6ff;
    --tg-wall-1: #1b2b22; --tg-wall-2: #15241f; --tg-wall-3: #10201f; --tg-pattern-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%23a8d8b0' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M15 25c8-8 20 3 12 11-8 8-20-3-12-11zm70-9 5 9 10 2-8 7 2 10-9-5-9 5 2-10-8-7 10-2zM32 74c7-10 21-9 27 1 6 11-4 23-17 22-12-1-18-13-10-23zm72 23 11-8 11 8-11 8zM15 123c8-7 18 4 10 11-7 6-17-4-10-11z'/%3E%3C/g%3E%3C/svg%3E");
    --tg-bar: rgba(28, 28, 30, .94); --tg-bar-line: rgba(255, 255, 255, .1); --tg-bubble: #222e28;
    --tg-text: #f5f5f5; --tg-meta: #7f9188; --tg-accent: #6ab3f3; --tg-sub: #8e8e93;
    --tg-reaction: #2f4637; --tg-reaction-ink: #bfe5c3; --tg-highlight: rgba(106, 179, 243, .25);
    --tg-input: #2c2c2e; --tg-bezel: #000000; --tg-photo-bg: #1d2721; --tg-own: #2f5f3b; --tg-own-meta: #8fd19b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141117; --paper-2: #1b171f; --card: #211b26; --ink: #f1ece3; --ink-2: #a89fab;
  --line: #362e3c; --nose: #ff4f45; --nose-ink: #1a0d0d; --nose-soft: #3b1e22; --sticker-edge: #efe9df;
  --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 14px 30px -14px rgba(0, 0, 0, .8);
  --tang: #f39a3c; --mustard: #efc23d; --moss: #4fa35b; --plum: #8b3e8e; --focus: #7aa6ff;
  --tg-wall-1: #1b2b22; --tg-wall-2: #15241f; --tg-wall-3: #10201f; --tg-pattern-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%23a8d8b0' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M15 25c8-8 20 3 12 11-8 8-20-3-12-11zm70-9 5 9 10 2-8 7 2 10-9-5-9 5 2-10-8-7 10-2zM32 74c7-10 21-9 27 1 6 11-4 23-17 22-12-1-18-13-10-23zm72 23 11-8 11 8-11 8zM15 123c8-7 18 4 10 11-7 6-17-4-10-11z'/%3E%3C/g%3E%3C/svg%3E");
  --tg-bar: rgba(28, 28, 30, .94); --tg-bar-line: rgba(255, 255, 255, .1); --tg-bubble: #222e28;
  --tg-text: #f5f5f5; --tg-meta: #7f9188; --tg-accent: #6ab3f3; --tg-sub: #8e8e93;
  --tg-reaction: #2f4637; --tg-reaction-ink: #bfe5c3; --tg-highlight: rgba(106, 179, 243, .25);
  --tg-input: #2c2c2e; --tg-bezel: #000000; --tg-photo-bg: #1d2721; --tg-own: #2f5f3b; --tg-own-meta: #8fd19b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.55 var(--f-body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .02em; }
.label { font-family: var(--f-mono); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; line-height: .98; }
.handle { color: var(--nose); font-weight: 600; text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--nose) 35%, transparent); }
.handle:hover { border-bottom-color: var(--nose); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--f-display); font-size: 1.25rem; letter-spacing: .02em; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--ink); font: 600 var(--step-0)/1 var(--f-body); text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-nose { background: var(--nose); color: var(--nose-ink); border-color: var(--nose); }
.btn-small { padding: 9px 16px; font-size: .9375rem; }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { padding-block: clamp(24px, 3vw, 44px) clamp(30px, 4vw, 56px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.hero-copy { display: grid; gap: clamp(12px, 1.7vw, 18px); min-width: 0; }
.hero h1 { font-size: clamp(2rem, 2.8vw, 2.7rem); line-height: 1.12; text-wrap: balance; }
.nose-dot {
  display: inline-block; width: .3em; height: .3em; border-radius: 50%; padding: 0; border: 0; cursor: pointer;
  background: radial-gradient(circle at 34% 30%, #ff8a80 0 14%, var(--nose) 42%, color-mix(in srgb, var(--nose) 70%, #000) 100%);
  margin-left: .04em; vertical-align: baseline; position: relative; font-size: inherit;
}
.nose-dot.boop { animation: boop .42s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes boop { 0% { transform: scale(1); } 30% { transform: scale(.72, .82); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.boop-tag { position: absolute; left: 50%; bottom: 110%; transform: translateX(-50%) rotate(-8deg); font: 400 1.1rem/1 var(--f-display); background: var(--mustard); color: var(--on-warm); border: 3px solid var(--sticker-edge); border-radius: 8px; padding: 4px 8px; white-space: nowrap; pointer-events: none; animation: tag-rise .9s ease-out forwards; letter-spacing: 0; }
@keyframes tag-rise { from { opacity: 1; translate: 0 6px; } to { opacity: 0; translate: 0 -34px; } }
.hero-lede { font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.4; max-width: 47ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.say { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-2); }
.say kbd { font: 500 var(--step-0)/1.2 var(--f-body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.hero-stage { display: grid; gap: 10px; justify-items: center; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 26rem; }
.chip { font: 600 .875rem/1 var(--f-body); padding: 9px 13px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; transition: transform .12s ease; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chips > [hidden] { display: none !important; }
.chip-refresh { border: 0; padding: 9px 6px; font: 600 .78rem/1.2 var(--f-body); cursor: pointer; color: var(--ink-2); background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.chip-refresh:hover { color: var(--ink); }
.chip-refresh:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.stage-note { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); text-align: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Keep the hero example useful without making the entire first screen phone-height. */
.hero-stage .tg-phone { width: min(330px, 100%); height: 510px; min-height: 420px; max-height: 68vh; }

/* Telegram phone */
.tg-phone { position: relative; width: min(370px, 100%); height: 640px; max-height: 82vh; min-height: 520px; padding: 9px; border-radius: 50px; background: var(--tg-bezel); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 20%, transparent), 0 30px 60px -28px rgba(0, 0, 0, .55); font-family: var(--f-tg); }
.tg-phone.small { height: 560px; }
.tg-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(160deg, var(--tg-wall-1), var(--tg-wall-2) 50%, var(--tg-wall-3)); color: var(--tg-text); }
.tg-screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--tg-pattern-img); opacity: 1; }
.tg-status { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 4px; font-size: 13px; font-weight: 600; background: var(--tg-bar); }
.tg-status svg { height: 11px; width: auto; fill: currentColor; }
.tg-island { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 20px; background: #000; }
.tg-head { position: relative; z-index: 2; display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center; padding: 4px 10px 8px; background: var(--tg-bar); border-bottom: .5px solid var(--tg-bar-line); }
.tg-back { display: flex; align-items: center; gap: 2px; color: var(--tg-accent); font-size: 16px; }
.tg-back svg { width: 12px; height: 20px; }
.tg-back span { background: var(--tg-accent); color: #fff; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 1px 6px; }
.tg-title { text-align: center; min-width: 0; }
.tg-title strong { display: block; font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-title span { display: block; font-size: 12.5px; color: var(--tg-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-title span.typing-now { color: var(--tg-accent); }
.tg-gava { justify-self: end; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 16px; line-height: 1; }
.tg-list { position: relative; z-index: 1; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 10px 8px 8px; display: flex; flex-direction: column; gap: 2px; }
.tg-list::-webkit-scrollbar { display: none; }
.tg-list > :first-child { margin-top: auto; }
.tg-date { align-self: center; margin: 4px 0 8px; font-size: 12.5px; font-weight: 500; color: #fff; background: rgba(0, 0, 0, .22); padding: 3px 9px; border-radius: 12px; }
.tg-row { display: flex; align-items: flex-end; gap: 6px; padding-right: 30px; border-radius: 10px; transition: background .4s ease; }
.tg-row.last { margin-bottom: 6px; }
.tg-row.flash { background: var(--tg-highlight); }
.tg-ava { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: #fff; font-size: 14px; line-height: 1; font-weight: 600; text-decoration: none; }
.tg-ava img { width: 100%; height: 100%; object-fit: cover; }
.tg-ava.ghost { visibility: hidden; }
/* Optical center for font initials: Golos Text places glyph ink slightly
   above/left of the line-box center. Keep the glyph isolated so grid alignment
   is predictable at both full and 480px share-image resolutions. */
.tg-gava .tg-initial {
  display: block;
  line-height: 1;
  transform: translate(.5px, .6px);
}
.tg-ava .tg-initial {
  display: block;
  line-height: 1;
  transform: translateX(.25px);
}

.tg-bubble { position: relative; min-width: 0; max-width: 100%; background: var(--tg-bubble); border-radius: 17px; padding: 6px 10px 7px 11px; font-size: 15.5px; line-height: 1.32; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.tg-row.last .tg-bubble { border-bottom-left-radius: 5px; }
.tg-row.last .tg-bubble::before { content: ""; position: absolute; left: -6px; bottom: 0; width: 12px; height: 14px; background: var(--tg-bubble); clip-path: path("M12 0 L12 14 L0 14 C5 13 8 10 9 5 Z"); }
.tg-name { display: block; font-size: 14px; font-weight: 600; margin-bottom: 1px; }
.tg-name small { font-weight: 400; color: var(--tg-sub); margin-left: 4px; font-size: 12px; }
.tg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.tg-text a { color: var(--tg-accent); text-decoration: none; }
.tg-time { float: right; position: relative; top: 7px; margin-left: 10px; font-size: 11.5px; color: var(--tg-meta); line-height: 1; }
/* Isolated new music demo: float-based timestamps can collide with short replies
   and audio-only bubbles. Keep time in the bubble's natural layout, aligned right. */
.tg-phone[data-scene="chat-music-preview"] .tg-bubble {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.tg-phone[data-scene="chat-music-preview"] .tg-time,
.tg-phone[data-scene="chat-music-preview"] .tg-text + .tg-time {
  float: none;
  position: static;
  top: auto;
  margin: 3px 0 0;
  align-self: flex-end;
}

.tg-media { margin: 2px -6px 6px -7px; border-radius: 12px; overflow: hidden; position: relative; background: var(--tg-photo-bg); }
.tg-media img { width: 100%; max-height: 210px; object-fit: cover; }
.tg-badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 6px; border-radius: 6px; }
.tg-voice { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; align-items: center; width: 230px; max-width: 100%; margin: 2px 0 4px; }
.tg-play { width: 42px; height: 42px; border-radius: 50%; background: var(--tg-accent); display: grid; place-items: center; }
/* Align the triangle's visible ink, rather than pushing its entire SVG 3px right. */
.tg-play svg { display: block; width: 18px; height: 18px; fill: #fff; transform: translateX(.5px); }
.tg-wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.tg-wave i { flex: 1; max-width: 3px; border-radius: 2px; background: var(--tg-accent); opacity: .85; }
.tg-dur { font-size: 12px; color: var(--tg-meta); }
.tg-audio-t { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-reacts { display: flex; gap: 4px; margin-top: 6px; }
.tg-reacts span { font-size: 13px; background: var(--tg-reaction); color: var(--tg-reaction-ink); border-radius: 12px; padding: 2px 8px; font-weight: 600; }
.tg-typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.tg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--tg-meta); animation: blink 1.2s infinite ease-in-out; }
.tg-typing i:nth-child(2) { animation-delay: .15s; } .tg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.tg-row.arrive { animation: arrive .28s ease-out; }
@keyframes arrive { from { transform: translateY(10px) scale(.98); opacity: .2; } to { transform: none; opacity: 1; } }
.tg-compose { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 7px 10px 22px; background: var(--tg-bar); border-top: .5px solid var(--tg-bar-line); color: var(--tg-sub); }
.tg-compose svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tg-field { flex: 1; min-width: 0; background: var(--tg-input); border: .5px solid var(--tg-bar-line); border-radius: 18px; padding: 7px 12px; font-size: 15.5px; color: var(--tg-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-field.filled { color: var(--tg-text); }
.tg-send { width: 32px; height: 32px; border-radius: 50%; background: var(--tg-accent); display: grid; place-items: center; flex: none; }
.tg-send svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.4; }

/* Steps */
.steps { border-block: 2px solid var(--ink); background: var(--card); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { padding: 28px clamp(16px, 3vw, 32px); display: grid; gap: 8px; align-content: start; }
.steps li + li { border-left: 2px solid var(--ink); }
.steps .n { font-family: var(--f-display); font-size: var(--step-3); color: var(--nose); line-height: 1; }
.steps h3 { font-size: var(--step-1); font-weight: 700; }
.steps p { color: var(--ink-2); }
.steps code { font-family: var(--f-body); font-weight: 600; color: var(--ink); background: var(--nose-soft); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 760px) { .steps ol { grid-template-columns: minmax(0, 1fr); } .steps li + li { border-left: 0; border-top: 2px solid var(--ink); } }

/* Abilities */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 46rem; }
.section-head h2 { font-size: var(--step-4); }
.section-head p { font-size: var(--step-1); color: var(--ink-2); max-width: 44ch; }
.ability { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: clamp(20px, 5vw, 72px); padding-block: 36px; border-top: 2px solid var(--ink); align-items: center; }
.ability:last-child { border-bottom: 2px solid var(--ink); }
.ability:nth-child(even) { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); }
.ability:nth-child(even) .ability-copy { order: 2; }
.ability-copy { display: grid; gap: 14px; min-width: 0; }
.ability h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-3); line-height: 1.02; }
.ability p { max-width: 42ch; }
.also { display: flex; flex-wrap: wrap; gap: 6px; }
.also span { font-family: var(--f-mono); font-size: .75rem; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.more { font-weight: 600; text-decoration: none; color: var(--ink); justify-self: start; border-bottom: 2px solid var(--nose); }
.chat-card { min-width: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); font-family: var(--f-tg); }
.chat-card .tg-screen { border-radius: 0; height: auto; }
.chat-card .tg-list { overflow: visible; padding-block: 12px; }
.chat-card .tg-head { grid-template-columns: 1fr auto; text-align: left; padding: 10px 14px; }
.chat-card .tg-title { text-align: left; }
@media (max-width: 820px) {
  .ability, .ability:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .ability:nth-child(even) .ability-copy { order: 0; }
}

/* Character */
.character { background: var(--ink); color: var(--paper); }
.character .label { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.character .section-head p { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.character-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: clamp(28px, 5vw, 72px); align-items: center; }
.character-points { display: grid; gap: 22px; }
.character-points div { display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--nose); }
.character-points strong { font-size: var(--step-1); }
.character-points span { color: color-mix(in srgb, var(--paper) 75%, transparent); max-width: 46ch; }
.character-points q { color: var(--paper); font-weight: 600; }
.character .tg-phone { justify-self: center; }
@media (max-width: 900px) { .character-grid { grid-template-columns: minmax(0, 1fr); } }

/* Sticker wall */
.wall { position: relative; display: flex; flex-wrap: wrap; gap: 18px 14px; align-items: flex-start; }
.stk { font: 600 1rem/1.3 var(--f-body); text-align: left; border: 5px solid var(--sticker-edge); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 16px; max-width: 22rem; cursor: grab; touch-action: pan-y; user-select: none; position: relative; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg)); transition: transform .2s ease, box-shadow .2s ease; }
.stk small { display: block; margin-top: 6px; font-family: var(--f-mono); font-weight: 400; font-size: .7rem; opacity: .8; }
.stk:hover { --rot: 0deg; box-shadow: 0 1px 0 rgba(0,0,0,.1), 0 18px 30px -14px rgba(0,0,0,.5); }
.stk.dragging { cursor: grabbing; transition: none; z-index: 5; --rot: 0deg; }
.stk.t { background: var(--tang); color: var(--on-warm); }
.stk.m { background: var(--mustard); color: var(--on-warm); }
.stk.g { background: var(--moss); color: var(--on-cool); }
.stk.p { background: var(--plum); color: var(--on-cool); }
.stk.c { background: var(--card); color: var(--ink); }
.stk.o { background: var(--nose); color: var(--nose-ink); font-family: var(--f-display); font-weight: 400; font-size: 1.125rem; }
.wall .stk:nth-child(6n+1) { --rot: -3deg; } .wall .stk:nth-child(6n+2) { --rot: 2deg; }
.wall .stk:nth-child(6n+3) { --rot: -1deg; margin-top: 10px; } .wall .stk:nth-child(6n+4) { --rot: 3deg; }
.wall .stk:nth-child(6n+5) { --rot: -2deg; margin-top: 6px; } .wall .stk:nth-child(6n) { --rot: 1.5deg; }
.wall-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; }
.wall-foot p { color: var(--ink-2); max-width: 56ch; font-size: .9375rem; }

/* Conversation dialog */
dialog.convo { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); overflow: visible; }
dialog.convo::backdrop { background: rgba(10, 8, 12, .62); backdrop-filter: blur(4px); }
.convo-inner { display: grid; gap: 12px; justify-items: center; }
.convo-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.convo-bar .btn:not(.btn-nose) { background: var(--card); }
.convo-cap { font-weight: 700; color: var(--ink); background: var(--card); padding: 8px 14px; border-radius: 999px; text-align: center; text-wrap: balance; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.faq details { border-top: 2px solid var(--ink); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); color: var(--nose); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink-2); max-width: 54ch; }
@media (max-width: 760px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Final CTA + footer */
.final { background: var(--nose); color: var(--nose-ink); }
.final .wrap { display: grid; gap: 24px; padding-block: clamp(56px, 8vw, 96px); }
.final h2 { font-size: var(--step-5); }
.final p { font-size: var(--step-1); max-width: 40ch; }
.final .btn { border-color: var(--nose-ink); color: var(--nose-ink); }
.final .btn:hover { box-shadow: 4px 4px 0 var(--nose-ink); }
.final .btn-solid { background: var(--nose-ink); color: var(--nose); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px; color: var(--ink-2); font-size: .9375rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* Own (visitor) messages in the reminder demo */
.tg-row.own { justify-content: flex-end; padding-right: 0; padding-left: 48px; }
.tg-row.own .tg-bubble { background: var(--tg-own); border-bottom-right-radius: 5px; }
.tg-row.own .tg-bubble::before { left: auto; right: -6px; background: var(--tg-own); clip-path: path("M0 0 L0 14 L12 14 C7 13 4 10 3 5 Z"); }
.tg-row.own .tg-time { color: var(--tg-own-meta); }
.tg-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--tg-accent); vertical-align: -2px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.remind-card .tg-list { min-height: 220px; max-height: 260px; overflow: hidden; }
.remind-card .tg-field { white-space: nowrap; }

/* Examples page */
.ex-hero { padding-block: clamp(36px, 6vw, 72px) 24px; }
.ex-hero .wrap { display: grid; gap: 18px; }
.ex-hero h1 { font-size: var(--step-5); }
.ex-hero p { font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: 28px 22px; padding-block: 28px 80px; align-items: start; }
.ex-card { text-align: left; font: inherit; color: inherit; display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 5px solid var(--sticker-edge); box-shadow: var(--shadow); cursor: grab; touch-action: pan-y; user-select: none; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg)); transition: transform .2s ease, box-shadow .2s ease; }
.ex-card:hover { --rot: 0deg; }
.ex-card.dragging { cursor: grabbing; transition: none; z-index: 5; --rot: 0deg; }
.ex-card h2 { font: 400 1.25rem/1.08 var(--f-display); }
.ex-card .ex-quote { font: 400 .9375rem/1.38 var(--f-tg); background: var(--tg-bubble); color: var(--tg-text); border-radius: 14px 14px 14px 4px; padding: 8px 11px; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.ex-card .ex-quote b { display: block; color: var(--nose); font-size: .8125rem; font-weight: 600; }
.ex-card .ex-meta { font-family: var(--f-mono); font-size: .7rem; opacity: .8; display: flex; justify-content: space-between; gap: 8px; }
.ex-card.t { background: var(--tang); color: var(--on-warm); } .ex-card.m { background: var(--mustard); color: var(--on-warm); }
.ex-card.g { background: var(--moss); color: var(--on-cool); } .ex-card.p { background: var(--plum); color: var(--on-cool); }
.ex-card.c { background: var(--card); color: var(--ink); } .ex-card.o { background: var(--nose); color: var(--nose-ink); }
.ex-wall .ex-card:nth-child(5n+1) { --rot: -2deg; } .ex-wall .ex-card:nth-child(5n+2) { --rot: 1.5deg; }
.ex-wall .ex-card:nth-child(5n+3) { --rot: -1deg; } .ex-wall .ex-card:nth-child(5n+4) { --rot: 2.2deg; }
.ex-wall .ex-card:nth-child(5n) { --rot: -.6deg; }
.ex-card[hidden] { display: none; }
.ex-empty { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== Production additions: generated pages, server-rendered chats, a11y ===== */
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
code { font-family: var(--f-mono); font-size: .9em; background: var(--nose-soft); padding: 1px 6px; border-radius: 6px; }

/* Header: language switcher and small screens (the prototype hid the whole nav; here it wraps under the brand row). */
.nav { margin-left: auto; flex-wrap: wrap; }
.language-switcher { display: inline-flex; align-items: center; gap: 6px; font: 600 .75rem/1 var(--f-mono); letter-spacing: .06em; }
.language-switcher a, .language-switcher span { color: var(--ink-2); text-decoration: none; padding: 4px 2px; }
.language-switcher [aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--nose); }
.language-switcher a:hover { color: var(--ink); }
.language-separator { opacity: .4; }
@media (max-width: 760px) {
  .top { position: static; }
  .top .wrap { flex-wrap: wrap; gap: 8px 16px; }
  .nav { display: flex; order: 3; width: 100%; margin-left: 0; gap: 4px 18px; font-size: .9375rem; }
  .language-switcher { margin-left: auto; }
  .top .btn { margin-left: 0; }
}

/* Phones rendered on the server */
.hero-phone { display: flex; justify-content: center; width: 100%; }
.tg-phone.full { height: auto; max-height: none; min-height: 0; }
.tg-phone.full .tg-screen { height: auto; }
.tg-phone.full .tg-list { overflow: visible; }
.tg-status-icons { display: flex; gap: 5px; align-items: center; }
.tg-name.is-oscar { color: var(--nose); }
.tg-card.tg-phone { width: 100%; height: auto; max-height: none; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.tg-card .tg-screen { border-radius: 0; height: auto; }
.tg-card .tg-list { overflow: visible; padding-block: 12px; }
.tg-card .tg-head { grid-template-columns: 1fr auto; text-align: left; padding: 10px 14px; }
.tg-card .tg-title { text-align: left; }
.tg-media picture { display: block; }
.tg-media img { height: auto; }
.tg-row .tg-bubble > .tg-media:first-child { margin-top: 2px; }
.tg-bubble .tg-voice { margin-bottom: 6px; }
.tg-text + .tg-time { top: 4px; }
.tg-row.typing-row .tg-bubble { padding: 9px 12px; }
.tg-row.is-hidden { display: none; }
.nose-dot[role="button"] { cursor: pointer; }
.hero h1 .nose-dot { position: relative; }
a.chip { display: inline-block; text-decoration: none; }
a.chip.is-current { background: var(--ink); color: var(--paper); }
.steps .wrap { padding-inline: 0; }
a.stk { display: block; text-decoration: none; touch-action: pan-y; }
a.stk small { text-decoration: none; }

/* Inner pages */
.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(8px, 2vw, 24px); }
.page-head .wrap { display: grid; gap: 18px; justify-items: start; }
.page-head h1 { font-size: var(--step-4); max-width: 22ch; }
.page-lede { font-size: var(--step-1); color: var(--ink-2); max-width: 56ch; }
.updated { font: 400 .8125rem/1.4 var(--f-mono); color: var(--ink-2); }
.section-head.compact h2 { font-size: var(--step-3); }
.caps-section { padding-block: clamp(28px, 5vw, 52px); }
.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: 16px; }
.cap { display: grid; gap: 8px; align-content: start; padding: 18px 18px 20px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); }
.cap h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
.cap p { color: var(--ink-2); }
.cap.spicy { background: var(--nose-soft); }
.try { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.try kbd { display: block; font: 500 var(--step-0)/1.35 var(--f-body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; max-width: 24rem; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 5vw, 64px); padding-block: 32px; border-top: 2px solid var(--ink); align-items: start; }
.story-head { display: grid; gap: 10px; }
.story-head h2 { font: 400 var(--step-3)/1.05 var(--f-display); }
.story-grid p { max-width: 56ch; font-size: var(--step-1); }
@media (max-width: 760px) { .story-grid { grid-template-columns: minmax(0, 1fr); } }
.prose-section { padding-top: 8px; }
.prose { max-width: 46rem; }
.prose h2 { font: 700 var(--step-1)/1.25 var(--f-body); margin: 30px 0 8px; padding-top: 16px; border-top: 2px solid var(--ink); }
.prose p { margin-bottom: 6px; }
.prose a, .page-head a:not(.btn), .story-grid p a { color: var(--nose); font-weight: 600; text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--nose) 35%, transparent); }

/* Examples list */
.ex-hero .wrap > .back { justify-self: start; }
.filters[hidden], .ex-wall[hidden], .ex-empty[hidden] { display: none; }
.ex-card { position: relative; cursor: default; }
.ex-card h2 a { color: inherit; text-decoration: none; }
.ex-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 13px; }
.ex-card .ex-desc { font-size: .875rem; line-height: 1.4; opacity: .92; }
.ex-cta { display: flex; justify-content: center; padding-bottom: 72px; }
.examples-pagination { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: center; margin: 12px 0 40px; font-weight: 600; }
.examples-pagination-pages { display: flex; flex-wrap: wrap; gap: 8px; }
.examples-pagination a, .examples-pagination [aria-current] { display: inline-flex; min-width: 42px; height: 42px; padding: 0 14px; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; background: var(--card); color: var(--ink); }
.examples-pagination a:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
.examples-pagination [aria-current] { background: var(--ink); color: var(--paper); }
.examples-pagination-status { flex-basis: 100%; text-align: center; font: 400 .75rem/1.2 var(--f-mono); color: var(--ink-2); }
.examples-pagination-direction:empty { display: none; }

/* Example detail */
.back { display: inline-flex; font: 600 .875rem/1.2 var(--f-mono); letter-spacing: .02em; text-decoration: none; border-bottom: 2px solid var(--nose); color: var(--ink); justify-self: start; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 24.5rem) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; padding-block: 24px 56px; }
.detail-phone { display: flex; justify-content: center; }
.detail-side { display: grid; gap: 24px; max-width: 40rem; }
.example-context { display: grid; gap: 12px; justify-items: start; }
.example-context h2 { font: 400 var(--step-3)/1.05 var(--f-display); }
.example-context p { font-size: var(--step-1); }
.micro { font-size: .8125rem !important; color: var(--ink-2); }
.example-image-link { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px; background: var(--card); }
.example-image-link img { width: 96px; height: auto; border-radius: 10px; }
.example-image-copy { display: grid; gap: 2px; }
.example-image-copy span { color: var(--ink-2); font-size: .875rem; }
.example-image-copy em { font-style: normal; font-weight: 600; border-bottom: 2px solid var(--nose); justify-self: start; }
.example-related { border-top: 2px solid var(--ink); padding-block: 40px 64px; }
.example-related .wrap { display: grid; gap: 20px; justify-items: start; }
.example-related h2 { font: 400 var(--step-3)/1.05 var(--f-display); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 16px; width: 100%; }
.ex-related { display: grid; gap: 6px; align-content: start; padding: 16px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.ex-related:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.ex-related span { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }

/* Latest @oscar_log post */
.telegram-live { border-top: 2px solid var(--ink); padding-block: clamp(40px, 6vw, 72px); }
.telegram-live .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.telegram-live-copy { display: grid; gap: 12px; justify-items: start; }
.telegram-live-copy h2 { font: 400 var(--step-3)/1.02 var(--f-display); }
.telegram-live-copy p { color: var(--ink-2); max-width: 44ch; }
.telegram-embed { min-height: 220px; min-width: 0; border-radius: var(--radius); overflow: hidden; }
@media (max-width: 860px) { .telegram-live .wrap { grid-template-columns: minmax(0, 1fr); } }
.faq-section { padding-top: clamp(40px, 6vw, 72px); }

/* Conversation dialog content */
.convo-phone { display: flex; justify-content: center; }
.character-points code { background: none; padding: 0; font-family: var(--f-body); font-weight: 600; color: var(--paper); }
.character-points code::before { content: "\201C"; } .character-points code::after { content: "\201D"; }
.example-detail .ex-hero h1 { font-size: var(--step-4); max-width: 22ch; }
@media (max-width: 760px) { .brand { font-size: 1.1rem; } .top .btn { padding: 8px 13px; font-size: .8125rem; } .top .wrap { gap: 6px 12px; } }
@media (max-width: 760px) { .brand { font-size: 1rem; gap: 6px; } .brand svg { width: 22px; height: 22px; } .top .btn { padding: 7px 11px; font-size: .78rem; gap: 6px; } .top .wrap { gap: 6px 8px; } .language-switcher { margin-left: auto; margin-right: 2px; } .top .btn { order: 2; } }
html[lang="en"] .hero h1 { font-size: clamp(2rem, 2.8vw, 2.7rem); }
@media (max-width: 600px) {
  .hero { padding-block: 20px 36px; }
  .hero h1, html[lang="en"] .hero h1 { font-size: clamp(1.65rem, 6.2vw, 2rem); }
  .hero-stage .tg-phone { height: 460px; min-height: 400px; max-height: 62vh; }
}

/* Dedicated removal-stories gallery and archived service messages. */
/* This collection has an editorial page title, not the giant /examples/ masthead. */
.tough-hero{padding-top:clamp(28px,4vw,56px)}
.tough-hero h1{font-size:var(--step-4);line-height:1.08;max-width:22ch}
.tough-hero .wrap>p{max-width:65ch}
.tough-hero .tough-note{margin:0;font-size:.89rem;line-height:1.55;opacity:.8}
.tough-stories .ex-wall{margin-top:12px}
.tough-stories .ex-cta{display:flex;justify-content:center;align-items:center;gap:24px;flex-wrap:wrap}
.tg-service-event{display:flex;justify-content:center;align-items:center;margin:10px 12px 12px;text-align:center;min-height:22px}
.tg-service-event>span{display:inline-block;max-width:88%;border-radius:16px;background:rgba(74,96,93,.67);color:#fff;padding:5px 11px;font-size:11px;line-height:1.35;font-weight:500;box-shadow:0 1px 3px #0002}

/* Use the timestamp-safe bubble layout on ban-story screens too. */
.tg-phone[data-scene^="chat-ban-"] .tg-bubble{display:flex;flex-direction:column;align-items:stretch}
.tg-phone[data-scene^="chat-ban-"] .tg-time{float:none;position:static;top:auto;margin:3px 0 0;align-self:flex-end}

.capability-beta,.capability-requirement{display:inline-block;margin-left:.6em;padding:.15em .5em;border:1px solid currentColor;border-radius:.4em;font:500 .65em/1.5 sans-serif;vertical-align:middle}
.capability-matrix{overflow-x:auto;margin-top:2rem}.capability-matrix table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem}.capability-matrix caption{text-align:left;font-weight:600;margin-bottom:1rem}.capability-matrix th,.capability-matrix td{padding:.7rem;border-bottom:1px solid currentColor;vertical-align:top}.capability-matrix th:first-child{min-width:11rem}.capability-matrix td{min-width:8rem}.capability-unstable{margin-top:1.5rem;padding:1rem;border:1px solid currentColor;border-radius:1rem}.cap-example{font-size:.9em}

/* About inventory: the existing cards, chips and Telegram phones. */
.capability-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 16px; }
.capability-nav .btn { font-size: .875rem; padding: 9px 14px; }
.capability-note { color: var(--ink-2); font-size: .875rem; }
.caps-section[id] { scroll-margin-top: 24px; }
.capability-content { min-width: 0; }
.capability-content.has-example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 350px); gap: clamp(20px, 3vw, 40px); align-items: start; }
.caps.caps-one { grid-template-columns: minmax(0, 1fr); }
.caps.caps-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.caps.caps-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.caps-feature-first > .cap:first-child { grid-column: 1 / -1; }
.cap-limitation { color: var(--ink-2); font-size: .8125rem; line-height: 1.45; }
.capability-scene { display: grid; justify-items: center; gap: 20px; min-width: 0; margin: 0; }
.capability-illustration { display: grid; gap: 12px; margin: 0; padding: 20px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--tg-wall-1); }
.capability-illustration .tg-bubble { position: relative; width: fit-content; max-width: 100%; color: var(--ink); background: var(--card); }
.capability-illustration .tg-bubble.is-oscar { justify-self: end; background: color-mix(in srgb, var(--nose) 12%, var(--card)); }
.capability-matrix { max-width: 100%; overscroll-behavior-x: contain; }
.capability-matrix th:first-child { position: sticky; left: 0; background: var(--paper); z-index: 1; }
.capability-matrix:focus-visible { outline: 3px solid var(--nose); outline-offset: 4px; }
@media (max-width: 1100px) {
  .capability-content.has-example { grid-template-columns: minmax(0, 1fr); }
  .capability-scene { justify-self: center; width: min(370px, 100%); order: -1; }
  .capability-illustration { max-width: 36rem; order: -1; }
}
@media (max-width: 760px) {
  .caps.caps-two, .caps.caps-three { grid-template-columns: minmax(0, 1fr); }
  .capability-matrix th:first-child { min-width: 7rem; max-width: 7rem; overflow-wrap: anywhere; }
}
