/* Themes of the permanent page. Each block sets the tokens of landing.css and adds the details that give the theme its
   identity; accents (data-accent) only change colour tokens. Graphite is the platform's own look and the default. */

/* ---------- Graphite: the swapixai.pro look — graphite surfaces, Unbounded name, Telegram-blue main button. ---------- */
.theme-graphite { --avatar: 104px; --avatar-radius: 32px; }
.theme-graphite .landing-bg { background: radial-gradient(70% 38% at 50% 0%, rgb(46 140 220 / .2) 0%, transparent 72%), radial-gradient(60% 30% at 100% 100%, rgb(122 92 255 / .1) 0%, transparent 70%), var(--bg); }
.theme-graphite .landing-hero { align-items: center; text-align: center; }
.theme-graphite .landing-avatar { border: 0; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 22px 44px -18px rgb(0 0 0 / .85); }
.theme-graphite .landing-description { text-align: center; }
.theme-graphite .landing-cta { min-height: 64px; background: linear-gradient(180deg, #2a93dd, #1a7bbe); box-shadow: 0 18px 36px -16px rgb(30 130 210 / .8), inset 0 1px 0 rgb(255 255 255 / .22); }
.theme-graphite .landing-save { justify-content: center; padding: 4px 0 0; border: 0; color: var(--muted); font-size: 13.5px; text-align: center; }
.theme-graphite .landing-save .landing-glyph { display: none; }
@media (hover: hover) { .theme-graphite .landing-cta:hover { background: linear-gradient(180deg, #359fe8, #1f88d0); } }
/* On a wide screen the column becomes a panel, like the cards of the website. */
@media (min-width: 760px) {
  .theme-graphite:not(.is-preview) .landing-sheet { max-width: 480px; padding: 36px 32px 30px; border: 1px solid var(--line); border-radius: 30px; background: #202023; box-shadow: 0 40px 90px -50px rgb(0 0 0 / .9); }
}

/* ---------- Neon: a night stage — a spinning light ring around a round avatar, condensed capitals, glowing pills. ---------- */
.theme-neon {
  --accent: #3bd9ff; --accent-ink: #021a22;
  --bg: #04060c; --surface: rgb(255 255 255 / .035); --surface-2: rgb(255 255 255 / .065); --line: color-mix(in srgb, var(--accent) 32%, transparent);
  --line-strong: color-mix(in srgb, var(--accent) 70%, transparent); --text: #eef6ff; --text-2: #c2cfe2; --muted: #8696ae;
  --cta: var(--accent); --cta-hover: color-mix(in srgb, var(--accent) 86%, white); --cta-ink: var(--accent-ink);
  --chip: color-mix(in srgb, var(--accent) 15%, transparent); --chip-ink: var(--accent); --focus: var(--accent);
  --font-title: Oswald, "Arial Narrow", Onest, sans-serif; --title-weight: 600; --title-tracking: .025em; --title-leading: 1.02;
  --title-s: 48px; --title-m: 40px; --title-l: 31px; --title-xl: 26px;
  --avatar: 128px; --avatar-radius: 50%; --radius-cta: 999px; --radius-button: 999px; --icon-radius: 50%;
}
.theme-neon[data-accent="violet"] { --accent: #a78bfa; --accent-ink: #160b33; }
.theme-neon[data-accent="rose"] { --accent: #ff6fa3; --accent-ink: #2d0716; }
.theme-neon[data-accent="amber"] { --accent: #ffbe55; --accent-ink: #2b1800; }
.theme-neon .landing-bg { background:
  radial-gradient(55% 34% at 50% 14%, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 72%),
  radial-gradient(80% 50% at 50% 115%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 70%), var(--bg); }
.theme-neon .landing-bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 50% 50%, rgb(255 255 255 / .9) 0 .6px, transparent 1px) 0 0 / 46px 46px;
  mask-image: radial-gradient(70% 45% at 50% 20%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 45% at 50% 20%, #000, transparent 75%); }
.theme-neon .landing-hero, .theme-neon .landing-description, .theme-neon .landing-save { text-align: center; }
.theme-neon .landing-hero { align-items: center; }
.theme-neon .landing-avatar { overflow: visible; padding: 7px; border: 0; background: transparent; margin-bottom: 22px; }
.theme-neon .landing-avatar::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), transparent 28%, color-mix(in srgb, var(--accent) 60%, white) 50%, transparent 78%, var(--accent));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: neon-spin 9s linear infinite; }
.theme-neon .landing-avatar::after { content: ""; position: absolute; inset: 4px; z-index: -1; border-radius: 50%; box-shadow: 0 0 34px 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.theme-neon .landing-avatar img, .theme-neon .landing-initial { border-radius: 50%; background: #0b1020; }
.theme-neon .landing-initial { color: var(--accent); }
.theme-neon .landing-title { text-transform: uppercase; text-shadow: 0 0 28px color-mix(in srgb, var(--accent) 40%, transparent); }
.theme-neon .landing-handle { letter-spacing: .02em; }
.theme-neon .landing-status { padding: 0; background: transparent; color: var(--text-2); }
.theme-neon .landing-status .landing-dot { color: var(--ok); box-shadow: 0 0 10px 1px currentColor; }
.theme-neon .landing-status.is-paused .landing-dot { color: var(--warn); }
.theme-neon .landing-status.is-idle .landing-dot { color: var(--idle); box-shadow: none; }
.theme-neon .landing-description { font-size: 15.5px; }
.theme-neon .landing-cta { min-height: 64px; font: 600 19px/1.1 var(--font-title); letter-spacing: .07em; text-transform: uppercase;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 70%, white), 0 14px 38px -12px var(--accent), inset 0 1px 0 rgb(255 255 255 / .45); }
.theme-neon .landing-cta .landing-icon { width: 46px; height: 46px; background: var(--accent-ink); color: var(--accent); }
.theme-neon .landing-button { min-height: 62px; padding-inline-end: 18px; background: rgb(255 255 255 / .025); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.theme-neon .landing-text strong { font: 500 17px/1.15 var(--font-title); letter-spacing: .05em; text-transform: uppercase; }
.theme-neon .landing-chip { border-color: rgb(255 255 255 / .16); }
.theme-neon .landing-chip-icon { color: var(--accent); }
.theme-neon .landing-save { justify-content: center; border-color: rgb(255 255 255 / .14); }
@media (hover: hover) {
  .theme-neon .landing-cta:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 70%, white), 0 16px 48px -8px var(--accent), inset 0 1px 0 rgb(255 255 255 / .45); }
  .theme-neon .landing-button:hover { box-shadow: 0 0 24px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
  .theme-neon .landing-chip:hover { border-color: var(--line-strong); }
}
@keyframes neon-spin { to { transform: rotate(1turn); } }

/* ---------- Aurora: frosted glass floating over slow northern lights; light, airy type. ---------- */
.theme-aurora {
  --a1: #2dd4bf; --a2: #7c5cff; --a3: #3b82f6;
  --bg: #0b0d1c; --surface: rgb(255 255 255 / .07); --surface-2: rgb(255 255 255 / .12); --line: rgb(255 255 255 / .15); --line-strong: rgb(255 255 255 / .32);
  --text: #f6f7ff; --text-2: rgb(236 240 255 / .8); --muted: rgb(226 232 255 / .6); --ok: #6ee7b7; --warn: #fcd34d; --idle: rgb(226 232 255 / .6);
  --cta: #fff; --cta-hover: #eef0ff; --cta-ink: #0e1022; --chip: rgb(255 255 255 / .1); --chip-ink: #fff; --focus: #fff;
  --font-title: Onest, system-ui, sans-serif; --title-weight: 300; --title-tracking: -.03em; --title-leading: 1.08;
  --title-s: 42px; --title-m: 35px; --title-l: 28px; --title-xl: 24px;
  --avatar: 104px; --avatar-radius: 50%; --radius-cta: 999px; --radius-button: 22px; --icon-radius: 50%; --sheet-max: 460px;
}
.theme-aurora[data-accent="dusk"] { --a1: #ff8fab; --a2: #ffb86b; --a3: #8b5cf6; }
.theme-aurora[data-accent="ocean"] { --a1: #22d3ee; --a2: #2563eb; --a3: #818cf8; }
.theme-aurora .landing-bg::before { content: ""; position: absolute; inset: -25%; opacity: .62; filter: blur(46px) saturate(125%);
  background: radial-gradient(38% 32% at 22% 22%, var(--a1), transparent 70%), radial-gradient(42% 36% at 82% 16%, var(--a2), transparent 70%),
    radial-gradient(48% 40% at 60% 82%, var(--a3), transparent 70%), radial-gradient(30% 26% at 12% 78%, var(--a2), transparent 70%);
  animation: aurora-drift 28s ease-in-out infinite alternate; }
.theme-aurora .landing-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 40%, transparent 40%, rgb(5 6 16 / .55)); }
.theme-aurora .landing-sheet { margin-top: 10px; padding: 30px 20px 22px; border: 1px solid rgb(255 255 255 / .16); border-radius: 34px;
  background: linear-gradient(180deg, rgb(255 255 255 / .11), rgb(255 255 255 / .04)); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 40px 80px -40px rgb(0 0 0 / .7); }
.theme-aurora .landing-hero, .theme-aurora .landing-description { text-align: center; }
.theme-aurora .landing-hero { align-items: center; }
.theme-aurora .landing-avatar { border: 2px solid rgb(255 255 255 / .55); box-shadow: 0 16px 36px -14px rgb(0 0 0 / .6); background: rgb(255 255 255 / .1); }
.theme-aurora .landing-initial { color: #fff; font-weight: 300; }
.theme-aurora .landing-status { background: rgb(255 255 255 / .1); color: var(--text-2); }
.theme-aurora .landing-status .landing-dot { color: var(--ok); }
.theme-aurora .landing-status.is-paused .landing-dot { color: var(--warn); }
.theme-aurora .landing-status.is-idle .landing-dot { color: var(--idle); }
.theme-aurora .landing-cta { box-shadow: 0 18px 40px -18px rgb(0 0 0 / .65); }
.theme-aurora .landing-cta .landing-icon { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; }
.theme-aurora .landing-button { background: rgb(255 255 255 / .07); }
.theme-aurora .landing-chip { background: rgb(255 255 255 / .06); }
.theme-aurora .landing-chip-icon { color: #fff; }
.theme-aurora .landing-save { border: 0; background: rgb(255 255 255 / .06); border-radius: 18px; }
@keyframes aurora-drift { from { transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1); } to { transform: translate3d(5%, 4%, 0) rotate(8deg) scale(1.08); } }

/* ---------- Studio: a light photo-studio backdrop; the avatar is a taped print; a serif name like a caption. ---------- */
.theme-studio {
  --ink: #14233a;
  --bg: #eceef1; --surface: #fff; --surface-2: #fbfbfc; --line: #d8dce2; --line-strong: #aeb5bf;
  --text: #161a21; --text-2: #3b424e; --muted: #5c6371; --ok: #1d7f4f; --warn: #8a5800; --idle: #5c6371;
  --cta: var(--ink); --cta-hover: color-mix(in srgb, var(--ink) 86%, white); --cta-ink: #fff; --chip: #eff1f4; --chip-ink: var(--ink); --focus: var(--ink);
  --font-title: "Studio Serif", Georgia, "Times New Roman", serif; --title-weight: 600; --title-tracking: -.015em; --title-leading: 1.06;
  --title-s: 42px; --title-m: 35px; --title-l: 28px; --title-xl: 24px;
  --avatar: 132px; --avatar-radius: 2px; --radius-cta: 14px; --radius-button: 14px; --icon-radius: 10px;
  color-scheme: light;
}
.theme-studio[data-accent="crimson"] { --ink: #b4232c; }
.theme-studio[data-accent="cobalt"] { --ink: #1d4ed8; }
.theme-studio .landing-bg { background: radial-gradient(65% 42% at 50% -4%, #fff 0%, rgb(255 255 255 / 0) 72%), linear-gradient(180deg, #dcdfe4 0%, #eceef1 48%, #f7f7f8 100%); }
.theme-studio .landing-bg::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: radial-gradient(90% 60% at 50% 100%, rgb(22 28 40 / .07), transparent 70%); }
.theme-studio .landing-avatar { overflow: visible; margin: 10px 0 28px 4px; padding: 8px 8px 9px; border: 0; border-radius: 3px; background: #fff; rotate: -3deg;
  box-shadow: 0 1px 1px rgb(16 20 30 / .1), 0 20px 34px -16px rgb(16 20 30 / .45); }
.theme-studio .landing-avatar::before { content: ""; position: absolute; top: -11px; left: 50%; width: 58px; height: 22px; transform: translateX(-50%) rotate(5deg);
  background: rgb(250 250 246 / .72); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.theme-studio .landing-avatar img { border-radius: 1px; }
.theme-studio .landing-initial { border-radius: 1px; background: linear-gradient(160deg, #e7e9ed, #d9dce2); color: var(--ink); }
.theme-studio .landing-handle { font-size: 14.5px; }
.theme-studio .landing-status { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.theme-studio .landing-description { font: 400 17.5px/1.6 "Studio Serif", Georgia, serif; }
.theme-studio .landing-cta { box-shadow: 0 14px 26px -16px color-mix(in srgb, var(--ink) 80%, transparent); }
.theme-studio .landing-button { box-shadow: 0 1px 2px rgb(16 24 40 / .05); }
.theme-studio .landing-chip { background: rgb(255 255 255 / .55); }
.theme-studio .landing-chip-icon { color: var(--ink); }
@media (hover: hover) { .theme-studio .landing-chip:hover { background: #fff; } }

/* ---------- Poster: a printed poster — huge black capitals, thick frames, hard offset shadows that press in. ---------- */
.theme-poster {
  --paper: #e8462f; --on: #111; --box: #fff; --box-ink: #111; --cta-shadow: #fff;
  --bg: var(--paper); --surface: var(--box); --surface-2: var(--box); --line: #111; --line-strong: #111;
  --text: var(--on); --text-2: var(--on); --muted: var(--on); --ok: var(--on); --warn: var(--on); --idle: var(--on);
  --cta: #111; --cta-hover: #111; --cta-ink: #fff; --chip: var(--paper); --chip-ink: #111; --focus: var(--on);
  --font-title: Unbounded, Onest, sans-serif; --title-weight: 900; --title-tracking: -.025em; --title-leading: .98;
  --title-s: clamp(38px, 12.4vw, 52px); --title-m: clamp(32px, 10vw, 40px); --title-l: clamp(26px, 8vw, 31px); --title-xl: clamp(22px, 6.6vw, 25px);
  --avatar: 112px; --avatar-radius: 0; --radius-cta: 0; --radius-button: 0; --radius-tile: 0; --icon-radius: 0;
  color-scheme: light;
}
.theme-poster[data-accent="cobalt"] { --paper: #2547f0; --on: #fff; --chip: #2547f0; --chip-ink: #fff; }
.theme-poster[data-accent="sun"] { --paper: #f5c12e; }
.theme-poster[data-accent="paper"] { --paper: #e7e7e4; --cta-shadow: #e8462f; --chip: #e8462f; --chip-ink: #fff; }
.theme-poster .landing-bg::before { content: ""; position: absolute; width: 300px; height: 300px; right: -150px; top: -150px; border: 3px solid var(--on); border-radius: 50%; }
.theme-poster .landing-bg::after { content: ""; position: absolute; width: 26px; height: 26px; right: 96px; top: 118px; border-radius: 50%; background: var(--on); }
.theme-poster .landing-avatar { margin-bottom: 24px; border: 3px solid #111; background: var(--box); box-shadow: 7px 7px 0 #111; rotate: -2.5deg; }
.theme-poster .landing-initial { background: var(--box); color: #111; font-weight: 900; }
.theme-poster .landing-title { text-transform: uppercase; }
.theme-poster .landing-handle { color: var(--on); font-weight: 700; }
.theme-poster .landing-status { padding: 5px 12px 5px 10px; border: 2px solid #111; border-radius: 0; background: var(--box); color: #111; font-weight: 700; }
.theme-poster .landing-status .landing-dot { color: #1f9d55; box-shadow: none; }
.theme-poster .landing-status.is-paused .landing-dot { color: #d97706; }
.theme-poster .landing-status.is-idle .landing-dot { color: #6b7280; }
.theme-poster .landing-count, .theme-poster .landing-count b { color: var(--on); font-weight: 700; }
.theme-poster .landing-description { font-weight: 600; font-size: 17px; line-height: 1.5; }
.theme-poster .landing-actions { gap: 14px; }
.theme-poster .landing-cta { min-height: 66px; border: 3px solid #111; box-shadow: 6px 6px 0 var(--cta-shadow); font: 800 18px/1.1 var(--font-title); text-transform: uppercase; letter-spacing: -.01em;
  transition: transform .12s ease-out, box-shadow .12s ease-out; }
.theme-poster .landing-cta .landing-icon { background: var(--paper); color: var(--on); }
.theme-poster .landing-button { border: 3px solid #111; color: #111; box-shadow: 5px 5px 0 #111; transition: transform .12s ease-out, box-shadow .12s ease-out; }
.theme-poster .landing-text strong { font-weight: 800; }
.theme-poster .landing-text small, .theme-poster .landing-chevron { color: #3d3d3d; }
.theme-poster .landing-chip { border: 2px solid var(--on); color: var(--on); font-weight: 700; }
.theme-poster .landing-chip-icon { color: var(--on); }
.theme-poster .landing-save { border: 2px dashed var(--on); border-radius: 0; color: var(--on); font-weight: 600; }
.theme-poster .landing-save .landing-glyph, .theme-poster .landing-footnote { color: var(--on); }
.theme-poster :is(.landing-lang, .landing-share) { border: 2px solid var(--on); border-radius: 0; background: var(--paper); color: var(--on); }
.theme-poster .landing-lang span, .theme-poster .landing-foot { color: var(--on); }
.theme-poster .landing-page :is(.landing-cta, .landing-button):active, .theme-poster :is(.landing-cta, .landing-button):active { transform: translate(5px, 5px); box-shadow: 0 0 0 transparent; }
@media (hover: hover) {
  .theme-poster .landing-cta:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--cta-shadow); }
  .theme-poster .landing-button:hover { background: var(--box); border-color: #111; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #111; }
  .theme-poster .landing-chip:hover { background: var(--on); color: var(--paper); border-color: var(--on); }
  .theme-poster .landing-chip:hover .landing-chip-icon { color: var(--paper); }
}
.theme-poster:not(.is-preview) .landing-hero > .landing-title { animation-name: poster-slam; animation-duration: .5s; }
@keyframes poster-slam { from { opacity: .35; transform: scale(1.08); } 60% { opacity: 1; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- Terminal: a phosphor screen — monospaced, scanlines, a command prompt with a blinking cursor. ---------- */
.theme-terminal {
  --fg: #ffb547; --bg: #0f0b06;
  --text: var(--fg); --text-2: color-mix(in srgb, var(--fg) 84%, var(--bg)); --muted: color-mix(in srgb, var(--fg) 62%, var(--bg));
  --surface: color-mix(in srgb, var(--fg) 5%, transparent); --surface-2: color-mix(in srgb, var(--fg) 11%, transparent);
  --line: color-mix(in srgb, var(--fg) 46%, transparent); --line-strong: var(--fg); --ok: var(--fg); --warn: var(--fg); --idle: var(--muted);
  --cta: var(--fg); --cta-hover: color-mix(in srgb, var(--fg) 85%, white); --cta-ink: var(--bg); --chip: transparent; --chip-ink: var(--fg); --focus: var(--fg);
  --font-title: "JetBrains Mono", ui-monospace, Consolas, monospace; --font-text: var(--font-title); --font-ui: var(--font-title);
  --title-weight: 700; --title-tracking: -.01em; --title-leading: 1.2; --title-s: 30px; --title-m: 25px; --title-l: 21px; --title-xl: 18px;
  --avatar: 100px; --avatar-radius: 0; --radius-cta: 0; --radius-button: 0; --radius-tile: 0; --icon-radius: 0;
  text-shadow: 0 0 7px color-mix(in srgb, var(--fg) 42%, transparent);
}
.theme-terminal[data-accent="green"] { --fg: #7ff0a8; --bg: #06100a; }
.theme-terminal[data-accent="ice"] { --fg: #a5dcff; --bg: #060b12; }
.theme-terminal .landing-bg { background: radial-gradient(110% 75% at 50% 30%, color-mix(in srgb, var(--fg) 8%, var(--bg)) 0%, var(--bg) 72%); }
.theme-terminal .landing-bg::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgb(0 0 0 / .26) 0 1px, transparent 1px 3px); }
.theme-terminal .landing-avatar { padding: 5px; border: 1px solid var(--line); background: transparent; }
.theme-terminal .landing-avatar img { filter: saturate(.8) contrast(1.06); }
.theme-terminal .landing-avatar::after { content: ""; position: absolute; inset: 5px; background: repeating-linear-gradient(to bottom, rgb(0 0 0 / .22) 0 1px, transparent 1px 3px), color-mix(in srgb, var(--fg) 10%, transparent); mix-blend-mode: multiply; }
.theme-terminal .landing-initial { background: var(--surface); color: var(--fg); }
.theme-terminal .landing-title::before { content: "> "; color: var(--muted); }
.theme-terminal .landing-title::after { content: ""; display: inline-block; width: .55em; height: .95em; margin-left: .15em; vertical-align: -.1em; background: var(--fg); animation: terminal-blink 1.1s steps(1) infinite; }
.theme-terminal .landing-handle { margin-top: 10px; font-size: 14px; }
.theme-terminal .landing-status { padding: 0; background: transparent; color: var(--text-2); font-size: 13.5px; }
.theme-terminal .landing-status .landing-dot { display: none; }
.theme-terminal .landing-status::before { content: "[  OK  ]"; color: var(--fg); font-weight: 700; white-space: pre; }
.theme-terminal .landing-status.is-paused::before { content: "[ WARN ]"; }
.theme-terminal .landing-status.is-idle::before { content: "[ ---- ]"; color: var(--muted); }
.theme-terminal .landing-description { font-size: 14.5px; line-height: 1.7; }
.theme-terminal .landing-cta { min-height: 58px; padding: 10px 18px; font: 700 16px/1.2 var(--font-ui); text-shadow: none; box-shadow: 0 0 22px -4px color-mix(in srgb, var(--fg) 60%, transparent); }
.theme-terminal .landing-cta .landing-icon { display: none; }
.theme-terminal .landing-label { padding: 0; }
.theme-terminal .landing-label::before { content: "[ "; }
.theme-terminal .landing-label::after { content: " ]"; }
.theme-terminal .landing-button { min-height: 60px; border-style: dashed; }
.theme-terminal .landing-icon { width: 38px; height: 38px; border: 1px solid var(--line); }
.theme-terminal .landing-text strong { font-size: 15px; font-weight: 700; }
.theme-terminal .landing-text small { font-size: 12.5px; }
.theme-terminal .landing-extras { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.theme-terminal .landing-chip { min-height: 44px; flex-direction: row; padding: 6px 2px; border: 0; color: var(--fg); font-size: 14px; }
.theme-terminal .landing-chip-icon { display: none; }
.theme-terminal .landing-chip > span:last-child::before { content: "[ "; color: var(--muted); }
.theme-terminal .landing-chip > span:last-child::after { content: " ]"; color: var(--muted); }
.theme-terminal .landing-save { border-style: dashed; border-color: var(--line); font-size: 13px; }
.theme-terminal :is(.landing-lang, .landing-share) { border-radius: 0; }
/* On a wide screen the page sits in a terminal window frame. */
@media (min-width: 760px) {
  .theme-terminal:not(.is-preview) .landing-sheet { max-width: 520px; padding: 46px 30px 28px; border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 3%, transparent); position: relative; }
  .theme-terminal:not(.is-preview) .landing-sheet::before { content: "swapix@link:~$ open"; position: absolute; inset: 0 0 auto; height: 30px; padding: 0 14px; display: flex; align-items: center;
    border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
}
@media (hover: hover) {
  .theme-terminal .landing-button:hover { border-style: solid; border-color: var(--fg); }
  .theme-terminal .landing-chip:hover { background: var(--fg); color: var(--bg); text-shadow: none; }
}
@keyframes terminal-blink { 50% { opacity: 0; } }

/* ---------- Velvet: wine velvet and champagne gold; an italic serif name framed by thin rings. ---------- */
.theme-velvet {
  --gold: #e9cfa4; --gold-ink: #2a0d17;
  --bg: #160910; --surface: rgb(255 255 255 / .025); --surface-2: color-mix(in srgb, var(--gold) 8%, transparent);
  --line: color-mix(in srgb, var(--gold) 38%, transparent); --line-strong: color-mix(in srgb, var(--gold) 75%, transparent);
  --text: #f7ede6; --text-2: rgb(247 237 230 / .78); --muted: rgb(247 237 230 / .56); --ok: #b9e4c4; --warn: #f3d08a; --idle: rgb(247 237 230 / .56);
  --cta: var(--gold); --cta-hover: color-mix(in srgb, var(--gold) 88%, white); --cta-ink: var(--gold-ink);
  --chip: color-mix(in srgb, var(--gold) 13%, transparent); --chip-ink: var(--gold); --focus: var(--gold);
  --font-title: "Velvet Serif", Georgia, serif; --title-weight: 500; --title-tracking: 0em; --title-leading: 1.08;
  --title-s: 48px; --title-m: 40px; --title-l: 31px; --title-xl: 26px;
  --avatar: 112px; --avatar-radius: 50%; --radius-cta: 999px; --radius-button: 999px; --icon-radius: 50%;
}
.theme-velvet[data-accent="rose"] { --gold: #f2b5a7; --gold-ink: #2b0f12; }
.theme-velvet[data-accent="pearl"] { --gold: #e6e2ee; --gold-ink: #1d1626; }
.theme-velvet .landing-bg { background: radial-gradient(95% 55% at 50% -8%, #4c1527 0%, rgb(76 21 39 / 0) 68%), radial-gradient(70% 45% at 100% 105%, #2c0c19 0%, transparent 70%), var(--bg); }
.theme-velvet .landing-bg::after { content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.theme-velvet .landing-hero, .theme-velvet .landing-description, .theme-velvet .landing-save, .theme-velvet .landing-footnote { text-align: center; }
.theme-velvet .landing-hero { align-items: center; }
.theme-velvet .landing-avatar { overflow: visible; margin: 14px 0 30px; border: 0; background: transparent; }
.theme-velvet .landing-avatar::before, .theme-velvet .landing-avatar::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.theme-velvet .landing-avatar::before { inset: -8px; border: 1px solid var(--gold); }
.theme-velvet .landing-avatar::after { inset: -16px; border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent); }
.theme-velvet .landing-avatar img, .theme-velvet .landing-initial { border-radius: 50%; }
.theme-velvet .landing-initial { background: radial-gradient(circle at 35% 30%, #3a1322, #1d0a12); color: var(--gold); font-style: italic; }
.theme-velvet .landing-title { font-style: italic; }
.theme-velvet .landing-title::after { content: ""; display: block; width: 84px; height: 9px; margin: 16px auto 0; background: var(--gold);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='9'%3E%3Cpath d='M0 4.5h33M51 4.5h33' stroke='%23000'/%3E%3Cpath d='M42 .5l4 4-4 4-4-4z'/%3E%3C/svg%3E") center / 84px 9px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='9'%3E%3Cpath d='M0 4.5h33M51 4.5h33' stroke='%23000'/%3E%3Cpath d='M42 .5l4 4-4 4-4-4z'/%3E%3C/svg%3E") center / 84px 9px no-repeat; }
.theme-velvet .landing-handle { margin-top: 12px; letter-spacing: .04em; font-size: 14px; }
.theme-velvet .landing-status { padding: 0; background: transparent; color: var(--text-2); font-size: 13px; }
.theme-velvet .landing-status .landing-dot { color: var(--ok); width: 6px; height: 6px; }
.theme-velvet .landing-status.is-paused .landing-dot { color: var(--warn); }
.theme-velvet .landing-status.is-idle .landing-dot { color: var(--idle); }
.theme-velvet .landing-description { font-size: 15.5px; font-weight: 300; line-height: 1.7; }
.theme-velvet .landing-cta { box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--gold) 70%, transparent), inset 0 1px 0 rgb(255 255 255 / .5); }
.theme-velvet .landing-cta .landing-icon { background: color-mix(in srgb, var(--gold-ink) 12%, transparent); }
.theme-velvet .landing-button { min-height: 62px; padding-inline-end: 18px; background: transparent; }
.theme-velvet .landing-text strong { font-weight: 500; }
.theme-velvet .landing-chip { border-color: color-mix(in srgb, var(--gold) 26%, transparent); color: var(--text-2); }
.theme-velvet .landing-chip-icon { color: var(--gold); }
.theme-velvet .landing-save { justify-content: center; border: 1px solid color-mix(in srgb, var(--gold) 20%, transparent); border-radius: 18px; }
.theme-velvet:not(.is-preview) .landing-hero > * { animation-duration: .6s; }

/* ---------- Chat: the page is a Telegram chat with the bot — its header, the bot's message with an inline keyboard, and
   the main button as the «START» bar that never leaves the thumb. ---------- */
.theme-chat {
  --bar: #17212b; --bar-line: #0b121a; --service: rgb(0 0 0 / .3); --key: rgb(255 255 255 / .1); --key-ink: #fff;
  --bg: #0e1621; --surface: #182533; --surface-2: #1f2f40; --line: #233446; --line-strong: #2f455c;
  --text: #fff; --text-2: #e3ecf5; --muted: #8496a9; --ok: #6fd38a; --warn: #f0c060; --idle: #9fb0c0;
  --cta: #2ea6ff; --cta-hover: #49b2ff; --cta-ink: #fff; --chip: #213449; --chip-ink: #9bd0ff; --focus: #8ec5ff;
  --font-title: Onest, system-ui, sans-serif; --title-weight: 650; --title-tracking: 0em; --title-leading: 1.2;
  --title-s: 17px; --title-m: 17px; --title-l: 16px; --title-xl: 15px; --avatar: 42px; --avatar-radius: 50%; --sheet-max: 520px;
  padding: 0 12px calc(86px + env(safe-area-inset-bottom));
}
.theme-chat[data-accent="day"] {
  --bar: #fff; --bar-line: #d5dee6; --service: rgb(52 84 110 / .5); --key: rgb(40 76 104 / .46); --key-ink: #fff;
  --bg: #cfdfe9; --surface: #fff; --surface-2: #f3f7fa; --line: #dfe7ee; --line-strong: #c8d4de; --text: #111a22; --text-2: #1d2a36; --muted: #627586;
  --ok: #7be08f; --warn: #ffd479; --idle: #dfe8ef; --cta: #2f8fea; --cta-hover: #1f7fd9; --chip: #fff; --chip-ink: #1f70c2; --focus: #1f70c2;
  color-scheme: light;
}
.theme-chat .landing-bg { background-color: var(--bg);
  background-image: radial-gradient(circle at 12px 12px, rgb(255 255 255 / .05) 1.5px, transparent 2px), radial-gradient(circle at 36px 30px, rgb(255 255 255 / .035) 2.5px, transparent 3px),
    radial-gradient(60% 40% at 80% 10%, rgb(46 166 255 / .13), transparent 70%), radial-gradient(70% 45% at 10% 90%, rgb(122 92 255 / .12), transparent 70%);
  background-size: 48px 48px, 48px 48px, auto, auto; }
.theme-chat[data-accent="day"] .landing-bg { background-image: radial-gradient(circle at 12px 12px, rgb(255 255 255 / .5) 1.5px, transparent 2px), radial-gradient(circle at 36px 30px, rgb(255 255 255 / .38) 2.5px, transparent 3px),
    radial-gradient(60% 40% at 85% 8%, rgb(255 255 255 / .55), transparent 70%), radial-gradient(70% 45% at 5% 95%, rgb(126 190 160 / .35), transparent 70%); }
/* The language switch sits in the header, over its right end. */
.theme-chat .landing-top { position: relative; z-index: 3; height: 62px; min-height: 0; margin-bottom: -62px; }
.theme-chat :is(.landing-lang, .landing-share) { min-height: 44px; border-color: transparent; background: color-mix(in srgb, var(--text) 8%, transparent); }
.theme-chat .landing-sheet { padding-top: 0; }
.theme-chat .landing-hero { position: relative; display: grid; grid-template-columns: var(--avatar) minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 10px 132px 0 2px; }
/* In the header «Поделиться» is its sign alone. */
.theme-chat .landing-share { min-width: 44px; padding: 0; }
/* The word stays for screen readers and voice control (and says «copied» there); the sign turns green on a copy. */
.theme-chat .landing-share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.theme-chat .landing-share { position: relative; }
.theme-chat .landing-count { grid-column: 1 / -1; justify-self: center; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: var(--service); color: #fff; font-size: 12.5px; }
.theme-chat .landing-count b { color: #fff; }
.theme-chat .landing-hero::before { content: ""; position: absolute; z-index: -1; top: 0; left: calc(50% - 50vw); width: 100vw; height: 62px; background: var(--bar); box-shadow: 0 1px 0 var(--bar-line); }
.theme-chat .landing-avatar { grid-row: 1 / span 2; margin: 0; border: 0; }
.theme-chat .landing-initial { background: linear-gradient(160deg, #5fb8ff, #2a82d8); color: #fff; font: 650 18px/1 Onest, system-ui, sans-serif; }
.theme-chat .landing-title { grid-column: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-chat .landing-handle { grid-column: 2; margin-top: 0; font-size: 13.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The status is the chat's service line under the header. */
.theme-chat .landing-status { grid-column: 1 / -1; justify-self: center; margin-top: 26px; padding: 5px 12px 5px 10px; background: var(--service); color: #fff; font-size: 13px; text-align: center; }
/* The description is the bot's message; the buttons are its inline keyboard. */
.theme-chat .landing-description { align-self: flex-start; width: 88%; margin-top: 12px; padding: 10px 14px 11px; border-radius: 6px 18px 18px 18px;
  background: var(--surface); color: var(--text-2); line-height: 1.45; box-shadow: 0 1px 1px rgb(0 0 0 / .16); }
.theme-chat .landing-actions { width: 88%; margin-top: 5px; gap: 5px; }
.theme-chat .landing-actions:has(> .landing-cta:only-child) { margin-top: 0; }
.theme-chat .landing-button { position: relative; min-height: 46px; display: flex; justify-content: center; padding: 8px 30px; border: 0; border-radius: 8px; background: var(--key); color: var(--key-ink); text-align: center; }
.theme-chat .landing-button .landing-icon, .theme-chat .landing-button small { display: none; }
.theme-chat .landing-button strong { font: 600 15px/1.25 Onest, system-ui, sans-serif; }
.theme-chat .landing-button .landing-chevron { position: absolute; top: 5px; right: 6px; rotate: -45deg; color: color-mix(in srgb, var(--key-ink) 62%, transparent); }
.theme-chat .landing-button .landing-chevron .landing-glyph { width: 12px; height: 12px; stroke-width: 2.6; }
.theme-chat .landing-button:last-child { border-radius: 8px 8px 14px 14px; }
.theme-chat .landing-missing { border: 0; border-radius: 6px 18px 18px 18px; }
.theme-chat .landing-cta { position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; min-height: 0; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 16px env(safe-area-inset-bottom);
  border-radius: 0; background: var(--bar); box-shadow: 0 -1px 0 var(--bar-line); animation: none !important; }
.theme-chat .landing-cta::before { content: ""; position: absolute; inset: 9px max(12px, calc(50% - 260px)) calc(9px + env(safe-area-inset-bottom)); border-radius: 12px; background: var(--cta); transition: background-color .18s var(--ease); }
.theme-chat .landing-cta > * { position: relative; }
.theme-chat .landing-cta .landing-icon { width: 30px; height: 30px; margin-inline-start: auto; background: none; }
.theme-chat .landing-cta .landing-label { flex: none; max-width: calc(100% - 60px); margin-inline-end: auto; padding: 0; font: 700 15.5px/1.15 Onest, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
/* Platform links: reply-keyboard chips; the note is another service line. */
.theme-chat .landing-extras { margin-top: 18px; gap: 6px; }
.theme-chat .landing-chip { min-height: 46px; flex-direction: row; gap: 7px; padding: 6px 8px; border: 0; border-radius: 12px; background: var(--chip); color: var(--chip-ink); font-size: 12.5px; box-shadow: 0 1px 1px rgb(0 0 0 / .12); }
/* Three keys share a phone row: words only, like a reply keyboard. */
.theme-chat .landing-chip-icon { display: none; }
.theme-chat .landing-save { align-self: center; max-width: 100%; margin-top: 16px; padding: 7px 14px; border: 0; border-radius: 16px; background: var(--service); color: #fff; font-size: 12.5px; text-align: center; }
.theme-chat .landing-save .landing-glyph { display: none; }
.theme-chat .landing-footnote { color: var(--muted); }
.theme-chat .landing-foot { padding-top: 18px; }
.theme-chat.is-preview { padding: 0 12px 86px; }
.theme-chat.is-preview .landing-hero::before { left: -12px; width: calc(100% + 24px); }
.theme-chat.is-preview .landing-cta { position: absolute; }
/* A miniature shows the top of the page: the bar moves up into view. */
.theme-chat.is-thumb .landing-cta { top: 534px; bottom: auto; }
@media (hover: hover) {
  .theme-chat .landing-cta:hover { background: var(--bar); }
  .theme-chat .landing-cta:hover::before { background: var(--cta-hover); }
  .theme-chat .landing-button:hover { background: color-mix(in srgb, var(--key) 100%, transparent); filter: brightness(1.18); }
  .theme-chat .landing-chip:hover { color: var(--chip-ink); filter: brightness(1.1); }
}

/* ---------- Cover: the picture is the page — full width at the top, its colours spread behind, the name over it. ---------- */
.theme-cover {
  --bg: #0b0b0e; --surface: rgb(255 255 255 / .07); --surface-2: rgb(255 255 255 / .12); --line: rgb(255 255 255 / .13); --line-strong: rgb(255 255 255 / .28);
  --text: #fff; --text-2: rgb(255 255 255 / .84); --muted: rgb(255 255 255 / .6); --ok: #74dc9c; --warn: #f5cf74; --idle: rgb(255 255 255 / .6);
  --cta: #fff; --cta-hover: #ededf0; --cta-ink: #0b0b0e; --chip: rgb(255 255 255 / .12); --chip-ink: #fff; --focus: #fff;
  --title-weight: 700; --title-s: clamp(30px, 9.3vw, 36px); --title-m: clamp(26px, 8vw, 30px); --title-l: 24px; --title-xl: 20px; --title-leading: 1.06;
  --radius-cta: 999px; --radius-button: 22px; --radius-tile: 20px; --icon-radius: 14px; --cover: min(108vw, 430px);
  padding-top: 0;
}
.theme-cover[data-accent="fire"] { --cta: #ff5a36; --cta-hover: #ff6d4d; --cta-ink: #fff; --focus: #ff8a6d; }
.theme-cover[data-accent="lime"] { --cta: #c8f542; --cta-hover: #d4f864; --cta-ink: #10140a; --focus: #c8f542; }
.theme-cover .landing-backdrop { display: block; position: absolute; top: -10%; left: -30%; width: 160%; height: 80%; object-fit: cover; filter: blur(60px) saturate(160%); opacity: .5; }
.theme-cover .landing-top { position: relative; z-index: 3; margin-top: max(12px, env(safe-area-inset-top)); margin-bottom: calc(-38px - max(12px, env(safe-area-inset-top))); }
.theme-cover :is(.landing-lang, .landing-share) { border: 0; background: rgb(0 0 0 / .45); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.theme-cover .landing-lang span { color: rgb(255 255 255 / .7); }
.theme-cover .landing-sheet { padding-top: 0; }
.theme-cover .landing-hero { align-items: stretch; }
.theme-cover .landing-avatar { width: calc(100% + 32px); height: var(--cover); margin: 0 -16px; border: 0; border-radius: 0; background: #17171c;
  -webkit-mask-image: linear-gradient(#000 52%, rgb(0 0 0 / .75) 70%, transparent 98%); mask-image: linear-gradient(#000 52%, rgb(0 0 0 / .75) 70%, transparent 98%); }
.theme-cover .landing-avatar img { border-radius: 0; object-position: 50% 22%; }
.theme-cover .landing-initial { border-radius: 0; background: radial-gradient(90% 70% at 30% 20%, #7b5cff, transparent 70%), radial-gradient(80% 70% at 85% 30%, #ff4f9a, transparent 70%), #1a1030;
  color: rgb(255 255 255 / .92); font-size: calc(var(--cover) * .36); }
.theme-cover .landing-title { position: relative; margin-top: -96px; text-shadow: 0 2px 24px rgb(0 0 0 / .6); }
.theme-cover .landing-handle { position: relative; margin-top: 10px; color: rgb(255 255 255 / .76); }
.theme-cover .landing-status { position: relative; align-self: flex-start; background: rgb(255 255 255 / .13); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.theme-cover .landing-status .landing-dot { color: var(--ok); }
.theme-cover .landing-status.is-paused .landing-dot { color: var(--warn); }
.theme-cover .landing-status.is-idle .landing-dot { color: var(--idle); }
.theme-cover .landing-count { position: relative; }
.theme-cover .landing-description { margin-top: 16px; }
.theme-cover .landing-actions { margin-top: 22px; }
.theme-cover .landing-cta { min-height: 62px; box-shadow: 0 18px 44px -18px color-mix(in srgb, var(--cta) 60%, transparent); font-size: 17.5px; }
.theme-cover .landing-cta .landing-icon { border-radius: 50%; background: var(--cta-ink); color: var(--cta); }
.theme-cover .landing-button { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.theme-cover .landing-chip { border: 0; background: rgb(255 255 255 / .07); }
.theme-cover .landing-save { padding: 0; border: 0; justify-content: center; color: var(--muted); font-size: 13.5px; }
.theme-cover.is-preview { --cover: 400px; padding-top: 0; }
.theme-cover.is-preview .landing-backdrop { display: none; }
@media (min-width: 760px) {
  .theme-cover:not(.is-preview) { padding-top: 0; }
  .theme-cover:not(.is-preview) .landing-sheet { padding-top: 0; }
  .theme-cover:not(.is-preview) .landing-avatar { border-radius: 0 0 34px 34px; }
}
@media (hover: hover) { .theme-cover .landing-chip:hover { background: rgb(255 255 255 / .13); } }

/* ---------- Gloss: a bright gradient and a white glass card; a round picture in a coloured ring, a glossy main button. ---------- */
.theme-gloss {
  --g1: #ff4f93; --g2: #ff9a5a; --g3: #8f5bff; --ink: #24102c;
  --bg: var(--g1); --surface: #fff; --surface-2: #fff; --line: rgb(36 16 44 / .1); --line-strong: rgb(36 16 44 / .24);
  --text: var(--ink); --text-2: #4a3552; --muted: #76647d; --ok: #12824a; --warn: #8a5a00; --idle: #76647d;
  --cta: var(--g1); --cta-hover: var(--g1); --cta-ink: #fff; --chip: color-mix(in srgb, var(--g1) 13%, #fff); --chip-ink: color-mix(in srgb, var(--g1) 78%, #000); --focus: var(--ink);
  --font-title: Onest, system-ui, sans-serif; --title-weight: 800; --title-tracking: -.02em; --title-s: 32px; --title-m: 27px; --title-l: 22px; --title-xl: 19px;
  --avatar: 108px; --avatar-radius: 50%; --radius-cta: 999px; --radius-button: 22px; --radius-tile: 20px; --icon-radius: 50%;
  color-scheme: light;
}
.theme-gloss[data-accent="peach"] { --g1: #ff7a3d; --g2: #ffc24a; --g3: #ff4f7b; }
.theme-gloss[data-accent="mint"] { --g1: #10b9a0; --g2: #7fe36b; --g3: #2b8cff; }
.theme-gloss[data-accent="berry"] { --g1: #6d4dff; --g2: #c04dff; --g3: #2aa9ff; }
.theme-gloss .landing-bg { background: radial-gradient(90% 60% at 100% 0%, var(--g2), transparent 62%), radial-gradient(90% 70% at 0% 100%, var(--g3), transparent 60%),
  radial-gradient(60% 40% at 20% 10%, rgb(255 255 255 / .35), transparent 70%), var(--g1); }
.theme-gloss :is(.landing-lang, .landing-share) { border: 0; background: rgb(36 16 44 / .26); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.theme-gloss .landing-lang span { color: rgb(255 255 255 / .78); }
.theme-gloss .landing-sheet { margin-top: 64px; padding: 0 16px 18px; border-radius: 34px; background: rgb(255 255 255 / .92); box-shadow: 0 30px 60px -28px rgb(60 10 50 / .55), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.theme-gloss .landing-hero { align-items: center; text-align: center; }
.theme-gloss .landing-avatar { margin-top: -54px; overflow: visible; border: 5px solid #fff; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--g1) 55%, transparent), 0 18px 34px -14px rgb(60 10 50 / .6); }
.theme-gloss .landing-avatar img, .theme-gloss .landing-initial { border-radius: 50%; }
.theme-gloss .landing-initial { background: linear-gradient(150deg, var(--g2), var(--g1) 55%, var(--g3)); color: #fff; }
.theme-gloss .landing-handle { margin-top: 6px; }
.theme-gloss .landing-status { margin-top: 12px; }
.theme-gloss .landing-description { margin-top: 14px; text-align: center; }
.theme-gloss .landing-actions { margin-top: 20px; }
.theme-gloss .landing-cta { min-height: 64px; overflow: hidden; background: linear-gradient(100deg, color-mix(in srgb, var(--g1) 88%, #000), color-mix(in srgb, var(--g3) 88%, #000));
  box-shadow: 0 16px 30px -14px var(--g1), inset 0 -3px 0 rgb(0 0 0 / .14); font: 750 18px/1.2 Onest, system-ui, sans-serif; text-shadow: 0 1px 1px rgb(0 0 0 / .22); }
.theme-gloss .landing-cta::before { content: ""; position: absolute; inset: 3px 10px 52%; border-radius: 999px; background: linear-gradient(rgb(255 255 255 / .36), rgb(255 255 255 / .04)); pointer-events: none; }
.theme-gloss .landing-cta > * { position: relative; }
.theme-gloss .landing-cta .landing-icon { border-radius: 50%; background: #fff; color: color-mix(in srgb, var(--g1) 85%, #000); }
.theme-gloss .landing-button { border: 0; background: #fff; box-shadow: 0 10px 24px -16px rgb(60 10 50 / .5), 0 0 0 1px rgb(36 16 44 / .06); }
.theme-gloss .landing-chip { border: 0; background: var(--chip); color: var(--ink); }
.theme-gloss .landing-chip-icon { color: var(--chip-ink); }
.theme-gloss .landing-save { border: 0; border-radius: 18px; background: rgb(36 16 44 / .05); }
.theme-gloss .landing-foot { color: #fff; }
.theme-gloss.is-preview .landing-sheet { margin-top: 64px; padding-top: 0; }
@media (min-width: 760px) { .theme-gloss:not(.is-preview) .landing-sheet { margin-top: 84px; padding: 0 22px 22px; } }
@media (hover: hover) {
  .theme-gloss .landing-cta:hover { filter: brightness(1.06); }
  .theme-gloss .landing-button:hover { background: #fff; box-shadow: 0 14px 28px -14px rgb(60 10 50 / .55), 0 0 0 1px rgb(36 16 44 / .12); }
  .theme-gloss .landing-chip:hover { color: var(--ink); filter: brightness(.97); }
}

/* ---------- Ticket: a paper ticket — a stub with the name, a tear line with two notches, the buttons on the part you keep,
   a barcode at the bottom. ---------- */
.theme-ticket {
  --paper: #f3ecdd; --ink: #18181c; --stamp: #d8442b; --stamp-ink: #fff; --page: #15161b;
  --bg: var(--page); --surface: transparent; --surface-2: color-mix(in srgb, var(--ink) 6%, transparent); --line: color-mix(in srgb, var(--ink) 24%, transparent); --line-strong: color-mix(in srgb, var(--ink) 55%, transparent);
  --text: var(--ink); --text-2: color-mix(in srgb, var(--ink) 82%, var(--paper)); --muted: color-mix(in srgb, var(--ink) 62%, var(--paper)); --ok: #17683a; --warn: #8a5200; --idle: var(--muted);
  --cta: var(--ink); --cta-hover: var(--ink); --cta-ink: var(--paper); --chip: var(--ink); --chip-ink: var(--paper); --focus: var(--stamp);
  --font-ui: "JetBrains Mono", ui-monospace, Consolas, monospace; --title-weight: 800; --title-tracking: -.01em; --title-s: 25px; --title-m: 22px; --title-l: 21px; --title-xl: 19px;
  --avatar: 76px; --avatar-radius: 14px; --radius-cta: 14px; --radius-button: 0; --radius-tile: 12px; --icon-radius: 10px;
}
.theme-ticket[data-accent="mint"] { --paper: #d9f2e4; --stamp: #0d6b4a; }
.theme-ticket[data-accent="night"] { --paper: #1f2026; --ink: #f0d9a6; --stamp: #f0d9a6; --stamp-ink: #1f2026; --page: #0d0d10; --ok: #7fd9a0; --warn: #f3d08a; }
.theme-ticket .landing-bg { background: repeating-linear-gradient(135deg, rgb(255 255 255 / .022) 0 2px, transparent 2px 14px), var(--page); }
.theme-ticket :is(.landing-lang, .landing-share) { border-color: rgb(255 255 255 / .24); color: #fff; }
.theme-ticket .landing-lang span { color: rgb(255 255 255 / .62); }
.theme-ticket .landing-foot { color: rgb(255 255 255 / .62); }
.theme-ticket .landing-sheet { position: relative; margin-top: 12px; padding: 22px 20px 20px; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -30px #000; }
.theme-ticket .landing-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: start; }
.theme-ticket .landing-hero::before { content: "TELEGRAM BOT · ADMIT ONE"; grid-column: 1 / -1; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
  font: 700 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .16em; white-space: nowrap; overflow: hidden; }
.theme-ticket .landing-avatar { grid-column: 2; grid-row: 2 / span 3; margin: 0; border: 2px solid var(--ink); rotate: 3deg; background: var(--paper); }
.theme-ticket .landing-initial { color: var(--ink); }
.theme-ticket .landing-title, .theme-ticket .landing-handle, .theme-ticket .landing-status, .theme-ticket .landing-count { grid-column: 1; }
.theme-ticket .landing-count { font: 500 12px/1.4 "JetBrains Mono", ui-monospace, monospace; }
/* Unbounded is wide: a long name takes the narrower face, so a long word still fits beside the picture. */
.theme-ticket .landing-title:is([data-size="l"], [data-size="xl"]) { font-family: Onest, system-ui, sans-serif; letter-spacing: -.02em; }
.theme-ticket .landing-handle { font: 500 13px/1.3 "JetBrains Mono", ui-monospace, monospace; }
.theme-ticket .landing-status { justify-self: start; padding: 4px 9px; border: 1.5px solid currentColor; border-radius: 6px; background: none; font: 700 11.5px/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.theme-ticket .landing-status.is-paused, .theme-ticket .landing-status.is-idle { background: none; }
.theme-ticket .landing-status .landing-dot { box-shadow: none; }
.theme-ticket .landing-description { margin-top: 16px; font-size: 15.5px; }
.theme-ticket .landing-actions { position: relative; margin-top: 22px; padding-top: 22px; gap: 0; border-top: 2px dashed color-mix(in srgb, var(--ink) 38%, transparent); }
.theme-ticket .landing-actions::before, .theme-ticket .landing-actions::after { content: ""; position: absolute; top: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--page); }
.theme-ticket .landing-actions::before { left: -33px; }
.theme-ticket .landing-actions::after { right: -33px; }
.theme-ticket .landing-cta { margin: 0 4px 12px 0; font: 700 16px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .02em; text-transform: uppercase; box-shadow: 4px 4px 0 var(--stamp);
  transition: transform .12s ease-out, box-shadow .12s ease-out; }
.theme-ticket .landing-cta .landing-icon { background: var(--stamp); color: var(--stamp-ink); }
.theme-ticket .landing-missing { border: 2px dashed var(--line-strong); border-radius: 12px; background: none; }
.theme-ticket .landing-button { min-height: 58px; padding: 8px 2px; border: 0; border-bottom: 1.5px dotted var(--line-strong); background: none; }
.theme-ticket .landing-button .landing-icon { width: 36px; height: 36px; border: 1.5px solid var(--ink); background: none; color: var(--ink); }
.theme-ticket .landing-text strong { font: 700 15px/1.3 "JetBrains Mono", ui-monospace, monospace; }
.theme-ticket .landing-text small { font-size: 13px; }
.theme-ticket .landing-chevron { color: var(--ink); }
.theme-ticket .landing-extras { margin-top: 16px; }
.theme-ticket .landing-chip { min-height: 54px; border: 1.5px solid var(--ink); background: none; color: var(--ink); font: 700 11.5px/1.2 "JetBrains Mono", ui-monospace, monospace; }
.theme-ticket .landing-chip-icon { color: var(--ink); }
.theme-ticket .landing-save { margin-top: 16px; padding: 10px 0 36px; border: 0; border-top: 2px solid var(--ink); border-radius: 0; color: var(--text-2); font: 500 12px/1.45 "JetBrains Mono", ui-monospace, monospace;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 15px) bottom / 100% 26px no-repeat; }
.theme-ticket .landing-save .landing-glyph { display: none; }
.theme-ticket .landing-footnote { color: var(--muted); }
.theme-ticket.is-preview .landing-sheet { padding-top: 22px; }
@media (min-width: 760px) {
  .theme-ticket:not(.is-preview) .landing-sheet { padding: 28px 28px 24px; }
  .theme-ticket:not(.is-preview) .landing-actions::before { left: -41px; }
  .theme-ticket:not(.is-preview) .landing-actions::after { right: -41px; }
}
.theme-ticket :is(.landing-cta):active { transform: translate(4px, 4px); box-shadow: 0 0 0 transparent; }
@media (hover: hover) {
  .theme-ticket .landing-cta:hover { background: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--stamp); }
  .theme-ticket .landing-button:hover { background: var(--surface-2); border-color: var(--ink); }
  .theme-ticket .landing-chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .theme-ticket .landing-chip:hover .landing-chip-icon { color: var(--paper); }
}
