:root {
  color-scheme: dark;
  --bg: #0c0e0d;
  --surface: #151917;
  --surface-2: #1c211e;
  --surface-3: #262c28;
  --line: rgba(236, 244, 230, .08);
  --line-strong: rgba(236, 244, 230, .15);
  --text: #f1f4ec;
  --muted: rgba(241, 244, 236, .66);
  --dim: rgba(241, 244, 236, .42);
  --accent: #f2f1ee;
  --accent-ink: #0b0b0c;
  --blue: #9fcaff;
  --blue-ink: #0d1d2e;
  --brand: var(--accent);
  --brand-ink: var(--accent-ink);
  --dock-w: 232px;
  --top-h: 60px;
  --tab-h: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --stack: 22px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .2 -.085'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .13 -.055'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --dust: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='1' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .72 0 0 0 0 .8 0 0 0 0 .95 0 0 0 9 -7.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

/* Section design codes. Feed and social pages: lime on black. Steam: Steam blue with liquid chrome and waves.
   AI world: violet and cyan, a "neural core", dot grid and monospace labels. Shared chrome (bottom bar, loader) stays lime. */
body[data-section="steam"] :is(main, #modal) { --accent: #9fcaff; --accent-ink: #0d1d2e; --brand: #9fcaff; --brand-ink: #0d1d2e; }
body[data-section="ai"] :is(main, #modal) { --accent: #b9a3ff; --accent-ink: #170f33; --brand: #b9a3ff; --brand-ink: #170f33; --ai-cyan: #67e8f9; }
body[data-section="help"] :is(main, #modal) { --accent: #ffa26b; --accent-ink: #2a1300; --brand: #ffa26b; --brand-ink: #2a1300; }
body[data-section="steam"] .services-bar { background: #9fcaff; }
body[data-section="steam"] { --bg: #07080b; background: var(--dust) 0 0 / 420px 420px, var(--grain) 0 0 / 160px 160px, radial-gradient(70% 40% at 85% 0%, rgba(108, 140, 255, .13), transparent 62%), radial-gradient(55% 35% at 0% 35%, rgba(159, 202, 255, .06), transparent 60%), #07080b; }
body[data-section="steam"][data-view="page"] #topbar { background: var(--grain) 0 0 / 160px 160px, linear-gradient(#07080b 60%, rgba(7, 8, 11, 0)); -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
body[data-section="ai"] .services-bar { background: #b9a3ff; }

* { box-sizing: border-box; }
html { min-width: 320px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; overflow-x: clip; }
body { margin: 0; overflow-x: clip; min-height: 100dvh; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; opacity: .35; }
h1, h2, h3, p { margin: 0; }
input::placeholder, textarea::placeholder { color: var(--dim); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Buttons and small parts */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-size: 15px; font-weight: 700; white-space: nowrap; transition: transform .15s var(--ease), background-color .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn .i { font-size: 19px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface-3); color: var(--text); }
.btn-ghost:hover { background: #313833; }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 15px; border-radius: 12px; font-size: 14px; }
.btn-square { width: 48px; padding: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center; color: var(--muted); font-size: 19px; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.accent { color: var(--accent); }
.text-link { color: var(--muted); font-size: 14px; font-weight: 600; min-height: 40px; }
.text-link:hover { color: var(--text); }
.avatar { --avatar: #cfd9c4; width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--avatar); color: #1d2619; font-size: 13px; font-weight: 750; letter-spacing: -.02em; }
.avatar.lg { width: 52px; height: 52px; font-size: 15px; }
.avatar.xl { width: 72px; height: 72px; font-size: 21px; }
.avatar.xxl { width: 96px; height: 96px; font-size: 28px; }
.follow-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .2s, color .2s; }
.follow-pill.on { background: var(--surface-3); color: var(--muted); }
.follow-pill.small { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.follow-pill .i { font-size: 15px; }
.chips, .card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 5px 11px; border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 13px; font-weight: 600; }
.empty { display: grid; justify-items: center; gap: 12px; padding: 56px 16px; text-align: center; color: var(--muted); }
.empty > .i { font-size: 46px; color: var(--dim); stroke-width: 1.5; }
.empty h2 { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.fine { color: var(--dim); font-size: 12px; line-height: 1.5; }
.kicker { color: var(--dim); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.tag { padding: 3px 8px; border-radius: 6px; background: var(--surface-3); color: var(--dim); font-size: 11px; font-weight: 600; }

/* Dock: left rail on desktop, bottom tab bar on phones */
#dock { position: fixed; z-index: 40; inset: 0 auto 0 0; width: var(--dock-w); display: flex; flex-direction: column; gap: 2px; padding: 18px 12px 16px; background: var(--bg); border-right: 1px solid var(--line); }
.dock-brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 24px; font-size: 21px; font-weight: 800; letter-spacing: -.06em; }
.brand-mark { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: #f2f1ee; color: #0b0b0c; }
.brand-mark svg { width: 22px; height: 22px; }
.dock-item { position: relative; display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 14px; border-radius: 14px; color: var(--dim); font-size: 15px; font-weight: 600; transition: background-color .18s, color .18s; }
.dock-item .i { font-size: 25px; }
.dock-item:hover { background: var(--surface); color: var(--text); }
.dock-item.active { color: var(--text); font-weight: 750; }
.dock-item.active .i { stroke-width: 2.3; }
.dock-publish { order: 5; justify-content: center; margin-top: 14px; background: transparent; color: var(--text); font-weight: 700; box-shadow: inset 0 0 0 1.5px rgba(242, 241, 238, .9); }
.dock-publish:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.dock-publish .i { font-size: 21px; stroke-width: 2.5; }
.badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: #ff5d6c; color: #fff; font-size: 11px; font-style: normal; font-weight: 750; border: 2px solid var(--bg); box-sizing: content-box; }
.dock-foot { order: 6; margin-top: auto; padding: 0 14px; color: var(--dim); font-size: 12px; }

/* Top: services as plain text, active one highlighted */
#topbar { position: fixed; z-index: 30; top: 0; left: var(--dock-w); right: 0; height: var(--top-h); display: flex; align-items: center; justify-content: center; padding: 0 64px; pointer-events: none; }
#topbar > * { pointer-events: auto; }
body[data-view="page"] #topbar { background: linear-gradient(var(--bg) 62%, rgba(12, 14, 13, 0)); }
.services { display: flex; gap: 28px; }
.services a { position: relative; padding: 10px 0; white-space: nowrap; color: var(--dim); font-size: 17px; font-weight: 650; letter-spacing: -.01em; transition: color .2s; }
.services a:hover { color: var(--muted); }
.services a.active { color: var(--text); font-weight: 780; }
.services { position: relative; }
.services-bar { position: absolute; left: -10px; bottom: 3px; width: 20px; height: 3px; border-radius: 3px; background: var(--text); transition: transform .4s var(--ease); pointer-events: none; }
.top-title { font-size: 17px; font-weight: 750; letter-spacing: -.02em; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-back { position: absolute; left: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 24px; }
.top-back:hover { background: var(--surface); }

main { margin-left: var(--dock-w); min-height: 100dvh; outline: none; }
/* The feed is its own scroller, so the page under it never moves: no rubber band, no Safari toolbar
   jumping, no next card peeking in at the bottom. While a dialog is open the page under it stays put too. */
html:has(> body[data-view="feed"]), body[data-view="feed"] { height: 100%; overflow: hidden; overscroll-behavior: none; }
body[data-view="feed"] { min-height: 0; }
html:has(dialog[open]) { overflow: hidden; }
html:has(dialog[open]) body { overscroll-behavior: none; }
body[data-view="page"] main { padding-top: var(--top-h); }
.page { max-width: 1040px; margin: 0 auto; padding: 6px 32px 64px; }
.page.narrow { max-width: 680px; }
.page.wide { max-width: 1320px; }
.subnav { display: flex; gap: 22px; padding: 4px 0 18px; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { padding: 6px 0; color: var(--dim); font-size: 14px; font-weight: 650; white-space: nowrap; transition: color .2s; }
.subnav a:hover { color: var(--muted); }
.subnav a.active { color: var(--text); }

/* Feed: one project per screen */
.feed { position: fixed; top: 0; bottom: 0; left: var(--dock-w); right: 0; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.feed-item { height: var(--item-h, 100%); display: flex; align-items: center; justify-content: center; padding: calc(var(--top-h) + 2px) 24px 20px; scroll-snap-align: start; scroll-snap-stop: always; }
.card { position: relative; height: 100%; display: flex; align-items: flex-end; gap: 18px; }
.card-media { position: relative; height: 100%; aspect-ratio: 10 / 16; max-width: calc(100vw - var(--dock-w) - 220px); overflow: hidden; border-radius: 22px; background: var(--surface); cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; isolation: isolate; }
.card-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .8) 100%); }
.card-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 20px 22px; color: #fff; pointer-events: none; }
.card-info button { pointer-events: auto; }
/* The kind of project above its title; who posted it is the avatar in the rail beside the card */
.card-kind { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .74); font-size: 13px; font-weight: 650; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.card-kind .i { font-size: 14px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9px; letter-spacing: 0; }
.card-tagline { margin-top: 12px; overflow: hidden; color: rgba(255, 255, 255, .62); font-size: 13px; letter-spacing: .01em; white-space: nowrap; text-overflow: ellipsis; }
.card-title { display: block; margin-top: 8px; color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1.08; text-align: left; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.card-summary { margin-top: 6px; max-width: 32em; font-size: 15px; opacity: .88; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { margin-top: 12px; }
.card-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; pointer-events: auto; }
.card-cta { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 40px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 14px; font-weight: 750; -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.card-cta span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-cta .i { flex: none; font-size: 16px; }
.card-cta .i:last-child { font-size: 13px; opacity: .7; }
.card-cta.play { background: var(--grad); box-shadow: 0 8px 24px rgba(255, 70, 80, .35); }
.card-cta:active { transform: scale(.97); }
.card-tags span { padding: 4px 10px; border-radius: 99px; background: rgba(20, 22, 20, .42); font-size: 12px; font-weight: 600; }
.slide-dots { display: flex; align-items: center; gap: 5px; height: 6px; margin-bottom: 12px; }
.slide-dots i { flex: none; width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .45); box-shadow: 0 0 8px rgba(0, 0, 0, .25); }
.slide-dots i.on { width: 20px; background: var(--grad); box-shadow: 0 0 10px rgba(255, 70, 80, .5); animation: dot-grow .45s var(--ease); }
.slide-dots i.was { animation: dot-shrink .45s var(--ease); }
@keyframes dot-shrink { from { width: 20px; } }
.slide-arrow { position: absolute; z-index: 3; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .34); color: #fff; font-size: 22px; opacity: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .2s, background-color .2s; }
.slide-arrow.prev { left: 12px; }
.slide-arrow.next { right: 12px; }
.slide-arrow:disabled { visibility: hidden; }
.card-media:hover .slide-arrow { opacity: 1; }
.slide-arrow:hover { background: rgba(0, 0, 0, .55); }
.card-media.from-right .scene { animation: slide-from-right .34s var(--ease); }
.card-media.from-left .scene { animation: slide-from-left .34s var(--ease); }
.rail { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-bottom: 6px; }
.rail-author { position: relative; margin-bottom: 10px; }
.rail-avatar .avatar { width: 52px; height: 52px; font-size: 15px; box-shadow: 0 0 0 2px var(--bg); }
.rail-follow { position: absolute; left: 50%; bottom: -10px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 14px; transition: transform .2s var(--ease), background-color .2s; }
.rail-follow::before { content: ""; position: absolute; inset: -11px; }
.rail-follow .i { stroke-width: 3; }
.rail-follow.on { background: rgba(0, 0, 0, .55); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.rail-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.rail-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text); font-size: 24px; transition: transform .2s var(--ease), background-color .2s, color .2s; }
.rail-btn:hover .rail-icon { background: #323934; }
.rail-btn.on .rail-icon { background: #fff; color: #0b0b0c; }
.rail-btn.on .i { fill: currentColor; }
.rail-btn.on .i { stroke-width: 2.5; }
.rail-btn.pop .rail-icon { animation: pop .42s var(--ease); }
.feed-nav { position: fixed; z-index: 20; right: 28px; top: 50%; display: flex; flex-direction: column; gap: 12px; transform: translateY(-50%); }
.feed-nav button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 22px; transition: background-color .2s; }
.feed-nav button:hover { background: #323934; }
.filter-chip { position: fixed; z-index: 31; top: calc(var(--top-h) - 4px); left: var(--dock-w); right: 0; width: max-content; margin: 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.filter-chip .i:last-child { opacity: .7; }
.feed-item > .empty { margin: auto; }
.burst { position: absolute; z-index: 6; width: 110px; height: 110px; margin: -55px 0 0 -55px; display: grid; place-items: center; color: var(--accent); font-size: 110px; pointer-events: none; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .45)); animation: burst .78s var(--ease) forwards; }
.burst .i { stroke-width: 2.8; }

/* Covers drawn in HTML: they scale with their frame */
.scene { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; container-type: size; }
.scene > img, .scene > video { position: absolute; inset: 0; }
.scene.photo { background: #2b4238; }
.scene.photo.coast { background: #263b45; }
.scene.photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 52%; }
.scene.photo.coast img { object-position: center 60%; }
.scene.photo.alt img { object-position: 72% 40%; transform: scale(1.3); }
.image-unavailable img { visibility: hidden; }
.image-unavailable { background: radial-gradient(ellipse at 65% 25%, #77917a, transparent 40%), linear-gradient(160deg, #6b8270 0%, #395545 36%, #1b3329 73%, #11271f 100%) !important; }
.image-unavailable::before { content: ""; position: absolute; inset: 30% 0 0; background: #18392c; clip-path: polygon(0 72%, 8% 41%, 17% 55%, 27% 14%, 35% 38%, 46% 1%, 56% 40%, 63% 24%, 74% 57%, 86% 21%, 100% 67%, 100% 100%, 0 100%); opacity: .7; }
.image-unavailable.coast { background: linear-gradient(160deg, #779098, #42616e 45%, #172f3b) !important; }
.scene.board { background: radial-gradient(130% 80% at 15% 0%, #f6f8ee 0%, #dfe7cf 45%, #b2c697 100%); }
.scene.analytics { background: radial-gradient(130% 80% at 85% 0%, #ffdc98 0%, #eaae55 50%, #b9792b 100%); }
.mock { --u: min(1cqw, .66cqh); width: calc(var(--u) * 82); margin-top: 12cqh; align-self: start; padding: 1.05em; border-radius: 1.2em; background: #fbfcf7; color: #26301f; font-size: calc(var(--u) * 3.3); box-shadow: 0 1.8em 3.4em rgba(40, 50, 20, .3), 0 .2em .5em rgba(0, 0, 0, .08); }
.mock-bar { display: flex; align-items: center; gap: .4em; margin-bottom: 1em; }
.mock-bar b { margin-right: auto; font-size: 1.3em; font-weight: 800; letter-spacing: -.05em; }
.mock-bar > i { width: .55em; height: .55em; border-radius: 50%; background: #d7dccb; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55em; }
.kan-col { display: grid; align-content: start; gap: .5em; padding: .55em; border-radius: .75em; background: #eef1e5; }
.kan-col > span { display: flex; align-items: center; gap: .35em; color: #5d6b51; font-size: .78em; font-weight: 700; white-space: nowrap; overflow: hidden; }
.kan-col > span i { width: .65em; height: .65em; flex: none; border-radius: 50%; }
.kan-card { display: grid; gap: .38em; padding: .6em; border-radius: .6em; background: #fff; box-shadow: 0 .1em .3em rgba(0, 0, 0, .06); }
.kan-card em { display: block; width: 2.3em; height: .5em; border-radius: .3em; }
.sk { display: block; height: .48em; border-radius: .3em; background: #e2e7d8; }
.mock-progress { width: 7em; height: .5em; border-radius: .3em; background: #e5eadb; overflow: hidden; }
.mock-progress i { display: block; width: 60%; height: 100%; border-radius: inherit; background: #7fa654; }
.todo-row { display: flex; align-items: center; gap: .7em; padding: .75em .2em; border-bottom: 1px solid #eef0e6; }
.todo-row:last-child { border-bottom: 0; }
.todo-row > i { width: 1.35em; height: 1.35em; flex: none; display: grid; place-items: center; border: .14em solid #b8c3a6; border-radius: 50%; color: #fff; font-size: .9em; }
.todo-row.done > i { background: #7fa654; border-color: #7fa654; }
.todo-row.done .sk { background: #eef1e7; }
.mock.dash { background: #fffaf0; color: #3a2d17; }
.live { display: inline-flex; align-items: center; gap: .35em; color: #4e7a3a; font-size: .75em; font-weight: 700; }
.live i { width: .55em; height: .55em; border-radius: 50%; background: #4e9a3a; animation: pulse 1.8s ease-in-out infinite; }
.dash-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; margin-bottom: 1em; }
.dash-metrics small { display: block; color: #8a7148; font-size: .75em; }
.dash-metrics strong { font-size: 1.9em; font-weight: 780; letter-spacing: -.05em; }
.dash-metrics em { margin-left: .3em; color: #4e7a3a; font-size: .72em; font-style: normal; font-weight: 700; white-space: nowrap; }
.dash-chart { height: 9em; display: flex; align-items: flex-end; gap: .3em; border-bottom: 1px solid #ead9b8; }
.dash-chart i { flex: 1; border-radius: .25em .25em 0 0; background: #d9b98a; transform-origin: bottom; transition: transform .9s var(--ease); }
.dash-chart i:nth-last-child(-n+5) { background: #3f6a3a; }
.feed.io .feed-item:not(.in-view) .dash-chart i { transform: scaleY(.08); }
.scene.feature.forest { background: linear-gradient(160deg, #46663f, #1b2f22); color: #eef7e6; }
.scene.feature.coast { background: linear-gradient(160deg, #47707f, #142631); color: #eaf4f7; }
.scene.feature.board { background: linear-gradient(160deg, #e4ead5, #a7bd88); color: #1f2a17; }
.scene.feature.analytics { background: linear-gradient(160deg, #f4c676, #b4752a); color: #2c210f; }
.feature-inner { --u: min(1cqw, .6cqh); width: calc(var(--u) * 82); margin-top: -14cqh; display: grid; justify-items: start; gap: .5em; font-size: calc(var(--u) * 4); }
.feature-icon { width: 2.6em; height: 2.6em; margin-bottom: .5em; display: grid; place-items: center; border-radius: .8em; background: rgba(255, 255, 255, .16); }
.feature-icon .i { font-size: 1.4em; }
.feature-chip { padding: .35em .8em; border-radius: 99em; background: rgba(255, 255, 255, .16); font-size: 1.45em; font-weight: 780; letter-spacing: -.03em; }
.feature-chip:nth-child(odd) { margin-left: 1.4em; }
.scene.feature.board .feature-icon, .scene.feature.board .feature-chip, .scene.feature.analytics .feature-icon, .scene.feature.analytics .feature-chip { background: rgba(0, 0, 0, .08); }

/* Search */
.search-box { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--dim); font-size: 20px; transition: border-color .2s; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 16px; }
.cat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cat-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 124px; padding: 16px; border-radius: 22px; color: var(--text); background: linear-gradient(160deg, #1b1c1f, #0f1012); border: 1px solid rgba(255, 255, 255, .08); font-size: 17px; font-weight: 780; letter-spacing: -.02em; transition: transform .2s var(--ease); }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile > .i { font-size: 28px; stroke-width: 1.6; }
.cat-tile small { display: block; color: var(--dim); font-size: 13px; font-weight: 600; }
.cat-tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); }
.row-title { margin: 28px 0 12px; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.creators { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.creators::-webkit-scrollbar { display: none; }
.creator { flex: none; width: 112px; display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border-radius: 20px; background: var(--surface); text-align: center; }
.creator-link { display: grid; justify-items: center; gap: 8px; }
.creator-link .avatar { width: 64px; height: 64px; font-size: 18px; }
.creator b { font-size: 13px; font-weight: 650; line-height: 1.2; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; background: var(--surface); text-align: left; transition: transform .2s var(--ease); }
.thumb:hover { transform: scale(.98); }
.thumb::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .72)); }
.thumb-title { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 30px; color: #fff; font-size: 15px; font-weight: 750; line-height: 1.15; letter-spacing: -.02em; }
.thumb-meta { position: absolute; z-index: 1; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 700; }
.thumb-votes { display: inline-flex; align-items: center; gap: 4px; }
/* Like TikTok: a small triangle for a video, two pictures for photos, at the bottom of the thumbnail */
.thumb-kind { display: inline-grid; place-items: center; color: #fff; font-size: 13px; font-style: normal; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); }
.thumb-kind.photos .i { stroke-width: 2.2; }

/* Inbox */
.thread-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.thread-row { min-width: 0; }
.thread-row { display: flex; align-items: center; gap: 13px; padding: 10px; border-radius: 16px; transition: background-color .15s; }
.thread-row:hover { background: var(--surface); }
.thread-text { flex: 1; min-width: 0; }
.thread-text b { display: block; font-size: 15px; font-weight: 650; }
.thread-text small { display: block; overflow: hidden; color: var(--dim); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.thread-row.unread .thread-text b, .thread-row.unread .thread-text small { color: var(--text); font-weight: 700; }
.thread-meta { display: grid; justify-items: end; gap: 6px; color: var(--dim); font-size: 12px; }
.dot-badge { width: 10px; height: 10px; border-radius: 50%; background: #ff5d6c; }
.chat-page { max-width: 720px; padding-bottom: 110px; }
.chat-head { display: grid; justify-items: center; gap: 6px; padding: 12px 0 18px; text-align: center; }
.chat-head b { font-size: 17px; }
.chat-log { display: flex; flex-direction: column; gap: 4px; }
.chat-hint { align-self: center; color: var(--dim); font-size: 14px; padding: 24px 0; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .25s var(--ease); }
.bubble.them { align-self: flex-start; background: var(--surface-3); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.chat-composer { position: fixed; z-index: 25; left: var(--dock-w); right: 0; bottom: var(--tab-h); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(12, 14, 13, 0), var(--bg) 35%); }
.chat-composer .composer { max-width: 688px; margin: 0 auto; padding: 0; border: 0; }

/* Profile */
.profile-head { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; padding-top: 10px; text-align: center; }
.profile-head .avatar { margin-bottom: 10px; }
.profile-head h1 { font-size: 22px; font-weight: 780; letter-spacing: -.03em; }
.handle { color: var(--dim); font-size: 14px; }
.stats { display: flex; justify-content: center; gap: 30px; margin: 16px 0 18px; }
.stats span { display: grid; color: var(--dim); font-size: 13px; }
.stats b { color: var(--text); font-size: 20px; font-weight: 780; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.profile-actions .btn { white-space: nowrap; }
.ptabs { display: flex; margin-top: 24px; border-bottom: 1px solid var(--line); }
.ptabs a { position: relative; flex: 1; min-height: 50px; display: grid; place-items: center; color: var(--dim); font-size: 23px; transition: color .2s; }
.ptabs a.active { color: var(--text); }
.ptabs a.active::after { content: ""; position: absolute; left: 32%; right: 32%; bottom: -1px; height: 2px; border-radius: 2px; background: currentColor; }
.ptabs-line { height: 1px; margin-top: 24px; background: var(--line); }
.ptab-panel { margin-top: 4px; }
.profile .thumb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.profile .thumb { border-radius: 10px; }
.person-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.author-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.author-link b { display: block; font-size: 15px; font-weight: 700; }
.author-link small { display: block; color: var(--dim); font-size: 13px; }
.app-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px; border-radius: 18px; background: var(--surface); }
.app-row > span:nth-child(2) { flex: 1; min-width: 0; }
.app-row b { display: block; font-size: 15px; }
.app-row small { color: var(--dim); font-size: 13px; }

/* Steam */
.steam-hero { position: relative; min-height: 400px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 28px; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.steam-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 20, 34, 0) 20%, rgba(10, 20, 34, .9)), linear-gradient(90deg, rgba(10, 20, 34, .4), rgba(10, 20, 34, 0) 60%); }
.hero-copy { padding: 34px; color: #fff; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .15); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 700; }
.steam-hero h1 { margin-top: 14px; font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.steam-hero h1 span { display: block; color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.steam-hero:has(.chrome-art) .hero-copy { padding-bottom: 64px; }
.block { margin-top: var(--stack); padding: 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.block-title { margin-bottom: 20px; font-size: 19px; font-weight: 780; letter-spacing: -.03em; }
.blocks-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--stack); margin-top: var(--stack); }
.steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 28px; left: 12.5%; height: 2px; border-radius: 2px; }
.steps::before { right: 12.5%; background: var(--surface-3); }
.steps::after { width: calc(75% * var(--p)); background: var(--blue); transition: width .45s var(--ease); }
.step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; color: var(--dim); font-size: 14px; font-weight: 700; transition: color .2s; }
.step-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--surface-3); color: var(--muted); font-size: 23px; transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s; }
.step.done .step-icon { border-color: var(--blue); color: var(--blue); }
.step.on { color: var(--text); }
.step.on .step-icon { transform: scale(1.1); background: var(--blue); border-color: var(--blue); color: var(--blue-ink); box-shadow: 0 0 0 7px rgba(159, 202, 255, .14); }
.step-detail { margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); color: var(--muted); font-size: 15px; text-align: center; }
.readiness-wrap { display: flex; align-items: center; gap: 20px; }
.ring { position: relative; width: 132px; height: 132px; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring-bg { stroke: var(--surface-3); }
.ring-fg { stroke: var(--blue); stroke-linecap: round; transition: stroke-dasharray .55s var(--ease), opacity .2s; }
.ring strong { font-size: 30px; font-weight: 800; letter-spacing: -.05em; }
.ready-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ready-item { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 4px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: var(--dim); font-size: 13px; font-weight: 700; transition: background-color .2s, border-color .2s, color .2s, transform .15s; }
.ready-item:active { transform: scale(.95); }
.ready-item > .i { font-size: 23px; }
.ready-item.on { background: rgba(159, 202, 255, .12); border-color: rgba(159, 202, 255, .5); color: var(--text); }
.ready-check { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--blue-ink); font-size: 12px; transform: scale(0); transition: transform .25s var(--ease); }
.ready-check .i { stroke-width: 3; }
.ready-item.on .ready-check { transform: scale(1); }
.ready-cta { display: none; margin-top: 18px; }
.ready-cta.show { display: flex; animation: rise .3s var(--ease); }
.calc-result { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.calc-result strong { font-size: 40px; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-result small { color: var(--dim); font-size: 14px; }
.split-bar { display: flex; gap: 3px; height: 14px; margin: 16px 0 10px; overflow: hidden; border-radius: 8px; }
.split-bar i { min-width: 4px; transition: flex-grow .35s var(--ease); }
.seg-steam { background: #5d6a78; }
.seg-pub { background: var(--blue); }
.seg-author { background: var(--accent); }
.split-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; }
.split-legend span { display: inline-flex; align-items: center; gap: 6px; }
.split-legend b { color: var(--text); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.slider { display: grid; gap: 6px; margin-top: 18px; }
.slider > span { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.slider b { color: var(--text); font-variant-numeric: tabular-nums; }
.calc .fine { margin-top: 16px; }
input[type="range"] { --fill: 50%; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--fill), var(--surface-3) var(--fill)); }
input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .45); -webkit-appearance: none; appearance: none; }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--surface-3); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--blue); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; }
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doc-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 180px; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: transform .2s var(--ease), background-color .2s; }
.doc-tile:hover { transform: translateY(-3px); background: var(--surface-2); }
.doc-tile b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.doc-tile small { display: block; margin-top: 4px; color: var(--dim); font-size: 14px; }
.doc-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(159, 202, 255, .14); color: var(--blue); font-size: 26px; }
.doc-icon.small { width: 44px; height: 44px; border-radius: 13px; font-size: 21px; }
.ext-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.ext-link:hover { color: var(--text); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.muted-count { color: var(--dim); font-size: 14px; font-weight: 600; }
.topic-list { display: grid; gap: 8px; }
.topic-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: background-color .15s; }
.topic-row:hover { background: var(--surface-2); }
.topic-text { flex: 1; min-width: 0; }
.topic-text small { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; color: var(--dim); font-size: 12px; font-weight: 600; }
.topic-text small .i { color: var(--blue); }
.topic-text b { font-size: 16px; font-weight: 650; line-height: 1.3; }
.topic-count { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 700; }

/* AI workspace */
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.source-chip { display: inline-flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 14px 8px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--dim); transition: border-color .2s; }
.source-chip:hover { border-color: var(--line-strong); }
.source-chip > span:nth-child(2) { min-width: 0; }
.source-chip b { display: block; overflow: hidden; color: var(--text); font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.source-chip small { display: block; font-size: 12px; }
.source-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 21px; }
.billing { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--dim); font-size: 18px; }
.billing select { padding-right: 4px; border: 0; outline: none; background: transparent; color: var(--text); font-size: 14px; font-weight: 650; cursor: pointer; }
.billing option { background: var(--surface); }
.ws-tabs { display: none; }
.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr) 360px; height: calc(100dvh - var(--top-h) - 140px); min-height: 480px; overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.pane-head b { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.pane-head b .i { color: var(--accent); }
.pane-actions { display: flex; gap: 2px; }
.file-name { overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.pane-files { padding: 8px; overflow: auto; border-right: 1px solid var(--line); }
.pane-files .pane-head { min-height: 42px; padding: 0 8px; border: 0; }
.file-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 10px; border-radius: 11px; color: var(--muted); font-size: 14px; text-align: left; transition: background-color .15s; }
.file-row span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file-row .i { color: var(--dim); font-size: 18px; }
.file-row:hover { background: var(--surface-2); }
.file-row.active { background: var(--surface-3); color: var(--text); }
.file-row.active .i { color: var(--accent); }
.add-source { display: flex; align-items: center; gap: 8px; min-height: 42px; margin-top: 6px; padding: 0 10px; color: var(--dim); font-size: 14px; font-weight: 600; }
.add-source:hover { color: var(--text); }
.pane-code { background: #0f1210; }
#file-editor { flex: 1; width: 100%; min-height: 0; padding: 18px; border: 0; outline: none; resize: none; background: transparent; color: #cadbb8; font: 13px/1.75 "SF Mono", ui-monospace, Menlo, Consolas, monospace; tab-size: 2; white-space: pre; }
.pane-ai { border-left: 1px solid var(--line); }
.chat { flex: 1; min-height: 0; padding: 16px; overflow: auto; }
.ai-welcome { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 12px 4px; text-align: center; }
.ai-orb { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, #cdbdff 22%, #8b6cf0 55%, #3b2a8f 100%); color: #fff; font-size: 34px; box-shadow: 0 0 0 8px rgba(185, 163, 255, .1), 0 0 34px 6px rgba(185, 163, 255, .35), 0 0 70px 14px rgba(103, 232, 249, .14); animation: float 4.5s ease-in-out infinite; }
.ai-welcome h2 { font-size: 22px; font-weight: 780; letter-spacing: -.03em; }
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.suggestion { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; max-width: 100%; padding: 0 14px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted); font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: border-color .2s, color .2s; }
.suggestion:hover { border-color: var(--accent); color: var(--text); }
.msg { max-width: 88%; margin-bottom: 8px; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .25s var(--ease); }
.msg.user { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.assistant { background: var(--surface-3); border-bottom-left-radius: 6px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.composer input, .composer textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 140px; padding: 12px 16px; border-radius: 23px; border: 1px solid var(--line-strong); outline: none; background: var(--surface-2); font-size: 16px; line-height: 1.3; resize: none; field-sizing: content; transition: border-color .2s; }
.composer input:focus, .composer textarea:focus { border-color: var(--brand); }
.composer :is(input, textarea), :is(input, textarea).field { color: var(--text); -webkit-text-fill-color: var(--text); caret-color: var(--text); }
.composer :is(input, textarea)::placeholder, :is(input, textarea).field::placeholder { color: var(--dim); -webkit-text-fill-color: var(--dim); opacity: 1; }
.composer button { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 20px; transition: transform .15s var(--ease); }
.composer button:active { transform: scale(.9); }
.provider-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.provider { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; aspect-ratio: 1; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 750; transition: transform .2s var(--ease), border-color .2s; }
.provider:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.provider-logo { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 21px; font-size: 32px; }
.provider.github .provider-logo { background: #f1f4ec; color: #111; }
.provider.google .provider-logo { background: linear-gradient(135deg, #34a853, #4285f4 60%, #fbbc04); color: #fff; }
.provider.yandex .provider-logo { background: #ffcc00; color: #222; }
.provider.local .provider-logo { background: var(--accent); color: var(--accent-ink); }
.flow { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; }
.flow-node { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 26px; }
.flow-node .i { width: 58px; height: 58px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.flow-node.accent .i { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.flow-node small { font-size: 13px; font-weight: 650; }
.flow-line { width: 64px; height: 2px; margin-bottom: 26px; background: repeating-linear-gradient(90deg, var(--dim) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: dash 1s linear infinite; }
.privacy { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--dim); font-size: 14px; }

/* Dialogs: centered card on desktop, bottom sheet on phones */
dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: 26px; background: var(--surface); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
dialog[open] { animation: pop-in .24s var(--ease); }
/* A closed dialog never takes space or shows, whatever display a class gives it. */
dialog:not([open]) { display: none !important; }
dialog::backdrop { background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: var(--sheet-fade, 1); }
dialog.sheet-closing { pointer-events: none; }
dialog.sheet-closing::backdrop { opacity: 0; transition: opacity .22s; }
.grabber { display: none; }
.modal-close { position: sticky; z-index: 5; top: 12px; width: 40px; height: 40px; margin: 12px 12px -52px auto; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 19px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal-close:hover { background: rgba(0, 0, 0, .7); }
.modal-close:focus:not(:focus-visible) { outline: none; }
dialog:focus { outline: none; }
.sheet-body { padding: 24px; }
.sheet-body h2 { padding-right: 44px; font-size: 26px; font-weight: 780; letter-spacing: -.035em; line-height: 1.12; }
dialog[data-kind="project"] .sheet-body h2 { padding-right: 0; }
.sheet-title span, .sheet-sub span { color: var(--dim); font-weight: 600; }
.sheet-author { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lead { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.sheet-body .chips { margin-top: 14px; }
.more { margin-top: 14px; }
.more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--muted); font-size: 14px; font-weight: 650; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "›"; font-size: 18px; transform: rotate(90deg); transition: transform .2s; }
.more[open] summary::after { transform: rotate(-90deg); }
.more p, .body-text { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sheet-sub { margin: 28px 0 4px; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.comments { display: grid; }
.comment { display: flex; gap: 12px; padding: 12px 0; animation: rise .25s var(--ease); }
.comment .avatar { width: 36px; height: 36px; font-size: 12px; }
.comment > div { flex: 1; min-width: 0; }
.comment b { font-size: 14px; font-weight: 700; }
.comment small { margin-left: 8px; color: var(--dim); font-size: 12px; }
.comment p { margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.comments-empty { display: flex; align-items: center; gap: 8px; padding: 18px 0; color: var(--dim); font-size: 15px; }
.composer.sticky { position: sticky; bottom: 0; margin: 8px -24px -24px; padding: 12px 24px calc(14px + var(--safe-b)); background: var(--surface); }
.hero-icon { width: 60px; height: 60px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 20px; background: var(--accent); color: var(--accent-ink); font-size: 28px; }
.hero-icon.steam { background: var(--blue); color: var(--blue-ink); }
.hero-icon.done { border-radius: 50%; animation: pop .5s var(--ease); }
.form { display: grid; gap: 10px; margin-top: 18px; }
.form > input, .form > textarea, .form .more textarea, .field { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 15px; border: 1px solid var(--line-strong); outline: none; background: var(--surface-2); font-size: 16px; line-height: 1.4; transition: border-color .2s; }
.form textarea { resize: vertical; }
.form > input:focus, .form > textarea:focus, .form .more textarea:focus { border-color: var(--brand); }
.form .btn-block { margin-top: 6px; }
.chip-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio label { position: relative; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted); font-size: 14px; font-weight: 650; cursor: pointer; transition: background-color .2s, color .2s; }
.chip-radio input:checked + span { background: var(--brand); border-color: transparent; color: var(--brand-ink); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.progress { height: 8px; margin: 16px 0 6px; overflow: hidden; border-radius: 8px; background: var(--surface-3); }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s var(--ease); }
.live-demo .composer { margin: 10px 0; padding: 0; border: 0; }
.live-tasks { display: grid; gap: 6px; }
.live-task { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 14px; border-radius: 16px; background: var(--surface-2); text-align: left; font-size: 15px; transition: background-color .2s, color .2s; }
.live-task > i { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 2px solid var(--line-strong); border-radius: 50%; color: var(--accent-ink); font-size: 14px; transition: background-color .2s, border-color .2s; }
.live-task.done { color: var(--dim); text-decoration: line-through; }
.live-task.done > i { background: var(--accent); border-color: var(--accent); }
.live-task > i .i { stroke-width: 3; }
.doc-reader .btn { margin-top: 20px; }
.success { text-align: center; }
.success .hero-icon { margin: 8px auto 16px; }
.success h2 { padding-right: 0; }
.success .sheet-actions { justify-content: center; }
#toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(34, 40, 36, .96); color: var(--text); font-size: 14px; font-weight: 650; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .2s, transform .25s var(--ease); }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Shared bits added with accounts and the AI world */
.boot { position: relative; min-height: 100dvh; display: grid; place-items: center; overflow: hidden; }
.boot-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; }
.brand-mark.big { width: 56px; height: 56px; border-radius: 17px; }
.brand-mark.big svg { width: 38px; height: 38px; }
.btn-xs { min-height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; gap: 6px; }
.btn-xs .i { font-size: 15px; }
.dock-avatar { width: 27px; height: 27px; font-size: 10px; }
.dock-item.active .dock-avatar { box-shadow: 0 0 0 2px var(--text); }
.muted-line { color: var(--dim); font-size: 14px; padding: 10px 0; }
.page-title { margin: 4px 0 16px; font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; column-gap: 12px; row-gap: 0; }
.section-head .row-title { margin-bottom: 12px; }
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.note > .i { flex: none; margin-top: 2px; font-size: 18px; color: var(--accent); }
code { padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text); font: .9em/1.4 "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.narrow-block { max-width: 520px; margin: 20px auto 0; }
.loading-line { display: grid; place-items: center; padding: 28px 0; }
.loading-line.big { padding: 80px 0; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: dot 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
.spin { display: inline-block; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.text-link.inline { min-height: 0; padding: 0; color: inherit; font-size: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.text-link.inline:hover { text-decoration-color: currentColor; }
.empty p { max-width: 34em; font-size: 14px; }
.verified { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); color: var(--blue-ink); font-size: 11px; vertical-align: -2px; }
.verified .i { stroke-width: 3; }
.bubble small { display: block; margin-top: 3px; font-size: 11px; opacity: .55; }
.creator-sub { color: var(--dim); font-size: 12px; }

/* Trust and level */
.stars { display: inline-flex; gap: 1px; color: rgba(241, 244, 236, .22); letter-spacing: 0; }
.stars i { font-style: normal; }
.stars i.on { color: #f5c451; }
.trust-mini { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(0, 0, 0, .35); color: #f5c451; font-size: 12px; font-weight: 750; vertical-align: 1px; }
.trust-mini.trust-caution { color: #ff9d8a; }
.sheet-author .trust-mini, .creator .trust-mini { background: var(--surface-3); margin-left: 4px; }
.trust-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; }
.trust-pill b { color: var(--text); font-weight: 780; }
.trust-pill small { color: var(--dim); font-size: 12px; }
.trust-pill.trust-reliable, .trust-pill.trust-verified { border-color: rgba(245, 196, 81, .45); background: rgba(245, 196, 81, .08); }
.trust-pill.trust-verified b { color: #f5c451; }
.trust-pill.trust-caution { border-color: rgba(255, 120, 100, .5); background: rgba(255, 120, 100, .08); }
.trust-pill.official { border-color: rgba(159, 202, 255, .45); color: var(--blue); font-weight: 700; }
.profile-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.bio { max-width: 30em; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.stats span { text-align: center; }
.profile-foot { display: flex; justify-content: center; margin-top: 28px; }
.reviews { display: grid; gap: 4px; margin-top: 8px; }
.review { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.review > div { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.review b { font-size: 14px; }
.review small { color: var(--dim); font-size: 12px; }
.review p { flex-basis: 100%; color: var(--muted); font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.rate-head { display: flex; gap: 14px; align-items: flex-start; padding-right: 40px; }
.rate-head h2 { padding-right: 0; font-size: 22px; }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-pick label { position: relative; cursor: pointer; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick span { display: block; padding: 0 4px; color: var(--surface-3); font-size: 44px; line-height: 1; transition: color .15s, transform .15s; }
.star-pick label:hover span, .star-pick label:hover ~ label span, .star-pick label:has(input:checked) span, .star-pick label:has(input:checked) ~ label span { color: #f5c451; }
.star-pick label:active span { transform: scale(.88); }
.star-pick input:focus-visible + span { outline: 2px solid var(--brand); border-radius: 8px; }
.trust-explain { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.trust-big { flex: none; display: grid; justify-items: center; gap: 2px; width: 112px; padding: 14px 8px; border-radius: 20px; background: var(--surface-2); text-align: center; }
.trust-big b { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.trust-big span { color: var(--muted); font-size: 12px; font-weight: 700; }
.trust-explain .lead { margin: 0; }
.explain-list { display: grid; gap: 10px; margin: 18px 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.explain-list b { color: var(--text); }

/* Auth */
.auth-card { display: grid; justify-items: center; gap: 6px; padding: 28px 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.auth-card h2 { margin-top: 10px; font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.auth-card .lead { max-width: 26em; margin: 0 0 8px; font-size: 15px; }
.auth-card .form, .auth-card .auth-tabs { width: 100%; max-width: 380px; text-align: left; }
.auth-tabs { display: flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.auth-tabs button { flex: 1; min-height: 40px; border-radius: 11px; color: var(--dim); font-size: 14px; font-weight: 700; text-align: center; }
.auth-tabs button.on { background: var(--surface-3); color: var(--text); }
.auth-tabs + .form { margin-top: 12px; }
.handle-field { display: flex; align-items: center; min-height: 52px; border-radius: 15px; border: 1px solid var(--line-strong); background: var(--surface-2); transition: border-color .2s; }
.handle-field:focus-within { border-color: var(--brand); }
.handle-field span { padding-left: 16px; color: var(--dim); font-weight: 700; }
.handle-field input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px 0 4px; border: 0; outline: none; background: transparent; font-size: 16px; }
.form-error { min-height: 0; color: #ff8f80; font-size: 14px; font-weight: 600; }
.form-error:empty { display: none; }

/* Publish: screenshots */
.scene.photo.upload { background: #121513; }
.scene.photo.upload img { object-position: center; }
.my-apps .app-row { margin-top: 0; margin-bottom: 8px; background: var(--surface-2); }
.my-apps .app-row > .i { color: var(--dim); }

/* AI world: hub */
.ai-hero { padding: 26px; border-radius: 28px; background: radial-gradient(120% 140% at 100% 0%, rgba(185, 163, 255, .2), transparent 55%), radial-gradient(70% 90% at 0% 100%, rgba(103, 232, 249, .08), transparent 60%), radial-gradient(rgba(185, 163, 255, .14) 1px, transparent 1.5px) 0 0 / 18px 18px, var(--surface); border: 1px solid rgba(185, 163, 255, .18); }
.ai-hero h1 { max-width: 16em; margin-top: 14px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; }
.ai-hero .lead { max-width: 34em; }
.ai-hero .hero-kicker { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ws-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ws-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.ws-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ws-card > .i { color: var(--dim); }
.ws-card-icon, .ws-head-icon { position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 15px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 23px; }
.presence { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #6b736d; border: 3px solid var(--surface); }
.presence.on { background: #5fd36b; }
.ws-card-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ws-card-body b { font-size: 16px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-card-body small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }
/* One line: the computer's name gives way (…), the short status stays whole; when it was last seen is in its tooltip */
.ws-card-body small { flex-wrap: nowrap; min-width: 0; }
.ws-card-body small > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-device { flex: 0 4 auto; min-width: 5ch !important; }
.ws-seen { flex: none; }
.ws-branch { flex: 0 1 auto; }
.ws-seen::before, .ws-branch::before { content: "· "; }
.ws-seen.on { color: #5fd36b; }
.ws-branch .i { vertical-align: -2px; }
.ws-last { display: flex; align-items: center; gap: 7px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.ws-last .i { flex: none; color: var(--accent); }
.ws-last.error .i, .ws-last.cancelled .i, .ws-last.interrupted .i { color: #ff8f80; }
/* Engines on a project card: small squarish tags, an icon for where it runs and a short name on one line */
.ws-engines { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; min-width: 0; }
.mini-chip { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; height: 22px; padding: 0 7px 0 6px; border-radius: 7px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.mini-chip > span { overflow: hidden; text-overflow: ellipsis; }
.mini-chip > .i { flex: none; font-size: 12px; color: var(--dim); }
.mini-chip.cloud { background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.mini-chip.cloud > .i { color: var(--accent); }
.ws-shared { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 12px; font-weight: 650; }
.ws-empty { display: grid; justify-items: start; gap: 18px; padding: 22px; border-radius: 22px; border: 1.5px dashed var(--line-strong); }
.ws-steps { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.ws-steps span { display: inline-flex; align-items: center; gap: 8px; }
.ws-steps b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 13px; }
.how { margin-top: 8px; }
.how-flow { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: center; gap: 8px; }
.how-node { display: grid; justify-items: center; gap: 6px; padding: 16px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.how-node > .i, .how-node > svg { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--surface-3); color: var(--text); }
.how-node.accent > svg { background: var(--accent); color: var(--accent-ink); padding: 8px; }
.how-node b { font-size: 14px; }
.how-node small { color: var(--dim); font-size: 12px; line-height: 1.4; }
.how-line { height: 2px; background: repeating-linear-gradient(90deg, var(--dim) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: dash 1s linear infinite; }

/* AI world: connect */
.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.method { position: relative; display: grid; gap: 4px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); color: var(--muted); transition: border-color .2s; }
.method > .i { margin-bottom: 6px; font-size: 24px; color: var(--text); }
.method b { color: var(--text); font-size: 15px; }
.method small { font-size: 12px; }
.method em { position: absolute; top: 12px; right: 12px; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 10px; font-style: normal; font-weight: 750; }
.method:hover { border-color: var(--line-strong); }
.method.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.setup { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: setup; }
.setup > li { position: relative; padding: 20px 20px 20px 62px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); counter-increment: setup; }
.setup > li::before { content: counter(setup); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 800; }
.setup h3 { margin-bottom: 8px; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.setup p { color: var(--muted); font-size: 14px; }
.setup .fine { margin-top: 8px; }
.setup .more { margin-top: 8px; }
.setup .chip-radio { margin-top: 6px; }
.os-switch { margin-bottom: 10px; }
.code-block { position: relative; margin-top: 8px; border-radius: 14px; background: #0b0d0c; border: 1px solid var(--line-strong); }
.code-block pre { margin: 0; padding: 14px 52px 14px 14px; overflow-x: auto; color: #cadbb8; font: 13px/1.6 "SF Mono", ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.code-block .icon-btn { position: absolute; top: 6px; right: 6px; }
.pair-code { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.pair-code span { color: var(--dim); font-size: 13px; }
.pair-code b { font: 700 22px/1 "SF Mono", ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.pair-code small { color: var(--dim); font-size: 12px; }
.pair-code .text-link { min-height: 0; }
.pair-code.failed small { flex-basis: 100%; order: 3; color: #ff9aa3; font-size: 13px; }
.pair-status { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.pair-status > div { flex: 1; display: grid; }
.pair-status small { color: var(--dim); font-size: 13px; }
.pair-status.ok { background: rgba(95, 211, 107, .1); }
.pair-status.ok > .i { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #5fd36b; color: #0c1f0e; }
.storage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.storage-grid b { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 15px; }
.storage-grid b .i { color: var(--accent); }
.storage-grid p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* AI world: one project */
.ws-page { max-width: 940px; }
.ws-page.tasks { display: flex; flex-direction: column; min-height: calc(100dvh - var(--top-h) - var(--tab-h) - var(--safe-b)); padding-bottom: 0; }
.ws-page.tasks .runs { flex: 1; align-content: start; }
.ws-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; }
.ws-head-icon { width: 44px; height: 44px; font-size: 21px; }
.ws-head-text { flex: 1; min-width: 0; display: grid; }
.ws-head-text b { overflow: hidden; font-size: 19px; font-weight: 780; letter-spacing: -.03em; white-space: nowrap; text-overflow: ellipsis; }
.ws-head-text small { overflow: hidden; color: var(--dim); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.ws-nav { position: sticky; z-index: 12; top: var(--top-h); display: flex; gap: 4px; margin-bottom: 16px; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ws-nav a { flex: 1; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; color: var(--dim); font-size: 14px; font-weight: 700; transition: background-color .2s, color .2s; }
.ws-nav a.on { background: var(--surface-3); color: var(--text); }
.ws-nav .i { font-size: 17px; }
.runs { display: grid; gap: 22px; padding-bottom: 12px; }
.runs-empty { display: grid; justify-items: center; gap: 12px; padding: 40px 8px; text-align: center; }
.runs-empty h2 { font-size: 22px; font-weight: 780; letter-spacing: -.03em; }
.runs-empty p { max-width: 30em; color: var(--muted); font-size: 14px; }
.turn { display: grid; gap: 10px; }
.turn-prompt { justify-self: end; max-width: 86%; display: grid; gap: 4px; padding: 12px 16px; border-radius: 20px 20px 6px 20px; background: var(--accent); color: var(--accent-ink); }
.turn-prompt p { font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.turn-prompt small { font-size: 11px; font-weight: 650; opacity: .62; }
.run { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.run.running, .run.sent, .run.queued { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.run.error, .run.interrupted { border-color: rgba(255, 143, 128, .35); }
.run-head { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 650; }
.run-status { display: grid; place-items: center; width: 22px; height: 22px; flex: none; color: var(--accent); font-size: 16px; }
.run.error .run-status, .run.cancelled .run-status, .run.interrupted .run-status { color: #ff8f80; }
.run-meta { flex: 1; min-width: 0; }
.run-steps { display: grid; gap: 2px; padding: 8px 10px; }
.tstep { display: flex; align-items: flex-start; gap: 10px; padding: 7px 6px; border-radius: 12px; font-size: 14px; animation: rise .25s var(--ease); }
.tstep > .i { flex: none; margin-top: 2px; color: var(--dim); font-size: 17px; }
.tstep-main { flex: 1; min-width: 0; }
.tstep-main > p { color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.tstep.change > .i { color: var(--accent); }
/* An update the AI published from the chat: what went out and the way to the post. */
.tstep.posted { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tstep.posted > .i { color: var(--accent); }
.tstep.posted b { display: block; margin-top: 2px; font-size: 14.5px; }
.tstep.posted .fix-link { margin-top: 6px; }
.tstep.meta { color: var(--dim); font-size: 12px; font-weight: 650; padding-top: 4px; padding-bottom: 4px; }
.tstep.meta > .i { font-size: 14px; margin-top: 1px; }
/* Steps as in Claude Code and Codex: a tool call is one line (what, with what, +/− lines, how it went) and its
   output, diff or failure opens under it; three calls or more in a row fold into one counted line. A block that
   was already there does not play the rise again when it is redrawn — only a new one does. */
.run-steps [data-key] { animation: none; }
/* One-line steps never widen the card: a grid column otherwise grows to its longest unbroken line */
.run-steps { grid-template-columns: minmax(0, 1fr); }
.run-steps > *, .tgroup-steps > * { min-width: 0; }
.run-steps > .fresh { animation: rise .25s var(--ease); }
.tstep.tool:not(.plan), .tstep.tgroup { display: block; padding: 0; }
div.tstep.tool:not(.plan), details.tstep.tool > summary, .tstep.tgroup > summary { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 5px 6px; border-radius: 10px; }
details.tstep.tool > summary, .tstep.tgroup > summary { cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
details.tstep > summary::-webkit-details-marker { display: none; }
details.tstep.tool > summary:hover, .tstep.tgroup > summary:hover { background: var(--surface-2); }
div.tstep.tool > .i:first-child, details.tstep.tool > summary > .i:first-child, .tstep.tgroup > summary > .i:first-child { flex: none; margin: 0; color: var(--dim); font-size: 16px; }
.tstep.tool.change > summary > .i:first-child, div.tstep.tool.change > .i:first-child { color: var(--accent); }
details.tstep.tool > summary > .i:last-child, .tstep.tgroup > summary > .i:last-child { flex: none; color: var(--dim); font-size: 14px; transition: transform .2s var(--ease); }
details.tstep[open] > summary > .i:last-child { transform: rotate(180deg); }
.tstep .tl { flex: 1; min-width: 0; overflow: hidden; color: var(--muted); font-size: 13.5px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.tstep .tl code { color: var(--text); font-size: 12.5px; }
.tstep.tool.fail .tl { color: #ffb4a8; }
.tstep .tool-state { margin: 0; width: 18px; height: 18px; font-size: 11px; }
.tcount { flex: none; display: inline-flex; gap: 6px; font-size: 12px; font-style: normal; font-weight: 750; font-variant-numeric: tabular-nums; }
.tcount .add { color: #5fd36b; }
.tcount .del { color: #ff8f80; }
.tbody { display: grid; gap: 6px; margin: 2px 4px 8px 31px; }
.tbody .diff, .tbody .cmd { margin: 0; }
.tout { max-height: 260px; margin: 0; padding: 8px 10px; overflow: auto; border-radius: 10px; background: #0b0d0c; color: var(--muted); font: 12px/1.55 "SF Mono", ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.tout-label { color: var(--dim); font-size: 12px; font-weight: 650; }
.tgroup > summary .tl b { color: var(--text); font-weight: 750; }
.tgroup-steps { display: grid; margin: 0 0 4px 14px; padding-left: 8px; border-left: 1px solid var(--line); }
.tgroup-fail { flex: none; color: #ff8f80; font-size: 12px; font-weight: 700; }
/* Pictures the AI showed: small previews side by side; a tap opens the full-screen viewer */
.tstep.shots { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; }
.shot { display: grid; gap: 4px; max-width: min(46%, 220px); padding: 0; text-align: left; -webkit-tap-highlight-color: transparent; }
.shot img { display: block; height: 112px; width: auto; min-width: 64px; max-width: 100%; object-fit: cover; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform .15s var(--ease); }
.shot:active img { transform: scale(.97); }
.shot small { overflow: hidden; color: var(--dim); font-size: 11.5px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.shot.gone { display: inline-flex; align-items: center; gap: 6px; max-width: none; color: var(--dim); font-size: 12px; }
@media (min-width: 720px) { .shot img { height: 136px; } }
.run-tail:empty { display: none; }
.tstep.say { display: block; padding: 8px 6px; color: var(--text); font-size: 15px; line-height: 1.55; }
.say { white-space: pre-wrap; overflow-wrap: anywhere; }
.say code, .run-answer code { font-size: .88em; }
.md-code { margin: 6px 0; padding: 10px 12px; border-radius: 10px; background: #0b0d0c; overflow-x: auto; font: 12.5px/1.6 "SF Mono", ui-monospace, Menlo, monospace; white-space: pre; }
.md-h { display: block; margin-top: 4px; }
.tstep.thinking { display: block; padding: 0; }
.tstep.thinking summary { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 12px; color: var(--dim); font-size: 13px; font-weight: 650; cursor: pointer; list-style: none; }
.tstep.thinking summary::-webkit-details-marker { display: none; }
.tstep.thinking summary:hover { background: var(--surface-2); }
.tstep.thinking summary .i { font-size: 16px; color: #c8a8f0; }
.tstep.thinking summary em { flex: 1; min-width: 0; overflow: hidden; color: var(--dim); font-style: italic; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.tstep.thinking[open] summary em { display: none; }
.tstep.thinking .say { margin: 0 6px 8px 32px; padding: 10px 12px; border-left: 2px solid rgba(200, 168, 240, .4); color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.tool-state { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; font-size: 12px; }
.tool-state.ok { background: rgba(95, 211, 107, .16); color: #5fd36b; }
.tool-state.fail { background: rgba(255, 143, 128, .16); color: #ff8f80; }
.tool-state.pending { border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.run:not(.running):not(.sent):not(.queued) .tool-state.pending { display: none; }
.tool-state .i { stroke-width: 3; }
.cmd { max-height: 150px; overflow: auto; margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: #0b0d0c; color: #cadbb8; overflow-x: auto; font: 12.5px/1.55 "SF Mono", ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.tool-out { margin-top: 4px; }
.tool-out summary { display: inline-block; color: var(--dim); font-size: 12px; font-weight: 650; cursor: pointer; list-style: none; }
.tool-out summary::-webkit-details-marker { display: none; }
.tool-out summary::before { content: "▸ "; }
.tool-out[open] summary::before { content: "▾ "; }
.tool-out pre { max-height: 260px; margin: 6px 0 0; padding: 8px 10px; overflow: auto; border-radius: 10px; background: #0b0d0c; color: var(--muted); font: 12px/1.55 "SF Mono", ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.diff { max-height: 340px; margin: 6px 0 0; overflow: auto; border-radius: 10px; background: #0b0d0c; font: 12.5px/1.6 "SF Mono", ui-monospace, Menlo, monospace; }
.dl { display: block; min-width: max-content; padding: 0 10px 0 0; color: #aab3a6; white-space: pre; }
.dl i { display: inline-block; width: 22px; color: var(--dim); font-style: normal; text-align: center; user-select: none; }
.dl.add { background: rgba(95, 211, 107, .13); color: #c9f2c2; }
.dl.add i { color: #5fd36b; }
.dl.del { background: rgba(255, 110, 100, .13); color: #ffc9c2; }
.dl.del i { color: #ff8f80; }
.dl.hunk { color: var(--blue); background: rgba(159, 202, 255, .07); padding-left: 10px; }
.dl.more { color: var(--dim); padding-left: 22px; }
.todos { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.todos li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.todos li i { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border: 2px solid var(--line-strong); border-radius: 5px; font-size: 11px; }
.todos li.completed { color: var(--dim); text-decoration: line-through; }
.todos li.completed i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.todos li.in_progress { color: var(--text); font-weight: 650; }
.todos li.in_progress i { border-color: var(--accent); }
.file-list { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.file-list li { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.file-list small { color: var(--dim); font-size: 12px; }
.fs { flex: none; min-width: 24px; padding: 1px 5px; border-radius: 6px; background: var(--surface-3); color: var(--text); font: 700 11px/1.5 "SF Mono", ui-monospace, monospace; text-align: center; }
.fs-M, .fs-MM { background: rgba(240, 201, 127, .18); color: #f0c97f; }
.fs-A, .fs-AM, .fs-nn, .fs-n { background: rgba(95, 211, 107, .16); color: #5fd36b; }
.fs-D { background: rgba(255, 143, 128, .16); color: #ff8f80; }
.tstep.failure { background: rgba(255, 110, 100, .08); }
.tstep.failure > .i { color: #ff8f80; }
.tstep.failure p { color: #ffc9c2; }
.tstep.failure .hint { margin-top: 4px; color: var(--muted); font-size: 13px; }
.run-live { display: flex; align-items: center; gap: 10px; padding: 8px 6px; color: var(--dim); font-size: 13px; }
.run-answer { margin: 0 10px 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border-left: 3px solid var(--accent); font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.run-denied { display: flex; gap: 8px; align-items: flex-start; margin: 0 16px 14px; color: #f0c97f; font-size: 13px; }
.run-denied .i { flex: none; margin-top: 2px; }
.composer-dock { position: sticky; z-index: 14; bottom: 0; margin: 0 -8px; padding: 12px 8px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(12, 14, 13, 0), var(--bg) 22%); transition: transform .25s var(--ease); }
/* Back to the latest step: shown once you read above, with a dot when new steps came below */
.to-end { position: absolute; z-index: 2; right: 14px; top: -40px; width: 40px; height: 40px; display: none; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font-size: 19px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
body.ws-away .ws-page.tasks .to-end { display: grid; }
body.ws-news .to-end::after { content: ""; position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
/* Reading the history (scrolled up from the end): the tabs step aside and the task field folds into one line
   with the send button; at the end, or with a tap on the field, everything is back. */
.ws-nav { transition: transform .25s var(--ease), opacity .2s; }
body.ws-reading .ws-page.tasks .ws-nav { transform: translateY(calc(-100% - 16px)); opacity: 0; pointer-events: none; }
body.ws-reading .ws-page.tasks .task-composer { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 5px 5px 5px 10px; border-radius: 26px; }
body.ws-reading .ws-page.tasks .task-composer > :not(textarea):not(.composer-row) { display: none; }
body.ws-reading .ws-page.tasks .task-composer textarea { min-height: 40px; max-height: 40px; padding: 9px 4px; overflow: hidden; field-sizing: fixed; white-space: nowrap; text-overflow: ellipsis; }
body.ws-reading .ws-page.tasks .composer-row > :not(.composer-end), body.ws-reading .ws-page.tasks .composer-tools { display: none; }
body.ws-reading .ws-page.tasks .task-composer .send { width: 40px; height: 40px; }
body.ws-reading .ws-page.tasks .offline-note { display: none; }
.offline-note { display: flex; align-items: center; gap: 8px; margin: 0 4px 8px; color: #f0c97f; font-size: 13px; font-weight: 600; }
.task-composer { display: grid; gap: 8px; padding: 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.task-composer:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.task-composer textarea { width: 100%; min-height: 48px; max-height: 220px; padding: 8px 8px 4px; border: 0; outline: none; resize: none; background: transparent; font-size: 16px; line-height: 1.45; field-sizing: content; }
.composer-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mode-pick { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--surface-2); }
.mode-pick label { position: relative; }
.mode-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mode-pick span { display: block; padding: 6px 10px; border-radius: 9px; color: var(--dim); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.mode-pick input:checked + span { background: var(--surface-3); color: var(--text); }
.mode-pick input:focus-visible + span { outline: 2px solid var(--brand); }
.composer-row select { min-height: 34px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 13px; font-weight: 650; }
.engine-name { color: var(--dim); font-size: 13px; font-weight: 650; }
.continue { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 13px; font-weight: 600; cursor: pointer; }
.continue input { accent-color: var(--accent); width: 16px; height: 16px; }
.task-composer .send { width: 42px; height: 42px; margin-left: auto; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 19px; transition: transform .15s var(--ease); }
.task-composer .send:active { transform: scale(.9); }
.composer-note { display: flex; align-items: center; gap: 6px; padding: 0 6px; color: var(--dim); font-size: 12.5px; }
.files-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 12px; min-height: 60dvh; }
.files-tree, .files-view { min-width: 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.files-tree { padding: 8px; max-height: calc(100dvh - var(--top-h) - 170px); overflow: auto; position: sticky; top: calc(var(--top-h) + 64px); }
.tree-search { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 6px; padding: 0 10px; border-radius: 12px; background: var(--surface-2); color: var(--dim); }
.tree-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14px; }
.tree { display: grid; }
.tree-row { --d: 0; display: flex; align-items: center; gap: 7px; width: 100%; min-height: 34px; padding: 0 8px 0 calc(8px + var(--d) * 14px); border-radius: 9px; color: var(--muted); font-size: 13.5px; }
.tree-row span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tree-row .i { flex: none; color: var(--dim); font-size: 15px; }
.tree-row.dir { color: var(--text); font-weight: 600; }
.tree-row:hover { background: var(--surface-2); }
.tree-row.active { background: var(--surface-3); color: var(--text); }
.tree-row.active .i { color: var(--accent); }
.tree-error { display: grid; gap: 6px; padding: 14px; color: #ffc9c2; font-size: 14px; }
div.viewer { display: flex; flex-direction: column; height: 100%; min-height: 60dvh; }
.viewer-head { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); }
.viewer-head .file-name { flex: 1; }
.ws-editor { flex: 1; width: 100%; min-height: 60dvh; padding: 16px; border: 0; outline: none; resize: vertical; background: #0f1210; color: #cadbb8; font: 13px/1.7 "SF Mono", ui-monospace, Menlo, Consolas, monospace; tab-size: 2; white-space: pre; border-radius: 0 0 20px 20px; }
.viewer-empty { height: 100%; min-height: 40dvh; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--dim); font-size: 14px; text-align: center; }
.viewer-empty .i { font-size: 34px; }
.compact-only { display: none; }
.changes { display: grid; gap: 12px; }
.changes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
.changes-head span { display: inline-flex; align-items: center; gap: 6px; }
.changes > .file-list { padding: 12px 14px; border-radius: 16px; background: var(--surface); }
.diff-file { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.diff-file summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-size: 13.5px; font-weight: 650; cursor: pointer; list-style: none; }
.diff-file summary::-webkit-details-marker { display: none; }
.diff-file summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diff-file summary small { color: var(--dim); font-family: "SF Mono", ui-monospace, monospace; }
.diff-file .diff { margin: 0; border-radius: 0; max-height: 520px; }
.commit-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.commit-list li { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 14px; }
.commit-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.commit-list small { color: var(--dim); font-size: 12px; white-space: nowrap; }
.access { display: grid; gap: 12px; }
.share-form { display: flex; gap: 8px; flex-wrap: wrap; }
.share-form .handle-field { flex: 1; min-width: 180px; min-height: 46px; }
.share-form .handle-field input { min-height: 44px; }
.share-form select { min-height: 46px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); font-weight: 650; }
.share-form .btn { min-height: 46px; }
.share-list { padding: 4px 12px; border-radius: 18px; background: var(--surface); }
.person-text { flex: 1; min-width: 0; display: grid; }
.person-text small { color: var(--dim); font-size: 13px; }
.device-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); color: var(--dim); }
.device-row > .i { font-size: 22px; color: var(--accent); }
.device-row > span { flex: 1; min-width: 0; display: grid; }
.device-row b { color: var(--text); }
.device-row small { font-size: 12.5px; }
.ws-head-editor { margin-bottom: 14px; }


/* Media posts and photos */
.avatar { overflow: hidden; }
/* An avatar never stretches, even as a flex child next to a text block. */
.avatar { flex: none !important; aspect-ratio: 1; }
.avatar.photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.scene video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.scene.player video { object-fit: contain; }
.sound-btn { position: absolute; z-index: 3; top: 26px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(12, 12, 14, .42); color: #fff; font-size: 20px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.sound-btn::before { content: ''; position: absolute; inset: -8px; }
.sound-btn .i { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.sound-btn:active { transform: scale(.92); }
.sound-flash { position: absolute; z-index: 2; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%; background: rgba(12, 12, 14, .5); color: #fff; font-size: 34px; pointer-events: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: sound-flash .75s var(--ease) both; }
@keyframes sound-flash { 0% { opacity: 0; transform: scale(.7); } 18% { opacity: 1; transform: scale(1); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .sound-flash { animation-duration: .01s; } }
.play-mark { position: absolute; z-index: 1; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 18px; pointer-events: none; }
.play-mark.small { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 12px; }
.avatar-edit { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.avatar-edit .btn { cursor: pointer; }
.avatar-edit .text-link { margin-left: 10px; }
.avatar-edit .fine { margin-top: 6px; }

/* Steam: studio, services, payouts, roadmap */
.hero-lead { max-width: 30em; margin-top: 12px; color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.5; }
.studio-head { display: flex; align-items: center; gap: 14px; }
.studio-mark { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--blue); color: var(--blue-ink); }
.studio-mark svg { width: 36px; height: 36px; }
.studio-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.studio-head p { color: var(--muted); font-size: 14px; }
.studio-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.studio-facts span { display: inline-flex; align-items: center; gap: 6px; }
.studio-facts .i { color: var(--blue); }
.studio-people { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.studio-people > span { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--surface-2); }
.studio-people .avatar { grid-row: span 2; }
.studio-people b { font-size: 14px; }
.studio-people small { color: var(--dim); font-size: 12px; }
.studio-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.service { display: grid; gap: 6px; padding: 16px; border-radius: 18px; background: var(--surface-2); }
.service > .i { font-size: 22px; color: var(--blue); }
.service b { font-size: 15px; }
.service p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.payout-flow { display: flex; align-items: stretch; gap: 6px; }
.payout-node { flex: 1; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 14px 8px; border-radius: 18px; background: var(--surface-2); text-align: center; }
.payout-node > .i { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(159, 202, 255, .14); color: var(--blue); }
.payout-node b { font-size: 14px; }
.payout-node small { color: var(--dim); font-size: 12px; line-height: 1.4; }
.payout-arrow { align-self: center; color: var(--dim); font-size: 18px; }
.payout-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 10px; }
.payout-facts div { display: grid; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.payout-facts b { color: var(--blue); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.payout-facts small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.roadmap { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.roadmap > li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.roadmap > li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--surface-3); }
.roadmap > li:last-child::before { display: none; }
.roadmap > li > i { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--surface-3); background: var(--surface); color: var(--blue-ink); font-size: 14px; }
.roadmap > li.done > i { background: var(--blue); border-color: var(--blue); }
.roadmap > li.done > i .i { stroke-width: 3; }
.roadmap small { color: var(--blue); font-size: 12px; font-weight: 700; }
.roadmap b { display: block; font-size: 16px; }
.roadmap ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.faq { display: grid; gap: 4px; }
.faq .more { margin: 0; padding: 4px 0; border-bottom: 1px solid var(--line); }
.faq .more summary { color: var(--text); font-size: 15px; }
.faq .more p { margin-bottom: 8px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.team-card { display: grid; justify-items: center; gap: 6px; padding: 16px 10px; border-radius: 18px; background: var(--surface-2); text-align: center; }
.team-card small { color: var(--dim); font-size: 13px; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.why-grid b { display: block; margin-bottom: 4px; font-size: 15px; }
.why-grid p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.blocks-2 .block { margin-top: 0; }

@keyframes burst { 0% { opacity: 0; transform: scale(.3) rotate(-14deg); } 25% { opacity: 1; transform: scale(1.18) rotate(0); } 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.9) translateY(-70px); } }
@keyframes pop { 40% { transform: scale(1.22); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes dot-grow { 0% { width: 6px; } 60% { width: 24px; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes float { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { background-position: 24px 0; } }
@keyframes slide-from-right { from { opacity: .4; transform: translateX(8%); } }
@keyframes slide-from-left { from { opacity: .4; transform: translateX(-8%); } }

/* Tablet: icon-only rail, workspace in tabs */
@media (max-width: 1100px) {
  :root { --dock-w: 80px; }
  #dock { align-items: center; padding: 16px 10px; }
  .dock-brand { padding: 4px 0 20px; }
  .dock-item { width: 56px; justify-content: center; padding: 0; }
  .dock-item .label, .dock-brand .label, .dock-foot { display: none; }
  .dock-publish { margin-top: 10px; }
  .badge { position: absolute; top: 6px; left: 30px; margin: 0; }
  .feed-nav { right: 16px; }
  .ws-tabs { display: flex; gap: 4px; margin-bottom: 12px; padding: 4px; border-radius: 16px; background: var(--surface); }
  .ws-tabs button { flex: 1; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; color: var(--dim); font-size: 14px; font-weight: 700; transition: background-color .2s, color .2s; }
  .ws-tabs button.on { background: var(--surface-3); color: var(--text); }
  .workspace { display: block; height: calc(100dvh - var(--top-h) - var(--tab-h) - 190px); min-height: 400px; }
  .workspace .pane { display: none; height: 100%; }
  .workspace[data-pane="files"] .pane-files, .workspace[data-pane="code"] .pane-code, .workspace[data-pane="assistant"] .pane-ai { display: flex; }
  .pane-files, .pane-ai { border: 0; }
  .blocks-2 { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .feed-nav { display: none; }
  .card-media { max-width: calc(100vw - var(--dock-w) - 120px); }
}

/* Phone: content full screen, tab bar at the bottom, services as text on top */
@media (max-width: 760px) {
  :root { --dock-w: 0px; --top-h: 52px; --tab-h: 58px; --stack: 14px; --safe-b: calc(env(safe-area-inset-bottom, 0px) * .6); }
  body { padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
  body[data-view="feed"] { padding-bottom: 0; }
  #dock { inset: auto 0 0 0; width: auto; height: calc(var(--tab-h) + var(--safe-b)); flex-direction: row; align-items: flex-start; justify-content: space-around; gap: 0; padding: 0 4px var(--safe-b); border-right: 0; border-top: 1px solid var(--line); background: rgba(12, 14, 13, .94); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
  body[data-view="feed"] #dock { background: #000; border-top-color: rgba(255, 255, 255, .06); }
  .dock-brand { display: none; }
  .dock-item { flex: 1; width: auto; min-height: var(--tab-h); flex-direction: column; justify-content: center; gap: 3px; padding: 0; border-radius: 0; font-size: 10.5px; font-weight: 650; }
  .dock-item .label { display: block; }
  .dock-item:hover { background: none; color: var(--dim); }
  .dock-item.active, .dock-item.active:hover { color: var(--text); }
  .dock-item .i { font-size: 25px; }
  .dock-publish { order: 0; flex: 0 0 auto; align-self: center; width: 50px; height: 34px; min-height: 34px; margin: 0 6px; border-radius: 11px; }
  .dock-publish .label { display: none; }
  .dock-publish:hover { background: transparent; }
  .badge { top: 5px; left: calc(50% + 3px); }
  #topbar { left: 0; height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 56px 0; }
  .services { gap: 22px; }
  .services a { font-size: 16px; }
  body[data-view="feed"] .services a { color: rgba(255, 255, 255, .78); text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 8px rgba(0, 0, 0, .35); }
  body[data-view="feed"] .top-bell, body[data-view="feed"] .top-actions .top-bell { color: #fff; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .6)); }
  body[data-view="feed"] .services a.active { color: #fff; }
  body[data-view="feed"] .services-bar { background: #fff; }
  .top-back { left: 6px; top: var(--safe-t); margin-top: 4px; }
  main { margin-left: 0; min-height: calc(100dvh - var(--tab-h) - var(--safe-b)); }
  body[data-view="page"] main { padding-top: calc(var(--top-h) + var(--safe-t)); }
  .page { padding: 2px 16px 32px; }
  .feed { left: 0; bottom: calc(var(--tab-h) + var(--safe-b)); }
  .feed { background: #000; }
  .feed-item { padding: 0; }
  .card { width: 100%; display: block; }
  .card-media { position: absolute; inset: 0; height: auto; max-width: none; aspect-ratio: auto; border-radius: 0; }
  .mock { margin-top: 16cqh; }
  .card-info { padding: 0 84px 18px 16px; }
  .card-title { font-size: 27px; }
  .card-summary { font-size: 14px; }
  /* A soft dark band under the top labels: "Steam" and "ИИ-мир" stay readable over fog, snow and sky. */
  .card-shade { background: linear-gradient(180deg, rgba(0, 0, 0, .42) 0, rgba(0, 0, 0, .16) calc(var(--safe-t) + 52px), rgba(0, 0, 0, 0) calc(var(--safe-t) + 96px)), linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .8) 100%); }
  .slide-arrow { display: none; }
  .rail { position: absolute; z-index: 3; right: 4px; bottom: 16px; gap: 10px; padding: 0; }
  .rail-author { margin-bottom: 12px; }
  .rail-avatar .avatar { width: 48px; height: 48px; box-shadow: 0 0 0 2px #fff; }
  .rail-btn { color: #fff; font-size: 12px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
  .rail-icon { width: 50px; height: 40px; background: none; font-size: 32px; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45)); }
  .rail-btn:hover .rail-icon { background: none; }
  .rail-btn.on .rail-icon { background: none; color: #fff; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .55)); }
  .rail-icon .i { stroke-width: 1.6; }
  .filter-chip { top: calc(var(--top-h) + var(--safe-t) + 12px); left: 0; }
  .search-box { min-height: 48px; }
  .cat-tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; gap: 8px; margin: 14px -16px 0; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .cat-tiles::-webkit-scrollbar { display: none; }
  .cat-tile { min-height: 104px; padding: 13px; border-radius: 18px; font-size: 15px; scroll-snap-align: start; }
  .cat-tile > .i { font-size: 26px; }
  .thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .thumb { border-radius: 14px; }
  .profile .thumb-grid { gap: 2px; }
  .profile .thumb { border-radius: 4px; }
  .profile .thumb-title { font-size: 12px; bottom: 24px; left: 8px; }
  .profile .thumb-meta { left: 8px; bottom: 6px; font-size: 11px; }
  .chat-composer { left: 0; bottom: calc(var(--tab-h) + var(--safe-b)); padding-bottom: 10px; }
  .page.chat-page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.keyboard #dock, body.keyboard .ptr { display: none; }
  /* A sheet with a focused field rises above the keyboard, its composer stays visible. */
  body.keyboard dialog[open] { margin-bottom: var(--kb, 0px); max-height: calc(100dvh - var(--kb, 0px) - env(safe-area-inset-top) - 8px); }
  body.keyboard dialog[data-kind="project"] { height: calc(100dvh - var(--kb, 0px) - env(safe-area-inset-top) - 8px); }
  body.keyboard .composer.sticky, body.keyboard .wizard-bar { padding-bottom: 10px; }
  body.keyboard .chat-composer { bottom: var(--kb, 0px); padding-bottom: 8px; }
  body.keyboard .page.chat-page { padding-bottom: calc(80px + var(--kb, 0px)); }
  .creators { margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; scroll-snap-type: x mandatory; }
  .creator { scroll-snap-align: start; }
  .steam-hero { min-height: 340px; border-radius: 24px; }
  .hero-copy { padding: 22px; }
  .steam-hero:has(.chrome-art) .hero-copy { padding-bottom: 58px; }
  .steam-hero .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .steam-hero .hero-actions .btn { min-height: 46px; padding: 0 12px; font-size: 14px; }
  .steam-hero .hero-actions .hero-main { grid-column: 1 / -1; min-height: 52px; font-size: 16px; }
  .ai-hero .hero-actions { display: grid; gap: 8px; }
  .ai-hero .hero-actions .btn { width: 100%; }
  .ai-hero .neural { right: -110px; top: -100px; width: 230px; opacity: .55; }
  .hero-waves { height: 52px; opacity: .75; }
  .block { padding: 20px 16px; border-radius: 22px; }
  .steps::before, .steps::after { top: 24px; }
  .step-icon { width: 48px; height: 48px; font-size: 20px; }
  .step { font-size: 13px; }
  .readiness-wrap { flex-direction: column; }
  .ready-grid { width: 100%; }
  .calc-result strong { font-size: 36px; }
  .tile-grid { grid-template-columns: 1fr; gap: 10px; }
  .doc-tile { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; min-height: 0; padding: 16px; border-radius: 20px; }
  .doc-icon { flex: none; }
  .ws-head { gap: 8px; }
  .source-chip { flex: 1; gap: 10px; padding-right: 10px; }
  .source-chip > .i, .billing > .i { display: none; }
  .source-icon { width: 36px; height: 36px; font-size: 18px; }
  .workspace { height: calc(100dvh - var(--top-h) - var(--tab-h) - 210px); min-height: 360px; border-radius: 20px; }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flow-line { width: 34px; }
  dialog { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border: 0; border-top: 1px solid var(--line-strong); border-radius: 26px 26px 0 0; }
  dialog[open] { animation: sheet-up .32s var(--ease); }
  .grabber { position: sticky; z-index: 6; top: 0; display: block; height: 0; }
  .grabber::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 5px; background: rgba(255, 255, 255, .7); box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
  .sheet-body { padding: 22px 18px 24px; }
  .composer.sticky { margin: 8px -18px -24px; padding-left: 18px; padding-right: 18px; }
    #toast { bottom: calc(var(--tab-h) + var(--safe-b) + 14px); }
  dialog #toast { bottom: calc(env(safe-area-inset-bottom) + 90px); }
}

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock-avatar { width: 28px; height: 28px; }
}

@media (max-width: 760px) {
  .sound-btn { top: calc(var(--top-h) + var(--safe-t) + 14px); }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .service { padding: 12px; }
  .service p { font-size: 12.5px; }
  .why-grid { grid-template-columns: 1fr; }
  .payout-flow { flex-direction: column; }
  .payout-arrow { transform: rotate(90deg); }
  .payout-node { grid-template-columns: 40px 1fr; justify-items: start; text-align: left; column-gap: 12px; }
  .payout-node > .i { grid-row: span 2; }
  .payout-facts { grid-template-columns: 1fr 1fr; }
  .hero-lead { font-size: 15px; }
  .page-title { font-size: 22px; }
  .ai-hero { padding: 20px 18px; border-radius: 24px; }
  .ws-list { grid-template-columns: 1fr; }
  .how-flow { grid-template-columns: 1fr; gap: 0; }
  .how-line { width: 2px; height: 18px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--dim) 0 5px, transparent 5px 10px); background-size: 2px 20px; }
  .how-node { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; column-gap: 12px; }
  .how-node > .i, .how-node > svg { grid-row: span 2; }
  .storage-grid { grid-template-columns: 1fr; }
  .setup > li { padding: 16px 14px 16px 52px; }
  .setup > li::before { left: 12px; top: 14px; width: 28px; height: 28px; }
  .ws-head { margin-bottom: 8px; }
  .ws-nav { top: calc(var(--top-h) + var(--safe-t)); margin: 0 -4px 12px; }
  .ws-nav a { flex-direction: column; gap: 2px; min-height: 48px; font-size: 11px; }
  .ws-nav .i { font-size: 19px; }
  .ws-page.tasks { padding-bottom: 0; }
  .composer-dock { bottom: calc(var(--tab-h) + var(--safe-b)); margin: 0 -12px; padding: 10px 12px 10px; }
  /* Reading a project's history on a phone: the bottom bar slides away and the folded field takes its place */
  #dock { transition: transform .25s var(--ease); }
  body.ws-reading #dock { transform: translateY(100%); }
  body.ws-reading .ws-page.tasks .composer-dock { transform: translateY(calc(var(--tab-h) + var(--safe-b) - env(safe-area-inset-bottom, 0px))); }
  .task-composer { border-radius: 20px; }
  .mode-pick span { padding: 6px 8px; font-size: 12.5px; }
  .continue span { font-size: 12px; }
  .turn-prompt { max-width: 92%; }
  .run { border-radius: 18px; }
  .run-steps { padding: 6px; }
  .tstep { gap: 8px; padding: 6px 4px; }
  .tstep.thinking .say { margin-left: 4px; }
  .files-layout { display: block; min-height: 0; }
  .files-tree { position: static; max-height: none; }
  .files-layout .files-view { display: none; }
  .files-layout.has-file .files-tree { display: none; }
  .files-layout.has-file .files-view { display: block; }
  .compact-only { display: inline-grid; }
  .ws-editor { min-height: 55dvh; font-size: 12.5px; }
  .trust-explain { flex-direction: column; align-items: flex-start; }
  .stats { gap: 20px; }
  .profile-actions { flex-wrap: nowrap; width: 100%; }
  .profile-actions .btn:not(.btn-square) { flex: 1 1 0; min-width: 0; padding: 0 10px; }
  .card-tags { flex-wrap: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .card-tags > * { flex: none; }
  .star-pick span { font-size: 40px; }
  }

/* Feed: pull to refresh, why-you-see-this chips, end of the round */
.feed { transition: transform .35s var(--ease); }
body.pulling .feed { transform: translateY(calc(var(--pull, 0px) * .55)); transition: none; }
body.ptr-loading .feed { transform: translateY(36px); }
.ptr { position: fixed; z-index: 32; top: calc(var(--top-h) + var(--safe-t) - 6px); left: var(--dock-w); right: 0; display: flex; justify-content: center; pointer-events: none; opacity: 0; transform: translateY(calc(var(--pull, 0px) * .6 - 28px)); transition: opacity .2s, transform .35s var(--ease); }
body.pulling .ptr { opacity: var(--pull-o, 0); transition: none; }
body.ptr-loading .ptr { opacity: 1; transform: translateY(12px); }
.ptr span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(20, 24, 22, .82); color: #fff; font-size: 21px; box-shadow: 0 8px 26px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: rotate(var(--pull-turn, 0deg)); transition: background-color .2s, color .2s; }
.ptr .i { stroke-width: 2.4; }
body.ptr-ready .ptr span, body.ptr-loading .ptr span { background: var(--accent); color: var(--accent-ink); }
body.ptr-loading .ptr .i { animation: spin .8s linear infinite; }
body.pulling #topbar .services, body.ptr-loading #topbar .services { opacity: .15; transition: opacity .2s; }


.feed-end { background: radial-gradient(60% 45% at 50% 40%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%); }
.end-card { margin: auto; max-width: 360px; display: grid; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.end-icon { width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 50%; background: rgba(255, 255, 255, .04); color: #fff; font-size: 36px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85), 0 0 60px rgba(255, 255, 255, .08); animation: pop .6s var(--ease); }
.end-icon .i { stroke-width: 1.8; }
.end-icon.muted { background: var(--surface-3); color: var(--muted); box-shadow: none; }
.end-card h2 { font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.end-card p { color: var(--muted); font-size: 15px; }
.end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.end-hint { margin-top: 18px; color: var(--dim); font-size: 26px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* Post interest: support, saves, retention and reach */
.interest { margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.interest-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.interest-head > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.interest-head > span .i { color: var(--accent); }
.interest-meter { flex: 1; height: 8px; overflow: hidden; border-radius: 8px; background: var(--surface-3); }
.interest-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 255, 255, .5), #fff); animation: grow .8s var(--ease); transform-origin: left; }
.interest-head b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.interest-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.interest-stats span { display: grid; justify-items: center; gap: 2px; text-align: center; color: var(--dim); }
.interest-stats .i { font-size: 18px; }
.interest-stats b { color: var(--text); font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
.interest-stats small { font-size: 11px; }
@keyframes grow { from { transform: scaleX(0); } }

/* Profile: what the feed has learned */
.taste-card { margin-top: 18px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.taste-head { display: flex; align-items: center; gap: 10px; }
.taste-title { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 750; }
.taste-title .i { color: var(--accent); }
.taste-level { flex: 1; height: 6px; overflow: hidden; border-radius: 6px; background: var(--surface-3); }
.taste-level i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.taste-head b { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.taste-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.taste-chip { --w: .5; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: color-mix(in srgb, var(--accent) calc(var(--w) * 34%), var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) calc(var(--w) * 50%), transparent); font-size: calc(12px + var(--w) * 3px); font-weight: 700; }
.taste-chip .i { font-size: 15px; }
.taste-empty { margin-top: 10px; color: var(--dim); font-size: 14px; }

@media (max-width: 760px) {
  .ptr { left: 0; }
  .end-card h2 { font-size: 24px; }
  .interest-stats b { font-size: 15px; }
}

/* Steam: advantages in accent, the 2% fee leads */
.accent-text { color: var(--accent); font-weight: 800; }
.hero-fee { position: absolute; z-index: 2; top: 22px; right: 22px; width: 112px; height: 112px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, #c9d2dc 40%, #7d8794 75%, #c3ccd6); color: #10131a; box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 16%, transparent), 0 18px 40px rgba(0, 0, 0, .35); transform: rotate(-8deg); animation: fee-in .7s var(--ease) both; }
.hero-fee b { font-size: 40px; font-weight: 900; letter-spacing: -.06em; line-height: .9; }
.hero-fee small { font-size: 12px; font-weight: 750; }
@keyframes fee-in { from { opacity: 0; transform: rotate(-30deg) scale(.6); } }
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: var(--stack); }
.perk-fee { grid-column: 1 / -1; position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(220px, .9fr); align-items: center; gap: 22px; padding: 22px 26px; border-radius: 26px; background: radial-gradient(120% 140% at 0% 0%, #e4ff9e 0%, var(--accent) 45%, #9ed24a 100%); color: var(--accent-ink); }
.perk-fee::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .22); pointer-events: none; }
.perk-fee-big { font-size: 92px; font-weight: 900; letter-spacing: -.07em; line-height: .85; }
.perk-fee b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.perk-fee p { margin-top: 4px; font-size: 15px; font-weight: 550; opacity: .8; }
.fee-compare { position: relative; z-index: 1; display: grid; gap: 10px; }
.fee-compare span { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; font-size: 13px; }
.fee-compare i { grid-column: 1 / -1; height: 10px; min-width: 8px; border-radius: 10px; background: var(--accent-ink); animation: grow .9s var(--ease); transform-origin: left; }
.fee-compare .usual i { background: rgba(23, 34, 12, .25); }
.fee-compare b { font-size: 13px; font-weight: 750; }
.fee-compare small { font-size: 13px; font-weight: 800; }
.fee-compare .usual { opacity: .75; }
.perk { display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.perk > .i { width: 40px; height: 40px; padding: 9px; margin-bottom: 4px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.perk b { font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.perk small { color: var(--muted); font-size: 13px; }
.studio-facts .accent-fact { padding: 4px 11px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 750; }
.calc .seg-pub { min-width: 6px; }

@media (max-width: 1100px) {
  .perk-fee { grid-template-columns: auto minmax(0, 1fr); }
  .fee-compare { grid-column: 1 / -1; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero-fee { display: none; }
  .perks { gap: 8px; }
  .perk-fee { gap: 14px; padding: 18px; border-radius: 22px; }
  .perk-fee-big { font-size: 64px; }
  .perk-fee b { font-size: 17px; }
  .perk-fee p { font-size: 14px; }
  .perk { padding: 14px; border-radius: 18px; }
  .perk b { font-size: 15px; }
}

/* Post page: fonts, blocks and theme */
.pf-sans { --page-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --font-k: 1; }
.pf-display { --page-font: "Unbounded", Inter, sans-serif; --font-k: .9; }
.pf-serif { --page-font: "Playfair Display", Georgia, "Times New Roman", serif; --font-k: 1.05; }
.pf-mono { --page-font: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; --font-k: .94; }
.pf-round { --page-font: Comfortaa, ui-rounded, "Arial Rounded MT Bold", sans-serif; --font-k: .98; }
.pf-hand { --page-font: Caveat, "Segoe Print", "Bradley Hand", cursive; --font-k: 1.32; }
.pf-pixel { --page-font: "Press Start 2P", ui-monospace, monospace; --font-k: .62; }
.themed { background: var(--page-bg); color: var(--page-ink); --text: var(--page-ink); }
.themed.is-dark { --muted: rgba(244, 246, 239, .7); --dim: rgba(244, 246, 239, .46); --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .18); --surface-2: rgba(255, 255, 255, .07); --surface-3: rgba(255, 255, 255, .12); }
.themed.is-light { color-scheme: light; --muted: rgba(20, 23, 20, .68); --dim: rgba(20, 23, 20, .48); --line: rgba(20, 23, 20, .1); --line-strong: rgba(20, 23, 20, .18); --surface-2: rgba(20, 23, 20, .06); --surface-3: rgba(20, 23, 20, .1); }
.themed .btn-ghost:hover { background: var(--surface-3); filter: brightness(.96); }
.store, .pe-canvas { --brand: var(--page-accent); --brand-ink: var(--page-accent-ink); --accent: var(--page-accent); --accent-ink: var(--page-accent-ink); }
.pb { margin: 0; font-family: var(--page-font, inherit); font-size: calc(var(--base, 16px) * var(--k, 1) * var(--font-k, 1)); line-height: 1.5; overflow-wrap: anywhere; }
.pb-heading { --base: 26px; font-weight: 800; line-height: 1.14; letter-spacing: -.02em; }
.pb-text, .pb-list { --base: 16px; }
.pb-quote { --base: 19px; }
.pf-pixel.pb, .pf-pixel .pb { line-height: 1.85; letter-spacing: 0; }
.sz-s { --k: .82; }
.sz-m { --k: 1; }
.sz-l { --k: 1.3; }
.sz-xl { --k: 1.7; }
.al-center { text-align: center; }
.pb a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.pb-list { display: grid; gap: 9px; padding: 0; list-style: none; }
.pb-list li { position: relative; padding-left: 30px; }
.pb-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); }
.pb-list li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 4px); width: 5px; height: 9px; border: solid var(--brand-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pb-list.al-center li { padding-left: 0; }
.pb-list.al-center li::before, .pb-list.al-center li::after { display: none; }
.pb-quote { padding: 2px 0 2px 18px; border-left: 3px solid var(--brand); font-style: italic; font-synthesis: style; }
.pb-quote cite { display: block; margin-top: 8px; color: var(--muted); font-family: Inter, sans-serif; font-size: 13px; font-style: normal; font-weight: 650; }
.pb-quote cite::before { content: "— "; }
.pb-media { display: grid; gap: 8px; }
.pb-media img, .pb-media video { display: block; width: 100%; max-height: 72vh; object-fit: contain; border-radius: 18px; background: rgba(0, 0, 0, .18); }
.pb-media figcaption { color: var(--muted); font-size: 13px; text-align: center; }
.pb-button { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 20px; border-radius: 18px; background: var(--brand); color: var(--brand-ink); font-family: Inter, sans-serif; font-size: 16px; font-weight: 750; transition: transform .15s var(--ease), filter .2s; }
.pb-button span { flex: 1; }
.pb-button .i { font-size: 20px; }
.pb-button:hover { filter: brightness(1.06); }
.pb-button:active { transform: scale(.98); }
.pb-divider { height: 1px; margin: 6px 0; border: 0; background: var(--line-strong); }

/* Post as a store page */
dialog:is([data-kind="project"], [data-kind="update-page"]) { width: min(1120px, calc(100% - 48px)); max-height: calc(100dvh - 40px); background: var(--surface); }
.store { min-height: 100%; background: var(--page-bg, var(--surface)); color: var(--page-ink, var(--text)); }
.store-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 28px; padding: 24px; }
.store-media { position: relative; align-self: start; overflow: hidden; border-radius: 20px; background: #000; }
.store-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.store-gallery::-webkit-scrollbar { display: none; }
.store-slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 10; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always; }
.store-slide { cursor: zoom-in; }
.store-slide .scene video, .store-slide .scene.upload img { object-fit: cover; }
.store-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.store-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .5); box-shadow: 0 0 8px rgba(0, 0, 0, .3); transition: width .3s var(--ease), background-color .3s; }
.store-dots i.on { width: 20px; background: var(--grad); }
.gallery-arrow { position: absolute; z-index: 2; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 20px; opacity: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .2s; }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.store-media:hover .gallery-arrow { opacity: 1; }
.store-head { min-width: 0; padding-top: 4px; }
.store-head .sheet-author { margin-bottom: 18px; padding-right: 44px; }
.store-title { display: block; font-family: var(--page-font, inherit); font-size: calc(34px * var(--font-k, 1)); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; overflow-wrap: anywhere; }
.store-summary { margin-top: 10px; color: var(--muted); font-family: var(--page-font, inherit); font-size: calc(17px * var(--font-k, 1)); line-height: 1.45; }
.store-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.store-cta { flex: 1 1 100%; min-height: 54px; border-radius: 16px; font-size: 16px; }
.link-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 650; transition: background-color .2s; }
.link-pill:hover { background: var(--surface-3); }
.link-pill .i { font-size: 16px; color: var(--brand); }
.store-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fact { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.fact > .i { margin-top: 2px; color: var(--brand); font-size: 18px; }
.fact small { display: block; color: var(--dim); font-size: 12px; font-weight: 650; }
.fact b { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.store-head .chips { margin-top: 14px; }
.store-page { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; padding: 8px 24px 12px; }
.store-foot { max-width: 760px; margin: 0 auto; padding: 22px 24px 32px; }
.store-page + .updates, .updates + .store-foot { margin-top: 8px; }
.promo-offer, .promo-status { margin-top: 2px; }
.store-foot .sheet-actions { flex-wrap: nowrap; }
.store-foot .sheet-actions .btn:first-child:not(.btn-square) { flex: 1; min-width: 0; }
.store-foot .sheet-actions .btn-square { flex: none; }

/* Cover art for posts without photos */
.cover-art { background: var(--page-bg); color: var(--page-ink); }
.cover-art-glow { position: absolute; inset: -20%; background: radial-gradient(45% 35% at 70% 25%, color-mix(in srgb, var(--page-accent) 38%, transparent), transparent 70%), radial-gradient(40% 30% at 20% 80%, color-mix(in srgb, var(--page-accent) 22%, transparent), transparent 70%); }
.cover-art-inner { position: relative; display: grid; justify-items: start; gap: 4cqh; width: 82%; margin-bottom: 18cqh; }
.cover-art-icon { width: 15cqw; height: 15cqw; display: grid; place-items: center; border-radius: 30%; background: var(--page-accent); color: var(--page-accent-ink); font-size: 8cqw; }
.cover-art-title { font-family: var(--page-font); font-size: calc(min(13cqw, 9cqh) * var(--font-k, 1)); font-weight: 850; letter-spacing: -.03em; line-height: 1.02; overflow-wrap: anywhere; }
.cover-art-stage { padding: .5em 1em; border-radius: 99px; border: 1px solid currentColor; font-size: max(11px, 3.4cqw); font-weight: 700; opacity: .8; }
.tag-stage, .tag-ai { display: inline-flex; align-items: center; gap: 4px; }
.card-tags .tag-stage { background: var(--accent); color: var(--accent-ink); }

.tag-stage .i, .tag-ai .i { font-size: 12px; stroke-width: 2.4; }

/* Publishing wizard */
dialog[data-kind="publish"] { width: min(720px, calc(100% - 32px)); }
.publish h2 { margin-bottom: 14px; }
.wizard-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wstep { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 8px; border-radius: 14px; background: var(--surface-2); color: var(--dim); font-size: 14px; font-weight: 700; transition: background-color .2s, color .2s; }
.wstep i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); font-size: 12px; font-style: normal; }
.wstep.on { background: var(--brand); color: var(--brand-ink); }
.wstep.on i { background: rgba(0, 0, 0, .14); }
.wstep.done { color: var(--text); }
.wstep.done i { background: var(--brand); color: var(--brand-ink); }
.wizard fieldset { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.wizard[data-step="1"] [data-pane="1"], .wizard[data-step="2"] [data-pane="2"], .wizard[data-step="3"] [data-pane="3"] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; animation: rise .25s var(--ease); }
.wizard fieldset > input { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 15px; border: 1px solid var(--line-strong); outline: none; background: var(--surface-2); font-size: 16px; transition: border-color .2s; }
.wizard fieldset > input:focus { border-color: var(--brand); }
.field-label { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.field-label .i { font-size: 15px; }
.chip-radio .i { font-size: 16px; }
.wizard-bar { position: sticky; z-index: 4; bottom: 0; display: flex; gap: 8px; margin: 8px -24px -24px; padding: 12px 24px calc(14px + var(--safe-b)); background: linear-gradient(180deg, transparent, var(--surface) 30%); }
.wizard-bar .btn-primary { flex: 1; min-height: 54px; font-size: 16px; }
.wizard-bar .btn-ghost { width: 54px; min-height: 54px; padding: 0; font-size: 20px; }
.wizard[data-step="1"] .wizard-back { display: none; }
.file-cover { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; min-height: 230px; padding: 24px; border-radius: 22px; border: 2px dashed color-mix(in srgb, var(--brand) 55%, transparent); background: radial-gradient(70% 70% at 50% 30%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%), var(--surface-2); text-align: center; cursor: pointer; transition: border-color .2s, transform .2s var(--ease), background-color .2s; }
.drop:hover, .drop.dragging { border-color: var(--brand); transform: scale(1.01); }
.drop b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.drop small { color: var(--muted); font-size: 14px; }
.drop-icon { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 30px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 14%, transparent); }
.drop-icon .i { stroke-width: 2.3; }
.drop-hint { max-width: 300px; margin-top: 4px; color: var(--dim); font-size: 12px; line-height: 1.4; }
.drop.offline { cursor: default; border-style: solid; border-color: var(--line-strong); }
.drop.offline .drop-icon { background: var(--surface-3); color: var(--muted); box-shadow: none; }
.pick-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 22px; background: #000; }
.pick-cover img, .pick-cover video, .pick-thumb img, .pick-thumb video { width: 100%; height: 100%; object-fit: cover; }
.pick-cover em { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: 13px; font-style: normal; font-weight: 750; }
.pick-remove { position: absolute; z-index: 2; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 15px; }
.pick-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pick-thumb, .pick-add { position: relative; flex: none; width: 78px; aspect-ratio: 1; overflow: hidden; border-radius: 16px; }
.pick-thumb .pick-remove { top: 4px; right: 4px; width: 24px; height: 24px; font-size: 12px; }
.pick-make-cover { position: absolute; inset: 0; }
.pick-add { display: grid; place-items: center; align-content: center; gap: 2px; border: 2px dashed var(--line-strong); color: var(--muted); font-size: 22px; cursor: pointer; transition: border-color .2s, color .2s; }
.pick-add small { font-size: 12px; font-weight: 650; }
.pick-add:hover, .pick-add.dragging { border-color: var(--brand); color: var(--text); }
.toggle-row { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-strong); cursor: pointer; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row > span { flex: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.toggle-row > span .i { grid-row: span 2; color: var(--blue); font-size: 22px; }
.toggle-row b { font-size: 15px; }
.toggle-row small { color: var(--dim); font-size: 12px; }
.toggle { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--surface-3); transition: background-color .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.toggle-row input:checked ~ .toggle { background: var(--brand); }
.toggle-row input:checked ~ .toggle::after { transform: translateX(18px); background: var(--brand-ink); }
.toggle-row input:focus-visible ~ .toggle { outline: 2px solid var(--brand); outline-offset: 2px; }
.link-rows { display: grid; gap: 8px; }
.link-row { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 15px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.link-row:focus-within { border-color: var(--brand); }
.link-kind { display: grid; justify-items: center; flex: none; width: 58px; color: var(--brand); font-size: 18px; }
.link-kind small { max-width: 58px; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.link-row input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: none; background: none; font-size: 16px; }
.add-link { display: inline-flex; align-items: center; gap: 6px; width: max-content; min-height: 40px; color: var(--brand); font-size: 14px; font-weight: 700; }

/* Page editor */
.pe-theme { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface-2); }
.pe-row { display: grid; gap: 8px; }
.pe-row > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.swatches { display: flex; gap: 8px; overflow-x: auto; padding: 3px; scrollbar-width: none; }
.swatches::-webkit-scrollbar, .pe-fonts::-webkit-scrollbar { display: none; }
.swatch { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sw, transparent); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35); cursor: pointer; transition: transform .15s var(--ease); }
.swatch.on { box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35), 0 0 0 2px var(--surface), 0 0 0 4px var(--text); transform: scale(.92); }
.swatch.none { background: linear-gradient(135deg, transparent 46%, #ff5d73 46%, #ff5d73 54%, transparent 54%), var(--surface-3); }
.swatch.custom { background: var(--sw, conic-gradient(#ff5d73, #ffd84d, #3ddbb0, #6cb8ff, #b78cff, #ff5d73)); overflow: hidden; }
.swatch.custom input { position: absolute; inset: -8px; width: 48px; height: 48px; opacity: 0; cursor: pointer; }
.swatches.small .swatch { width: 26px; height: 26px; }
.pe-fonts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pe-font { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 70px; padding: 8px 10px; border-radius: 14px; background: var(--surface-3); color: var(--muted); }
.pe-font b { font-family: var(--page-font, inherit); font-size: calc(22px * var(--font-k, 1)); font-weight: 700; line-height: 1.2; }
.pe-font small { font-size: 11px; font-weight: 650; white-space: nowrap; }
.pe-font.on { background: var(--brand); color: var(--brand-ink); }
.pe-canvas { margin-top: 12px; padding: 20px 16px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--page-bg, var(--bg)); }
.pe-preview-head { padding: 0 4px 16px; border-bottom: 1px dashed var(--line-strong); }
.pe-preview-head .store-title { font-size: calc(26px * var(--font-k, 1)); }
.pe-fake-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 16px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); font-size: 14px; font-weight: 750; }
.pe-blocks { display: grid; gap: 10px; margin-top: 14px; }
.peb { position: relative; display: grid; gap: 8px; padding: 8px; border-radius: 16px; border: 1.5px solid transparent; transition: border-color .2s, background-color .2s; }
.peb:hover { border-color: var(--line-strong); }
.peb.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.pe-tools { display: none; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.peb.on .pe-tools { display: grid; }
.pe-tool-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-seg { display: flex; padding: 3px; border-radius: 12px; background: var(--surface-3); }
.pe-seg button { min-width: 34px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 750; }
.pe-seg button.on { background: var(--brand); color: var(--brand-ink); }
.pe-seg .i { font-size: 16px; }
textarea.pe-field { display: block; width: 100%; min-height: 0; padding: 2px 4px; border: 0; outline: none; resize: none; background: none; color: inherit; overflow: hidden; }
.pe-field::placeholder { color: var(--dim); }
.pe-list { position: relative; padding-left: 30px; }
.pe-list::before { content: ""; position: absolute; left: 4px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); }
.pb-quote-shell { padding-left: 16px; border-left: 3px solid var(--brand); }
.pb-quote-shell .pe-field { font-style: italic; font-synthesis: style; }
.pe-input { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-strong); outline: none; background: var(--surface-2); font-size: 15px; }
.pe-input:focus { border-color: var(--brand); }
.pe-button { padding-right: 8px; }
.pe-button .pe-input { flex: 1; border: 0; background: none; color: inherit; font-weight: 750; }
.pe-button .pe-input::placeholder { color: inherit; opacity: .6; }
.pe-hint { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.pe-hint.ok { color: #3fbf7f; }
.pe-hint.bad { color: #ff5d73; }
.pb-media.uploading { opacity: .55; }
.pe-uploading { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.pe-uploading .i { animation: spin .8s linear infinite; }
.pe-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 12px; color: var(--muted); text-align: center; }
.pe-empty > .i { color: var(--brand); font-size: 28px; }
.pe-empty b { color: var(--text); font-size: 16px; }
.pe-empty span { max-width: 320px; font-size: 14px; }
.pe-add-title { margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pe-add { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pe-add-btn { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .2s, transform .15s var(--ease); }
.pe-add-btn .i { color: var(--brand); font-size: 22px; }
.pe-add-btn:hover { border-color: var(--brand); }
.pe-add-btn:active { transform: scale(.96); }

@media (max-width: 760px) {
  dialog:is([data-kind="project"], [data-kind="update-page"]) { width: 100%; height: calc(100dvh - env(safe-area-inset-top) - 8px); max-height: none; }
  .store-top { display: block; padding: 0; }
  .store-media { border-radius: 0; }
  .store-slide { aspect-ratio: 4 / 3; }
  .gallery-arrow { display: none; }
  .store-head { padding: 18px 18px 0; }
  .store-title { font-size: calc(29px * var(--font-k, 1)); }
  .store-page { padding: 22px 18px 8px; }
  .store-foot { padding: 0 18px 28px; }
  dialog[data-kind="publish"] { width: 100%; }
  .wizard-bar { margin: 8px -18px -24px; padding-left: 18px; padding-right: 18px; }
  .wstep { gap: 6px; font-size: 13px; }
  .drop { min-height: 210px; }
  .pe-add { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .pe-add-btn { padding: 10px 2px; font-size: 11px; }
  .pe-canvas { margin-left: -8px; margin-right: -8px; padding: 16px 10px; }
}

/* Level ring around avatars */
/* Rating gauge around avatars: a full circle of rounded segments. Lit segments = average rating out of 5,
   colour = level. From level 5 it glows, from 14 a spark runs around it, the top tier is a rainbow. */
.lvl { --ring: #eef1e8; position: relative; display: inline-grid; place-items: center; flex: none; padding: 6px; border-radius: 50%; isolation: isolate; }
.gauge { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.gauge circle, .gauge path { fill: none; stroke: var(--ring); stroke-width: 4.5; }
.gauge .track { opacity: .2; }
.gauge circle.lit { stroke-linecap: round; }
.lvl.aura::before { content: ""; position: absolute; z-index: -1; inset: -7px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ring) 55%, transparent) 30%, color-mix(in srgb, var(--ring) 18%, transparent) 55%, transparent 70%); animation: aura 2.8s ease-in-out infinite; will-change: transform, opacity; }
.lvl.legend::before { background: radial-gradient(circle, rgba(183, 140, 255, .55) 30%, rgba(108, 184, 255, .2) 55%, transparent 70%); }
.lvl-orbit { position: absolute; z-index: 2; inset: 0; border-radius: 50%; pointer-events: none; animation: orbit 3.2s linear infinite; will-change: transform; }
.lvl-orbit::before { content: ""; position: absolute; top: calc(4% - 3px); left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px var(--ring), 0 0 12px var(--ring); }
.lvl-score { position: absolute; z-index: 3; left: 50%; bottom: -6px; min-width: 26px; height: 16px; padding: 0 5px; display: grid; place-items: center; border-radius: 8px; background: var(--ring); color: #121512; font-size: 10px; font-style: normal; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--bg); }
.store .lvl-score { box-shadow: 0 0 0 2px var(--page-bg, var(--surface)); }
.rail-avatar .lvl-score { box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.lvl.legend .lvl-score, .lvl-profile.legend .lvl-badge { background: linear-gradient(90deg, #ff9ab0, #ffe27a, #8ef0cf, #9fd0ff); }
.rail-avatar .lvl { padding: 6.5px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
.rail-author .rail-follow { left: auto; right: -4px; top: -4px; bottom: auto; margin-left: 0; }
.creator .lvl { padding: 7px; }
.comment .lvl { padding: 4.5px; }
.dock-item .lvl { padding: 3.5px; }
.dock-item .lvl::before { inset: -4px; }
.dock-item .lvl-orbit { display: none; }
.dock-item.active .lvl > .dock-avatar { box-shadow: none; }
.lvl-profile { padding: 13px; margin-bottom: 18px; cursor: pointer; transition: transform .2s var(--ease); }
.lvl-profile .gauge :is(circle, path) { stroke-width: 3.6; }
.lvl-profile:active { transform: scale(.96); }
.profile-head .lvl-profile .avatar { margin: 0; }
.lvl-badge { position: absolute; z-index: 3; left: 50%; bottom: -8px; min-width: 44px; height: 24px; padding: 0 10px; display: grid; place-items: center; border-radius: 99px; background: var(--ring); color: #121512; font-size: 13px; font-weight: 850; font-variant-numeric: tabular-nums; transform: translateX(-50%); box-shadow: 0 0 0 3px var(--bg); white-space: nowrap; }
.level-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--ring) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ring) 40%, transparent); color: var(--text); font-size: 13px; font-weight: 700; }
.level-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ring); box-shadow: 0 0 8px var(--ring); }
.level-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 6px; margin: 4px 0 20px; }
.legend-item { display: grid; justify-items: center; gap: 6px; color: var(--dim); font-size: 12px; font-weight: 650; }
.legend-item .lvl { padding: 5px; }
.legend-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); }
.legend-item.on { color: var(--text); }
.legend-item.on .legend-dot { background: var(--text); }
body.scrolling .lvl::before, body.scrolling .lvl-orbit { animation-play-state: paused; }
@keyframes aura { 0%, 100% { opacity: .5; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes orbit { from { transform: rotate(-135deg); } to { transform: rotate(225deg); } }

/* Full-screen photo viewer */
.viewer { --fade: 1; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: rgba(0, 0, 0, var(--fade)); color: #fff; box-shadow: none; }
.viewer[open] { animation: viewer-in .22s var(--ease); }
.viewer::backdrop { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.viewer.closing { background: transparent; transition: background-color .2s; }
.viewer-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide { position: relative; flex: 0 0 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; transition: transform .25s var(--ease), opacity .2s; }
.viewer-slide.viewer-drag { transition: none; }
.viewer.closing .viewer-drag { opacity: 0; transition: transform .2s ease-in, opacity .2s; }
.viewer-slide img, .viewer-slide video { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-select: none; user-select: none; }
.viewer-scene { position: relative; width: min(100%, 900px); aspect-ratio: 4 / 3; max-height: 100%; overflow: hidden; }
.viewer-top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-t)) 12px 10px 18px; background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent); opacity: var(--fade); pointer-events: none; }
.viewer-count { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.viewer-close { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; pointer-events: auto; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.viewer-arrow { position: absolute; z-index: 2; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.viewer-arrow.prev { left: 18px; }
.viewer-arrow.next { right: 18px; }
.viewer-arrow:disabled { visibility: hidden; }
@media (hover: none) { .viewer-arrow { display: none; } }
.viewer-hint { position: absolute; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 600; text-align: center; opacity: var(--fade); pointer-events: none; animation: hint-out 3s forwards; }
@keyframes viewer-in { from { opacity: 0; } }
@keyframes hint-out { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* Upload tiles */
.tile-state { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; padding: 8px; background: rgba(0, 0, 0, .5); color: #fff; text-align: center; pointer-events: none; }
.tile-state small { font-size: 11px; font-weight: 750; }
.tile-state.busy i { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(#fff calc(var(--p, 0) * 1%), rgba(255, 255, 255, .22) 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); transition: background .2s; }
.tile-state.busy.spin i { animation: spin .9s linear infinite; }
.pick-cover .tile-state.busy i { width: 54px; height: 54px; }
.pick-cover .tile-state small { font-size: 14px; }
.tile-state.done { inset: auto 6px 6px auto; width: 24px; height: 24px; padding: 0; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 14px; }
.pick-cover .tile-state.done { inset: auto 12px 12px auto; width: 30px; height: 30px; font-size: 17px; }
.tile-state.done .i { stroke-width: 2.6; }
.tile-state.error { background: rgba(120, 20, 20, .72); font-size: 20px; pointer-events: auto; }
.tile-state.error small { max-width: 280px; font-size: 13px; line-height: 1.35; }
.tile-retry { min-height: 34px; padding: 0 14px; border-radius: 99px; background: #fff; color: #111; font-size: 13px; font-weight: 750; }
.pick-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; color: var(--dim); font-size: 12px; }
.pick-summary { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pick-summary .i { font-size: 15px; }
.pick-summary:not(.done):not(.error) .i { animation: spin .9s linear infinite; }
.pick-summary.done { color: var(--brand); }
.pick-summary.error { color: #ff8f80; }
.pe-upload-error { display: flex; align-items: center; gap: 6px; color: #ff8f80; font-size: 13px; font-weight: 650; }
.pb-media.failed img, .pb-media.failed video { opacity: .4; }
.pb-media img { cursor: zoom-in; }

/* Liquid chrome and waves */
/* Steam metal: polished steel that a torch has tempered — straw, bronze, purple, deep blue, sky — with
   bands that stay crisp instead of melting into grey; pearl for the soft parts. */
.chrome-text { background: linear-gradient(100deg, #8d97a4 0%, #f7f9fc 8%, #b9c2cc 15%, #f6e2a4 21%, #e3a64e 26%, #b8622f 30.5%, #8c2f6c 35%, #5b2aa8 40%, #2c45c8 45%, #2a86e0 50%, #6fd8ea 55%, #e6f6f2 60%, #a3adb8 69%, #ffffff 79%, #8d97a4 100%); background-size: 170% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); animation: sheen 10s linear infinite; }
.iri-text { background: linear-gradient(100deg, #f6e2a4 0%, #e3a64e 11%, #b8622f 20%, #8c2f6c 30%, #5b2aa8 40%, #2c45c8 50%, #2a86e0 60%, #6fd8ea 70%, #e6f6f2 80%, #ffd8ef 90%, #f6e2a4 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
.chroma { position: relative; }
.chroma::before, .chroma::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chroma::before { color: #ff2d75; animation: chroma-a 5s steps(1) infinite; }
.chroma::after { color: #2dd4ff; animation: chroma-b 5s steps(1) infinite; }
@keyframes sheen { to { background-position: -250% 0; } }
@keyframes chroma-a { 0%, 90%, 100% { opacity: 0; transform: none; } 91% { opacity: .85; transform: translate(-4px, 1px); } 93% { opacity: .7; transform: translate(3px, -1px); } 95% { opacity: .5; transform: translate(-2px, 0); } }
@keyframes chroma-b { 0%, 90%, 100% { opacity: 0; transform: none; } 91% { opacity: .85; transform: translate(4px, -1px); } 93% { opacity: .7; transform: translate(-3px, 1px); } 95% { opacity: .5; transform: translate(2px, 0); } }

.liquid { position: absolute; width: 340px; aspect-ratio: 1; pointer-events: none; isolation: isolate; }
.liquid i { position: absolute; inset: 0; border-radius: 43% 57% 62% 38% / 40% 45% 55% 60%; will-change: transform; }
.liquid i:nth-child(1) { background: radial-gradient(38% 30% at 30% 26%, #fff 0%, rgba(255, 255, 255, .55) 35%, rgba(255, 255, 255, 0) 70%), radial-gradient(45% 40% at 74% 72%, #d9e0e8 0%, rgba(217, 224, 232, 0) 70%), radial-gradient(30% 50% at 82% 30%, rgba(120, 132, 148, .9), rgba(120, 132, 148, 0) 70%), radial-gradient(40% 30% at 30% 78%, rgba(160, 172, 186, .7), rgba(160, 172, 186, 0) 70%), linear-gradient(140deg, #3a4352 0%, #151a21 45%, #2a313c 70%, #0c0f14 100%); box-shadow: inset -22px -28px 50px rgba(0, 0, 0, .65), inset 16px 18px 34px rgba(255, 255, 255, .28); animation: morph 14s ease-in-out infinite, drift 30s linear infinite; }
.liquid i:nth-child(2) { background: linear-gradient(128deg, #f6e2a4 0%, #f6e2a4 12%, #e3a64e 19%, #b8622f 26%, #8c2f6c 33%, #5b2aa8 40%, #2c45c8 48%, #2a86e0 56%, #6fd8ea 65%, #e6f6f2 75%, #e6f6f2 100%); mix-blend-mode: color; animation: morph 14s ease-in-out infinite, drift 30s linear infinite; }
.liquid i:nth-child(3) { inset: 14% 44% 62% 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); transform: rotate(-28deg) scaleX(1.6); animation: glint 6s ease-in-out infinite; }
@keyframes morph { 0%, 100% { border-radius: 43% 57% 62% 38% / 40% 45% 55% 60%; } 33% { border-radius: 58% 42% 36% 64% / 55% 38% 62% 45%; } 66% { border-radius: 38% 62% 54% 46% / 62% 56% 44% 38%; } }
@keyframes drift { to { transform: rotate(360deg); } }
@keyframes glint { 50% { transform: rotate(-28deg) scaleX(1.3) translate(12%, 10%); opacity: .6; } }

.waves { display: block; width: 100%; height: 120px; pointer-events: none; }
.wave { animation: wave 16s linear infinite; will-change: transform; }
.wave path:first-child { opacity: .34; }
.wave.w2 { animation-duration: 11s; animation-direction: reverse; }
.wave.w2 path:first-child { opacity: .3; }
.wave.w3 { animation-duration: 22s; }
.wave.w3 path:first-child { opacity: .5; }
.wave .crest { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wave.w3 .crest { stroke: rgba(255, 255, 255, .8); }
@keyframes wave { to { transform: translateX(-1440px); } }

.chrome-art { background: var(--grain-soft) 0 0 / 160px 160px, radial-gradient(90% 70% at 82% 18%, #2a2357 0%, rgba(42, 35, 87, 0) 62%), radial-gradient(50% 40% at 64% 8%, rgba(227, 166, 78, .12), transparent 70%), radial-gradient(60% 50% at 10% 90%, rgba(111, 216, 234, .14), transparent 70%), linear-gradient(160deg, #0d1020, #05060a); }
.chrome-art .liquid { right: -50px; top: -40px; width: min(440px, 72%); }
.hero-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; }
.steam-hero:has(.chrome-art)::before { background: linear-gradient(90deg, rgba(5, 6, 10, .85) 0%, rgba(5, 6, 10, .35) 60%, rgba(5, 6, 10, 0) 100%); }
.ai-hero { position: relative; overflow: hidden; isolation: isolate; }
.ai-hero .neural { z-index: -1; right: -60px; top: -60px; width: 250px; opacity: .9; }

/* 98 / 2 */
.money-split { position: relative; overflow: hidden; margin-top: var(--stack); padding: 30px 28px 0; border-radius: 28px; background: var(--grain-soft) 0 0 / 160px 160px, radial-gradient(90% 70% at 88% 6%, #22284a 0%, rgba(34, 40, 74, 0) 60%), linear-gradient(160deg, #0d0f17, #06070b); color: #fff; isolation: isolate; }
.split-glow { position: absolute; z-index: -1; right: -110px; top: -120px; width: 320px; height: 320px; opacity: .5; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.split-glow::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 70%, rgba(6, 7, 11, .7), transparent 60%); }
.split-glow .liquid { inset: 0; width: 100%; }
.split-kicker { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .68); font-size: 14px; font-weight: 700; }
.split-nums { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 34px; margin-top: 10px; }
.split-num b { display: block; padding-right: .04em; font-size: clamp(110px, 19vw, 200px); font-weight: 900; letter-spacing: -.07em; line-height: .86; font-variant-numeric: tabular-nums; }
.split-num.ours b { font-size: clamp(60px, 9vw, 104px); }
.split-num span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .7); font-size: 18px; font-weight: 700; }
.split-num em { color: #fff; font-style: normal; }
.split-bar { display: flex; gap: 5px; height: 14px; margin-top: 24px; }
.split-bar i { width: var(--w); border-radius: 14px; background: linear-gradient(90deg, #b9c2cc 0%, #f7f9fc 30%, #f6e2a4 52%, #e3a64e 62%, #8c2f6c 74%, #2c45c8 86%, #6fd8ea 100%); transform-origin: left; animation: grow 1.2s var(--ease) both; }
.split-bar i + i { min-width: 12px; background: var(--pearl); animation-delay: .5s; }
.split-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 20px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .68); font-size: 14px; font-weight: 600; }
.split-facts b { margin-right: 6px; color: #fff; font-size: 19px; font-weight: 850; }
.split-waves { width: calc(100% + 56px); height: 90px; margin: 16px -28px 0; }

/* Our games */
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.game-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.game-art { position: relative; display: block; aspect-ratio: 460 / 215; overflow: hidden; background: #000; }
.game-art img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s var(--ease); }
.game-card:hover .game-art img { transform: scale(1.04); }
.game-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .32) 50%, transparent 62%); transform: translateX(-100%); animation: shine 6s ease-in-out infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.game-body { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
.game-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.game-title h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.game-title span { color: var(--dim); font-size: 12px; font-weight: 650; white-space: nowrap; }
.game-body p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.game-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.game-shots button { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; }
.game-shots img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s var(--ease); }
.game-shots button:hover img { transform: scale(1.06); }
.game-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-foot .chips { flex-wrap: nowrap; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.game-foot .chips span { flex: none; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.game-foot .btn { flex: none; }

/* AI world: neural core, dot grid, monospace labels */
.neural { position: absolute; width: 220px; aspect-ratio: 1; pointer-events: none; }
.neural i { position: absolute; border-radius: 50%; }
.n-ring { inset: 0; border: 1.5px dashed rgba(185, 163, 255, .4); animation: spin 22s linear infinite; }
.n-ring:nth-child(2) { inset: 15%; border: 1.5px solid rgba(103, 232, 249, .18); border-top-color: rgba(103, 232, 249, .9); animation-duration: 7s; animation-direction: reverse; }
.n-ring:nth-child(3) { inset: 29%; border: 1.5px solid rgba(185, 163, 255, .22); border-right-color: #b9a3ff; animation-duration: 4.6s; }
.n-core { inset: 39%; background: radial-gradient(circle at 35% 30%, #fff 0%, #d7cbff 20%, #8b6cf0 55%, #3b2a8f 100%); box-shadow: 0 0 26px 8px rgba(185, 163, 255, .45), 0 0 70px 22px rgba(103, 232, 249, .14); animation: core-pulse 3.2s ease-in-out infinite; }
.n-node { inset: 0; animation: spin 10s linear infinite; }
.n-node::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 10px 2px #67e8f9; }
.n-node:nth-of-type(6) { inset: 15%; animation-duration: 6s; animation-direction: reverse; }
.n-node:nth-of-type(6)::before { background: #b9a3ff; box-shadow: 0 0 10px 2px #b9a3ff; }
.n-node:nth-of-type(7) { inset: 29%; animation-duration: 3.6s; }
@keyframes core-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 34px 12px rgba(185, 163, 255, .55), 0 0 90px 28px rgba(103, 232, 249, .2); } }
body[data-section="ai"] { background: radial-gradient(rgba(185, 163, 255, .07) 1px, transparent 1.5px) 0 0 / 22px 22px, radial-gradient(80% 50% at 100% 0%, rgba(185, 163, 255, .07), transparent 60%), var(--bg); }
body[data-section="ai"] main :is(.hero-kicker, .subnav a, .mini-chip, .tag, .run-meta, .pane-head b, .ws-card small) { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.02em; }
body[data-section="ai"] main .ws-card:hover { border-color: rgba(185, 163, 255, .45); box-shadow: 0 0 0 1px rgba(185, 163, 255, .12), 0 12px 30px rgba(91, 63, 214, .18); }
body[data-section="ai"] main .block, body[data-section="ai"] main .how-node { border-color: rgba(185, 163, 255, .14); }
/* Steam surfaces carry a cool blue tint so the section reads as one piece */
body[data-section="steam"] main .block, body[data-section="steam"] main .perk, body[data-section="steam"] main .game-card { border-color: rgba(159, 202, 255, .12); background: linear-gradient(180deg, rgba(159, 202, 255, .045), rgba(159, 202, 255, 0) 120px), var(--surface); }
/* The feed's AI badge and the publish toggle use the AI world colour */
.card-tags .tag-ai { background: rgba(185, 163, 255, .92); color: #170f33; }
.toggle-row > span .i { color: #b9a3ff; }

/* Animated logo */
.logo-loader { display: grid; justify-items: center; gap: 18px; }
.ll-stage { position: relative; width: 56px; height: 56px; display: grid; place-items: center; }
.ll-mark { position: relative; z-index: 1; overflow: hidden; box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 28%, transparent); animation: ll-bob 1.6s ease-in-out infinite; }
.ll-sheen { position: absolute; inset: -30%; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%); transform: translateX(-120%); animation: ll-sheen 1.6s ease-in-out infinite; }
.ll-ring { position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 17px; animation: ll-ring 1.6s ease-out infinite; }
.ll-ring + .ll-ring { border-color: var(--blue); animation-delay: .8s; }
.logo-loader small { color: var(--dim); font-size: 13px; font-weight: 650; }
.ptr-mark { display: none; width: 22px; height: 22px; font-style: normal; }
.ptr-mark svg { width: 100%; height: 100%; }
body.ptr-loading .ptr .ptr-mark { display: block; animation: ll-bob .9s ease-in-out infinite; }
body.ptr-loading .ptr .i { display: none; }
@keyframes ll-bob { 50% { transform: translateY(-6px) rotate(-5deg); } }
@keyframes ll-sheen { 60%, 100% { transform: translateX(120%); } }
@keyframes ll-ring { from { transform: scale(1); opacity: .85; } to { transform: scale(2.3); opacity: 0; } }

/* Moving between sections */
.route-in { animation: route-in .38s var(--ease) both; }
.route-fade { animation: fade-in .3s ease both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes route-in { from { opacity: 0; transform: translateX(calc(var(--dir, 0) * 36px)) translateY(calc((1 - var(--dir, 0) * var(--dir, 0)) * 10px)); } }

@media (max-width: 760px) {
  .money-split { padding: 24px 18px 0; border-radius: 24px; }
  .split-waves { width: calc(100% + 36px); margin: 14px -18px 0; }
  .split-nums { gap: 6px 22px; }
  .split-num span { font-size: 15px; }
  .game-grid { grid-template-columns: minmax(0, 1fr); }
  .chrome-art .liquid { right: -90px; top: -70px; width: 320px; }
}

/* Cinema, with colour: monochrome type and surfaces, plus one signature gradient (red → coral → amber)
   for what matters — the logo, publishing, what is new, what you liked, your own messages. */
:root { --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); }
@media (display-mode: standalone) { html { min-height: min(100lvh, calc(100% + env(safe-area-inset-top, 0px))); } }
html.ios-app { min-height: min(100lvh, calc(100% + env(safe-area-inset-top, 0px))); }
/* iOS 26 also draws its own blur from the top of an installed app to about 40pt below the status bar,
   above the page, so nothing can be layered over it: the top line moves a little lower, out of its densest part. */
html.ios-app { --safe-t: calc(env(safe-area-inset-top, 0px) + 12px); }
:root { --hot: #ff3b5c; --amber: #ffb03b; --grad: linear-gradient(120deg, #ff2e63 0%, #ff5f3d 55%, #ffb03b 100%); --grad-glow: 0 6px 22px rgba(255, 70, 80, .38); }
.brand-mark { background: var(--grad); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.dock-publish, .dock-publish:hover { background: var(--grad); color: #fff; box-shadow: var(--grad-glow); }
.dock-publish:hover { filter: brightness(1.06); }
.card-tagline .stage { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.rail-follow { background: var(--grad); color: #fff; }
.rail-btn.on .rail-icon { background: var(--grad); color: #fff; }
.rail-btn[data-action="save"].on .rail-icon { background: var(--amber); color: #1b1206; }
.follow-pill { background: var(--grad); color: #fff; }
.follow-pill.on { background: var(--surface-3); color: var(--muted); }
.interest-meter i, .taste-level i { background: var(--grad); }
.end-icon { background: var(--grad); box-shadow: 0 0 0 12px rgba(255, 70, 80, .1), 0 0 0 26px rgba(255, 70, 80, .05), var(--grad-glow); }
.feed-end { background: radial-gradient(60% 45% at 50% 40%, rgba(255, 70, 80, .1), transparent 70%); }
.cat-games { --tint: #ff3b5c; }
.cat-apps { --tint: #ffb03b; }
.cat-tools { --tint: #5ec8ff; }
.cat-tile > .i { color: var(--tint, var(--text)); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--tint, #fff) 55%, transparent)); }
.cat-tile::after { border-color: color-mix(in srgb, var(--tint, #fff) 22%, transparent); }
.bubble.me { background: var(--grad); color: #fff; }
.chat-form button[type="submit"] { background: var(--grad); color: #fff; }

@media (max-width: 760px) {
  .rail-btn.on .rail-icon { background: none; color: var(--hot); filter: drop-shadow(0 0 10px rgba(255, 59, 92, .65)); }
  .rail-btn[data-action="save"].on .rail-icon { background: none; color: var(--amber); filter: drop-shadow(0 0 10px rgba(255, 176, 59, .6)); }
}

/* Chat: rows, stickers, reactions, the emoji panel and the composer tools */
.msg-row { position: relative; display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.msg-row.me { align-items: flex-end; }
.msg-row .bubble { align-self: auto; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.bubble-text { -webkit-user-select: text; user-select: text; }
.bubble.is-emoji { padding: 2px 4px; background: none; font-size: 42px; line-height: 1.1; }
.bubble.is-emoji small { font-size: 11px; color: var(--dim); opacity: 1; }
.bubble.is-sticker, .bubble.is-image { padding: 0; background: none; }
.bubble.is-sticker small, .bubble.is-image small { padding: 0 6px; color: var(--dim); opacity: 1; }
.msg-row.me .bubble:is(.is-sticker, .is-image, .is-emoji) small { text-align: right; }
.bubble-image { display: block; max-width: 260px; overflow: hidden; border-radius: 18px; }
.bubble-image img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.bubble:not(.is-image) .bubble-image { margin: -4px -8px 6px; }
.bubble.liked { animation: pop .42s var(--ease); }
.sticker { position: relative; display: grid; justify-items: center; gap: 2px; width: 112px; padding: 6px 4px 4px; animation: sticker-in .5s var(--ease); }
.sticker-emoji { font-size: 62px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }
.sticker b { margin-top: -8px; padding: 3px 10px; border-radius: 99px; background: linear-gradient(120deg, var(--s1), var(--s2)); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -.01em; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transform: rotate(-4deg); }
@keyframes sticker-in { 0% { transform: scale(.4) rotate(-10deg); opacity: 0; } 60% { transform: scale(1.08) rotate(3deg); opacity: 1; } }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 6px 6px; position: relative; z-index: 1; }
.reaction { display: inline-flex; align-items: center; gap: 3px; min-height: 24px; padding: 0 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 13px; }
.reaction b { font-size: 11px; font-weight: 750; }
.reaction.on { border-color: transparent; background: var(--grad); color: #fff; }
.react-bar { position: absolute; z-index: 6; bottom: calc(100% + 6px); display: flex; gap: 2px; padding: 5px; border-radius: 99px; background: rgba(28, 29, 32, .97); border: 1px solid var(--line-strong); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); animation: pop-in .18s var(--ease); }
.msg-row.me .react-bar { right: 0; }
.msg-row.them .react-bar { left: 0; }
.react-bar button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; transition: transform .15s var(--ease), background-color .15s; }
.react-bar button:hover, .react-bar button:active { transform: scale(1.25); background: rgba(255, 255, 255, .08); }
.chat-form { gap: 6px; padding: 10px 0 0; border: 0; align-items: center; }
.chat-form input { min-height: 44px; }
.cbtn { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 21px; cursor: pointer; transition: color .15s, background-color .15s; }
.composer .cbtn { width: 40px; height: 40px; background: none; color: var(--muted); }
.cbtn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.cbtn.mic.on { color: #fff; background: var(--hot); box-shadow: 0 0 0 0 rgba(255, 59, 92, .55); animation: mic-pulse 1.2s ease-out infinite; }
@keyframes mic-pulse { to { box-shadow: 0 0 0 14px rgba(255, 59, 92, 0); } }
.chat-panel { margin: 0 auto 8px; max-width: 688px; padding: 10px; border-radius: 22px; background: rgba(24, 25, 28, .98); border: 1px solid var(--line-strong); box-shadow: 0 -10px 40px rgba(0, 0, 0, .45); animation: rise .2s var(--ease); }
.chat-panel[hidden] { display: none; }
.panel-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.panel-tabs button { min-height: 32px; padding: 0 14px; border-radius: 99px; color: var(--dim); font-size: 13px; font-weight: 700; }
.panel-tabs button.on { background: var(--surface-3); color: var(--text); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; max-height: 210px; overflow-y: auto; }
.emoji-grid button { height: 40px; display: grid; place-items: center; border-radius: 10px; font-size: 24px; }
.emoji-grid button:active { transform: scale(1.2); background: rgba(255, 255, 255, .06); }
.sticker-grid { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-height: 250px; overflow-y: auto; }
.chat-panel[data-tab="stickers"] .emoji-grid { display: none; }
.chat-panel[data-tab="stickers"] .sticker-grid { display: grid; }
.sticker-grid button { display: grid; place-items: center; padding: 4px 0; border-radius: 14px; }
.sticker-grid button:hover { background: rgba(255, 255, 255, .05); }
.sticker-grid .sticker { width: 100%; animation: none; transform: scale(.82); }

/* AI task attachments */
.task-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px; }
.task-file { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 5px 6px 5px 5px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.task-file img, .task-file > i { flex: none; width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.task-file > i { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 17px; font-style: normal; }
.task-file > span { min-width: 0; display: grid; }
.task-file b { overflow: hidden; font-size: 12.5px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.task-file small { color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.task-file.uploading small { color: var(--accent); }
.task-file.error { border-color: rgba(255, 93, 108, .5); }
.task-file.error small { color: #ff8f80; }
.task-file > button { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--dim); font-size: 13px; }
.composer-tools { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.composer-tools + .send { margin-left: 4px; }
.run-files { display: flex; flex-wrap: wrap; gap: 4px; }
.run-files span { display: inline-flex; align-items: center; gap: 5px; max-width: 220px; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.run-files span.gone { opacity: .6; text-decoration: line-through; text-decoration-thickness: 1px; }

/* Phones: the mode, engine, tools and send stay on one line (the engine name gives way first);
   attached files become one row you swipe sideways. */
@media (max-width: 760px) {
  .composer-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px; }
  .composer-row .continue { grid-column: 1 / -1; grid-row: 2; }
  .engine-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .composer-row select { width: 100%; min-width: 0; }
  .composer-tools { margin-left: 0; }
  .composer-tools .cbtn { width: 36px; height: 36px; font-size: 19px; }
  .composer-tools + .send { margin-left: 0; }
  .task-files { flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px; padding: 2px 4px; scrollbar-width: none; }
  .task-files::-webkit-scrollbar { display: none; }
  .task-file { flex: none; max-width: 190px; }
}

/* Sign-in: provider buttons, the e-mail code step, the account block in the profile editor */
.auth-social { display: grid; gap: 8px; width: 100%; max-width: 380px; margin-top: 14px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: 15px; background: #f2f1ee; color: #121214; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .15s var(--ease), filter .15s; }
.social-btn svg { width: 22px; height: 22px; flex: none; }
.social-btn:active { transform: scale(.98); }
.social-btn:hover { filter: brightness(.96); }
.social-btn.github { background: #24292f; color: #fff; border: 1px solid rgba(255, 255, 255, .12); }
.social-btn.apple { background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.social-btn.apple svg { width: 20px; height: 20px; margin-top: -2px; }
.auth-social.many { grid-template-columns: 1fr 1fr; }
.auth-social.many .social-btn:not(.half) { grid-column: 1 / -1; }
.auth-social.many .social-btn.half:last-child:nth-child(odd) { grid-column: 1 / -1; }
.social-btn.linked { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
.social-btn.linked .i { margin-left: auto; color: #3ddc84; }
.auth-or { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 380px; margin-top: 14px; color: var(--dim); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.auth-body { display: grid; justify-items: center; width: 100%; }
.sheet-body .auth-body { justify-items: stretch; }
.sheet-body .auth-social, .sheet-body .auth-or { max-width: none; }
.link-btn { justify-self: center; min-height: 36px; padding: 0 6px; color: var(--muted); font-size: 13.5px; font-weight: 650; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.link-btn:disabled { color: var(--dim); text-decoration: none; cursor: default; }
.auth-code { justify-items: center; text-align: center; }
.auth-card .auth-code { text-align: center; }
.auth-code h3 { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.auth-code .fine { max-width: 30em; font-size: 13px; }
.auth-code .fine b { color: var(--text); font-weight: 700; }
.auth-mail { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: var(--grad); color: #fff; font-size: 24px; box-shadow: var(--grad-glow); }
.code-input { width: 100%; min-height: 62px; text-align: center; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 30px !important; font-weight: 800; letter-spacing: .5em; padding-left: .5em !important; }
.auth-code-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.account-block { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-block h3 { font-size: 15px; font-weight: 800; }
.account-block .form { margin-top: 0; }
.account-block .auth-social { max-width: none; margin-top: 0; }
.account-block .social-btn:not(.linked) { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); }
.password-form { padding-top: 6px; }
.password-form .fine { margin: 0; text-align: left; }
.account-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 15px; background: var(--surface-2); }
.account-row > span { display: grid; min-width: 0; }
.account-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.account-row small { color: var(--dim); font-size: 12px; }
.account-row > .i:last-child { margin-left: auto; color: #3ddc84; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; }
.inline-field .field:focus { border-color: var(--brand); }
.inline-field .btn { min-height: 52px; }

/* Ads in the feed. The card before an ad carries a pearly wave on its bottom edge and a «skip» pill;
   the ad itself is labelled and has its own skip button. Pearl = soft pink, lilac, sky, mint and cream. */
:root { --pearl: linear-gradient(100deg, #ffc9e6 0%, #dccbff 18%, #bfe6ff 34%, #c8ffe8 50%, #fff0c4 66%, #ffc9e6 82%, #dccbff 100%); }
.feed-item.before-boost, .feed-item.is-boosted { position: relative; }
/* The light before an ad: like the edge glow of the new Siri, but rising only from the bottom of the card.
   A thin bright line and a wide soft halo, both a conic sweep of warm and cool colours that keeps turning.
   Light enough for a phone: one layer draws the line and the halo (the halo is a soft mask, not a blur filter
   redrawn every frame), the colours turn in 20 steps a second, and only while the card is on screen. */
@property --siri { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
:root { --siri-colors: #ff2e63, #ff8a3d, #ffd36e, #5ec8ff, #7c6cff, #d46bff, #ff2e63; }
.boost-glow { position: absolute; z-index: 3; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; -webkit-mask-image: linear-gradient(to top, #000 0%, #000 14%, rgba(0, 0, 0, .4) 34%, transparent 56%); mask-image: linear-gradient(to top, #000 0%, #000 14%, rgba(0, 0, 0, .4) 34%, transparent 56%); }
.feed:not(.io) .boost-glow, .feed-item.before-boost.in-view .boost-glow { animation: siri-in .45s var(--ease) both; }
/* The line is the 3 px ring; the halo, four soft edges added to it in the same mask */
.boost-glow .glow-line { position: absolute; inset: 0; border-radius: inherit; padding: 3px; background: conic-gradient(from var(--siri) at 50% 100%, var(--siri-colors));
  -webkit-mask: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 46px), linear-gradient(90deg, rgba(0, 0, 0, .5), transparent 36px), linear-gradient(270deg, rgba(0, 0, 0, .5), transparent 36px), linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: source-over, source-over, source-over, xor;
  mask: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 46px) add, linear-gradient(90deg, rgba(0, 0, 0, .5), transparent 36px) add, linear-gradient(270deg, rgba(0, 0, 0, .5), transparent 36px) add, linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.feed:not(.io) .boost-glow .glow-line, .feed-item.before-boost.in-view .glow-line { animation: siri-spin 5s steps(100) infinite, glow-breathe 2.6s ease-in-out infinite; }
.boost-glow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: radial-gradient(60% 100% at 50% 100%, rgba(255, 90, 140, .22), rgba(124, 108, 255, .1) 55%, transparent 80%); }
@keyframes siri-spin { to { --siri: 360deg; } }
@keyframes siri-in { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes glow-breathe { 50% { opacity: .78; } }
.boost-next { position: absolute; z-index: 5; left: 50%; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 5px 0 12px; border: 1.5px solid transparent; border-radius: 99px; background: linear-gradient(rgba(14, 14, 18, .72), rgba(14, 14, 18, .72)) padding-box, conic-gradient(from var(--siri), var(--siri-colors)) border-box; color: rgba(255, 255, 255, .82); font-size: 12.5px; font-weight: 650; white-space: nowrap; transform: translateX(-50%); opacity: 0; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.feed:not(.io) .boost-next, .feed-item.before-boost.in-view .boost-next { animation: siri-in .45s .1s var(--ease) both, siri-spin 5s steps(100) infinite; }
.boost-next > .i { font-size: 15px; color: #ffd36e; }
.boost-next b { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--grad); color: #fff; font-weight: 800; }
.boost-next b .i { font-size: 13px; }
.feed-item.before-boost .card-info { padding-bottom: 66px; }
@keyframes pearl-shift { to { background-position: -200% 0; } }
.feed-item.is-boosted .card-media::after { content: ""; position: absolute; z-index: 2; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(220, 203, 255, .22), inset 0 -80px 120px -60px rgba(220, 203, 255, .08); pointer-events: none; }
.boost-skip { position: absolute; z-index: 6; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 99px; background: rgba(12, 12, 16, .55); border: 1px solid rgba(220, 203, 255, .4); color: #fff; font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.boost-skip .i { font-size: 14px; }
.feed-item.is-boosted .sound-btn { top: 58px; }
body.scrolling :is(.boost-glow, .boost-glow .glow-line, .boost-next, .plus-promo-mark) { animation-play-state: paused; }

/* Promotion on the post, the package picker, Plus */
.btn-grad { background: var(--grad); color: #fff; box-shadow: var(--grad-glow); }
.btn-grad:disabled { opacity: .5; box-shadow: none; }
.promo-offer { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 14px; padding: 12px 14px; border-radius: 18px; border: 1px solid transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; text-align: left; }
.promo-offer > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.promo-offer b { font-size: 15px; font-weight: 800; }
.promo-offer small { color: var(--muted); font-size: 12.5px; }
.promo-offer > .i:last-child { margin-left: auto; color: var(--dim); }
.promo-icon, .boost-mark { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--grad); color: #fff; font-size: 20px; }
.boost-mark { width: 52px; height: 52px; margin-bottom: 12px; border-radius: 17px; font-size: 25px; box-shadow: var(--grad-glow); }
.promo-status { display: grid; gap: 10px; margin-bottom: 14px; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.promo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promo-top small { color: var(--dim); font-size: 12.5px; }
.promo-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.promo-live i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: live-dot 1.8s ease-out infinite; }
.promo-live.wait i { background: var(--amber); animation: none; }
@keyframes live-dot { to { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }
.promo-bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.promo-bar i { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: var(--grad); }
.promo-nums { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12.5px; }
.promo-nums b { color: var(--text); font-variant-numeric: tabular-nums; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan { position: relative; display: block; cursor: pointer; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card { position: relative; display: grid; gap: 4px; height: 100%; padding: 16px 12px 14px; border-radius: 18px; background: var(--surface-2); border: 1.5px solid var(--line-strong); transition: border-color .15s, background-color .15s, transform .15s var(--ease); }
.plan-card b { font-size: 16px; font-weight: 800; }
.plan-card em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.3; }
.plan-card strong { margin-top: 6px; font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.plan-card s { color: var(--dim); font-size: 12px; }
.plan-best { position: absolute; top: -9px; left: 10px; padding: 2px 8px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .03em; }
.plan input:checked + .plan-card { border-color: transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; }
.plan input:focus-visible + .plan-card { outline: 2px solid var(--hot); outline-offset: 2px; }
.plan:active .plan-card { transform: scale(.97); }
.test-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 13px; background: rgba(255, 176, 59, .1); border: 1px solid rgba(255, 176, 59, .25); color: #ffd28a; font-size: 12.5px; line-height: 1.4; }
.pay-test .link-btn { margin-top: 6px; }
.pay-test, .boost { display: grid; }
.pay-test .btn { margin-top: 14px; }
.plus-mark { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--pearl); background-size: 200% 100%; color: #2a1d3d; font-size: 21px; animation: pearl-shift 8s linear infinite; }
.plus-mark.big { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 21px; font-size: 32px; box-shadow: 0 10px 34px rgba(220, 203, 255, .3); }
.plus-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--pearl); background-size: 200% 100%; color: #2a1d3d; font-size: 12px; font-weight: 800; }
.plus-sheet { text-align: center; }
.plus-sheet h2 { padding-right: 0; }
.plus-price { margin: 4px 0 16px; color: var(--muted); }
.plus-price b { color: var(--text); font-size: 26px; font-weight: 850; }
.plus-perks { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; text-align: left; }
.plus-perks li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 15px; background: var(--surface-2); font-size: 14.5px; font-weight: 600; }
.plus-perks .i { flex: none; color: #3ddc84; }
.plus-sheet .test-note { margin-bottom: 14px; text-align: left; }

@media (max-width: 760px) {
  .boost-skip { top: calc(var(--top-h) + var(--safe-t) + 8px); right: 12px; }
  .feed-item.is-boosted .sound-btn { top: calc(var(--top-h) + var(--safe-t) + 52px); }
  .feed-item.before-boost .card-info { padding-bottom: 64px; }
  .boost-glow { border-radius: 0 0 34px 34px; }
  .boost-frame { --frame-r: 43px 43px 29px 29px; border-radius: 44px 44px 30px 30px; }
  .feed-item.before-boost .rail { bottom: 62px; }
  .boost-next { left: 16px; transform: none; }
  .plan-card { padding: 16px 10px 12px; }
  .plan-card b { font-size: 15px; }
  .plan-card strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .boost-glow, .boost-glow .glow-line, .boost-next, .plus-mark, .plus-promo-mark, .boost-frame, .boost-frame .frame-line { animation: none !important; opacity: 1; }
  .boost-frame { --reveal: 180deg; }
  .boost-frame .frame-comet { display: none; }
}

/* The ad itself: the whole screen edge glows. Drawn to stay light on a phone: the old frame was three
   full-screen layers redrawn 60 times a second, two of them through a blur filter, and Safari on an iPhone ran
   out of memory and reloaded the page a few seconds into an ad. Now one layer draws the line and its soft halo
   (a soft mask, not a blur), its colours turn in 20 steps a second, and the spark runs along the edge on a
   motion path, which moves a small layer without drawing anything again. */
@property --reveal { syntax: "<angle>"; inherits: true; initial-value: 180deg; }
.boost-frame { --reveal: 0deg; --frame-r: 21px; position: absolute; z-index: 4; inset: 0; border-radius: inherit; pointer-events: none; -webkit-mask-image: conic-gradient(#000 0 var(--reveal), transparent var(--reveal) calc(360deg - var(--reveal)), #000 calc(360deg - var(--reveal))); mask-image: conic-gradient(#000 0 var(--reveal), transparent var(--reveal) calc(360deg - var(--reveal)), #000 calc(360deg - var(--reveal))); }
.feed:not(.io) .boost-frame, .feed-item.is-boosted.near .boost-frame { --reveal: 180deg; animation: frame-draw .7s var(--ease) both; }
/* The halo of the ad itself is kept soft: the line around the card shows it is an ad, the glow only hints */
.boost-frame .frame-line { position: absolute; inset: 0; border-radius: inherit; padding: 3px; background: conic-gradient(from var(--siri), var(--siri-colors));
  -webkit-mask: linear-gradient(0deg, rgba(0, 0, 0, .34), transparent 24px), linear-gradient(90deg, rgba(0, 0, 0, .34), transparent 24px), linear-gradient(180deg, rgba(0, 0, 0, .34), transparent 24px), linear-gradient(270deg, rgba(0, 0, 0, .34), transparent 24px), linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: source-over, source-over, source-over, source-over, xor;
  mask: linear-gradient(0deg, rgba(0, 0, 0, .34), transparent 24px) add, linear-gradient(90deg, rgba(0, 0, 0, .34), transparent 24px) add, linear-gradient(180deg, rgba(0, 0, 0, .34), transparent 24px) add, linear-gradient(270deg, rgba(0, 0, 0, .34), transparent 24px) add, linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.feed:not(.io) .boost-frame .frame-line, .feed-item.is-boosted.near .frame-line { animation: siri-spin 5s steps(100) infinite, frame-breathe 3.2s ease-in-out infinite; }
@keyframes frame-breathe { 50% { opacity: .82; } }
/* The spark: a short white streak with a glow, carried along the inner edge, round and back */
.boost-frame .frame-comet { display: none; }
@supports (offset-path: inset(0 round 1px)) {
  .boost-frame .frame-comet { position: absolute; top: 0; left: 0; display: block; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55) 55%, #fff); box-shadow: 0 0 6px 1px rgba(255, 255, 255, .7); opacity: 0; offset-path: inset(1.5px round var(--frame-r)); offset-anchor: 100% 50%; offset-rotate: auto; will-change: transform; }
  .feed:not(.io) .boost-frame .frame-comet, .feed-item.is-boosted.near .frame-comet { opacity: .85; animation: frame-comet 3.4s ease-in-out infinite alternate; }
}
@keyframes frame-draw { from { --reveal: 0deg; } to { --reveal: 180deg; } }
@keyframes frame-comet { from { offset-distance: 0%; } to { offset-distance: 100%; } }
body.scrolling :is(.boost-frame .frame-line, .boost-frame .frame-comet) { animation-play-state: paused; }

/* dotop advertising Plus in an ad slot of the feed */
.plus-promo { background: radial-gradient(80% 55% at 75% 18%, rgba(124, 108, 255, .34), transparent 62%), radial-gradient(70% 50% at 15% 62%, rgba(255, 46, 99, .3), transparent 62%), radial-gradient(60% 45% at 85% 82%, rgba(255, 176, 59, .24), transparent 62%), #0c0a11; cursor: default; }
.plus-promo-art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.plus-promo-mark { position: relative; top: -14%; width: 116px; height: 116px; display: grid; place-items: center; border-radius: 36px; background: var(--pearl); background-size: 200% 100%; color: #2a1d3d; font-size: 58px; box-shadow: 0 22px 60px rgba(220, 203, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .7); animation: pearl-shift 8s linear infinite, ll-bob 4.4s ease-in-out infinite; }
.plus-promo-title { margin-top: 8px; color: #fff; font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.plus-promo-perks { display: grid; gap: 7px; margin: 12px 0 16px; padding: 0; list-style: none; color: rgba(255, 255, 255, .86); font-size: 15px; font-weight: 600; }
.plus-promo-perks li { display: flex; align-items: center; gap: 8px; }
.plus-promo-perks .i { flex: none; color: #ffd36e; }
.plus-promo-cta { pointer-events: auto; min-height: 50px; }
.plus-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 15px; background: var(--surface-2); text-align: left; }
.plus-row > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.plus-row b { font-size: 14px; font-weight: 700; }
.plus-row small { color: var(--dim); font-size: 12px; }
.plus-row > .i:last-child, .plus-row em { margin-left: auto; color: var(--dim); font-size: 13px; font-style: normal; font-weight: 700; }
.plus-mark.small { width: 34px; height: 34px; border-radius: 11px; font-size: 17px; animation: none; }

/* Very narrow phones (iPhone SE, small Android) */
@media (max-width: 360px) {
  .profile-actions .btn:not(.btn-square) .i { display: none; }
  .profile-actions .btn { overflow: hidden; text-overflow: ellipsis; }
  .services { gap: 16px; }
  .services a { font-size: 15px; }
  .split-nums { gap: 4px 18px; }
  .ai-hero .neural { opacity: .4; }
}

@media (hover: none) { /* touch screens */
  .slide-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Notifications: the bell, the list, push and installing the app */
.top-bell { position: absolute; right: 14px; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 13px; color: var(--muted); font-size: 22px; transition: color .15s, background-color .15s; }
.top-bell:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.count-badge { min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 9px; background: var(--hot); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px var(--bg); }
.top-bell .count-badge { position: absolute; top: 4px; right: 2px; }
.activity-row .activity-mark, .row-mark { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-size: 22px; }
.row-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--surface-3); color: var(--text); font-size: 17px; }
.activity-row { margin-bottom: 6px; }
.notice-list { display: grid; gap: 2px; }
.notice-list .row-title:first-child { margin-top: 8px; }
.notice-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; transition: background-color .15s; }
.notice-row:hover { background: var(--surface); }
.notice-row.unread { background: rgba(255, 70, 80, .07); }
.notice-face { position: relative; flex: none; }
.notice-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); font-size: 22px; }
.notice-kind { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 12px; font-style: normal; line-height: 1; box-shadow: 0 0 0 2.5px var(--bg); }
/* The type icon is drawn at 12 px whatever the surrounding text size, and filled shapes stay crisp. */
.notice-kind > .i { width: 12px; height: 12px; font-size: 12px; stroke-width: 2.4; }
.notice-kind.kind-like, .notice-kind.kind-comment-like, .notice-kind.kind-repost, .notice-kind.kind-fork { background: var(--grad); color: #fff; }
.notice-kind.kind-follow, .notice-kind.kind-post { background: #7c6cff; color: #fff; }
.notice-kind.kind-update { background: var(--amber); color: #1b1206; }
.notice-text { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.notice-text small { display: block; margin-top: 2px; color: var(--dim); font-size: 12px; }
.notice-thumb { position: relative; flex: none; width: 46px; height: 58px; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.notice-thumb .scene { position: absolute; inset: 0; }
.notice-thumb .play-mark { display: none; }
.notice-loading { display: grid; place-items: center; padding: 60px 0; }
.push-banner { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; padding: 14px; border-radius: 18px; background: linear-gradient(120deg, rgba(255, 46, 99, .16), rgba(255, 176, 59, .1)); border: 1px solid rgba(255, 95, 61, .25); }
.push-banner > .i { flex: none; font-size: 24px; color: #ffb03b; }
.push-banner > span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.push-banner b { font-size: 14.5px; }
.push-banner small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.push-banner.muted { background: var(--surface); border-color: var(--line); }
.push-banner.muted > .i { color: var(--dim); }
.push-device { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 15px; background: rgba(61, 220, 132, .08); }
.push-device > .i { color: #3ddc84; font-size: 20px; }
.push-device > span { display: grid; }
.push-device small { color: var(--dim); font-size: 12px; }
.push-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.notify-settings .toggle-row { margin-top: 0; }
.install-steps { padding: 14px 16px; border-radius: 15px; background: var(--surface-2); font-size: 14px; }
.install-steps ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.install-steps .i { vertical-align: -3px; }
.push-ask { position: fixed; z-index: 60; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); width: min(440px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-radius: 18px; background: rgba(28, 33, 30, .94); border: 1px solid var(--line-strong); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transform: translateX(-50%); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: rise .3s var(--ease); }
.push-ask > .i { flex: none; color: #ffb03b; font-size: 22px; }
.push-ask > span { flex: 1; font-size: 14px; font-weight: 650; }

/* Project updates: a devlog in episodes */
.card-update { display: flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 10px; padding: 7px 12px 7px 9px; border-radius: 12px; background: rgba(255, 176, 59, .18); color: #ffe2b0; font-size: 13px; font-weight: 650; text-align: left; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.card-update .i { flex: none; color: var(--kind, #ffb03b); }
.card-update span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-update b { color: #fff; }
.card-update small { flex: none; opacity: .65; font-size: 11.5px; }
.updates { padding: 0 24px; }
.updates-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.updates-head .sheet-sub span { color: var(--dim); }
/* A long list folds: the next update fades into fog and blur, «Ещё N» opens the rest. */
.updates-fold { position: relative; height: 150px; overflow: hidden; cursor: pointer; }
.updates-peek { pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(#000 0, rgba(0,0,0,.55) 45%, transparent 100%); mask-image: linear-gradient(#000 0, rgba(0,0,0,.55) 45%, transparent 100%); }
.updates-fog { position: absolute; inset: 0; pointer-events: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); -webkit-mask-image: linear-gradient(transparent 0, #000 70%); mask-image: linear-gradient(transparent 0, #000 70%); }
.updates-more { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); gap: 6px; white-space: nowrap; background: color-mix(in srgb, var(--surface-2) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.updates-more .i { width: 16px; height: 16px; }
.update { position: relative; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.update:last-child { border-bottom: 0; }
.update-version { flex: none; align-self: flex-start; min-width: 44px; padding: 4px 8px; border-radius: 8px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; text-align: center; }
.update-version.dot { min-width: 10px; width: 10px; height: 10px; margin: 6px 17px 0; padding: 0; border-radius: 50%; }
.update-body { flex: 1; min-width: 0; }
.update-body b { font-size: 15px; }
.update-body small { margin-left: 8px; color: var(--dim); font-size: 12px; }
.update-body p { margin-top: 4px; color: var(--muted); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.update-body img { width: 100%; max-height: 320px; margin-top: 10px; object-fit: cover; border-radius: 14px; }
/* An update written in blocks — by the author or by the AI in ИИ-мир — takes the colours and fonts of the post. */
.update-body .update-page { display: grid; gap: 12px; margin-top: 10px; --brand: var(--page-accent, var(--accent)); --brand-ink: var(--page-accent-ink, var(--accent-ink)); --accent: var(--brand); --accent-ink: var(--brand-ink); }
.update-page .pb-heading { margin-top: 2px; }
.update-page .pb-media img, .update-page .pb-media video { max-height: 320px; object-fit: cover; border-radius: 14px; }
.update-page .pb-button { min-height: 48px; }
.update-ai { margin-left: 8px; padding: 2px 7px; border-radius: 7px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 800; vertical-align: 1px; }
.update-fields { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
/* Kinds of updates, as in Steam: a coloured mark with an icon. A major update is a card with its cover. */
.update-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.update-line small, .update-line .update-ai { margin-left: 0; }
.update-kind { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 8px; background: color-mix(in srgb, var(--kind) 16%, transparent); color: color-mix(in srgb, var(--kind) 72%, var(--page-ink, var(--text))); font-size: 11.5px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.update-kind .i { width: 14px; height: 14px; color: var(--kind); }
.update-title { padding: 0; color: inherit; font: inherit; font-size: 15px; font-weight: 800; text-align: left; cursor: pointer; }
.update-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.update-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; min-height: 36px; color: var(--page-accent, var(--accent)); }
.update-more .i { width: 16px; height: 16px; }
.update-card { display: grid; width: 100%; overflow: hidden; padding: 0; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--kind) 38%, var(--line)); background: color-mix(in srgb, var(--kind) 7%, var(--surface-2)); color: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.update-card:hover { border-color: var(--kind); }
.update-card:active { transform: scale(.99); }
.update-body .update-card img { width: 100%; max-height: none; margin: 0; aspect-ratio: 1232 / 706; object-fit: cover; border-radius: 0; }
/* The capsule of an update, like on Steam: its own picture, 1232×706, across the whole width. */
/* On a phone the capsule and the major card take the whole width: the version and the author's tools go on a line above. */
@media (max-width: 640px) {
  .update.with-art { flex-wrap: wrap; row-gap: 10px; }
  .update.with-art .update-body { order: 3; flex: 0 0 100%; }
  .update.with-art .update-tools { margin-left: auto; }
}
.update-capsule { display: block; width: 100%; margin: 0 0 10px; padding: 0; overflow: hidden; border-radius: 14px; background: var(--surface-3); cursor: pointer; }
.update-body .update-capsule img { display: block; width: 100%; max-height: none; margin: 0; aspect-ratio: 1232 / 706; object-fit: cover; border-radius: 0; }
.update-card-art { display: grid; place-items: center; aspect-ratio: 32 / 9; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--kind) 45%, transparent), transparent 60%), color-mix(in srgb, var(--kind) 12%, var(--surface-3)); color: var(--kind); }
.update-card-art .i { width: 40px; height: 40px; }
.update-card-text { display: grid; justify-items: start; gap: 6px; padding: 14px 16px 16px; }
.update-card-text b { font-family: var(--page-font, inherit); font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.update-card-lead { color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.update-card-more { display: inline-flex; align-items: center; gap: 4px; color: var(--kind); font-size: 13.5px; font-weight: 800; }
.update-card-more .i { width: 16px; height: 16px; }
.update.major .update-line { margin-top: 8px; }
.card-update { --kind: #ffb03b; }
.card-update.major { background: color-mix(in srgb, var(--kind) 26%, rgba(0, 0, 0, .3)); }
/* The page of one update: the cover across the top, then the update in the post's colours and fonts. */
.update-hero img { display: block; width: 100%; aspect-ratio: 1232 / 706; max-height: 56vh; object-fit: cover; }
.update-full-head { display: grid; justify-items: start; gap: 10px; max-width: 760px; margin: 0 auto; padding: 22px 24px 8px; }
.update-back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px 0 6px; border-radius: 12px; background: color-mix(in srgb, var(--page-ink, var(--text)) 8%, transparent); color: inherit; font-size: 13.5px; font-weight: 700; }
.update-back span { max-width: 240px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.update-full-head .store-title { font-size: calc(32px * var(--font-k, 1)); }
.update-full-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 13.5px; }
.update-full-meta b { padding: 3px 8px; border-radius: 8px; background: var(--grad); color: #fff; font-size: 12px; }
.update-full-meta .update-ai { margin-left: 0; }
.update-full-meta .update-tools { margin-left: auto; }
.update-full-body .update-page { display: grid; gap: 16px; --brand: var(--page-accent, var(--accent)); --brand-ink: var(--page-accent-ink, var(--accent-ink)); --accent: var(--brand); --accent-ink: var(--brand-ink); }
.update-full-body > p { color: var(--muted); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.update-full-body > img { width: 100%; border-radius: 16px; }
.update-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 760px; margin: 12px auto 0; padding: 0 24px; }
.update-step { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--page-ink, var(--text)) 4%, transparent); color: inherit; text-align: left; }
.update-step + .update-step, .update-steps > span + .update-step { justify-content: flex-end; text-align: right; }
.update-step span { display: grid; min-width: 0; }
.update-step small { color: var(--dim); font-size: 12px; }
.update-step b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.update-step .i { flex: none; width: 18px; height: 18px; color: var(--muted); }
@media (max-width: 760px) {
  .update-full-head { padding: 18px 16px 6px; }
  .update-full-head .store-title { font-size: calc(26px * var(--font-k, 1)); }
  .update-steps { grid-template-columns: 1fr; padding: 0 16px; }
  .update-step + .update-step, .update-steps > span + .update-step { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
}
/* The kind of the update the author writes: one chip each, the chosen one filled with its colour. */
.kind-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.capsule-field { display: grid; gap: 8px; }
.capsule-field .capsule-toggle { margin-top: 0; }
.capsule-box { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1232 / 706; padding: 0; overflow: hidden; border-radius: 16px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); color: var(--muted); cursor: pointer; }
.capsule-box.has { border-style: solid; border-color: var(--line); }
.capsule-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.capsule-cta { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 750; }
.capsule-cta .i { width: 18px; height: 18px; }
.capsule-box.has .capsule-cta { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .62); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.kind-pick { position: relative; cursor: pointer; }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px 0 9px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 13.5px; font-weight: 700; }
.kind-pick span .i { width: 16px; height: 16px; color: var(--kind); }
.kind-pick input:checked + span { border-color: var(--kind); background: color-mix(in srgb, var(--kind) 18%, var(--surface-2)); color: var(--text); }
.kind-pick input:focus-visible + span { outline: 2px solid var(--kind); outline-offset: 2px; }
.kind-hint { margin-top: -4px; }
.update-editor .pe-update { padding-top: 12px; }
.tstep-kind { display: block; margin-top: 2px; color: var(--dim); font-size: 12px; font-weight: 700; }
.watch-btn.on { color: #ffb03b; }

/* Menus for a post and a person */
.menu-sheet { padding-top: 18px; }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 4px 56px 14px 0; border-bottom: 1px solid var(--line); }
.menu-head > span:last-child { display: grid; min-width: 0; }
.menu-head b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; }
.menu-head small { color: var(--dim); font-size: 13px; }
.menu-art { position: relative; flex: none; width: 44px; height: 56px; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.menu-art .scene { position: absolute; inset: 0; }
.menu-art .play-mark { display: none; }
.menu-list { display: grid; padding-top: 6px; }
.menu-item { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 6px; border-radius: 12px; font-size: 15px; font-weight: 600; text-align: left; }
.menu-item .i { flex: none; color: var(--muted); font-size: 20px; }
.menu-item:hover { background: var(--surface-2); }
.menu-item.danger, .menu-item.danger .i { color: #ff6b7d; }

/* Your feed */
.feed-prefs .search-box { min-height: 46px; margin-top: 14px; }
.pref-suggest { display: grid; gap: 2px; margin-top: 8px; }
.pref-row { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 4px; }
.pref-row b { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; }
.pref-actions { display: flex; gap: 4px; }
.pref-actions button { min-height: 32px; padding: 0 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.pref-actions button.on.more { background: rgba(61, 220, 132, .18); color: #6ef0a8; }
.pref-actions button.on.less { background: rgba(255, 176, 59, .18); color: #ffcf7a; }
.pref-actions button.on.hidden { background: rgba(255, 93, 115, .18); color: #ff8b9b; }
.pref-section { margin-top: 18px; }
.pref-section h3 { margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.pref-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pref-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 4px 0 12px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 650; }
.pref-chip.learned { padding-right: 12px; color: var(--muted); }
.pref-chip button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--dim); font-size: 13px; }
.pref-section.more .pref-chip { background: rgba(61, 220, 132, .14); }
.pref-section.less .pref-chip { background: rgba(255, 176, 59, .14); }
.pref-section.hidden .pref-chip { background: rgba(255, 93, 115, .14); }
.feed-prefs > .btn-block { margin-top: 22px; }

/* Reports and blocks */
.report-reasons { display: grid; gap: 6px; }
.report-reason { position: relative; display: block; cursor: pointer; }
.report-reason input { position: absolute; opacity: 0; pointer-events: none; }
.report-reason span { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.report-reason input:checked + span { border-color: #ff6b7d; background: rgba(255, 93, 115, .1); }
.report-reason input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.blocked-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px; border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 14px; }
.blocked-note > .i { color: #ff6b7d; font-size: 20px; }
.blocked-note > span { flex: 1; min-width: 200px; }

/* Sharing */
.share-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px 6px; margin-top: 16px; }
.share-person { display: grid; justify-items: center; gap: 6px; padding: 4px 2px; border-radius: 14px; font-size: 12px; font-weight: 600; }
.share-person span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.share-person.sending { opacity: .55; }
.share-person.sent .avatar { box-shadow: 0 0 0 3px #3ddc84; }
.share-person.sent span { color: #3ddc84; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.share-action { display: grid; justify-items: center; gap: 6px; width: 72px; font-size: 12px; font-weight: 650; color: var(--muted); }
.share-action .i { width: 52px; height: 52px; padding: 14px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 24px; box-sizing: border-box; }
.share-action.on .i { background: var(--grad); color: #fff; }
.share-action.tg .i { background: #2aabee; color: #fff; }
.share-action.vk .i { background: #0077ff; color: #fff; }
.bubble.is-post { padding: 4px; }
.bubble-post { display: flex; align-items: center; gap: 10px; width: min(300px, 100%); padding: 4px 10px 4px 4px; border-radius: 16px; background: rgba(0, 0, 0, .22); color: inherit; text-align: left; white-space: normal; }
.bubble-post-art { position: relative; flex: none; width: 56px; height: 72px; overflow: hidden; border-radius: 12px; }
.bubble-post-art .scene { position: absolute; inset: 0; }
.bubble-post-art .play-mark { display: none; }
.bubble-post > span:last-child { display: grid; gap: 2px; min-width: 0; }
.bubble-post b { font-size: 14.5px; }
.bubble-post small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 12px; opacity: .75; }
.bubble-text.muted { opacity: .6; font-style: italic; }

/* Search over everything a post says */
.search-hits { display: grid; gap: 4px; }
.search-hit { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; text-align: left; }
.search-hit:hover { background: var(--surface); }
.search-thumb { position: relative; flex: none; width: 64px; height: 80px; overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.search-thumb .scene { position: absolute; inset: 0; }
.search-thumb .play-mark { display: none; }
.search-text { display: grid; gap: 2px; min-width: 0; }
.search-text b { font-size: 15.5px; }
.search-text small { color: var(--dim); font-size: 12px; }
.search-text em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 13.5px; font-style: normal; line-height: 1.45; }
.search-text mark { padding: 0 2px; border-radius: 4px; background: rgba(255, 176, 59, .28); color: #fff; }

/* A demo that runs in the browser */
dialog[data-kind="player"] { width: min(1180px, calc(100% - 32px)); height: calc(100dvh - 40px); max-height: none; overflow: hidden; background: #000; }
.player { height: 100%; display: flex; flex-direction: column; }
.player-bar { display: flex; align-items: center; gap: 6px; min-height: 64px; padding: 10px 64px 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.player-title { flex: 1; display: grid; min-width: 0; }
.player-title b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; }
.player-title small { color: var(--dim); font-size: 12px; }
.player-frame { position: relative; flex: 1; min-height: 0; background: #000; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-frame:fullscreen iframe { position: fixed; }
.player-blocked { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--muted); }
.player-blocked > .i { font-size: 44px; color: var(--text); }
.player-blocked b { color: var(--text); font-size: 18px; }
.player-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.player-foot > span { margin-right: auto; color: var(--muted); font-size: 13.5px; font-weight: 650; }
.demo-state { display: block; margin: -2px 2px 4px; color: var(--dim); font-size: 12.5px; line-height: 1.45; }
.demo-state.ok { color: #3fbf7f; }
.demo-state.bad { color: #ff8b9b; }
.import-box { margin-bottom: 14px; padding: 14px; border-radius: 18px; background: linear-gradient(120deg, rgba(124, 108, 255, .16), rgba(255, 46, 99, .1)); border: 1px solid rgba(124, 108, 255, .28); }
.import-box > p { display: flex; gap: 10px; }
.import-box > p > .i { flex: none; color: #b9a3ff; font-size: 22px; }
.import-box > p > span { display: grid; gap: 2px; }
.import-box b { font-size: 14.5px; }
.import-box small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.import-row { display: flex; gap: 8px; margin-top: 10px; }
.import-row input { flex: 1; min-width: 0; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); outline: none; background: rgba(0, 0, 0, .25); font-size: 15px; }
.import-row input:focus { border-color: #b9a3ff; }
.import-state { display: block; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.import-state:empty { display: none; }

/* Comments: replies, likes, pins, voice and a digest */
.comment-body { flex: 1; min-width: 0; }
.comments .comment { align-items: flex-start; }
.notice-kind.kind-comment, .notice-kind.kind-reply { background: #5ec8ff; color: #06202e; }
.comment.reply { margin-left: 48px; padding-top: 6px; }
.comment.reply .avatar { width: 28px; height: 28px; font-size: 10px; }
.comment.pinned { margin: 0 -10px; padding: 12px 10px; border-radius: 14px; background: rgba(255, 176, 59, .07); }
.pin-mark { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; color: #ffb03b; font-size: 11.5px; font-weight: 750; }
.comment-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.comment-actions button { color: var(--dim); font-size: 12.5px; font-weight: 700; }
.comment-actions button:hover { color: var(--text); }
.comment-like { flex: none; align-self: flex-start; display: grid; justify-items: center; gap: 1px; min-width: 32px; padding-top: 4px; color: var(--dim); font-size: 17px; }
.comment-like b { font-size: 11px; font-weight: 700; }
.comment-like.on { color: var(--hot); }
.comment-like.on .i { fill: currentColor; animation: pop .35s var(--ease); }
.digest { margin: 4px 0 6px; }
.digest-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, rgba(124, 108, 255, .14), rgba(255, 46, 99, .08)); text-align: left; }
.digest-btn > .i:first-child { color: #b9a3ff; font-size: 20px; }
.digest-btn > span { flex: 1; display: grid; }
.digest-btn b { font-size: 14.5px; }
.digest-btn small { color: var(--dim); font-size: 12px; }
.digest.loading .digest-btn { opacity: .6; }
.digest-card { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(120deg, rgba(124, 108, 255, .14), rgba(255, 46, 99, .08)); animation: rise .3s var(--ease); }
.digest-card > .i { flex: none; color: #b9a3ff; font-size: 20px; }
.digest-card p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; }
.digest-card ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.digest-card li { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--muted); font-size: 12.5px; font-weight: 650; }
.ai-tag { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #b9a3ff; color: #1a1530; font-size: 10.5px; font-style: normal; font-weight: 800; vertical-align: 2px; }
.comment-composer { flex-wrap: wrap; align-items: center; }
.reply-bar { flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding: 0 4px 2px; color: var(--muted); font-size: 13px; }
.reply-bar span { flex: 1; }
.reply-bar button { width: 30px; height: 30px; background: none; color: var(--dim); font-size: 15px; }
.comment-composer.recording > input[name="text"], .comment-composer.recording > .cbtn, .comment-composer.recording > button[type="submit"] { display: none; }
.voice-rec { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 46px; }
.voice-rec span { flex: 1; color: var(--muted); font-size: 13px; }
.voice-rec .btn { width: auto; height: auto; min-height: 36px; padding: 0 12px; border-radius: 12px; font-size: 13px; }
.voice-rec .btn-ghost { background: var(--surface-2); color: var(--text); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hot); animation: mic-pulse 1.2s ease-out infinite; }
.rec-time { font-variant-numeric: tabular-nums; }
.voice-note { --p: 0; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--surface-2); color: var(--text); }
.voice-note > .i { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: var(--grad); color: #fff; box-sizing: border-box; }
.voice-note .v-pause, .voice-note.playing .v-play { display: none; }
.voice-note.playing .v-pause { display: block; }
.voice-wave { display: flex; align-items: center; gap: 2px; height: 24px; }
.voice-wave i { width: 3px; height: var(--h); border-radius: 2px; background: rgba(255, 255, 255, .35); }
.voice-wave i.on { background: #ffb03b; }
.voice-note small { margin: 0; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .top-bell { right: 6px; top: var(--safe-t); margin-top: 4px; }
  .updates { padding: 0 18px; }
  .update-fields { grid-template-columns: 1fr; }
  dialog[data-kind="player"] { width: 100%; height: calc(100dvh - env(safe-area-inset-top)); border-radius: 22px 22px 0 0; }
  .player-bar { padding-left: 14px; }
  .comment.reply { margin-left: 36px; }
  .share-people { grid-template-columns: repeat(4, 1fr); }
  .card-ctas { margin-right: 4px; }
}

/* Themes: dark is the default look; light follows the same tokens. The feed stays a dark cinema in
   every theme, the sheets opened from it follow the chosen theme. */
:root[data-theme="light"] { color-scheme: light; --bg: #f6f5f2; --surface: #ffffff; --surface-2: #f0efeb; --surface-3: #e6e4de; --line: rgba(20, 23, 20, .08); --line-strong: rgba(20, 23, 20, .15); --text: #141714; --muted: rgba(20, 23, 20, .68); --dim: rgba(20, 23, 20, .46); --accent: #141714; --accent-ink: #fbfaf7; }
:root[data-theme="light"] body[data-view="feed"] { color-scheme: dark; --bg: #0c0e0d; --surface: #151917; --surface-2: #1c211e; --surface-3: #262c28; --line: rgba(236, 244, 230, .08); --line-strong: rgba(236, 244, 230, .15); --text: #f1f4ec; --muted: rgba(241, 244, 236, .66); --dim: rgba(241, 244, 236, .42); --accent: #f2f1ee; --accent-ink: #0b0b0c; }
:root[data-theme="light"] body[data-view="feed"] dialog, :root[data-theme="light"] dialog.layer { color-scheme: light; --bg: #f6f5f2; --surface: #ffffff; --surface-2: #f0efeb; --surface-3: #e6e4de; --line: rgba(20, 23, 20, .08); --line-strong: rgba(20, 23, 20, .15); --text: #141714; --muted: rgba(20, 23, 20, .68); --dim: rgba(20, 23, 20, .46); --accent: #141714; --accent-ink: #fbfaf7; }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] { color-scheme: light; --bg: #f6f5f2; --surface: #ffffff; --surface-2: #f0efeb; --surface-3: #e6e4de; --line: rgba(20, 23, 20, .08); --line-strong: rgba(20, 23, 20, .15); --text: #141714; --muted: rgba(20, 23, 20, .68); --dim: rgba(20, 23, 20, .46); --accent: #141714; --accent-ink: #fbfaf7; }
  :root[data-theme="auto"] body[data-view="feed"] { color-scheme: dark; --bg: #0c0e0d; --surface: #151917; --surface-2: #1c211e; --surface-3: #262c28; --line: rgba(236, 244, 230, .08); --line-strong: rgba(236, 244, 230, .15); --text: #f1f4ec; --muted: rgba(241, 244, 236, .66); --dim: rgba(241, 244, 236, .42); --accent: #f2f1ee; --accent-ink: #0b0b0c; }
  :root[data-theme="auto"] body[data-view="feed"] dialog,   :root[data-theme="auto"] dialog.layer { color-scheme: light; --bg: #f6f5f2; --surface: #ffffff; --surface-2: #f0efeb; --surface-3: #e6e4de; --line: rgba(20, 23, 20, .08); --line-strong: rgba(20, 23, 20, .15); --text: #141714; --muted: rgba(20, 23, 20, .68); --dim: rgba(20, 23, 20, .46); --accent: #141714; --accent-ink: #fbfaf7; }
}
:root[data-theme="light"] .search-text mark { color: inherit; }
:root[data-theme="light"] .push-ask { background: rgba(255, 255, 255, .96); }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .search-text mark { color: inherit; }
  :root[data-theme="auto"] .push-ask { background: rgba(255, 255, 255, .96); }
}

/* Feed modes: "Лента" with a small dot opens a plain list of modes under it */
.services a[data-action="feed-modes"] { position: relative; cursor: pointer; }
.mode-dot { position: absolute; left: -11px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: currentColor; opacity: .75; transition: transform .3s var(--ease), opacity .3s; }
.mode-dot.custom { background: var(--grad); opacity: 1; box-shadow: 0 0 8px rgba(255, 80, 80, .9); }
.services a.open .mode-dot { transform: scale(.4); opacity: 0; }
.mode-menu { position: absolute; z-index: 45; display: grid; justify-items: center; gap: 0; padding: 2px 6px 8px; }
.mode-menu[hidden] { display: none; }
.mode-menu button { position: relative; min-height: 38px; padding: 0 2px; color: rgba(255, 255, 255, .78); font-size: 16px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 1px rgba(0, 0, 0, .5); transition: color .2s; animation: mode-item-in .42s cubic-bezier(.2, .9, .3, 1.15) both; animation-delay: calc(90ms + var(--i) * 45ms); }
.mode-menu button.on { color: #fff; font-weight: 800; }
.mode-menu.closing button { animation: mode-item-out .2s ease-in both; animation-delay: calc((2 - var(--i)) * 30ms); }
.mode-bar { position: absolute; left: 0; top: 0; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transform: translate(var(--to-x), var(--to-y)); animation: mode-bar-drop .5s cubic-bezier(.3, .9, .3, 1.1) both; }
.mode-menu.closing .mode-bar { animation: mode-bar-rise .32s cubic-bezier(.5, 0, .4, 1) both; }
.services.modes-open .services-bar { opacity: 0; transition: opacity .08s; }
/* While the list is open the top of the picture darkens a little, so white text reads on any photo. */
#topbar > .mode-scrim { position: fixed; z-index: -1; top: 0; left: var(--dock-w); right: 0; height: calc(var(--safe-t) + 230px); background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .28) 50%, rgba(0, 0, 0, 0)); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
#topbar.modes-open .mode-scrim { opacity: 1; }
.services .services-bar { transition: transform .35s var(--ease), opacity .12s .02s; }
@keyframes mode-item-in { from { opacity: 0; transform: translateY(-7px) scale(.96); } }
@keyframes mode-item-out { to { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes mode-bar-drop {
  0% { transform: translate(var(--from-x), var(--from-y)); height: 3px; width: 18px; }
  40% { transform: translate(calc((var(--from-x) + var(--to-x)) / 2), calc((var(--from-y) + var(--to-y)) / 2 - 8px)); height: 16px; width: 4px; }
  100% { transform: translate(var(--to-x), var(--to-y)); height: 3px; width: 18px; }
}
@keyframes mode-bar-rise {
  0% { transform: translate(var(--to-x), var(--to-y)); height: 3px; width: 18px; }
  55% { transform: translate(calc((var(--from-x) + var(--to-x)) / 2), calc((var(--from-y) + var(--to-y)) / 2)); height: 14px; width: 4px; }
  100% { transform: translate(var(--from-x), var(--from-y)); height: 3px; width: 18px; opacity: 0; }
}
body[data-view="page"] .mode-menu button { color: var(--muted); text-shadow: none; }
body[data-view="page"] .mode-menu button.on { color: var(--text); }

/* Top bar: bell and settings side by side */
.top-actions { position: absolute; right: 10px; top: 50%; display: flex; gap: 2px; margin-top: -22px; }
.top-actions .top-bell { position: relative; right: auto; top: auto; margin: 0; }

/* Comments: author mark, mentions, sorting, threads */
.author-badge { margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; vertical-align: 1px; }
.comment .author-badge + small { margin-left: 6px; }
.mention { color: #ffb03b; font-weight: 700; }
.comment-sort { display: flex; gap: 6px; margin: 6px 0 4px; }
.comment-sort button { min-height: 32px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; }
.comment-sort button.on { background: var(--text); color: var(--bg); }
.thread { display: grid; }
.thread + .thread { border-top: 1px solid var(--line); }
.thread-more { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px 48px; color: var(--muted); font-size: 13px; font-weight: 700; }
.comment.fresh { animation: comment-fresh 1.6s var(--ease); }
@keyframes comment-fresh { 0%, 40% { background: rgba(255, 176, 59, .14); } 100% { background: transparent; } }

/* Interest picker after sign-up */
.onboarding h2 { margin-top: 6px; font-size: 24px; letter-spacing: -.03em; }
.onboarding > .fine { margin-top: 4px; font-size: 13.5px; }
.ob-steps { display: flex; gap: 5px; }
.ob-steps i { width: 6px; height: 6px; border-radius: 6px; background: var(--surface-3); }
.ob-steps i.on { width: 22px; background: var(--grad); }
.ob-steps i.done { background: var(--muted); }
.ob-tiles { display: grid; gap: 8px; margin-top: 16px; }
.ob-tile { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); border: 1.5px solid transparent; text-align: left; transition: border-color .2s, background-color .2s; }
.ob-tile > .i { grid-row: span 2; font-size: 26px; color: var(--muted); }
.ob-tile b { font-size: 16px; }
.ob-tile small { color: var(--dim); font-size: 12.5px; }
.ob-tile.on { border-color: #ff5f3d; background: rgba(255, 95, 61, .1); }
.ob-tile.on > .i { color: #ff5f3d; }
.ob-sub { margin: 20px 0 10px; font-size: 15px; font-weight: 800; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ob-sub + .ob-chips { margin-top: 0; }
.ob-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px; background: var(--surface-2); border: 1.5px solid var(--line-strong); color: var(--muted); font-size: 14px; font-weight: 650; transition: background-color .2s, color .2s, border-color .2s; }
.ob-chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.ob-people { display: grid; gap: 4px; margin-top: 14px; }
.ob-person { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.ob-person > span:not(.avatar) { flex: 1; display: grid; min-width: 0; }
.ob-person small { color: var(--dim); font-size: 12.5px; }
.ob-bar { position: sticky; bottom: 0; display: flex; gap: 8px; margin: 18px -24px -24px; padding: 14px 24px calc(14px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
.ob-bar .btn-grad { flex: 1; }

/* Settings */
.settings { display: grid; gap: 6px; }
.set-profile { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--surface); text-align: left; }
.set-profile > span:not(.avatar) { flex: 1; display: grid; min-width: 0; }
.set-profile .avatar { flex: none; }
.set-profile b { font-size: 17px; }
.set-profile small { color: var(--dim); font-size: 13px; }
.set-profile > .i { color: var(--dim); }
.set-section { display: grid; gap: 8px; margin-top: 18px; }
.set-section h2 { margin: 0 4px 2px; color: var(--dim); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.set-section .toggle-row { margin-top: 0; }
.set-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 15px; background: var(--surface-2); text-align: left; }
.set-row > span:nth-child(2) { flex: 1; display: grid; gap: 1px; min-width: 0; }
.set-row b { font-size: 14.5px; font-weight: 700; }
.set-row small { color: var(--dim); font-size: 12px; }
.set-row > .i:last-child { color: var(--dim); }
.set-row.danger b, .set-row.danger .row-mark { color: #ff6b7d; }
.set-field { display: grid; gap: 8px; padding: 14px; border-radius: 15px; background: var(--surface-2); }
.set-field b { font-size: 14.5px; }
.set-field small { color: var(--dim); font-size: 12px; }
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 13px; background: var(--surface-3); }
.seg button { flex: 1; min-height: 36px; padding: 0 6px; border-radius: 10px; color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.blocked-list { display: grid; gap: 8px; }

/* A second layer above a sheet: cropping and framing pictures */
dialog.layer { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: var(--surface); }
.crop { display: grid; gap: 14px; padding: 14px 16px 18px; }
.crop-head { display: flex; align-items: center; gap: 8px; }
.crop-head b { flex: 1; font-size: 16px; text-align: center; }
.crop-stage { position: relative; width: min(100%, 420px); margin: 0 auto; overflow: hidden; border-radius: 18px; background: #000; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-image { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255, 255, 255, .35) 33.33%, transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .35) 66.66%, transparent calc(66.66% + .5px)), linear-gradient(transparent calc(33.33% - .5px), rgba(255, 255, 255, .35) 33.33%, transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .35) 66.66%, transparent calc(66.66% + .5px)); }
.crop-stage.round .crop-grid { border-radius: 50%; background: none; box-shadow: 0 0 0 999px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .85); }
.crop-zoom { display: flex; align-items: center; gap: 10px; width: min(100%, 420px); margin: 0 auto; color: var(--muted); font-size: 18px; }
.crop-zoom input { flex: 1; accent-color: #ff5f3d; }
.crop .fine { text-align: center; }
.focus-canvas { position: relative; width: 100%; max-height: 52dvh; margin: 0 auto; overflow: hidden; border-radius: 14px; background: #000; cursor: crosshair; touch-action: none; }
.focus-canvas img, .focus-canvas video { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.focus-frame { position: absolute; pointer-events: none; border-radius: 6px; transition: left .08s, top .08s; }
.focus-frame.in-feed { border: 2px solid #fff; box-shadow: 0 0 0 999px rgba(0, 0, 0, .5); }
.focus-frame.on-page { border: 2px dashed #ffb03b; }
.focus-frame em { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; }
.focus-frame.on-page em { top: auto; bottom: 6px; color: #ffcf7a; }
.focus-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; background: var(--grad); box-shadow: 0 2px 10px rgba(0, 0, 0, .5); pointer-events: none; }
.focus-previews { display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.focus-previews figure { display: grid; gap: 6px; margin: 0; }
.focus-previews figure.in-feed { width: 92px; }
.focus-previews figure.on-page { width: 168px; }
.focus-preview { overflow: hidden; border-radius: 10px; background: #000; }
.focus-preview img, .focus-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.focus-previews figcaption { color: var(--dim); font-size: 11.5px; font-weight: 650; text-align: center; }
.focus-nav { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 650; }
.pick-focus { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pe-focus { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 10px; border-radius: 10px; background: var(--surface-3); font-size: 12.5px; font-weight: 700; }
.pb-media.shaped img { max-height: none; background: none; }

@media (max-width: 760px) {
  .top-actions { right: 4px; top: var(--safe-t); margin-top: 4px; }
  .ob-bar { margin: 18px -18px -18px; padding-left: 18px; padding-right: 18px; }
  dialog.layer { width: 100%; max-width: none; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: calc(100dvh - env(safe-area-inset-top) - 8px); }
}

/* Light theme: the phone tab bar and other bars that were drawn dark on purpose */
:root[data-theme="light"] body:not([data-view="feed"]) #dock { background: rgba(250, 249, 246, .94); }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] body:not([data-view="feed"]) #dock { background: rgba(250, 249, 246, .94); } }

/* One project across the feed, ИИ-мир and Steam: the author's hub on the post page */
.hub { margin-bottom: 18px; padding: 6px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.hub { margin-top: 4px; }
.hub-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 8px 8px; }
.hub-body .promo-offer, .hub-body .promo-status { margin: 0; }
.hub-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.hub-stat { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: 14px; background: var(--surface); text-align: center; }
.hub-stat .i { color: var(--dim); font-size: 16px; }
.hub-stat b { font-size: 16px; font-variant-numeric: tabular-nums; }
.hub-stat small { color: var(--dim); font-size: 10.5px; font-weight: 650; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.hub-hint .i { vertical-align: -2px; }
.hub-list { display: grid; gap: 6px; }
.hub-ws { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); }
.hub-ws > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.hub-ws small { color: var(--dim); font-size: 12px; }
.hub-ws > .i:last-child { color: var(--dim); }
.hub-task { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.hub-task > span:last-child { display: grid; min-width: 0; }
.hub-task b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; }
.hub-task small { color: var(--dim); font-size: 12px; }
.hub-task-state { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.hub-task-state.done { background: #3ddc84; }
.hub-task-state.error, .hub-task-state.cancelled { background: #ff6b7d; }
.hub-task-state.running, .hub-task-state.queued, .hub-task-state.sent { background: var(--amber); animation: live-dot 1.6s ease-out infinite; }
.hub-notice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, rgba(255, 46, 99, .16), rgba(255, 176, 59, .12)); }
.hub-notice > .i { flex: none; color: #ffb03b; font-size: 20px; }
.hub-notice > span { display: grid; }
.hub-notice small { color: var(--muted); font-size: 12px; }
.hub-notice.done { background: rgba(61, 220, 132, .1); }
.hub-notice.done > .i { color: #3ddc84; }
.steam-date { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); font-size: 14px; font-weight: 650; }
.steam-date span { flex: 1; }
.steam-date input { border: 0; background: none; color: var(--text); font: inherit; }
.ready-head { display: flex; align-items: center; gap: 14px; }
.ready-head > span:last-child { display: grid; }
.ready-head small { color: var(--dim); font-size: 12px; }
.ready-ring { --p: 0; flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(closest-side, var(--surface-2) 79%, transparent 80% 100%), conic-gradient(#ff5f3d calc(var(--p) * 1%), var(--surface-3) 0); }
.ready-ring b { font-size: 14px; font-variant-numeric: tabular-nums; }
.ready-ring.small { width: 40px; height: 40px; background: radial-gradient(closest-side, var(--surface-2) 76%, transparent 77% 100%), conic-gradient(#ff5f3d calc(var(--p) * 1%), var(--surface-3) 0); }
.ready-ring.small b { font-size: 11px; }
.ready-group { display: grid; gap: 4px; }
.ready-group h4 { margin: 4px 4px 2px; color: var(--dim); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ready-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 12px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 650; text-align: left; }
.ready-row > .i:first-child { flex: none; font-size: 17px; }
.ready-row > span { flex: 1; display: grid; gap: 3px; min-width: 0; }
.ready-row small { color: var(--dim); font-size: 11.5px; font-weight: 600; }
.ready-bar { display: block; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.ready-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.ready-tick { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--dim); font-size: 13px; font-style: normal; }
.ready-row.on { color: var(--text); }
.ready-row.on .ready-tick { background: #3ddc84; color: #06240f; }
.ready-note { display: block; margin: 2px 4px; color: var(--dim); font-size: 11.5px; }
/* The author's hub, compact: icons where an icon says it. Tabs and the stages of the way to Steam show only
   their icons; the chosen one also shows its word and takes the room it needs. With room enough (a wide
   window) every tab shows its word. */
.hub { container-type: inline-size; }
.hub-tabs { display: flex; gap: 2px; padding: 2px; }
.hub-tabs button, .steam-steps button { position: relative; flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: flex-grow .3s var(--ease), background-color .2s, color .2s; }
.hub-tabs button { height: 40px; padding: 0 8px; border-radius: 14px; color: var(--muted); font-size: 13px; font-weight: 750; }
.hub-tabs button > .i { flex: none; font-size: 18px; }
.steam-steps button > .i { flex: none; font-size: 17px; }
.hub-tabs button > span, .steam-steps button > span { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hub-tabs button.on, .steam-steps button.on { flex-grow: 2.6; }
.hub-tabs button.on > span, .steam-steps button.on > span { display: block; }
.hub-tabs button:not(.on) .tab-count { position: absolute; top: 3px; left: calc(50% + 5px); min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; }
.steam-steps button.past { color: var(--accent); }
.hub .ready-head { gap: 12px; }
.hub .ready-head b { font-size: 14.5px; }
.hub .ready-ring:not(.small) { width: 44px; height: 44px; background: radial-gradient(closest-side, var(--surface-2) 76%, transparent 77% 100%), conic-gradient(#ff5f3d calc(var(--p) * 1%), var(--surface-3) 0); }
.hub .ready-ring:not(.small) b { font-size: 12px; }
.ready-group h4 { display: flex; justify-content: space-between; gap: 8px; }
.ready-group h4 span { color: var(--muted); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ready-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ready-tiles.of-feed { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ready-tiles.of-repo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ready-tile { position: relative; display: grid; justify-items: center; align-content: center; gap: 5px; min-width: 0; min-height: 62px; padding: 10px 4px 9px; border-radius: 14px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; transition: background-color .2s, box-shadow .2s, color .2s, transform .15s var(--ease); }
.ready-tile > .i { font-size: 19px; }
.ready-tile > span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
button.ready-tile:active { transform: scale(.95); }
.ready-tile.on { background: color-mix(in srgb, #3ddc84 13%, var(--surface)); color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(61, 220, 132, .5); }
.ready-tile.on > .i { color: #3ddc84; }
.ready-tile .ready-tick { position: absolute; top: 5px; right: 5px; width: 16px; height: 16px; background: #3ddc84; color: #06240f; font-size: 10px; transform: scale(0); transition: transform .25s var(--ease); }
.ready-tile .ready-tick .i { stroke-width: 3.2; }
.ready-tile.on .ready-tick { transform: scale(1); }
.ready-tile.metric { gap: 4px; padding: 9px 3px 8px; font-size: 10.5px; }
.ready-tile.metric > .i { font-size: 16px; }
.ready-tile.metric b { font-size: 14px; font-weight: 800; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ready-tile.metric b small { color: var(--dim); font-size: 10px; font-weight: 700; }
.ready-tile.metric .ready-bar { width: 78%; height: 3px; }
@container (min-width: 560px) {
  .hub-tabs button > span, .steam-steps button > span { display: block; }
  .hub-tabs button.on, .steam-steps button.on { flex-grow: 1.3; }
  .hub-tabs button:not(.on) .tab-count { position: static; }
  .ready-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.hub-hint.small { font-size: 12px; }
.updates-head .add-update { margin-top: 22px; }
.add-update { flex: none; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); color: var(--accent); font-size: 18px; }
.add-update:hover { background: color-mix(in srgb, var(--accent) 24%, var(--surface-2)); color: var(--accent); }
.add-update .i { stroke-width: 2.4; }
.steam-texts { display: grid; gap: 8px; margin-top: 4px; }
.steam-text { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 14px; line-height: 1.5; }
.steam-text b { color: var(--dim); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.steam-text ul { margin: 0; padding-left: 18px; color: var(--muted); }
.steam-text .text-link { justify-self: start; min-height: 28px; }

/* Comments: accepted reports and reports the AI works on */
.comment-flag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; vertical-align: 1px; }
.comment-flag .i { font-size: 11px; }
.comment-flag.ok { background: rgba(61, 220, 132, .16); color: #3ddc84; }
.comment-flag.ai { background: rgba(185, 163, 255, .18); color: #b9a3ff; }
.comment .comment-flag + small { margin-left: 6px; }
.digest-card .btn { margin-top: 10px; }

/* ИИ-мир: publish a finished task, the post a folder belongs to */
.turn-publish { max-width: 100%; margin-top: 8px; }
.turn-publish > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Nothing new to publish yet: a plain grey button, readable, that does not invite a tap */
.turn-publish.idle:disabled { opacity: 1; background: var(--surface-2); color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; filter: grayscale(1); }
.turn-publish.idle:disabled .i { opacity: .6; }
.turn-publish-why { display: block; margin-top: 6px; color: var(--dim); font-size: 12px; line-height: 1.4; }
.ws-project { display: inline-flex; align-items: center; gap: 6px; max-width: 40%; min-height: 34px; margin-left: auto; padding: 0 12px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; font-weight: 700; }
.ws-project span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Steam status on feed cards */
.steam-badge { display: flex; align-items: center; gap: 6px; width: max-content; margin: 0 0 10px; padding: 4px 10px 4px 8px; border-radius: 99px; background: rgba(23, 26, 33, .62); color: #c7d5e0; font-size: 12px; font-weight: 750; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.steam-badge .i { font-size: 15px; color: #66c0f4; }
.steam-badge.coming { color: #fff; box-shadow: inset 0 0 0 1px rgba(102, 192, 244, .55); }

/* Sparks and Plus gifts */
.gifts { display: grid; gap: 8px; margin: 14px 0 4px; }
.gift-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-strong); text-align: left; }
.gift-row > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.gift-row b { font-size: 14.5px; }
.gift-row small { color: var(--dim); font-size: 12px; }
.gift-row > .i:last-child { color: var(--dim); }
.gift-row:disabled, .gift-row.muted { opacity: .6; }
.plus-sheet .gift-row { margin-top: 12px; }
.sparks { text-align: left; }
.spark-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; font-size: 32px; box-shadow: var(--grad-glow); }
.sparks h2 { margin-top: 14px; }
.set-title { margin: 20px 0 8px; font-size: 14px; font-weight: 800; }
.spark-rules { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.spark-rules li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.spark-rules b { min-width: 42px; padding: 2px 8px; border-radius: 8px; background: rgba(255, 176, 59, .16); color: #ffb03b; font-size: 12.5px; text-align: center; }
.sparks .gift-row + .gift-row { margin-top: 8px; }
.spark-log { display: grid; gap: 2px; }
.spark-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spark-row span { flex: 1; display: grid; }
.spark-row small { color: var(--dim); font-size: 12px; }
.spark-row b { color: #3ddc84; font-variant-numeric: tabular-nums; }
.spark-row b.minus { color: var(--muted); }
.my-steam { display: grid; gap: 8px; }
.my-steam .set-row > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }

@media (max-width: 760px) {
  .hub-stats { grid-template-columns: repeat(3, 1fr); }
  .ws-project { max-width: 34%; }
}
/* On a phone the project's name gets the room: «В ленту» and the linked post become round icon buttons */
@media (max-width: 520px) {
  .ws-project { flex: none; width: 38px; min-height: 38px; justify-content: center; padding: 0; border-radius: 50%; font-size: 17px; }
  .ws-project span { display: none; }
}

/* Demo reviews: stars and quick marks after playing */
.stars { display: inline-flex; gap: 1px; color: var(--dim); font-size: 13px; vertical-align: -2px; }
.stars .i { stroke-width: 1.6; }
.stars .i.on { color: #ffb03b; fill: currentColor; }
.stars.small { font-size: 11.5px; }
.review-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.review-line > i { padding: 1px 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-style: normal; font-weight: 700; }
.review-line > i.good, .fb-tags i.good { color: #3ddc84; background: rgba(61, 220, 132, .12); }
.review-line > i.bad, .fb-tags i.bad { color: #ff8a7a; background: rgba(255, 107, 125, .12); }
.kind-chip { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-size: 10.5px; font-weight: 800; vertical-align: 1px; }
.kind-chip.bug { background: rgba(255, 107, 125, .16); color: #ff8a7a; }
.kind-chip.idea { background: rgba(159, 202, 255, .16); color: #9fcaff; }
.kind-chip.question { background: rgba(255, 176, 59, .16); color: #ffb03b; }
.kind-chip.praise { background: rgba(61, 220, 132, .14); color: #3ddc84; }
.review-sheet { display: grid; justify-items: center; gap: 10px; text-align: center; }
.review-sheet h2 { margin: 0; font-size: 21px; }
.review-sheet .hub-hint { max-width: 34ch; }
.review-sheet textarea { width: 100%; text-align: left; }
.review-orb { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: var(--grad); color: #fff; font-size: 26px; }
.review-stars { display: flex; gap: 4px; margin-top: 4px; }
.review-stars button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--surface-3); font-size: 36px; transition: transform .18s var(--ease), color .18s; }
.review-stars button .i { stroke: var(--dim); stroke-width: 1.3; fill: currentColor; }
.review-stars button.on { color: #ffb03b; }
.review-stars button.on .i { stroke: #ffb03b; }
.review-stars button:active { transform: scale(.88); }
.review-word { min-height: 18px; color: var(--muted); font-size: 13px; font-weight: 700; }
.review-head { justify-self: stretch; margin: 6px 0 0; color: var(--dim); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.review-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.review-tags button { min-height: 36px; padding: 0 13px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted); font-size: 13.5px; font-weight: 650; transition: background-color .2s, color .2s; }
.review-tags.good button.on { background: rgba(61, 220, 132, .16); border-color: rgba(61, 220, 132, .5); color: #3ddc84; }
.review-tags.bad button.on { background: rgba(255, 107, 125, .14); border-color: rgba(255, 107, 125, .5); color: #ff8a7a; }
.review-skip { min-height: 36px; color: var(--dim); font-size: 13.5px; }
.cta-rating { margin-left: 4px; opacity: .85; font-size: 12.5px; font-weight: 700; }

/* The author's feedback tab: kinds, picks and one task for the AI */
.tab-count { flex: none; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; line-height: 17px; }
.fb-rating { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 16px; background: var(--surface); }
.fb-score { flex: none; display: grid; justify-items: center; gap: 2px; }
.fb-score b { font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.fb-score small { color: var(--dim); font-size: 11px; font-weight: 650; }
.fb-spread { flex: 1; display: grid; gap: 3px; }
.fb-spread > span { display: flex; align-items: center; gap: 6px; }
.fb-spread small { width: 8px; color: var(--dim); font-size: 10.5px; font-weight: 700; }
.fb-spread > span > i { flex: 1; height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.fb-spread > span > i > i { display: block; height: 100%; border-radius: inherit; background: #ffb03b; }
.fb-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0; color: var(--dim); font-size: 12px; font-weight: 650; }
.fb-tags i { padding: 2px 8px; border-radius: 7px; font-style: normal; font-weight: 750; }
.fb-kinds { display: flex; gap: 6px; margin: 0 -8px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.fb-kinds::-webkit-scrollbar { display: none; }
.fb-kinds button { flex: none; min-height: 34px; padding: 0 12px; border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.fb-kinds button b { margin-left: 2px; color: var(--dim); font-variant-numeric: tabular-nums; }
.fb-kinds button.on { background: var(--brand); color: var(--brand-ink); }
.fb-kinds button.on b { color: inherit; opacity: .7; }
.fb-open { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--muted); font-size: 13px; font-weight: 700; }
.fb-open .toggle { width: 36px; height: 22px; }
.fb-open .toggle::after { top: 3px; left: 3px; width: 16px; height: 16px; }
.fb-open.on .toggle { background: var(--brand); }
.fb-open.on .toggle::after { transform: translateX(14px); background: var(--brand-ink); }
.fb-list { display: grid; gap: 6px; }
.fb-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid transparent; text-align: left; transition: border-color .2s, background-color .2s; }
.fb-row.on { border-color: var(--brand); }
.fb-check { flex: none; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center; border-radius: 7px; border: 1.5px solid var(--line-strong); color: transparent; font-size: 13px; font-style: normal; transition: background-color .2s, color .2s; }
.fb-row.on .fb-check { background: var(--brand); border-color: transparent; color: var(--brand-ink); }
.fb-main { flex: 1; display: grid; gap: 3px; min-width: 0; }
.fb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.fb-top b { font-size: 13.5px; }
.fb-top .kind-chip, .fb-top .comment-flag { margin-left: 0; }
.fb-top small { margin-left: auto; color: var(--dim); font-size: 11.5px; }
.fb-text { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 14px; line-height: 1.4; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.fb-marks { color: var(--dim); font-size: 11.5px; font-weight: 650; }
/* The AI's sorting of the comments: the card that runs it, its tags and filters. */
.fb-ai { display: grid; gap: 10px; padding: 12px 14px; border-radius: 16px; background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--violet, #a78bfa) 18%, transparent), transparent 70%), var(--surface); border: 1px solid color-mix(in srgb, var(--violet, #a78bfa) 26%, var(--line)); }
.fb-ai-head { display: flex; align-items: flex-start; gap: 10px; }
.fb-ai-head > .i { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--violet, #a78bfa); }
.fb-ai-head > span { display: grid; gap: 2px; min-width: 0; }
.fb-ai-head b { font-size: 14.5px; }
.fb-ai-head small { color: var(--dim); font-size: 12.5px; line-height: 1.4; }
.fb-ai-head small b { color: var(--text); font-size: inherit; }
.fb-ai-head small.bad { color: var(--danger, #ff6b7d); }
.fb-ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb-ai-row .btn { flex: none; }
.fb-ai-model { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 6px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; }
.fb-ai-model > .i:first-child { flex: none; width: 18px; height: 18px; color: var(--violet, #a78bfa); }
.fb-ai-model > span { flex: 1; display: grid; min-width: 0; }
.fb-ai-model b { overflow: hidden; font-size: 13.5px; white-space: nowrap; text-overflow: ellipsis; }
.fb-ai-model small { color: var(--dim); font-size: 11.5px; }
.fb-ai-model > .i:last-child { flex: none; width: 16px; height: 16px; color: var(--dim); }
.fb-ai-model.none > .i:first-child { color: var(--dim); }
.fb-ai > .text-link { justify-self: start; font-size: 12.5px; }
.fb-ai-bar { display: block; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.fb-ai-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet, #a78bfa), var(--brand)); transition: width .4s var(--ease); }
.fb-kinds.ai .dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--tag); vertical-align: 1px; }
.fb-kinds.ai button.on .dot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-ink) 40%, transparent); }
.fb-kinds.ai button.noise:not(.on), .fb-kinds.ai button.new:not(.on) { background: transparent; border: 1px dashed var(--line-strong); }
.fb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fb-tools .fb-sort { flex: 0 1 300px; }
.fb-ai-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ai-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 5px; border-radius: 7px; background: color-mix(in srgb, var(--tag, #9aa) 16%, transparent); color: color-mix(in srgb, var(--tag, #9aa) 75%, var(--text)); font-size: 11.5px; font-weight: 750; }
.ai-tag .i { width: 13px; height: 13px; color: var(--tag, currentColor); }
.ai-tag.noise { --tag: #8a8f98; }
.ai-tag.fresh { padding: 1px 7px; border: 1px dashed var(--line-strong); background: transparent; color: var(--dim); }
.ai-prio { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.ai-prio.high { background: rgba(255, 107, 125, .18); color: #ff8a96; }
.ai-prio.low { background: var(--surface-3); color: var(--dim); }
.fb-gist { color: var(--text); font-size: 13.5px; font-weight: 650; line-height: 1.35; }
.fb-gist + .fb-text { color: var(--muted); font-size: 13px; -webkit-line-clamp: 2; }
.fb-row.noise { opacity: .62; }
.fb-batch { margin-top: 4px; }
.triage-models .tm-row { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.triage-models .tm-row.off { opacity: .62; }
.tm-title { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tm-title .i { width: 17px; height: 17px; color: var(--violet, #a78bfa); }
.tm-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.tm-model { display: grid; gap: 2px; padding: 9px 11px; border-radius: 12px; background: var(--surface); border: 1.5px solid transparent; text-align: left; }
.tm-model b { font-size: 13.5px; overflow-wrap: anywhere; }
.tm-model small { color: var(--dim); font-size: 11.5px; }
.tm-model.on { border-color: var(--brand); }
.tm-why { color: var(--dim); font-size: 12.5px; line-height: 1.4; }
.tm-keys { justify-self: start; font-size: 13px; }
.fb-bar { position: sticky; bottom: calc(8px + var(--safe-b, 0px)); z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 6px 22px rgba(0, 0, 0, .28); }
.fb-bar > span { flex: 1; min-width: 0; color: var(--dim); font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-bar .text-link { flex: none; font-size: 13px; }
.fb-bar .icon-btn { width: 36px; height: 36px; font-size: 17px; }
.demo-draft > span { flex: 1; min-width: 0; }
.demo-draft small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.demo-draft .icon-btn { width: 32px; height: 32px; margin-right: -6px; font-size: 16px; }

/* Comment labels, «Помог» and the help title */
.kind-chip.solution { background: rgba(185, 163, 255, .18); color: #b9a3ff; }
.kind-chip.review { background: rgba(61, 220, 132, .14); color: #3ddc84; }
.kind-chip.auto { background: transparent; box-shadow: inset 0 0 0 1px currentColor; opacity: .75; }
.help-title { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 176, 59, .14); color: #ffb03b; font-size: 10.5px; font-style: normal; font-weight: 800; vertical-align: 1px; }
.helped-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 6px; color: #3ddc84; font-size: 12px; }
.helped-line .i { flex: none; width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: #3ddc84; color: #06240f; stroke-width: 2.6; }
.helped-line b { font-weight: 800; }
.helped-line small { color: var(--dim); font-size: 12px; }
.comment-actions { align-items: center; }
.comment-more { display: inline-grid; place-items: center; width: 28px; height: 22px; margin-left: -6px; border-radius: 8px; font-size: 16px; }
@media (hover: none) {
  .comment { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}
.comment { transition: background-color .2s, transform .2s var(--ease); border-radius: 14px; }
.comment.held { background: var(--surface-2); transform: scale(.985); }

/* The comment menu */
dialog.cmenu-host { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; color: var(--text); }
dialog.cmenu-host::backdrop { background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cmenu { position: absolute; outline: none; width: min(300px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); animation: cmenu-in .2s var(--ease); }
@keyframes cmenu-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.cmenu-preview { display: grid; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); }
.cmenu-preview b { font-size: 13px; }
.cmenu-preview p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.cmenu-labels { display: grid; gap: 6px; padding: 10px 10px 8px; border-bottom: 1px solid var(--line); }
.cmenu-labels small { color: var(--dim); font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cmenu-labels > div { display: flex; flex-wrap: wrap; gap: 6px; }
.cmenu-labels .kind-chip { margin: 0; padding: 6px 11px; border-radius: 99px; font-size: 13px; opacity: .8; }
.cmenu-labels .kind-chip.on { opacity: 1; box-shadow: inset 0 0 0 1.5px currentColor; }
.cmenu-list { display: grid; padding-top: 4px; }
.cmenu-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 10px; border-radius: 11px; color: var(--text); font-size: 15px; font-weight: 600; text-align: left; }
.cmenu-list button:hover, .cmenu-list button:active { background: var(--surface-2); }
.cmenu-list button > .i { flex: none; color: var(--muted); font-size: 19px; }
.cmenu-list button > span { flex: 1; display: grid; min-width: 0; }
.cmenu-list button small { color: var(--dim); font-size: 11.5px; font-weight: 600; }
.cmenu-list .danger, .cmenu-list .danger > .i { color: #ff6b7d; }
.cmenu-list .cmenu-plus > .i { color: #b9a3ff; }
.cmenu-list .plus-chip { flex: none; height: 22px; padding: 0 8px; font-size: 11px; font-style: normal; }
.prompt-pitch { margin: 4px 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.prompt-quote { display: grid; gap: 2px; margin-bottom: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border-left: 3px solid #b9a3ff; }
.prompt-quote b { font-size: 12.5px; }
.prompt-quote p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.prompt-state { display: flex; align-items: center; gap: 10px; min-height: 120px; justify-content: center; color: var(--muted); font-size: 14px; }
.prompt-source { display: block; margin: 6px 2px 10px; color: var(--dim); font-size: 12px; line-height: 1.4; }

/* The hub: who helped */
.hub-group { display: grid; gap: 8px; }
.hub-group h4 { margin: 4px 4px 0; color: var(--dim); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hub-group > .text-link { justify-self: start; margin-left: 4px; font-size: 13px; }
.helpers { display: grid; gap: 4px; }
.helper-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--surface); text-align: left; }
.helper-row .avatar { flex: none; width: 34px; height: 34px; font-size: 12px; }
.helper-row > span { flex: 1; display: grid; gap: 1px; min-width: 0; }
.helper-row b { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.helper-row small { overflow: hidden; color: var(--dim); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.helper-row em { flex: none; color: #3ddc84; font-size: 14px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.fb-row { align-items: center; }
.fb-row > .i { flex: none; color: var(--dim); font-size: 18px; }

/* Profile: help next to the rating */
.help-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 99px; background: rgba(61, 220, 132, .12); border: 1px solid rgba(61, 220, 132, .35); color: #3ddc84; font-size: 13px; font-weight: 700; }
.help-chip .i { font-size: 14px; stroke-width: 2.4; }
.help-card { display: grid; gap: 8px; width: 100%; margin: 16px auto 0; max-width: 440px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; }
.help-head { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.help-head > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.help-head b { font-size: 16px; }
.help-head small { color: var(--dim); font-size: 12.5px; }
.help-head > .i:last-child { color: var(--dim); }
.help-badge { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: rgba(61, 220, 132, .14); color: #3ddc84; font-size: 20px; }
.help-badge .i { stroke-width: 2.4; }
.help-badge.lv4, .help-badge.lv5 { background: rgba(255, 176, 59, .16); color: #ffb03b; }
.help-badge.lv6, .help-badge.lv7 { background: var(--grad); color: #fff; }
.help-bar { display: block; height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.help-bar i { display: block; height: 100%; border-radius: inherit; background: #3ddc84; }
.help-next { color: var(--dim); font-size: 12px; }
.help-kinds { display: flex; flex-wrap: wrap; gap: 5px; }
.help-kinds .kind-chip { margin: 0; padding: 2px 8px; font-size: 12px; font-style: normal; }
.help-facts { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.help-ladder { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.help-ladder span { display: grid; padding: 6px 10px; border-radius: 12px; background: var(--surface-2); }
.help-ladder span.on { background: rgba(61, 220, 132, .14); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .5); }
.help-ladder b { font-size: 13px; }
.help-ladder small { color: var(--dim); font-size: 11px; }
/* Three buttons and «···» share one row on a phone: icons only where there is room */
@media (max-width: 420px) {
  .profile-actions .btn:not(.btn-square) { gap: 6px; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; }
  .profile-actions .btn:not(.btn-square):not(.btn-primary) .i { display: none; }
}

/* Comments: a clear «Ещё» and quiet type tags */
.comment-more { display: inline-flex; align-items: center; gap: 3px; width: auto; height: 26px; margin-left: 2px; padding: 0 10px 0 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted) !important; font-size: 12.5px; font-weight: 700; transition: background-color .15s, color .15s; }
.comment-more .i { font-size: 17px; stroke-width: 2.6; }
.comment-more:hover { background: var(--surface-3); color: var(--text) !important; }
.ctag { display: inline-flex; align-items: center; gap: 3px; margin-left: 7px; color: var(--muted); font-size: 11.5px; font-weight: 750; vertical-align: 0; }
.ctag .i { font-size: 13px; stroke-width: 2.2; }
.ctag.kind-bug { color: #ff8a7a; }
.ctag.kind-idea { color: #ffc75a; }
.ctag.kind-review { color: #3ddc84; }
.ctag.kind-question { color: #9fcaff; }
.ctag.kind-solution { color: #b9a3ff; }
.ctag.guess { opacity: .6; font-weight: 650; }
.ctag.guess::after { content: "?"; margin-left: 1px; }
.ctag.none { color: var(--dim); margin-left: 0; }

/* The comment menu, second take: quick actions on top, the type on its own panel */
.cmenu { width: min(320px, calc(100vw - 24px)); padding: 8px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
.cmenu-preview { margin: 0 0 8px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--surface-2); }
.cmenu-quick { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; margin-bottom: 8px; }
.cmenu-quick button { display: grid; justify-items: center; gap: 5px; padding: 10px 4px 8px; border-radius: 14px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; transition: background-color .15s, transform .15s var(--ease); }
.cmenu-quick button .i { font-size: 20px; color: var(--muted); }
.cmenu-quick button:active { transform: scale(.95); }
.cmenu-quick button:hover { background: var(--surface-3); }
.cmenu-quick button.on .i { color: #ff5d7a; fill: currentColor; }
.cmenu-quick button[data-action="comment-accept"].on .i { color: #3ddc84; fill: none; }
.cmenu-group { display: grid; margin-top: 6px; padding: 4px; border-radius: 16px; background: var(--surface-2); }
.cmenu-group button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 6px 10px; border-radius: 12px; color: var(--text); font-size: 14.5px; font-weight: 600; text-align: left; }
.cmenu-group button:hover, .cmenu-group button:active { background: var(--surface-3); }
.cmenu-group button > .i { flex: none; color: var(--muted); font-size: 18px; }
.cmenu-group button > span:not(.ctag) { flex: 1; display: grid; min-width: 0; }
.cmenu-group button small { color: var(--dim); font-size: 11.5px; font-weight: 600; }
.cmenu-group .danger, .cmenu-group .danger > .i { color: #ff6b7d; }
.cmenu-group .cmenu-plus > .i { color: #b9a3ff; }
.cmenu-group .plus-chip { flex: none; height: 22px; padding: 0 8px; font-size: 11px; font-style: normal; }
.cmenu-head { padding: 6px 10px 2px; color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cmenu-type .ctag { flex: none; margin: 0; padding: 4px 9px; border-radius: 99px; background: color-mix(in srgb, currentColor 14%, transparent); font-size: 12.5px; }
.cmenu-type > span:nth-child(2) { color: var(--muted); font-size: 13.5px; }
.cmenu-type > .i:last-child { color: var(--dim) !important; }
.cmenu.sub { animation: cmenu-slide .22s var(--ease); }
@keyframes cmenu-slide { from { opacity: .4; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.cmenu-panel { display: grid; gap: 4px; }
.cmenu-bar { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; text-align: center; }
.cmenu-bar .icon-btn { width: 36px; height: 36px; }
.cmenu-bar b { font-size: 15px; }
.cmenu-note { margin: 0 6px 6px; color: var(--dim); font-size: 12.5px; line-height: 1.4; text-align: center; }
.cmenu-kind { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 14px; text-align: left; }
.cmenu-kind:hover, .cmenu-kind.on { background: var(--surface-2); }
.cmenu-kind > span { flex: 1; display: grid; min-width: 0; }
.cmenu-kind b { font-size: 14.5px; }
.cmenu-kind small { color: var(--dim); font-size: 12px; }
.cmenu-kind > .i { flex: none; color: var(--brand); font-size: 18px; }
.kind-dot { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, currentColor 16%, transparent); font-size: 18px; font-style: normal; }
.cmenu-kind.bug .kind-dot { color: #ff8a7a; }
.cmenu-kind.idea .kind-dot { color: #ffc75a; }
.cmenu-kind.review .kind-dot { color: #3ddc84; }
.cmenu-kind.question .kind-dot { color: #9fcaff; }
.cmenu-kind.solution .kind-dot { color: #b9a3ff; }
.cmenu-clear { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; margin-top: 2px; border-radius: 12px; color: var(--dim); font-size: 13.5px; font-weight: 650; }
.cmenu-clear:hover { background: var(--surface-2); color: var(--text); }
/* With a mouse it is a context menu: compact, from the cursor */
.cmenu.desk { width: 268px; padding: 6px; border-radius: 16px; }
.cmenu.desk .cmenu-preview { display: none; }
.cmenu.desk .cmenu-quick { gap: 4px; margin-bottom: 4px; }
.cmenu.desk .cmenu-quick button { padding: 8px 2px 6px; border-radius: 10px; font-size: 11.5px; }
.cmenu.desk .cmenu-quick button .i { font-size: 17px; }
.cmenu.desk .cmenu-group { margin-top: 4px; padding: 2px; border-radius: 12px; }
.cmenu.desk .cmenu-group button { min-height: 34px; padding: 4px 8px; border-radius: 9px; font-size: 13.5px; }
.cmenu.desk .cmenu-group button > .i { font-size: 16px; }
.cmenu.desk .cmenu-kind { padding: 6px 8px; border-radius: 10px; }
.cmenu.desk .kind-dot { width: 28px; height: 28px; border-radius: 9px; font-size: 15px; }
dialog.cmenu-host:has(.cmenu.desk)::backdrop { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Profile: stats that open lists */
.stats .stat-btn { display: grid; color: var(--dim); font-size: 13px; text-align: center; border-radius: 12px; transition: background-color .15s; }
.stats .stat-btn:hover { background: var(--surface-2); }
@media (max-width: 420px) { .stats { gap: 18px; } }
.people-sheet .seg { margin: 6px 0 4px; }
.people-list { min-height: 120px; }
.people-list .person-row .author-link { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; text-align: left; }
.people-list .person-row .author-link > span:last-child { display: grid; min-width: 0; }
.people-list .person-row small { color: var(--dim); font-size: 12.5px; }

/* Help sheet */
.help-hero { display: grid; justify-items: center; gap: 4px; padding: 18px 16px 16px; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, rgba(61, 220, 132, .18), transparent 70%), var(--surface-2); text-align: center; }
.help-hero.lv4, .help-hero.lv5 { background: radial-gradient(120% 90% at 50% 0%, rgba(255, 176, 59, .2), transparent 70%), var(--surface-2); }
.help-hero.lv6, .help-hero.lv7 { background: radial-gradient(120% 90% at 50% 0%, rgba(255, 46, 99, .22), transparent 70%), var(--surface-2); }
.help-hero .help-badge { width: 54px; height: 54px; border-radius: 18px; font-size: 26px; margin-bottom: 4px; }
.help-hero > b { font-size: 22px; }
.help-hero > small { color: var(--dim); font-size: 13px; }
.help-score { margin-top: 4px; color: var(--muted); font-size: 14px; }
.help-score b { color: var(--text); font-size: 18px; }
.help-hero .help-bar { width: 100%; max-width: 260px; margin-top: 6px; }
.help-sheet .help-kinds { justify-content: center; align-items: center; gap: 4px 12px; margin-top: 12px; }
.help-sheet .help-kinds .ctag { margin: 0; font-size: 13px; }
.kind-count { margin-left: -8px; color: var(--muted); font-size: 13px; }
.help-sheet .help-facts { margin-top: 10px; text-align: center; }
.sheet-h { margin: 20px 0 6px; font-size: 16px; }
.help-points { display: grid; gap: 2px; margin: 10px 0 14px; padding: 0; list-style: none; }
.help-points li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.help-points b { color: #3ddc84; font-variant-numeric: tabular-nums; }

/* Plus offer: a small landing page with a free day */
dialog.layer[data-kind="paywall"] { padding: 0; overflow: hidden auto; }
@media (min-width: 761px) { dialog.layer[data-kind="paywall"] { width: min(440px, calc(100% - 24px)); } }
.paywall { position: relative; display: grid; gap: 14px; padding: 0 18px 18px; }
.pw-close { position: absolute; z-index: 3; top: 10px; right: 10px; background: rgba(0, 0, 0, .28); color: #fff; }
.pw-hero { position: relative; display: grid; justify-items: center; gap: 6px; margin: 0 -18px; padding: 34px 22px 26px; overflow: hidden; text-align: center; background: linear-gradient(160deg, #2a1546, #11131a 70%); isolation: isolate; }
.pw-orb { position: absolute; z-index: -1; width: 220px; height: 220px; border-radius: 50%; filter: blur(46px); opacity: .7; animation: pw-float 9s ease-in-out infinite alternate; }
.pw-orb.a { top: -90px; left: -60px; background: #ff2e63; }
.pw-orb.b { top: -40px; right: -80px; background: #8b5cf6; animation-delay: -3s; }
.pw-orb.c { bottom: -120px; left: 30%; background: #ffb03b; opacity: .45; animation-delay: -6s; }
@keyframes pw-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, 20px) scale(1.15); } }
.pw-crown { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 22px; background: var(--pearl); background-size: 200% 100%; color: #2a1d3d; font-size: 32px; box-shadow: 0 10px 40px rgba(255, 46, 99, .45); animation: pw-pop .6s var(--ease) both, pearl-shift 6s linear infinite; }
@keyframes pw-pop { from { transform: scale(.6) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.pw-kicker { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pw-hero h2 { margin: 0; color: #fff; font-size: 23px; line-height: 1.15; letter-spacing: -.02em; }
.pw-hero p { max-width: 32ch; margin: 0; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.45; }
.pw-perks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pw-perks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; opacity: 0; animation: pw-rise .4s var(--ease) forwards; animation-delay: calc(.12s + var(--i) * .07s); }
.pw-perks li .i { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--surface-2); color: #ffb03b; }
@keyframes pw-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pw-offer { display: grid; gap: 10px; }
.pw-trial { position: relative; overflow: hidden; min-height: 52px; font-size: 16px; }
.pw-trial::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); animation: pw-shine 2.6s ease-in-out infinite 1s; }
@keyframes pw-shine { to { transform: translateX(100%); } }
.pw-fine { margin: -4px 0 2px; color: var(--dim); font-size: 12px; line-height: 1.4; text-align: center; }
.pw-buy { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-strong); text-align: left; }
.pw-buy > span { flex: 1; display: grid; gap: 2px; }
.pw-buy b { font-size: 15px; }
.pw-buy small { color: var(--dim); font-size: 12.5px; }
.pw-buy s { margin-right: 4px; }
.pw-buy em { flex: none; padding: 4px 9px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 13px; font-style: normal; font-weight: 850; }
.pw-buy.main { background: var(--grad); border-color: transparent; color: #fff; }
.pw-buy.main small { color: rgba(255, 255, 255, .8); }
.pw-buy.main em { background: rgba(255, 255, 255, .22); }
@media (prefers-reduced-motion: reduce) { .pw-orb, .pw-crown, .pw-trial::after { animation: none; } .pw-perks li { animation: none; opacity: 1; } }

/* Authors in «Обзор»: the follow button fits its card; on a computer the cards fill a grid */
.creator { min-width: 0; }
.creator-link { width: 100%; min-width: 0; }
.creator b { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.creator-sub { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.creator .follow-pill { width: 100%; min-width: 0; min-height: 32px; padding: 0 8px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.creator .follow-pill .i { flex: none; font-size: 13px; }
@media (min-width: 761px) {
  .creators { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; overflow: visible; padding-bottom: 0; }
  .creator { width: auto; gap: 10px; padding: 18px 14px 14px; border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
  .creator:hover { border-color: var(--line-strong); transform: translateY(-2px); }
  .creator-link .avatar { width: 72px; height: 72px; font-size: 20px; }
  .creator b { font-size: 14px; }
  .creator .follow-pill { min-height: 34px; font-size: 13px; }
}

/* Plus: the mark next to a name */
.plus-badge { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 4px; border-radius: 6px; background: var(--pearl); background-size: 200% 100%; color: #2a1d3d; font-size: 11px; font-style: normal; vertical-align: -3px; animation: pearl-shift 6s linear infinite; box-shadow: 0 0 10px rgba(255, 154, 176, .35); }
.plus-badge .i { stroke-width: 2.4; }
.plus-badge.big { width: 26px; height: 26px; margin-left: 8px; border-radius: 9px; font-size: 16px; vertical-align: 1px; }
.lock-crown { position: absolute; top: 1px; right: 1px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 5px; background: var(--pearl); background-size: 200% 100%; color: #2a1d3d; font-size: 10px; font-style: normal; }
.cbtn.locked, .look-btn { position: relative; }
.cbtn.locked > .i:first-child { opacity: .55; }
.face-btn { flex: none; align-self: flex-start; padding: 0; border-radius: 50%; }

.profile-head.has-look { position: relative; }
.profile-head > :not(.profile-banner) { position: relative; z-index: 1; }
.profile-banner { position: absolute; z-index: 0; top: -12px; left: 50%; width: min(100vw, 760px); height: 150px; overflow: hidden; border-radius: 0 0 28px 28px; transform: translateX(-50%); -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.profile-banner img, .pcard-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-head.has-look[style*="--look"] .lvl-profile { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--look) 70%, transparent)); }
.avatar.motion video { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* The profile card */
.card-host .pcard-wrap { position: absolute; width: min(340px, calc(100vw - 24px)); }
.card-host .pcard-wrap.dock { top: auto; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; width: auto; max-width: 440px; margin: 0 auto; animation: cmenu-up .28s var(--ease); }
.card-host .pcard-wrap.desk { animation: cmenu-in .2s var(--ease); }
dialog.card-host:has(.pcard-wrap.desk)::backdrop { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pcard { overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--look, var(--line-strong)) 55%, var(--line-strong)); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); text-align: left; }
.pcard-banner { position: relative; height: 96px; overflow: hidden; }
.pcard-body { position: relative; display: grid; justify-items: start; gap: 3px; margin-top: -40px; padding: 0 18px 18px; }
.pcard-face { padding: 4px; border-radius: 50%; background: var(--surface); }
.avatar.pcard-ava { width: 76px; height: 76px; font-size: 24px; }
.card-host .pcard-wrap { outline: none; }
.pcard-name { display: flex; align-items: center; margin-top: 6px; font-size: 19px; }
.pcard-handle { color: var(--dim); font-size: 13px; }
.pcard-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pcard-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; }
.pcard-chip.help { color: #3ddc84; background: rgba(61, 220, 132, .12); }
.pcard-chip .i { font-size: 12px; stroke-width: 2.4; }
.pcard-bio { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pcard-stats { display: flex; gap: 18px; width: 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pcard-stats span { display: grid; color: var(--dim); font-size: 12px; }
.pcard-stats b { color: var(--text); font-size: 16px; }
.pcard-actions { display: flex; gap: 8px; width: 100%; margin-top: 12px; }
.pcard-actions .follow-pill { flex: 1; }
.pcard-actions .btn { min-height: 34px; }
.pcard-actions [data-action="profile"] { margin-left: auto; }


/* The comment menu on a phone: always at the bottom */
.cmenu.dock { top: auto; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; width: auto; max-width: 440px; max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: 0 auto; transform-origin: 50% 100%; animation: cmenu-up .26s var(--ease); }
.cmenu.dock.sub { animation: cmenu-slide .22s var(--ease); }
@keyframes cmenu-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Playtests: a task for players, the tester's report and the author's list of testers */
.playtest-card { display: grid; gap: 10px; margin-bottom: var(--stack, 18px); padding: 16px; border-radius: 22px; background: linear-gradient(160deg, rgba(103, 232, 249, .10), rgba(185, 163, 255, .08) 60%, transparent), var(--surface); box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .22); }
.pt-head { display: flex; align-items: center; gap: 12px; }
.pt-head > span:nth-child(2) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pt-head small { color: #67e8f9; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.pt-head b { font-size: 16px; line-height: 1.3; }
.pt-mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 13px; background: rgba(103, 232, 249, .16); color: #67e8f9; font-size: 20px; }
.pt-reward { display: inline-flex; align-items: center; gap: 3px; flex: none; padding: 4px 9px; border-radius: 99px; background: rgba(255, 176, 59, .16); color: #ffb03b; font-size: 13px; font-style: normal; font-weight: 800; }
.pt-reward .i { font-size: 13px; }
.pt-steps { display: grid; gap: 4px; margin: 0; padding-left: 22px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.pt-steps li.more { list-style: none; margin-left: -22px; color: var(--dim); font-size: 13px; }
.pt-meta { color: var(--dim); font-size: 12.5px; }
.pt-note { color: var(--dim); font-size: 12.5px; line-height: 1.45; }
.test-chip { display: flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 0 10px; padding: 5px 6px 5px 9px; border-radius: 99px; background: rgba(12, 30, 36, .6); color: #c9f6fd; font-size: 12px; font-weight: 750; box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.test-chip > .i { color: #67e8f9; font-size: 15px; }
.test-chip b { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 176, 59, .22); color: #ffd48a; font-size: 11.5px; }
.test-chip b .i { font-size: 11px; }

.playtest-sheet, .playtest-editor { max-height: min(88dvh, 860px); overflow: hidden; grid-template-rows: auto 1fr; }
.pt-scroll { display: grid; gap: 16px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 6px; }
.pt-title { font-size: 20px; line-height: 1.25; }
.pt-sub { margin-top: -12px; color: var(--dim); font-size: 13px; }
.pt-env, .pt-report { display: grid; gap: 10px; }
.pt-env h4, .pt-report h4, .pt-group { color: var(--dim); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pt-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-facts span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; font-weight: 650; }
.pt-notes { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; line-height: 1.45; white-space: pre-line; }
.pt-folder { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(185, 163, 255, .12); color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(185, 163, 255, .28); }
.pt-folder > .i:first-child { color: #b9a3ff; font-size: 20px; }
.pt-folder > span { flex: 1; display: grid; gap: 1px; min-width: 0; }
.pt-folder small { color: var(--dim); font-size: 12px; }
.pt-prompt { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.pt-prompt > b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pt-prompt > b .i { color: #b9a3ff; }
.pt-prompt pre { max-height: 160px; margin: 0; overflow: auto; color: var(--muted); font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.pt-prompt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-step { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.pt-step-text { display: flex; gap: 10px; font-size: 14px; font-weight: 650; line-height: 1.4; }
.pt-step-text i { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--surface); color: var(--dim); font-size: 12px; font-style: normal; font-weight: 800; }
.pt-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pt-verdict button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-radius: 11px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 750; transition: background .15s, color .15s; }
.pt-verdict button.ok.on { background: rgba(61, 220, 132, .18); color: #3ddc84; box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .5); }
.pt-verdict button.bad.on { background: rgba(255, 77, 109, .16); color: #ff6b85; box-shadow: inset 0 0 0 1px rgba(255, 77, 109, .5); }
.pt-step .field { min-height: 40px; font-size: 14px; }
.pt-shots { display: grid; gap: 8px; }
.pt-shot-add { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 13.5px; font-weight: 650; cursor: pointer; }
.pt-shot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-shot-list:empty { display: none; }
.pt-shot { position: relative; width: 72px; height: 72px; overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.pt-shot img { width: 100%; height: 100%; object-fit: cover; }
.pt-shot.loading img { opacity: .45; }
.pt-shot .icon-btn { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; min-height: 0; border-radius: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; }
.pt-leave { justify-self: center; color: var(--dim); font-size: 13px; }
.pt-form { display: grid; gap: 12px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pt-label { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.pt-pair { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; }
.pt-group { margin-top: 4px; }
.pt-access { display: grid; gap: 6px; }
.pt-access-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.pt-access-item input { flex: none; width: 18px; height: 18px; accent-color: #b9a3ff; }
.pt-access-item span { display: grid; gap: 1px; }
.pt-access-item b { font-size: 14px; }
.pt-access-item small { color: var(--dim); font-size: 12px; }
.pt-access-item:has(input:checked) { box-shadow: inset 0 0 0 1px rgba(185, 163, 255, .55); }
.pt-slots { grid-template-columns: 1fr 96px; align-items: center; }
.pt-hubhead { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); }
.pt-hubhead > span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pt-hubhead b { font-size: 15px; }
.pt-hubhead small { color: var(--dim); font-size: 12px; line-height: 1.4; }
.pt-tally, .helper-row > span.pt-tally { display: inline-flex; flex: none; gap: 4px; }
.pt-tally i { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border-radius: 99px; font-size: 12px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-tally i.ok { background: rgba(61, 220, 132, .14); color: #3ddc84; }
.pt-tally i.bad { background: rgba(255, 77, 109, .14); color: #ff6b85; }
.pt-tally i.acc { background: rgba(255, 176, 59, .16); color: #ffb03b; }
.pt-wait { flex: none; color: var(--dim); font-size: 12px; }
.test-report { display: grid; gap: 6px; margin-top: 4px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.test-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 750; }
.test-head > .i { flex: none; color: #67e8f9; }
.test-head > span { flex: 1 1 120px; min-width: 0; }
.test-head b { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 99px; font-size: 12px; }
.test-head b.ok { background: rgba(61, 220, 132, .14); color: #3ddc84; }
.test-head b.bad { background: rgba(255, 77, 109, .14); color: #ff6b85; }
.test-report ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.test-report li { display: flex; gap: 6px; font-size: 13.5px; line-height: 1.4; }
.test-report li > .i { flex: none; margin-top: 2px; }
.test-report li.ok > .i { color: #3ddc84; }
.test-report li.bad > .i { color: #ff6b85; }
.test-report li.skip { color: var(--dim); }
.test-report li span { display: grid; }
.test-report li small { color: var(--muted); font-size: 12.5px; }
.test-report p { margin: 2px 0 0; font-size: 14px; }
.test-where { display: inline-flex; align-items: center; gap: 4px; color: var(--dim); font-size: 12px; }
.test-shots { display: flex; flex-wrap: wrap; gap: 6px; }
.test-shots .bubble-image { width: 72px; height: 72px; overflow: hidden; border-radius: 10px; }
.test-shots img { width: 100%; height: 100%; object-fit: cover; }
.playtests-row { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: var(--stack, 18px); padding: 12px 14px; border-radius: 18px; background: linear-gradient(160deg, rgba(103, 232, 249, .10), transparent 70%), var(--surface); text-align: left; box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .2); }
.playtests-row > span:nth-child(2) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.playtests-row small { color: var(--dim); font-size: 12.5px; }
.playtests-row .row-mark { color: #67e8f9; }
.spark-rules li span { display: grid; gap: 1px; }
.spark-rules li small { color: var(--dim); font-size: 12px; }
.sparks .spark-rules + .gift-row { margin-top: 12px; }


/* The author's own reward for testers, and Plus side by side */
.pt-bounty { display: grid; grid-template-columns: repeat(4, 1fr); }
.pt-bounty label { position: relative; display: grid; place-items: center; min-height: 38px; border-radius: 12px; color: var(--muted); font-size: 13.5px; font-weight: 750; cursor: pointer; }
.pt-bounty input { position: absolute; opacity: 0; pointer-events: none; }
.pt-bounty label:has(input:checked) { background: rgba(255, 176, 59, .16); color: #ffb03b; box-shadow: inset 0 0 0 1px rgba(255, 176, 59, .45); }
.pt-bounty label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.plus-more { margin-top: 12px; border-radius: 16px; background: var(--surface-2); }
.plus-more summary { padding: 12px 14px; color: var(--muted); font-size: 13.5px; font-weight: 750; cursor: pointer; list-style: none; }
.plus-more summary::-webkit-details-marker { display: none; }
.plus-more summary::after { content: "›"; float: right; transition: transform .2s; }
.plus-more[open] summary::after { transform: rotate(90deg); }
.plus-compare { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.plus-compare th, .plus-compare td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.plus-compare th { color: var(--dim); font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.plus-compare th .i { color: #ffb03b; vertical-align: -2px; }
.plus-compare td:first-child { color: var(--text); font-weight: 650; }
.plus-compare td:nth-child(2) { color: var(--dim); }
.plus-compare td:last-child { color: #ffd48a; font-weight: 700; }
.pw-compare { margin: 0 18px 10px; }

/* The ad label: the only mark a post can carry in the feed */
.boost-label { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; margin-bottom: 10px; padding: 5px 6px 5px 9px; border-radius: 99px; background: rgba(12, 12, 16, .5); border: 1px solid rgba(220, 203, 255, .45); color: #fff; font-size: 12px; line-height: 1; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.boost-label > .i { font-size: 13px; color: #e6dcff; }
.boost-label b { font-weight: 800; letter-spacing: .02em; }
.boost-label span { overflow: hidden; color: rgba(255, 255, 255, .7); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.boost-label i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; font-family: Georgia, serif; }
.boost-info-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 18px; background: var(--pearl); background-size: 200% 100%; color: #2a1d3d; font-size: 26px; }
.boost-info .set-row { margin-top: 14px; }
.boost-info .gift-row { margin-top: 10px; }

/* Layout fixes: the media picker, sheet tops, FAQ on narrow screens */
.pick-cover + .pick-strip { margin-top: 10px; }
.pick-cover:has(.tile-state.error) :is(em, .pick-focus) { display: none; }
.faq .more summary { display: flex; justify-content: space-between; gap: 12px; }
.faq .more summary::after { flex: none; }
.modal-close { z-index: 7; }
@media (max-width: 760px) {
  .grabber::after { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 60px; background: linear-gradient(var(--surface) 40%, transparent); opacity: 0; pointer-events: none; transition: opacity .2s; }
  dialog.scrolled .grabber::after { opacity: 1; }
}

/* The author's console (profile → Пульт) */
.desk { display: grid; gap: 12px; padding-top: 4px; }
.desk-sum { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface-2); }
.desk-sum > .i { flex: none; font-size: 20px; color: var(--amber); }
.desk-sum span { display: grid; gap: 2px; }
.desk-sum small { color: var(--dim); font-size: 12.5px; }
.desk-card { display: grid; gap: 8px; padding: 12px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface); }
.desk-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px; }
.desk-head span { flex: 1; display: grid; min-width: 0; }
.desk-head b { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.desk-head small { color: var(--dim); font-size: 12.5px; }
.desk-head > .i { color: var(--dim); }
.desk-parts { display: grid; gap: 6px; }
.desk-part { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); text-align: left; }
.desk-part > span:last-child { display: grid; min-width: 0; }
.desk-part b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.desk-part small { overflow: hidden; color: var(--dim); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.desk-part.hot { box-shadow: inset 0 0 0 1px rgba(255, 176, 59, .55); }
.desk-part.hot small { color: var(--amber); }
.desk-part.muted { opacity: .75; }
.desk-ico { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 95, 61, .14); color: #ff7a52; font-size: 19px; }
.desk-ico.ai { background: rgba(185, 163, 255, .16); color: #b9a3ff; }
.desk-part .ready-ring.small { background: radial-gradient(closest-side, var(--surface-2) 76%, transparent 77% 100%), conic-gradient(#9fcaff calc(var(--p) * 1%), var(--surface-3) 0); }
.desk-notes { display: grid; gap: 4px; }
.desk-note { display: flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--amber); font-size: 13px; font-weight: 650; text-align: left; }
.desk-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.desk-title .text-link { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; }
@media (min-width: 760px) { .desk-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Plus: profile themes (src/looks.js). Each is drawn on the banner by CSS: `.lt-<id>` with its ::before and
   ::after. Sizes use --u, 1px on the 150px profile banner, so the same theme fits the card and a swatch. */
.profile-banner { --u: 1px; }
.pcard-banner { --u: .64px; }
.look-swatch { --u: .43px; }
.lt { isolation: isolate; overflow: hidden; }
.lt::before, .lt::after { content: ""; position: absolute; pointer-events: none; }
.lt-plain { background: linear-gradient(135deg, color-mix(in srgb, var(--look, #5d6a78) 75%, #000), color-mix(in srgb, var(--look, #5d6a78) 25%, #000)); }
.lt-image { background: #111; }

.lt-aurora { background: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 46% 10%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 78% 22%, #dff 50%, transparent 51%), radial-gradient(1px 1px at 90% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 30%, #fff 50%, transparent 51%), linear-gradient(180deg, #020617 0%, #041826 55%, #0a3a35 100%); }
.lt-aurora::before { inset: -30% -25%; background: radial-gradient(38% 22% at 28% 52%, rgba(45, 255, 170, .85), transparent 70%), radial-gradient(30% 20% at 62% 40%, rgba(130, 90, 255, .72), transparent 70%), radial-gradient(28% 16% at 48% 62%, rgba(0, 225, 255, .55), transparent 70%), radial-gradient(22% 14% at 84% 56%, rgba(45, 255, 170, .55), transparent 70%); filter: blur(calc(10 * var(--u))); mix-blend-mode: screen; animation: lt-aurora 10s ease-in-out infinite alternate; }
.lt-aurora::after { inset: 0; background: repeating-linear-gradient(90deg, rgba(200, 255, 230, .1) 0 calc(2 * var(--u)), transparent calc(2 * var(--u)) calc(9 * var(--u))); -webkit-mask-image: radial-gradient(60% 50% at 40% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 50% at 40% 50%, #000, transparent 75%); animation: lt-rays-x 7s linear infinite; }
@keyframes lt-aurora { 0% { transform: translateX(-6%) skewX(-10deg); } 100% { transform: translateX(6%) skewX(12deg) scaleY(1.25); } }
@keyframes lt-rays-x { to { background-position: calc(90 * var(--u)) 0; } }

.lt-synthwave { background: linear-gradient(180deg, #120533 0%, #3b0f6b 28%, #a3207a 50%, #ff5e8a 60%, #12052b 60.3%); }
.lt-synthwave::before { left: 50%; top: 8%; height: 64%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(#ffe86b 10%, #ff8a4c 55%, #ff2e88 92%); box-shadow: 0 0 calc(34 * var(--u)) rgba(255, 94, 138, .75); -webkit-mask-image: linear-gradient(#000 50%, transparent 50%), repeating-linear-gradient(180deg, #000 0 calc(5 * var(--u)), transparent calc(5 * var(--u)) calc(9 * var(--u))); mask-image: linear-gradient(#000 50%, transparent 50%), repeating-linear-gradient(180deg, #000 0 calc(5 * var(--u)), transparent calc(5 * var(--u)) calc(9 * var(--u))); }
.lt-synthwave::after { left: -60%; right: -60%; top: 60%; height: 130%; background: linear-gradient(90deg, rgba(255, 70, 180, .95) 1px, transparent 1px) 50% 0 / calc(24 * var(--u)) 100%, linear-gradient(rgba(255, 70, 180, .95) 1px, transparent 1px) 0 0 / 100% calc(14 * var(--u)), linear-gradient(#2a0845, #12052b); box-shadow: 0 calc(-2 * var(--u)) calc(14 * var(--u)) rgba(255, 94, 170, .9); transform: perspective(calc(80 * var(--u))) rotateX(60deg); transform-origin: 50% 0; animation: lt-synth 1.4s linear infinite; }
@keyframes lt-synth { to { background-position: 50% 0, 0 calc(14 * var(--u)), 0 0; } }

.lt-cosmos { background: radial-gradient(60% 90% at 75% 30%, rgba(167, 89, 255, .5), transparent 60%), radial-gradient(50% 80% at 18% 85%, rgba(56, 140, 255, .4), transparent 60%), radial-gradient(30% 50% at 46% 42%, rgba(255, 105, 180, .3), transparent 70%), #05030f; }
.lt-cosmos::before { inset: 0; background-image: radial-gradient(1.2px 1.2px at 10% 20%, #fff 60%, transparent 70%), radial-gradient(1px 1px at 30% 70%, #fff 60%, transparent 70%), radial-gradient(1.6px 1.6px at 55% 25%, #ffe9a8 60%, transparent 70%), radial-gradient(1px 1px at 70% 82%, #fff 60%, transparent 70%), radial-gradient(1.3px 1.3px at 88% 15%, #bfe0ff 60%, transparent 70%), radial-gradient(1px 1px at 42% 52%, #fff 60%, transparent 70%), radial-gradient(1px 1px at 93% 60%, #fff 60%, transparent 70%), radial-gradient(1px 1px at 20% 45%, #fff 60%, transparent 70%); background-size: calc(220 * var(--u)) calc(140 * var(--u)); animation: lt-twinkle 3.2s ease-in-out infinite alternate; }
.lt-cosmos::after { top: 12%; left: -30%; width: 30%; height: max(1.5px, calc(2 * var(--u))); border-radius: 2px; background: linear-gradient(90deg, transparent, #fff); box-shadow: 0 0 calc(8 * var(--u)) #fff; opacity: 0; animation: lt-shoot 6s ease-in 1s infinite; }
@keyframes lt-twinkle { from { opacity: .5; } to { opacity: 1; } }
@keyframes lt-shoot { 0% { transform: translate(0, 0) rotate(16deg); opacity: 0; } 3% { opacity: 1; } 20% { transform: translate(480%, 520%) rotate(16deg); opacity: 0; } 100% { transform: translate(480%, 520%) rotate(16deg); opacity: 0; } }

.lt-bokeh { background: radial-gradient(70% 90% at 50% 120%, rgba(255, 140, 60, .55), transparent 70%), linear-gradient(160deg, #1d0533, #4a0e4e 55%, #8a1f52); }
.lt-bokeh::before, .lt-bokeh::after { inset: -15%; filter: blur(calc(2 * var(--u))); }
.lt-bokeh::before { background: radial-gradient(circle calc(34 * var(--u)) at 20% 72%, #ffd27a 0, #ff9a3c 45%, rgba(255, 110, 60, 0) 100%), radial-gradient(circle calc(22 * var(--u)) at 44% 30%, #ffb0c4 0, #ff5f8a 50%, rgba(255, 95, 138, 0) 100%), radial-gradient(circle calc(40 * var(--u)) at 70% 80%, #ffcf6b 0, #ff7a3c 50%, rgba(255, 122, 60, 0) 100%), radial-gradient(circle calc(16 * var(--u)) at 88% 24%, #ffe0a0 0, #ff8a3c 50%, rgba(255, 138, 60, 0) 100%); animation: lt-bokeh-a 11s ease-in-out infinite alternate; }
.lt-bokeh::after { background: radial-gradient(circle calc(20 * var(--u)) at 32% 18%, #ffd0dc 0, #ff6f9a 50%, rgba(255, 111, 154, 0) 100%), radial-gradient(circle calc(26 * var(--u)) at 58% 56%, #ffe2a8 0, #ffa046 50%, rgba(255, 160, 70, 0) 100%), radial-gradient(circle calc(14 * var(--u)) at 84% 66%, #ffc2d4 0, #ff5f8a 50%, rgba(255, 95, 138, 0) 100%); animation: lt-bokeh-b 14s ease-in-out infinite alternate; }
@keyframes lt-bokeh-a { 0% { transform: translate(0, 10%); } 50% { transform: translate(4%, -12%); } 100% { transform: translate(-3%, 6%); } }
@keyframes lt-bokeh-b { 0% { transform: translate(0, -8%); } 50% { transform: translate(-5%, 14%); } 100% { transform: translate(4%, -4%); } }

.lt-matrix { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='210' font-family='monospace' font-size='13' font-weight='700'%3E%3Ctext x='4' y='42' fill='%2336f28a' fill-opacity='0.12'%3E%E3%82%A2%3C/text%3E%3Ctext x='4' y='57' fill='%2336f28a' fill-opacity='0.13'%3E%E3%83%9E%3C/text%3E%3Ctext x='4' y='72' fill='%2336f28a' fill-opacity='0.17'%3E%E3%82%AB%3C/text%3E%3Ctext x='4' y='87' fill='%2336f28a' fill-opacity='0.24'%3E%2A%3C/text%3E%3Ctext x='4' y='102' fill='%2336f28a' fill-opacity='0.34'%3E%CE%A3%3C/text%3E%3Ctext x='4' y='117' fill='%2336f28a' fill-opacity='0.46'%3E%2A%3C/text%3E%3Ctext x='4' y='132' fill='%2336f28a' fill-opacity='0.61'%3E7%3C/text%3E%3Ctext x='4' y='147' fill='%2336f28a' fill-opacity='0.79'%3E%E3%83%8A%3C/text%3E%3Ctext x='4' y='162' fill='%23d9ffe6' fill-opacity='1.00'%3E%E3%82%AB%3C/text%3E%3Ctext x='28' y='117' fill='%2336f28a' fill-opacity='0.12'%3E7%3C/text%3E%3Ctext x='28' y='132' fill='%2336f28a' fill-opacity='0.17'%3E%CE%BB%3C/text%3E%3Ctext x='28' y='147' fill='%2336f28a' fill-opacity='0.34'%3E0%3C/text%3E%3Ctext x='28' y='162' fill='%2336f28a' fill-opacity='0.61'%3E%CE%A3%3C/text%3E%3Ctext x='28' y='177' fill='%23d9ffe6' fill-opacity='1.00'%3E%E3%83%9E%3C/text%3E%3Ctext x='52' y='177' fill='%2336f28a' fill-opacity='0.12'%3E%E3%83%8F%3C/text%3E%3Ctext x='52' y='192' fill='%2336f28a' fill-opacity='0.13'%3E%E3%82%AB%3C/text%3E%3Ctext x='52' y='207' fill='%2336f28a' fill-opacity='0.16'%3E%E3%83%A9%3C/text%3E%3Ctext x='52' y='12' fill='%2336f28a' fill-opacity='0.20'%3E0%3C/text%3E%3Ctext x='52' y='27' fill='%2336f28a' fill-opacity='0.26'%3E0%3C/text%3E%3Ctext x='52' y='42' fill='%2336f28a' fill-opacity='0.34'%3E0%3C/text%3E%3Ctext x='52' y='57' fill='%2336f28a' fill-opacity='0.44'%3E=%3C/text%3E%3Ctext x='52' y='72' fill='%2336f28a' fill-opacity='0.55'%3E0%3C/text%3E%3Ctext x='52' y='87' fill='%2336f28a' fill-opacity='0.68'%3E7%3C/text%3E%3Ctext x='52' y='102' fill='%2336f28a' fill-opacity='0.83'%3E%E3%83%8A%3C/text%3E%3Ctext x='52' y='117' fill='%23d9ffe6' fill-opacity='1.00'%3E%CE%BB%3C/text%3E%3Ctext x='76' y='177' fill='%2336f28a' fill-opacity='0.12'%3E%2B%3C/text%3E%3Ctext x='76' y='192' fill='%2336f28a' fill-opacity='0.17'%3E%E3%83%8F%3C/text%3E%3Ctext x='76' y='207' fill='%2336f28a' fill-opacity='0.34'%3E%CE%A3%3C/text%3E%3Ctext x='76' y='12' fill='%2336f28a' fill-opacity='0.61'%3E%2A%3C/text%3E%3Ctext x='76' y='27' fill='%23d9ffe6' fill-opacity='1.00'%3E=%3C/text%3E%3Ctext x='100' y='57' fill='%2336f28a' fill-opacity='0.12'%3E%E3%83%8F%3C/text%3E%3Ctext x='100' y='72' fill='%2336f28a' fill-opacity='0.14'%3E%E3%83%8F%3C/text%3E%3Ctext x='100' y='87' fill='%2336f28a' fill-opacity='0.22'%3E%CE%A3%3C/text%3E%3Ctext x='100' y='102' fill='%2336f28a' fill-opacity='0.34'%3E%E3%83%A4%3C/text%3E%3Ctext x='100' y='117' fill='%2336f28a' fill-opacity='0.51'%3E0%3C/text%3E%3Ctext x='100' y='132' fill='%2336f28a' fill-opacity='0.73'%3E%CE%BB%3C/text%3E%3Ctext x='100' y='147' fill='%23d9ffe6' fill-opacity='1.00'%3E=%3C/text%3E%3C/svg%3E") 0 0 / calc(120 * var(--u)) calc(210 * var(--u)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='270' font-family='monospace' font-size='13' font-weight='700'%3E%3Ctext x='4' y='27' fill='%2336f28a' fill-opacity='0.12'%3E%E3%82%A2%3C/text%3E%3Ctext x='4' y='42' fill='%2336f28a' fill-opacity='0.17'%3E%E3%83%AF%3C/text%3E%3Ctext x='4' y='57' fill='%2336f28a' fill-opacity='0.34'%3E%E3%82%BF%3C/text%3E%3Ctext x='4' y='72' fill='%2336f28a' fill-opacity='0.61'%3E%E3%83%A4%3C/text%3E%3Ctext x='4' y='87' fill='%23d9ffe6' fill-opacity='1.00'%3E%E3%83%9E%3C/text%3E%3Ctext x='34' y='102' fill='%2336f28a' fill-opacity='0.12'%3E1%3C/text%3E%3Ctext x='34' y='117' fill='%2336f28a' fill-opacity='0.13'%3E%E3%82%BF%3C/text%3E%3Ctext x='34' y='132' fill='%2336f28a' fill-opacity='0.17'%3E%CE%BB%3C/text%3E%3Ctext x='34' y='147' fill='%2336f28a' fill-opacity='0.24'%3E7%3C/text%3E%3Ctext x='34' y='162' fill='%2336f28a' fill-opacity='0.34'%3E%2B%3C/text%3E%3Ctext x='34' y='177' fill='%2336f28a' fill-opacity='0.46'%3E%E3%83%AF%3C/text%3E%3Ctext x='34' y='192' fill='%2336f28a' fill-opacity='0.61'%3E=%3C/text%3E%3Ctext x='34' y='207' fill='%2336f28a' fill-opacity='0.79'%3E%CE%A3%3C/text%3E%3Ctext x='34' y='222' fill='%23d9ffe6' fill-opacity='1.00'%3E%2B%3C/text%3E%3Ctext x='64' y='132' fill='%2336f28a' fill-opacity='0.12'%3E0%3C/text%3E%3Ctext x='64' y='147' fill='%2336f28a' fill-opacity='0.17'%3E%E3%83%AF%3C/text%3E%3Ctext x='64' y='162' fill='%2336f28a' fill-opacity='0.34'%3E%CE%A3%3C/text%3E%3Ctext x='64' y='177' fill='%2336f28a' fill-opacity='0.61'%3E%E3%83%A9%3C/text%3E%3Ctext x='64' y='192' fill='%23d9ffe6' fill-opacity='1.00'%3E7%3C/text%3E%3Ctext x='94' y='207' fill='%2336f28a' fill-opacity='0.12'%3E%E3%82%BF%3C/text%3E%3Ctext x='94' y='222' fill='%2336f28a' fill-opacity='0.13'%3E=%3C/text%3E%3Ctext x='94' y='237' fill='%2336f28a' fill-opacity='0.17'%3E%E3%82%BF%3C/text%3E%3Ctext x='94' y='252' fill='%2336f28a' fill-opacity='0.24'%3E%E3%83%8F%3C/text%3E%3Ctext x='94' y='267' fill='%2336f28a' fill-opacity='0.34'%3E%E3%83%8F%3C/text%3E%3Ctext x='94' y='12' fill='%2336f28a' fill-opacity='0.46'%3E0%3C/text%3E%3Ctext x='94' y='27' fill='%2336f28a' fill-opacity='0.61'%3E%E3%82%BF%3C/text%3E%3Ctext x='94' y='42' fill='%2336f28a' fill-opacity='0.79'%3E%E3%83%A9%3C/text%3E%3Ctext x='94' y='57' fill='%23d9ffe6' fill-opacity='1.00'%3E%E3%82%BF%3C/text%3E%3Ctext x='124' y='72' fill='%2336f28a' fill-opacity='0.12'%3E%2B%3C/text%3E%3Ctext x='124' y='87' fill='%2336f28a' fill-opacity='0.13'%3E%E3%83%AF%3C/text%3E%3Ctext x='124' y='102' fill='%2336f28a' fill-opacity='0.17'%3E%2B%3C/text%3E%3Ctext x='124' y='117' fill='%2336f28a' fill-opacity='0.24'%3E=%3C/text%3E%3Ctext x='124' y='132' fill='%2336f28a' fill-opacity='0.34'%3E%E3%82%BF%3C/text%3E%3Ctext x='124' y='147' fill='%2336f28a' fill-opacity='0.46'%3E%CE%A3%3C/text%3E%3Ctext x='124' y='162' fill='%2336f28a' fill-opacity='0.61'%3E%CE%BB%3C/text%3E%3Ctext x='124' y='177' fill='%2336f28a' fill-opacity='0.79'%3E%2B%3C/text%3E%3Ctext x='124' y='192' fill='%23d9ffe6' fill-opacity='1.00'%3E%E3%83%AF%3C/text%3E%3C/svg%3E") calc(60 * var(--u)) 0 / calc(150 * var(--u)) calc(270 * var(--u)), radial-gradient(80% 110% at 50% 0%, #07361c, #010a05); animation: lt-matrix 7s linear infinite; }
.lt-matrix::after { inset: 0; background: linear-gradient(transparent 55%, rgba(1, 10, 5, .85)), repeating-linear-gradient(transparent 0 calc(2 * var(--u)), rgba(0, 0, 0, .18) calc(2 * var(--u)) calc(3 * var(--u))); }
@keyframes lt-matrix { to { background-position: 0 calc(210 * var(--u)), calc(60 * var(--u)) calc(270 * var(--u)), 0 0; } }

.lt-ocean { background: radial-gradient(70% 60% at 50% -15%, rgba(140, 230, 255, .6), transparent 65%), radial-gradient(1.5px 1.5px at 22% 48%, rgba(255, 255, 255, .7) 60%, transparent 70%), radial-gradient(1px 1px at 64% 36%, rgba(255, 255, 255, .7) 60%, transparent 70%), linear-gradient(#0b5a96, #06325e 55%, #021530); }
.lt-ocean::before { inset: -10% -10% 0; background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .13) 0 5%, transparent 5% 13%); -webkit-mask-image: linear-gradient(#000, transparent 75%); mask-image: linear-gradient(#000, transparent 75%); transform-origin: 50% 0; animation: lt-rays 7s ease-in-out infinite alternate; }
.lt-ocean::after { left: 0; right: 0; bottom: 0; height: 62%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' preserveAspectRatio='none' viewBox='0 0 240 60'%3E%3Cpath d='M0,21.0 L0,21.0 L4,21.9 L8,22.9 L12,23.8 L16,24.7 L20,25.5 L24,26.3 L28,27.0 L32,27.7 L36,28.3 L40,28.8 L44,29.2 L48,29.6 L52,29.8 L56,30.0 L60,30.0 L64,30.0 L68,29.8 L72,29.6 L76,29.2 L80,28.8 L84,28.3 L88,27.7 L92,27.0 L96,26.3 L100,25.5 L104,24.7 L108,23.8 L112,22.9 L116,21.9 L120,21.0 L124,20.1 L128,19.1 L132,18.2 L136,17.3 L140,16.5 L144,15.7 L148,15.0 L152,14.3 L156,13.7 L160,13.2 L164,12.8 L168,12.4 L172,12.2 L176,12.0 L180,12.0 L184,12.0 L188,12.2 L192,12.4 L196,12.8 L200,13.2 L204,13.7 L208,14.3 L212,15.0 L216,15.7 L220,16.5 L224,17.3 L228,18.2 L232,19.1 L236,20.1 L240,21.0 L240,60 L0,60 Z' fill='%2338bdf8' fill-opacity='0.35'/%3E%3C/svg%3E") 0 100% / calc(240 * var(--u)) 62% repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='80' preserveAspectRatio='none' viewBox='0 0 320 80'%3E%3Cpath d='M0,39.6 L0,39.6 L4,39.8 L8,39.9 L12,40.0 L16,40.0 L20,39.9 L24,39.8 L28,39.5 L32,39.2 L36,38.9 L40,38.4 L44,38.0 L48,37.4 L52,36.8 L56,36.1 L60,35.4 L64,34.6 L68,33.8 L72,33.0 L76,32.1 L80,31.2 L84,30.3 L88,29.4 L92,28.4 L96,27.5 L100,26.5 L104,25.6 L108,24.7 L112,23.8 L116,22.9 L120,22.1 L124,21.3 L128,20.5 L132,19.8 L136,19.2 L140,18.5 L144,18.0 L148,17.5 L152,17.1 L156,16.7 L160,16.4 L164,16.2 L168,16.1 L172,16.0 L176,16.0 L180,16.1 L184,16.2 L188,16.5 L192,16.8 L196,17.1 L200,17.6 L204,18.0 L208,18.6 L212,19.2 L216,19.9 L220,20.6 L224,21.4 L228,22.2 L232,23.0 L236,23.9 L240,24.8 L244,25.7 L248,26.6 L252,27.6 L256,28.5 L260,29.5 L264,30.4 L268,31.3 L272,32.2 L276,33.1 L280,33.9 L284,34.7 L288,35.5 L292,36.2 L296,36.8 L300,37.5 L304,38.0 L308,38.5 L312,38.9 L316,39.3 L320,39.6 L320,80 L0,80 Z' fill='%230ea5e9' fill-opacity='0.45'/%3E%3C/svg%3E") 0 100% / calc(320 * var(--u)) 82% repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='50' preserveAspectRatio='none' viewBox='0 0 200 50'%3E%3Cpath d='M0,22.7 L0,22.7 L4,22.3 L8,21.8 L12,21.2 L16,20.6 L20,19.9 L24,19.2 L28,18.5 L32,17.7 L36,17.0 L40,16.2 L44,15.5 L48,14.8 L52,14.2 L56,13.6 L60,13.0 L64,12.6 L68,12.2 L72,11.9 L76,11.7 L80,11.5 L84,11.5 L88,11.6 L92,11.7 L96,12.0 L100,12.3 L104,12.7 L108,13.2 L112,13.8 L116,14.4 L120,15.1 L124,15.8 L128,16.5 L132,17.3 L136,18.0 L140,18.8 L144,19.5 L148,20.2 L152,20.8 L156,21.4 L160,22.0 L164,22.4 L168,22.8 L172,23.1 L176,23.3 L180,23.5 L184,23.5 L188,23.4 L192,23.3 L196,23.0 L200,22.7 L200,50 L0,50 Z' fill='%23021a3a' fill-opacity='0.9'/%3E%3C/svg%3E") 0 100% / calc(200 * var(--u)) 45% repeat-x; animation: lt-waves 9s linear infinite; }
@keyframes lt-waves { to { background-position: calc(240 * var(--u)) 100%, calc(-320 * var(--u)) 100%, calc(200 * var(--u)) 100%; } }
@keyframes lt-rays { from { transform: skewX(-8deg); opacity: .6; } to { transform: skewX(8deg); opacity: 1; } }

.lt-ember { background: radial-gradient(100% 70% at 50% 135%, #ffb347, #ff5a1f 30%, #8a1405 55%, transparent 80%), radial-gradient(40% 60% at 15% 120%, rgba(255, 90, 31, .55), transparent 70%), radial-gradient(40% 60% at 85% 120%, rgba(255, 90, 31, .55), transparent 70%), linear-gradient(#0c0303, #2a0703); animation: lt-glow 2.4s ease-in-out infinite alternate; }
.lt-ember::before, .lt-ember::after { inset: 0 0 -100%; background-image: radial-gradient(circle calc(3 * var(--u)) at 8% 92%, #fff2c0 0 45%, rgba(255, 140, 60, 0) 100%), radial-gradient(circle calc(2 * var(--u)) at 18% 70%, #ffb347 0 45%, rgba(255, 140, 60, 0) 100%), radial-gradient(circle calc(2.6 * var(--u)) at 27% 84%, #ffd27a 0 45%, rgba(255, 140, 60, 0) 100%), radial-gradient(circle calc(1.8 * var(--u)) at 36% 58%, #ff9a3c 0 45%, rgba(255, 140, 60, 0) 100%), radial-gradient(circle calc(3 * var(--u)) at 46% 90%, #fff2c0 0 45%, rgba(255, 140, 60, 0) 100%), radial-gradient(circle calc(2.2 * var(--u)) at 55% 66%, #ffb347 0 45%, rgba(255, 140, 60, 0) 100%), radial-gradient(circle calc(1.6 * var(--u)) at 63% 40%, #ffd27a 0 45%, rgba(255, 140, 60, 0) 100%), radial-gradient(circle calc(2.8 * var(--u)) at 72% 78%, #ff9a3c 0 45%, rgba(255, 140, 60, 0) 100%), radial-gradient(circle calc(2 * var(--u)) at 81% 54%, #fff2c0 0 45%, rgba(255, 140, 60, 0) 100%), radial-gradient(circle calc(2.4 * var(--u)) at 90% 86%, #ffb347 0 45%, rgba(255, 140, 60, 0) 100%), radial-gradient(circle calc(1.4 * var(--u)) at 40% 24%, #ffd27a 0 45%, rgba(255, 140, 60, 0) 100%), radial-gradient(circle calc(1.6 * var(--u)) at 84% 18%, #ff9a3c 0 45%, rgba(255, 140, 60, 0) 100%); background-size: 100% 50%; filter: drop-shadow(0 0 calc(3 * var(--u)) rgba(255, 130, 40, .9)); animation: lt-rise 5s linear infinite; }
.lt-ember::after { background-size: 64% 50%; opacity: .7; animation-duration: 8s; }
@keyframes lt-rise { to { transform: translateY(-50%); } }
@keyframes lt-glow { to { filter: brightness(1.2) saturate(1.15); } }

.lt-hologram { background: conic-gradient(from 200deg at 30% 60%, #ff9ad5, #a0f0ff, #c3a6ff, #fff3a6, #9affc8, #ff9ad5); animation: lt-hue 9s linear infinite; }
.lt-hologram::before { inset: 0; background: repeating-linear-gradient(115deg, transparent 0 calc(8 * var(--u)), rgba(255, 255, 255, .35) calc(8 * var(--u)) calc(9 * var(--u))), radial-gradient(120% 80% at 80% 20%, rgba(255, 255, 255, .5), transparent 50%); mix-blend-mode: overlay; }
.lt-hologram::after { inset: 0 -100%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .8) 50%, transparent 58%); animation: lt-sweep 3.8s ease-in-out infinite; }
@keyframes lt-hue { to { filter: hue-rotate(360deg); } }
@keyframes lt-sweep { from { transform: translateX(-35%); } to { transform: translateX(35%); } }

.lt-glitch { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 3px), radial-gradient(45% 80% at 28% 50%, rgba(255, 0, 110, .32), transparent 70%), radial-gradient(45% 80% at 74% 50%, rgba(0, 240, 255, .28), transparent 70%), #0a0a10; }
.lt-glitch::before { inset: 0; background: linear-gradient(90deg, transparent 8%, rgba(255, 0, 76, .9) 8% 34%, transparent 34%) 0 18% / 100% calc(3 * var(--u)) no-repeat, linear-gradient(90deg, transparent 40%, rgba(0, 240, 255, .9) 40% 78%, transparent 78%) 0 30% / 100% calc(2 * var(--u)) no-repeat, linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, .75) 20% 46%, transparent 46%) 0 50% / 100% calc(1.5 * var(--u)) no-repeat, linear-gradient(90deg, transparent 55%, rgba(255, 0, 76, .85) 55% 92%, transparent 92%) 0 64% / 100% calc(5 * var(--u)) no-repeat, linear-gradient(90deg, transparent 4%, rgba(0, 240, 255, .8) 4% 22%, transparent 22%) 0 80% / 100% calc(2 * var(--u)) no-repeat, linear-gradient(90deg, transparent 66%, rgba(255, 251, 0, .8) 66% 74%, transparent 74%) 0 40% / 100% calc(6 * var(--u)) no-repeat; mix-blend-mode: screen; animation: lt-glitch 2.8s steps(1) infinite; }
.lt-glitch::after { left: 0; right: 0; top: 38%; height: 16%; background: linear-gradient(90deg, rgba(255, 0, 76, .3), rgba(255, 255, 255, .08) 40%, rgba(0, 240, 255, .3)); -webkit-backdrop-filter: hue-rotate(120deg) saturate(2); backdrop-filter: hue-rotate(120deg) saturate(2); animation: lt-tear 2.8s steps(1) infinite; }
@keyframes lt-glitch { 0% { background-position: calc(0 * var(--u)) 18%, calc(0 * var(--u)) 30%, calc(0 * var(--u)) 50%, calc(0 * var(--u)) 64%, calc(0 * var(--u)) 80%, calc(0 * var(--u)) 40%; } 14% { background-position: calc(-40 * var(--u)) 22%, calc(30 * var(--u)) 34%, calc(60 * var(--u)) 46%, calc(-20 * var(--u)) 70%, calc(50 * var(--u)) 76%, calc(-60 * var(--u)) 10%; } 22% { background-position: calc(20 * var(--u)) 60%, calc(-50 * var(--u)) 12%, calc(-30 * var(--u)) 88%, calc(40 * var(--u)) 30%, calc(-10 * var(--u)) 52%, calc(30 * var(--u)) 70%; } 30% { background-position: calc(0 * var(--u)) 18%, calc(0 * var(--u)) 30%, calc(0 * var(--u)) 50%, calc(0 * var(--u)) 64%, calc(0 * var(--u)) 80%, calc(0 * var(--u)) 40%; } 62% { background-position: calc(70 * var(--u)) 8%, calc(-20 * var(--u)) 44%, calc(10 * var(--u)) 66%, calc(-60 * var(--u)) 90%, calc(20 * var(--u)) 24%, calc(-30 * var(--u)) 56%; } 70% { background-position: calc(0 * var(--u)) 18%, calc(0 * var(--u)) 30%, calc(0 * var(--u)) 50%, calc(0 * var(--u)) 64%, calc(0 * var(--u)) 80%, calc(0 * var(--u)) 40%; } }
@keyframes lt-tear { 0%, 100% { top: 38%; opacity: 0; } 14% { top: 20%; opacity: 1; transform: translateX(calc(8 * var(--u))); } 22% { top: 62%; opacity: 1; transform: translateX(calc(-10 * var(--u))); } 30% { opacity: 0; } 62% { top: 8%; opacity: 1; transform: none; } 70% { opacity: 0; } }

.lt-neon { background: radial-gradient(60% 90% at 30% 50%, rgba(255, 0, 170, .16), transparent 70%), radial-gradient(40% 80% at 80% 50%, rgba(0, 220, 255, .14), transparent 70%), repeating-linear-gradient(0deg, #15101d 0 calc(17 * var(--u)), #0b0810 calc(17 * var(--u)) calc(19 * var(--u))), #0b0810; }
.lt-neon::before { left: 80%; top: 50%; height: 56%; aspect-ratio: 1; transform: translate(-50%, -50%); border: calc(3 * var(--u)) solid #3df5ff; border-radius: 50%; box-shadow: 0 0 calc(6 * var(--u)) #3df5ff, 0 0 calc(20 * var(--u)) #3df5ff, inset 0 0 calc(12 * var(--u)) #3df5ff; animation: lt-neon 5s steps(1) infinite; }
.lt-neon::after { content: "GAME ON"; left: 26%; top: 50%; transform: translate(-50%, -50%) rotate(-4deg); color: #ffe6fb; font: italic 900 calc(30 * var(--u))/1 "Avenir Next", "Segoe UI", sans-serif; letter-spacing: .04em; white-space: nowrap; text-shadow: 0 0 calc(3 * var(--u)) #ff3df0, 0 0 calc(10 * var(--u)) #ff3df0, 0 0 calc(22 * var(--u)) #ff3df0, 0 0 calc(40 * var(--u)) #ff3df0; animation: lt-neon 4s steps(1) .8s infinite; }
@keyframes lt-neon { 0%, 18%, 23%, 61%, 65%, 100% { opacity: 1; } 20%, 63% { opacity: .3; } }

.lt-sunset { background: linear-gradient(180deg, #2b1055 0%, #7b2ff7 22%, #ff5f6d 48%, #ffc371 62%, #24407a 62.2%, #0f1f45 100%); }
.lt-sunset::before { left: 70%; top: 26%; height: 62%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #fff6c9, #ffd36b 45%, #ff8a3c 72%); box-shadow: 0 0 calc(40 * var(--u)) calc(10 * var(--u)) rgba(255, 190, 100, .6); }
.lt-sunset::after { left: 0; right: 0; top: 62%; bottom: 0; background: radial-gradient(12% 100% at 70% 0%, rgba(255, 210, 130, .95), transparent 72%), repeating-linear-gradient(180deg, transparent 0 calc(4 * var(--u)), rgba(255, 255, 255, .1) calc(4 * var(--u)) calc(5 * var(--u))), linear-gradient(#24407a, #0f1f45); animation: lt-sea 2.6s ease-in-out infinite alternate; }
@keyframes lt-sea { to { background-position: 0 calc(2 * var(--u)), 0 calc(3 * var(--u)), 0 0; filter: brightness(1.12); } }

.lt-pixel { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24' shape-rendering='crispEdges'%3E%3Cg fill='%23fff'%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='22' y='5' width='1' height='1'/%3E%3Crect x='40' y='1' width='1' height='1'/%3E%3Crect x='57' y='4' width='1' height='1'/%3E%3Crect x='31' y='8' width='1' height='1' fill-opacity='.6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / calc(256 * var(--u)) calc(96 * var(--u)), linear-gradient(#ffe066, #ffe066) 72% 46% / calc(24 * var(--u)) calc(24 * var(--u)) no-repeat, linear-gradient(#1b1f5e 0 30%, #3b2f8a 30% 48%, #8a4fb8 48% 62%, #ff8c6b 62% 76%, #ffd27a 76%); image-rendering: pixelated; }
.lt-pixel::before { inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='24' shape-rendering='crispEdges'%3E%3Cg fill='%23fff'%3E%3Crect x='8' y='6' width='10' height='3'/%3E%3Crect x='5' y='9' width='18' height='3'/%3E%3Crect x='48' y='12' width='8' height='2'/%3E%3Crect x='45' y='14' width='15' height='3'/%3E%3C/g%3E%3C/svg%3E") 0 22% / calc(320 * var(--u)) calc(96 * var(--u)) repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24' shape-rendering='crispEdges'%3E%3Crect x='0' y='9' width='1' height='15' fill='%233b4fa8'/%3E%3Crect x='0' y='9' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='1' y='10' width='1' height='14' fill='%233b4fa8'/%3E%3Crect x='1' y='10' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='2' y='11' width='1' height='13' fill='%233b4fa8'/%3E%3Crect x='2' y='11' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='3' y='10' width='1' height='14' fill='%233b4fa8'/%3E%3Crect x='3' y='10' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='4' y='10' width='1' height='14' fill='%233b4fa8'/%3E%3Crect x='4' y='10' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='5' y='11' width='1' height='13' fill='%233b4fa8'/%3E%3Crect x='5' y='11' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='6' y='11' width='1' height='13' fill='%233b4fa8'/%3E%3Crect x='6' y='11' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='7' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='7' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='8' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='8' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='9' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='9' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='10' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='10' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='11' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='11' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='12' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='12' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='13' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='13' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='14' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='14' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='15' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='15' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='16' y='11' width='1' height='13' fill='%233b4fa8'/%3E%3Crect x='16' y='11' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='17' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='17' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='18' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='18' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='19' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='19' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='20' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='20' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='21' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='21' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='22' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='22' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='23' y='15' width='1' height='9' fill='%233b4fa8'/%3E%3Crect x='24' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='24' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='25' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='25' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='26' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='26' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='27' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='27' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='28' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='28' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='29' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='29' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='30' y='15' width='1' height='9' fill='%233b4fa8'/%3E%3Crect x='31' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='31' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='32' y='15' width='1' height='9' fill='%233b4fa8'/%3E%3Crect x='33' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='33' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='34' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='34' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='35' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='35' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='36' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='36' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='37' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='37' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='38' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='38' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='39' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='39' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='40' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='40' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='41' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='41' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='42' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='42' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='43' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='43' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='44' y='15' width='1' height='9' fill='%233b4fa8'/%3E%3Crect x='45' y='15' width='1' height='9' fill='%233b4fa8'/%3E%3Crect x='46' y='15' width='1' height='9' fill='%233b4fa8'/%3E%3Crect x='47' y='16' width='1' height='8' fill='%233b4fa8'/%3E%3Crect x='48' y='16' width='1' height='8' fill='%233b4fa8'/%3E%3Crect x='49' y='16' width='1' height='8' fill='%233b4fa8'/%3E%3Crect x='50' y='15' width='1' height='9' fill='%233b4fa8'/%3E%3Crect x='51' y='15' width='1' height='9' fill='%233b4fa8'/%3E%3Crect x='52' y='14' width='1' height='10' fill='%233b4fa8'/%3E%3Crect x='52' y='14' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='53' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='53' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='54' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='54' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='55' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='55' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='56' y='11' width='1' height='13' fill='%233b4fa8'/%3E%3Crect x='56' y='11' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='57' y='11' width='1' height='13' fill='%233b4fa8'/%3E%3Crect x='57' y='11' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='58' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='58' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='59' y='12' width='1' height='12' fill='%233b4fa8'/%3E%3Crect x='59' y='12' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='60' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='60' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='61' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='61' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='62' y='13' width='1' height='11' fill='%233b4fa8'/%3E%3Crect x='62' y='13' width='1' height='2' fill='%23e8f0ff'/%3E%3Crect x='63' y='9' width='1' height='15' fill='%233b4fa8'/%3E%3Crect x='63' y='9' width='1' height='2' fill='%23e8f0ff'/%3E%3C/svg%3E") 0 100% / calc(256 * var(--u)) calc(96 * var(--u)) repeat-x; image-rendering: pixelated; animation: lt-pixel-a 32s steps(128) infinite; }
.lt-pixel::after { inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' shape-rendering='crispEdges'%3E%3Crect x='0' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='1' y='17' width='1' height='7' fill='%231f7a4a'/%3E%3Crect x='2' y='17' width='1' height='7' fill='%231f7a4a'/%3E%3Crect x='3' y='17' width='1' height='7' fill='%231f7a4a'/%3E%3Crect x='4' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='5' y='15' width='1' height='9' fill='%231f7a4a'/%3E%3Crect x='6' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='7' y='15' width='1' height='9' fill='%231f7a4a'/%3E%3Crect x='8' y='15' width='1' height='9' fill='%231f7a4a'/%3E%3Crect x='9' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='10' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='11' y='17' width='1' height='7' fill='%231f7a4a'/%3E%3Crect x='12' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='13' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='14' y='17' width='1' height='7' fill='%231f7a4a'/%3E%3Crect x='15' y='18' width='1' height='6' fill='%231f7a4a'/%3E%3Crect x='16' y='19' width='1' height='5' fill='%231f7a4a'/%3E%3Crect x='17' y='18' width='1' height='6' fill='%231f7a4a'/%3E%3Crect x='18' y='19' width='1' height='5' fill='%231f7a4a'/%3E%3Crect x='19' y='19' width='1' height='5' fill='%231f7a4a'/%3E%3Crect x='20' y='18' width='1' height='6' fill='%231f7a4a'/%3E%3Crect x='21' y='19' width='1' height='5' fill='%231f7a4a'/%3E%3Crect x='22' y='19' width='1' height='5' fill='%231f7a4a'/%3E%3Crect x='23' y='20' width='1' height='4' fill='%231f7a4a'/%3E%3Crect x='24' y='20' width='1' height='4' fill='%231f7a4a'/%3E%3Crect x='25' y='19' width='1' height='5' fill='%231f7a4a'/%3E%3Crect x='26' y='18' width='1' height='6' fill='%231f7a4a'/%3E%3Crect x='27' y='17' width='1' height='7' fill='%231f7a4a'/%3E%3Crect x='28' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='29' y='15' width='1' height='9' fill='%231f7a4a'/%3E%3Crect x='30' y='14' width='1' height='10' fill='%231f7a4a'/%3E%3Crect x='31' y='15' width='1' height='9' fill='%231f7a4a'/%3E%3Crect x='32' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='33' y='15' width='1' height='9' fill='%231f7a4a'/%3E%3Crect x='34' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='35' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='36' y='17' width='1' height='7' fill='%231f7a4a'/%3E%3Crect x='37' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='38' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='39' y='15' width='1' height='9' fill='%231f7a4a'/%3E%3Crect x='40' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='41' y='15' width='1' height='9' fill='%231f7a4a'/%3E%3Crect x='42' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='43' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3Crect x='44' y='15' width='1' height='9' fill='%231f7a4a'/%3E%3Crect x='45' y='15' width='1' height='9' fill='%231f7a4a'/%3E%3Crect x='46' y='14' width='1' height='10' fill='%231f7a4a'/%3E%3Crect x='47' y='16' width='1' height='8' fill='%231f7a4a'/%3E%3C/svg%3E") 0 100% / calc(192 * var(--u)) calc(96 * var(--u)) repeat-x; image-rendering: pixelated; animation: lt-pixel-b 12s steps(48) infinite; }
@keyframes lt-pixel-a { to { background-position: calc(-320 * var(--u)) 22%, calc(-256 * var(--u)) 100%; } }
@keyframes lt-pixel-b { to { background-position: calc(-192 * var(--u)) 100%; } }

.lt-sakura { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='150' viewBox='0 0 300 150'%3E%3Cpath d='M300 8 C240 20 200 18 160 40 C130 56 110 50 80 70 M220 22 C215 40 200 52 190 60 M160 40 C150 30 140 28 125 30' fill='none' stroke='%234a2333' stroke-width='5' stroke-linecap='round'/%3E%3Cg fill='%23ff9cc0'%3E%3Ccircle cx='190' cy='60' r='6'/%3E%3Ccircle cx='200' cy='55' r='5'/%3E%3Ccircle cx='125' cy='30' r='6'/%3E%3Ccircle cx='82' cy='68' r='7'/%3E%3Ccircle cx='92' cy='62' r='5'/%3E%3Ccircle cx='240' cy='18' r='6'/%3E%3Ccircle cx='262' cy='14' r='5'/%3E%3Ccircle cx='160' cy='40' r='5'/%3E%3C/g%3E%3Cg fill='%23ffe3ee'%3E%3Ccircle cx='190' cy='60' r='2'/%3E%3Ccircle cx='125' cy='30' r='2'/%3E%3Ccircle cx='82' cy='68' r='2.5'/%3E%3Ccircle cx='240' cy='18' r='2'/%3E%3C/g%3E%3C/svg%3E") 100% 0 / auto 100% no-repeat, radial-gradient(40% 70% at 20% 30%, rgba(255, 200, 225, .35), transparent 70%), linear-gradient(160deg, #2a0f2a, #6b2a5a 50%, #d9789f); }
.lt-sakura::before { inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath transform='translate(38 87) rotate(133) scale(1.06)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23ffd1e1' fill-opacity='.9'/%3E%3Cpath transform='translate(97 145) rotate(169) scale(1.03)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23ffb7cf' fill-opacity='.9'/%3E%3Cpath transform='translate(159 75) rotate(301) scale(0.99)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23ffb7cf' fill-opacity='.9'/%3E%3Cpath transform='translate(37 24) rotate(333) scale(0.93)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23ffd1e1' fill-opacity='.9'/%3E%3Cpath transform='translate(107 10) rotate(273) scale(1.05)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23ff9cc0' fill-opacity='.9'/%3E%3Cpath transform='translate(125 132) rotate(97) scale(1.06)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23fff0f5' fill-opacity='.9'/%3E%3Cpath transform='translate(114 147) rotate(142) scale(1.18)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23fff0f5' fill-opacity='.9'/%3E%3C/svg%3E") 0 0 / calc(160 * var(--u)) calc(160 * var(--u)); animation: lt-petals-a 9s linear infinite; }
.lt-sakura::after { inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cpath transform='translate(50 212) rotate(45) scale(1.57)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23ffd1e1' fill-opacity='.9'/%3E%3Cpath transform='translate(30 178) rotate(182) scale(1.32)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23ffd1e1' fill-opacity='.9'/%3E%3Cpath transform='translate(101 100) rotate(178) scale(1.14)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23fff0f5' fill-opacity='.9'/%3E%3Cpath transform='translate(20 52) rotate(7) scale(1.20)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23fff0f5' fill-opacity='.9'/%3E%3Cpath transform='translate(104 200) rotate(261) scale(1.54)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23ffd1e1' fill-opacity='.9'/%3E%3Cpath transform='translate(218 14) rotate(223) scale(1.30)' d='M0 0 C4 -6 10 -4 9 2 C8 6 3 7 0 5 C-1 3 -1 1 0 0Z' fill='%23ffd1e1' fill-opacity='.9'/%3E%3C/svg%3E") 0 0 / calc(220 * var(--u)) calc(220 * var(--u)); opacity: .85; animation: lt-petals-b 15s linear infinite; }
@keyframes lt-petals-a { to { background-position: calc(-160 * var(--u)) calc(160 * var(--u)); } }
@keyframes lt-petals-b { to { background-position: calc(-220 * var(--u)) calc(220 * var(--u)); } }

.lt-comic { background: radial-gradient(circle, rgba(0, 0, 0, .28) 28%, transparent 31%) 0 0 / calc(7 * var(--u)) calc(7 * var(--u)), repeating-conic-gradient(from 0deg at 76% 50%, #ffd400 0 6deg, #ff9500 6deg 12deg); }
.lt-comic::before { left: 76%; top: 50%; width: calc(118 * var(--u)); aspect-ratio: 1; translate: -50% -50%; background: #fff; clip-path: polygon(50% 0, 61% 26%, 90% 12%, 78% 40%, 100% 50%, 78% 60%, 90% 88%, 61% 74%, 50% 100%, 39% 74%, 10% 88%, 22% 60%, 0 50%, 22% 40%, 10% 12%, 39% 26%); animation: lt-pop 1.6s ease-in-out infinite; }
.lt-comic::after { content: "БАМ!"; left: 76%; top: 50%; translate: -50% -50%; rotate: -10deg; color: #ff2e63; font: 900 calc(30 * var(--u))/1 Impact, "Arial Black", sans-serif; letter-spacing: .02em; -webkit-text-stroke: calc(1.5 * var(--u)) #111; text-shadow: calc(3 * var(--u)) calc(3 * var(--u)) 0 #111; animation: lt-pop 1.6s ease-in-out infinite; }
@keyframes lt-pop { 50% { scale: 1.1; } }

.lt-blueprint { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='150' viewBox='0 0 300 150'%3E%3Cg fill='none' stroke='%23e8f1ff' stroke-opacity='.85' stroke-width='1.2'%3E%3Cg transform='translate(215 75)'%3E%3Cg%3E%3CanimateTransform attributeName='transform' type='rotate' from='0' to='360' dur='18s' repeatCount='indefinite'/%3E%3Ccircle r='30'/%3E%3Ccircle r='10'/%3E%3Cg fill='%23e8f1ff' fill-opacity='.85' stroke='none'%3E%3Crect x='-4' y='-38' width='8' height='9' transform='rotate(0)'/%3E%3Crect x='-4' y='-38' width='8' height='9' transform='rotate(30)'/%3E%3Crect x='-4' y='-38' width='8' height='9' transform='rotate(60)'/%3E%3Crect x='-4' y='-38' width='8' height='9' transform='rotate(90)'/%3E%3Crect x='-4' y='-38' width='8' height='9' transform='rotate(120)'/%3E%3Crect x='-4' y='-38' width='8' height='9' transform='rotate(150)'/%3E%3Crect x='-4' y='-38' width='8' height='9' transform='rotate(180)'/%3E%3Crect x='-4' y='-38' width='8' height='9' transform='rotate(210)'/%3E%3Crect x='-4' y='-38' width='8' height='9' transform='rotate(240)'/%3E%3Crect x='-4' y='-38' width='8' height='9' transform='rotate(270)'/%3E%3Crect x='-4' y='-38' width='8' height='9' transform='rotate(300)'/%3E%3Crect x='-4' y='-38' width='8' height='9' transform='rotate(330)'/%3E%3C/g%3E%3C/g%3E%3Ccircle r='48' stroke-dasharray='4 4'/%3E%3Cpath d='M-60 0 H60 M0 -60 V60' stroke-dasharray='8 3 2 3' stroke-opacity='.5'/%3E%3C/g%3E%3Cg transform='translate(255 30)'%3E%3Cg%3E%3CanimateTransform attributeName='transform' type='rotate' from='360' to='0' dur='9s' repeatCount='indefinite'/%3E%3Ccircle r='13'/%3E%3Ccircle r='4'/%3E%3C/g%3E%3C/g%3E%3Cpath d='M20 120 H120 M20 116 V124 M120 116 V124' /%3E%3Ctext x='58' y='114' font-size='9' font-family='monospace' fill='%23e8f1ff' stroke='none'%3E120.00%3C/text%3E%3Crect x='30' y='30' width='70' height='50' rx='4'/%3E%3Cpath d='M30 30 L100 80 M100 30 L30 80' stroke-opacity='.35'/%3E%3C/g%3E%3C/svg%3E") 100% 50% / auto 100% no-repeat, linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / calc(12 * var(--u)) calc(12 * var(--u)), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / calc(12 * var(--u)) calc(12 * var(--u)), linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px) 0 0 / calc(60 * var(--u)) calc(60 * var(--u)), linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px) 0 0 / calc(60 * var(--u)) calc(60 * var(--u)), radial-gradient(90% 120% at 30% 40%, #1658b0, #0b3470); }
.lt-blueprint::after { inset: 0; background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(200, 230, 255, .6) 50%, transparent calc(50% + 1px)) 0 0 / 200% 100%; box-shadow: inset 0 0 calc(30 * var(--u)) rgba(0, 20, 60, .5); animation: lt-scan 6s ease-in-out infinite alternate; }
@keyframes lt-scan { from { background-position: 100% 0; } to { background-position: 0 0; } }

.lt-topo { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='180'%3E%3Cg fill='none' stroke='%239ff5c8' stroke-opacity='.45' stroke-width='1'%3E%3Cpath d='M95.3,81.0 L95.2,81.7 L95.6,82.5 L96.1,83.6 L96.1,84.8 L95.3,85.8 L94.1,86.4 L92.7,86.9 L91.2,87.4 L89.6,87.6 L88.0,87.5 L86.6,86.7 L85.8,85.6 L85.5,84.4 L85.3,83.5 L84.5,83.1 L83.0,82.7 L81.4,82.0 L80.3,81.0 L80.2,79.8 L81.1,78.8 L82.5,78.1 L83.7,77.5 L84.7,77.0 L85.7,76.3 L86.9,75.8 L88.3,75.7 L89.6,75.8 L90.9,75.9 L92.3,75.9 L93.9,75.7 L95.7,75.9 L97.2,76.5 L97.7,77.7 L97.2,79.1 L96.2,80.2 L95.3,81.0Z'/%3E%3Cpath d='M101.8,81.0 L101.5,82.5 L102.4,84.3 L103.4,86.6 L103.3,89.1 L101.7,91.1 L99.1,92.6 L96.2,93.6 L93.0,94.5 L89.6,95.1 L86.1,94.7 L83.3,93.2 L81.6,90.7 L81.0,88.2 L80.4,86.4 L78.7,85.4 L75.6,84.6 L72.1,83.2 L69.8,81.0 L69.6,78.5 L71.6,76.4 L74.4,74.9 L77.1,73.7 L79.3,72.4 L81.4,71.1 L83.9,70.1 L86.8,69.7 L89.6,69.9 L92.3,70.1 L95.3,70.1 L98.8,69.8 L102.7,70.1 L105.7,71.5 L106.9,74.0 L105.8,76.9 L103.6,79.3 L101.8,81.0Z'/%3E%3Cpath d='M108.2,81.0 L107.8,83.2 L109.2,86.0 L110.8,89.6 L110.6,93.3 L108.1,96.5 L104.2,98.7 L99.7,100.3 L94.8,101.7 L89.6,102.5 L84.3,102.0 L79.9,99.6 L77.3,95.9 L76.4,92.0 L75.5,89.3 L73.0,87.7 L68.3,86.4 L62.9,84.3 L59.2,81.0 L59.1,77.2 L62.0,74.0 L66.4,71.6 L70.5,69.8 L73.8,67.8 L77.1,65.8 L80.9,64.3 L85.2,63.7 L89.6,64.0 L93.8,64.4 L98.3,64.3 L103.7,63.9 L109.6,64.3 L114.3,66.5 L116.1,70.3 L114.4,74.7 L111.0,78.4 L108.2,81.0Z'/%3E%3Cpath d='M114.7,81.0 L114.1,84.0 L116.0,87.7 L118.1,92.5 L117.8,97.6 L114.6,101.8 L109.3,104.8 L103.1,107.0 L96.6,108.9 L89.6,109.9 L82.5,109.2 L76.6,106.1 L73.1,101.0 L71.8,95.9 L70.6,92.1 L67.2,90.0 L60.9,88.3 L53.6,85.4 L48.7,81.0 L48.5,75.9 L52.5,71.5 L58.3,68.4 L63.9,65.9 L68.4,63.3 L72.7,60.6 L77.9,58.5 L83.7,57.7 L89.6,58.1 L95.2,58.7 L101.3,58.5 L108.6,58.0 L116.5,58.6 L122.8,61.5 L125.2,66.6 L123.0,72.5 L118.4,77.4 L114.7,81.0Z'/%3E%3Cpath d='M121.2,81.0 L120.4,84.8 L122.8,89.5 L125.4,95.5 L125.1,101.8 L121.0,107.2 L114.3,111.0 L106.6,113.7 L98.4,116.0 L89.6,117.4 L80.7,116.5 L73.2,112.5 L68.8,106.2 L67.2,99.7 L65.8,95.0 L61.5,92.4 L53.5,90.2 L44.4,86.6 L38.2,81.0 L37.9,74.6 L42.9,69.1 L50.3,65.1 L57.2,62.0 L62.9,58.7 L68.4,55.3 L74.9,52.7 L82.2,51.7 L89.6,52.2 L96.7,52.9 L104.3,52.7 L113.5,52.1 L123.4,52.8 L131.4,56.4 L134.4,62.9 L131.6,70.3 L125.8,76.5 L121.2,81.0Z'/%3E%3Cpath d='M127.6,81.0 L126.7,85.6 L129.6,91.2 L132.8,98.4 L132.3,106.1 L127.4,112.5 L119.4,117.1 L110.1,120.4 L100.2,123.2 L89.6,124.8 L78.8,123.8 L69.9,119.0 L64.6,111.3 L62.6,103.5 L60.9,97.9 L55.7,94.7 L46.1,92.1 L35.1,87.7 L27.7,81.0 L27.3,73.3 L33.4,66.7 L42.3,61.9 L50.6,58.1 L57.5,54.2 L64.1,50.1 L71.9,46.9 L80.7,45.7 L89.6,46.4 L98.1,47.2 L107.3,46.9 L118.4,46.1 L130.3,47.0 L139.9,51.4 L143.5,59.2 L140.3,68.1 L133.2,75.6 L127.6,81.0Z'/%3E%3Cpath d='M134.1,81.0 L133.0,86.4 L136.4,92.9 L140.1,101.4 L139.6,110.4 L133.8,117.9 L124.4,123.2 L113.6,127.1 L102.0,130.3 L89.6,132.3 L77.0,131.0 L66.5,125.4 L60.3,116.5 L58.1,107.3 L56.0,100.7 L50.0,97.0 L38.7,94.0 L25.8,88.9 L17.2,81.0 L16.8,72.0 L23.8,64.2 L34.2,58.6 L44.0,54.2 L52.0,49.6 L59.7,44.8 L68.8,41.1 L79.2,39.7 L89.6,40.5 L99.6,41.4 L110.3,41.1 L123.2,40.2 L137.3,41.2 L148.5,46.4 L152.7,55.5 L148.9,65.9 L140.7,74.7 L134.1,81.0Z'/%3E%3Cpath d='M140.5,81.0 L139.2,87.1 L143.2,94.7 L147.4,104.4 L146.9,114.6 L140.2,123.2 L129.5,129.3 L117.1,133.8 L103.8,137.5 L89.6,139.7 L75.2,138.3 L63.2,131.8 L56.1,121.6 L53.5,111.1 L51.1,103.6 L44.2,99.3 L31.3,95.8 L16.6,90.0 L6.7,81.0 L6.2,70.7 L14.3,61.8 L26.2,55.4 L37.4,50.3 L46.6,45.1 L55.4,39.5 L65.8,35.3 L77.7,33.8 L89.6,34.6 L101.0,35.7 L113.4,35.3 L128.1,34.3 L144.2,35.5 L157.0,41.4 L161.9,51.8 L157.5,63.7 L148.1,73.8 L140.5,81.0Z'/%3E%3Cpath d='M147.0,81.0 L145.5,87.9 L150.0,96.4 L154.7,107.3 L154.1,118.9 L146.7,128.6 L134.5,135.5 L120.5,140.5 L105.6,144.7 L89.6,147.2 L73.3,145.6 L59.8,138.3 L51.9,126.8 L48.9,114.9 L46.3,106.5 L38.4,101.7 L24.0,97.7 L7.3,91.2 L-3.8,81.0 L-4.4,69.4 L4.7,59.4 L18.2,52.1 L30.8,46.4 L41.1,40.5 L51.1,34.3 L62.8,29.5 L76.2,27.8 L89.6,28.7 L102.5,29.9 L116.4,29.5 L133.0,28.4 L151.1,29.7 L165.6,36.4 L171.0,48.1 L166.1,61.5 L155.5,72.9 L147.0,81.0Z'/%3E%3Cpath d='M153.4,81.0 L151.8,88.7 L156.8,98.1 L162.1,110.3 L161.4,123.2 L153.1,134.0 L139.6,141.6 L124.0,147.2 L107.4,151.8 L89.6,154.6 L71.5,152.8 L56.5,144.7 L47.6,131.9 L44.3,118.8 L41.4,109.3 L32.7,104.0 L16.6,99.6 L-1.9,92.3 L-14.3,81.0 L-15.0,68.1 L-4.8,56.9 L10.1,48.9 L24.2,42.6 L35.6,36.0 L46.7,29.0 L59.8,23.7 L74.7,21.8 L89.6,22.8 L103.9,24.2 L119.4,23.7 L137.9,22.5 L158.0,23.9 L174.1,31.3 L180.2,44.4 L174.7,59.3 L162.9,72.0 L153.4,81.0Z'/%3E%3Cpath d='M256.1,108.0 L257.1,108.9 L258.1,110.2 L258.5,111.6 L257.7,112.8 L256.0,113.3 L253.9,113.2 L252.1,112.9 L250.8,112.7 L249.6,112.8 L248.3,113.0 L247.0,113.0 L245.8,112.7 L244.7,112.1 L243.7,111.5 L242.5,110.9 L241.3,110.1 L240.5,109.1 L240.5,108.0 L241.5,107.0 L242.9,106.3 L244.2,105.8 L244.9,105.2 L245.1,104.2 L245.4,103.0 L246.4,101.8 L247.9,101.2 L249.6,101.3 L251.1,101.9 L252.4,102.6 L253.5,103.3 L254.5,103.9 L255.2,104.7 L255.6,105.6 L255.5,106.5 L255.6,107.3 L256.1,108.0Z'/%3E%3Cpath d='M263.3,108.0 L265.5,110.0 L267.8,112.6 L268.5,115.6 L266.8,118.1 L263.1,119.3 L258.8,119.1 L255.0,118.4 L252.1,118.0 L249.6,118.2 L246.9,118.6 L244.1,118.6 L241.4,117.9 L239.2,116.7 L237.0,115.4 L234.6,114.1 L232.1,112.5 L230.3,110.4 L230.3,108.0 L232.3,105.9 L235.4,104.4 L238.1,103.4 L239.5,102.1 L240.0,100.0 L240.8,97.3 L242.7,94.8 L245.9,93.5 L249.6,93.7 L252.9,94.9 L255.6,96.5 L257.9,97.9 L260.0,99.3 L261.6,101.0 L262.3,102.9 L262.2,104.8 L262.3,106.4 L263.3,108.0Z'/%3E%3Cpath d='M270.6,108.0 L273.9,111.0 L277.4,115.1 L278.5,119.7 L275.9,123.5 L270.3,125.2 L263.6,125.0 L257.9,123.9 L253.4,123.2 L249.6,123.5 L245.5,124.2 L241.2,124.2 L237.1,123.1 L233.7,121.3 L230.4,119.3 L226.7,117.3 L222.8,114.8 L220.0,111.6 L220.1,108.0 L223.2,104.7 L227.9,102.5 L232.0,100.9 L234.2,99.0 L234.9,95.8 L236.1,91.6 L239.1,87.8 L244.0,85.8 L249.6,86.1 L254.6,88.0 L258.7,90.4 L262.3,92.6 L265.5,94.7 L267.9,97.2 L269.0,100.2 L268.9,103.1 L269.0,105.6 L270.6,108.0Z'/%3E%3Cpath d='M277.9,108.0 L282.4,112.0 L287.0,117.5 L288.5,123.7 L285.0,128.8 L277.4,131.2 L268.5,130.9 L260.7,129.4 L254.8,128.5 L249.6,128.9 L244.1,129.8 L238.3,129.8 L232.8,128.4 L228.2,125.9 L223.7,123.2 L218.7,120.5 L213.5,117.2 L209.8,112.9 L209.9,108.0 L214.0,103.6 L220.4,100.6 L225.9,98.4 L228.9,95.8 L229.9,91.5 L231.4,85.9 L235.5,80.8 L242.1,78.1 L249.6,78.5 L256.4,81.1 L261.9,84.3 L266.7,87.3 L271.0,90.1 L274.3,93.5 L275.7,97.4 L275.6,101.4 L275.7,104.8 L277.9,108.0Z'/%3E%3Cpath d='M285.1,108.0 L290.8,113.1 L296.6,120.0 L298.5,127.8 L294.1,134.2 L284.6,137.2 L273.4,136.8 L263.6,134.9 L256.1,133.8 L249.6,134.3 L242.7,135.4 L235.3,135.4 L228.5,133.6 L222.6,130.5 L217.1,127.1 L210.8,123.7 L204.2,119.6 L199.6,114.2 L199.6,108.0 L204.9,102.5 L212.9,98.6 L219.9,96.0 L223.5,92.7 L224.8,87.3 L226.7,80.3 L231.8,73.8 L240.1,70.4 L249.6,70.9 L258.1,74.2 L265.1,78.2 L271.1,81.9 L276.5,85.5 L280.6,89.8 L282.4,94.7 L282.3,99.7 L282.4,104.0 L285.1,108.0Z'/%3E%3Cpath d='M292.4,108.0 L299.2,114.1 L306.2,122.4 L308.5,131.8 L303.2,139.5 L291.7,143.2 L278.2,142.7 L266.5,140.4 L257.4,139.1 L249.6,139.7 L241.3,141.0 L232.4,141.0 L224.2,138.8 L217.1,135.1 L210.4,131.0 L202.9,126.9 L194.9,121.9 L189.4,115.4 L189.4,108.0 L195.7,101.4 L205.4,96.7 L213.8,93.5 L218.2,89.6 L219.7,83.1 L222.0,74.6 L228.2,66.8 L238.2,62.7 L249.6,63.4 L259.9,67.3 L268.2,72.2 L275.5,76.6 L282.0,80.9 L287.0,86.0 L289.1,92.0 L289.0,98.0 L289.1,103.1 L292.4,108.0Z'/%3E%3Cpath d='M299.7,108.0 L307.7,115.2 L315.8,124.9 L318.5,135.8 L312.3,144.9 L298.9,149.1 L283.1,148.6 L269.3,145.9 L258.8,144.3 L249.6,145.0 L239.9,146.6 L229.5,146.6 L219.8,144.1 L211.6,139.7 L203.8,134.9 L194.9,130.1 L185.6,124.3 L179.1,116.7 L179.2,108.0 L186.6,100.2 L197.9,94.8 L207.7,91.1 L212.9,86.4 L214.6,78.8 L217.4,68.9 L224.6,59.8 L236.3,55.0 L249.6,55.8 L261.6,60.4 L271.4,66.1 L279.9,71.3 L287.5,76.3 L293.3,82.3 L295.9,89.3 L295.6,96.3 L295.8,102.3 L299.7,108.0Z'/%3E%3Cpath d='M306.9,108.0 L316.1,116.2 L325.4,127.3 L328.5,139.9 L321.4,150.2 L306.1,155.1 L287.9,154.5 L272.2,151.4 L260.1,149.6 L249.6,150.4 L238.5,152.2 L226.6,152.2 L215.5,149.3 L206.1,144.3 L197.1,138.8 L187.0,133.3 L176.3,126.7 L168.9,118.0 L169.0,108.0 L177.4,99.1 L190.4,92.9 L201.6,88.6 L207.5,83.3 L209.6,74.6 L212.7,63.2 L220.9,52.8 L234.3,47.4 L249.6,48.2 L263.3,53.5 L274.6,60.0 L284.3,66.0 L293.1,71.7 L299.7,78.6 L302.6,86.6 L302.3,94.6 L302.5,101.5 L306.9,108.0Z'/%3E%3Cpath d='M314.2,108.0 L324.5,117.2 L335.1,129.8 L338.5,143.9 L330.6,155.5 L313.2,161.1 L292.8,160.4 L275.0,156.9 L261.4,154.9 L249.6,155.8 L237.1,157.8 L223.7,157.9 L211.2,154.5 L200.6,148.9 L190.5,142.7 L179.0,136.5 L167.0,129.0 L158.7,119.2 L158.7,108.0 L168.3,98.0 L182.8,91.0 L195.5,86.1 L202.2,80.2 L204.5,70.4 L208.0,57.6 L217.3,45.8 L232.4,39.7 L249.6,40.6 L265.1,46.6 L277.7,53.9 L288.7,60.6 L298.6,67.1 L306.0,74.8 L309.3,83.9 L309.0,92.9 L309.2,100.6 L314.2,108.0Z'/%3E%3Cpath d='M321.5,108.0 L332.9,118.3 L344.7,132.2 L348.5,148.0 L339.7,160.9 L320.4,167.0 L297.7,166.3 L277.9,162.4 L262.7,160.2 L249.6,161.2 L235.6,163.4 L220.8,163.5 L206.9,159.8 L195.1,153.5 L183.8,146.6 L171.1,139.7 L157.8,131.4 L148.4,120.5 L148.5,108.0 L159.1,96.8 L175.3,89.1 L189.5,83.7 L196.9,77.0 L199.4,66.1 L203.3,51.9 L213.6,38.8 L230.5,32.0 L249.6,33.1 L266.8,39.7 L280.9,47.8 L293.1,55.3 L304.1,62.6 L312.4,71.1 L316.0,81.2 L315.7,91.2 L315.9,99.8 L321.5,108.0Z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / calc(320 * var(--u)) calc(180 * var(--u)), radial-gradient(80% 100% at 30% 40%, #145a3c, #062a1c); animation: lt-topo 50s linear infinite; }
.lt-topo::after { left: 28%; top: 45%; width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: #c6f432; box-shadow: 0 0 0 0 rgba(198, 244, 50, .7); animation: lt-ping 2s ease-out infinite; }
@keyframes lt-topo { to { background-position: calc(320 * var(--u)) 0, 0 0; } }
@keyframes lt-ping { to { box-shadow: 0 0 0 calc(20 * var(--u)) rgba(198, 244, 50, 0); } }

.lt-marble { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.006 0.022' numOctaves='4' seed='23' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='table' tableValues='1 .22 .04 0 0 0 0 0 0 0 0 0 0 0 0 0'/%3E%3CfeFuncG type='table' tableValues='.88 .18 .03 0 0 0 0 0 0 0 0 0 0 0 0 0'/%3E%3CfeFuncB type='table' tableValues='.6 .1 .02 0 0 0 0 0 0 0 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E") 0 0 / calc(400 * var(--u)) calc(200 * var(--u)), #0c0b0a; }
.lt-marble::after { inset: 0 -100%; background: linear-gradient(105deg, transparent 42%, rgba(255, 240, 210, .2) 50%, transparent 58%); animation: lt-sweep 6s ease-in-out infinite; }

.lt-carbon { background: linear-gradient(27deg, #151515 5px, transparent 5px) 0 5px, linear-gradient(207deg, #151515 5px, transparent 5px) 10px 0, linear-gradient(27deg, #222 5px, transparent 5px) 0 10px, linear-gradient(207deg, #222 5px, transparent 5px) 10px 5px, linear-gradient(90deg, #1b1b1b 10px, transparent 10px), linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424); background-color: #131313; background-size: 20px 20px; }
.lt-carbon::before { top: -60%; bottom: -60%; left: 62%; width: calc(34 * var(--u)); background: linear-gradient(90deg, var(--look, #ef4444) 0 38%, transparent 38% 62%, var(--look, #ef4444) 62%); rotate: 22deg; box-shadow: 0 0 calc(16 * var(--u)) color-mix(in srgb, var(--look, #ef4444) 50%, transparent); }
.lt-carbon::after { inset: 0 -100%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .14) 50%, transparent 60%); animation: lt-sweep 4.5s ease-in-out infinite; }

.lt-forge { background: radial-gradient(50% 70% at 50% 118%, rgba(255, 180, 70, .95), rgba(255, 90, 20, .5) 42%, transparent 72%), linear-gradient(#0d0b0a, #1f1610 70%, #3a2412); }
.lt-forge::before { left: 50%; top: 100%; width: 180%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 214, 130, .6) 0 .7deg, transparent .7deg 9deg); -webkit-mask-image: radial-gradient(circle, transparent 4%, #000 6%, transparent 40%); mask-image: radial-gradient(circle, transparent 4%, #000 6%, transparent 40%); animation: lt-spin 24s linear infinite; }
.lt-forge::after { inset: 0 0 -100%; background-image: radial-gradient(calc(1.6 * var(--u)) calc(1.6 * var(--u)) at 46% 92%, #fff6d6 60%, transparent 70%), radial-gradient(calc(1.2 * var(--u)) calc(1.2 * var(--u)) at 52% 80%, #ffd36b 60%, transparent 70%), radial-gradient(calc(1.8 * var(--u)) calc(1.8 * var(--u)) at 40% 62%, #ffb03b 60%, transparent 70%), radial-gradient(calc(1.2 * var(--u)) calc(1.2 * var(--u)) at 60% 50%, #fff6d6 60%, transparent 70%), radial-gradient(calc(1.5 * var(--u)) calc(1.5 * var(--u)) at 32% 30%, #ffd36b 60%, transparent 70%), radial-gradient(calc(1.2 * var(--u)) calc(1.2 * var(--u)) at 68% 20%, #ffe9a8 60%, transparent 70%), radial-gradient(calc(1.4 * var(--u)) calc(1.4 * var(--u)) at 24% 12%, #ffb03b 60%, transparent 70%), radial-gradient(calc(1.4 * var(--u)) calc(1.4 * var(--u)) at 78% 40%, #ffb03b 60%, transparent 70%); background-size: 100% 50%; animation: lt-rise 2.4s linear infinite; }
@keyframes lt-spin { to { rotate: 360deg; } }

.lt-galaxy { background: radial-gradient(1.2px 1.2px at 8% 30%, #fff 60%, transparent 70%), radial-gradient(1px 1px at 24% 76%, #fff 60%, transparent 70%), radial-gradient(1.4px 1.4px at 88% 22%, #ffe9a8 60%, transparent 70%), radial-gradient(1px 1px at 72% 84%, #bfe0ff 60%, transparent 70%), radial-gradient(1px 1px at 94% 64%, #fff 60%, transparent 70%), radial-gradient(1.2px 1.2px at 14% 12%, #fff 60%, transparent 70%), radial-gradient(70% 120% at 50% 50%, #1a0b3d, #03020a 70%); }
.lt-galaxy::before { left: 50%; top: 50%; width: calc(300 * var(--u)); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fff 0 2.5%, #ffe2b8 5%, rgba(255, 150, 210, .65) 12%, transparent 40%), conic-gradient(from 0deg, transparent, rgba(150, 120, 255, .85), transparent 22%, rgba(255, 120, 200, .7) 30%, transparent 50%, rgba(120, 200, 255, .75), transparent 72%, rgba(200, 150, 255, .7) 80%, transparent); -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 68%); mask-image: radial-gradient(circle, #000 18%, transparent 68%); transform: scaleY(.36) rotate(0deg); animation: lt-galaxy 26s linear infinite; }
.lt-galaxy::after { inset: 0; background: radial-gradient(20% 40% at 50% 50%, rgba(255, 220, 255, .35), transparent 70%); animation: lt-twinkle 3s ease-in-out infinite alternate; }
@keyframes lt-galaxy { to { transform: scaleY(.36) rotate(360deg); } }

/* Decorations around a big avatar (`.deco-<id>` with five empty <b> for its parts) */
.deco { --bw: 4px; position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.deco b { position: absolute; display: block; }
.pcard-face, .deco-stage { position: relative; }
.deco-stage { --bw: 2.5px; display: inline-grid; place-items: center; }
.pcard-face .deco { inset: 4px; }
.deco-stage .deco { inset: 0; }
.lvl-profile .deco { inset: 13px; }

.deco-halo b:nth-child(1) { left: 20%; right: 20%; top: -16%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, transparent 58%, #fff3c4 64%, #ffd36b 76%, transparent 86%); filter: drop-shadow(0 0 6px rgba(255, 211, 107, .9)); animation: deco-float 3s ease-in-out infinite; }
.deco-halo b:nth-child(2) { inset: -8%; border-radius: 50%; background: radial-gradient(closest-side, transparent 80%, rgba(255, 230, 160, .35) 92%, transparent); }

.deco-orbit { animation: deco-spin 7s linear infinite; }
.deco-orbit b:nth-child(1) { inset: -12%; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .4); }
.deco-orbit b:nth-child(2) { left: 50%; top: -12%; width: 18%; aspect-ratio: 1; margin-left: -9%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #bfe6ff, #3b82f6 60%, #1e3a8a); box-shadow: 0 0 10px rgba(108, 184, 255, .8); }
.deco-orbit b:nth-child(3) { right: -4%; bottom: 4%; width: 12%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe0b8, #ff7a2f 65%); box-shadow: 0 0 8px rgba(255, 122, 47, .8); }
.deco-orbit b:nth-child(4) { left: 0; bottom: 8%; width: 8%; aspect-ratio: 1; border-radius: 50%; background: #e5e7eb; box-shadow: 0 0 6px #fff; }

.deco-flame b { bottom: -10%; width: 30%; height: 50%; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(60% 70% at 50% 75%, #fff3b0, #ffb347 35%, #ff5a1f 65%, transparent 72%); transform-origin: 50% 100%; filter: blur(.5px); animation: deco-flicker .9s ease-in-out infinite alternate; }
.deco-flame b:nth-child(1) { left: -6%; rotate: -28deg; }
.deco-flame b:nth-child(2) { right: -6%; rotate: 28deg; animation-delay: -.4s; }
.deco-flame b:nth-child(3) { left: 35%; bottom: -16%; height: 34%; animation-delay: -.2s; }
.deco-flame b:nth-child(4) { left: 12%; bottom: -14%; width: 22%; height: 36%; rotate: -12deg; animation-delay: -.6s; }
.deco-flame b:nth-child(5) { right: 12%; bottom: -14%; width: 22%; height: 36%; rotate: 12deg; animation-delay: -.1s; }

.deco-crown b:nth-child(1) { right: -10%; top: -18%; width: 48%; aspect-ratio: 4 / 3; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff1a8'/%3E%3Cstop offset='.55' stop-color='%23ffc53d'/%3E%3Cstop offset='1' stop-color='%23d98a00'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 20L0 5l9 7 7-11 7 11 9-7-2 15z' fill='url(%23g)' stroke='%238a5a00' stroke-width='1.2' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='14' r='2.4' fill='%23ff2e63'/%3E%3Ccircle cx='8' cy='16' r='1.6' fill='%2367e8f9'/%3E%3Ccircle cx='24' cy='16' r='1.6' fill='%2367e8f9'/%3E%3C/svg%3E") center / contain no-repeat; rotate: 22deg; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); animation: deco-float 3.4s ease-in-out infinite; }
.deco-crown b:nth-child(2) { right: 10%; top: -10%; width: 8%; aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.4 4.8 10.6 12 12-7.2 1.4-11.2 5.6-12 12-.8-6.4-4.8-10.6-12-12C7.2 10.6 11.2 6.4 12 0z' fill='%23ffd36b'/%3E%3Cpath d='M12 6c.4 3 2.4 5.2 6 6-3.6.8-5.6 3-6 6-.4-3-2.4-5.2-6-6 3.6-.8 5.6-3 6-6z' fill='%23fff6d6'/%3E%3C/svg%3E") center / contain no-repeat; animation: deco-twinkle 1.8s ease-in-out infinite; }

.deco-ears b:nth-child(-n+2) { top: -14%; width: 34%; height: 34%; background: var(--look, #ff9ac0); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform-origin: 50% 100%; }
.deco-ears b:nth-child(1) { left: 2%; rotate: -24deg; }
.deco-ears b:nth-child(2) { right: 2%; rotate: 24deg; animation: deco-twitch 4s ease-in-out infinite; }
.deco-ears b:nth-child(3), .deco-ears b:nth-child(4) { top: -4%; width: 18%; height: 20%; background: #ffe0ea; clip-path: polygon(50% 0, 100% 100%, 0 100%); transform-origin: 50% 160%; }
.deco-ears b:nth-child(3) { left: 10%; rotate: -24deg; }
.deco-ears b:nth-child(4) { right: 10%; rotate: 24deg; animation: deco-twitch 4s ease-in-out infinite; }

.deco-phones b:nth-child(1) { left: 2%; right: 2%; top: -12%; height: 70%; border: var(--bw) solid #2b2b35; border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; box-shadow: inset 0 calc(var(--bw) * .6) 0 rgba(255, 255, 255, .12); }
.deco-phones b:nth-child(2), .deco-phones b:nth-child(3) { top: 36%; width: 22%; height: 38%; border-radius: 40%; background: linear-gradient(#3a3a48, #15151b); box-shadow: inset 0 0 0 calc(var(--bw) * .6) var(--look, #ff6fb5), 0 2px 6px rgba(0, 0, 0, .5); }
.deco-phones b:nth-child(2) { left: -10%; }
.deco-phones b:nth-child(3) { right: -10%; }
.deco-phones b:nth-child(4), .deco-phones b:nth-child(5) { right: -18%; top: 10%; width: 18%; aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18V5l11-2v12' fill='none' stroke='%23f2f1ee' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='6.5' cy='18' r='3' fill='%23f2f1ee'/%3E%3Ccircle cx='17.5' cy='15' r='3' fill='%23f2f1ee'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; animation: deco-up 2.8s ease-out infinite; }
.deco-phones b:nth-child(5) { right: auto; left: -16%; top: 20%; width: 14%; animation-delay: 1.4s; }

.deco-hearts b { width: 20%; aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.2 0 3.6 1.2 4.3 2.4.7-1.2 2.1-2.4 4.3-2.4 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z' fill='%23ff5c93'/%3E%3Cpath d='M7 7.5c-1.4.3-2.3 1.6-2 3' stroke='%23ffd0e0' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; animation: deco-up 3s ease-out infinite; }
.deco-hearts b:nth-child(1) { left: -10%; top: 40%; }
.deco-hearts b:nth-child(2) { right: -12%; top: 30%; width: 24%; animation-delay: .6s; }
.deco-hearts b:nth-child(3) { left: 4%; top: 4%; width: 14%; animation-delay: 1.2s; }
.deco-hearts b:nth-child(4) { right: 2%; top: 64%; width: 16%; animation-delay: 1.8s; }
.deco-hearts b:nth-child(5) { left: 40%; top: -10%; width: 15%; animation-delay: 2.4s; }

.deco-snow b { top: -14%; width: 14%; aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eaf6ff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9.5 3.5L12 6l2.5-2.5M9.5 20.5L12 18l2.5 2.5'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; filter: drop-shadow(0 0 3px rgba(200, 230, 255, .9)); animation: deco-fall 4s linear infinite; }
.deco-snow b:nth-child(1) { left: -6%; }
.deco-snow b:nth-child(2) { left: 22%; width: 10%; animation-delay: .8s; }
.deco-snow b:nth-child(3) { left: 50%; width: 16%; animation-delay: 1.6s; }
.deco-snow b:nth-child(4) { left: 78%; width: 11%; animation-delay: 2.4s; }
.deco-snow b:nth-child(5) { left: 98%; animation-delay: 3.2s; }

.deco-pixels b { width: 12%; aspect-ratio: 1; background: var(--c, #67e8f9); clip-path: polygon(33% 0, 67% 0, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0 67%, 0 33%, 33% 33%); image-rendering: pixelated; animation: deco-blink 1.6s steps(2) infinite; }
.deco-pixels b:nth-child(1) { --c: #67e8f9; left: -8%; top: 10%; }
.deco-pixels b:nth-child(2) { --c: #ff6fb5; right: -8%; top: 22%; width: 9%; animation-delay: .4s; }
.deco-pixels b:nth-child(3) { --c: #c6f432; right: 4%; bottom: -4%; animation-delay: .8s; }
.deco-pixels b:nth-child(4) { --c: #ffe14d; left: 2%; bottom: 4%; width: 8%; animation-delay: 1.2s; }
.deco-pixels b:nth-child(5) { --c: #b78cff; left: 44%; top: -14%; width: 10%; animation-delay: .2s; }

.deco-sparks { animation: deco-spin 14s linear infinite; }
.deco-sparks b { width: 18%; aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.4 4.8 10.6 12 12-7.2 1.4-11.2 5.6-12 12-.8-6.4-4.8-10.6-12-12C7.2 10.6 11.2 6.4 12 0z' fill='%23ffd36b'/%3E%3Cpath d='M12 6c.4 3 2.4 5.2 6 6-3.6.8-5.6 3-6 6-.4-3-2.4-5.2-6-6 3.6-.8 5.6-3 6-6z' fill='%23fff6d6'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 5px rgba(255, 200, 80, .95)); animation: deco-twinkle 1.6s ease-in-out infinite; }
.deco-sparks b:nth-child(1) { left: 41%; top: -16%; }
.deco-sparks b:nth-child(2) { right: -14%; top: 30%; width: 13%; animation-delay: .3s; }
.deco-sparks b:nth-child(3) { right: 6%; bottom: -10%; width: 16%; animation-delay: .6s; }
.deco-sparks b:nth-child(4) { left: -8%; bottom: 2%; width: 12%; animation-delay: .9s; }
.deco-sparks b:nth-child(5) { left: -14%; top: 24%; width: 15%; animation-delay: 1.2s; }

.deco-lightning b:nth-child(-n+3) { width: 24%; aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 1L4 14h6.5L9 23l11-14h-7z' fill='%23ffe14d' stroke='%23fff7c2' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(255, 225, 77, .95)); opacity: 0; animation: deco-zap 2.4s steps(1) infinite; }
.deco-lightning b:nth-child(1) { left: -16%; top: 6%; rotate: -16deg; }
.deco-lightning b:nth-child(2) { right: -16%; top: 34%; rotate: 14deg; animation-delay: .8s; }
.deco-lightning b:nth-child(3) { left: 38%; top: -22%; width: 20%; animation-delay: 1.6s; }
.deco-lightning b:nth-child(4) { inset: -9%; border-radius: 50%; border: 2px dashed rgba(103, 232, 249, .85); filter: drop-shadow(0 0 4px #67e8f9); animation: deco-spin 3s linear infinite; }

@keyframes deco-float { 50% { translate: 0 -8%; } }
@keyframes deco-spin { to { rotate: 360deg; } }
@keyframes deco-flicker { from { transform: scaleY(.85) scaleX(1.05); opacity: .85; } to { transform: scaleY(1.12) scaleX(.94); opacity: 1; } }
@keyframes deco-twitch { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-14deg); } 94% { transform: rotate(6deg); } }
@keyframes deco-up { 0% { opacity: 0; translate: 0 20%; scale: .6; } 20% { opacity: 1; } 100% { opacity: 0; translate: 0 -120%; scale: 1.1; } }
@keyframes deco-fall { 0% { opacity: 0; translate: 0 0; rotate: 0deg; } 15% { opacity: 1; } 100% { opacity: 0; translate: 0 760%; rotate: 180deg; } }
@keyframes deco-blink { 50% { opacity: .15; } }
@keyframes deco-twinkle { 50% { scale: .55; opacity: .55; } }
@keyframes deco-zap { 0%, 10% { opacity: 1; } 4% { opacity: .3; } 12%, 100% { opacity: 0; } }

/* Name effects */
.name-fx { position: relative; }
.fx-gradient { background: linear-gradient(90deg, var(--look, #ff6fb5), color-mix(in srgb, var(--look, #ff6fb5) 35%, var(--text))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-shimmer { background: linear-gradient(110deg, var(--text) 35%, #fff 47%, var(--look, #b78cff) 53%, var(--text) 65%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-flow 3.4s linear infinite; }
.fx-neon { color: color-mix(in srgb, var(--look, #ff3df0) 22%, var(--text)); text-shadow: 0 0 3px var(--look, #ff3df0), 0 0 9px var(--look, #ff3df0), 0 0 18px var(--look, #ff3df0); animation: fx-flicker 6s steps(1) infinite; }
.fx-rainbow { background: linear-gradient(90deg, #ff5f6d, #ffc371, #c6f432, #3ddc84, #67e8f9, #8b5cf6, #ff6fb5, #ff5f6d) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-flow 4s linear infinite; }
.fx-fire { background: linear-gradient(0deg, #ff3d00, #ff9a3c 45%, #ffe066 85%) 0 0 / 100% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 5px rgba(255, 110, 40, .6)); animation: fx-fire 1.1s ease-in-out infinite alternate; }
.fx-glitch { color: var(--text); }
.fx-glitch::before, .fx-glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; pointer-events: none; }
.fx-glitch::before { color: #ff004c; translate: -1.5px 0; clip-path: inset(10% 0 60% 0); animation: fx-glitch 2.2s steps(1) infinite; }
.fx-glitch::after { color: #00f0ff; translate: 1.5px 0; clip-path: inset(55% 0 15% 0); animation: fx-glitch 2.2s steps(1) .3s infinite reverse; }
.fx-gold { background: linear-gradient(100deg, #b8860b, #ffe9a0 28%, #d4a017 48%, #fff4c2 62%, #b8860b 82%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 4px rgba(255, 200, 80, .35)); animation: fx-flow 5s linear infinite; }
@keyframes fx-flow { to { background-position: -200% 0; } }
@keyframes fx-flicker { 0%, 40%, 44%, 80%, 100% { opacity: 1; } 42%, 82% { opacity: .55; } }
@keyframes fx-fire { to { background-position: 0 100%; filter: drop-shadow(0 0 8px rgba(255, 140, 40, .8)); } }
@keyframes fx-glitch { 0% { clip-path: inset(10% 0 60% 0); } 20% { clip-path: inset(70% 0 5% 0); translate: 2px 0; } 40% { clip-path: inset(30% 0 40% 0); translate: -2px 0; } 60% { clip-path: inset(85% 0 2% 0); } 80% { clip-path: inset(5% 0 80% 0); translate: 1px 0; } }
.look-status { margin-left: 6px; font-size: .86em; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  .lt, .lt::before, .lt::after, .deco, .deco b, .name-fx, .name-fx::before, .name-fx::after { animation: none !important; }
}

/* The look editor: a live card on top, tabs for theme, avatar, name and colour */
.look-top { position: sticky; z-index: 5; top: 0; margin: 0 -24px; padding: 10px 24px 10px; background: var(--surface); }
.look-preview { pointer-events: none; }
.look-preview .pcard { box-shadow: none; }
.look-preview :is(.pcard-bio, .pcard-stats, .pcard-chips) { display: none; }
.look-tabs { display: flex; gap: 4px; margin-top: 10px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.look-tabs button { flex: 1; height: 34px; border-radius: 10px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.look-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.look-pane { min-height: 220px; padding-bottom: 6px; }
.look-h { display: flex; align-items: center; gap: 6px; margin: 16px 2px 8px; color: var(--dim); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lt-grid.top { margin-top: 14px; grid-template-columns: repeat(2, 1fr); }
.lt-tile { position: relative; display: grid; gap: 5px; min-width: 0; text-align: center; cursor: pointer; }
.lt-tile .look-swatch { position: relative; display: grid; place-items: center; height: 64px; overflow: hidden; border-radius: 14px; border: 2px solid transparent; }
.lt-grid.top .look-swatch { height: 46px; }
.lt-tile.on .look-swatch { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 18%, transparent); }
.lt-tile small { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.lt-tile.on small { color: var(--text); font-weight: 700; }
.lt-own { background: var(--surface-2); color: var(--muted); font-size: 20px; }
.lt-lock { position: absolute; top: 5px; right: 5px; z-index: 2; display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 99px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; }
.lt-lock .i { font-size: 10px; stroke-width: 2.4; }
.lt-lock.spark { color: #ffb03b; }
.lt-lock.inline { position: static; padding: 2px 5px; background: var(--pearl); background-size: 200% 100%; color: #2a1d3d; }
.deco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.deco-tile { position: relative; display: grid; justify-items: center; gap: 8px; padding: 18px 4px 8px; overflow: hidden; border-radius: 16px; background: var(--surface-2); border: 2px solid transparent; }
.deco-tile.on { border-color: var(--text); }
.deco-tile small { color: var(--muted); font-size: 11.5px; }
.fx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fx-tile { position: relative; display: grid; gap: 3px; min-width: 0; padding: 12px 12px 10px; border-radius: 14px; background: var(--surface-2); border: 2px solid transparent; text-align: left; font-size: 16px; font-weight: 800; }
.fx-tile > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-tile small { color: var(--dim); font-size: 11.5px; font-weight: 600; }
.fx-tile.on { border-color: var(--text); }
.status-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.status-dot { display: grid; place-items: center; height: 42px; border-radius: 12px; background: var(--surface-2); border: 2px solid transparent; font-size: 20px; }
.status-dot.none { color: var(--muted); font-size: 15px; }
.status-dot.on { border-color: var(--text); }
.look-accents { display: flex; flex-wrap: wrap; gap: 10px; }
.look-dot { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--dot, var(--surface-2)); border: 2px solid transparent; color: var(--muted); font-size: 15px; }
.look-dot.on { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--text)) 35%, transparent); }
.look-motion { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.look-motion small { color: var(--dim); font-size: 12.5px; }
.look-progress { display: block; min-height: 0; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.look-need { display: block; margin: 4px 0 10px; color: var(--dim); font-size: 12.5px; text-align: center; }
.look-progress:empty, .look-need:empty { display: none; }
.look-save { position: sticky; bottom: 0; margin-top: 12px; }
@media (max-width: 760px) { .look-top { margin: 0 -18px; padding: 10px 18px; } }

/* Sparks: the private mark next to your handle and the shop */
.spark-pill { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 2px 8px 2px 6px; border-radius: 99px; background: rgba(255, 176, 59, .14); color: #ffb03b; font-size: 12.5px; font-weight: 800; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.spark-pill .i { font-size: 12px; stroke-width: 2.4; }
.spark-shop-btn { flex-direction: column; gap: 0; min-height: 58px; margin: 16px 0 4px; }
.spark-shop-btn small { font-size: 12px; font-weight: 600; opacity: .85; }
.spark-hero { display: flex; align-items: center; gap: 16px; margin: 6px 0 22px; padding: 18px; border-radius: 24px; border: 1px solid var(--line-strong); background: radial-gradient(80% 140% at 0% 0%, rgba(255, 176, 59, .22), transparent 60%), var(--surface); }
.spark-hero .spark-mark { flex: none; margin: 0; }
.spark-hero b { display: block; font-size: 40px; font-weight: 850; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.spark-hero div span { color: var(--dim); font-size: 13px; }
.sparks-page .block-title { margin: 6px 0 10px; font-size: 17px; }
.sparks-page .hub-hint { margin: -4px 0 10px; }
.shop-list { display: grid; gap: 8px; margin-bottom: 22px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); }
.shop-item.have { border-color: rgba(61, 220, 132, .4); }
.shop-art { position: relative; flex: none; display: grid; place-items: center; width: 78px; height: 58px; overflow: hidden; border-radius: 14px; }
.shop-art.look-swatch { --u: .39px; }
.shop-icon { font-size: 24px; }
.shop-icon.plus { background: var(--pearl); background-size: 200% 100%; color: #2a1d3d; }
.shop-icon.boost { background: var(--grad); color: #fff; }
.shop-stage { overflow: visible; background: var(--surface-2); }
.shop-stage .avatar.lg { width: 38px; height: 38px; font-size: 12px; }
.shop-name { padding: 0 6px; background: var(--surface-2); font-size: 14px; font-weight: 850; }
.shop-name .name-fx { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.shop-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.shop-text b { font-size: 14.5px; }
.shop-text small { color: var(--dim); font-size: 12px; }
.shop-item .btn { flex: none; min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.shop-item .btn .i { font-size: 15px; }

/* Profile buttons and the look editor on a phone */
/* The crown on a Plus-only button: its icon is drawn at its own size, not at the 19 px of button icons. */
.lock-crown > .i, .btn .lock-crown > .i { width: 10px; height: 10px; font-size: 10px; stroke-width: 2.2; }
.look-btn .lock-crown { top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--bg); }
.look-btn .lock-crown > .i { width: 11px; height: 11px; font-size: 11px; }
.profile-actions .look-btn { overflow: visible; }
.steam-apply .btn-label { margin-left: 2px; }
@media (max-width: 760px) {
  /* «Заявка в Steam» is one icon on a phone, like the palette and the pen next to it. */
  .profile-actions .btn.steam-apply { flex: none; width: 48px; padding: 0; gap: 0; }
  /* Stronger than the narrow-phone rule that hides icons in text buttons */
  .profile-actions .btn.steam-apply:not(.btn-square):not(.btn-primary) .i { display: block; }
  .steam-apply .btn-label { display: none; }
}
.look-tabs button { flex: 1 1 0; min-width: 0; padding: 0 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-save { z-index: 6; }


/* Chat composer: the picture button's file input stays inside its own circle. A text-field rule gave it
   46 px and padding, and where a browser widened it, it lay over the send button (painted above it,
   being positioned) and a tap on «send» opened the photo picker. */
.composer label.cbtn { overflow: hidden; }
.composer input[type="file"] { flex: none; min-width: 0; min-height: 0; max-height: none; padding: 0; border: 0; border-radius: 0; font-size: 0; }
.composer button[type="submit"] { position: relative; z-index: 1; }
/* Recording a voice message in a chat */
.chat-form.recording > input[name="text"], .chat-form.recording > .cbtn, .chat-form.recording > button[type="submit"] { display: none; }
.chat-form .voice-rec span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bubble .voice-note { min-width: 190px; }

/* Holding a video in the feed pauses it */
#feed .card-media { -webkit-touch-callout: none; }
.hold-mark { position: absolute; z-index: 2; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border-radius: 50%; background: rgba(12, 12, 14, .45); color: #fff; font-size: 28px; pointer-events: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: hold-in .18s var(--ease) both; }
.hold-mark .i { stroke-width: 2.6; }
@keyframes hold-in { from { opacity: 0; transform: scale(.8); } }

/* The recording bar's buttons are text buttons, not the round composer buttons around them */
.chat-form .voice-rec .btn { flex: none; display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; }
.chat-form .voice-rec .btn-grad { background: var(--grad); color: #fff; }
.chat-form .voice-rec .btn-ghost { background: var(--surface-2); color: var(--text); }
.chat-form .voice-rec .btn .i { font-size: 15px; }
.chat-form .voice-rec { min-width: 0; }

/* Versions of a project */
.fork-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 2px; }
.fork-line, .fork-count { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 99px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 650; }
.fork-line small { color: var(--muted); font-weight: 600; }
.fork-line > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 62vw; }
.fork-line .i, .fork-count .i { flex: none; font-size: 15px; color: #7c6cff; }
.fork-btn .i { color: #7c6cff; }
.fork-hint { flex-basis: 100%; margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.fork-mark { width: 52px; height: 52px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 17px; background: linear-gradient(135deg, #7c6cff, #3ddc84); color: #fff; font-size: 25px; }
.fork-note { display: flex; gap: 8px; margin: 4px 0; padding: 12px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.fork-note .i { flex: none; margin-top: 2px; }
.fork-computers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 4px; }
.fork-computer { position: relative; display: block; cursor: pointer; }
.fork-computer input { position: absolute; opacity: 0; pointer-events: none; }
.fork-computer > span { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 11px 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.fork-computer > span .i { grid-row: span 2; font-size: 18px; color: var(--muted); }
.fork-computer b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.fork-computer small { color: var(--muted); font-size: 12px; }
.fork-computer input:checked + span { box-shadow: inset 0 0 0 2px #7c6cff; }
.fork-computer.off { opacity: .55; cursor: default; }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* dotop's own ads next to Plus: ИИ-мир and publishing in Steam, the same card in their own colours */
.house-card .plus-promo-mark { color: #10131a; }
.house-card .plus-promo-cta { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }



/* Own ad cards. No orbits or rings: wide ribbons of a finite length run off the card and drift a little,
   each card has its own background and its own mark in the middle. */
.promo-hero { position: absolute; z-index: 2; top: 7%; left: 50%; width: min(70%, 340px); aspect-ratio: 1; margin-left: calc(min(70%, 340px) / -2); display: grid; place-items: center; }
.hero-mark { position: relative; display: grid; place-items: center; width: 50%; aspect-ratio: 1; animation: mark-float 6s ease-in-out infinite; }
/* The light behind each mark, in the card's colour; it breathes slowly */
.promo-hero::before { content: ""; position: absolute; inset: 2%; border-radius: 50%; background: radial-gradient(circle, var(--bloom, transparent) 0%, transparent 66%); pointer-events: none; animation: bloom-breathe 4.5s ease-in-out infinite; }
@keyframes bloom-breathe { 50% { opacity: .72; transform: scale(.94); } }
.plus-promo[data-action="house-tap"] { cursor: pointer; }
.hero-mark .i { width: 100%; height: 100%; }
@keyframes mark-float { 50% { transform: translateY(-8px); } }
.ribbon { position: absolute; z-index: 1; inset: -8%; width: 116%; height: 116%; overflow: visible; pointer-events: none; transform-origin: 50% 50%; animation: ribbon-drift var(--t, 12s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
.ribbon path { fill: none; stroke-linecap: round; }
.ribbon .ribbon-glow { opacity: .16; }
@keyframes ribbon-drift { to { transform: translate(var(--dx, 2%), var(--dy, -1%)) rotate(var(--rot, 2deg)); } }
.promo-pattern { position: absolute; z-index: 0; inset: -6%; animation: pattern-drift 18s ease-in-out infinite alternate; }
.promo-pattern .pg { position: absolute; display: block; }
.promo-pattern .pg .i { display: block; width: 100%; height: 100%; }
@keyframes pattern-drift { to { transform: translate(-22px, -30px); } }

/* Steam: flat dark navy, a fine grip texture like a gamepad's, flat game glyphs behind the Steam logo */
.plus-promo.house-steam { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M7 3.2 10.4 9.4H3.6z' fill='%23ffffff' fill-opacity='.045'/%3E%3C/svg%3E") 0 0 / 14px 14px, linear-gradient(180deg, #1b2838 0%, #16212e 55%, #111924 100%); }
.house-steam .promo-pattern .pg { color: rgba(102, 192, 244, .16); }
.promo-steam .promo-hero { --bloom: rgba(102, 192, 244, .42); }
/* The glow lies under the logo: a navy disc behind it fills the cut-outs of the mark, and the light comes
   from the disc's edge, so it shines around the logo and never through it. */
.steam-mark { width: 52%; color: #fff; }
.steam-mark::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 50%; background: #1b2838; box-shadow: 0 0 22px 4px rgba(120, 200, 255, .55), 0 0 64px 10px rgba(102, 192, 244, .32); }
.house-steam .plus-promo-cta { background: linear-gradient(90deg, #1a9fff, #66c0f4); color: #06121e; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.house-steam .plus-promo-perks .i { color: #66c0f4; }
.house-steam .plus-promo-title { color: #eaf4fb; }

/* ИИ-мир: violet, a dot grid with our sparkles, the sparkle mark on a violet tile */
.plus-promo.house-ai { background: radial-gradient(rgba(200, 182, 255, .2) 1.2px, transparent 1.7px) 0 0 / 18px 18px, radial-gradient(75% 45% at 50% 26%, rgba(167, 139, 250, .5), transparent 72%), radial-gradient(60% 40% at 85% 8%, rgba(240, 171, 252, .26), transparent 70%), radial-gradient(55% 35% at 10% 55%, rgba(103, 232, 249, .16), transparent 70%), linear-gradient(165deg, #3a2580 0%, #26185a 45%, #140e33 100%); }
.promo-ai .promo-hero { --bloom: rgba(196, 179, 255, .62); }
.promo-ai .ribbon .ribbon-glow { opacity: .26; }
.house-ai .promo-pattern .pg { color: rgba(225, 212, 255, .36); animation: pg-twinkle 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes pg-twinkle { 50% { opacity: .35; transform: scale(.8); } }
.ai-mark { width: 44%; border-radius: 30%; background: linear-gradient(140deg, #8b7bff, #b39dff 55%, #e6dcff); color: #fff; box-shadow: 0 0 44px rgba(167, 139, 250, .7), 0 22px 50px rgba(20, 8, 60, .45), inset 0 1px 0 rgba(255, 255, 255, .55); }
.ai-mark .i { width: 56%; height: 56%; }
.house-ai .plus-promo-cta { background: linear-gradient(90deg, #7c6cff, #b9a3ff); color: #fff; box-shadow: 0 10px 26px rgba(48, 24, 120, .45); }
.house-ai .plus-promo-perks .i { color: #c4b3ff; }

/* Plus: pearl in everything — a nacre sheen over a dark pearl ground, pearl ribbons, tile, title and button */
.plus-promo.house-plus { background: radial-gradient(70% 45% at 18% 16%, rgba(255, 120, 200, .42), transparent 68%), radial-gradient(70% 45% at 85% 20%, rgba(150, 120, 255, .48), transparent 68%), radial-gradient(60% 40% at 55% 62%, rgba(110, 215, 255, .3), transparent 70%), radial-gradient(60% 40% at 90% 92%, rgba(255, 176, 59, .26), transparent 70%), linear-gradient(155deg, #3b2350 0%, #2a2756 45%, #1d2f4a 75%, #3a2140 100%); }
.promo-plus .promo-hero { --bloom: rgba(255, 226, 246, .6); }
.pearl-sheen { position: absolute; z-index: 0; top: 0; bottom: 0; left: -100%; width: 200%; background: linear-gradient(100deg, rgba(255, 201, 230, .2), rgba(220, 203, 255, .24) 18%, rgba(191, 230, 255, .2) 34%, rgba(200, 255, 232, .18) 50%, rgba(255, 240, 196, .2) 66%, rgba(255, 201, 230, .2) 82%, rgba(220, 203, 255, .24)); animation: pearl-slide 16s ease-in-out infinite alternate; }
@keyframes pearl-slide { to { transform: translateX(50%); } }
.house-plus .promo-pattern .pg { color: #fff4fb; opacity: .85; animation: pg-twinkle 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.plus-mark-tile { width: 46%; overflow: hidden; border-radius: 30%; background: linear-gradient(120deg, #ffd9ee, #e4d6ff 28%, #cdeaff 52%, #d6fff0 74%, #fff3d2); color: #3a2a55; box-shadow: 0 0 40px rgba(255, 214, 240, .7), 0 0 90px rgba(190, 170, 255, .45), 0 22px 50px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .85); }
/* Shine: a bright band sweeps across the pearl tile every few seconds */
.plus-mark-tile::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%); transform: translateX(-110%); animation: tile-shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes tile-shine { 0%, 55% { transform: translateX(-110%); } 85%, 100% { transform: translateX(110%); } }
.plus-mark-tile .i { width: 56%; height: 56%; stroke-width: 1.8; }
/* The text and the button of the Plus card are bright again (the brand gradient); pearl stays in the background and the crown */
.house-plus .plus-promo-perks .i { color: #ffd36e; }

body.scrolling :is(.ribbon, .promo-pattern, .promo-pattern .pg, .hero-mark, .pearl-sheen, .promo-hero, .plus-mark-tile) { animation-play-state: paused; }
body.scrolling :is(.promo-hero, .plus-mark-tile)::before, body.scrolling .plus-mark-tile::after { animation-play-state: paused; }
/* Only the ad on screen moves and keeps its layers; the ones further along the feed wait */
.feed-item.is-boosted.near :is(.ribbon, .promo-pattern, .pearl-sheen) { will-change: transform; }
.feed.io .feed-item.is-boosted:not(.near) :is(.ribbon, .promo-pattern, .promo-pattern .pg, .hero-mark, .pearl-sheen, .promo-hero, .plus-mark-tile, .plus-promo-mark) { animation-play-state: paused; }
.feed.io .feed-item.is-boosted:not(.near) :is(.promo-hero, .plus-mark-tile)::before, .feed.io .feed-item.is-boosted:not(.near) .plus-mark-tile::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ribbon, .promo-pattern, .promo-pattern .pg, .hero-mark, .pearl-sheen, .promo-hero::before, .plus-mark-tile::after { animation: none !important; }
}

/* On a phone the card runs under the top bar: the scene starts below «Пропустить» and fills the free middle */
@media (max-width: 760px) {
  .promo-hero { top: calc(var(--top-h) + var(--safe-t) + 66px); width: min(86%, 400px); margin-left: calc(min(86%, 400px) / -2); }
}
@media (max-width: 760px) and (max-height: 720px) {
  .promo-hero { width: min(62%, 280px); margin-left: calc(min(62%, 280px) / -2); }
}

/* Quick actions under a swiped comment */
.comments-zone { overflow-x: clip; }
.comment[data-comment] { position: relative; transition: transform .22s var(--ease); }
.comment.swiping { transition: none; }
.swipe-tray { position: absolute; top: 4px; bottom: 4px; left: calc(100% + 14px); display: flex; gap: 4px; width: calc(var(--n) * 68px - 4px); }
.swipe-act { flex: 1; display: grid; place-content: center; justify-items: center; gap: 4px; border-radius: 14px; color: #fff; font-size: 11.5px; font-weight: 750; }
.swipe-act .i { font-size: 20px; }
.swipe-act.swipe-ai { background: linear-gradient(135deg, #7c6cff, #3ddc84); }
.swipe-act.swipe-reply { background: #2f6fda; }
.swipe-act.swipe-like { background: var(--grad); }
.swipe-act.swipe-danger { background: #d93a4a; }
.swipe-act.swipe-more { background: var(--surface-3); color: var(--text); }
.comment.armed .swipe-act:first-child { flex: 2.4; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5) inset; }

/* ИИ-мир: the cloud mode card on the connect page */
.cloud-card { display: flex; gap: 14px; margin: 0 0 18px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(124, 108, 255, .16), rgba(61, 220, 132, .1)); box-shadow: inset 0 0 0 1px rgba(124, 108, 255, .3); }
.cloud-card.off { background: rgba(255, 176, 59, .08); box-shadow: inset 0 0 0 1px rgba(255, 176, 59, .35); }
.cloud-card b { font-size: 15.5px; }
.cloud-card p { margin: 4px 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.cloud-card.off p { margin-bottom: 0; }
.cloud-card small { color: var(--muted); font-size: 12.5px; }
.cloud-mark { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #7c6cff, #3ddc84); color: #fff; font-size: 20px; }
.cloud-card.off .cloud-mark { background: var(--amber); color: #1b1206; }
.cloud-meter { height: 6px; margin-bottom: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.cloud-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3ddc84, #7c6cff); }

/* The open post: round signed actions and framed, titled sections */
.post-actions { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; max-width: 420px; margin: 14px 0 6px; }
.pact { display: grid; justify-items: center; gap: 6px; padding: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 700; line-height: 1.1; text-align: center; text-decoration: none; }
.pact span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pact-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 20px; font-style: normal; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .15s, color .15s, transform .12s; }
.pact:active .pact-ico { transform: scale(.92); }
.pact.vote.on .pact-ico { background: var(--grad); color: #fff; box-shadow: var(--grad-glow); }
.pact.vote.on span { color: var(--text); }
.pact.watch.on .pact-ico { background: rgba(124, 108, 255, .22); color: #c9c0ff; box-shadow: inset 0 0 0 1.5px rgba(124, 108, 255, .7); }
.pact.watch.on span { color: #c9c0ff; }
.pact.danger .pact-ico { color: #ff6b78; }
.post-section { margin: 14px 0 0; padding: 14px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.post-section > h3 { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.post-hint { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.post-section .fork-strip { margin: 0; }
.post-section .store-facts { margin-top: 6px; }
.post-section .chips { margin-top: 10px; }
.fork-btn { background: linear-gradient(135deg, #7c6cff, #3ddc84); color: #fff; box-shadow: 0 6px 20px rgba(124, 108, 255, .35); }
.fork-btn .i { color: #fff; }
.store .interest { box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* In a narrow post column (the side column on a computer, a small phone) the circles stay, a bit smaller. */
.store-head { container-type: inline-size; }
@container (max-width: 390px) {
  .post-actions { gap: 2px; }
  .pact { font-size: 10px; letter-spacing: -.02em; }
  /* A long word may run a few pixels past its circle: the neighbours' words are short, nothing is cut. */
  .pact span { max-width: none; overflow: visible; text-overflow: clip; }
  .pact-ico { width: 42px; height: 42px; font-size: 19px; }
}

/* «Интерес»: one line instead of a card of tiles */
details.interest { margin-top: 14px; padding: 0; border: 0; border-radius: 16px; background: var(--surface-2); }
.interest > summary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; list-style: none; cursor: pointer; }
.interest > summary::-webkit-details-marker { display: none; }
.interest-ring { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#ff2e63, #ffb03b calc(var(--p) * 1%), var(--surface-3) 0); }
.interest-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface-2); }
.interest-ring b { position: relative; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.interest-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.interest-text b { font-size: 14px; font-weight: 750; }
.interest-text em { margin-left: 4px; color: var(--muted); font-style: normal; font-weight: 600; }
.interest-text small { overflow: hidden; color: var(--dim); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.interest-more { flex: none; color: var(--dim); font-size: 16px; transition: transform .2s var(--ease); }
.interest[open] .interest-more { transform: rotate(180deg); }
.interest[open] .interest-text small { white-space: normal; }
.interest-explain { margin: 0; padding: 0 14px 12px 64px; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Someone else's profile on a phone: follow, write, rate and «⋯» share one row with words that fit */
.wide-only { display: inline; }
@media (max-width: 760px) {
  .profile-actions.other { display: grid; grid-template-columns: auto auto auto 44px; gap: 6px; }
  .profile-actions.other > * { min-width: 0; justify-content: center; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .profile-actions.other > .btn-square { width: 44px; padding: 0; }
  .profile-actions.other .wide-only { display: none; }
}

@media (max-width: 420px) {
  /* On a narrow phone the words get the room: «Подписаны» is told by its grey pill, not by a tick. */
  .profile-actions.other > * { padding: 0 6px; font-size: 13px; }
  .profile-actions.other .follow-pill .i { display: none; }
}

/* A themed post: solid surfaces (cards, the active tab, stat tiles, review rows, the sticky comment box)
   take the post's own colour, a shade darker or lighter, instead of the app's dark grey. */
.themed { --bg: var(--page-bg); }
.themed.is-dark { --surface: color-mix(in srgb, var(--page-bg), #000 24%); }
.themed.is-light { --surface: color-mix(in srgb, var(--page-bg), #000 5%); }

/* The pinned comment's highlight reaches 10 px past the text on both sides: the comments' clip (kept
   for the swipe tray) now starts 10 px further out, so its rounded corners are no longer cut square. */
.comments-zone { margin-inline: -10px; padding-inline: 10px; }

/* ИИ-мир: own API keys under the cloud card */
.own-keys { margin: 14px 0 18px; padding: 14px 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.own-keys-head { display: flex; gap: 12px; margin-bottom: 6px; }
.own-keys-head b { font-size: 15px; }
.own-keys-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.own-keys-mark { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 17px; }
.own-key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0 2px; border-top: 1px solid var(--line); margin-top: 8px; }
.own-key-name { display: grid; flex: 1 1 0; min-width: 96px; }
.own-key-act { display: inline-flex; flex: none; align-items: center; gap: 10px; }
.own-key-name b { font-size: 14px; }
.own-key-name small { color: var(--dim); font-size: 12px; }
.own-key-state { display: inline-flex; align-items: center; gap: 6px; color: #7ee2a8; font: 600 13px/1 "SF Mono", ui-monospace, Menlo, monospace; }
.own-key-state.warn { color: #ffbf66; font-family: inherit; }
.own-key-form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
.own-key-form input { flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 16px/1 "SF Mono", ui-monospace, Menlo, monospace; }
.own-key-form small { flex-basis: 100%; color: var(--dim); font-size: 12px; line-height: 1.4; }
.own-keys > .fine { margin: 10px 0 0; }
.own-key-name small { overflow-wrap: anywhere; }
.own-key-other { flex-basis: 100%; }
/* A model of one's own: the address, the model and the key, each on its own line. */
.own-key-form.custom input { flex-basis: 100%; }
.own-key-other summary { color: var(--muted); font-size: 13px; font-weight: 650; cursor: pointer; }
.own-key-other[open] { display: grid; gap: 8px; }
.own-key-other input { width: 100%; height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 16px; }
.own-key-other small { color: var(--dim); font-size: 12px; line-height: 1.4; }

/* ИИ-мир: the computer behind a project — a «⋯» on the project page, a list on the projects page */
.ws-more { flex: none; }
[data-device-menu] { -webkit-touch-callout: none; }
.device-list { display: grid; gap: 8px; margin-bottom: 8px; }
.device-list .device-row small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ИИ-мир cloud: the balance and its top-up */
.cloud-balance { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 4px; padding: 8px 8px 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.cloud-balance span { color: var(--muted); font-size: 13.5px; }
.cloud-balance b { color: var(--text); font-size: 16px; }
.cloud-card small { display: block; margin-top: 4px; }
.cloud-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud-mark.big { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; font-size: 26px; }
.topup-sheet { text-align: center; }
.topup-sheet .lead { margin-bottom: 14px; }
.topup-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.topup-pack { min-height: 56px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); font-size: 16px; transition: background-color .15s, transform .12s; }
.topup-pack:hover { background: var(--surface-3); }
.topup-pack:active { transform: scale(.97); }
.topup-pack:disabled { opacity: .5; }
.topup-prices { width: 100%; margin: 0 0 12px; border-collapse: collapse; font-size: 13px; text-align: left; }
.topup-prices th, .topup-prices td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.topup-prices thead th, .topup-prices thead td { color: var(--dim); font-weight: 600; font-size: 12px; }
.topup-prices td { text-align: right; white-space: nowrap; color: var(--muted); }
.topup-prices th { font-weight: 650; }
.topup-sheet .fine { text-align: left; }

/* Plus about to end: the row in the profile turns amber */
.plus-row.on.ending small { color: var(--amber); }
.plus-row.on.ending em { color: var(--amber); }
.notice-kind.kind-plus-ending, .notice-kind.kind-plus-ended { background: var(--grad); color: #fff; }

/* Waiting for a payment made in Telegram */
.pay-wait { text-align: center; }
.pay-wait-state { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 16px; color: var(--muted); font-size: 14px; }
.pay-wait-state .spin { flex: none; }


/* Supporting a post: the sum and the goal, gifts in sparks, who supported, money and investors */
.support { display: grid; gap: 12px; }
/* Supporting a post: one row that folds — a gold mark, what is raised, a thin bar, «Поддержать» — and the
   gifts inside. Folded on a phone, open on a computer. */
.support-section { padding: 0; overflow: hidden; }
.support-fold > summary { list-style: none; }
.support-fold > summary::-webkit-details-marker { display: none; }
.support-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: background-color .15s; }
.support-summary:hover { background: rgba(255, 255, 255, .025); }
.support-summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 18px; }
.support-mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(140deg, #ffd36b, #ff9f1c); color: #3a2300; font-size: 19px; box-shadow: 0 6px 18px rgba(255, 159, 28, .22); }
.support-line { flex: 1; min-width: 0; display: grid; gap: 2px; }
.support-line b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.support-line small { overflow: hidden; color: var(--dim); font-size: 12.5px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.support-sum { color: var(--amber); font-variant-numeric: tabular-nums; }
.support-summary > .support-bar { display: block; flex: 1 0 100%; height: 4px; }
.support-open { flex: none; padding: 8px 13px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; box-shadow: var(--grad-glow); }
.support-summary > .i { flex: none; color: var(--dim); font-size: 16px; transition: transform .2s var(--ease); }
.support-fold[open] .support-summary > .i { transform: rotate(180deg); }
.support-fold[open] .support-open { display: none; }
/* Folded, the «Поддержать» button says what a tap does; the arrow shows once it is open (or for the author) */
.support-fold:not([open]) .support-open + .i { display: none; }
.support-fold > .support { gap: 10px; padding: 0 12px 14px; animation: support-in .25s var(--ease) both; }
@keyframes support-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .support-fold > .support { animation: none; } }
/* Gifts: small chips in one row — scrolled sideways on a phone, wrapped on a computer */
.support .gift-grid { display: flex; gap: 6px; margin: 0 -12px; padding: 2px 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 12px; scrollbar-width: none; }
.support .gift-grid::-webkit-scrollbar { display: none; }
.support .gift { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 14px; scroll-snap-align: start; }
.support .gift-ico { width: 30px; height: 30px; border-radius: 10px; font-size: 15px; }
.support .gift b { display: block; min-height: 0; font-size: 13px; white-space: nowrap; }
.support .gift small { font-size: 12.5px; }
@media (min-width: 761px) {
  .support .gift-grid { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
}
.support-bar { height: 8px; overflow: hidden; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.support-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); box-shadow: var(--grad-glow); transition: width .6s var(--ease); }
.support-goal { display: flex; gap: 8px; margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.support-goal .i { flex: none; margin-top: 2px; color: var(--amber); }
.gift-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.gift { display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 16px; background: var(--surface-2); color: var(--text); text-align: center; box-shadow: inset 0 0 0 1px var(--line); transition: transform .12s var(--ease), box-shadow .15s; }
.gift:active { transform: scale(.95); }
.gift:hover { box-shadow: inset 0 0 0 1px rgba(255, 176, 59, .45); }
.gift b { display: grid; align-items: center; min-height: 2.3em; max-width: 100%; font-size: 11.5px; font-weight: 750; line-height: 1.15; overflow-wrap: anywhere; }
.gift small { display: inline-flex; align-items: center; gap: 2px; color: var(--amber); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gift small .i { font-size: 11px; }
.gift.short { opacity: .55; }
.gift-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; font-size: 19px; font-style: normal; color: #fff; }
.gift-ico.small { width: 26px; height: 26px; border-radius: 9px; font-size: 14px; flex: none; }
.gift-ico.big { width: 76px; height: 76px; border-radius: 24px; font-size: 36px; }
.g-spark { background: linear-gradient(140deg, #ffd36b, #ff9f1c); }
.g-bug { background: linear-gradient(140deg, #3ddc84, #14a35a); }
.g-build { background: linear-gradient(140deg, #7c6cff, #3a2bd6); }
.g-flame { background: linear-gradient(140deg, #ff6a3d, #ff2e63); }
.g-rocket { background: linear-gradient(140deg, #67e8f9, #2a86e0 55%, #b9a3ff); }
.support-faces { display: flex; align-items: center; gap: 0; width: 100%; padding: 6px 8px 6px 6px; border-radius: 99px; background: var(--surface-2); text-align: left; }
.support-faces > span { margin-left: -8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface-2); }
.support-faces > span:first-child { margin-left: 0; }
.support-faces .avatar { width: 28px; height: 28px; font-size: 10px; }
.support-faces small { flex: 1; margin-left: 10px; color: var(--muted); font-size: 12.5px; font-weight: 650; }
.support-faces > .i { color: var(--dim); }
.gift-recent { display: grid; gap: 6px; }
.gift-row-line { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.35; }
.gift-row-line > span { flex: 1; min-width: 0; color: var(--muted); }
.gift-row-line b { color: var(--text); }
.gift-row-line em { display: block; overflow: hidden; color: var(--dim); font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.gift-row-line > small { flex: none; color: var(--amber); font-weight: 800; font-variant-numeric: tabular-nums; }
.support-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.support-actions .btn { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap; overflow: hidden; }
.support-money small { margin-left: 2px; color: var(--dim); font-size: 12px; font-weight: 650; }
@media (max-width: 520px) { .support-money small { display: none; } }
.support-note { margin: 0; color: var(--dim); font-size: 12.5px; line-height: 1.45; }
.support-note .i { vertical-align: -2px; }
.support-setup { display: flex; align-items: center; gap: 12px; width: 100%; padding: 4px 0; text-align: left; }
.support-setup > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.support-setup small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.support-setup .row-mark { color: var(--amber); }

/* The gift sheet, the list of supporters and the author's settings */
.gift-sheet { gap: 14px; }
.gift-hero { display: grid; justify-items: center; gap: 8px; padding: 6px 0 2px; text-align: center; }
.gift-hero h3 { margin: 4px 0 0; font-size: 22px; }
.gift-hero p { margin: 0; color: var(--muted); font-size: 13.5px; }
.gift-hero .gift-ico.big { box-shadow: 0 14px 34px rgba(0, 0, 0, .35); animation: gift-pop .45s var(--ease) both; }
@keyframes gift-pop { from { transform: scale(.7) rotate(-8deg); opacity: 0; } }
.gift-price { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 176, 59, .16); color: var(--amber); font-size: 15px; font-weight: 850; }
.gift-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.gift-pick button { display: grid; justify-items: center; gap: 3px; padding: 8px 0 6px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 800; }
.gift-pick button.on { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--amber); }
.support-list { display: grid; gap: 4px; }
.support-person { width: 100%; text-align: left; }
.support-person .rank { width: 18px; color: var(--dim); font-size: 12px; font-style: normal; font-weight: 800; text-align: center; }
.support-person em { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--amber); font-style: normal; font-weight: 850; font-variant-numeric: tabular-nums; }
.fund-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.fund-quick button { padding: 6px 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 750; }
.funding-editor .toggle-row { padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.spark-gift-hint { margin: 0 0 10px; }
.spark-gift-hint .i { color: var(--hot); vertical-align: -2px; }

/* «Новый проект» in ИИ-мир, the way to the feed and tasks that become updates */
.section-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.section-head .section-actions { margin-bottom: 12px; }
.guide { max-height: min(90dvh, 880px); overflow: hidden; grid-template-rows: auto 1fr; }
.guide-form { display: grid; gap: 12px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
.guide-intro { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: linear-gradient(160deg, rgba(185, 163, 255, .14), rgba(103, 232, 249, .06)), var(--surface-2); }
.guide-intro .ai-orb { flex: none; width: 40px; height: 40px; font-size: 18px; }
.guide-intro p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.guide-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.guide-kinds button { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 750; }
.guide-kinds button .i { font-size: 22px; }
.guide-kinds button.on { color: var(--text); background: rgba(185, 163, 255, .16); box-shadow: inset 0 0 0 1.5px rgba(185, 163, 255, .6); }
.guide-stacks { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-stacks button { padding: 7px 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; }
.guide-stacks button.on { color: #170f33; background: #b9a3ff; }
.guide-devices { display: grid; gap: 6px; }
.guide-devices button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); text-align: left; }
.guide-devices button > span { flex: 1; display: grid; gap: 1px; min-width: 0; }
.guide-devices button small { color: var(--dim); font-size: 12px; }
.guide-devices button.on { box-shadow: inset 0 0 0 1.5px rgba(185, 163, 255, .6); }
.guide-devices .presence { position: static; flex: none; }
.guide-warn { display: flex; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(255, 176, 59, .1); color: #ffd48a; font-size: 13px; line-height: 1.45; }
.guide-warn > .i { flex: none; margin-top: 2px; }
.guide-note { margin: 0; color: var(--dim); font-size: 12.5px; line-height: 1.45; }
.guide-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(160deg, rgba(185, 163, 255, .14), rgba(103, 232, 249, .05)), var(--surface); box-shadow: inset 0 0 0 1px rgba(185, 163, 255, .25); }
.guide-banner > .i { flex: none; color: #b9a3ff; font-size: 20px; }
.guide-banner.done > .i { color: #3ddc84; }
.guide-banner > span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.guide-banner small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ws-project.to-feed { color: #170f33; background: #b9a3ff; }
.publish-linked { display: flex; gap: 8px; margin: -4px 0 12px; padding: 10px 12px; border-radius: 14px; background: rgba(185, 163, 255, .12); color: var(--muted); font-size: 13px; line-height: 1.45; }
.publish-linked .i { flex: none; margin-top: 2px; color: #b9a3ff; }
.to-update { display: inline-flex; align-items: center; gap: 6px; justify-self: start; max-width: 100%; padding: 5px 10px 5px 8px; border-radius: 99px; background: var(--surface-2); color: var(--dim); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.to-update input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.to-update span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.to-update.on { color: var(--text); background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.auto-pub { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 650; }
.auto-pub.ok { color: #3ddc84; }
.auto-pub.muted { color: var(--dim); }
@media (max-width: 420px) {
  .gift-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .gift { padding: 9px 2px 7px; border-radius: 14px; }
  .gift-ico { width: 32px; height: 32px; font-size: 16px; border-radius: 11px; }
  .gift b { font-size: 10.5px; }
}
.changes-head .repo-link { display: inline-flex; align-items: center; gap: 5px; min-width: 0; margin-left: auto; overflow: hidden; color: var(--accent); font-size: 12.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }

/* Engines of a computer: ready ones and why the rest are not */
.engine-list { display: grid; gap: 6px; margin-top: 4px; }
.engine-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.engine-row > span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.engine-row small { color: var(--dim); font-size: 12.5px; line-height: 1.4; }
.engine-state { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--dim); font-style: normal; }
.engine-row.ok .engine-state { background: rgba(61, 220, 132, .16); color: #3ddc84; }
.engine-row.ok small { color: var(--muted); }
.engine-agent { display: flex; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.engine-agent > .i { flex: none; margin-top: 2px; color: #3ddc84; }
.engine-agent.old { background: rgba(255, 176, 59, .1); }
.engine-agent.old > .i { color: var(--amber); }
.engine-agent > span { display: grid; gap: 3px; }
.engine-agent small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.engines-sheet .code-block { margin-top: 8px; }
.engine-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.engine-why { position: relative; }
.engine-why.has-more::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.agent-old { display: block; margin-top: 2px; color: var(--amber); font-size: 12px; font-style: normal; }
.agent-old .i { vertical-align: -2px; }

/* The cloud in the task field: model, level of reasoning, what the month cost; the usage sheet */
.engine-select optgroup { color: var(--dim); font-style: normal; }
.model-select, .effort-select { max-width: 190px; }
.cloud-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border-radius: 99px; background: rgba(255, 176, 59, .12); color: #ffd48a; font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cloud-chip .i { font-size: 14px; }
.cloud-chip.muted { background: var(--surface-2); color: var(--dim); }
.run-cost { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; text-align: left; }
.run-cost > span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.run-cost b { flex: none; color: #ffd48a; font-variant-numeric: tabular-nums; }
.run-issue { display: flex; gap: 10px; margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 176, 59, .1); color: var(--muted); font-size: 13px; line-height: 1.45; }
.run-issue > .i { flex: none; margin-top: 2px; color: var(--amber); }
.run-issue b { color: var(--text); }
.usage-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.usage-card { display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.usage-card > .i { color: var(--amber); font-size: 17px; }
.usage-card small { color: var(--dim); font-size: 12px; font-weight: 700; }
.usage-card b { font-size: 22px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.usage-card span { color: var(--dim); font-size: 11.5px; line-height: 1.35; }
.usage-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.usage-table th, .usage-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.usage-table th:first-child, .usage-table td:first-child { text-align: left; }
.usage-table th { color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.usage-table td:first-child { color: var(--text); font-weight: 700; }
.usage-table tfoot td { color: var(--text); font-weight: 800; border-bottom: 0; }
.usage-table td small { color: var(--dim); }
.usage-tasks { display: grid; gap: 4px; }
.usage-task { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.usage-task > span { flex: 1; display: grid; gap: 1px; min-width: 0; }
.usage-task b { overflow: hidden; font-size: 13.5px; white-space: nowrap; text-overflow: ellipsis; }
.usage-task small { overflow: hidden; color: var(--dim); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.usage-task em { flex: none; color: #ffd48a; font-size: 13px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .usage-table th:nth-child(5), .usage-table td:nth-child(5) { display: none; }
  .model-select, .effort-select { max-width: 150px; }
}
.composer-end { display: inline-flex; flex: none; align-items: center; gap: 4px; margin-left: auto; }
.composer-end .composer-tools { margin-left: 0; }
.composer-end .send { margin-left: 0; }

/* One button for where a task runs, and the picker behind it */
.engine-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; min-height: 34px; padding: 0 10px 0 9px; border-radius: 99px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 750; box-shadow: inset 0 0 0 1px var(--line-strong); }
.engine-chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.engine-chip > .i { flex: none; font-size: 15px; }
.engine-chip > .i:last-child { color: var(--dim); font-size: 13px; }
.engine-chip.cloud { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.engine-chip.cloud > .i:first-child { color: var(--accent); }
.task-composer .composer-row { flex-wrap: wrap; }
.engine-picker .pick-list { display: grid; gap: 6px; }
.pick-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--text); text-align: left; }
.pick-row > span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pick-row small { color: var(--dim); font-size: 12px; line-height: 1.4; }
.pick-row > .i:first-child { flex: none; color: var(--muted); font-size: 18px; }
.pick-row > .i:last-child { color: var(--accent); }
.pick-row.on { box-shadow: inset 0 0 0 1.5px var(--accent); }
.pick-row:disabled { opacity: .55; cursor: not-allowed; }
.pick-provider { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.pick-provider > b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pick-provider > b .i { color: var(--accent); }
.pick-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pick-model { display: grid; justify-items: start; gap: 2px; padding: 10px; border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.pick-model b { font-size: 14px; }
.pick-model small { color: var(--dim); font-size: 11.5px; line-height: 1.3; }
.pick-model em { margin-top: 4px; color: #ffd48a; font-size: 12px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.pick-model.on { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pick-note { display: block; color: var(--dim); font-size: 12px; line-height: 1.45; }
.pick-effort { display: grid; gap: 8px; margin-top: 16px; }
.pick-effort > b { font-size: 14px; }
.effort-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.effort-scale button { display: grid; justify-items: center; gap: 6px; padding: 8px 2px; border-radius: 12px; color: var(--dim); font-size: 11.5px; font-weight: 750; line-height: 1.2; text-align: center; }
.effort-scale button i { width: 100%; height: 6px; border-radius: 99px; background: var(--surface-3); }
.effort-scale button.lit i { background: var(--accent); opacity: .55; }
.effort-scale button.on { color: var(--text); background: var(--surface-2); }
.effort-scale button.on i { opacity: 1; }
.pick-usage { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 16px; padding: 12px; border-radius: 14px; background: rgba(255, 176, 59, .1); color: var(--text); text-align: left; }
.pick-usage > span { flex: 1; font-size: 13.5px; font-weight: 700; }
.pick-usage > .i:first-child { color: var(--amber); }
.pick-usage b { color: #ffd48a; font-variant-numeric: tabular-nums; }
.pick-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }
@media (max-width: 420px) {
  .pick-models { grid-template-columns: 1fr; }
  .pick-model { grid-template-columns: 1fr auto; align-items: center; }
  .pick-model small { grid-column: 1; }
  .pick-model em { grid-row: 1 / span 2; grid-column: 2; margin: 0; }
  .task-composer .cloud-chip { display: none; }
}
.task-composer .engine-chip { flex: 0 1 auto; min-width: 0; }

/* The second engine button: the cloud model and its reasoning, and the panel with the slider above the field */
.task-composer { position: relative; }
.engine-pair { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.tune-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 9px 0 11px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 9%, var(--surface-2)); color: var(--text); font-size: 13px; white-space: nowrap; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent); transition: box-shadow .15s, background-color .15s; }
.tune-chip b { font-weight: 800; }
.tune-chip > .i { color: var(--dim); font-size: 12px; transition: transform .2s var(--ease); }
.tune-chip.open { background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); box-shadow: inset 0 0 0 2px var(--accent); }
.tune-chip.open > .i { transform: rotate(180deg); color: var(--accent); }
.tune-meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.tune-meter i { width: 3px; border-radius: 2px; background: color-mix(in srgb, var(--text) 18%, transparent); }
.tune-meter i:nth-child(1) { height: 5px; }
.tune-meter i:nth-child(2) { height: 7px; }
.tune-meter i:nth-child(3) { height: 9px; }
.tune-meter i:nth-child(4) { height: 11px; }
.tune-meter i:nth-child(5) { height: 13px; }
.tune-meter i.lit { background: var(--accent); }
.tune-pop { position: absolute; z-index: 30; left: 0; bottom: calc(100% + 10px); width: min(440px, 100%); display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 22px 60px rgba(0, 0, 0, .5); animation: tune-in .2s var(--ease) both; }
@keyframes tune-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.tune-head { display: flex; align-items: center; gap: 8px; }
.tune-head > .i { color: var(--accent); font-size: 17px; }
.tune-head b { font-size: 15px; font-weight: 800; }
.tune-head small { color: var(--dim); font-size: 12px; }
.tune-close { margin-left: auto; width: 30px; height: 30px; }
.tune-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tune-models.one { grid-template-columns: 1fr; }
/* Claude Code's and Codex's models on the computer: no prices, and Codex may list a dozen, so it scrolls */
.tune-models.list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: min(38vh, 260px); overflow-y: auto; padding: 4px; margin: -4px; overscroll-behavior: contain; }
.tune-model { position: relative; display: grid; justify-items: start; align-content: start; gap: 2px; padding: 10px; border-radius: 14px; background: var(--surface-2); color: var(--text); text-align: left; box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .15s, background-color .15s, transform .12s var(--ease); }
.tune-model b { font-size: 14px; font-weight: 800; }
.tune-model small { color: var(--dim); font-size: 11.5px; line-height: 1.3; }
.tune-model em { margin-top: 3px; color: #ffd48a; font-size: 12px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.tune-model.on { background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.tune-model.static { cursor: default; }
.tune-model:not(.static):active { transform: scale(.97); }
.tune-check { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-style: normal; }
.tune-check .i { stroke-width: 3.2; }
.tune-effort { display: grid; gap: 6px; padding-top: 4px; border-top: 1px solid var(--line); }
.tune-effort-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 8px; }
.tune-effort-head b { font-size: 14px; }
.tune-value { color: var(--accent); font-size: 14px; font-weight: 800; }
.tune-range { --fill: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.tune-range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) 0 var(--fill), var(--surface-3) var(--fill)); }
.tune-range::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) 0 var(--fill), var(--surface-3) var(--fill)); }
.tune-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 38%, transparent), 0 4px 12px rgba(0, 0, 0, .45); transition: box-shadow .15s; }
.tune-range::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 38%, transparent), 0 4px 12px rgba(0, 0, 0, .45); }
.tune-range:focus-visible { outline: none; }
.tune-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--accent), 0 4px 12px rgba(0, 0, 0, .45); }
.tune-range:active::-webkit-slider-thumb { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 45%, transparent), 0 4px 12px rgba(0, 0, 0, .45); }
.tune-ticks { position: relative; height: 28px; margin-top: -4px; }
.tune-ticks button { position: absolute; top: 0; left: calc(12px + (100% - 24px) * var(--i) / (var(--n) - 1)); max-width: 62px; padding: 1px 2px; color: var(--dim); font-size: 10.5px; font-weight: 700; line-height: 1.2; text-align: center; transform: translateX(-50%); }
.tune-ticks button:first-child { left: 0; transform: none; text-align: left; }
.tune-ticks button:last-child { left: auto; right: 0; transform: none; text-align: right; }
.tune-ticks button.on { color: var(--text); font-weight: 850; }
.tune-note { color: var(--dim); font-size: 12px; line-height: 1.45; }
@media (max-width: 420px) {
  .tune-models { grid-template-columns: 1fr; }
  .tune-model { grid-template-columns: 1fr auto; align-items: center; padding-right: 34px; }
  .tune-model small { grid-column: 1; }
  .tune-model em { grid-row: 1 / span 2; grid-column: 2; margin: 0; }
  .tune-check { top: 50%; margin-top: -9px; }
}
/* A long line under a task (its cost) must not widen the task past the screen */
.turn, .turn > *, .turn-extras { min-width: 0; }
.run-cost { max-width: 100%; }
@media (max-width: 760px) {
  /* Phones: where the task runs takes the first line, the mode, «?», tools and send the second */
  .task-composer .composer-row { grid-template-columns: auto 1fr auto; }
  .task-composer .engine-pair { grid-column: 1 / -1; grid-row: 1; justify-self: start; min-width: 0; }
  .task-composer .mode-pick { grid-column: 1; grid-row: 2; }
  .task-composer .engine-why { grid-column: 2; grid-row: 2; justify-self: start; }
  .task-composer .composer-end { grid-column: 3; grid-row: 2; }
  .task-composer .cloud-chip { display: none; }
  .task-composer .composer-row .continue { grid-row: 3; }
}

/* Selected states, clear at a glance. A chosen option used to differ from the rest by a shade of grey;
   now it gets a 2px ring in the section colour, a tinted background and bold text, and the cards a check. */
/* Payment: promotion plans, cloud top-ups, gifts in sparks */
.plan input:checked + .plan-card { border: 2.5px solid transparent; background: linear-gradient(color-mix(in srgb, #ff5f3d 12%, var(--surface-2)), color-mix(in srgb, #ff5f3d 12%, var(--surface-2))) padding-box, var(--grad) border-box; box-shadow: 0 10px 30px rgba(255, 70, 80, .22); transform: translateY(-2px); }
.plan input:checked + .plan-card::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 900; }
.plan input:not(:checked) + .plan-card { opacity: .78; }
.topup-pack { position: relative; }
.topup-pack.on, .topup-pack.on:disabled { opacity: 1; background: color-mix(in srgb, var(--accent) 15%, var(--surface-2)); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 850; }
.topup-pack.on::after { content: "✓"; position: absolute; top: 6px; right: 7px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 900; }
.gift-pick button { transition: box-shadow .15s, background-color .15s, transform .15s var(--ease); }
.gift-pick button.on { background: rgba(255, 176, 59, .16); color: var(--text); box-shadow: inset 0 0 0 2px var(--amber), 0 0 0 4px rgba(255, 176, 59, .16); transform: translateY(-2px); }
/* Segmented switches and tabs */
.seg button.on { background: var(--surface); color: var(--text); font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--accent), 0 2px 8px rgba(0, 0, 0, .25); }
.mode-pick input:checked + span { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.auth-tabs button.on, .panel-tabs button.on, .ws-nav a.on { background: color-mix(in srgb, var(--accent) 15%, var(--surface-2)); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (max-width: 760px) { .ws-tabs button.on { background: color-mix(in srgb, var(--accent) 15%, var(--surface-2)); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); } }
.hub-tabs button.on { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent), 0 2px 8px rgba(0, 0, 0, .22); }
.look-tabs button[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--accent), 0 1px 4px rgba(0, 0, 0, .25); }
.subnav a { position: relative; }
.subnav a.active { color: var(--text); font-weight: 750; }
.subnav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--accent); }
/* Option cards and rows */
.method.on { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--text); }
.pick-row.on { background: color-mix(in srgb, var(--accent) 15%, var(--surface-2)); box-shadow: inset 0 0 0 2px var(--accent); }
.cmenu-kind.on { background: color-mix(in srgb, var(--accent) 15%, var(--surface-2)); box-shadow: inset 0 0 0 1.5px var(--accent); }
.peb.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.fb-row.on { background: color-mix(in srgb, var(--brand) 9%, transparent); box-shadow: 0 0 0 1px var(--brand); }
.deco-tile.on, .fx-tile.on { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 22%, transparent); }
.status-dot.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 25%, transparent); }
.pt-access-item:has(input:checked) { background: color-mix(in srgb, #b9a3ff 10%, transparent); box-shadow: inset 0 0 0 2px rgba(185, 163, 255, .8); }
.report-reason input:checked + span { border-width: 2px; background: rgba(255, 93, 115, .16); }
.ob-tile.on { box-shadow: 0 0 0 3px rgba(255, 95, 61, .25); }
.guide-kinds button.on, .guide-devices button.on { box-shadow: inset 0 0 0 2px rgba(185, 163, 255, .9); }

/* Switches of familiar icons instead of words: sun and moon for the theme with a wide «Как на устройстве»,
   globe / people / lock for who may write, frame shapes for a picture, plus / minus / crossed eye for topics.
   Where a word still helps, it sits under the icon, smaller, lighter and thinner. */
.icon-seg { gap: 4px; padding: 4px; }
.icon-seg button { flex: 0 0 54px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 10px; }
.icon-seg button.wide { flex: 1 1 auto; min-width: 0; }
.icon-seg button .i { flex: none; font-size: 19px; }
.icon-seg button span { overflow: hidden; text-overflow: ellipsis; }
.cap-seg button { flex: 1 1 0; flex-direction: column; gap: 3px; min-height: 56px; padding: 7px 4px 6px; }
.set-field .cap-seg small, .cap-seg small { color: var(--dim); font-size: 11.5px; font-weight: 500; line-height: 1.1; }
.set-field .cap-seg button.on small, .cap-seg button.on small { color: var(--muted); }
.pe-shapes button { height: 44px; min-width: 44px; padding: 4px 6px 3px; grid-template-rows: auto auto; gap: 1px; }
.pe-shapes button .i { font-size: 17px; }
.pe-shapes button small { font-size: 9.5px; font-weight: 600; line-height: 1; opacity: .72; }
.pref-actions { align-items: center; }
.pref-actions button { width: 34px; height: 34px; min-height: 0; margin: 0; padding: 0; display: grid; place-items: center; }
.pref-actions button .i { font-size: 16px; }
.pref-actions button.hidden .i { font-size: 17px; }
.git-refresh { width: 32px; height: 32px; font-size: 16px; }

/* The feed as a grid (2 or 3 columns) and the switch in the top left corner */
.layout-controls { position: absolute; left: 14px; top: 50%; height: 44px; margin-top: -22px; display: flex; align-items: center; }
.top-layout { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--muted); font-size: 22px; transition: color .15s, background-color .15s; }
/* On a computer: two buttons side by side — vertical reels and the grid; the grid one shows how dense it is */
.layout-switch { display: none; }
@media (min-width: 761px) {
  .layout-controls .top-layout { display: none; }
  .layout-switch { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .layout-switch button { position: relative; width: 42px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); font-size: 19px; transition: color .15s, background-color .15s, box-shadow .15s; }
  .layout-switch button:hover { color: var(--text); background: var(--surface-3); }
  .layout-switch button.on { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent), 0 1px 4px rgba(0, 0, 0, .25); }
  .layout-switch button small { position: absolute; right: 3px; bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 800; line-height: 1; }
  .layout-switch .i { stroke-width: 1.8; }
}
.top-layout:hover { color: var(--text); background: var(--surface-2); }
.top-layout .i { stroke-width: 2; }
#feed, .feed-grid { touch-action: pan-y; }
body.feed-grid-on #topbar { background: linear-gradient(var(--bg) 62%, rgba(12, 14, 13, 0)); }
.feed-grid { position: fixed; top: 0; bottom: 0; left: var(--dock-w); right: 0; overflow-x: hidden; overflow-y: auto; will-change: transform; overscroll-behavior: contain; scrollbar-width: none; padding: calc(var(--top-h) + 6px) 16px 32px; background: var(--bg); }
.feed-grid::-webkit-scrollbar { display: none; }
.grid-inner { --cols: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; max-width: 720px; margin: 0 auto; }
.feed-grid.cols-3 .grid-inner { --cols: 3; gap: 6px; max-width: 900px; }
.feed-grid.cols-4 .grid-inner { --cols: 4; gap: 6px; max-width: 1080px; }
.feed-grid.cols-4 .grid-tile { border-radius: 8px; }
.feed-grid.cols-4 .grid-meta { left: 7px; right: 7px; bottom: 6px; gap: 1px; }
.feed-grid.cols-4 .grid-meta b { font-size: 11.5px; }
.feed-grid.cols-4 .grid-meta small { gap: 3px; font-size: 10px; }
.grid-tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; background: var(--surface); text-align: left; isolation: isolate; transition: filter .15s, transform .3s var(--ease); }
.feed-grid.cols-3 .grid-tile { border-radius: 9px; }
.grid-tile::after { content: ""; position: absolute; z-index: 1; inset: 50% 0 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .7)); pointer-events: none; }
.grid-tile:active { filter: brightness(.85); }
/* Until its picture arrives a tile is grey with a soft sheen running over it; then the picture fades in */
.grid-tile { background: var(--surface-2); }
.grid-tile img { opacity: 0; transition: opacity .35s ease-out; }
.grid-tile img.ready { opacity: 1; }
.grid-tile:not(.loaded)::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%) 0 0 / 220% 100%; animation: tile-sheen 1.5s linear infinite; pointer-events: none; }
@keyframes tile-sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.grid-blank { background: var(--surface-2); }
.grid-tile .scene.photo { background: transparent; }
@media (prefers-reduced-motion: reduce) { .grid-tile:not(.loaded)::before { animation: none; } }
.grid-tile.pressing { transform: scale(.96); transition: transform .45s var(--ease); }
/* Holding a tile opens its post, so the phone keeps its own long-press away: no picture menu (save, copy,
   look up), no picture lifted for drag and drop, no text selection. The picture lets touches through to its
   tile, so iOS never sees an image under the finger. */
.feed-grid { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.feed-grid img, .feed-grid video { pointer-events: none; -webkit-user-drag: none; }
/* Peek (openPeek in app.js): a held tile lifts into a preview of its post over the blurred grid, a menu
   under it. The card keeps the tile's 3:4, so the lift is one even scale; it is as big as the screen allows
   with the menu still on it. */
dialog.peek-host { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; color: var(--text); outline: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
dialog.peek-host::backdrop { background: transparent; }
.peek-host.closing { pointer-events: none; }
.peek-dim { position: absolute; inset: 0; background: rgba(6, 8, 7, .45); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.peek-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px); pointer-events: none; }
.peek-card, .peek-menu { pointer-events: auto; }
.peek-card { position: relative; flex: none; display: block; width: min(360px, calc(100vw - 32px), calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 44px - var(--menu-h, 220px)) * .75)); aspect-ratio: 3 / 4; overflow: hidden; padding: 0; border-radius: 26px; background: var(--surface-2); box-shadow: 0 26px 80px rgba(0, 0, 0, .5); color: #fff; text-align: left; transform-origin: 0 0; isolation: isolate; outline: none; }
.peek-card img, .peek-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.peek-shade { position: absolute; z-index: 1; inset: 42% 0 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .8)); pointer-events: none; }
.peek-info { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 13px; display: grid; gap: 5px; min-width: 0; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.peek-author { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; white-space: nowrap; }
.peek-author b { overflow: hidden; font-weight: 750; text-overflow: ellipsis; }
.peek-author small { flex: none; color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 600; }
.peek-ava { width: 24px; height: 24px; font-size: 10px; }
.peek-title { overflow: hidden; font-size: 18px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; letter-spacing: -.01em; }
.peek-summary { display: -webkit-box; overflow: hidden; color: rgba(255, 255, 255, .84); font-size: 13px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.peek-kind { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; color: rgba(255, 255, 255, .7); font-size: 11.5px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.peek-menu { flex: none; width: min(320px, calc(100vw - 32px)); padding: 8px; border-radius: 22px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); transform-origin: 50% 0; }
.peek-menu .cmenu-quick { margin-bottom: 0; }
.peek-menu .cmenu-group { margin-top: 8px; }
.peek-menu .cmenu-quick button.hover, .peek-menu .cmenu-group button.hover { background: var(--surface-3); }
.grid-tile.peeked { visibility: hidden; }
/* At the bottom of every tile, inside its padding: the title and, smaller and lighter, the kind (video or
   photos) and the category. One line each, cut with «…», so it always fits — in 3 columns too. */
.grid-meta { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 9px; display: grid; gap: 2px; min-width: 0; color: #fff; line-height: 1.15; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.grid-meta b { overflow: hidden; font-size: 13px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.grid-meta small { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; color: rgba(255, 255, 255, .72); font-size: 11px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.grid-meta small .thumb-kind { font-size: 11px; }
.feed-grid.cols-3 .grid-meta { left: 7px; right: 7px; bottom: 6px; gap: 1px; }
.feed-grid.cols-3 .grid-meta b { font-size: 11px; }
.feed-grid.cols-3 .grid-meta small { gap: 3px; font-size: 9.5px; }
.feed-grid.cols-3 .grid-meta small .thumb-kind { font-size: 9.5px; }
.grid-inner > .empty { grid-column: 1 / -1; }
/* Grid → feed: the copy of the grid dissolves under the feed while the post grows out of its tile */
.grid-ghost, .grid-preview { z-index: 0; pointer-events: none; }
/* A pinch under way (gridMorph and the others in app.js): tiles follow the fingers without delay, each on its
   own layer, and the titles step aside while the tiles move */
.feed-grid.morphing .grid-tile { transition: none; will-change: transform; }
.grid-meta { transition: opacity .22s; }
.feed-grid.morphing .grid-meta { opacity: 0; transition: opacity .1s; }
body.zooming #feed { z-index: 1; background: transparent; }
.fading-part { color: #fff; }
@media (max-width: 760px) {
  .layout-controls { left: 6px; top: var(--safe-t); margin-top: 4px; }
  body[data-view="feed"] .top-layout { color: #fff; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .6)); }
  .feed-grid { left: 0; bottom: calc(var(--tab-h) + var(--safe-b)); padding: calc(var(--top-h) + var(--safe-t) + 2px) 3px 12px; }
  .grid-inner { gap: 3px; }
  .feed-grid.cols-3 .grid-inner { gap: 2px; }
  .grid-tile { border-radius: 10px; }
  .feed-grid.cols-3 .grid-tile { border-radius: 6px; }
}

/* Financing: a card of its own under the support block, the request form, the request in a chat */
.deal-card { display: grid; gap: 14px; padding: 16px; border-radius: 22px; background: linear-gradient(135deg, rgba(56, 189, 248, .1), rgba(167, 139, 250, .12)); border: 1px solid rgba(167, 139, 250, .35); }
.deal-head { display: flex; align-items: center; gap: 14px; }
.deal-head > span:last-child { display: grid; gap: 3px; min-width: 0; }
.deal-head b { font-size: 16px; font-weight: 800; }
.deal-head small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.deal-mark { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #38bdf8, #a78bfa); color: #0b1020; font-size: 22px; }
.deal-mark .i { stroke-width: 2.2; }
.deal-mark.small { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
.deal-button { min-height: 50px; }
.deal-form { display: grid; gap: 10px; }
.deal-for { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; font-weight: 650; }
.deal-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.deal-chip input { position: absolute; opacity: 0; pointer-events: none; }
.deal-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; font-weight: 750; cursor: pointer; }
.deal-chip input:checked + span { background: color-mix(in srgb, #a78bfa 22%, var(--surface-2)); color: var(--text); box-shadow: inset 0 0 0 1.5px #a78bfa; }
.deal-chip input:focus-visible + span { outline: 2px solid #a78bfa; outline-offset: 2px; }
.bubble-deal { display: flex; align-items: center; gap: 10px; width: min(300px, 100%); margin-bottom: 6px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(0, 0, 0, .22); color: inherit; text-align: left; }
.bubble-deal > span:last-child { display: grid; gap: 2px; min-width: 0; }
.bubble-deal b { font-size: 13.5px; }
.bubble-deal small { overflow: hidden; color: inherit; opacity: .75; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
/* Folders of the inbox */
.inbox-folders { margin: 4px 0 12px; overflow-x: auto; scrollbar-width: none; }
.inbox-folders::-webkit-scrollbar { display: none; }
.inbox-folders button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.inbox-folders .i { font-size: 15px; }
.inbox-empty { padding: 24px 8px; text-align: center; }

/* «Облако dotop»: sizes as cards, facts as a short list; the iPhone card on the «Телефон» page */
.box-page { display: grid; gap: 12px; }
.box-page .block-title { display: flex; align-items: center; gap: 8px; margin: 0; }
.box-page .lead { margin: 0; }
.box-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.box-size { position: relative; display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-strong); cursor: pointer; transition: background-color .2s, border-color .2s; }
.box-size input { position: absolute; opacity: 0; pointer-events: none; }
.box-size b { font-size: 15px; }
.box-size small { color: var(--dim); font-size: 11.5px; font-weight: 650; }
.box-size span { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.box-size em { margin-top: 4px; color: var(--text); font-size: 12.5px; font-style: normal; font-weight: 800; }
.box-size.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }
.box-size:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.box-size:has(input:disabled) { cursor: default; }
.box-note { margin: 0; }
.box-facts { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.box-facts li { display: flex; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.box-facts .i { flex: none; margin-top: 2px; color: var(--accent); }
.phone-card { display: flex; gap: 14px; align-items: flex-start; }
.phone-card .block-title { margin-top: 0; }
.phone-card .lead { margin-bottom: 10px; }
.phone-title { margin: 22px 0 4px; }
@media (max-width: 560px) { .box-sizes { grid-template-columns: minmax(0, 1fr); } }

/* Support on a post: one row, «Поддержать» opens the gift panel; the goal and the author's link live in the panel */
.support-row { cursor: default; }
.support-row:hover { background: none; }
button.support-open { display: inline-flex; align-items: center; gap: 6px; border: 0; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .15s var(--ease); }
button.support-open:active { transform: scale(.96); }
.support-faces.mini { flex: none; width: auto; padding: 0; background: none; }
.support-faces.mini > span { box-shadow: 0 0 0 2px var(--surface); }
.support-faces.mini .avatar { width: 26px; height: 26px; }
.support-edit { flex: none; }
.gift-goal { display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.gift-goal b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.gift-goal b .i { color: var(--amber); }
.gift-goal small { color: var(--dim); font-size: 12.5px; font-weight: 650; }
.gift-goal .support-bar { height: 6px; }
.gift-extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* «Подключить»: three ways as big cards, the rest as pills; steps on a line with icons; «?» leads to «Справка» */
.connect-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connect-head .page-title { margin-bottom: 12px; }
.connect-sub { display: flex; align-items: center; gap: 8px; }
.connect-sub .block-title, .connect-sub .row-title { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.connect-sub .help-q { margin-left: auto; }
.help-q { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 6px; border-radius: 50%; background: var(--surface-2); color: var(--dim); font-size: 15px; vertical-align: middle; transition: background-color .15s, color .15s; }
.help-q:hover { background: var(--surface-3); color: var(--text); }
.help-q.big { width: 38px; height: 38px; font-size: 19px; }
.way-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.way { position: relative; display: grid; justify-items: start; gap: 2px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); color: var(--muted); transition: border-color .2s, background-color .2s, transform .15s var(--ease); }
.way:hover { border-color: var(--line-strong); }
.way:active { transform: scale(.98); }
.way.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--text); }
.way-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 14px; background: var(--surface-3); color: var(--text); font-size: 21px; }
.way.on .way-mark { background: var(--accent); color: var(--accent-ink); }
.way b { color: var(--text); font-size: 15px; }
.way small { font-size: 12px; }
.way em { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 10px; font-style: normal; font-weight: 750; }
.way-extras { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.way-extras .link-pill { min-height: 34px; padding: 0 12px; font-size: 13px; color: var(--muted); }
.way-extras .link-pill.on { border-color: var(--accent); color: var(--text); }
.csteps { position: relative; display: grid; gap: 0; margin: 16px 0 0; padding: 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); list-style: none; }
.cstep { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.cstep:last-child { padding-bottom: 0; }
.cstep:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--line-strong); }
.cstep-mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); color: var(--accent); font-size: 19px; }
.cstep-body { flex: 1; min-width: 0; padding-top: 8px; }
.cstep-body h3 { display: flex; align-items: center; margin: 0 0 10px; font-size: 16px; font-weight: 760; letter-spacing: -.02em; }
.cstep-body .code-block { margin-top: 0; }
.cstep-row { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
.cstep-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cstep-hint { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.cstep-hint .i { color: var(--accent); }
.cstep .chip-radio span { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.toggle-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.toggle-chip { position: relative; }
.toggle-chip input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chip span { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px 0 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s; }
.toggle-chip span::after { content: ""; width: 8px; height: 8px; margin-left: 2px; border-radius: 50%; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.toggle-chip input:checked + span { background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); border-color: var(--accent); color: var(--text); }
.toggle-chip input:checked + span::after { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.toggle-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-chip .i { font-size: 16px; }
.pair-code > span .i { font-size: 18px; color: var(--accent); }
.pair-code .icon-btn { width: 32px; height: 32px; font-size: 16px; }
.pair-code .icon-btn:first-of-type { margin-left: auto; }

/* Облачный ПК: size cards with icons, the hours and the balance in one line, three facts as chips */
.box-size .box-size-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--text); }
/* On a narrow phone the name, its icons and the «in Plus» chip wrap instead of pushing past the card. */
@media (max-width: 360px) { .box-size .box-size-top { flex-wrap: wrap; row-gap: 4px; } }
.box-size .box-size-icons { display: inline-flex; gap: 4px; color: var(--dim); font-size: 14px; }
.box-size.on .box-size-icons { color: var(--accent); }
.box-size em { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
/* Two kinds of cloud computers: on the processor and with a card; a card not yet open in AWS reads «скоро» */
.box-kind { display: grid; gap: 2px; margin: 6px 0 -2px; }
.box-kind h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 780; }
.box-kind h3 .i { color: var(--accent); font-size: 17px; }
.box-kind small { color: var(--dim); font-size: 12.5px; line-height: 1.4; }
.box-sizes.gpu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.box-size .box-size-what { color: var(--dim); font-size: 11.5px; line-height: 1.35; }
.box-size.soon { cursor: default; opacity: .62; }
.box-soon { padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-style: normal; font-weight: 750; }
.box-screen-open { margin-top: 2px; }
@media (max-width: 520px) { .box-sizes, .box-sizes.gpu { grid-template-columns: minmax(0, 1fr); } .box-size { grid-template-columns: minmax(0, 1fr) auto; } .box-size .box-size-top, .box-size small, .box-size .box-size-what { grid-column: 1; } .box-size em { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; } }
/* The screen of a cloud computer with a card: the desktop over the whole page, a thin bar on top */
dialog.screen { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
dialog.screen::backdrop { background: #000; }
dialog.screen[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.screen-bar { display: flex; align-items: center; gap: 6px; padding: calc(6px + env(safe-area-inset-top, 0px)) 8px 6px; background: rgba(12, 14, 13, .92); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.screen-bar .icon-btn { color: #fff; }
.screen-state { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.screen-view { position: relative; min-height: 0; overflow: hidden; touch-action: none; }
.screen-type { position: fixed; left: -100px; bottom: 0; width: 1px; height: 1px; opacity: 0; }
/* Pull to refresh on the pages of ИИ-мир: the page follows the finger like the feed does */
body[data-section="ai"] #main > .page { transition: transform .35s var(--ease); }
body.pulling[data-section="ai"] #main > .page { transform: translateY(calc(var(--pull, 0px) * .55)); transition: none; }
body.ptr-loading[data-section="ai"] #main > .page { transform: translateY(36px); }
.box-plus { padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 10.5px; font-style: normal; font-weight: 800; }
.box-money { display: flex; justify-content: center; gap: 18px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.box-money span { display: inline-flex; align-items: center; gap: 6px; }
.box-money .i { color: var(--accent); }
.box-money .text-link { display: inline-grid; place-items: center; width: 22px; height: 22px; min-height: 0; border-radius: 50%; background: var(--surface-2); }
.box-page .box-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0; color: var(--dim); font-size: 12px; font-weight: 650; }
.box-page .box-facts span { display: inline-flex; align-items: center; gap: 5px; }
.box-page .box-facts .i { margin: 0; color: var(--dim); }
/* «Свои аккаунты» on the cloud computer page: a row per program and the steps of a sign-in under it */
.box-accounts { display: grid; gap: 12px; }
.box-accounts .cstep-hint, .box-accounts .fine { margin: 0; }
.account-list { display: grid; gap: 8px; }
.account-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.account-row.on { background: rgba(95, 211, 107, .1); }
.account-row > .i { color: #5fd36b; }
.account-mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--surface-3); color: var(--accent); }
.account-text { flex: 1; min-width: 0; display: grid; }
.account-text b { font-size: 15px; }
.account-text small { color: var(--dim); font-size: 12.5px; }
.sign-steps { display: grid; gap: 12px; margin: 0; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); list-style: none; }
.sign-steps li { display: grid; gap: 8px; justify-items: start; }
.sign-steps b { font-size: 14px; }
.sign-steps small { color: var(--dim); font-size: 12px; line-height: 1.45; }
.sign-link, .sign-code { display: flex; align-items: center; gap: 8px; }
.sign-code code { padding: 8px 14px; border-radius: 12px; background: var(--surface-2); font-size: 22px; font-weight: 800; letter-spacing: .08em; }
.sign-code-form { display: flex; gap: 8px; width: 100%; }
.sign-code-form input { flex: 1; min-width: 0; }
.sign-steps .sign-wait { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }

/* Models through dotop: one row with the month's meter and the balance; own keys fold into one row */
.models-card { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; padding: 12px 14px; border-radius: 20px; background: linear-gradient(135deg, rgba(124, 108, 255, .14), rgba(61, 220, 132, .08)); box-shadow: inset 0 0 0 1px rgba(124, 108, 255, .28); }
.models-card.off { background: rgba(255, 176, 59, .08); box-shadow: inset 0 0 0 1px rgba(255, 176, 59, .35); }
.models-card.off .cloud-mark { background: var(--amber); color: #1b1206; }
.models-card .cloud-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
.models-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.models-main b { font-size: 14.5px; }
.models-main small { color: var(--muted); font-size: 12px; }
.models-main .cloud-meter { margin: 3px 0 0; }
.models-balance { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; }
.models-balance .icon-btn { width: 32px; height: 32px; font-size: 16px; }
.models-card .help-q { margin-left: 0; }
details.own-keys { padding: 0; }
details.own-keys > summary { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; list-style: none; cursor: pointer; }
details.own-keys > summary::-webkit-details-marker { display: none; }
details.own-keys > summary > div { flex: 1; display: grid; }
details.own-keys > summary small { color: var(--dim); font-size: 12px; }
details.own-keys > summary > .i { color: var(--dim); transition: transform .2s var(--ease); }
details.own-keys[open] > summary > .i { transform: rotate(180deg); }
details.own-keys > :not(summary) { margin-left: 14px; margin-right: 14px; }
/* The note under the keys keeps the card's side margins and its own bottom space (a margin would leak out of the card). */
details.own-keys > .fine { margin: 10px 14px 0; padding-bottom: 14px; }

/* ИИ-мир «Как это устроено»: you → dotop → computer, Android or the cloud PC */
.how-where { gap: 6px; padding: 10px; }
.how-way { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 700; transition: background-color .15s; }
.how-way:hover { background: var(--surface-3); }
.how-way .i { color: var(--accent); font-size: 16px; }
.how .connect-sub { margin: 28px 0 12px; }
.how .connect-sub .row-title { margin: 0; }
.ws-steps b .i { font-size: 14px; }

/* «Справка» */
.kb-hero { display: grid; justify-items: center; gap: 10px; padding: 18px 0 8px; text-align: center; }
.kb-hero h1 { margin: 0; font-size: 28px; font-weight: 820; letter-spacing: -.04em; }
.kb-mark, .kb-art-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--grad); color: #fff; font-size: 26px; box-shadow: var(--grad-glow); }
.kb-search { display: flex; align-items: center; gap: 10px; width: min(100%, 520px); padding: 0 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--dim); }
.kb-search input { flex: 1; min-height: 48px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.kb-empty { margin: 24px 0; color: var(--dim); text-align: center; }
.kb-secs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 18px; }
.kb-sec { padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.kb-sec h2 { display: flex; align-items: center; gap: 8px; margin: 2px 4px 10px; font-size: 15px; font-weight: 780; }
.kb-sec h2 .i { color: var(--accent); }
.kb-links { display: grid; gap: 4px; }
.kb-link { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; transition: background-color .15s; }
.kb-link:hover { background: var(--surface-2); }
.kb-link > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 1px; }
.kb-link b { font-size: 14px; }
.kb-link small { overflow: hidden; color: var(--dim); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.kb-link > .i { color: var(--dim); }
.kb-link-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--surface-2); color: var(--text); font-size: 17px; }
.kb-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.kb-nav { position: sticky; top: calc(var(--top-h, 0px) + 16px); display: grid; gap: 14px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 8px 4px 24px 0; }
.kb-group { display: grid; gap: 1px; }
.kb-group b { display: flex; align-items: center; gap: 6px; margin: 0 0 4px 8px; color: var(--dim); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.kb-group a { padding: 6px 8px; border-radius: 10px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.kb-group a:hover { background: var(--surface-2); color: var(--text); }
.kb-group a.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); font-weight: 750; }
.kb-article { display: grid; gap: 16px; max-width: 720px; padding-bottom: 32px; }
.kb-article h1 { margin: -4px 0 0; font-size: 28px; font-weight: 820; letter-spacing: -.04em; }
.kb-article > .lead { margin: -8px 0 0; color: var(--muted); font-size: 16px; }
.kb-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; color: var(--dim); font-size: 13px; font-weight: 700; }
.kb-art-mark { width: 48px; height: 48px; border-radius: 15px; font-size: 22px; }
.kb-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.kb-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 16px; }
.kb-steps li:last-child { padding-bottom: 0; }
.kb-steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 2px; width: 2px; background: var(--line-strong); }
.kb-step-mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); color: var(--accent); font-size: 18px; }
.kb-steps li > span:last-child { display: grid; gap: 2px; padding-top: 3px; }
.kb-steps b { font-size: 15px; }
.kb-steps small, .kb-tile small, .kb-node small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.kb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.kb-tile { display: grid; align-content: start; gap: 4px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.kb-tile > .i { margin-bottom: 4px; color: var(--accent); font-size: 22px; }
.kb-tile b { font-size: 14.5px; }
.kb-flow { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.kb-node { flex: 1 0 110px; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 14px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.kb-node > .i { display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border-radius: 13px; background: var(--surface-3); color: var(--text); }
.kb-node b { font-size: 13.5px; }
.kb-arrow { flex: none; align-self: center; color: var(--dim); font-size: 16px; }
.kb-table { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.kb-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kb-table th { padding: 10px 12px; background: var(--surface-2); color: var(--dim); font-size: 12px; font-weight: 750; text-align: left; }
.kb-table td { padding: 10px 12px; border-top: 1px solid var(--line); }
.kb-tip { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--amber) 9%, transparent); color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.kb-tip > .i { flex: none; margin-top: 1px; color: var(--amber); font-size: 17px; }
.kb-text { margin: 4px 0 -4px; color: var(--text); font-size: 14.5px; font-weight: 700; }
.kb-cta { justify-self: start; }
.kb-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.kb-next b { flex-basis: 100%; color: var(--dim); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 760px) {
  .way-grid { gap: 8px; }
  .way { justify-items: center; padding: 12px 6px; text-align: center; }
  .way-mark { width: 38px; height: 38px; margin-bottom: 6px; font-size: 19px; }
  .way b { font-size: 13.5px; }
  .way small { font-size: 10.5px; }
  .way em { position: static; order: -1; margin-bottom: 4px; }
  .csteps { padding: 14px; }
  .kb-layout { grid-template-columns: minmax(0, 1fr); }
  .kb-nav { display: none; }
  .models-card { flex-wrap: wrap; }
  .models-main { flex-basis: calc(100% - 100px); }
}
.kb-link[hidden], .kb-sec[hidden], .kb-empty[hidden] { display: none; }
@media (max-width: 760px) {
  .how-node.how-where { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: stretch; padding: 8px; }
  .how-way { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 4px; text-align: center; font-size: 12px; }
  .how-way .i { font-size: 20px; }
}

/* «Админка» (#/admin) and the invite / bonus code sheets */
.adm-page { max-width: 880px; }
.adm-head { display: flex; align-items: center; gap: 12px; }
.adm-head .page-title { flex: 1; margin: 4px 0; }
.adm-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--surface-2); color: var(--brand); font-size: 22px; }
.adm-tabs { display: flex; gap: 6px; margin: 14px 0 6px; overflow-x: auto; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 14px; font-weight: 700; }
.adm-tabs a.on { background: var(--accent); color: var(--accent-ink); }
.adm-tabs .i { font-size: 16px; }
.adm-card { display: grid; gap: 10px; margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.adm-card h2 { margin: 0; font-size: 16px; font-weight: 800; }
.adm-card .toggle-row { margin-top: 0; }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm-intro { display: grid; gap: 8px; margin-top: 14px; }
.adm-intro .adm-chip { justify-self: start; }
.adm-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.adm-chip.ok { background: color-mix(in srgb, #2fbf71 16%, transparent); color: #2fbf71; }
.adm-chip.wait { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.adm-chip.off { background: var(--surface-3); color: var(--dim); }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.adm-tile { display: grid; gap: 2px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.adm-tile > .i { color: var(--brand); font-size: 20px; margin-bottom: 4px; }
.adm-tile small { color: var(--dim); font-size: 12px; font-weight: 700; }
.adm-tile b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.adm-tile em { color: var(--muted); font-size: 12px; font-style: normal; }
.adm-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.adm-line:first-of-type { border-top: 0; }
.adm-line small { color: var(--dim); font-size: 12px; text-align: right; }
.adm-table td { white-space: nowrap; }
.adm-banner { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--amber) 10%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); }
.adm-banner > span { flex: 1; display: grid; gap: 2px; }
.adm-banner small { color: var(--muted); font-size: 12.5px; }
.adm-banner > .i:first-child { color: var(--amber); font-size: 20px; }
.adm-keys { display: grid; gap: 10px; }
.adm-key { display: grid; gap: 6px; }
.adm-key > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.adm-key .field { min-height: 46px; padding: 11px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-check { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13.5px; line-height: 1.45; }
.adm-check .i { flex: none; margin-top: 2px; }
.adm-check.ok .i { color: #2fbf71; }
.adm-check.bad { color: var(--hot); }
.adm-guide { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.adm-guide summary { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; font-weight: 700; cursor: pointer; list-style: none; }
.adm-guide summary::-webkit-details-marker { display: none; }
.adm-guide[open] { display: grid; gap: 10px; }
.adm-guide ol { display: grid; gap: 6px; margin: 4px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.45; }
.adm-hook { display: grid; gap: 4px; }
.adm-hook small { color: var(--dim); font-size: 12px; font-weight: 700; }
.adm-form { display: grid; gap: 12px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.adm-grid label { display: grid; gap: 5px; align-content: start; }
.adm-grid label > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.adm-grid label > small { color: var(--dim); font-size: 12px; }
.adm-grid .field { min-height: 46px; padding: 11px 14px; font-size: 15px; }
.adm-form > .btn { justify-self: start; }
.adm-code { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.adm-code:first-of-type { border-top: 0; }
.adm-code.off .adm-code-main { opacity: .5; }
.adm-code-main { flex: 1; display: grid; gap: 3px; min-width: 0; }
.adm-code-name { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.adm-code-name .i { color: var(--dim); font-size: 14px; }
.adm-code-main small { color: var(--dim); font-size: 12.5px; overflow-wrap: anywhere; }
.adm-code .icon-btn.armed { color: var(--hot); background: color-mix(in srgb, var(--hot) 12%, transparent); }
.adm-switch { position: relative; flex: none; display: block; cursor: pointer; }
.adm-switch .toggle { display: block; }
.adm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.adm-switch input:checked ~ .toggle { background: var(--brand); }
.adm-switch input:checked ~ .toggle::after { transform: translateX(18px); background: var(--brand-ink); }
.adm-switch input:focus-visible ~ .toggle { outline: 2px solid var(--brand); outline-offset: 2px; }
.adm-inline { display: flex; gap: 8px; }
.adm-inline .field { flex: 1; min-height: 44px; padding: 10px 14px; }
.adm-under { margin: -4px 4px 0; }
.invite-link { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px 6px 6px 14px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.invite-link > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.invite-rules { display: grid; gap: 8px; margin-top: 14px; }
.invite-rules > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 15px; background: var(--surface-2); }
.invite-rules .i { flex: none; color: var(--brand); font-size: 20px; }
.invite-rules span { display: grid; gap: 1px; }
.invite-rules small { color: var(--muted); font-size: 13px; }
.invite-stats { display: flex; gap: 10px; margin: 14px 0 8px; }
.invite-stats span { flex: 1; display: grid; gap: 2px; padding: 12px; border-radius: 15px; background: var(--surface-2); color: var(--dim); font-size: 12.5px; text-align: center; }
.invite-stats b { color: var(--text); font-size: 22px; font-weight: 800; }
.adm-lead { margin: -2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.adm-steps { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; counter-reset: step; }
.adm-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; counter-increment: step; font-size: 14px; line-height: 1.45; }
.adm-steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 800; }
.adm-steps li > span { flex: 1; min-width: 180px; }
.adm-steps .link-pill { min-height: 32px; padding: 0 11px; font-size: 13px; }
.adm-key > small { color: var(--dim); font-size: 12px; }
.adm-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.adm-how > div { position: relative; display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.adm-how > div > span { position: absolute; top: 10px; right: 12px; color: var(--dim); font-size: 12px; font-weight: 800; }
.adm-how .i { color: var(--brand); font-size: 18px; margin-bottom: 2px; }
.adm-how b { font-size: 14px; }
.adm-how small { color: var(--muted); font-size: 12.5px; }

/* Sparks for money: three packs on the sparks page */
.spark-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.spark-pack { position: relative; display: grid; justify-items: center; gap: 2px; padding: 14px 8px 12px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-strong); text-align: center; transition: transform .15s var(--ease), background-color .2s; }
.spark-pack:active { transform: scale(.97); }
.spark-pack:disabled { opacity: .6; }
.spark-pack.best { background: color-mix(in srgb, var(--amber) 10%, var(--surface-2)); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.spark-pack .plan-best { top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.spark-pack-n { display: inline-flex; align-items: center; gap: 5px; }
.spark-pack-n .i { color: var(--amber); font-size: 18px; }
.spark-pack-n b { font-size: 22px; font-weight: 850; letter-spacing: -.03em; }
.spark-pack small { color: var(--dim); font-size: 12px; }
.spark-pack strong { margin-top: 6px; font-size: 15px; font-weight: 800; }

/* Phones: the task field's mode switch is one chip with the chosen mode; open, it takes the place of «?» and the
   file and voice buttons, and the send button always stays in view. */
@media (max-width: 760px) {
  .task-composer .mode-pick:not(.open) label:not(:has(input:checked)) { display: none; }
  .task-composer .mode-pick:not(.open) input:checked + span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 1px 2px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .65; }
  .task-composer .composer-row.modes-open .mode-pick { grid-column: 1 / 3; }
  .task-composer .composer-row.modes-open .engine-why, .task-composer .composer-row.modes-open .composer-tools { display: none; }
  .task-composer .mode-pick.open span { padding: 6px 9px; }
  .task-composer .composer-end { min-width: 0; }
  .task-composer .send { flex: none; }
}
/* The narrowest phones (320–380 px): the «?» about engines gives way too, so the send button never leaves the field */
@media (max-width: 380px) {
  .task-composer .composer-row:not(.modes-open) .engine-why { display: none; }
  .task-composer .mode-pick span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
  .task-composer .composer-tools .cbtn { width: 34px; }
}

/* The task field on phones: everything on one line — mode, where it runs (an icon), the model, «продолжить»
   as an icon, files, voice and send. «?» about engines lives in the engine picker. */
@media (max-width: 760px) {
  .task-composer .composer-row, .task-composer .composer-row.modes-open { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; }
  .task-composer .composer-row > * { grid-column: auto; grid-row: auto; }
  .task-composer .engine-why { display: none; }
  .task-composer .engine-pair { flex: 0 1 auto; min-width: 0; gap: 4px; }
  .task-composer .engine-chip { min-height: 34px; padding: 0 7px; gap: 3px; }
  .task-composer .engine-chip span { display: none; }
  .task-composer .tune-chip { min-width: 0; min-height: 34px; padding: 0 7px 0 9px; gap: 4px; }
  .task-composer .tune-chip b { max-width: 74px; overflow: hidden; text-overflow: ellipsis; }
  .task-composer .tune-chip .tune-meter { display: none; }
  .task-composer .composer-row .continue { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--dim); }
  .task-composer .composer-row .continue input { position: absolute; opacity: 0; pointer-events: none; }
  .task-composer .composer-row .continue span { display: none; }
  .task-composer .composer-row .continue .i { font-size: 18px; }
  .task-composer .composer-row .continue:has(input:checked) { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
  .task-composer .composer-end { margin-left: auto; gap: 2px; }
  .task-composer .composer-tools .cbtn { width: 32px; height: 34px; }
  .task-composer .send { width: 40px; height: 40px; }
  .task-composer .composer-row.modes-open .engine-pair, .task-composer .composer-row.modes-open .continue { display: none; }
}
.continue .i { display: none; }
@media (max-width: 760px) { .task-composer .composer-row .continue .i { display: block; } }
@media (max-width: 350px) { .task-composer .composer-tools .mic { display: none; } }
/* Cloud PC cards, compact: name and price on top, specs under them */
.box-kind { display: flex; align-items: center; gap: 6px; }
.box-kind .help-q { width: 26px; height: 26px; }
.box-sizes { gap: 6px; }
.box-size { gap: 2px; padding: 9px 11px; border-radius: 14px; }
.box-size em { margin-top: 2px; }
@media (max-width: 520px) {
  .box-size { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
  .box-size .box-size-top, .box-size small { grid-column: 1; }
  .box-size em { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 760px) {
  /* The line fits the field: the model's name gives way first, the send button never leaves */
  .task-composer { grid-template-columns: minmax(0, 1fr); }
  .task-composer .composer-row { min-width: 0; }
  .task-composer .mode-pick { flex: none; }
  .task-composer .mode-pick:not(.open) span { padding: 6px 8px; }
  .task-composer .engine-pair { flex: 1 1 auto; overflow: hidden; }
  .task-composer .engine-chip { flex: none; }
  .task-composer .tune-chip { flex: 0 1 auto; overflow: hidden; }
  .task-composer .tune-chip b { min-width: 0; max-width: none; white-space: nowrap; }
  .task-composer .composer-end { flex: none; }
}
@media (max-width: 760px) {
  /* Phones dictate from their own keyboard: our microphone leaves the line, and the chips drop their arrows */
  .task-composer .composer-tools .mic { display: none; }
  .task-composer .engine-chip > .i:last-child, .task-composer .tune-chip > .i:last-child { display: none; }
  .task-composer .engine-chip { padding: 0 9px; }
  .task-composer .tune-chip { padding: 0 10px; }
}
/* The narrowest phones: «продолжить диалог» (on by default) gives its place to the model's name */
@media (max-width: 360px) { .task-composer .composer-row .continue { display: none; } }

/* Help: «Назад» at the top left returns to the page the «?» was on */
.kb-close { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin: 0 0 6px -6px; padding: 0 12px 0 6px; border-radius: 99px; color: var(--text); font-size: 15px; font-weight: 700; }
.kb-close:hover { background: var(--surface-2); }
.kb-close .i { font-size: 20px; }

/* A post's main button, round at the bottom right once the real one scrolled away */
.cta-float { position: fixed; z-index: 6; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); animation: rise .2s var(--ease); }
.cta-float .i { font-size: 22px; }
/* Steam's tabs scroll sideways on a phone: the edge fades to say there is more */
@media (max-width: 760px) { .subnav { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); } }

/* The name of an icon on a long press */
.press-tip { position: fixed; z-index: 120; max-width: min(260px, calc(100vw - 16px)); padding: 7px 11px; border-radius: 10px; background: rgba(20, 24, 22, .96); color: #fff; font-size: 13px; font-weight: 650; line-height: 1.3; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); pointer-events: none; animation: rise .15s var(--ease); }
@media (hover: none) { button, .ptabs a, .subnav a, [role="tab"] { -webkit-touch-callout: none; } }

/* What needs the person: a red ring that pulses a few times, a red bubble with what to do */
.needs-fix { outline: 2px solid #ff5d4f !important; outline-offset: 3px; border-radius: 12px; animation: fix-pulse 1s ease-in-out 3; }
@keyframes fix-pulse { 50% { outline-color: rgba(255, 93, 79, .25); outline-offset: 6px; } }
.fix-tip { position: fixed; z-index: 120; max-width: min(280px, calc(100vw - 16px)); padding: 8px 12px; border-radius: 12px; background: #e5483c; color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.35; box-shadow: 0 10px 28px rgba(0, 0, 0, .4); pointer-events: none; animation: rise .18s var(--ease); }
.fix-link { display: inline-flex; align-items: center; margin-left: 6px; padding: 4px 11px; border-radius: 99px; background: #e5483c; color: #fff; font-size: 12.5px; font-weight: 800; vertical-align: middle; }
.tstep.failure .fix-link { margin: 6px 0 0; }

/* Chats of a folder: which one is open, the others in a sheet, «+» for a new one */
.chat-bar { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; }
.chat-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 700; text-align: left; }
.chat-pick span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-pick small { flex: none; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 11.5px; font-weight: 750; }
.chat-pick > .i { flex: none; color: var(--dim); font-size: 15px; }
.chat-new { flex: none; width: 40px; height: 40px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.chat-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding-right: 48px; }
.chat-list { display: grid; gap: 4px; }
.chat-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-align: left; }
.chat-row:hover, .chat-row.on { background: var(--surface-2); }
.chat-row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-row-main b { overflow: hidden; font-size: 14.5px; white-space: nowrap; text-overflow: ellipsis; }
.chat-row-main small { overflow: hidden; color: var(--dim); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.chat-row > .i { flex: none; color: var(--accent); }
/* Between two turns: what the next one ran on, when the program or the model changed */
.turn-switch { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -6px 0; color: var(--dim); font-size: 12px; font-weight: 700; }
.turn-switch::before, .turn-switch::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.turn-switch .i { font-size: 13px; }
/* The tips live in the top layer as popovers: no box of their own from the browser */
.fix-tip[popover], .press-tip[popover] { inset: auto; margin: 0; border: 0; overflow: visible; }

/* The publisher's side: services, my applications and orders, the application sheet, the publisher's desk */
.block-lead { margin: -4px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.offer { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 16px; border-radius: 18px; background: var(--surface-2); text-align: left; transition: transform .15s var(--ease), background-color .2s; }
.offer:hover { background: var(--surface-3); }
.offer:active { transform: scale(.98); }
.offer > .i { font-size: 22px; color: var(--brand); }
.offer b { font-size: 15px; }
.offer p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.offer-foot em { font-style: normal; font-weight: 800; font-size: 14px; }
.offer-foot small { display: inline-flex; align-items: center; gap: 4px; color: var(--dim); font-size: 12px; }
@media (max-width: 900px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .offer-grid { grid-template-columns: 1fr; } }
button.app-row { width: 100%; text-align: left; }
.app-progress { display: block; height: 4px; margin-top: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) calc(var(--p) * 100%), var(--surface-3) 0); }
.app-row.app-state-changes .doc-icon { color: var(--amber); }
.app-row.app-state-declined .doc-icon { color: var(--dim); }
.order-row { flex-wrap: wrap; }
.order-row > .btn { order: 4; flex: 1 1 100%; }
.order-row.order-quoted { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); }
.app-path { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 14px 0 6px; padding: 0; list-style: none; position: relative; }
.app-path li { display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--dim); font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.app-path i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); font-size: 16px; }
.app-path li.done { color: var(--muted); }
.app-path li.done i { background: color-mix(in srgb, var(--brand) 22%, var(--surface-2)); color: var(--brand); }
.app-path li.on { color: var(--text); }
.app-path li.on i { background: var(--brand); color: var(--brand-ink); }
.app-declined { display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.app-reqs { display: grid; gap: 8px; margin-top: 14px; }
.app-reqs h3, .app-h { margin: 8px 0 0; font-size: 15px; font-weight: 800; }
.app-req { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; line-height: 1.4; }
.app-req > span { flex: 1; min-width: 0; }
.app-req.done > span { color: var(--dim); text-decoration: line-through; }
.req-check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-strong); color: transparent; }
.app-req.done .req-check { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.app-history { display: grid; gap: 10px; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); list-style: none; }
.app-history li { display: grid; gap: 2px; font-size: 14px; }
.app-history small { color: var(--dim); font-size: 12px; }
.app-history p { margin: 4px 0 0; color: var(--muted); white-space: pre-wrap; line-height: 1.45; }
.order-price { margin: 4px 0 10px; color: var(--muted); }
.order-price b { color: var(--text); font-size: 18px; }
.order-sheet .field-label { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.desk-filter { margin-top: 14px; }
.desk-filter small { color: var(--dim); font-weight: 700; }
.desk-h { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 17px; font-weight: 800; }
.desk-facts { margin: 0; color: var(--muted); font-size: 13px; }
.desk-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.desk-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 650; }
.desk-text { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.desk-asks, .desk-history { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.desk-asks li { display: flex; align-items: center; gap: 8px; }
.desk-asks li.done span { color: var(--dim); text-decoration: line-through; }
.desk-asks small { color: var(--brand); font-size: 12px; }
.desk-history p { margin: 2px 0 0; color: var(--muted); white-space: pre-wrap; }
.desk-history small { color: var(--dim); }
.desk-form { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.desk-form label { display: grid; gap: 5px; }
.desk-form label > span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.desk-form .adm-grid { display: grid; grid-template-columns: 1fr 140px; gap: 10px; }
.desk-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.desk-offer:first-child { border-top: 0; }
.desk-offer > .i { color: var(--brand); }
.desk-offer > b { flex: 1; min-width: 150px; font-size: 14px; }
.desk-price { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.desk-price .field { width: 110px; min-height: 38px; }
.desk-on { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.update-tools { flex: none; align-self: flex-start; display: flex; gap: 2px; }

/* The open post: facts as small pills in one row; the rest behind «Ещё +N» */
.post-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pf { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px; border-radius: 99px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.2; }
.pf > .i { flex: none; color: var(--dim); font-size: 14px; }
.pf.accent { background: color-mix(in srgb, var(--brand) 16%, var(--surface-2)); }
.pf.accent > .i { color: var(--brand); }
.pf.tag { color: var(--muted); }
.post-facts:not(.open) .pf-x { display: none; }
.pf-more { background: none; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); }
.post-section .post-facts + .chips { margin-top: 6px; }
.pact.save.on .pact-ico { background: rgba(255, 176, 59, .18); color: var(--amber); box-shadow: inset 0 0 0 1.5px rgba(255, 176, 59, .6); }
.pact.save.on span { color: var(--amber); }

/* Support: a sum of one's own and the author's rewards */
.g-custom { background: linear-gradient(140deg, #9aa4b2, #5b6472); }
.gift-pick { grid-template-columns: repeat(6, 1fr); }
.gift-amount { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 14px; border-radius: 99px; background: rgba(255, 176, 59, .16); color: var(--amber); font-size: 18px; font-weight: 850; }
.gift-amount input { width: 120px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 99px; background: var(--surface); color: var(--text); font: inherit; text-align: center; }
.gift-rewards { display: grid; gap: 6px; }
.gift-rewards-h { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.gift-reward { display: grid; gap: 3px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); text-align: left; transition: box-shadow .15s; }
.gift-reward.on { box-shadow: inset 0 0 0 2px var(--amber); background: rgba(255, 176, 59, .1); }
.gift-reward:disabled { opacity: .5; }
.gr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gr-top b { font-size: 14.5px; }
.gr-top em { display: inline-flex; align-items: center; gap: 3px; flex: none; color: var(--amber); font-size: 13px; font-style: normal; font-weight: 800; }
.gift-reward small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.gr-meta { display: inline-flex; align-items: center; gap: 5px; color: var(--dim); font-size: 12px; font-weight: 700; }
.fund-rewards { display: grid; gap: 8px; }
.fund-rewards .fine { margin: 0; }
.fr-list { display: grid; gap: 8px; }
.fund-reward { display: grid; gap: 6px; margin: 0; padding: 10px; border: 0; border-radius: 16px; background: var(--surface-2); }
.fr-row { display: flex; align-items: center; gap: 6px; }
.fr-row > .field { flex: 1; min-width: 0; }
.fr-nums label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.fr-nums input { width: 84px; }
.fr-nums select { flex: 1; min-width: 0; }
.fr-add { justify-self: start; }
.reward-list { display: grid; gap: 6px; margin-bottom: 10px; }
.reward-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.reward-line > .i { color: var(--amber); }
.reward-line span { display: grid; gap: 2px; }
.reward-line small { color: var(--muted); font-size: 12.5px; }

/* AI World: removing a project */
.hero-icon.danger { background: color-mix(in srgb, #ff6b78 18%, transparent); color: #ff6b78; }
.remove-ws .toggle-row { margin-top: 12px; }
.btn-danger { background: #e5484d; color: #fff; }

/* Chats: the open one first, the others after it, in a row that scrolls sideways */
.chat-strip { flex: 1; min-width: 0; display: flex; gap: 6px; padding: 2px 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.chat-strip::-webkit-scrollbar { display: none; }
.chat-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; max-width: 168px; min-height: 34px; padding: 0 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.chat-chip span { overflow: hidden; text-overflow: ellipsis; }
.chat-chip .i { flex: none; font-size: 14px; }
.chat-chip.on { max-width: 210px; background: var(--surface-2); border-color: var(--accent); color: var(--text); }
.chat-bar .chat-all { flex: none; display: inline-flex; align-items: center; gap: 2px; width: auto; height: 34px; padding: 0 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.chat-bar .chat-all small { color: var(--muted); font-size: 12px; font-weight: 800; }
.chat-bar .chat-new { width: 34px; height: 34px; border-radius: 50%; }
.chat-list { overflow-x: clip; }
.chat-row[data-chat] { position: relative; cursor: pointer; transition: transform .22s var(--ease); touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.chat-row.swiping { transition: none; }
.chat-row .swipe-tray { top: 2px; bottom: 2px; }
.chat-hint { margin: 10px 2px 0; }
/* A comment row only scrolls the page up and down: a sideways move is the swipe, never a scroll */
.comment[data-comment] { touch-action: pan-y; }

/* Holding a video's edge: twice as fast, like TikTok */
.speed-mark { position: absolute; z-index: 2; top: calc(var(--safe-t, 0px) + 64px); left: 50%; display: inline-flex; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 99px; background: rgba(12, 12, 14, .5); color: #fff; font-size: 14px; transform: translateX(-50%); pointer-events: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: speed-in .18s var(--ease) both; }
@keyframes speed-in { from { opacity: 0; transform: translateX(-50%) scale(.8); } }
.speed-mark b { margin-right: 4px; font-weight: 850; }
.speed-mark .i { width: 12px; height: 12px; margin-left: -4px; }

/* Chats: the open one is filled, a pill slides to the one chosen; the row sticks under the project's tabs */
.chat-strip { position: relative; }
.chat-ink { position: absolute; z-index: 0; top: 2px; left: 0; height: 34px; width: 0; border-radius: 99px; background: var(--accent); opacity: 0; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); pointer-events: none; transition: transform .36s cubic-bezier(.2, .9, .25, 1.08), width .36s cubic-bezier(.2, .9, .25, 1.08), opacity .2s; }
.chat-chip { position: relative; z-index: 1; background: transparent; border-color: var(--line-strong); transition: color .25s, border-color .25s, background-color .25s; }
.chat-chip.on { max-width: 210px; background: transparent; border-color: transparent; color: var(--accent-ink); font-weight: 800; }
.chat-chip.on .i { color: var(--accent-ink); }
.ws-page.tasks .chat-bar { position: sticky; z-index: 11; top: calc(var(--top-h) + 56px); margin: -8px -6px 10px; padding: 6px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: top .25s var(--ease); }
body.ws-reading .ws-page.tasks .chat-bar { top: calc(var(--top-h) + 4px); }
@media (max-width: 760px) {
  .ws-page.tasks .chat-bar { top: calc(var(--top-h) + var(--safe-t) + 62px); }
  body.ws-reading .ws-page.tasks .chat-bar { top: calc(var(--top-h) + var(--safe-t) + 4px); }
}
/* The old chat fades while the new one loads; the new one comes in from the side it lies on */
#runs.chat-leaving { opacity: .35; transition: opacity .18s; }
#runs.chat-from-right { animation: chat-in-right .34s var(--ease) both; }
#runs.chat-from-left { animation: chat-in-left .34s var(--ease) both; }
@keyframes chat-in-right { from { opacity: 0; transform: translateX(24px); } }
@keyframes chat-in-left { from { opacity: 0; transform: translateX(-24px); } }

/* The rewards editor: cards like the ones supporters see, ideas to add in one tap */
.rw-editor { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 176, 59, .08), transparent 55%), var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 176, 59, .18); }
.rw-head { display: flex; align-items: center; gap: 12px; }
.rw-head > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rw-head b { font-size: 15.5px; }
.rw-head small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.rw-mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(140deg, #ffd36b, #ff9f1c); color: #2a1600; font-size: 20px; box-shadow: 0 8px 22px rgba(255, 159, 28, .28); }
.rw-count { flex: none; color: var(--amber); font-size: 12px; font-style: normal; font-weight: 800; }
.rw-list { display: grid; gap: 8px; }
.rw-editor.has-rewards .rw-empty { display: none; }
.rw-empty p { margin: 0; padding: 12px; border-radius: 14px; border: 1px dashed var(--line-strong); color: var(--dim); font-size: 13px; text-align: center; }
.rw-card { display: grid; gap: 4px; margin: 0; padding: 12px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 0 var(--line) inset, 0 6px 18px rgba(0, 0, 0, .18); }
.rw-card.rw-new { animation: rw-in .3s var(--ease) both; }
@keyframes rw-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.rw-top { display: flex; align-items: center; gap: 10px; }
.rw-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 176, 59, .16); color: var(--amber); font-size: 17px; }
.rw-card.physical .rw-icon { background: rgba(103, 232, 249, .14); color: #67e8f9; }
.rw-title { flex: 1; min-width: 0; min-height: 34px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15.5px; font-weight: 750; outline: none; }
.rw-title::placeholder, .rw-text::placeholder { color: var(--dim); font-weight: 600; }
.rw-del { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--dim); }
.rw-del:hover { background: rgba(255, 107, 120, .12); color: #ff6b78; }
.rw-text { width: 100%; min-height: 24px; padding: 0 0 0 44px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; line-height: 1.4; resize: none; outline: none; field-sizing: content; }
.rw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.rw-price { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 10px; border-radius: 99px; background: rgba(255, 176, 59, .14); color: var(--amber); font-size: 13px; font-weight: 800; }
.rw-price input { width: 64px; min-height: 32px; padding: 0 6px; border: 0; background: none; color: var(--amber); font: inherit; font-weight: 850; outline: none; }
.rw-kind { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--surface-2); }
.rw-kind label { position: relative; }
.rw-kind input { position: absolute; opacity: 0; pointer-events: none; }
.rw-kind span { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border-radius: 99px; color: var(--dim); font-size: 12.5px; font-weight: 750; cursor: pointer; transition: background-color .2s, color .2s; }
.rw-kind span .i { font-size: 13px; }
.rw-kind input:checked + span { background: var(--surface-3); color: var(--text); }
.rw-kind input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 1px; }
.rw-limit { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 0 4px 0 10px; border-radius: 99px; background: var(--surface-2); color: var(--dim); font-size: 12.5px; font-weight: 750; }
.rw-limit input { width: 52px; min-height: 32px; padding: 0 4px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 800; text-align: center; outline: none; }
.rw-ideas { display: grid; gap: 6px; }
.rw-ideas small { color: var(--dim); font-size: 12px; font-weight: 750; }
.rw-ideas > div { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
.rw-ideas > div::-webkit-scrollbar { display: none; }
.rw-idea { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.rw-idea .i { color: var(--amber); font-size: 14px; }
.rw-idea em { color: var(--amber); font-size: 12px; font-style: normal; font-weight: 850; }
.rw-idea:disabled { opacity: .45; }
.rw-add { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 14px; border: 1.5px dashed rgba(255, 176, 59, .45); color: var(--amber); font-size: 14px; font-weight: 800; }
.rw-add:disabled { opacity: .4; }
.rw-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--dim); font-size: 12px; line-height: 1.4; }
.rw-note .i { flex: none; margin-top: 1px; }

/* Publisher services: a row high on the Steam page, a page of their own, a colour for each service */
.offer { --tint: hsl(var(--hue, 210) 85% 66%); position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 6px; padding: 16px; border-radius: 20px; background: radial-gradient(120% 70% at 0% 0%, hsl(var(--hue, 210) 80% 60% / .16), transparent 60%), var(--surface-2); box-shadow: inset 0 0 0 1px hsl(var(--hue, 210) 80% 70% / .16); text-align: left; overflow: hidden; }
.offer:hover { background: radial-gradient(120% 70% at 0% 0%, hsl(var(--hue, 210) 80% 60% / .24), transparent 60%), var(--surface-2); }
.offer-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(140deg, hsl(var(--hue, 210) 90% 72%), hsl(calc(var(--hue, 210) + 35) 80% 52%)); color: #0d0f12; font-size: 21px; box-shadow: 0 8px 22px hsl(var(--hue, 210) 80% 50% / .3); }
.offer b { margin-top: 4px; font-size: 15.5px; letter-spacing: -.01em; }
.offer p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.offer-foot em { color: var(--tint); font-size: 15px; font-style: normal; font-weight: 850; }
.offer-foot small { display: inline-flex; align-items: center; gap: 4px; color: var(--dim); font-size: 12px; font-weight: 700; }
.offer-order { justify-self: stretch; margin-top: 4px; background: hsl(var(--hue, 210) 80% 62% / .16); color: var(--tint); box-shadow: inset 0 0 0 1px hsl(var(--hue, 210) 80% 70% / .3); }
.offer-order:hover { background: hsl(var(--hue, 210) 80% 62% / .26); }
.offers-rail .block-lead { margin-bottom: 10px; }
.offer-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 30%); gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.offer-row::-webkit-scrollbar { display: none; }
.offer-row .offer { scroll-snap-align: start; }
@media (max-width: 760px) { .offer-row { grid-auto-columns: 78%; } }
.services-hero { position: relative; margin: 6px 0 14px; padding: 22px 20px; border-radius: 24px; background: radial-gradient(90% 120% at 100% 0%, rgba(159, 202, 255, .18), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(185, 163, 255, .14), transparent 60%), var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.services-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.services-hero h1 { margin: 10px 0 8px; font-size: clamp(24px, 6vw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.services-hero p { margin: 0; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.services-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.services-steps li { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.services-steps li > i { position: absolute; top: 8px; right: 10px; color: var(--dim); font-size: 12px; font-style: normal; font-weight: 850; }
.services-steps li > .i { flex: none; margin-top: 2px; color: var(--accent); font-size: 18px; }
.services-steps span { display: grid; gap: 2px; }
.services-steps b { font-size: 14px; }
.services-steps small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
@media (max-width: 760px) { .services-steps { grid-template-columns: 1fr; } }
.services-fine { margin-top: 14px; }
/* The reward card's settings in two tidy rows: the kind across, sparks and how many under it */
.rw-card .rw-meta { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "kind kind" "price limit"; gap: 8px; }
.rw-card .rw-kind { grid-area: kind; display: grid; grid-template-columns: 1fr 1fr; }
.rw-card .rw-kind span { justify-content: center; width: 100%; }
.rw-card .rw-price { grid-area: price; justify-self: start; }
.rw-card .rw-limit { grid-area: limit; margin-left: 0; }
.rw-card .rw-text { resize: none; }
.rw-editor .rw-add { width: 100%; }

/* AI World: the linked post's feedback in the project */
.ws-reviews { display: grid; gap: 12px; }
.ws-post-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ws-post-link > .i:first-child { color: var(--accent); font-size: 20px; }
.ws-post-link > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
/* A running cloud PC with no projects: the card and «Новый проект на облачном ПК» under it */
.ws-boot-empty { display: grid; gap: 10px; }
/* The running cloud PC: a green circle with a tick, as on its own page */
.ws-post-link > .boot-ok { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #5fd36b; color: #0c1f0e; font-size: 18px; }
.ws-post-link small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
