/* freepay.space cabinet theme (keks, 2026-11-06: «в кабинете используй shadcncraft»). The shadcncraft kit is built
 * on shadcn/ui's neutral theme: plain Inter, neutral grey scale, hairline borders, no accent colour. The cabinet is
 * already shadcn/ui, so here only its tokens are switched to that theme; the build links this file after the
 * cabinet's own CSS on the freepay copy only (scripts/build-worker.mjs). Klinch never loads it. */
:root, .kc-light {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --subtle: oklch(0.985 0 0);
  --sidebar: oklch(0.985 0 0);
  --bubble: oklch(0.97 0 0);
  --border: oklch(0.922 0 0);
  --border-strong: oklch(0.87 0 0);
  --accent: oklch(0.97 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --brand: oklch(0.205 0 0);
  --brand-soft: oklch(0.97 0 0);
  --ring: oklch(0.708 0 0);
  --danger: oklch(0.577 0.245 27.325);
  --code-bg: oklch(0.985 0 0);
  --canvas: oklch(0.985 0 0);
  --dot: transparent;
  --composer-shadow: 0 0 0 1px var(--border), 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
/* Dark: keks's reference (2026-11-06, Pinterest pin 737183032789836385): a deep blue-black, a soft light falling
 * from the top centre, a faint teal glow in the lower right; floating panels a shade lighter, hairlines of white at
 * a few percent, silver text. White stays the main button colour. */
.dark {
  --background: #0e111a;
  --foreground: #f2f3f7;
  --card: #161a25;
  --muted: #1a1e2a;
  --muted-foreground: #8b90a1;
  --subtle: #121520;
  --sidebar: #131722;
  --bubble: #1c2030;
  --border: rgb(255 255 255 / 0.07);
  --border-strong: rgb(255 255 255 / 0.11);
  --accent: #1a1e2a;
  --primary: #fff;
  --primary-foreground: #0e111a;
  --brand: #fff;
  --brand-soft: #1a1e2a;
  --ring: #4b5266;
  --danger: #ff6b6b;
  --code-bg: #10131c;
  --canvas: #0e111a;
  --dot: transparent;
  --composer-shadow: 0 0 0 1px var(--border);
}
body { font-family: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: normal }

/* The dot-matrix wordmark becomes the FREEPAY logo (brand/freepay/art/logo.png), in the text colour. */
svg.dm[aria-label="FREEPAY"] > * { display: none }
svg.dm[aria-label="FREEPAY"] {
  background-color: currentColor;
  -webkit-mask: url(/freepay/logo.png) left center / contain no-repeat;
  mask: url(/freepay/logo.png) left center / contain no-repeat;
}

/* The onboarding picture is a red sunset on Klinch: black and white here, as the rest of the copy. */
.kc-ob-hero { filter: grayscale(1) !important }

/* The agent's eyes glow red on Klinch: white light only on the copy. */
.kl-face, .kl-dorb { filter: grayscale(1) }

/* Headings as on freepay.space: regular weight, slightly tight. */
h1, h2 { font-weight: 400 !important; letter-spacing: -0.01em }

/* ── keks's reference (Pinterest pin 737183032789836385, a screen recording; markup gated by code/src/lib/brand.ts) ──
 * Everything small and quiet: near-black blue page with a soft light from the top centre and a teal haze lower right,
 * a barely-there rail, small type, dark chips and one white button in the top right, a narrow glass composer low on
 * the screen with the model as a pill above it, and the conversation centred under the prompt as a title. */
.dark { --background: #0c0f17; --sidebar: #10131c; --muted-foreground: #8a8fa0; --bubble: transparent }
.dark .fp-main {
  background:
    radial-gradient(46% 42% at 52% 0%, rgb(70 76 120 / 0.34), transparent 75%),
    radial-gradient(30% 34% at 92% 100%, rgb(52 104 116 / 0.16), transparent 75%),
    var(--background);
}
.fp-main { background: var(--background) }
.dark body, .dark #root { background: #090b11 }
.fp-float { background: var(--sidebar); border-radius: 14px; overflow: hidden }
.dark .fp-float { box-shadow:inset 0 0 0 1px rgb(255 255 255 / 0.025)}
.fp-main .kc-topbar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none }

/* Top right: dark chips («0/10 Credits Used») and the white account button. */
.fp-account {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 4px; border-radius: 9px;
  background: #fff; color: #0c0f17; font-size: 12px; font-weight: 600; transition: opacity var(--fp-t-hover) var(--fp-ease);
}
.fp-account:hover { opacity: 0.92 }
.fp-account-av > span { border-radius: 6px !important; box-shadow:none !important}
.fp-account-sep { width: 1px; height: 16px; background: rgb(0 0 0 / 0.12) }
:root:not(.dark) .fp-account { background: #0c0f17; color: #fff }

/* Composer: a narrow dark glass box, the model as a pill above its right corner, the repository chip on the left. */
.dark .fp-composer .nc-prism {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.025));
  border-color: rgb(255 255 255 / 0.07); border-radius: 16px; padding: 4px;
  box-shadow:none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.dark .fp-composer .nc-prism:focus-within { border-color: rgb(255 255 255 / 0.13) }
.dark .fp-composer .kl-glow:focus-within { box-shadow:none !important}
.fp-composer textarea { font-size: 13.5px !important }
.fp-composer textarea::placeholder { color: #6f7486 }
.fp-composer .kl-mic, .fp-composer .kl-send { width: 28px !important; height: 28px !important }
.fp-composer .kl-mic svg { width: 15px; height: 15px }
.fp-composer .kl-send svg { width: 15px; height: 15px }
.kl-send { background: rgb(255 255 255 / 0.18); color: #0c0f17 }
.kl-send:disabled { background: rgb(255 255 255 / 0.16) !important; color: rgb(12 15 23 / 0.75) !important }
.kl-send:not(:disabled) { background: #fff; color: #0c0f17; box-shadow:none}
:root:not(.dark) .kl-send:not(:disabled) { background: #0c0f17; color: #fff }
.dark .fp-main .bg-background { background: transparent }
.dark .fp-main .before\:from-background::before { --tw-gradient-from: transparent }

/* The conversation: the prompt is a centred title, the answer sits in a narrow column under it. */
.fp-thread .kc-user-bubble { align-self: center; margin: 0 auto; max-width: 100%; border: 0; background: none; padding: 0; text-align: center }
.fp-thread .kc-user-bubble .whitespace-pre-wrap { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35 }
.fp-thread .kc-user-bubble ~ * { align-self: center }
.fp-thread { font-size: 14px }
.fp-thread .text-\[16px\] { font-size: 14.5px }
.fp-thread .prose-nc { font-size: 14px; line-height: 1.7; color: #d5d8e1 }
.fp-thread .prose-nc pre, .fp-thread .prose-nc code { font-size: 12.5px }
.fp-thread { max-width: 620px !important }

/* ── keks, 2026-11-07: «ДА ЭТО НЕЙРОСЛОП». The reference's layout stays; its look goes: no gradients, no glow, no
 * coloured cards, no glass. Back to the FREEPAY palette: pure black, white text, #999 secondary, #0d0d0d tiles,
 * #1f1f1f hairlines, one white button. These rules come last and override the ones above. */
.dark { --background: #000; --foreground: #fff; --sidebar: #0a0a0a; --card: #0d0d0d; --muted: #141414; --muted-foreground: #999;
  --border: #1f1f1f; --border-strong: #2a2a2a; --bubble: transparent; --code-bg: #0d0d0d; --canvas: #000; --accent: #141414 }
.dark .fp-main, .fp-main { background: var(--background) }
.dark body, .dark #root { background: #000 }
.dark .fp-float { box-shadow:inset 0 0 0 1px #1a1a1a}
.fp-account { border-radius: 9px; box-shadow:none}
/* Task cards: flat dark tiles like the model tiles, a mono number, white title; no pictures. */
.fp-hero [role="list"] { counter-reset: fpcard }
/* Composer: a flat dark box with a hairline, white send. */
.dark .fp-composer .nc-prism { background: #0d0d0d; border-color: #1f1f1f; box-shadow:none; -webkit-backdrop-filter: none; backdrop-filter: none }
.dark .fp-composer .nc-prism:focus-within { border-color: #333 }
.dark .fp-composer .kl-glow:focus-within { box-shadow:none !important}
.kl-send:disabled { background: #1f1f1f !important; color: #666 !important }
.fp-thread .prose-nc { color: #e5e5e5 }
.fp-account-av img { filter: grayscale(1) }

/* keks, 2026-11-07: «сделай фон градиент + шум», then «Давай такой дизайн крч» (a light AI moodboard app: a warm page,
 * a white-framed grey grid canvas, a small white menu card, a big dark two-line heading, fanned photo cards, a white
 * composer). The warm page around the frame is a soft gradient with grain. The whole cabinet uses light tokens here,
 * whatever the theme, so menus and dialogs match. */
html:has(.fp-app), html:has(.fp-app) body, .dark body:has(.fp-app) {
  --background: #f1f1f0; --foreground: #1b2a21; --card: #fff; --card-foreground: #1b2a21; --popover: #fff; --popover-foreground: #1b2a21;
  --muted: #f3f3f2; --muted-foreground: #7b7d7a; --accent: #f1f1f0; --accent-foreground: #1b2a21; --border: #e4e4e2; --border-strong: #d6d6d3;
  --input: #e4e4e2; --sidebar: #fff; --bubble: #fff; --code-bg: #111; --canvas: #f1f1f0; --primary: #111; --primary-foreground: #fff; --ring: #c8c8c4;
  color-scheme: light;
  background:
    radial-gradient(60% 60% at 0% 0%, #ffe7c2 0%, rgb(255 231 194 / 0) 70%),
    radial-gradient(55% 55% at 100% 100%, #ffd9cf 0%, rgb(255 217 207 / 0) 70%),
    radial-gradient(50% 50% at 100% 0%, #e9f1ff 0%, rgb(233 241 255 / 0) 70%),
    #fdf2e2;
}
body:has(.fp-app)::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.55'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fp-app {
  position: relative; z-index: 1; height: calc(100dvh - 40px) !important; margin: 20px; border-radius: 34px; overflow: hidden;
  border: 12px solid #fff; box-shadow:none;
  background-color: #f1f1f0;
  background-image: linear-gradient(#e6e6e4 1px, transparent 1px), linear-gradient(90deg, #e6e6e4 1px, transparent 1px);
  background-size: 26px 26px; background-position: -1px -1px;
}
@media (max-width: 767px) { .fp-app { margin: 0; height: 100dvh !important; border-width: 0; border-radius: 0 } }
.fp-app .fp-main, .fp-app .kc-main { background: transparent !important }
.fp-app .fp-main .bg-background { background: transparent }

/* The menu card. */
.fp-app .kc-sidepanel.fp-float { background: #fff; border-radius: 16px; box-shadow:none}

/* Top bar: a white «credits» pill with a gold coin, a black round «+», white round icon buttons. */
.fp-app .kc-topbar { background: transparent !important; border: 0 }
.fp-app .kc-topbar .ml-auto > span > button, .fp-app .kc-topbar .ml-auto > button { border-radius: 999px }
.fp-account-av img { filter: none }

/* Composer: white, soft border, round grey tool buttons. */
.fp-composer .nc-prism, .dark .fp-composer .nc-prism {
  background: #fff !important; border: 1px solid #ececea !important; border-radius: 20px; padding: 10px 12px 8px;
  box-shadow:none !important; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.fp-composer textarea { color: #111; font-size: 14.5px !important }
.fp-composer textarea::placeholder { color: #a9aaa7; font-style: italic }
.fp-composer .nc-prism button:not(.kl-send) { border-radius: 999px }
.fp-composer .kl-send { width: 32px !important; height: 32px !important; border-radius: 999px !important; background: #111 !important; color: #fff !important }
.fp-composer .kl-send:disabled { background: #d9d9d6 !important; color: #fff !important }

/* The thread on the canvas: the user's message as a white pill on the right, the answer as a white card. */
.fp-thread { max-width: 680px !important }
.fp-thread .kc-user-bubble {
  align-self: flex-end; margin: 0 0 0 auto; width: fit-content; max-width: 78%; text-align: left; background: #fff; color: #111; border: 0;
  border-radius: 20px; padding: 12px 18px; box-shadow:none;
}
.fp-thread .kc-user-bubble .whitespace-pre-wrap { font-size: 14.5px; font-weight: 400; letter-spacing: normal; line-height: 1.5 }
.fp-thread .kc-user-bubble ~ * { align-self: flex-end }
.fp-thread .kc-ai-msg { background: #fff; border-radius: 22px; padding: 16px 20px 12px; box-shadow:none}
.fp-thread .prose-nc { color: #1f2a23 }
.fp-thread .kc-ai-msg .bg-code-bg { --foreground: #ededed; --muted-foreground: #9a9a9a; --border: #222; --muted: #1a1a1a; color: #ededed; background: #111 }
.fp-thread .kc-ai-msg .prose-nc :not(pre) > code { background: #f3f3f2; color: #111 }

html:has(.fp-app) #root, html:has(.fp-app) body > div:first-of-type { background: transparent }

/* keks, 2026-11-07: «шрифт сделай как у Notion» — Notion's own stack: the system UI font, bold page-style headings. */
html:has(.fp-app) { --fp-notion: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol" }
html:has(.fp-app) body, html:has(.fp-app) button, html:has(.fp-app) input, html:has(.fp-app) textarea { font-family: var(--fp-notion); letter-spacing: normal }
html:has(.fp-app), html:has(.fp-app) body { --foreground: #37352f; --card-foreground: #37352f; --popover-foreground: #37352f; --accent-foreground: #37352f }

/* keks, 2026-11-07 02:28: «Убери скругление и обводку. Фон сделай блюр+шум+размытие» — no frame: the cabinet fills the
 * window; the background is large soft colour blobs, blurred, with grain on top; the menu, cards and composer are
 * frosted glass over it. */
.fp-app, .dark .fp-app {
  margin: 0 !important; height: 100dvh !important; border: 0 !important; border-radius: 0 !important; box-shadow:none !important;
  background: transparent !important; background-image: none !important;
}
html:has(.fp-app), html:has(.fp-app) body { background: #f6efe6 !important }
html:has(.fp-app) body::after {
  content: ""; position: fixed; inset: -10%; z-index: 0; pointer-events: none; filter: blur(70px); opacity: 0.9;
  background:
    radial-gradient(32% 38% at 12% 18%, #ffcf9e 0%, rgb(255 207 158 / 0) 100%),
    radial-gradient(30% 34% at 82% 14%, #c9dcff 0%, rgb(201 220 255 / 0) 100%),
    radial-gradient(34% 40% at 70% 78%, #ffc2d1 0%, rgb(255 194 209 / 0) 100%),
    radial-gradient(30% 36% at 22% 82%, #cdeedd 0%, rgb(205 238 221 / 0) 100%),
    radial-gradient(26% 30% at 48% 46%, #fff3d6 0%, rgb(255 243 214 / 0) 100%);
}
html:has(.fp-app) body::before { z-index: 1; opacity: 0.45 }
.fp-app { z-index: 2 }
.fp-app .kc-sidepanel.fp-float, .fp-composer .nc-prism, .dark .fp-composer .nc-prism, .fp-thread .kc-user-bubble, .fp-thread .kc-ai-msg {
  background: rgb(255 255 255 / 0.62) !important; -webkit-backdrop-filter: blur(24px) saturate(1.4) !important; backdrop-filter: blur(24px) saturate(1.4) !important;
  border: 0 !important; box-shadow:none !important;
}

/* keks, 2026-11-07: «весь дизайн уже все элементы в этом стиле делай а то дохуя от клинча осталось». Every page of
 * the cabinet in the same style: pages sit on one frosted sheet like a Notion page, titles are Notion page titles,
 * Klinch's red becomes the FREEPAY teal of the logo, mono caps labels become quiet sans labels, tiles and inputs are
 * light glass, menus/tooltips/dialogs are white glass. */
html:has(.fp-app), html:has(.fp-app) body {
  --brand: #0f7b6c; --brand-soft: #ddedea; --primary: #37352f; --ring: rgb(15 123 108 / 0.35);
  --aurora: linear-gradient(135deg, #2a9d8f 0%, #0f7b6c 55%, #045f55 100%);
}
.fp-app [class*="ff2d36"] { --tw-ring-color: #0f7b6c }
.fp-app .bg-\[\#ff2d36\], body:has(.fp-app) .bg-\[\#ff2d36\] { background-color: #0f7b6c !important }
.fp-app .text-\[\#ff2d36\], body:has(.fp-app) .text-\[\#ff2d36\] { color: #0f7b6c !important }
.fp-app .text-red-500 { color: #c4554d }

/* Page sheet + title. */
.fp-app .kl-page {
  margin: 0 16px 16px; width: auto; min-height: calc(100% - 16px); border-radius: 24px;
  background: rgb(255 255 255 / 0.55); -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3);
  box-shadow:none;
}
@media (min-width: 768px) { .fp-app .kl-page { padding: 32px 40px 56px !important } }
@media (max-width: 767px) { .fp-app .kl-page { margin: 0 8px 8px; border-radius: 18px } }
.fp-app .kc-topbar h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #37352f }
.fp-app .kc-topbar h1 ~ *, .fp-app .kc-topbar > span.grid { }
.fp-app .kc-topbar > span.grid { background: transparent; box-shadow:none; --tw-ring-shadow: 0 0 #0000; color: #37352f }

/* Quiet labels instead of Klinch's mono caps (code stays mono). */
.fp-app .font-mono.uppercase, body:has(.fp-app) [role="dialog"] .font-mono.uppercase {
  font-family: var(--fp-notion); text-transform: none; letter-spacing: 0; font-weight: 500; color: #787774;
}

/* Tiles, cards and inputs inside pages: light glass with a hairline. */
.fp-app .kl-page .bg-card, .fp-app .kl-page .bg-muted, .fp-app .kl-page [class*="bg-foreground/[0.0"], .fp-app .kc-sidepanel [class*="bg-foreground/[0.0"] {
  background-color: rgb(255 255 255 / 0.6) !important;
}
.fp-app .kl-page .border, .fp-app .kl-page .border-border { border-color: rgb(55 53 47 / 0.09) !important }
.fp-app .kl-page [class*="ring-border"] { --tw-ring-color: rgb(55 53 47 / 0.09) }
.fp-app input, .fp-app select, .fp-app textarea:not(.fp-composer textarea), body:has(.fp-app) [role="dialog"] input {
  background-color: rgb(255 255 255 / 0.75); border-color: rgb(55 53 47 / 0.12); color: #37352f; border-radius: 10px;
}
.fp-app .kl-page .rounded-xl, .fp-app .kl-page .rounded-2xl { border-radius: 16px }

/* Menus, tooltips, dialogs: white glass. */
body:has(.fp-app) .nc-popover, body:has(.fp-app) .nc-material, body:has(.fp-app) [role="dialog"], body:has(.fp-app) [role="menu"], body:has(.fp-app) [data-radix-popper-content-wrapper] > [role="dialog"] {
  background: rgb(255 255 255 / 0.82) !important; color: #37352f; border: 1px solid rgb(55 53 47 / 0.08) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:none !important;
}
body:has(.fp-app) [data-radix-popper-content-wrapper] .nc-popover.bg-foreground { background: rgb(55 53 47 / 0.92) !important; color: #fff; border: 0 !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px) }

/* Buttons: Notion-dark primary, teal accents. */
.fp-app .bg-foreground.text-background, body:has(.fp-app) [role="dialog"] .bg-foreground.text-background { background-color: #37352f }
.fp-app .bg-brand, body:has(.fp-app) .bg-brand { color: #fff }

/* Chat list panel and MagicStudio canvas on the background. */
.fp-app .kc-sidepanel .border-b, .fp-app .kc-sidepanel .border-border { border-color: rgb(55 53 47 / 0.08) }
.fp-app .kc-sidepanel.fp-float { margin: 12px 0 12px 12px !important; border-radius: 18px !important }
.fp-app [data-page="photo"] [class*="bg-canvas"] { background: transparent !important }

/* keks, 2026-11-07: «давай сделаем окна переписки как в телеграм». Telegram bubbles: the user's on the right in
 * Telegram's light green with a tail at the bottom right, Freepay AI's on the left in white with a tail at the bottom
 * left and its name in colour, the time (and two ticks on the user's) small in the bubble's corner. */
.fp-thread { gap: 6px }
.fp-thread .kc-user-bubble, .fp-thread .kc-ai-msg {
  position: relative; overflow: visible; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  box-shadow:none !important; border: 0 !important;
}
.fp-thread .kc-user-bubble {
  background: #effdde !important; color: #000; max-width: 72%; border-radius: 16px 16px 4px 16px; padding: 7px 12px 7px 12px;
}
.fp-thread .kc-user-bubble .whitespace-pre-wrap { font-size: 15px; line-height: 1.4; color: #000; display: inline }
.fp-thread .kc-ai-msg {
  background: #fff !important; max-width: 86%; align-self: flex-start; border-radius: 16px 16px 16px 4px; padding: 8px 14px 8px; gap: 6px;
}
.fp-thread .kc-ai-msg > :first-child { color: #3390ec; font-size: 13.5px; font-weight: 600 }
.fp-thread .kc-ai-msg .prose-nc { font-size: 15px; line-height: 1.45; color: #000 }
.fp-thread .kc-user-bubble::after, .fp-thread .kc-ai-msg::after {
  content: ""; position: absolute; bottom: 0; width: 11px; height: 17px; background-repeat: no-repeat; background-size: 11px 17px;
}
.fp-thread .kc-user-bubble::after { right: -8px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 17'%3E%3Cpath d='M0 0v17h9c1.7 0 2.4-1.3 1.3-2.4C5.5 10.6 2 6 2 0Z' fill='%23effdde'/%3E%3C/svg%3E") }
.fp-thread .kc-ai-msg::after { left: -8px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 17'%3E%3Cpath d='M11 0v17H2C.3 17-.4 15.7.7 14.6 5.5 10.6 9 6 9 0Z' fill='%23fff'/%3E%3C/svg%3E") }
.fp-time { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px -4px -3px 10px; font-size: 11.5px; line-height: 1; color: #a0acb6; font-variant-numeric: tabular-nums; user-select: none }
.fp-thread .kc-user-bubble .fp-time { color: #4fae4e }
.fp-ticks { width: 16px; height: 10px }
.fp-thread .kc-ai-msg .fp-time { position: absolute; right: 12px; bottom: 7px; margin: 0; float: none }

/* keks, 2026-11-07 ~00:45, three references: (1) «меню афигенно сделано» — a black frame hugging the content, a narrow
 * black icon rail on the left (logo on top, thin white icons, the active one in a dark circle; docs, wallet and the
 * avatar at the bottom), the content in a rounded card; (2) «Вот такой стиль круто» — warm paper background, small-caps
 * labels, grey pill chips, black dots, a blurred glowing blue line and one peach highlight; (3) «а это справа круто
 * выглядело бы» — a black tab growing out of the frame's right edge with ring gauges. This replaces the blurred-blob
 * glass of #662/#664; the Telegram bubbles stay. */
html:has(.fp-app), html:has(.fp-app) body, .dark body:has(.fp-app) {
  --background: #f4f1eb; --card: #fbfaf7; --popover: #fbfaf7; --muted: #ebe7df; --accent: #ebe7df; --border: #dcd7cd; --border-strong: #cfc9bd;
  --foreground: #1d1d1b; --card-foreground: #1d1d1b; --popover-foreground: #1d1d1b; --accent-foreground: #1d1d1b; --muted-foreground: #77736b;
  --brand: #2f9bff; --brand-soft: #dcefff; --primary: #1d1d1b; --ring: rgb(47 155 255 / 0.45); --sidebar: #f4f1eb;
  --aurora: linear-gradient(135deg, #7cc6ff 0%, #2f9bff 60%, #1677e6 100%);
  background: #e9e5dc !important;
  background-image: radial-gradient(rgb(29 29 27 / 0.075) 1.1px, transparent 1.3px) !important; background-size: 7px 7px !important;
}
html:has(.fp-app) body::after { display: none }
html:has(.fp-app) body::before { opacity: 0.25 }
.fp-app .bg-\[\#ff2d36\], body:has(.fp-app) .bg-\[\#ff2d36\] { background-color: #2f9bff !important }
.fp-app .text-\[\#ff2d36\], body:has(.fp-app) .text-\[\#ff2d36\] { color: #2f9bff !important }

/* The black frame and the content card. */
.fp-app, .dark .fp-app {
  margin: 12px !important; height: calc(100dvh - 24px) !important; border-radius: 30px !important; overflow: hidden;
  background: #000 !important; padding: 8px 8px 8px 0; box-shadow:none !important;
}
@media (max-width: 767px) { .fp-app, .dark .fp-app { margin: 0 !important; height: 100dvh !important; border-radius: 0 !important; padding: 0 } }
.fp-app .kc-main { background: #f4f1eb !important; border-radius: 24px; overflow: hidden }
@media (max-width: 767px) { .fp-app .kc-main { border-radius: 0 } }
.fp-app .kl-page, .fp-app .kl-page:hover { background: transparent !important; box-shadow:none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; margin: 0; border-radius: 0 }

/* The rail. */
.fp-app .kc-rail.fp-float {
  width: 64px !important; margin: 0 !important; background: transparent !important; box-shadow:none !important; border-radius: 0 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}

/* The chat list opens as a card inside the frame. */
.fp-app .kc-sidepanel.fp-float, .fp-app .kc-sidepanel {
  background: #f4f1eb !important; margin: 0 8px 0 0 !important; border-radius: 24px !important; box-shadow:none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}

/* Small caps labels, grey pills, black dots. */
.fp-app .font-mono.uppercase, body:has(.fp-app) [role="dialog"] .font-mono.uppercase,
.fp-app .kl-page h2, .fp-app .kl-page h3.text-\[11px\], .fp-app label.text-\[11px\] {
  font-family: var(--fp-notion); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10.5px; font-weight: 700; color: #1d1d1b;
}

/* Cards and inputs: paper, hairlines, no glass. */
.fp-composer .nc-prism, .dark .fp-composer .nc-prism, body:has(.fp-app) .nc-popover, body:has(.fp-app) .nc-material, body:has(.fp-app) [role="dialog"], body:has(.fp-app) [role="menu"] {
  background: #fbfaf7 !important; border: 1px solid #e2ddd3 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  box-shadow:none !important;
}
body:has(.fp-app) [data-radix-popper-content-wrapper] .nc-popover.bg-foreground { background: #1d1d1b !important; color: #fff; border: 0 !important }
.fp-app .kl-page .bg-card, .fp-app .kl-page .bg-muted, .fp-app .kl-page [class*="bg-foreground/[0.0"] { background-color: #fbfaf7 !important }
.fp-app .kl-page .border, .fp-app .kl-page .border-border { border-color: #e2ddd3 !important }
.fp-app input, .fp-app select { background-color: #fbfaf7; border-color: #dcd7cd }
.fp-composer .kl-send { background: #1d1d1b !important }
.fp-composer .kl-send:not(:disabled) { box-shadow:none !important}
/* Keep content clear of the tab. */
@media (min-width: 1024px) { .fp-app .kc-main { margin-right: 0 } .fp-app .kc-topbar, .fp-app .fp-hero > div, .fp-app .kl-page { padding-right: 84px } }

/* keks, 2026-11-07 ~00:52: an Ace Studio screenshot, «Сделаешь точь в точь? … левое меню кайфово скруглено. Я не хочу
 * еще пространство и обводку черную». No black frame and no space around: a light grey window, the left menu in
 * #f9f9f9 with a big rounded corner and a hairline, the content white with a hairline under the top bar, grey pill for
 * the user's message, plain answer under the agent's name. Overrides the black frame / paper look of #668. */
html:has(.fp-app), html:has(.fp-app) body, .dark body:has(.fp-app) {
  --background: #ffffff; --card: #ffffff; --popover: #ffffff; --muted: #f3f3f3; --accent: #f0f0f0; --border: #e8e8e8; --border-strong: #dcdcdc;
  --foreground: #1f1f1f; --card-foreground: #1f1f1f; --popover-foreground: #1f1f1f; --accent-foreground: #1f1f1f; --muted-foreground: #8a8a8a;
  --brand: #1f1f1f; --brand-soft: #f0f0f0; --primary: #1f1f1f; --ring: rgb(0 0 0 / 0.15); --sidebar: #f9f9f9;
  background: #f2f2f2 !important; background-image: none !important;
}
html:has(.fp-app) body::before, html:has(.fp-app) body::after { display: none !important }
.fp-app, .dark .fp-app {
  margin: 0 !important; height: 100dvh !important; border-radius: 0 !important; padding: 0 !important; box-shadow:none !important;
  background: #f2f2f2 !important; border: 0 !important;
}
.fp-app .kc-main { background: #fff !important; border-radius: 0 !important; margin: 0 !important; border-top: 1px solid #e8e8e8 }
.fp-app .kc-topbar { border-bottom: 1px solid #ececec !important; height: 64px }
.fp-app .kc-topbar, .fp-app .fp-hero > div, .fp-app .kl-page { padding-right: revert-layer }
@media (min-width: 768px) { .fp-app .kc-topbar { padding-left: 32px; padding-right: 24px } }
.fp-crumbs { font-size: 16px; color: #8a8a8a }
.fp-app .kc-topbar h1 { font-size: 16px; font-weight: 500; color: #1f1f1f; letter-spacing: 0 }

/* The menu. */
.fp-app .fp-side {
  background: #f9f9f9 !important; border: 1px solid #e8e8e8; border-right-color: #e5e5e5; border-bottom: 0; border-left: 0;
  border-top-left-radius: 34px; margin: 0 !important; box-shadow:none !important;
}
.fp-side-head { display: flex; align-items: center; gap: 4px; height: 76px; padding: 0 16px 0 26px; flex-shrink: 0 }
.fp-side-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #6b6b6b }
.fp-side-btn:hover { background: #ededed; color: #1f1f1f }
.fp-side-btn svg { width: 21px; height: 21px }
.fp-side-item {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px; border-radius: 12px; color: #3a3a3a;
  font-size: 16px; text-align: left; transition: background-color var(--fp-t-hover) var(--fp-ease);
}
.fp-side-item:hover { background: #f0f0f0 }
.fp-side-item.is-on { background: #ebebeb; color: #1f1f1f }
.fp-side-ic { display: grid; place-items: center; width: 24px; flex-shrink: 0; color: #5a5a5a }
.fp-side-item.is-on .fp-side-ic { color: #1f1f1f }
.fp-side-ic svg { width: 20px; height: 20px }
.fp-side-tile { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: #fff; flex-shrink: 0; box-shadow:inset 0 0 0 1px rgb(255 255 255 / 0.25)}
.fp-side-tile svg { width: 14px; height: 14px }
.fp-side-sec { margin: 22px 0 6px; padding: 0 12px; font-size: 14px; color: #8a8a8a }
.fp-side-chats { margin: 0 -4px; font-size: 15px }
.fp-side-chats { color: #3a3a3a }
.fp-side-foot { flex-shrink: 0; padding: 8px 12px 12px; border-top: 1px solid #ededed }
.fp-side.is-folded .fp-side-sec { display: none }
.fp-side.is-folded { border-top-left-radius: 26px }

/* Content. */
.fp-app .kl-page { background: #fff !important; padding-left: 32px; padding-right: 32px }
.fp-app .font-mono.uppercase, body:has(.fp-app) [role="dialog"] .font-mono.uppercase, .fp-app .kl-page h2, .fp-app .kl-page h3.text-\[11px\], .fp-app label.text-\[11px\] {
  text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: #8a8a8a;
}
.fp-app .kl-page .bg-card, .fp-app .kl-page .bg-muted, .fp-app .kl-page [class*="bg-foreground/[0.0"] { background-color: #fafafa !important }
.fp-app .kl-page .border, .fp-app .kl-page .border-border { border-color: #ececec !important }
.fp-app input, .fp-app select { background-color: #fff; border-color: #e5e5e5 }
.fp-composer .nc-prism, .dark .fp-composer .nc-prism { background: #fff !important; border: 1px solid #e5e5e5 !important; border-radius: 24px !important; box-shadow:none !important}
.fp-composer .kl-send:not(:disabled) { box-shadow:none !important}
body:has(.fp-app) .nc-popover, body:has(.fp-app) .nc-material, body:has(.fp-app) [role="dialog"], body:has(.fp-app) [role="menu"] { background: #fff !important; border: 1px solid #e8e8e8 !important }

/* The thread: grey pill for the user, a plain answer under «Freepay AI» (Telegram bubbles of #667 replaced). */
.fp-thread { gap: 18px; max-width: 760px !important }
.fp-thread .kc-user-bubble {
  background: #f0f0f0 !important; color: #1f1f1f; border-radius: 26px !important; padding: 13px 22px !important; box-shadow:none !important; max-width: 78%;
}
.fp-thread .kc-user-bubble .whitespace-pre-wrap { font-size: 16px; color: #1f1f1f }
.fp-thread .kc-user-bubble::after, .fp-thread .kc-ai-msg::after { display: none }
.fp-thread .kc-ai-msg { background: transparent !important; box-shadow:none !important; padding: 0 !important; max-width: 100%; border-radius: 0; gap: 12px }
.fp-thread .kc-ai-msg > :first-child { color: #1f1f1f; font-size: 16px; font-weight: 500; gap: 12px }
.fp-thread .kc-ai-msg .prose-nc { font-size: 16px; line-height: 1.6; color: #1f1f1f }
.fp-thread .kc-ai-msg .fp-time { display: none }
.fp-thread .kc-user-bubble .fp-time { display: none }

/* keks, 2026-11-07 01:01: «докрути … сделай как тут», «огромный шрифт текст», «по дефолту развернутое меню».
 * The reference's proportions: a compact 14px menu with 34px rows, muted grey text, the chats listed right under
 * the tools (so they are on screen without scrolling), 15px text in the thread. */
.fp-app .fp-side.w-\[272px\] { width: 256px }
.fp-side-head { height: 60px; padding: 0 12px 0 20px }
.fp-side-head img { width: 22px; height: 22px }
.fp-side-head span, .fp-side-head b, .fp-side-head strong { font-size: 15px }
.fp-side-btn { width: 30px; height: 30px; border-radius: 8px }
.fp-side-btn svg { width: 18px; height: 18px }
.fp-side-item { height: 34px; gap: 10px; padding: 0 10px; border-radius: 10px; font-size: 14px; color: #4a4a4a }
.fp-side-item.is-on { background: #ececec; color: #1a1a1a; font-weight: 500 }
.fp-side-ic { width: 20px; color: #6b6b6b }
.fp-side-ic svg { width: 17px; height: 17px }
.fp-side-tile { width: 20px; height: 20px; border-radius: 6px }
.fp-side-tile svg { width: 12px; height: 12px }
.fp-side-sec { margin: 18px 0 4px; padding: 0 10px; font-size: 12.5px; color: #8f8f8f }
.fp-side-chats { margin: 0; font-size: 14px }
.fp-side-chats .group > button.h-7 { height: 24px; padding: 0 10px; font-size: 12.5px; font-weight: 400; color: #8f8f8f; margin-top: 10px }
/* keks, 2026-11-25 («оно не ровно лол»): the «+» next to «Проекты» drops by the same 10px as the label, so the two line up. */
.fp-side-chats .group > button.h-7 ~ button { margin-top: 10px }
.fp-side-chats .group.h-9 { height: 34px; border-radius: 10px; padding-left: 10px; font-size: 14px; color: #555 }
.fp-side-chats .group.h-9.ring-1 { box-shadow:none; --tw-ring-shadow: 0 0 #0000; background: #ececec; color: #1a1a1a }
.fp-side-foot { padding: 6px 10px 10px }
.fp-side-foot .fp-side-item { height: 34px }

.fp-app .kc-topbar { height: 56px }
.fp-crumbs { font-size: 14.5px }
.fp-app .kc-topbar h1 { font-size: 14.5px }
.fp-thread .kc-user-bubble { border-radius: 22px }
.fp-thread .kc-user-bubble .whitespace-pre-wrap { font-size: 15px }
.fp-thread .kc-ai-msg > :first-child { font-size: 15px }
.fp-thread .kc-ai-msg .prose-nc { font-size: 15px; line-height: 1.65 }
.fp-side-chats > *, .fp-side-chats nav { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important }
.fp-side-chats .group > button.h-7 svg { display: none }

/* keks, 2026-11-07 01:04: «левое меню не делай скругленным» — square corners, no outer outline on the menu. */
.fp-app .fp-side, .fp-side.is-folded { border-radius: 0 !important; border-top: 0 !important }

/* Phone (2026-11-07): grid cells may shrink below their content's width, so the Dashboard cards fit the screen
 * instead of running off its right edge. */
.fp-main .kl-page .grid > * { min-width: 0 }

/* ── One UI pass (keks, 2026-11-07: «фул дизайн улучшить ... OneDesignKit»; the Figma kit is One UI) ───────────
 * Section pages: a light grey page with white rounded blocks on it (no borders, no shadows), large plain titles,
 * Inter everywhere, grouped lists with hairlines between rows. The chat page stays white for reading. */
html:has(.fp-app) {
  --fp-notion: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --fp-ou-bg: #f4f4f6; --fp-ou-card: #fff; --fp-ou-line: #ececf0; --fp-ou-text: #19191b; --fp-ou-sub: #7d7d85;
}
.fp-app .fp-main:not([data-page="code"]), .fp-app .fp-main:not([data-page="code"]) .kl-page { background: var(--fp-ou-bg) !important }
.fp-app .fp-main:not([data-page="code"]) .kc-topbar { background: var(--fp-ou-bg) }
.fp-app .fp-main:not([data-page="code"]) .kc-topbar h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--fp-ou-text) }
.fp-app .fp-main:not([data-page="code"]) .kc-box,
.fp-app .fp-main:not([data-page="code"]) .kc-card {
  background: var(--fp-ou-card) !important; border-color: transparent !important; border-radius: 24px !important; box-shadow:none !important;
}

/* Tools in the menu: flat colour circles, as One UI's app icons (no gradients). */
.fp-side-tile { border-radius: 50%; box-shadow:none}
.fp-side-item[href$="/routing"] .fp-side-tile { background: #f26b4f !important }
.fp-side-item[href$="/awards"] .fp-side-tile { background: #f0a92e !important }
.fp-side-item[href$="/photo"] .fp-side-tile { background: #5b7cfa !important }
.fp-side-item[href$="/library"] .fp-side-tile { background: #22b07d !important }
.fp-side-item[href$="/extensions"] .fp-side-tile { background: #8b5cf6 !important }

/* Extensions: each group is one white rounded block, rows with hairlines between them. */
.fp-ext-list { max-width: 880px; background: var(--fp-ou-card); border-radius: 24px; overflow: hidden }
.fp-ext-row + .fp-ext-row { box-shadow:none}
.fp-ext-row:hover { background: #fafafb }
.fp-app .fp-main[data-page="extensions"] section > div:first-child { margin-left: 8px }

/* Routing canvas: the cabinet is light here even under the .dark class, so the light line colours apply. */
html:has(.fp-app) .kc-flow { --kc-flow-line: #b4b4bd; --kc-flow-live: #16a34a; --kc-flow-pulse: #bbf7d0; --kc-flow-dot: rgb(0 0 0 / 0.08); background-color: #fff }
html:has(.fp-app) .kc-flow-node { box-shadow:none}
html:has(.fp-app) .fp-main[data-page="routing"] .kc-flow { border-color: transparent; border-radius: 24px }

/* An opened award is a full-screen layer, not a dialog box: no box styling from the dialog rules above. */
body:has(.fp-app) .aw-view[role="dialog"] { background: transparent !important; border: 0 !important; box-shadow:none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-radius: 0 !important }

/* ── Denser and with colour (keks, 2026-11-07 16:07: «много пространства и всё белое без картинок и иконок») ───── */

/* Section pages: less air around the content. */
@media (min-width: 768px) {
  .fp-app .fp-main:not([data-page="code"]) .kl-page { padding-top: 12px !important; padding-left: 24px; padding-right: 24px }
}
.fp-app .fp-main:not([data-page="code"]) .kc-topbar { height: 56px }

/* Extensions: two columns of rows on a wide screen, so a group is not a narrow strip with empty space beside it. */
.fp-ext-list { max-width: none }
@media (min-width: 1100px) {
  .fp-ext-list { display: grid; grid-template-columns: 1fr 1fr }
  .fp-ext-row:nth-child(2) { box-shadow:none}
  .fp-ext-row:nth-child(even) { border-left: 1px solid var(--fp-ou-line) }
}

/* Dashboard: the tiles' icons in colour circles. */
.fp-main[data-page="overview"] .kc-viz-tile .rounded-full.size-8 { color: #fff; box-shadow:none; --tw-ring-shadow: 0 0 #0000 }
.fp-main[data-page="overview"] .kc-viz-tile:nth-child(4n+1) .rounded-full.size-8 { background-color: #3e7bfa !important }
.fp-main[data-page="overview"] .kc-viz-tile:nth-child(4n+2) .rounded-full.size-8 { background-color: #8b5cf6 !important }
.fp-main[data-page="overview"] .kc-viz-tile:nth-child(4n+3) .rounded-full.size-8 { background-color: #f0a92e !important }
.fp-main[data-page="overview"] .kc-viz-tile:nth-child(4n+4) .rounded-full.size-8 { background-color: #22b07d !important }

/* ── Chat as one piece (keks, 2026-11-07 17:24: «всё неорганично») ─────────────────────────────────────────────
 * The conversation and the composer share one column and one axis; a short chat sits right above the composer
 * (it grows upwards like a messenger) instead of leaving a hole in the middle; the top bar's controls are one set. */
.fp-scroller { display: flex; flex-direction: column }
.fp-scroller > .fp-thread { width: 100%; margin-top: auto }
.fp-app .fp-thread, .fp-app .fp-composer { max-width: 720px !important }
.fp-app .fp-thread { padding-left: 16px !important; padding-right: 16px !important; padding-bottom: 20px !important; gap: 22px }
.fp-app .fp-thread .kc-user-bubble { border-radius: 20px !important }
.fp-app .fp-thread .kc-ai-msg { background: none !important; box-shadow:none !important; padding: 0 !important; border-radius: 0 !important }
.fp-app .fp-thread .kc-ai-msg::after, .fp-app .fp-thread .kc-user-bubble::after { display: none !important }

/* Top bar, right side: one height, one shape, one grey. */
.fp-app .kc-topbar .ml-auto { gap: 6px }
.fp-app .kc-topbar .ml-auto > button,
.fp-app .kc-topbar .ml-auto [data-slot="popover-trigger"],
.fp-app .kc-topbar .ml-auto > span > button { height: 36px; min-width: 36px; border-radius: 999px !important; color: #5f5f66 }
.fp-app .kc-topbar .ml-auto > button:hover { background: #f0f0f2 }
.fp-app .kc-topbar .ml-auto > button[aria-label*="%"] { background: #f2f2f4; padding: 0 12px 0 10px; color: #19191b; font-size: 13px }
.fp-app .kc-topbar .ml-auto > button[aria-label*="%"]:hover { background: #ebebee }

/* ── Polish (keks, 2026-11-07 17:51, «Делай»): settings with inner padding and no cards inside cards, one type
 * scale and two greys, illustrated empty states, quiet motion and skeletons, and a One UI dark theme (html.fp-dark,
 * set by the theme switch in the avatar menu; the .dark class stays on as before). ────────────────────────────── */
html:has(.fp-app) {
  --fp-ou-hover: #f0f0f3; --fp-ou-active: #e8e8ed; --fp-ou-skel: #ececf0; --fp-ou-skel2: #f6f6f8;
  --fp-ou-mid: #4a4a50;
  --muted-foreground: var(--fp-ou-sub); --foreground: var(--fp-ou-text);
}

/* One type scale on section pages: 13 / 14.5 / 17, titles 24; two greys (text, sub). No monospace outside code. */
.fp-app .fp-main:not([data-page="code"]) .kl-page :is([class*="text-[11"], [class*="text-[12"], [class*="text-[13px]"], .text-xs) { font-size: 13px }
.fp-app .fp-main:not([data-page="code"]) .kl-page :is([class*="text-[13.5"], [class*="text-[14"], [class*="text-[15"], .text-sm) { font-size: 14.5px }
.fp-app .fp-main:not([data-page="code"]) .kl-page :is([class*="text-[16"], [class*="text-[17"], [class*="text-[18"]) { font-size: 17px }
.fp-app .kl-page :is(.text-muted-foreground, [class*="text-foreground/"]) { color: var(--fp-ou-sub) }
.fp-app .kl-page .font-mono:not(pre):not(pre *):not(code):not(code *), .fp-app .kl-page td.font-mono, .fp-app .kl-page td .font-mono {
  font-family: var(--fp-notion); font-variant-numeric: tabular-nums; letter-spacing: 0;
}

/* Section blocks: real inner padding (the base .kc-card had none), a clear dark title. */
.fp-app .fp-main:not([data-page="code"]) .kc-card { padding: 20px 24px !important; margin-bottom: 12px }
@media (max-width: 640px) { .fp-app .fp-main:not([data-page="code"]) .kc-card { padding: 16px 18px !important } }
.fp-app .fp-main .kl-page .kc-card h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--fp-ou-text) }
.fp-app .fp-main .kl-page .kc-card h2 + * { margin-top: 2px }
.fp-app .fp-main .kl-page .kc-settings-h { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--fp-ou-text); margin: 4px 0 14px 4px }

/* Options inside a block are rows with a hairline, not cards in a card; the chosen one has a tick. */
.fp-app .kl-page div:has(> .kc-opt) { gap: 0 !important }
.fp-app .kl-page .kc-opt { border: 0 !important; background: transparent !important; border-radius: 0 !important; padding: 12px 0 !important; color: var(--fp-ou-sub) }
.fp-app .kl-page .kc-opt + .kc-opt { box-shadow:none}
.fp-app .kl-page .kc-opt b { color: var(--fp-ou-text); font-weight: 600 }
.fp-app .kl-page .kc-opt.is-on b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: #3e7bfa; vertical-align: 2px }

/* Settings menu: one white block, darker text, the open tab clearly marked. */
.fp-app .kl-page .kc-settings-nav a { height: 40px; padding: 0 14px; border-radius: 14px; font-size: 14.5px; color: var(--fp-ou-mid) !important; background: transparent !important }
.fp-app .kl-page .kc-settings-nav a:hover { background: var(--fp-ou-hover) !important; color: var(--fp-ou-text) !important }
.fp-app .kl-page .kc-settings-nav a[aria-current="page"] { background: var(--fp-ou-active) !important; color: var(--fp-ou-text) !important; font-weight: 600 }
@media (min-width: 1024px) { .fp-app .kl-page .kc-settings-nav { background: var(--fp-ou-card); border-radius: 22px; padding: 6px; gap: 2px } }
@media (max-width: 1023px) { .fp-app .kl-page .kc-settings-nav a { background: var(--fp-ou-card) !important; border-radius: 999px } }

/* Empty states: a small flat picture, one line, one button. */
.fp-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 16px; text-align: center }
.fp-empty-t { max-width: 420px; font-size: 14.5px; line-height: 1.5; color: var(--fp-ou-sub) }
.fp-empty-art { --fp-ea-c: #3e7bfa; --fp-ea-tint: #e7eeff; position: relative; display: block; width: 120px; height: 88px; flex-shrink: 0 }
.fp-empty-art[data-tone="violet"] { --fp-ea-c: #8b5cf6; --fp-ea-tint: #efe9ff }
.fp-empty-art[data-tone="green"] { --fp-ea-c: #22b07d; --fp-ea-tint: #e1f5ec }
.fp-empty-art[data-tone="orange"] { --fp-ea-c: #f0a92e; --fp-ea-tint: #fdf0da }
.fp-empty-svg { display: block; width: 100%; height: 100% }
.fp-ea-card { fill: var(--fp-ea-tint) }
.fp-ea-line { fill: #fff; opacity: 0.95 } .fp-ea-line.is-2 { opacity: 0.6 }
.fp-ea-dot { fill: var(--fp-ea-c); opacity: 0.35 } .fp-ea-dot.is-2 { opacity: 0.2 }
.fp-empty-ic { position: absolute; right: 16px; top: 2px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fp-ea-c); color: #fff }
.fp-empty-ic svg { width: 22px; height: 22px }
.fp-empty-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--fp-ou-text); color: var(--fp-ou-card); font-size: 14px; font-weight: 500; transition: opacity var(--fp-t-hover) var(--fp-ease)}
.fp-empty-btn:hover { opacity: 0.88 }
.fp-app .kl-page .fp-lib-empty { border: 0 !important; background: var(--fp-ou-card); border-radius: 24px !important; padding-top: 48px; padding-bottom: 48px }

/* Skeletons instead of a spinner on an empty block. */
.fp-skel { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 6px 0 }
.fp-skel-line { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--fp-ou-skel) 0%, var(--fp-ou-skel2) 50%, var(--fp-ou-skel) 100%); background-size: 200% 100%; animation: fp-shimmer 1.3s linear infinite }
@keyframes fp-shimmer { from { background-position: 100% 0 } to { background-position: -100% 0 } }

/* Motion: a page fades up when opened, rows and buttons answer the pointer. */
@keyframes fp-page-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.fp-app .kl-page { animation: fp-page-in 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both }
.fp-app .kl-page tbody tr td { transition: background-color var(--fp-t-hover) var(--fp-ease)}
.fp-app .kl-page tbody tr:hover td { background: var(--fp-ou-hover) }
.fp-app :is(.fp-side-item, .fp-ext-row, .kc-settings-nav a) { transition: background-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease)}
.fp-app .kl-page button:not(:disabled):active, .fp-empty-btn:active { transform: scale(0.97) }
.fp-app .kl-page button { transition: background-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease), opacity var(--fp-t-hover) var(--fp-ease), transform var(--fp-t-press) var(--fp-ease) }
@media (prefers-reduced-motion: reduce) {
  .fp-app .kl-page, .fp-skel-line { animation: none }
  .fp-app .kl-page button:not(:disabled):active { transform: none }
}

/* ── Dark theme, One UI style: black page, dark grey blocks, the same shapes. ───────────────────────────────── */
html.fp-dark:has(.fp-app), html.fp-dark:has(.fp-app) body, html.fp-dark body:has(.fp-app) {
  --background: #000; --card: #17171a; --popover: #1c1c1f; --muted: #1f1f23; --accent: #232327; --border: #2a2a2f; --border-strong: #38383e;
  --foreground: #f2f2f4; --card-foreground: #f2f2f4; --popover-foreground: #f2f2f4; --accent-foreground: #f2f2f4; --muted-foreground: #8e8e96;
  --brand: #f2f2f4; --brand-soft: #232327; --primary: #f2f2f4; --primary-foreground: #000; --ring: rgb(255 255 255 / 0.2); --sidebar: #0e0e10;
  --fp-ou-bg: #000; --fp-ou-card: #17171a; --fp-ou-line: #26262b; --fp-ou-text: #f2f2f4; --fp-ou-sub: #8e8e96; --fp-ou-mid: #c4c4ca;
  --fp-ou-hover: #202024; --fp-ou-active: #2a2a2f; --fp-ou-skel: #1f1f23; --fp-ou-skel2: #2a2a2f;
  background: #000 !important; color-scheme: dark;
}
html.fp-dark .fp-app, html.fp-dark .dark .fp-app { background: #000 !important }
html.fp-dark .fp-app .kc-main { background: #000 !important; border-top-color: #1c1c20 }
html.fp-dark .fp-app .kc-topbar { border-bottom-color: #1c1c20 !important }
html.fp-dark .fp-crumbs { color: #8e8e96 }
html.fp-dark .fp-app .kc-topbar h1, html.fp-dark .fp-app .fp-main:not([data-page="code"]) .kc-topbar h1 { color: #f2f2f4 }
html.fp-dark .fp-app .fp-main:not([data-page="code"]) .kc-topbar { background: #000 }

html.fp-dark .fp-app .fp-side { background: #0e0e10 !important; border-color: #1c1c20; border-right-color: #1c1c20 }
html.fp-dark .fp-side-btn { color: #9a9aa2 }
html.fp-dark .fp-side-btn:hover { background: #1f1f23; color: #f2f2f4 }
html.fp-dark .fp-side-item { color: #c4c4ca }
html.fp-dark .fp-side-item:hover { background: #1a1a1d }
html.fp-dark .fp-side-item.is-on { background: #232327; color: #fff }
html.fp-dark .fp-side-ic { color: #9a9aa2 }
html.fp-dark .fp-side-item.is-on .fp-side-ic { color: #fff }
html.fp-dark .fp-side-sec { color: #75757d }
html.fp-dark .fp-side-chats, html.fp-dark .fp-side-chats .group.h-9 { color: #b4b4bb }
html.fp-dark .fp-side-chats .group.h-9:hover { background: #1a1a1d }
html.fp-dark .fp-side-chats .group.h-9.ring-1 { background: #232327; color: #fff }
html.fp-dark .fp-side-foot { border-top-color: #1c1c20 }

html.fp-dark .fp-app .kl-page, html.fp-dark .fp-app .fp-main:not([data-page="code"]), html.fp-dark .fp-app .fp-main:not([data-page="code"]) .kl-page { background: #000 !important }
html.fp-dark .fp-app .kl-page .bg-card, html.fp-dark .fp-app .kl-page .bg-muted, html.fp-dark .fp-app .kl-page [class*="bg-foreground/[0.0"] { background-color: #1f1f23 !important }
html.fp-dark .fp-app .kl-page .border, html.fp-dark .fp-app .kl-page .border-border { border-color: #2a2a2f !important }
html.fp-dark .fp-app .kl-page input, html.fp-dark .fp-app .kl-page select, html.fp-dark .fp-app .kl-page textarea { background-color: #1f1f23; border-color: #2a2a2f; color: #f2f2f4 }
html.fp-dark .fp-app .font-mono.uppercase, html.fp-dark .fp-app .kl-page h2, html.fp-dark .fp-app .kl-page h3.text-\[11px\], html.fp-dark .fp-app label.text-\[11px\] { color: #8e8e96 }
html.fp-dark .fp-app .fp-main .kl-page .kc-card h2, html.fp-dark .fp-app .fp-main .kl-page .kc-settings-h { color: #f2f2f4 }
html.fp-dark .fp-app .bg-foreground.text-background, html.fp-dark body:has(.fp-app) [role="dialog"] .bg-foreground.text-background { background-color: #f2f2f4 !important; color: #000 !important }
html.fp-dark .fp-app .kc-topbar .ml-auto > button { color: #b4b4bb }
html.fp-dark .fp-app .kc-topbar .ml-auto > button:hover { background: #1c1c20; color: #fff }
html.fp-dark .fp-app .kc-topbar .ml-auto > button[aria-label*="%"] { background: #1c1c20; color: #f2f2f4 }

html.fp-dark .fp-composer .nc-prism, html.fp-dark .dark .fp-composer .nc-prism { background: #17171a !important; border-color: #2a2a2f !important; box-shadow:none !important}
html.fp-dark .fp-composer .kl-send:not(:disabled) { background: #f2f2f4 !important; color: #000 !important }
html.fp-dark body:has(.fp-app) :is(.nc-popover, .nc-material, [role="dialog"], [role="menu"]) { background: #1c1c1f !important; border-color: #2a2a2f !important; color: #f2f2f4 }

html.fp-dark .fp-thread .kc-user-bubble { background: #1f1f23 !important; color: #f2f2f4 }
html.fp-dark .fp-thread .kc-user-bubble .whitespace-pre-wrap, html.fp-dark .fp-thread .kc-ai-msg > :first-child, html.fp-dark .fp-thread .kc-ai-msg .prose-nc { color: #f2f2f4 }
html.fp-dark .fp-ext-row:hover { background: #1c1c20 }
html.fp-dark .fp-empty-art { --fp-ea-tint: #1d2333 }
html.fp-dark .fp-empty-art[data-tone="violet"] { --fp-ea-tint: #241f33 }
html.fp-dark .fp-empty-art[data-tone="green"] { --fp-ea-tint: #172821 }
html.fp-dark .fp-empty-art[data-tone="orange"] { --fp-ea-tint: #2d2416 }
html.fp-dark .fp-ea-line { fill: #3a3a40 }

html.fp-dark:has(.fp-app) .kc-flow { --kc-flow-line: #4a4a52; --kc-flow-live: #22c55e; --kc-flow-pulse: #14532d; --kc-flow-dot: rgb(255 255 255 / 0.08); background-color: #0e0e10 }
html.fp-dark:has(.fp-app) .kc-flow-node { box-shadow:none}
/* The steps of the connection guides are an <ol class="kc-flow"> too: the routing diagram's plate above painted them a
   black slab in the dark theme. «Любая программа за 3 шага» headings stay white there (the .kl-page h2 rule greys them). */
html:has(.fp-app) ol.kc-flow, html.fp-dark:has(.fp-app) ol.kc-flow { background-color: transparent }
html.fp-dark .fp-app .kl-page h2.fp-any-h { color: #f2f2f4 }
/* Grey controls inside a white block are grey, not near-white. */
.fp-app .kl-page .kc-card [class*="bg-foreground/[0.0"]:not([aria-current]) { background-color: var(--fp-ou-bg) !important }
html.fp-dark .fp-app .kl-page .kc-card [class*="bg-foreground/[0.0"]:not([aria-current]) { background-color: #232327 !important }

/* ── Showcase pass (keks, 2026-11-07 18:34: «как в лучших design interface pinterest»). Same light One UI, more
 * hierarchy and colour: bigger page titles, one blue accent through the charts, a solid blue balance card, light
 * locked awards so the earned ones stand out, a soft lift on everything clickable. ─────────────────────────────── */
html:has(.fp-app) {
  --fp-accent: #3e7bfa; --fp-accent-soft: #e8efff;
  --fp-lift: 0 1px 2px rgb(16 24 40 / 0.04), 0 12px 28px -16px rgb(16 24 40 / 0.18);
  --viz-1: #3e7bfa; --viz-2: #8b5cf6; --viz-3: #22b07d; --viz-4: #f0a92e; --viz-5: #f26b4f; --viz-6: #6fb0ee; --viz-7: #b4b4bd;
  --viz-other: #b4b4bd; --viz-accent: #3e7bfa; --viz-accent-soft: #e8efff;
}
html.fp-dark:has(.fp-app) { --fp-accent-soft: #1d2640; --fp-lift: 0 1px 2px rgb(0 0 0 / 0.5), 0 12px 28px -16px rgb(0 0 0 / 0.8); --viz-accent-soft: #1d2640 }

/* Page titles: one strong size, the icon in the top bar quiet. */
.fp-app .fp-main:not([data-page="code"]) .kc-topbar h1 { font-size: 22px; font-weight: 650; letter-spacing: -0.025em }
.fp-app .fp-main:not([data-page="code"]) .kc-topbar h1 ~ *, .fp-app .fp-main:not([data-page="code"]) .kc-topbar > span.grid { opacity: 1 }

/* Home: centred a little above the middle, a larger title, bigger picture tiles that lift. */
.fp-composer .nc-prism { transition: box-shadow var(--fp-t-hover) var(--fp-ease), border-color var(--fp-t-hover) var(--fp-ease)}
.fp-hero .fp-composer .nc-prism:focus-within { border-color: #cfd8ee !important; box-shadow:0 0 0 4px var(--fp-accent-soft) !important}

/* Blocks: a hairline-soft lift, so white on grey reads as layers. Clickable rows highlight in the accent tint. */
.fp-app .fp-main:not([data-page="code"]) :is(.kc-card, .kc-box, .fp-ext-list) { box-shadow:none !important}
html.fp-dark .fp-app .fp-main:not([data-page="code"]) :is(.kc-card, .kc-box, .fp-ext-list) { box-shadow:none !important}
.fp-app .fp-side-item.is-on .fp-side-ic { color: var(--fp-accent) }
.fp-app .kl-page a:not([class*="bg-"]):not(.fp-empty-btn):hover { color: var(--fp-accent) }

/* Dashboard: the balance is the hero, a solid blue card with white type; charts in one accent. */
.fp-app .fp-main[data-page="overview"] .kc-viz-hero { background: var(--fp-accent) !important; color: #fff }
.fp-app .fp-main[data-page="overview"] .kc-viz-hero :is(span, div) { color: #fff }
.fp-app .fp-main[data-page="overview"] .kc-viz-hero .text-muted-foreground { color: rgb(255 255 255 / 0.72) !important }
.fp-app .fp-main[data-page="overview"] .kc-viz-hero .text-\[40px\] { font-size: 56px; font-weight: 650; letter-spacing: -0.045em }
.fp-app .fp-main[data-page="overview"] .kc-viz-hero .kc-spark { background: rgb(255 255 255 / 0.45) }
.fp-app .fp-main[data-page="overview"] .kc-viz-hero .kc-spark[data-empty] { background: rgb(255 255 255 / 0.22) }
.fp-app .fp-main[data-page="overview"] .kc-viz-hero .kc-spark-hot { background: #fff }
.fp-app .fp-main[data-page="overview"] .kc-viz-hero a.bg-foreground, .fp-app .fp-main[data-page="overview"] .kc-viz-hero .bg-foreground.text-background { background-color: #fff !important; color: var(--fp-accent) !important }
.fp-app .fp-main[data-page="overview"] .kc-viz-hero a.bg-foreground *, .fp-app .fp-main[data-page="overview"] .kc-viz-hero button * { color: inherit }
.fp-app .fp-main[data-page="overview"] .kc-viz-hero button[class*="bg-foreground/"] { background-color: rgb(255 255 255 / 0.18) !important; color: #fff }
.fp-app .kc-heat[data-l="4"] { box-shadow:none}
.fp-app .kc-heat[data-l="0"] { background-image: none; background-color: var(--fp-ou-bg) }
html.fp-dark .fp-app .kc-heat[data-l="0"] { background-color: #222226 }

/* Awards (Awards.tsx, fp-awards.css since 2026-11-17: 3D medals): the counter on top. */
.fp-app .aw-page .h-\[2px\] > .bg-foreground { background: var(--fp-accent) }
.fp-app .aw-page .text-3xl { font-size: 40px; font-weight: 650; letter-spacing: -0.035em }

/* Routing: role nodes lift on hover. */
.fp-app .kc-flow-node { transition: box-shadow 220ms var(--fp-ease), transform 220ms var(--fp-ease)}
.fp-app .kc-flow-node:hover { box-shadow:var(--fp-lift)}

/* Chat: the user's message in a soft accent tint, the composer focus in the accent. */
.fp-app .fp-thread .kc-user-bubble { background: var(--fp-accent-soft) !important; color: var(--fp-ou-text) }
.fp-app .fp-composer .nc-prism:focus-within { border-color: #cfd8ee !important }
html.fp-dark .fp-app .fp-thread .kc-user-bubble { background: #1d2640 !important; color: #f2f2f4 }
html.fp-dark .fp-app .fp-composer .nc-prism:focus-within { border-color: #2f3b5c !important }
/* One ink for solid controls (an old Notion-brown #37352f layer still painted them). */
.fp-app .bg-foreground.text-background, body:has(.fp-app) [role="dialog"] .bg-foreground.text-background { background-color: var(--fp-ou-text) }

/* ── Second showcase pass (keks, 2026-11-07 18:44: «супер продолжай улучшать»): History, Connection, Extensions. */
/* Code blocks: a light panel with dark monospace (the text was dark on the dark code background). */
.fp-app .kl-page .bg-code-bg {
  background: var(--fp-ou-bg) !important; color: var(--fp-ou-text) !important; border-color: transparent !important;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 13px !important; line-height: 1.7;
}
.fp-app .kl-page .bg-code-bg > button { background: var(--fp-ou-card) !important; border-color: var(--fp-ou-line) !important; color: var(--fp-ou-text) !important; font-size: 12.5px !important }
html.fp-dark .fp-app .kl-page .bg-code-bg { background: #0e0e10 !important; color: #e6e6ea !important }

/* Wizard «next» button: the cabinet's black pill, no pixel tile. */
.fp-app .px-btn { height: 44px !important; padding: 0 22px !important; border-radius: 999px !important; border: 0 !important; background: var(--fp-ou-text) !important; color: var(--fp-ou-card) !important; box-shadow:none !important; gap: 0 !important; transition: opacity var(--fp-t-hover) var(--fp-ease), transform 220ms var(--fp-ease)}
.fp-app .px-btn:hover { opacity: 0.88 }
.fp-app .px-btn .px-tile { display: none !important }
.fp-app .px-btn .px-label { color: inherit !important; font-size: 14.5px; font-weight: 600; padding: 0 !important }
.fp-app .px-btn.secondary { background: var(--fp-ou-bg) !important; color: var(--fp-ou-text) !important }

/* Connection: the tool list as soft tiles that lift, the step bar with the accent. */
.fp-app .fp-main[data-page="connect"] .kl-page button.rounded-2xl.border, .fp-app .fp-main[data-page="connect"] .kl-page a.rounded-2xl.border { border-color: transparent !important; background: var(--fp-ou-bg) !important; box-shadow:none !important; transition: background-color var(--fp-t-hover) var(--fp-ease), box-shadow 220ms var(--fp-ease), transform 220ms var(--fp-ease)}
.fp-app .fp-main[data-page="connect"] .kl-page button.rounded-2xl.border:hover { background: var(--fp-ou-card) !important; box-shadow:var(--fp-lift) !important; transform: translateY(-1px) }

/* Extensions: a lone row fills the block; «Connect» is a small pill. */
.fp-ext-list > .fp-ext-row:only-child { grid-column: 1 / -1 }
.fp-ext-row > span.shrink-0.font-medium { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--fp-ou-bg); color: var(--fp-ou-text) !important; font-size: 13px !important; transition: background-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease)}
.fp-ext-row:hover > span.shrink-0.font-medium { background: var(--fp-accent); color: #fff !important }

/* History: controls at the body size, numbers aligned, the model as a quiet tag. */
.fp-app .kl-page select { font-size: 14.5px !important; height: 36px; border-radius: 12px }
.fp-app .fp-main[data-page="history"] .kl-page th { font-size: 12.5px !important; font-weight: 500; color: var(--fp-ou-sub); border-bottom-color: var(--fp-ou-line) }
.fp-app .fp-main[data-page="history"] .kl-page td { border-bottom-color: var(--fp-ou-line); font-variant-numeric: tabular-nums }
.fp-app .fp-main[data-page="history"] .kl-page td:nth-child(2) > * , .fp-app .fp-main[data-page="history"] .kl-page td:nth-child(2):not(:has(*)) { letter-spacing: 0 }
.fp-app .fp-main[data-page="history"] .kl-page tbody tr td:first-child { color: var(--fp-ou-sub) }
.fp-app .fp-main[data-page="history"] .kl-page tbody tr td:nth-last-child(2) { font-weight: 600 }

/* ── Third pass (keks, 2026-11-07 18:56: «давай делай дальше»): MagicStudio's first visit, the phone. ─────────── */
/* MagicStudio, nothing made yet: a welcome card with three overlapping colour frames and three ideas to start from. */
.ms .cv-empty-card.fp-ms-welcome { top: 42%; width: min(460px, calc(100% - 32px)); padding: 28px 24px 22px; gap: 8px; border-radius: 28px; background: #fff; box-shadow:none; color: #7d7d85; font-size: 14px }
.fp-ms-welcome > b { margin-top: 10px !important; color: #19191b !important; font-size: 20px !important; font-weight: 650 !important; letter-spacing: -0.02em }
.fp-ms-art { position: relative; display: block; width: 168px; height: 92px }
.fp-ms-art i { position: absolute; top: 10px; width: 76px; height: 76px; border-radius: 20px; box-shadow:inset 0 0 0 3px #fff}
.fp-ms-art i[data-t="1"] { left: 0; background: #6fb0ee; transform: rotate(-8deg) }
.fp-ms-art i[data-t="2"] { left: 46px; top: 0; z-index: 1; background: #7c6cf2 }
.fp-ms-art i[data-t="3"] { left: 92px; background: #f4a07e; transform: rotate(8deg) }
.fp-ms-art i[data-t="2"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 14px; height: 22px; border-radius: 10px 10px 6px 6px; background: rgb(255 255 255 / 0.85); clip-path: polygon(0 100%, 30% 20%, 52% 70%, 72% 35%, 100% 100%) }
.fp-ms-art i[data-t="2"]::before { content: ""; position: absolute; right: 16px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: #fff }
.fp-ms-ideas { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 10px }
.fp-ms-ideas button { width: 100%; padding: 11px 14px; border-radius: 14px; background: #f4f4f6; color: #19191b; font-size: 14px; text-align: left; transition: background-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease)}
.fp-ms-ideas button:hover { background: #e8efff; color: #2f5fd0 }
html.fp-dark .ms .cv-empty-card.fp-ms-welcome { background: #17171a; box-shadow:none}
html.fp-dark .fp-ms-welcome > b { color: #f2f2f4 !important }
html.fp-dark .fp-ms-ideas button { background: #232327; color: #f2f2f4 }
html.fp-dark .fp-ms-art i { box-shadow:inset 0 0 0 3px #17171a}

/* Phone: the home fits one screen; the three ideas are a compact row of picture tiles instead of a cut-off strip. */
@media (max-width: 640px) {
  .fp-app .fp-main[data-page="overview"] .kc-viz-hero .text-\[40px\] { font-size: 44px }
  .fp-app .kc-topbar h1 { font-size: 19px !important }
}
/* keks, 2026-11-07 19:03: a folded menu lists no chats as cut-off text. */

/* The agent's avatar is the brand mark (keks, 2026-11-07 19:08): it bobs while thinking, nods while speaking. */
.fp-bot { position: relative; display: inline-block; flex: none; vertical-align: middle }
.fp-bot > img { display: block; width: 100%; height: 100%; user-select: none; pointer-events: none; transform-origin: 50% 70% }
.fp-bot:is([data-state="thinking"], [data-state="waiting"], [data-state="attentive"], [data-state="listening"]) > img { animation: fp-bot-think 1.4s ease-in-out infinite }
.fp-bot[data-state="speaking"] > img { animation: fp-bot-talk 0.7s ease-in-out infinite }
.fp-bot[data-state="happy"] > img { animation: fp-bot-hop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 1 }
.fp-bot[data-state="error"] > img { filter: grayscale(1); opacity: 0.7 }
@keyframes fp-bot-think { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-8%) rotate(-6deg) } }
@keyframes fp-bot-talk { 0%, 100% { transform: rotate(0) scale(1) } 50% { transform: rotate(4deg) scale(1.05) } }
@keyframes fp-bot-hop { 0% { transform: scale(0.85) } 60% { transform: scale(1.1) } 100% { transform: scale(1) } }
@media (prefers-reduced-motion: reduce) { .fp-bot > img { animation: none !important } }

/* keks, 2026-11-07 19:18: «обводки нейрослопные убери, нормальное размытие должно быть». The composer has no
 * lavender ring or tinted border; it sits on a soft diffuse shadow with a backdrop blur. The tiles lose their outline. */
.fp-composer .nc-prism, .dark .fp-composer .nc-prism {
  border-color: transparent !important;
  box-shadow:none !important;
  background: rgb(255 255 255 / 0.82) !important; -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
}
.fp-composer .nc-prism:focus-within, .fp-app .fp-composer .nc-prism:focus-within, .fp-hero .fp-composer .nc-prism:focus-within {
  border-color: transparent !important;
  box-shadow:none !important;
}
.fp-composer .kl-glow:focus-within { box-shadow:none !important}
html.fp-dark .fp-composer .nc-prism, html.fp-dark .dark .fp-composer .nc-prism { background: rgb(23 23 26 / 0.82) !important; box-shadow:none !important}

/* ── The Freepay AI avatar's box (code/src/console/FlowerBot.tsx, `.fp-bubble.fp-flowerbot`). */
.fp-bubble { position: relative; display: inline-block; flex: none; vertical-align: middle }
.fp-bubble svg { display: block; width: 100%; height: 100%; overflow: visible }
@media (prefers-reduced-motion: reduce) { .fp-bubble * { animation: none !important } }

/* ── MagicStudio fixes (keks, 2026-11-08: «криво, не видно табы»). ─────────────────────────────────────────────── */
/* The welcome card sits in the free band between the zoom bar and the «Новая картинка» panel, never under it.
   On short windows the picture goes first, then the subtitle, so the three ideas always stay whole. */
.ms .cv-empty-card.fp-ms-welcome { top: 76px; bottom: 236px; height: fit-content; max-height: calc(100% - 312px); margin: auto 0; overflow: auto; transform: translateX(-50%) }
@media (max-height: 820px) { .ms .cv-empty-card.fp-ms-welcome { padding-top: 22px; gap: 6px } .fp-ms-art { display: none !important } .fp-ms-welcome > b { margin-top: 0 !important } }
@media (max-height: 640px) { .fp-ms-welcome > span:not(.fp-ms-art):not(.fp-ms-ideas) { display: none } .fp-ms-ideas button { padding: 8px 12px } }
/* The Layers / Plugins tabs: full-size, readable, with the active one clearly marked. */
.fp-app .ms .ms-side-head .ms-tabs { flex: 1 1 auto !important; margin: 0 10px 8px; padding: 3px; border-radius: 12px; background: #ececef }
.fp-app .ms .ms-tabs button { height: 32px; border-radius: 9px; color: #55555c; font-size: 14px; font-weight: 500 }
.fp-app .ms .ms-tabs button:hover:not(.on) { color: #19191b }
.fp-app .ms .ms-tabs button.on { background: #fff; color: #19191b; font-weight: 600; box-shadow:none}
html.fp-dark .fp-app .ms .ms-tabs { background: #26262a }
html.fp-dark .fp-app .ms .ms-tabs button { color: #a1a1aa }
html.fp-dark .fp-app .ms .ms-tabs button.on { background: #3a3a40; color: #f2f2f4 }
/* ═══ ChatGPT layout (keks, 2026-11-08: «сделай как у чат гпт», Бабл stays the mascot). A light grey menu on the
 * left with plain rows (new chat, search, sections, tools, chats) and the account at the bottom; a white page; the
 * home is a title over a pill composer with suggestion chips; the user's message is a grey bubble, the answer has no
 * bubble. ═══════════════════════════════════════════════════════════════════════════════════════════════════════ */
html:has(.fp-app) { --fp-gpt-side: #f9f9f9; --fp-gpt-hover: #ececec; --fp-gpt-on: #e3e3e3; --fp-gpt-ink: #0d0d0d; --fp-gpt-sub: #8f8f8f; --fp-gpt-line: #e5e5e5; --fp-gpt-bubble: #f4f4f4 }
html.fp-dark:has(.fp-app) { --fp-gpt-side: #171717; --fp-gpt-hover: #212121; --fp-gpt-on: #2a2a2a; --fp-gpt-ink: #ececec; --fp-gpt-sub: #8f8f8f; --fp-gpt-line: #2f2f2f; --fp-gpt-bubble: #2f2f2f }
.fp-app .fp-side { background: var(--fp-gpt-side) !important; border: 0 !important; border-radius: 0 !important }
.fp-app .fp-side:not(.is-folded) { width: 260px !important }
.fp-side-head { height: 56px; padding: 0 8px 0 14px; gap: 8px }
.fp-side-head a { gap: 8px !important }
.fp-side-btn { width: 36px; height: 36px; border-radius: 8px; color: #5d5d5d }
.fp-side-btn:hover { background: var(--fp-gpt-hover); color: var(--fp-gpt-ink) }
.fp-side-btn svg { width: 20px; height: 20px }
.fp-app .fp-side-item { height: 36px; gap: 10px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 400; color: var(--fp-gpt-ink); box-shadow:none !important}
.fp-app .fp-side-item:hover { background: var(--fp-gpt-hover) }
.fp-app .fp-side-item.is-on { background: var(--fp-gpt-on); color: var(--fp-gpt-ink); font-weight: 400 }
.fp-app .fp-side-ic, .fp-app .fp-side-item.is-on .fp-side-ic { width: 20px; color: var(--fp-gpt-ink) }
.fp-app .fp-side-ic svg { width: 18px; height: 18px }
/* Tools: plain monochrome icons like every other row (no colour discs). */
.fp-app .fp-side-item .fp-side-tile { width: 20px; height: 20px; background: none !important; box-shadow:none !important; color: var(--fp-gpt-ink); border-radius: 0 }
.fp-app .fp-side-item .fp-side-tile svg { width: 18px; height: 18px }
.fp-app .fp-side-sec { margin: 18px 0 4px; padding: 0 10px; font-size: 13px; color: var(--fp-gpt-sub) }
.fp-app .fp-side-chats { margin: 0; font-size: 14px; color: var(--fp-gpt-ink) }
.fp-app .fp-side-chats .group.h-9 { height: 36px; border-radius: 10px }
.fp-app .fp-side-chats .group.h-9:hover { background: var(--fp-gpt-hover) }
.fp-app .fp-side-chats .group.h-9.ring-1 { background: var(--fp-gpt-on); box-shadow:none}
.fp-app .fp-side-foot { padding: 8px; border-top: 0 }
.fp-app .fp-side-foot > button, .fp-app .fp-side-foot button[aria-label] { border-radius: 10px }
.fp-app .fp-side-foot button:hover { background: var(--fp-gpt-hover) }

/* The page: white, no bar line; the top bar keeps the crumbs, tokens and top-up. */
.fp-app .kc-main, .fp-app .fp-main { background: var(--background) !important }
html:has(.fp-app) { --background: #fff }
html.fp-dark:has(.fp-app) { --background: #212121 }
.fp-app .fp-main[data-page="code"] .kc-topbar { border-bottom: 0 !important; background: transparent !important }
.fp-crumbs { font-size: 17px; color: var(--fp-gpt-ink) }
.fp-crumbs > svg { display: none }

/* Composer: a white pill with a hairline ring, no shadows (2026-11-09); the send button is a black circle. */
.fp-composer .nc-prism, .dark .fp-composer .nc-prism, .fp-app .fp-composer .nc-prism {
  background: var(--background) !important; border: 1px solid var(--fp-gpt-line) !important; border-radius: 28px !important;
  box-shadow:none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.fp-composer .nc-prism:focus-within, .fp-app .fp-composer .nc-prism:focus-within, .fp-hero .fp-composer .nc-prism:focus-within { border-color: #d0d0d0 !important; box-shadow:none !important}
.fp-composer textarea { font-size: 16px !important; color: var(--fp-gpt-ink) }
.fp-composer textarea::placeholder { color: #8f8f8f; font-style: normal }
.fp-composer .kl-send { width: 36px !important; height: 36px !important; background: var(--fp-gpt-ink) !important; color: var(--background) !important }
.fp-composer .kl-send:disabled { background: #d7d7d7 !important; color: #fff !important }

/* Chat: grey bubble for the user, the answer on the page itself. */
.fp-app .fp-thread .kc-user-bubble, html.fp-dark .fp-app .fp-thread .kc-user-bubble { background: var(--fp-gpt-bubble) !important; color: var(--fp-gpt-ink); border-radius: 22px !important; box-shadow:none !important}
.fp-app .fp-thread { max-width: 768px !important }
.fp-app .fp-thread .kc-ai-msg { font-size: 16px; line-height: 1.7 }

/* ═══ macOS layout (keks, 2026-11-08: «как на макбуке — левое меню блоком, по центру контент, сверху ликвид гласс
 * иконки, стиль Apple»). Builds on the ChatGPT layout: the menu becomes a floating glass panel inset from the window
 * edge, as in Finder; the top bar's controls are separate glass capsules; the type is Apple's system font. ═══════════ */
html:has(.fp-app) { --fp-mac-blue: #007aff; --fp-mac-side: rgb(240 240 243 / 0.78); --fp-mac-edge: rgb(0 0 0 / 0.08); --fp-mac-glass: rgb(255 255 255 / 0.66); --fp-mac-sub: #8e8e93; --fp-mac-sel: rgb(0 0 0 / 0.06) }
html.fp-dark:has(.fp-app) { --fp-mac-blue: #0a84ff; --fp-mac-side: rgb(44 44 48 / 0.72); --fp-mac-edge: rgb(255 255 255 / 0.09); --fp-mac-glass: rgb(58 58 62 / 0.6); --fp-mac-sub: #98989f; --fp-mac-sel: rgb(255 255 255 / 0.08) }
.fp-app, .fp-app button, .fp-app input, .fp-app textarea { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", Inter, system-ui, sans-serif }

/* The menu: a rounded glass panel floating 8px inside the window. */
.fp-app.fp-app { background: var(--background) !important }
.fp-app .fp-side { margin: 8px 0 8px 8px !important; height: calc(100% - 16px) !important; align-self: stretch; border-radius: 20px !important;
  background: var(--fp-mac-side) !important; -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 0.5px solid var(--fp-mac-edge) !important; box-shadow:none !important; overflow: hidden }
html.fp-dark .fp-app .fp-side { box-shadow:none !important}
.fp-app .fp-side:not(.is-folded) { width: 248px !important }
.fp-app .fp-side-item { height: 34px; border-radius: 9px; font-size: 14px; color: var(--fp-gpt-ink) }
.fp-app .fp-side-item:hover { background: var(--fp-mac-sel) }
.fp-app .fp-side-item.is-on { background: var(--fp-mac-sel); color: var(--fp-mac-blue); font-weight: 500 }
.fp-app .fp-side-item.is-on .fp-side-ic, .fp-app .fp-side-item.is-on .fp-side-tile { color: var(--fp-mac-blue) }
.fp-app .fp-side-ic svg, .fp-app .fp-side-item .fp-side-tile svg { width: 19px; height: 19px }
.fp-app .fp-side-sec { margin: 16px 0 4px; font-size: 12px; font-weight: 600; color: var(--fp-mac-sub) }
.fp-app .fp-side-chats .group.h-9 { height: 32px; border-radius: 9px }
.fp-app .fp-side-chats .group.h-9:hover, .fp-app .fp-side-chats .group.h-9.ring-1 { background: var(--fp-mac-sel) }
.fp-side-btn:hover { background: var(--fp-mac-sel) }

/* The top bar: a big bold title on the left; every control a glass capsule. */
.fp-app .kc-topbar { height: 64px !important; padding: 0 16px 0 20px !important; background: transparent !important; border: 0 !important }
.fp-app .kc-topbar h1, .fp-crumbs { font-size: 20px !important; font-weight: 700 !important; letter-spacing: -0.02em !important; color: var(--fp-gpt-ink) }
.fp-app .kc-topbar h1 ~ *:not(.ml-auto) { color: var(--fp-gpt-ink) }
.fp-app .kc-topbar > span.grid { display: none }
.fp-app .kc-topbar .ml-auto { gap: 10px !important }
.fp-app .kc-topbar .ml-auto button, .fp-app .kc-topbar .ml-auto a {
  height: 40px !important; min-width: 40px; padding: 0 14px !important; border-radius: 999px !important; border: 0.5px solid var(--fp-mac-edge) !important;
  background: var(--fp-mac-glass) !important; color: var(--fp-gpt-ink) !important; font-size: 14px !important; font-weight: 500 !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow:none !important;
  transition: transform 220ms var(--fp-ease), background-color var(--fp-t-hover) var(--fp-ease)}
html.fp-dark .fp-app .kc-topbar .ml-auto button, html.fp-dark .fp-app .kc-topbar .ml-auto a { box-shadow:none !important}
.fp-app .kc-topbar .ml-auto button:hover, .fp-app .kc-topbar .ml-auto a:hover { background: rgb(255 255 255 / 0.9) !important; transform: translateY(-0.5px) }
html.fp-dark .fp-app .kc-topbar .ml-auto button:hover, html.fp-dark .fp-app .kc-topbar .ml-auto a:hover { background: rgb(80 80 86 / 0.75) !important }
.fp-app .kc-topbar .ml-auto button:active, .fp-app .kc-topbar .ml-auto a:active { transform: scale(0.96) }
.fp-app .kc-topbar .ml-auto button:has(> svg:only-child), .fp-app .kc-topbar .ml-auto a:has(> svg:only-child) { width: 40px; padding: 0 !important }
.fp-app .kc-topbar .ml-auto svg { width: 19px; height: 19px }

/* Accents across the page follow the same blue. */
.fp-app .fp-composer .kl-send:not(:disabled) { background: var(--fp-mac-blue) !important; color: #fff !important }

/* ═══ Panels in a frame (keks, 2026-11-08, a NeoDB-style reference; «фон обои не надо»). The window is a soft grey
 * frame; the menu and the page are two rounded panels inside it with an 8px gap. No wallpaper. ═══════════════════ */
@media (min-width: 768px) {
  html:has(.fp-app) { --fp-frame: #e9eaee; --fp-panel-side: #f3f4f6; --fp-panel-edge: rgb(255 255 255 / 0.9); --fp-row-on: rgb(0 0 0 / 0.07) }
  html.fp-dark:has(.fp-app) { --fp-frame: #0e0e10; --fp-panel-side: #1b1b1e; --fp-panel-edge: rgb(255 255 255 / 0.06); --fp-row-on: rgb(255 255 255 / 0.08) }
  html:has(.fp-app) body, .fp-app.fp-app { background: var(--fp-frame) !important }
  .fp-app.fp-app { padding: 8px !important; gap: 8px !important; height: 100dvh !important; box-sizing: border-box }
  .fp-app .fp-side { margin: 0 !important; height: auto !important; border-radius: 20px !important; background: var(--fp-panel-side) !important;
    -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--fp-panel-edge) !important; box-shadow:none !important}
  .fp-app .fp-main, .fp-app .fp-main.fp-aura { border-radius: 20px !important; overflow: hidden; background: var(--background) !important; border: 1px solid var(--fp-panel-edge) !important; box-shadow:none}
  html.fp-dark .fp-app .fp-main { box-shadow:none}
  /* Menu rows as in the reference: grey icons, medium-weight labels, a soft grey pill for the open page. */
  .fp-app .fp-side-item { height: 34px; font-size: 14.5px; font-weight: 500; color: #3a3a3f }
  .fp-app .fp-side-ic, .fp-app .fp-side-item .fp-side-tile { color: #6e6e76 }
  .fp-app .fp-side-item:hover { background: rgb(0 0 0 / 0.04) }
  .fp-app .fp-side-item.is-on { background: var(--fp-row-on); color: #111114; font-weight: 600 }
  .fp-app .fp-side-item.is-on .fp-side-ic, .fp-app .fp-side-item.is-on .fp-side-tile { color: #111114 }
  html.fp-dark .fp-app .fp-side-item { color: #d4d4d8 } html.fp-dark .fp-app .fp-side-ic, html.fp-dark .fp-app .fp-side-item .fp-side-tile { color: #9a9aa2 }
  html.fp-dark .fp-app .fp-side-item.is-on, html.fp-dark .fp-app .fp-side-item.is-on .fp-side-ic, html.fp-dark .fp-app .fp-side-item.is-on .fp-side-tile { color: #fff }
  .fp-app .fp-side-sec { margin: 14px 0 4px; font-size: 12.5px; font-weight: 600; color: #4a4a50 }
  html.fp-dark .fp-app .fp-side-sec { color: #a1a1aa }
  /* Top bar capsules: white with a hairline, no heavy glass now that panels carry the depth. */
  .fp-app .kc-topbar .ml-auto button, .fp-app .kc-topbar .ml-auto a {
    background: #fff !important; border: 1px solid rgb(0 0 0 / 0.07) !important; box-shadow:none !important; -webkit-backdrop-filter: none; backdrop-filter: none }
  html.fp-dark .fp-app .kc-topbar .ml-auto button, html.fp-dark .fp-app .kc-topbar .ml-auto a { background: #232327 !important; border-color: rgb(255 255 255 / 0.07) !important }
}

/* ═══ Type and colour pass (keks, 2026-11-08: «шрифты и цвета хуевые»). One font (Inter, with its rounded
 * alternates), one neutral zinc grey scale, ink for emphasis, no leftover Apple blue. ════════════════════════════ */
html:has(.fp-app) { --fp-ink: #18181b; --fp-body: #3f3f46; --fp-sub: #71717a; --fp-mute: #a1a1aa; --fp-hair: #e4e4e7;
  --fp-gpt-ink: var(--fp-ink); --fp-gpt-sub: var(--fp-sub); --fp-gpt-line: var(--fp-hair); --fp-gpt-bubble: #f4f4f5; --fp-mac-blue: var(--fp-ink); --fp-row-on: #e4e4e7; --fp-frame: #ebebee; --fp-panel-side: #f4f4f5 }
html.fp-dark:has(.fp-app) { --fp-ink: #fafafa; --fp-body: #d4d4d8; --fp-sub: #a1a1aa; --fp-mute: #71717a; --fp-hair: #27272a;
  --fp-gpt-bubble: #27272a; --fp-mac-blue: var(--fp-ink); --fp-row-on: #27272a; --fp-frame: #09090b; --fp-panel-side: #18181b }
.fp-app, .fp-app button, .fp-app input, .fp-app textarea, .fp-app select {
  font-family: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif !important; font-feature-settings: "cv11", "ss01", "ss03"; -webkit-font-smoothing: antialiased; letter-spacing: -0.006em }
.fp-app code, .fp-app pre, .fp-app kbd { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace !important; font-feature-settings: normal; letter-spacing: 0 }

/* Menu. */
.fp-app .fp-side-head a span, .fp-app .fp-side-head a b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--fp-ink) }
.fp-app .fp-side-item { font-size: 14px !important; font-weight: 500 !important; color: var(--fp-body) !important }
.fp-app .fp-side-ic, .fp-app .fp-side-item .fp-side-tile { color: var(--fp-sub) !important }
.fp-app .fp-side-item.is-on { background: var(--fp-row-on) !important; color: var(--fp-ink) !important; font-weight: 600 !important }
.fp-app .fp-side-item.is-on .fp-side-ic, .fp-app .fp-side-item.is-on .fp-side-tile { color: var(--fp-ink) !important }
.fp-app .fp-side-sec { font-size: 12px !important; font-weight: 500 !important; color: var(--fp-sub) !important; letter-spacing: 0 }
.fp-app .fp-side-chats, .fp-app .fp-side-chats .group.h-9 { font-size: 13.5px; color: var(--fp-body) }

/* Page type: titles 600 weight, body in the zinc greys. */
.fp-app .kc-topbar h1, .fp-crumbs { font-size: 17px !important; font-weight: 600 !important; letter-spacing: -0.015em !important; color: var(--fp-ink) !important }
.fp-app .kc-topbar .ml-auto button, .fp-app .kc-topbar .ml-auto a { font-size: 13.5px !important; font-weight: 500 !important; color: var(--fp-ink) !important }
.fp-app .kl-page h1, .fp-app .kl-page h2 { color: var(--fp-ink); letter-spacing: -0.02em; font-weight: 600 }
.fp-app .kl-page { color: var(--fp-body) }

/* Composer and chat. */
.fp-composer textarea { font-size: 15.5px !important; color: var(--fp-ink) !important }
.fp-composer textarea::placeholder { color: var(--fp-mute) !important }
.fp-composer .nc-prism, .fp-app .fp-composer .nc-prism { border-color: var(--fp-hair) !important }
.fp-app .fp-composer .kl-send:not(:disabled) { background: var(--fp-ink) !important; color: var(--background) !important }
.fp-app .fp-composer .kl-send:disabled { background: var(--fp-hair) !important; color: var(--fp-mute) !important }
.fp-app .fp-thread .kc-ai-msg { font-size: 15.5px !important; line-height: 1.7; color: var(--fp-body) }
.fp-app .fp-thread .kc-ai-msg strong, .fp-app .fp-thread .kc-ai-msg b, .fp-app .fp-thread .kc-ai-msg h1, .fp-app .fp-thread .kc-ai-msg h2, .fp-app .fp-thread .kc-ai-msg h3 { color: var(--fp-ink); font-weight: 600 }
.fp-app .fp-thread .kc-user-bubble { font-size: 15.5px; color: var(--fp-ink) !important }
.fp-app .fp-thread .kc-ai-msg :not(pre) > code { padding: 1px 5px; border-radius: 6px; background: #f4f4f5; border: 1px solid var(--fp-hair); color: var(--fp-ink); font-size: 0.86em }
html.fp-dark .fp-app .fp-thread .kc-ai-msg :not(pre) > code { background: #27272a }

/* ═══ Contrast and overflow (keks, 2026-11-08: «тексты вылазят, плашки не видно на белом, нихуя не видно в
 * подключении»). The page panel is white; everything that sits on it (tabs, chips, cards) gets a visible grey fill
 * and a hairline; secondary text is a readable grey; long rows end in an ellipsis instead of running out. ═══════════ */
html:has(.fp-app):not(.fp-dark) { --fp-ou-bg: #fff; --fp-ou-card: #fff }
html:not(.fp-dark) body .fp-app.fp-app .fp-main:not([data-page="code"]), html:not(.fp-dark) body .fp-app.fp-app .fp-main:not([data-page="code"]) .kl-page { background: #fff !important }
/* Cards on the page: white with a hairline, as in the reference. */
html:not(.fp-dark) body .fp-app.fp-app .kl-page [class*="fp-ou-card"], html:not(.fp-dark) body .fp-app:is(.fp-app, .fp-set) .fp-ext-list { border: 1px solid #e7e7ea }
html:not(.fp-dark) body .fp-app.fp-app .text-muted-foreground { color: #63636b !important }
/* Anything drawn with a faint foreground tint (segmented tabs, filter chips, OS switch) gets a real grey. */
html:not(.fp-dark) body .fp-app.fp-app .fp-main:not([data-page="code"]) [class*="bg-foreground/["]:not([class*="hover:bg-foreground/["]):not(.fp-side-item) { background-color: #ececef !important }
html:not(.fp-dark) body .fp-app.fp-app .fp-main:not([data-page="code"]) button[class*="bg-foreground/["], html:not(.fp-dark) body .fp-app.fp-app .fp-main nav[class*="bg-foreground/["] { box-shadow:inset 0 0 0 1px #e4e4e7 !important; color: #3f3f46 !important }
html:not(.fp-dark) body .fp-app.fp-app .fp-main nav[class*="bg-foreground/["] > a[aria-current], html:not(.fp-dark) body .fp-app.fp-app .fp-main nav[class*="bg-foreground/["] > a[data-state="active"], html:not(.fp-dark) body .fp-app.fp-app .fp-main nav[class*="bg-foreground/["] > a[aria-selected="true"] { background: #fff !important; color: #18181b !important; box-shadow:0 0 0 1px #e4e4e7 !important}
html:not(.fp-dark) body .fp-app.fp-app .fp-main nav[class*="bg-foreground/["] > a { color: #52525b !important }
/* Inputs and selects on white. */
html:not(.fp-dark) body .fp-app.fp-app .kl-page input:not([type="checkbox"]):not([type="radio"]), html:not(.fp-dark) body .fp-app.fp-app .kl-page select { background: #fff !important; border: 1px solid #d4d4d8 !important; color: #18181b !important }
html:not(.fp-dark) body .fp-app.fp-app .kl-page input::placeholder { color: #8b8b93 !important }

/* Connect: program cards are white with a hairline; the chosen one has an ink outline; tags are readable. */
html:not(.fp-dark) body .fp-app.fp-app .fp-main .kl-page button.kc-pick.kc-pick.kc-pick { background: #fff !important; border: 1px solid #e4e4e7 !important; box-shadow:none !important; transform: none !important }
html:not(.fp-dark) body .fp-app.fp-app .fp-main .kl-page button.kc-pick.kc-pick.kc-pick:hover { border-color: #c4c4cb !important; background: #fafafa !important }
html:not(.fp-dark) body .fp-app.fp-app .fp-main .kl-page button.kc-pick.kc-pick.kc-pick[aria-pressed="true"], html:not(.fp-dark) body .fp-app.fp-app .fp-main .kl-page button.kc-pick.kc-pick.kc-pick[aria-current], html:not(.fp-dark) body .fp-app.fp-app .fp-main .kl-page button.kc-pick.kc-pick.kc-pick[data-on], html:not(.fp-dark) body .fp-app.fp-app .fp-main .kl-page button.kc-pick.kc-pick.kc-pick.is-on { border-color: #18181b !important; box-shadow:0 0 0 1px #18181b !important}
html:not(.fp-dark) body .fp-app.fp-app .fp-main .kl-page button.kc-pick.kc-pick.kc-pick > span > span:last-child > span, html:not(.fp-dark) body .fp-app.fp-app .fp-main .kl-page button.kc-pick.kc-pick.kc-pick .mt-2\.5 > span { background: #f1f1f3 !important; color: #52525b !important; border: 1px solid #e4e4e7 }
html:not(.fp-dark) body .fp-app.fp-app .kl-page h1 + h1, html:not(.fp-dark) body .fp-app.fp-app .kl-page a.text-muted-foreground, html:not(.fp-dark) body .fp-app.fp-app .kl-page button.text-muted-foreground { color: #8b8b93 !important }
html:not(.fp-dark) body .fp-app.fp-app .kl-page pre, html:not(.fp-dark) body .fp-app.fp-app .kl-page code { color: #18181b }
html:not(.fp-dark) body .fp-app.fp-app .kl-page pre { background: #f6f6f7 !important; border: 1px solid #e4e4e7 !important; border-radius: 14px !important }

/* Long rows: the extension list and any grid list keep their rows inside, ending in an ellipsis. */
:is(.fp-app, .fp-set) .fp-ext-list { min-width: 0 }
@media (min-width: 1100px) { :is(.fp-app, .fp-set) .fp-ext-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) } }
:is(.fp-app, .fp-set) .fp-ext-list > *, :is(.fp-app, .fp-set) .fp-ext-row { min-width: 0; max-width: 100% }
.fp-app .kl-page .truncate { min-width: 0 }
.fp-app .kl-page { overflow-wrap: anywhere }
.fp-app .kl-page pre, .fp-app .kl-page code { overflow-wrap: anywhere; white-space: pre-wrap }

/* ═══ The window (keks, 2026-11-08: «окно дизайн поменяй красиво»). A cool grey frame with a faint top light; the
 * menu is a pale translucent panel sitting on it, the page a crisp panel with a double edge (hairline outside, white
 * light inside) and a long soft shadow, as in the NeoDB reference. ══════════════════════════════════════════════ */
@media (min-width: 768px) {
  html:not(.fp-dark) body:has(.fp-app), html:not(.fp-dark) body .fp-app.fp-app { background: linear-gradient(180deg, #f1f1f4 0%, #e7e8ec 100%) !important }
  html.fp-dark body .fp-app.fp-app { background: linear-gradient(180deg, #121214 0%, #09090b 100%) !important }
  .fp-app.fp-app { padding: 10px !important; gap: 10px !important }
  html:not(.fp-dark) body .fp-app.fp-app .fp-side { background: rgb(255 255 255 / 0.55) !important; border: 1px solid rgb(255 255 255 / 0.95) !important;
    box-shadow:0 0 0 1px rgb(16 24 40 / 0.05) !important; border-radius: 22px !important }
  html:not(.fp-dark) body .fp-app.fp-app .fp-main { border-radius: 22px !important; border: 0 !important;
    box-shadow:0 0 0 1px rgb(16 24 40 / 0.07) !important}
  html.fp-dark body .fp-app.fp-app .fp-side { background: rgb(255 255 255 / 0.03) !important; border: 1px solid rgb(255 255 255 / 0.06) !important; border-radius: 22px !important }
  html.fp-dark body .fp-app.fp-app .fp-main { border-radius: 22px !important; border: 1px solid rgb(255 255 255 / 0.07) !important }
  /* The top bar of the page is separated from the content by a hairline, like the reference's header row. */
  html:not(.fp-dark) body .fp-app.fp-app .fp-main:not([data-page="code"]) .kc-topbar { border-bottom: 1px solid #ececef !important; background: #fff !important }
  html.fp-dark body .fp-app.fp-app .fp-main:not([data-page="code"]) .kc-topbar { border-bottom: 1px solid #222226 !important }
  /* The brand in the menu: the mascot and the name a touch larger. */
  .fp-app .fp-side-head img { width: 32px !important; height: 32px !important }
  .fp-app .fp-side-head .fp-side-label { font-size: 16px !important; font-weight: 650 !important; letter-spacing: -0.01em !important }
  html:not(.fp-dark) body .fp-app.fp-app .fp-side-item.is-on { background: #fff !important; box-shadow:0 0 0 1px rgb(16 24 40 / 0.06) !important}
}

/* ═══ Final layout (keks, 2026-11-08 17:42, «сделай фул как тут дизайн», a SaaS dashboard reference): the menu sits
 * straight on a light grey window (no panel of its own); the page is one white sheet with a rounded top-left corner
 * and a hairline edge; a header row with a hairline under it; neutral greys, one ink accent, no decorative art. ═════ */
@media (min-width: 768px) {
  html:not(.fp-dark) body:has(.fp-app), html:not(.fp-dark) body .fp-app.fp-app { background: #f3f3f5 !important }
  html.fp-dark body:has(.fp-app), html.fp-dark body .fp-app.fp-app { background: #0f0f11 !important }
  body .fp-app.fp-app { padding: 0 !important; gap: 0 !important }
  /* Menu: no panel, rows on the window grey. */
  html body .fp-app.fp-app .fp-side.fp-side { background: transparent !important; border: 0 !important; box-shadow:none !important; border-radius: 0 !important; margin: 0 !important; height: 100% !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important }
  body .fp-app.fp-app .fp-side:not(.is-folded) { width: 264px !important }
  .fp-app .fp-side-head { height: 64px; padding: 0 12px 0 20px }
  .fp-app .fp-side-item { height: 36px !important; padding: 0 10px !important; border-radius: 10px !important; font-size: 14.5px !important; font-weight: 450 !important; color: #3f3f46 !important; background: transparent !important; box-shadow:none !important}
  .fp-app .fp-side-item:hover { background: rgb(0 0 0 / 0.045) !important }
  .fp-app .fp-side-ic svg, .fp-app .fp-side-item .fp-side-tile svg { width: 18px !important; height: 18px !important }
  .fp-app .fp-side-ic { color: #71717a !important }
  html:not(.fp-dark) body .fp-app.fp-app .fp-side-item.is-on { background: #fff !important; color: #18181b !important; font-weight: 550 !important; box-shadow:0 0 0 1px rgb(16 24 40 / 0.04) !important}
  html:not(.fp-dark) body .fp-app.fp-app .fp-side-item.is-on .fp-side-ic { color: #18181b !important }
  /* Search: a grey field with a white key chip, like the reference's «Search /». */
  .fp-app .fp-side-chats { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid #e4e4e7 }
  html.fp-dark .fp-app .fp-side-chats { border-top-color: #232327 }
  .fp-app .fp-side-foot { padding: 10px 12px !important; border-top: 1px solid #e4e4e7 !important }
  html.fp-dark .fp-app .fp-side-foot { border-top-color: #232327 !important }

  /* Page: one white sheet, rounded top-left, flush with the right and bottom edges. */
  html body .fp-app.fp-app .fp-main.fp-main, html body .fp-app.fp-app .fp-main.fp-aura { margin: 10px 0 0 0 !important; border-radius: 18px 0 0 0 !important; border: 0 !important;
    box-shadow:0 0 0 1px #e4e4e7 !important; background: #fff !important }
  html.fp-dark body .fp-app.fp-app .fp-main { background: #161618 !important; box-shadow:0 0 0 1px #232327 !important}
  html:not(.fp-dark) body .fp-app.fp-app .fp-main:not([data-page="code"]), html:not(.fp-dark) body .fp-app.fp-app .fp-main .kl-page { background: #fff !important }
  html.fp-dark body .fp-app.fp-app .fp-main .kl-page { background: transparent !important }
  /* Header row: the title as a breadcrumb chip, a hairline under it on every page. */
  body .fp-app.fp-app .fp-main .kc-topbar { height: 60px !important; padding: 0 20px 0 28px !important; background: transparent !important; border-bottom: 1px solid #ececef !important }
  html.fp-dark body .fp-app.fp-app .fp-main .kc-topbar { border-bottom-color: #232327 !important }
  .fp-app .kc-topbar h1, .fp-crumbs { font-size: 14.5px !important; font-weight: 550 !important; letter-spacing: -0.005em !important }
  html:not(.fp-dark) .fp-app .kc-topbar h1 { padding: 5px 10px; margin-left: -10px; border-radius: 8px; background: #f4f4f5 }
  .fp-app .kc-topbar .ml-auto button, .fp-app .kc-topbar .ml-auto a { height: 36px !important; box-shadow:none !important}
  html:not(.fp-dark) .fp-app .kc-topbar .ml-auto button, html:not(.fp-dark) .fp-app .kc-topbar .ml-auto a:not(.fp-chip-solid) { background: #fff !important; border: 1px solid #e4e4e7 !important }
  /* The page's own big headings: the reference's 26px title. */
  .fp-app .kl-page h1, .fp-app .kl-page > div > h1, .fp-app .kl-page .text-\[40px\]:not(.kc-viz-hero *) { font-size: 26px !important; line-height: 1.25 !important; font-weight: 600 !important; letter-spacing: -0.02em !important }
  .fp-app .kl-page { padding: 28px 40px 56px !important }
  /* The right Files / Changes column: white like the page, a hairline edge, the tabs as a segmented control. */
  .fp-app .fp-main aside.bg-sidebar { background: #fff !important; border-left: 1px solid #ececef !important }
  html.fp-dark .fp-app .fp-main aside.bg-sidebar { background: transparent !important; border-left-color: #232327 !important }
  .fp-app .fp-main aside.bg-sidebar > div > div.h-11 { height: 60px; padding: 0 12px; border-bottom-color: #ececef }
}

/* ═══ Cleanup (keks: «это премиум? нет нейрослопа?» → «делай») ════════════════════════════════════════════════════ */
/* Empty states are text only: no stock illustration. */
.fp-app .fp-empty-art { display: none !important }
.fp-app .fp-empty { padding: 40px 0 !important; gap: 6px }
.fp-app .fp-empty-t { color: #71717a; font-size: 14px }
/* Dashboard balance: a quiet white card with a big ink figure, not a blue gradient slab. */
html:not(.fp-dark) .fp-app .fp-main[data-page="overview"] .kc-viz-hero { background: #fff !important; color: #18181b !important; box-shadow:0 0 0 1px #e4e4e7 !important}
html:not(.fp-dark) .fp-app .fp-main[data-page="overview"] .kc-viz-hero :is(span, div) { color: #18181b }
html:not(.fp-dark) .fp-app .fp-main[data-page="overview"] .kc-viz-hero .text-muted-foreground { color: #71717a !important }
html:not(.fp-dark) .fp-app .fp-main[data-page="overview"] .kc-viz-hero .kc-spark, html:not(.fp-dark) .fp-app .fp-main[data-page="overview"] .kc-viz-hero .kc-spark[data-empty] { background: #e4e4e7 }
html:not(.fp-dark) .fp-app .fp-main[data-page="overview"] .kc-viz-hero .kc-spark-hot { background: #18181b }
html:not(.fp-dark) .fp-app .fp-main[data-page="overview"] .kc-viz-hero a.bg-foreground, html:not(.fp-dark) .fp-app .fp-main[data-page="overview"] .kc-viz-hero .bg-foreground.text-background { background-color: #18181b !important; color: #fff !important }
html.fp-dark .fp-app .fp-main[data-page="overview"] .kc-viz-hero { background: #1c1c20 !important }
/* Connect: no 01 / 02 / 03 step numbers. */
.fp-app .fp-main[data-page="connect"] section > .mb-4 > span.font-mono:first-child { display: none }
/* Every card on a page: one radius, one hairline, no shadow. */
html:not(.fp-dark) .fp-app .kl-page .kc-card, html:not(.fp-dark) .fp-app .kl-page .kc-box, html:not(.fp-dark) :is(.fp-app, .fp-set) .fp-ext-list { border-radius: 16px !important; box-shadow:0 0 0 1px #e7e7ea !important; border: 0 !important; background: #fff !important }
/* Fix: text on solid ink buttons stays white (an earlier grey-fill rule painted it dark). */
html:not(.fp-dark) body .fp-app.fp-app .fp-main :is(.bg-primary, .bg-foreground.text-background, [class*="text-primary-foreground"], [class*="text-background"]) { color: #fff !important }
html:not(.fp-dark) body .fp-app.fp-app .fp-main :is(.bg-primary, .bg-foreground.text-background) * { color: inherit }
/* Extension and skill icons: one quiet style (grey disc, ink glyph) instead of a wall of identical teal circles. */
html:not(.fp-dark) :is(.fp-app, .fp-set) .fp-ext-row > span.rounded-full:first-child { background: #f4f4f5 !important; color: #3f3f46 !important; box-shadow:inset 0 0 0 1px #e7e7ea}
html.fp-dark :is(.fp-app, .fp-set) .fp-ext-row > span.rounded-full:first-child { background: #232327 !important; color: #e4e4e7 !important }

/* keks, 2026-11-08: «Сделать кнопку более заметной» — the send button is a solid ink disc with a white arrow; empty
   input keeps it solid (dark zinc) instead of a near-invisible grey, so it always reads as the send control. */
html:not(.fp-dark) body .fp-app.fp-app button.kl-send.kl-send { width: 36px !important; height: 36px !important; background: #18181b !important; color: #fff !important; box-shadow:none !important; opacity: 1 !important }
html:not(.fp-dark) body .fp-app.fp-app button.kl-send.kl-send:hover:not(:disabled) { background: #000 !important }
html:not(.fp-dark) body .fp-app.fp-app button.kl-send.kl-send:disabled { background: #3f3f46 !important; color: #fff !important; box-shadow:none !important}
html.fp-dark body .fp-app.fp-app button.kl-send.kl-send { width: 36px !important; height: 36px !important; background: #fafafa !important; color: #18181b !important }
html.fp-dark body .fp-app.fp-app button.kl-send.kl-send:disabled { background: #52525b !important; color: #e4e4e7 !important }
body .fp-app.fp-app button.kl-send.kl-send svg { width: 18px !important; height: 18px !important }

/* ═══ ChatGPT layout (keks, 2026-11-08 19:27, «Хочу дизайн чата гпт», a chatgpt.com screenshot) ═══════════════════
 * No window: the menu is a light grey column flush with the left edge, the page is plain white right next to it, the
 * header has no hairline and no chip. The new chat is one greeting line, a pill composer on one row and the
 * suggestions as quiet rows with an icon. Profile at the bottom of the menu. ════════════════════════════════════════ */
@media (min-width: 768px) {
  html:not(.fp-dark) body:has(.fp-app), html:not(.fp-dark) body .fp-app.fp-app { background: #f9f9f9 !important }
  html.fp-dark body:has(.fp-app), html.fp-dark body .fp-app.fp-app { background: #181818 !important }
  html body .fp-app.fp-app .fp-side.fp-side { background: #f9f9f9 !important; border-right: 1px solid #ededed !important }
  html.fp-dark body .fp-app.fp-app .fp-side.fp-side { background: #181818 !important; border-right-color: #262626 !important }
  body .fp-app.fp-app .fp-side:not(.is-folded) { width: 260px !important }
  .fp-app .fp-side-head { height: 56px; padding: 0 10px 0 16px }
  .fp-app .fp-side-item { height: 38px !important; padding: 0 10px !important; border-radius: 10px !important; font-size: 14.5px !important; font-weight: 400 !important; color: #0d0d0d !important }
  html.fp-dark .fp-app .fp-side-item { color: #ececec !important }
  .fp-app .fp-side-item:hover { background: #ececec !important }
  html.fp-dark .fp-app .fp-side-item:hover { background: #262626 !important }
  .fp-app .fp-side-ic { color: #0d0d0d !important }
  html.fp-dark .fp-app .fp-side-ic { color: #ececec !important }
  html:not(.fp-dark) body .fp-app.fp-app .fp-side-item.is-on { background: #ececec !important; color: #0d0d0d !important; font-weight: 400 !important; box-shadow:none !important}
  html.fp-dark body .fp-app.fp-app .fp-side-item.is-on { background: #262626 !important }
  /* Search, first row: a plain row like the others, the shortcut shown quietly on the right. */
  .fp-app .fp-side-chats { margin-top: 18px !important; padding-top: 0; border-top: 0 !important }
  .fp-app .fp-side-foot { border-top: 1px solid #ededed !important }
  html.fp-dark .fp-app .fp-side-foot { border-top-color: #262626 !important }

  /* Page: white, flush, no frame. */
  html body .fp-app.fp-app .fp-main.fp-main, html body .fp-app.fp-app .fp-main.fp-aura { margin: 0 !important; border-radius: 0 !important; box-shadow:none !important; background: #fff !important }
  html.fp-dark body .fp-app.fp-app .fp-main.fp-main { background: #212121 !important }
  body .fp-app.fp-app .fp-main .kc-topbar { height: 56px !important; padding: 0 16px 0 20px !important; border-bottom: 0 !important }
  html:not(.fp-dark) .fp-app .kc-topbar h1 { padding: 0; margin-left: 0; background: transparent }
  .fp-app .kc-topbar h1, .fp-crumbs { font-size: 17px !important; font-weight: 500 !important }
  /* Pages other than the chat keep a hairline under the header, so their tables have a top edge. */
  body .fp-app.fp-app .fp-main:not([data-page="code"]) .kc-topbar { border-bottom: 1px solid #ededed !important }
  html.fp-dark body .fp-app.fp-app .fp-main:not([data-page="code"]) .kc-topbar { border-bottom-color: #2f2f2f !important }
}

/* New chat: the greeting, the list of suggestions. */
.fp-app .fp-hero .max-w-\[760px\] { max-width: 800px !important }
html body .fp-app.fp-app .fp-hero .fp-composer { max-width: 760px !important }

/* Composer: one pill row — «+», the text, GitHub, the model, mic, voice, send — that grows upward with long text.
   Attachments, when present, sit on their own row above. */
html body .fp-app.fp-app .fp-composer .nc-prism.nc-prism { display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: 0 4px; padding: 8px 8px 8px 10px !important; border-radius: 28px !important; border: 1px solid #e3e3e3 !important; background: #fff !important; box-shadow:none !important}
html.fp-dark body .fp-app.fp-app .fp-composer .nc-prism.nc-prism { background: #303030 !important; border-color: #3a3a3a !important }
.fp-app .fp-composer .kl-c-tiles { order: 0; width: 100%; padding: 4px 4px 8px !important }
.fp-app .fp-composer .kl-c-bar { display: contents !important }
.fp-app .fp-composer .kl-c-bar > * { order: 3 }
.fp-app .fp-composer .kl-c-bar > button:first-of-type { order: 1 }
html body .fp-app.fp-app .fp-composer .kl-c-input.kl-c-input { order: 2; flex: 1 1 200px; min-width: 0; min-height: 0 !important; padding: 8px 6px !important; align-self: center }
html body .fp-app.fp-app .fp-composer .kl-c-input textarea { font-size: 16px !important; line-height: 24px !important; padding: 0 !important }
.fp-app .fp-composer .kl-c-bar > .ml-auto { margin-left: auto !important }
/* «скругление куда-то съебалось»: the «+» kept only the lower arc of its liquid shadow; now a clean round icon button. */
html body .fp-app.fp-app .fp-composer .kl-c-bar > button.nc-liquid { width: 36px !important; height: 36px !important; border-radius: 999px !important; background: transparent !important; border: 0 !important; box-shadow:none !important; color: #0d0d0d !important }
html body .fp-app.fp-app .fp-composer .kl-c-bar > button.nc-liquid::before, html body .fp-app.fp-app .fp-composer .kl-c-bar > button.nc-liquid::after { display: none !important }
html body .fp-app.fp-app .fp-composer .kl-c-bar > button.nc-liquid:hover { background: #f0f0f0 !important }
html.fp-dark body .fp-app.fp-app .fp-composer .kl-c-bar > button.nc-liquid { color: #ececec !important }
html.fp-dark body .fp-app.fp-app .fp-composer .kl-c-bar > button.nc-liquid:hover { background: #3a3a3a !important }
.fp-app .fp-composer .kl-c-bar > .ml-auto > button { border-radius: 999px !important }

/* ═══ Rounded page panel (keks, 2026-11-08 19:43, «Скругления почему они не везде?», the ChatGPT desktop app): the
 * white page is a separate panel rounded on all four corners, with an even grey gap above, right and below it; the
 * menu sits on the same grey. Every cabinet page, light and dark. ══════════════════════════════════════════════════ */
@media (min-width: 768px) {
  html:not(.fp-dark) body:has(.fp-app), html:not(.fp-dark) body .fp-app.fp-app, html:not(.fp-dark) body .fp-app.fp-app .fp-side.fp-side { background: #f3f3f4 !important }
  html.fp-dark body:has(.fp-app), html.fp-dark body .fp-app.fp-app, html.fp-dark body .fp-app.fp-app .fp-side.fp-side { background: #171717 !important }
  html body .fp-app.fp-app .fp-side.fp-side { border-right: 0 !important }
  html body .fp-app.fp-app .fp-main.fp-main, html body .fp-app.fp-app .fp-main.fp-aura { margin: 8px 8px 8px 0 !important; border-radius: 16px !important; overflow: hidden !important; box-shadow:0 0 0 1px rgb(0 0 0 / 0.06) !important}
  html.fp-dark body .fp-app.fp-app .fp-main.fp-main { box-shadow:0 0 0 1px #2a2a2a !important}
  html body .fp-app.fp-app .fp-main .kc-topbar { border-top-left-radius: 16px; border-top-right-radius: 16px }
}

/* «боже что это?» (keks, 2026-11-08): the open sidebar search showed a white input box inside the grey field (the
   cabinet's form-input style reached it). One flat field the size of a menu row, nothing inside it but the text. */
html body .fp-app.fp-app .fp-side-search > :is(label, button) { height: 38px !important; padding: 0 10px !important; border-radius: 10px !important; background: #e8e8ea !important; box-shadow:none !important; border: 0 !important }
html.fp-dark body .fp-app.fp-app .fp-side-search > :is(label, button) { background: #262626 !important }
html body .fp-app.fp-app .fp-side-search > :is(label, button) svg { width: 18px !important; height: 18px !important; color: #0d0d0d !important }
html.fp-dark body .fp-app.fp-app .fp-side-search > :is(label, button) svg { color: #ececec !important }
html body .fp-app.fp-app .fp-side-search input.fp-side-search, html body .fp-app.fp-app .fp-side-search input { -webkit-appearance: none !important; appearance: none !important; background: transparent !important; border: 0 !important; box-shadow:none !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; height: 100% !important; font-size: 14.5px !important; color: #0d0d0d !important; outline: none !important }
html.fp-dark body .fp-app.fp-app .fp-side-search input { color: #ececec !important }
html body .fp-app.fp-app .fp-side-search input::placeholder { color: #8f8f8f !important }
/* Oleksandr, 2026-11-17: the field is a button now that opens the search window; its word looks like the placeholder. */
html body .fp-app.fp-app .fp-side-search > button > span, body:has(.fp-app) [role="dialog"] .fp-side-search > button > span { font-size: 14.5px !important; color: #8f8f8f !important }
html body .fp-app.fp-app .fp-side-search > button:hover, body:has(.fp-app) [role="dialog"] .fp-side-search > button:hover { background: #e1e1e4 !important }
html.fp-dark body .fp-app.fp-app .fp-side-search > button:hover, html.fp-dark body:has(.fp-app) [role="dialog"] .fp-side-search > button:hover { background: #2d2d2d !important }
/* The search window's field (SearchPalette, fp-find): bare text on the card, not the cabinet's boxed input. */
html body:has(.fp-app) [role="dialog"].fp-find input { background: transparent !important; border: 0 !important; box-shadow:none !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; color: inherit !important; outline: none !important }
html body .fp-app.fp-app .fp-side-search kbd { font-family: inherit !important; font-size: 12px !important; color: #8f8f8f !important; background: transparent !important; border: 0 !important; box-shadow:none !important}

/* The flower lockup as the cabinet's logo (keks, 2026-11-08): /lockup.svg is a mask over the text colour, so the
 * same file serves the light and the dark theme. 541×127 is the SVG's viewBox. */
.fp-lockup { display: block; height: 26px; aspect-ratio: 541 / 127; background: currentColor; -webkit-mask: url(/lockup.svg?v=010164f8) center / contain no-repeat; mask: url(/lockup.svg?v=010164f8) center / contain no-repeat }
/* On a narrow page the one-row pill broke unevenly (the GitHub chip alone at the top right, the rest below). When the
   row has to wrap, the text takes the whole first row and every control sits on the second, as in ChatGPT's two-row
   composer. Phones keep their own wrap (the text next to «+», the controls below), which already fit on two rows. */
@media (min-width: 640px) and (max-width: 1180px) {
  html body .fp-app.fp-app .fp-composer .kl-c-input.kl-c-input { order: 0; flex: 1 1 100%; padding: 6px 8px 2px !important }
  .fp-app .fp-composer .kl-c-bar > button:first-of-type { order: 1 }
  .fp-app .fp-composer .kl-c-bar > .ml-auto { order: 3 }
}

/* «Поправь тут кривовато» (keks, 2026-11-08): everything in the pill composer on one vertical axis. The text box
   lost its extra top padding (the placeholder sat 4px above the buttons) and every item is centred in the row,
   including the GitHub chip, which sat 2px low. Even 10px padding left and right. */
html body .fp-app.fp-app .fp-composer .nc-prism.nc-prism { align-items: center !important; padding: 8px 10px !important; min-height: 56px }
html body .fp-app.fp-app .fp-composer .nc-prism.nc-prism > *, html body .fp-app.fp-app .fp-composer .kl-c-bar > *, html body .fp-app.fp-app .fp-composer .kl-c-bar > .ml-auto > * { align-self: center !important; margin-top: 0 !important; margin-bottom: 0 !important }
html body .fp-app.fp-app .fp-composer .kl-c-input.kl-c-input { display: flex !important; align-items: center !important; padding: 0 6px !important; min-height: 40px !important; gap: 0 !important }
html body .fp-app.fp-app .fp-composer .kl-c-input textarea { padding: 8px 0 !important; margin: 0 !important; line-height: 24px !important; min-height: 40px }
html body .fp-app.fp-app .fp-composer .kl-c-bar > .ml-auto > button.group { height: 36px !important }
html body .fp-app.fp-app .fp-composer .kl-c-bar > .ml-auto > button.kl-mic { width: 36px !important; height: 36px !important }
html body .fp-app.fp-app .fp-composer .kl-c-tiles { align-self: stretch !important }

/* «Прозрачное окно тоже плохо, текст сливается» (keks, 2026-11-08): every popover, menu and dialog is solid. */
html:not(.fp-dark) body:has(.fp-app) :is(.nc-popover, .nc-material, [role="menu"], [data-radix-popper-content-wrapper] > [role="dialog"]):not(.bg-foreground) { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 1px solid #e5e5e5 !important; box-shadow:none !important}
html.fp-dark body:has(.fp-app) :is(.nc-popover, .nc-material, [role="menu"], [data-radix-popper-content-wrapper] > [role="dialog"]):not(.bg-foreground) { background: #1f1f1f !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 1px solid #2f2f2f !important }

/* «иконки белый на сером — это плохо»: the dashboard stat cards' round icon badges are ink on light grey. */
html:not(.fp-dark) body .fp-app.fp-app .kc-tile-ic.kc-tile-ic { background: #f4f4f5 !important; color: #18181b !important; box-shadow:inset 0 0 0 1px #e4e4e7 !important}
html:not(.fp-dark) body .fp-app.fp-app .kc-tile-ic.kc-tile-ic svg { color: #18181b !important; opacity: 1 !important }
html.fp-dark body .fp-app.fp-app .kc-tile-ic.kc-tile-ic { background: #2a2a2a !important; color: #f4f4f5 !important; box-shadow:inset 0 0 0 1px #3a3a3a !important}
html.fp-dark body .fp-app.fp-app .kc-tile-ic.kc-tile-ic svg { color: #f4f4f5 !important }
html:not(.fp-dark) body .fp-app.fp-app a.kc-viewall.kc-viewall { background: #fff !important; border: 1px solid #e4e4e7 !important; color: #3f3f46 !important }
html:not(.fp-dark) body .fp-app.fp-app a.kc-viewall.kc-viewall:hover { background: #f4f4f5 !important; color: #18181b !important }

/* Freepay AI avatar: the logo's flower, moving by state (code/src/console/FlowerBot.tsx). */
.fp-flowerbot { color: #0d0d0d; display: inline-block; flex: none; vertical-align: middle }
html.fp-dark .fp-flowerbot { color: #ececec }
.fp-flowerbot svg { display: block; width: 100%; height: 100%; overflow: visible }
.fp-flowerbot .fpf-f, .fp-flowerbot .fpf-p { transform-origin: 50px 50px }
.fp-flowerbot[data-mood="idle"] .fpf-f { animation: fpf-breathe 5s cubic-bezier(.45,0,.55,1) infinite }
.fp-flowerbot[data-mood="think"] .fpf-f { animation: fpf-spin 1.8s cubic-bezier(.5,.05,.5,.95) infinite }
.fp-flowerbot[data-mood="think"] .fpf-p { animation: fpf-push 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.36s) }
.fp-flowerbot[data-mood="talk"] .fpf-p { transform-box: fill-box; transform-origin: center; animation: fpf-swell 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.24s) }
.fp-flowerbot[data-mood="happy"] .fpf-f { animation: fpf-pop .7s cubic-bezier(.3,1.4,.5,1) 1 }
.fp-flowerbot[data-mood="error"] { color: #a1a1aa }
@keyframes fpf-breathe { 0%, 100% { transform: none } 50% { transform: scale(1.04) rotate(4deg) } }
@keyframes fpf-spin { to { transform: rotate(360deg) } }
@keyframes fpf-push { 0%, 100% { transform: none } 50% { transform: translateX(5px) } }
@keyframes fpf-swell { 0%, 100% { transform: none } 50% { transform: scale(1.16) } }
@keyframes fpf-pop { 0% { transform: none } 30% { transform: scale(1.14, .86) } 55% { transform: scale(.92, 1.08) } 75% { transform: scale(1.04, .97) } 100% { transform: none } }
@media (prefers-reduced-motion: reduce) { .fp-flowerbot * { animation: none !important } }

/* «Чет слишком он по отступам много» (keks, 2026-11-08): a tighter chat. Less air between turns; the user's copy/edit
   row overlays the space under the bubble instead of reserving a full line. On wide pages the composer stays one row
   (the GitHub chip had wrapped alone to the top right). */
html body .fp-app.fp-app .fp-thread.fp-thread { gap: 14px !important; padding-top: 12px !important }
html body .fp-app.fp-app .fp-thread .kc-ai-msg { gap: 8px !important }
html body .fp-app.fp-app .fp-thread > .group\/user { position: relative; padding-bottom: 0 !important }
html body .fp-app.fp-app .fp-thread > .group\/user > :last-child:not(:first-child):not(.kc-user-bubble) { position: absolute; right: 0; top: 100%; margin-top: 2px; z-index: 1 }
html body .fp-app.fp-app .fp-thread > .group\/user + .kc-ai-msg { margin-top: 26px }
@media (min-width: 1181px) {
  html body .fp-app.fp-app .fp-composer .nc-prism.nc-prism { flex-wrap: nowrap !important }
  html body .fp-app.fp-app .fp-composer .kl-c-input.kl-c-input { flex: 1 1 0 !important; min-width: 120px !important }
  html body .fp-app.fp-app .fp-composer .nc-prism.nc-prism:has(.kl-c-tiles) { flex-wrap: wrap !important }
}

/* keks, 2026-11-08: «Отступ сделай больше между чатом и окном юзера» — air between the last message and the composer. */
html body .fp-app.fp-app .fp-thread.fp-thread { padding-bottom: 48px !important }

/* keks, 2026-11-08 (photo 4): segmented switches everywhere — a light grey capsule, the picked tab white with a soft shadow. */
html body .fp-app .fp-seg { background: #f1f1f2; box-shadow:inset 0 0 0 1px rgba(0,0,0,.03)}
html body .fp-app .fp-seg-tab { color: #71717a; background: transparent; box-shadow:none}
html body .fp-app .fp-seg-tab:hover { color: #18181b }
html body .fp-app .fp-seg-tab.is-on { background: #fff; color: #0d0d0d; box-shadow:none}
html.fp-dark body .fp-app .fp-seg { background: #232325; box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
html.fp-dark body .fp-app .fp-seg-tab { color: #a1a1aa }
html.fp-dark body .fp-app .fp-seg-tab:hover { color: #f4f4f5 }
html.fp-dark body .fp-app .fp-seg-tab.is-on { background: #3a3a3d; color: #f4f4f5; box-shadow:none}

/* keks, 2026-11-08: «поменяй дизайн отображения токенов» — the balance in the top bar as a flat grey capsule. */
html body .fp-app .kc-topbar .fp-balance.fp-balance { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 12px !important; border-radius: 12px !important; background: #f1f1f2 !important; color: #0d0d0d !important; font-size: 13.5px; border: 0 !important; box-shadow:none !important; transition: background-color var(--fp-t-hover) var(--fp-ease)}
html body .fp-app .kc-topbar .fp-balance.fp-balance:hover, html body .fp-app .kc-topbar .fp-balance.fp-balance[data-state=open] { background: #e8e8ea !important }
html body .fp-app .fp-balance .fp-balance-ic { width: 15px; height: 15px; color: #52525b }
html body .fp-app .fp-balance .fp-balance-n { font-weight: 600; letter-spacing: -.01em }
html body .fp-app .fp-balance .fp-balance-l { color: #71717a }
html.fp-dark body .fp-app .kc-topbar .fp-balance.fp-balance { background: #232325 !important; color: #f4f4f5 !important }
html.fp-dark body .fp-app .kc-topbar .fp-balance.fp-balance:hover, html.fp-dark body .fp-app .kc-topbar .fp-balance.fp-balance[data-state=open] { background: #2c2c2f !important }
html.fp-dark body .fp-app .fp-balance .fp-balance-ic { color: #a1a1aa }

/* keks, 2026-11-08: «правый блок печально выглядит скругли его» — Files/Changes as a rounded card inside the page. */
html body .fp-app .fp-rpanel { margin: 8px 8px 8px 0; border: 1px solid #ececee; border-radius: 16px; background: #fafafa; overflow: hidden }
html.fp-dark body .fp-app .fp-rpanel { border-color: #2a2a2d; background: #18181a }

/* keks, 2026-11-08: «ховер на кнопку навожу - текст пропадает» — the pixel tile is hidden on freepay, so the label stays on hover. */
html body .fp-app .px-btn:hover .px-label { opacity: 1 !important }

/* keks, 2026-11-09: «когда крутишь линии кривые» — Firefox aliased the badge's edge while it turned. A transparent
   outline moves the hard edge inside the layer and will-change makes it rasterise once and filter smoothly. */
html body .aw-tilt { will-change: transform; outline: 1px solid transparent }

/* keks, 2026-11-09: «FAQ ваще переделай фулл» — the help page's answers open smoothly, the plus turns into a cross. */
html body .fp-app .fp-faq-search { transition: border-color var(--fp-t-hover) var(--fp-ease), box-shadow var(--fp-t-hover) var(--fp-ease)}
html body .fp-app .fp-faq-search:focus { border-color: #d4d4d8; box-shadow:0 0 0 4px rgba(0,0,0,.04)}
html body .fp-app .fp-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--fp-ease)}
html body .fp-app .fp-faq-a > div { overflow: hidden; opacity: 0; transition: opacity var(--fp-t-hover) var(--fp-ease)}
html body .fp-app .fp-faq-row[data-open] .fp-faq-a { grid-template-rows: 1fr }
html body .fp-app .fp-faq-row[data-open] .fp-faq-a > div { opacity: 1 }
html body .fp-app .fp-faq-ic { transition: transform 220ms var(--fp-ease), color var(--fp-t-hover) var(--fp-ease)}
html body .fp-app .fp-faq-row[data-open] .fp-faq-ic { transform: rotate(45deg); color: #0d0d0d }
html body .fp-app .fp-faq-row > button:hover .fp-faq-ic { color: #0d0d0d }

/* keks, 2026-11-09: «тут линии некрасивые» — connectors, plugins and skills as separate rounded cards in a grid,
   no hairlines between them. */
html body :is(.fp-app, .fp-set) .fp-ext-list.fp-ext-list { display: grid; grid-template-columns: 1fr; gap: 10px; background: none !important; border-radius: 0; overflow: visible; box-shadow:none !important; max-width: none }
@media (min-width: 768px) { html body :is(.fp-app, .fp-set) .fp-ext-list.fp-ext-list { grid-template-columns: 1fr 1fr } }
@media (min-width: 1400px) { html body :is(.fp-app, .fp-set) .fp-ext-list.fp-ext-list { grid-template-columns: 1fr 1fr 1fr } }
html body :is(.fp-app, .fp-set) .fp-ext-list .fp-ext-row.fp-ext-row { border: 1px solid #ececee !important; border-left: 1px solid #ececee !important; border-radius: 16px; background: #fff; box-shadow:none !important; padding: 14px 16px }
html body :is(.fp-app, .fp-set) .fp-ext-list .fp-ext-row.fp-ext-row:hover { background: #fff; border-color: #dcdce0 !important; transform: translateY(-2px); box-shadow:none !important}
html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-list .fp-ext-row.fp-ext-row { background: #1a1a1c; border-color: #2a2a2d !important }

/* keks, 2026-11-09: «Неприятная анимация при нажатии» on the balance — no colour flash, a short press and a soft popover. */
html body .fp-app .kc-topbar .fp-balance.fp-balance { transition: background-color var(--fp-t-hover) var(--fp-ease), transform var(--fp-t-press) var(--fp-ease)}

/* keks, 2026-11-09: «моб версия… табы всегда в 1 ряд без переносов» — every switch scrolls sideways instead of wrapping. */
html body .fp-app .fp-seg { flex-wrap: nowrap !important; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch }
html body .fp-app .fp-seg::-webkit-scrollbar { display: none }
html body .fp-app .fp-seg > * { flex-shrink: 0 }
@media (max-width: 767px) {
  html body .fp-app [role="tablist"], html body .fp-app .kc-settings-nav { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none }
  html body .fp-app [role="tablist"]::-webkit-scrollbar { display: none }
  html body .fp-app [role="tablist"] > * { flex-shrink: 0 }
}

/* keks, 2026-11-09: «Объединение… слишком серое» — a white field with a hairline and a black button. */
html body .fp-app.fp-app.fp-app .fp-main.fp-main.fp-main .fp-merge .fp-merge-input.fp-merge-input { background: #fff !important; box-shadow:none !important; border: 1px solid #e4e4e7; --tw-ring-shadow: 0 0 #0000 !important }
html body .fp-app .fp-merge .fp-merge-input:focus { border-color: #a1a1aa; box-shadow:0 0 0 4px rgba(0,0,0,.04) !important}
html body .fp-app .fp-merge button[type="submit"] { background: #0d0d0d !important; color: #fff !important }
html body .fp-app .fp-merge button[type="submit"]:disabled { opacity: .35 }
html.fp-dark body .fp-app.fp-app.fp-app .fp-main.fp-main.fp-main .fp-merge .fp-merge-input.fp-merge-input { background: #18181a !important; border-color: #2a2a2d }

/* keks, 2026-11-09: «История… выровняй» — one toolbar row, plain model names, figures in tabular digits, the time grey. */
html body .fp-app .fp-history table td, html body .fp-app .fp-history table th { padding-left: 12px; padding-right: 12px; vertical-align: middle }
html body .fp-app .fp-history table td:first-child, html body .fp-app .fp-history table th:first-child { padding-left: 0 }
html body .fp-app .fp-history table td:last-child, html body .fp-app .fp-history table th:last-child { padding-right: 0 }
html body .fp-app .fp-history table td { font-variant-numeric: tabular-nums; font-size: 14px }
html body .fp-app.fp-app .fp-main .fp-history table td.font-mono.font-mono { font-family: var(--font-sans, Inter, system-ui, sans-serif) !important; letter-spacing: 0 !important; font-feature-settings: normal }
html body .fp-app .fp-history table td:first-child { color: #71717a }
html body .fp-app .fp-history table th { font-size: 12.5px; font-weight: 500; color: #71717a }

/* keks, 2026-11-09: «оно ж должно тоже скругленно быть» — the site preview beside the chat is a rounded card too. */
@media (min-width: 1024px) {
  html body .fp-app .kl-artifact-panel.lg\:relative { margin: 8px 8px 8px 0; border: 1px solid #ececee !important; border-radius: 16px; overflow: hidden; box-shadow:none}
  html.fp-dark body .fp-app .kl-artifact-panel.lg\:relative { border-color: #2a2a2d !important }
}

/* keks, 2026-11-09: «Сделай более красиво страницу Дашборд». Ink greys instead of blue, an even grid behind the
   heatmap, white stat tiles, the balance's 30-day bars quiet when empty. */
html body .fp-app .fp-main[data-page="overview"] .kc-heat[data-l="0"] { background: #f4f4f5 !important; background-image: none !important }
html body .fp-app .fp-main[data-page="overview"] .kc-heat[data-l="1"] { background: #d4d4d8 !important }
html body .fp-app .fp-main[data-page="overview"] .kc-heat[data-l="2"] { background: #a1a1aa !important }
html body .fp-app .fp-main[data-page="overview"] .kc-heat[data-l="3"] { background: #52525b !important }
html body .fp-app .fp-main[data-page="overview"] .kc-heat[data-l="4"] { background: #0d0d0d !important; box-shadow:none !important}
html body .fp-app.fp-app.fp-app .fp-main.fp-main.fp-main[data-page="overview"] .kc-heat-stat.kc-heat-stat { background: #fff !important; border-color: #ececee !important; border-radius: 14px }
html body .fp-app .fp-main[data-page="overview"] .kc-viz-hero .kc-spark { background: #0d0d0d !important; opacity: .85 }
html body .fp-app .fp-main[data-page="overview"] .kc-viz-hero .kc-spark[data-empty] { background: #ececee !important; opacity: 1; height: 4px !important }
html body .fp-app .fp-main[data-page="overview"] .kc-viz-hero .kc-spark-hot { opacity: 1 }
html body .fp-app .fp-main[data-page="overview"] .kc-box { border-color: #ececee !important; border-radius: 20px !important }
html body .fp-app .fp-main[data-page="overview"] .kc-box:hover { border-color: #e0e0e3 !important }
html.fp-dark body .fp-app .fp-main[data-page="overview"] .kc-heat[data-l="0"] { background: #222225 !important }
html.fp-dark body .fp-app .fp-main[data-page="overview"] .kc-heat[data-l="4"] { background: #f4f4f5 !important }
html.fp-dark body .fp-app .fp-main[data-page="overview"] .kc-heat-stat { background: #1a1a1c !important; border-color: #2a2a2d !important }
html body :is(.fp-app, .fp-set) .fp-ext-list > .fp-ext-row:only-child { grid-column: auto }
html body :is(.fp-app, .fp-set) .fp-ext-row > span.shrink-0.font-medium { background: #f1f1f2 !important; color: #0d0d0d !important }
html body :is(.fp-app, .fp-set) .fp-ext-row:hover > span.shrink-0.font-medium { background: #0d0d0d !important; color: #fff !important }
html body .fp-app.fp-app.fp-app .fp-main.fp-main.fp-main .fp-merge-steps li { background: #f7f7f8 !important }
html body .fp-app .fp-main[data-page="overview"] .kc-viz-hero .kc-spark:not([data-empty]) { max-height: 70% }

/* keks, 2026-11-09 (Library): the full-screen photo/video viewer keeps its dark scrim; the white dialog rule above hid
 * its top bar (Open chat, Download, Close: white on white). */
body:has(.fp-app) .kl-lightbox[role="dialog"] { background: transparent !important; border: 0 !important; box-shadow:none !important; border-radius: 0 !important }

/* ── Подключение without shadows (keks, 2026-11-09: «Убрать тени»). Scoped to the page by its key strip. ── */
html body .fp-app .kl-page:has(.fp-keylist) .kc-logo { background: #f4f4f5 !important; box-shadow:none !important}
html.fp-dark body .fp-app .kl-page:has(.fp-keylist) .kc-logo { background: #27272a !important }
html body .fp-app .kl-page:has(.fp-keylist) .fp-seg { box-shadow:none}
html body .fp-app .kl-page:has(.fp-keylist) .fp-seg-tab.is-on { box-shadow:inset 0 0 0 1px #e4e4e7}
html.fp-dark body .fp-app .kl-page:has(.fp-keylist) .fp-seg-tab.is-on { box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
html body .fp-app .kl-page:has(.fp-keylist) .kc-pick, html body .fp-app .kl-page:has(.fp-keylist) .kc-pick:hover { box-shadow:none !important; transform: none !important }
html body .fp-app.fp-app .fp-main .kl-page:has(.fp-keylist) button.kc-pick.kc-pick.kc-pick[aria-pressed="true"] { border-color: #18181b !important; box-shadow:none !important}
html.fp-dark body .fp-app.fp-app .fp-main .kl-page:has(.fp-keylist) button.kc-pick.kc-pick.kc-pick[aria-pressed="true"] { border-color: #f4f4f5 !important }
html body .fp-app .kl-page:has(.fp-keylist) :is(.shadow-sm, .shadow, .shadow-md) { box-shadow:none !important}

/* ── Settings in a large window over the blurred cabinet (keks, 2026-11-09: «Сделай чтобы настройки вот так
 * открывались в таком окне»). Grey frame, search and grouped sections on the left, a white sheet on the right with
 * label/control rows in quiet grey blocks. Portalled to <body>, so every rule here is scoped by .fp-set. ── */
body:has(.fp-app) .fp-set-scrim { position: fixed; inset: 0; z-index: 50; background: rgb(20 20 24 / 0.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fp-set-fade 180ms ease both }
body:has(.fp-app) .fp-set[role="dialog"] {
  position: fixed; z-index: 50; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1180px, calc(100vw - 48px)); height: min(880px, calc(100dvh - 48px));
  display: flex; padding: 8px; outline: none; overflow: hidden;
  background: #f1f1f3 !important; border: 0 !important; border-radius: 22px !important; box-shadow:none !important;
  font-family: var(--fp-notion); color: #19191b; animation: fp-set-in 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes fp-set-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes fp-set-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)) scale(0.99) } to { opacity: 1; transform: translate(-50%, -50%) } }
@media (prefers-reduced-motion: reduce) { body:has(.fp-app) :is(.fp-set-scrim, .fp-set[role="dialog"]) { animation: none } }
.fp-set .fp-set-shell { position: relative; display: flex; width: 100%; height: 100%; min-height: 0 }
.fp-set .fp-set-side { display: flex; flex-direction: column; width: 272px; flex-shrink: 0; padding: 4px 10px 8px 4px; min-height: 0 }
.fp-set .fp-set-search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 12px; background: #fff; color: #8a8a91; cursor: text }
.fp-set .fp-set-search svg { width: 17px; height: 17px; flex-shrink: 0 }
body:has(.fp-app) .fp-set .fp-set-search input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow:none !important; outline: none; padding: 0; font-size: 14.5px; color: #19191b }
.fp-set .fp-set-search input::placeholder { color: #8a8a91 }
.fp-set .fp-set-search input::-webkit-search-cancel-button { display: none }
.fp-set .fp-set-nav { flex: 1; min-height: 0; overflow-y: auto; margin-top: 6px; scrollbar-width: thin }
.fp-set .fp-set-group-t { padding: 18px 12px 6px; font-size: 13px; color: #8a8a91 }
.fp-set .fp-set-item { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14.5px; color: #2a2a2e; transition: background-color var(--fp-t-hover) var(--fp-ease)}
.fp-set .fp-set-item svg { width: 19px; height: 19px; flex-shrink: 0; color: #3a3a3f }
.fp-set .fp-set-item:hover { background: rgb(0 0 0 / 0.04) }
.fp-set .fp-set-item[aria-current="page"] { background: #fff; color: #19191b; font-weight: 500 }
.fp-set .fp-set-none { padding: 18px 12px; font-size: 14px; color: #8a8a91 }
.fp-set .fp-set-panel { flex: 1; min-width: 0; overflow-y: auto; background: #fff; border-radius: 16px }
.fp-set .fp-set-body { max-width: 760px; margin: 0 auto; padding: 52px 48px 56px }
.fp-set .fp-set-h { margin: 0 0 22px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: #19191b }
/* The «Инструменты» pages inside the window (2026-11-17, settingsPages.ts): the wide ones (grid, table, canvas) take
 * the whole panel; every one keeps its own look. */
.fp-set .fp-set-body.is-wide { max-width: 1040px; padding: 44px 36px 48px }
.fp-set .fp-set-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #55555c; transition: background-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease)}
.fp-set .fp-set-x:hover { background: #f1f1f3; color: #19191b }
.fp-set .fp-set-x svg { width: 18px; height: 18px }
/* Blocks: soft grey, rows with hairlines between them, no shadows. */
.fp-set .kc-card, .fp-set .kc-card.kc-box { background: #f7f7f8 !important; border: 0 !important; border-radius: 16px !important; box-shadow:none !important; padding: 16px 20px 14px !important; margin: 0 0 16px }
.fp-set .kc-card > div:first-child > h2:first-child { font-size: 15px; font-weight: 600 !important; color: #19191b }
.fp-set .fp-set-h { font-weight: 600 !important }
.fp-set .kc-card :is(h2, h3) { font-weight: 600 !important; color: #19191b }
html.fp-dark .fp-set .kc-card :is(h2, h3) { color: #f2f2f4 }
.fp-set .kc-card h3 { color: #19191b }
.fp-set .kc-card .border-b, .fp-set .kc-card .border-t, .fp-set .kc-card .border-border { border-color: #ebebee !important }
.fp-set .kc-cell { background: #fff; box-shadow:none; border-radius: 12px }
.fp-set .kc-set { display: block }
.fp-set .text-muted-foreground { color: #7d7d85 }
.fp-set div:has(> .kc-opt) { gap: 0 !important }
.fp-set .kc-opt { border: 0 !important; background: transparent !important; border-radius: 0 !important; padding: 12px 0 !important; color: #7d7d85 }
.fp-set .kc-opt + .kc-opt { box-shadow:none}
.fp-set .kc-opt b { color: #19191b; font-weight: 600 }
.fp-set .kc-opt.is-on b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: #19191b; vertical-align: 2px }
body:has(.fp-app) .fp-set .kc-card input:not([type="checkbox"]):not([type="radio"]), body:has(.fp-app) .fp-set .kc-card textarea { background: #fff !important; border-color: #e6e6ea !important; border-radius: 10px }
.fp-set .kc-card button.border-border-strong.bg-transparent { background: #fff; border-color: #e6e6ea; border-radius: 10px; box-shadow:none}
.fp-set .kc-card button.border-border-strong.bg-transparent:hover { border-color: #c9c9cf }
/* Segmented choices (Seg in console/ui.tsx): the same grey capsule as in the cabinet, the chosen one white. */
.fp-set .fp-seg { background: #ececef; box-shadow:none}
.fp-set .fp-seg-tab { color: #71717a; background: transparent; box-shadow:none}
.fp-set .fp-seg-tab:hover { color: #18181b }
.fp-set .fp-seg-tab.is-on { background: #fff; color: #0d0d0d; box-shadow:none}

/* Focus: a quiet grey ring drawn inside the control, so the edge of the menu or of a block never cuts it
 * (keks, 2026-11-09: «кнопки обрезаются»), instead of the browser's blue outline. */
.fp-set :is(a, button, [role="button"], [tabindex]):focus-visible { outline: none; box-shadow:inset 0 0 0 2px #b4b4bb}
body:has(.fp-app) .fp-set .kc-card :is(input, textarea):focus-visible { outline: none; border-color: #8a8a91 !important }
html.fp-dark .fp-set :is(a, button, [role="button"], [tabindex]):focus-visible { box-shadow:inset 0 0 0 2px #6b6b72}
/* Menu items take no ring at all: the window focuses one on open, and a ring there reads as a stray frame. */
.fp-set .fp-set-item:focus-visible, html.fp-dark .fp-set .fp-set-item:focus-visible { box-shadow:none}
.fp-set .fp-set-item:not([aria-current="page"]):focus-visible { background: rgb(0 0 0 / 0.04) }
html.fp-dark .fp-set .fp-set-item:not([aria-current="page"]):focus-visible { background: rgb(255 255 255 / 0.05) }
.fp-set .fp-set-bar, .fp-set .fp-set-go { display: none }
/* Phone (keks, 2026-11-09: «на телефоне ужасно криво реализовано»): the whole screen and two screens instead of a
 * squeezed copy of the desktop. First the list of sections (white blocks of rows with a chevron), then one section
 * with a way back in the bar. The page is grey and the blocks white, so nothing is boxed twice. */
@media (max-width: 767px) {
  body:has(.fp-app) .fp-set[role="dialog"] { left: 0; top: 0; transform: none; width: 100vw; height: 100dvh; padding: 0; border-radius: 0 !important; animation: fp-set-fade 160ms ease both }
  .fp-set .fp-set-shell { flex-direction: column }
  .fp-set .fp-set-bar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; height: 52px; padding: 0 56px; padding-top: env(safe-area-inset-top); box-sizing: content-box; font-size: 16px; font-weight: 600; color: #19191b }
  .fp-set .fp-set-bar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
  .fp-set .fp-set-back, .fp-set .fp-set-x { position: absolute; top: calc(env(safe-area-inset-top) + 4px); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #19191b }
  .fp-set .fp-set-back { left: 6px }
  .fp-set .fp-set-x { right: 6px }
  .fp-set :is(.fp-set-back, .fp-set-x) svg { width: 20px; height: 20px }
  .fp-set .fp-set-shell[data-view="list"] .fp-set-panel, .fp-set .fp-set-shell[data-view="page"] .fp-set-side { display: none }
  /* The list. */
  .fp-set .fp-set-side { flex: 1; width: 100%; padding: 4px 16px 0; min-height: 0 }
  .fp-set .fp-set-search { height: 44px; flex-shrink: 0 }
  body:has(.fp-app) .fp-set .fp-set-search input { font-size: 16px }
  .fp-set .fp-set-nav { margin-top: 0; padding-bottom: calc(env(safe-area-inset-bottom) + 24px); scrollbar-width: none }
  .fp-set .fp-set-nav::-webkit-scrollbar { display: none }
  .fp-set .fp-set-group-t { padding: 22px 4px 8px }
  .fp-set .fp-set-item { height: 54px; padding: 0 14px 0 16px; gap: 14px; border-radius: 0; background: #fff; font-size: 16px; font-weight: 400 }
  .fp-set .fp-set-item:hover, .fp-set .fp-set-item[aria-current="page"] { background: #fff; font-weight: 400 }
  .fp-set .fp-set-item:active { background: #f7f7f8 }
  .fp-set .fp-set-item svg { width: 21px; height: 21px }
  .fp-set .fp-set-item > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
  .fp-set .fp-set-item .fp-set-go { display: block; width: 15px; height: 15px; color: #b9b9c0 }
  .fp-set .fp-set-group .fp-set-item:first-of-type { border-radius: 16px 16px 0 0 }
  .fp-set .fp-set-group .fp-set-item:last-of-type { border-radius: 0 0 16px 16px }
  .fp-set .fp-set-group .fp-set-item:first-of-type:last-of-type { border-radius: 16px }
  .fp-set .fp-set-group .fp-set-item + .fp-set-item { box-shadow:none}
  .fp-set .fp-set-item:not([aria-current="page"]):focus-visible { background: #fff }
  .fp-set .fp-set-group .fp-set-item + .fp-set-item:focus-visible { box-shadow:none}
  /* One section. */
  .fp-set .fp-set-panel { background: transparent; border-radius: 0 }
  .fp-set .fp-set-body { padding: 4px 16px calc(env(safe-area-inset-bottom) + 32px) }
  .fp-set .fp-set-h { display: none }
  .fp-set .kc-card, .fp-set .kc-card.kc-box { background: #fff !important; padding: 14px 16px 12px !important; margin-bottom: 12px }
  .fp-set .kc-cell { background: #f7f7f8 }
  body:has(.fp-app) .fp-set .kc-card input:not([type="checkbox"]):not([type="radio"]), body:has(.fp-app) .fp-set .kc-card textarea { font-size: 16px }
}

/* Dark theme (html.fp-dark). */
html.fp-dark body:has(.fp-app) .fp-set-scrim { background: rgb(0 0 0 / 0.45) }
html.fp-dark body:has(.fp-app) .fp-set[role="dialog"] { background: #18181a !important; color: #f2f2f4 }
html.fp-dark .fp-set :is(.fp-set-search, .fp-set-item[aria-current="page"]) { background: #262629 }
html.fp-dark body:has(.fp-app) .fp-set .fp-set-search input, html.fp-dark .fp-set :is(.fp-set-item, .fp-set-item[aria-current="page"], .fp-set-h, .kc-card h3, .kc-opt b) { color: #f2f2f4 }
html.fp-dark .fp-set .fp-set-item svg { color: #d4d4d8 }
html.fp-dark .fp-set .fp-set-item:hover { background: rgb(255 255 255 / 0.05) }
html.fp-dark .fp-set .fp-set-panel { background: #212123 }
html.fp-dark .fp-set .fp-set-x { color: #b4b4ba }
html.fp-dark .fp-set .fp-set-x:hover { background: #2c2c2f; color: #fff }
html.fp-dark .fp-set .kc-card, html.fp-dark .fp-set .kc-card.kc-box { background: #2a2a2d !important }
html.fp-dark .fp-set .kc-card > div:first-child > h2 { color: #f2f2f4 }
html.fp-dark .fp-set .kc-card :is(.border-b, .border-t, .border-border) { border-color: #353539 !important }
html.fp-dark .fp-set .kc-opt + .kc-opt { box-shadow:none}
html.fp-dark .fp-set .kc-opt.is-on b::after { background: #f2f2f4 }
html.fp-dark .fp-set .kc-cell { background: #212123 }
html.fp-dark body:has(.fp-app) .fp-set .kc-card :is(input:not([type="checkbox"]):not([type="radio"]), textarea) { background: #212123 !important; border-color: #3a3a3e !important }
html.fp-dark .fp-set .kc-card button.border-border-strong.bg-transparent { background: #212123; border-color: #3a3a3e }
html.fp-dark .fp-set .fp-seg { background: #212123 }
html.fp-dark .fp-set .fp-seg-tab { color: #a1a1aa }
html.fp-dark .fp-set .fp-seg-tab.is-on { background: #3a3a3d; color: #f4f4f5 }
@media (max-width: 767px) {
  html.fp-dark .fp-set .fp-set-bar, html.fp-dark .fp-set :is(.fp-set-back, .fp-set-x) { color: #f2f2f4 }
  html.fp-dark .fp-set .fp-set-item, html.fp-dark .fp-set .fp-set-item:hover, html.fp-dark .fp-set .fp-set-item[aria-current="page"] { background: #262629 }
  html.fp-dark .fp-set .fp-set-item:active { background: #2c2c2f }
  html.fp-dark .fp-set .fp-set-group .fp-set-item + .fp-set-item { box-shadow:none}
  html.fp-dark .fp-set .fp-set-item:not([aria-current="page"]):focus-visible { background: #262629 }
  html.fp-dark .fp-set .fp-set-group .fp-set-item + .fp-set-item:focus-visible { box-shadow:none}
  html.fp-dark .fp-set .fp-set-item .fp-set-go { color: #6b6b72 }
  html.fp-dark .fp-set .fp-set-panel { background: transparent }
  html.fp-dark .fp-set .kc-card, html.fp-dark .fp-set .kc-card.kc-box { background: #262629 !important }
  html.fp-dark .fp-set .kc-cell { background: #18181a }
}
/* ── Anti-slop pass over the whole cabinet (keks, 2026-11-09: «нейрослоп дизайн убери»). ──
 * The flat look of «Подключение» (#949) on every page: no drop shadows on cards, tiles and tabs, a hairline instead.
 * The last blue (--fp-accent: link hover, active menu icon, award progress) becomes ink, as the rest of the palette;
 * the user's light-blue message (--fp-accent-soft) stays. Awards lose the decorative strap slot, the «FREEPAY Награда»
 * line repeated on every card and the 001…013 serial numbers; a fresh award still shows «Новая». */
html:has(.fp-app) { --fp-accent: #18181b; --fp-lift: 0 0 0 1px #e4e4e7 }
html.fp-dark:has(.fp-app) { --fp-accent: #f4f4f5; --fp-lift: 0 0 0 1px #2a2a2d }
html body .fp-app .fp-main .kl-page :is(.shadow-sm, .shadow, .shadow-md, .shadow-lg) { box-shadow:none !important}
html body .fp-app .fp-main .fp-seg { box-shadow:none}
html body .fp-app .fp-main .fp-seg-tab.is-on { box-shadow:inset 0 0 0 1px #e4e4e7}
html.fp-dark body .fp-app .fp-main .fp-seg-tab.is-on { box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
html body .fp-app .fp-main .kl-page :is(.kc-pick, .kc-pick:hover) { box-shadow:none !important; transform: none !important }

/* keks, 2026-11-09: «не ровно» (История) — the filter row's selects and «Скачать CSV» are one height and one shape. */
html body .fp-app.fp-app .fp-main .fp-history .mb-3\.5 select { height: 36px !important; min-height: 36px; border-radius: 10px !important; font-size: 14px; padding-top: 0; padding-bottom: 0 }
html body .fp-app.fp-app .fp-main .fp-history .mb-3\.5 > button { height: 36px !important; border-radius: 10px !important; padding: 0 14px; border: 1px solid #e4e4e7 !important; box-shadow:none !important; font-size: 14px }
html.fp-dark body .fp-app.fp-app .fp-main .fp-history .mb-3\.5 > button { border-color: #2a2a2d !important }
/* keks, 2026-11-09: «стрелки поплыли» (Роутинг) — a model node is as tall as the kind node beside it, so the dashed link is straight. */
html body .fp-app .kc-flow-node:has(> select) { min-height: 63px !important; display: flex; align-items: center }
/* keks, 2026-11-09 (header variant 1, «Одна капсула»): context, tokens and «Файлы» share one grey capsule like the switches; the open one is a white tab. */
html body .fp-app .kc-topbar .fp-hcap { display: inline-flex; align-items: center; height: 36px; padding: 2px; gap: 0; border-radius: 12px; background: #f1f1f2; flex-shrink: 0 }
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button { position: relative; align-items: center; gap: 7px; height: 32px !important; width: auto !important; min-width: 32px; margin: 0 0 0 1px; padding: 0 11px !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; box-shadow:none !important; color: #3f3f46 !important; font-size: 13px !important; justify-content: center; transition: background-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease)}
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button:first-child { margin-left: 0 }
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button + button::before { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 1px; background: #d4d4d8; pointer-events: none; transition: opacity var(--fp-t-hover) var(--fp-ease)}
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button:hover { background: rgba(0,0,0,.04) !important; color: #0d0d0d !important }
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button:is([data-state=open], [data-on]) { background: #fff !important; color: #0d0d0d !important; box-shadow:inset 0 0 0 1px #e4e4e7 !important}
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button:is(:hover, [data-state=open], [data-on])::before,
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button:is(:hover, [data-state=open], [data-on]) + button::before { opacity: 0 }
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button svg { color: #52525b }
html body .fp-app .kc-topbar .fp-hcap .fp-balance-ic { width: 15px; height: 15px }
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button:has(> svg:only-child) { padding: 0 9px !important }
html.fp-dark body .fp-app .kc-topbar .fp-hcap { background: #232325 }
html.fp-dark body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button { color: #d4d4d8 !important }
html.fp-dark body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button svg { color: #a1a1aa }
html.fp-dark body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button::before { background: #3f3f46 }
html.fp-dark body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button:hover { background: rgba(255,255,255,.05) !important; color: #f4f4f5 !important }
html.fp-dark body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button:is([data-state=open], [data-on]) { background: #3a3a3d !important; color: #f4f4f5 !important; box-shadow:inset 0 0 0 1px rgba(255,255,255,.08) !important}
@media (max-width: 640px) { html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button { padding: 0 9px !important } }

/* «Треды» (keks, 2026-11-09, app.hoplite.sh/threads as the reference; console/pages/Threads.tsx): grey group headers,
   plain rows that grey on hover, a grey search pill. Own classes: the generic bg-foreground/[0.0x] rule above would
   paint every row. */
body:has(.fp-app) .fp-th-group { background: #f4f4f5 }
body:has(.fp-app) .fp-th-row { background: transparent }
body:has(.fp-app) .fp-th-row:hover { background: #f4f4f5 }
body:has(.fp-app) .fp-th-pr { background: #f4f4f5 }
body:has(.fp-app) .fp-th-row:hover .fp-th-pr { background: #e9e9ec }
html.fp-dark body:has(.fp-app) :is(.fp-th-group, .fp-th-row:hover, .fp-th-pr) { background: #212123 }

/* ═══ Threads in the reference's look (keks, 2026-11-09, «хочу дизайн как у них»: four screenshots of an agent app) ═══
 * Layout, density and patterns follow the reference; the brand, the colours and the dotted pictures are FREEPAY's own
 * (scripts/make-freepay-dither.mjs). Light and dark. ══════════════════════════════════════════════════════════════════ */

/* State glyphs drawn in dots (features/projects/fpThreads.tsx FpStateIcon). */
.fp-dot-state { display: block; overflow: visible }
.fp-dot-state.is-working circle { fill: #3b7bf6; animation: fp-dot-run .8s linear infinite }
.fp-dot-state.is-waiting circle { fill: #e2920c }
.fp-dot-state.is-waiting { animation: fp-dot-breathe 2.4s ease-in-out infinite }
.fp-dot-state.is-done circle { fill: #2fa457 }
html.fp-dark .fp-dot-state.is-working circle { fill: #7ea6ff }
html.fp-dark .fp-dot-state.is-waiting circle { fill: #f2b13f }
html.fp-dark .fp-dot-state.is-done circle { fill: #5cc97f }
@keyframes fp-dot-run { 0% { opacity: 1 } 100% { opacity: .22 } }
@keyframes fp-dot-breathe { 0%, 100% { opacity: 1 } 50% { opacity: .45 } }
@media (prefers-reduced-motion: reduce) { .fp-dot-state circle, .fp-dot-state { animation: none !important } }

/* Left menu: «Новый тред», the sections, a rule, then the threads as roomy rows with their glyph and time; the open one
   is a white card. */
html body .fp-app.fp-app .fp-side-chats.fp-side-chats { margin-top: 12px !important; padding-top: 12px !important; border-top: 1px solid #e4e4e7 !important }
html.fp-dark body .fp-app.fp-app .fp-side-chats.fp-side-chats { border-top-color: #2a2a2d !important }
html body .fp-app.fp-app .fp-side-chats .fp-chat-row:not(.pl-8) { padding-left: 10px !important }
html body .fp-app.fp-app .fp-side-chats .fp-chat-row { height: 40px !important; border-radius: 10px !important; font-size: 14.5px !important; color: #18181b !important; background: transparent !important; box-shadow:none !important}
html body .fp-app.fp-app .fp-side-chats .fp-chat-row > button { gap: 12px !important }
html body .fp-app.fp-app .fp-side-chats .fp-chat-row:hover { background: rgb(0 0 0 / 0.045) !important }
html:not(.fp-dark) body .fp-app.fp-app .fp-side-chats .fp-chat-row.is-active { background: #fff !important; box-shadow:0 0 0 1px rgb(16 24 40 / 0.04) !important}
html.fp-dark body .fp-app.fp-app .fp-side-chats .fp-chat-row { color: #ececec !important }
html.fp-dark body .fp-app.fp-app .fp-side-chats .fp-chat-row:hover, html.fp-dark body .fp-app.fp-app .fp-side-chats .fp-chat-row.is-active { background: #262628 !important; box-shadow:none !important}
html body .fp-app.fp-app .fp-side-chats .fp-chat-row > span.tabular-nums { font-size: 12.5px !important; color: #8a8a93 !important; padding-right: 6px }

/* Top bar: «Треды / ⁘ title» in the reference's quiet size (an older rule hid every icon in the crumbs). */
html body .fp-app.fp-app .fp-crumbs > svg.fp-dot-state { display: block !important }
html body .fp-app.fp-app .fp-crumbs.fp-crumbs { font-size: 15px !important; font-weight: 450 !important; letter-spacing: -0.005em !important }
html body .fp-app.fp-app .fp-crumbs .fp-crumb-link { color: #71717a !important; font-weight: 400 }
html body .fp-app.fp-app .fp-crumbs .fp-crumb-link:hover { color: #18181b !important }
html.fp-dark body .fp-app.fp-app .fp-crumbs .fp-crumb-link { color: #a1a1aa !important }
html.fp-dark body .fp-app.fp-app .fp-crumbs .fp-crumb-link:hover { color: #f4f4f5 !important }

/* An answer: «Работал 12 с» above it instead of an avatar, and a step line while it works. */
html body .fp-app.fp-app .fp-thread .kc-ai-msg > .fp-worked, html body .fp-app.fp-app .fp-thread .kc-ai-msg > .fp-step { font-size: 13.5px !important; font-weight: 400 !important; color: #71717a !important; gap: 10px }
html body .fp-app.fp-app .fp-thread .kc-ai-msg > .fp-step .nc-shimmer { font-size: 14.5px !important; color: #3f3f46 }
html.fp-dark body .fp-app.fp-app .fp-thread .kc-ai-msg > :is(.fp-worked, .fp-step) { color: #a1a1aa !important }
html body .fp-app.fp-app .fp-thread .kc-ai-msg .fp-time { display: none !important }

/* Composer: two rows everywhere, as in the reference — the text on top, «+» and the model below, send on the right —
   in a softly rounded card; send and stop are rounded squares. */
html body .fp-app.fp-app .fp-composer .nc-prism.nc-prism { flex-wrap: wrap !important; border-radius: 18px !important; padding: 10px 10px 8px !important; min-height: 0 }
html body .fp-app.fp-app .fp-composer .kl-c-input.kl-c-input { order: 0 !important; flex: 1 1 100% !important; padding: 2px 8px 4px !important }
html body .fp-app.fp-app .fp-composer .kl-c-bar > button:first-of-type { order: 1 }
html body .fp-app.fp-app .fp-composer .kl-c-bar > .ml-auto { order: 3 }
html body .fp-app.fp-app .fp-composer .kl-send, html body .fp-app.fp-app .fp-composer .ml-auto > button.bg-primary { border-radius: 10px !important }

/* «Треды»: the whole width, a tinted band per state (blue in progress, amber waiting for you, green done), one line per
   thread, the PR as a small square chip, a grey dotted landscape at the bottom of the page. */
.fp-app .fp-th-page::before { content: ""; position: fixed; right: 8px; bottom: 8px; z-index: 0; width: min(1240px, calc(100vw - 290px)); aspect-ratio: 1800 / 1000; pointer-events: none; border-bottom-right-radius: 16px; opacity: .5; background: url(dither-threads.webp) right bottom / contain no-repeat }
/* Dark theme: the grey dots were lost on the dark grey (Oleksandr, 2026-11-17 «нужно его чб делать»), so they are
   lifted to a light grey; a static filter on a fixed layer, rasterised once. */
html.fp-dark .fp-app .fp-th-page::before { opacity: .3; filter: grayscale(1) brightness(2) }
@media (max-width: 767px) { .fp-app .fp-th-page::before { right: 0; bottom: 0; width: 100vw; border-radius: 0 } }
html body .fp-app.fp-app .fp-th-group { color: #3f3f46; background: #f4f4f5 }
html body .fp-app.fp-app .fp-th-group.is-working { background: #ebf1fe; color: #2c5fd6 }
html body .fp-app.fp-app .fp-th-group.is-waiting { background: #fdf3e1; color: #9a6206 }
html body .fp-app.fp-app .fp-th-group.is-done { background: #eaf5ec; color: #2c7a43 }
html body .fp-app.fp-app .fp-th-group .fp-th-count { opacity: .7; font-weight: 400 }
html.fp-dark body .fp-app.fp-app .fp-th-group.is-working { background: rgb(62 123 250 / 0.16); color: #9bb9ff }
html.fp-dark body .fp-app.fp-app .fp-th-group.is-waiting { background: rgb(226 146 12 / 0.16); color: #f2bd5c }
html.fp-dark body .fp-app.fp-app .fp-th-group.is-done { background: rgb(47 164 87 / 0.16); color: #79d596 }
/* Hover (keks, 2026-11-09 «поменять дебильную анимацию когда навожу»): no grey slab fading in over the dots; the
   title turns blue at once and the time darkens. */
html body .fp-app.fp-app .fp-th-row, html body .fp-app.fp-app .fp-th-row:hover, html.fp-dark body .fp-app.fp-app .fp-th-row:hover { background: transparent !important; transition: none !important }
html body .fp-app.fp-app .fp-th-row > span > span:first-child { transition: none !important }
html body .fp-app.fp-app .fp-th-row:hover > span > span:first-child { color: #2c5fd6 !important }
html.fp-dark body .fp-app.fp-app .fp-th-row:hover > span > span:first-child { color: #9bb9ff !important }
html body .fp-app.fp-app .fp-th-row:hover .fp-th-time { color: #3f3f46 }
html.fp-dark body .fp-app.fp-app .fp-th-row:hover .fp-th-time { color: #d4d4d8 }
html body .fp-app.fp-app .fp-th-row:focus-visible { outline: 2px solid #3b7bf6; outline-offset: -2px }
html body .fp-app.fp-app .fp-th-group, html body .fp-app.fp-app .fp-th-group:hover { transition: none !important }
html body .fp-app.fp-app .fp-th-pr { background: rgb(0 0 0 / 0.05); color: #3f3f46 }
html body .fp-app.fp-app .fp-th-row:hover .fp-th-pr { background: rgb(0 0 0 / 0.08) }
html body .fp-app.fp-app .fp-th-pr:hover { color: #18181b; background: rgb(0 0 0 / 0.11) !important }
html.fp-dark body .fp-app.fp-app .fp-th-pr { background: rgb(255 255 255 / 0.08); color: #d4d4d8 }

/* New thread: the composer alone in the middle of a dotted landscape, a grey tray under it with the quick starts. */
/* The dots dissolve towards every edge of the panel (keks, 2026-11-09 «сделай тут размытие»: they ran hard into the
   panel's left edge and bottom corner): a vertical and a horizontal fade, intersected. The canvas (FpDitherField.tsx)
   draws the same picture alive under the mouse; until it is ready the image stands in. */
.fp-app .fp-home-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; background: url(dither-home.webp) right bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 74%, transparent 100%), linear-gradient(to right, transparent var(--fx, 0px), #000 calc(var(--fx, 0px) + 96px), #000 calc(100% - 88px), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 74%, transparent 100%), linear-gradient(to right, transparent var(--fx, 0px), #000 calc(var(--fx, 0px) + 96px), #000 calc(100% - 88px), transparent 100%);
  mask-composite: intersect }
.fp-app .fp-home-art[data-ready] { background: none }
/* Dark theme: black and white (FpDitherField paints light grey dots); the stand-in image is greyed the same way. */
html.fp-dark .fp-app .fp-home-art { opacity: .4 }
html.fp-dark .fp-app .fp-home-art:not([data-ready]) { filter: grayscale(1) brightness(1.65) }
.fp-app .fp-home > div:not(.fp-home-art) { position: relative; z-index: 1 }
html body .fp-app.fp-app .fp-home-card { border-radius: 20px; background: #f4f4f5; box-shadow:0 0 0 1px rgb(0 0 0 / 0.06)}
html.fp-dark body .fp-app.fp-app .fp-home-card { background: #232325; box-shadow:0 0 0 1px #333336}
html body .fp-app.fp-app .fp-home-card .fp-composer { max-width: none !important }
html body .fp-app.fp-app .fp-home-card .fp-composer .nc-prism.nc-prism { border-radius: 20px !important; box-shadow:0 0 0 1px rgb(0 0 0 / 0.07) !important; border: 0 !important }
.fp-app .fp-home-tray { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px }
.fp-app .fp-home-tray > div { margin-top: 0 !important }
.fp-app .fp-home-chip, html body .fp-app.fp-app .fp-home-tray > div > button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 9px !important; font-size: 13.5px !important; color: #3f3f46; white-space: nowrap; transition: background-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease)}
.fp-app .fp-home-chip svg { width: 16px; height: 16px; flex: none }
.fp-app .fp-home-chip:hover, html body .fp-app.fp-app .fp-home-tray > div > button:not([aria-pressed="true"]):hover { background: rgb(0 0 0 / 0.06) !important; color: #18181b }
html.fp-dark .fp-app .fp-home-chip { color: #d4d4d8 }
html.fp-dark .fp-app .fp-home-chip:hover { background: rgb(255 255 255 / 0.07) !important; color: #fafafa }
@media (max-width: 639px) { .fp-app .fp-home-chip > span { display: none } .fp-app .fp-home-chip { padding: 0 9px } }

/* «Треды»: the projects row (features/projects/FpProjects.tsx ThreadsProjects). */
html body .fp-app.fp-app .fp-th-chip { background: #f4f4f5; color: #3f3f46; white-space: nowrap }
html body .fp-app.fp-app .fp-th-chip:hover { background: #ebebed; color: #18181b }
html body .fp-app.fp-app .fp-th-chip.is-on { background: #18181b; color: #fff }
html body .fp-app.fp-app .fp-th-chip.is-add { background: transparent; color: #71717a; box-shadow:inset 0 0 0 1px #e4e4e7}
html body .fp-app.fp-app .fp-th-chip.is-add:hover { color: #18181b; box-shadow:inset 0 0 0 1px #a1a1aa}
html.fp-dark body .fp-app.fp-app .fp-th-chip { background: #2a2a2d; color: #d4d4d8 }
html.fp-dark body .fp-app.fp-app .fp-th-chip:hover { background: #333336; color: #fff }
html.fp-dark body .fp-app.fp-app .fp-th-chip.is-on { background: #f4f4f5; color: #18181b }
html.fp-dark body .fp-app.fp-app .fp-th-chip.is-add { background: transparent; color: #a1a1aa; box-shadow:inset 0 0 0 1px #3f3f46}

/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────────
   Motion (keks, 2026-11-09: «переделай абсолютно все анимации на сервисе — кривые, дерганые»). One set of durations
   and curves for the whole cabinet; only transform and opacity move (no blur, no width in a keyframe), so every
   animation runs on the compositor. What it replaced: hovers between 120 and 420 ms, menus and dialogs arriving
   through a blur filter over the glass (a repaint per frame), a menu that jumped its icons to the middle and back
   when folded, entrances of up to 900 ms with long staggers.
     press 90 ms · hover 150 ms · out 140 ms · pop (menus) 200 ms · dialog 260 ms · panel (menu, sheets) 300 ms.
   ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
:root {
  --fp-ease: cubic-bezier(.22, 1, .36, 1);       /* out: hovers and anything arriving, quick then soft */
  --fp-ease-in: cubic-bezier(.4, 0, 1, 1);       /* in: anything leaving */
  --fp-ease-panel: cubic-bezier(.32, .72, 0, 1); /* a panel sliding or resizing under the hand */
  --fp-t-press: 90ms;
  --fp-t-hover: 150ms;
  --fp-t-out: 140ms;
  --fp-t-pop: 200ms;
  --fp-t-dialog: 260ms;
  --fp-t-panel: 300ms;
}
/* Every hover and focus answers in the same 150 ms (Tailwind wrote 420 ms into transition-colors, the base layer 380 ms
   into every button). Zero specificity: a component's own transition still wins, a duration-* class (--tw-duration)
   is kept. Menus and dialogs are portals outside .fp-app, so this is not scoped to it. */
:where(a, button, [role="button"], [role="menuitem"], [role="option"], [role="tab"], input, textarea, select, summary, label,
  .transition, .transition-all, .transition-colors, .transition-opacity, .transition-transform, .transition-shadow, [class*="transition-["]) {
  transition-duration: var(--tw-duration, var(--fp-t-hover));
  transition-timing-function: var(--tw-ease, var(--fp-ease));
}
/* A press: the button sinks a little at once and comes back softly. Not on the menu's full-width rows. */
html body .fp-app :is(.fp-balance, .px-btn, .fp-seg-tab, .fp-empty-btn, .fp-home-chip):active:not(:disabled) { transform: scale(.97); transition: transform var(--fp-t-press) var(--fp-ease) }
html body .fp-app .fp-side-item:active { transform: none }

/* Cards that lift: one curve, transform and a shadow, no 350 ms lag. */
html body :is(.fp-app, .fp-set) .fp-ext-row, html body .fp-app .kc-pick, html body .fp-app .fp-lift, html body .fp-app .kc-box, html body .fp-app .kc-card, html body .fp-app .kl-lift {
  transition: transform 220ms var(--fp-ease), box-shadow 220ms var(--fp-ease), border-color var(--fp-t-hover) var(--fp-ease), background-color var(--fp-t-hover) var(--fp-ease) !important }
html body .fp-app :is(.kc-pick, .fp-lift):hover { transform: translateY(-2px); box-shadow:none}
html body .fp-app :is(.kc-pick, .fp-lift, .fp-ext-row):active { transform: translateY(0) scale(.985) !important; transition-duration: var(--fp-t-press) !important }
.kc-switch { transition: background-color 200ms var(--fp-ease) }
.kc-switch::after { transition: transform 200ms var(--fp-ease), opacity 200ms var(--fp-ease) }

/* Menus, popovers, tooltips: a small scale from where they were opened, no blur (the glass behind a filter was
   repainted every frame). Items arrive with the menu, not one after another. */
@keyframes fp-pop-in { from { opacity: 0; transform: translateY(-4px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes fp-pop-out { from { opacity: 1; transform: none } to { opacity: 0; transform: scale(.98) } }
@keyframes fp-fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes fp-fade-out { from { opacity: 1 } to { opacity: 0 } }
html body .nc-popover[data-state="open"], html body .nc-popover[data-state$="-open"] { animation: fp-pop-in var(--fp-t-pop) var(--fp-ease) both !important }
html body .nc-popover[data-side="top"][data-state="open"] { animation-name: fp-pop-up !important }
@keyframes fp-pop-up { from { opacity: 0; transform: translateY(4px) scale(.97) } to { opacity: 1; transform: none } }
html body .nc-popover[data-state="closed"] { animation: fp-pop-out var(--fp-t-out) var(--fp-ease-in) both !important }
html body .nc-popover .kl-stagger { animation: none !important }

/* Dialogs: the scrim fades, the card rises 8 px and settles; it leaves faster than it came. */
@keyframes fp-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985) } to { opacity: 1; transform: none } }
@keyframes fp-dialog-out { from { opacity: 1; transform: none } to { opacity: 0; transform: translateY(4px) scale(.99) } }
html body .nc-dialog[data-state="open"], html body .kc-ob-card[data-state="open"] { animation: fp-dialog-in var(--fp-t-dialog) var(--fp-ease) both !important }
html body .nc-dialog[data-state="closed"], html body .kc-ob-card[data-state="closed"] { animation: fp-dialog-out var(--fp-t-out) var(--fp-ease-in) both !important }
html body :is(.nc-scrim, .kc-ob-scrim)[data-state="open"] { animation: fp-fade-in var(--fp-t-dialog) var(--fp-ease) both !important }
html body :is(.nc-scrim, .kc-ob-scrim)[data-state="closed"] { animation: fp-fade-out var(--fp-t-out) var(--fp-ease-in) both !important }
/* A plain dim behind a dialog: a backdrop blur over the whole screen was re-blurred on every frame anything moved
   under it (the status dots, the dotted field), and a dialog ran at 12–16 frames a second. */
html body :is(.nc-scrim, .kc-ob-scrim) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important }
html body .kc-ob-scrim { background: rgb(0 0 0 / 0.42) }
body:has(.fp-app) .fp-set-scrim { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(20 20 24 / 0.34) }
html.fp-dark body:has(.fp-app) .fp-set-scrim { background: rgb(0 0 0 / 0.5) }
body:has(.fp-app) .fp-set-scrim { animation: fp-fade-in var(--fp-t-dialog) var(--fp-ease) both }
body:has(.fp-app) .fp-set[role="dialog"] { animation: fp-set-in var(--fp-t-dialog) var(--fp-ease) both }
@media (max-width: 767px) { body:has(.fp-app) .fp-set[role="dialog"] { animation: fp-fade-in var(--fp-t-dialog) var(--fp-ease) both } }
/* A step inside a dialog (welcome, top-up) changes with a short fade-up, no blur. */
@keyframes fp-step-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
html body .kc-ob-step, html body .kc-ob-step > * { animation: fp-step-in 240ms var(--fp-ease) both !important }
html body .kc-ob-step > *:nth-child(n) { animation-delay: 0ms !important }

/* The phone's slide-out menu and side sheets: the drawer curve, out a little faster. */
html body .nc-sheet-left[data-state="open"] { animation: nc-sheet-in-left var(--fp-t-panel) var(--fp-ease-panel) both !important }
html body .nc-sheet-left[data-state="closed"] { animation: nc-sheet-out-left 220ms var(--fp-ease-in) both !important }
html body .nc-sheet-right[data-state="open"] { animation: nc-sheet-in-right var(--fp-t-panel) var(--fp-ease-panel) both !important }
html body .nc-sheet-right[data-state="closed"] { animation: nc-sheet-out-right 220ms var(--fp-ease-in) both !important }

/* Pages and messages: a short fade-up, once. */
@keyframes fp-rise { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
html body .fp-app .kl-page { animation: fp-rise 240ms var(--fp-ease) both }
html body .fp-app .kl-msg-in { animation: fp-rise 260ms var(--fp-ease) both }
html body .fp-app .kl-reveal { animation: fp-rise 320ms var(--fp-ease) backwards; animation-delay: calc(var(--i, 0) * 30ms) }
html body .fp-app .kl-stagger { animation: fp-rise 240ms var(--fp-ease) backwards; animation-delay: calc(min(var(--i, 0), 8) * 25ms) }
html body .kl-zoom-in { animation: fp-pop-in var(--fp-t-pop) var(--fp-ease) both }
html body :is(.kl-in-1, .kl-in-2, .kl-in-3, .kl-in-4, .kl-in-5) { animation: fp-rise 420ms var(--fp-ease) backwards }
html body .kl-in-2 { animation-delay: 50ms } html body .kl-in-3 { animation-delay: 100ms } html body .kl-in-4 { animation-delay: 150ms } html body .kl-in-5 { animation-delay: 200ms }
html body .kl-in-panel { animation: fp-rise 520ms var(--fp-ease) 100ms backwards }
html body :is(.kc-ph-in, .kc-ph-pop, .kc-ph-variant) { animation: fp-dialog-in var(--fp-t-dialog) var(--fp-ease) both }

/* The left menu folds as one slide (it used to swap to the folded layout at once and centre the icons in the still
   wide panel, so they jumped right and slid back): the icons, the toggle and the avatar keep their places, the
   labels and the chat list fade out while the panel narrows and fade in after it widens. */
html body .fp-app.fp-app .fp-side.fp-side { overflow: hidden; transition: width var(--fp-t-panel) var(--fp-ease-panel) }
html body .fp-app .fp-side-head { position: relative; transition: padding var(--fp-t-panel) var(--fp-ease-panel) }
html body .fp-app .fp-side-head > a { position: absolute; left: 16px; top: 50%; translate: 0 -50% }
html body .fp-app .fp-side-head > .fp-side-label { flex: 1 }
html body .fp-app .fp-side-item { overflow: hidden; white-space: nowrap }
html body .fp-app .fp-side :is(.fp-side-label, .fp-side-chats, .fp-side-search) { transition: opacity 180ms var(--fp-ease) 90ms, visibility 0s }
html body .fp-app .fp-side.is-folded :is(.fp-side-label, .fp-side-chats) { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 120ms var(--fp-ease-in), visibility 0s 120ms }
html body .fp-app .fp-side .fp-side-chats { min-width: 236px }
html body .fp-app.fp-app .fp-side.is-folded .fp-side-item { justify-content: flex-start; padding-left: 14px !important; transition: padding var(--fp-t-panel) var(--fp-ease-panel), background-color var(--fp-t-hover) var(--fp-ease) }
html body .fp-app.fp-app .fp-side:not(.is-folded) .fp-side-item { transition: padding var(--fp-t-panel) var(--fp-ease-panel), background-color var(--fp-t-hover) var(--fp-ease) }
html body .fp-app .fp-side.is-folded .fp-side-head { padding-left: 0; padding-right: 18px }
html body .fp-app .fp-side.is-folded .fp-side-search-ic { margin: 2px 0 4px }
html body .fp-app .fp-side.is-folded > div > div.overflow-y-auto { overflow-y: hidden }
html body .fp-app.fp-app .fp-side.is-folded .fp-side-foot { display: block; padding: 16px 20px !important }

html body .fp-app .fp-side.is-folded .fp-side-head > a { visibility: hidden; transition: visibility 0s 120ms }
html body .fp-app .fp-side-btn { position: relative; z-index: 1; flex-shrink: 0 }
html body .fp-app .fp-side-search { animation: fp-fade-in 180ms var(--fp-ease) 90ms both }

/* Skeletons: a soft light passing over, moved with transform. */
.fp-skel-line { position: relative; overflow: hidden; background: var(--fp-ou-skel); animation: none }
.fp-skel-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--fp-ou-skel2), transparent); transform: translateX(-100%); animation: fp-sweep 1.4s var(--fp-ease-panel) infinite }
@keyframes fp-sweep { to { transform: translateX(100%) } }

/* «Reduce motion»: nothing slides, scales or loops; state changes are near-instant fades. */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important }
  :root { --fp-t-press: 1ms; --fp-t-hover: 1ms; --fp-t-out: 1ms; --fp-t-pop: 1ms; --fp-t-dialog: 1ms; --fp-t-panel: 1ms }
  html body :is(.nc-popover, .nc-dialog, .nc-scrim, .kc-ob-card, .kc-ob-scrim, .kc-ob-step, .kc-ob-step > *, .nc-sheet-left, .nc-sheet-right)[class] { animation-duration: 1ms !important; animation-delay: 0ms !important }
  html body .fp-app :is(.kc-pick, .fp-lift, .fp-ext-row):hover { transform: none }
}

/* ── «Рисую картинку…» in the chat (keks, 2026-11-10: the placeholder was empty or blown up) ──
 * The answer column shrinks to its content (align-self: flex-start above), so the placeholder's min(100%, 360px)
 * resolved against an unsized parent: 0 wide when the answer had nothing else, or as wide as the «Freepay AI» line.
 * A fixed width gives the answer its size; max-width keeps it inside a phone screen. */
html body .fp-app .fp-thread .kc-ai-msg .kl-img-skel { width: 360px; max-width: 100%; flex: none }

/* ── Library, picked pictures (keks, 2026-11-10: the 3px ring with a white gap looked crude and doubled) ──
 * The picture stays full size; one thin dark frame inside the tile and the tick mark it as picked. */
html body .fp-app .fp-lib-sel { box-shadow:inset 0 0 0 2px #18181b}
html.fp-dark body .fp-app .fp-lib-sel { box-shadow:inset 0 0 0 2px #f4f4f5}

/* ── Full check of the site and the cabinet (2026-11-10) ── */
/* Dashboard in the dark theme: the cards kept the light theme's #ececee frame and the empty balance line, so every
 * block was outlined in near-white. */
html.fp-dark body .fp-app .fp-main[data-page="overview"] .kc-box { border-color: #2a2a2d !important }
html.fp-dark body .fp-app .fp-main[data-page="overview"] .kc-box:hover { border-color: #3a3a3e !important }
html.fp-dark body .fp-app .fp-main[data-page="overview"] .kc-viz-hero .kc-spark[data-empty] { background: #2a2a2d !important }
/* The three tiles under «Активность по часам» stayed white: the light rule above them is written with a stronger selector. */
html.fp-dark body .fp-app.fp-app.fp-app .fp-main.fp-main.fp-main[data-page="overview"] .kc-heat-stat.kc-heat-stat { background: #1a1a1c !important; border-color: #2a2a2d !important }
/* «Объединение»: the three steps were light grey plates with the dark theme's light text (unreadable); on a phone the
 * «Объединить» button broke into two lines. */
html.fp-dark body .fp-app.fp-app.fp-app .fp-main.fp-main.fp-main .fp-merge-steps li { background: #232327 !important; border-color: #2a2a2d }
html body .fp-app .fp-merge button[type="submit"] { white-space: nowrap; flex: none }
/* The sign-in page is always white, but the flower took the dark theme's light colour and almost vanished. */
html.fp-dark .fp-login .fp-flowerbot { color: #0d0d0d }
/* The phone menu is a sheet outside .fp-app: its chat search got the generic dialog input (a white box inside the
 * grey field). Same field as in the desktop menu. */
body:has(.fp-app) [role="dialog"] .fp-side-search > :is(label, button) { height: 38px !important; padding: 0 10px !important; border-radius: 10px !important; background: #e8e8ea !important; box-shadow:none !important; border: 0 !important }
html.fp-dark body:has(.fp-app) [role="dialog"] .fp-side-search > :is(label, button) { background: #262626 !important }
body:has(.fp-app) [role="dialog"] .fp-side-search input { -webkit-appearance: none !important; appearance: none !important; background: transparent !important; border: 0 !important; box-shadow:none !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; height: 100% !important; color: #0d0d0d !important; outline: none !important }
html.fp-dark body:has(.fp-app) [role="dialog"] .fp-side-search input { color: #ececec !important }
body:has(.fp-app) [role="dialog"] .fp-side-search input::placeholder { color: #8f8f8f !important }

/* Oleksandr, 2026-12-01 «убери лимит, добавь лучше по центру Продолжить сессию из Claude Code, Codex или DeepSeek»:
 * the tray under the «Новый тред» composer holds only the session import, centred; on a phone the words stay and wrap. */
.fp-app .fp-home-tray:has(> .fp-home-import) { justify-content: center }
.fp-app .fp-home-chip.fp-home-import { color: #52525b; max-width: 100% }
.fp-app .fp-home-chip.fp-home-import > span { overflow: hidden; text-overflow: ellipsis }
@media (max-width: 639px) { .fp-app .fp-home-chip.fp-home-import { height: auto; min-height: 32px; padding: 6px 10px; white-space: normal; text-align: center; font-size: 12.5px !important } .fp-app .fp-home-chip.fp-home-import > span { display: inline } }
/* jellee.chat (keks, 2026-12-01 «тут сделай фото/видео/код», then «1» of 20 looks): Фото, Видео, Код as bare icons in
 * the field next to «+» (Composer.tsx JelleeModes); «Код» while on sits on a soft grey. No shadows (2026-11-09). */
html body .fp-app .jl-bar-modes { display: flex; align-items: center; gap: 2px; margin-left: 2px }
html body .fp-app .jl-bar-modes > button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #71717a; transition: background-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease) }
html body .fp-app .jl-bar-modes > button svg { width: 17px; height: 17px }
html body .fp-app .jl-bar-modes > button:hover { background: rgb(0 0 0 / 0.05); color: #09090b }
html body .fp-app .jl-bar-modes > button.is-on { background: rgb(0 0 0 / 0.07); color: #09090b }
html.fp-dark body .fp-app .jl-bar-modes > button { color: #a1a1aa }
html.fp-dark body .fp-app .jl-bar-modes > button:hover, html.fp-dark body .fp-app .jl-bar-modes > button.is-on { background: rgb(255 255 255 / 0.08); color: #fafafa }
/* jellee.chat on a phone (keks, 2026-12-01 «вниз опусти окно и сделай по высоте больше»): a taller field, low on the screen. */
@media (max-width: 639px) { html body .fp-app.fp-app .jl-site .fp-composer .kl-c-input textarea { min-height: 88px !important } }
/* jellee.chat on a phone: no Фото/Видео/Код and no tray under the field («оно никуда не годится на мобилке»). */
@media (max-width: 639px) { html body .fp-app .jl-bar-modes, html body .fp-app .jl-site .fp-home-tray { display: none } }

/* ── API: the key and the two Base URLs as cards that stand out (Oleksandr, 2026-11-17: «Сделай более выделяющимися
 * блоки с адресом апи ключом и тд»). code/src/console/pages/Connect.tsx KeyStrip. Filled cards on the white page, the
 * key one inverted like a picked chip; each value sits in a field of its own with its buttons. No shadows (2026-11-09). ── */
html body .fp-app .fp-keylist .fp-keycard { --kc-bg: #f4f4f5; --kc-fg: #09090b; --kc-sub: #52525b; --kc-ico: #fff; --kc-ico-fg: #18181b; --kc-field: #fff; --kc-line: #e4e4e7; --kc-btn: #71717a; --kc-btn-hover: #f4f4f5; background: var(--kc-bg) !important; border: 0 !important; box-shadow:none !important; color: var(--kc-fg) }
html body .fp-app .fp-keylist .fp-keycard.is-key { --kc-bg: #18181b; --kc-fg: #fafafa; --kc-sub: #a1a1aa; --kc-ico: rgb(255 255 255 / .1); --kc-ico-fg: #fff; --kc-field: rgb(255 255 255 / .07); --kc-line: rgb(255 255 255 / .1); --kc-btn: #d4d4d8; --kc-btn-hover: rgb(255 255 255 / .12) }
html.fp-dark body .fp-app .fp-keylist .fp-keycard { --kc-bg: #18181a; --kc-fg: #f4f4f5; --kc-sub: #a1a1aa; --kc-ico: #27272a; --kc-ico-fg: #e4e4e7; --kc-field: #0b0b0c; --kc-line: #2a2a2e; --kc-btn: #a1a1aa; --kc-btn-hover: #27272a }
html.fp-dark body .fp-app .fp-keylist .fp-keycard.is-key { --kc-bg: #f4f4f5; --kc-fg: #09090b; --kc-sub: #52525b; --kc-ico: #fff; --kc-ico-fg: #18181b; --kc-field: #fff; --kc-line: #e4e4e7; --kc-btn: #71717a; --kc-btn-hover: #f4f4f5 }
html body .fp-app .fp-keylist .fp-keycard-label { color: var(--kc-sub) }
html body .fp-app .fp-keylist .fp-keycard-ico { background: var(--kc-ico); color: var(--kc-ico-fg) }
html body .fp-app .fp-keylist .fp-keycard-field { min-height: 44px; background: var(--kc-field); box-shadow:inset 0 0 0 1px var(--kc-line); color: var(--kc-fg) }
html body .fp-app.fp-app .fp-main .fp-keylist.fp-keylist .fp-keycard-field.fp-keycard-field.fp-keycard-field button { width: 34px; height: 34px; border: 0 !important; border-radius: 9px !important; background: transparent !important; box-shadow:none !important; color: var(--kc-btn) !important; transition: background-color 150ms ease, color 150ms ease }
html body .fp-app.fp-app .fp-main .fp-keylist.fp-keylist .fp-keycard-field.fp-keycard-field.fp-keycard-field button:hover { background: var(--kc-btn-hover) !important; color: var(--kc-fg) !important }
html body .fp-app .fp-keylist .fp-keycard-field button:focus-visible { outline: 2px solid var(--kc-fg); outline-offset: -2px }

/* Account menu (Oleksandr, 2026-11-17: «сократи юзер меню - хлам перенеси в настройки», «дизайн поменяй окна и
 * иконку»; Console.tsx AccountMenu, class fp-am on freepay.space only). A flat white card with a hairline and no shadow:
 * a soft balance card (the flower token and the figure, a full-width black «Пополнить» under them), then six rows: Дашборд,
 * Настройки, Помощь, Язык, a theme switch, Выйти. The rest lives in Settings (Settings.tsx BRAND_LINKS). */
html body:has(.fp-app) .fp-am.fp-am.fp-am[role="menu"] { padding: 6px; border-radius: 18px; background: #fff !important; border: 1px solid #e7e7e9 !important; box-shadow:none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important }
html body:has(.fp-app) .fp-am.fp-am-sub.fp-am-sub[role="menu"] { width: auto; min-width: 176px; border-radius: 14px }
html.fp-dark body:has(.fp-app) .fp-am.fp-am.fp-am[role="menu"] { background: #1b1b1e !important; border-color: #2c2c31 !important }
.fp-am .fp-am-head { padding: 8px 8px 10px }
.fp-am .fp-am-head > span:first-child { border-radius: 11px !important; box-shadow:none !important; --tw-ring-shadow: 0 0 #0000 }
.fp-am .fp-am-head + [role="separator"] { display: none }
.fp-am [role="separator"] { margin: 6px -6px; background: #efeff1 }
html.fp-dark .fp-am [role="separator"] { background: #2a2a2f }
.fp-am .fp-am-bal { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 11px; margin: 0 0 6px; padding: 12px; border-radius: 13px; background: #f4f4f5 }
html.fp-dark .fp-am .fp-am-bal { background: #242428 }
.fp-am .fp-am-tok { width: 30px; height: 30px; flex: none; color: #0d0d0d }
html.fp-dark .fp-am .fp-am-tok { color: #f4f4f5 }
.fp-am .fp-am-bal-n { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; line-height: 1.1 }
.fp-am .fp-am-bal-n > span { font-size: 11.5px; color: #71717a }
.fp-am .fp-am-bal-n > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums }
.fp-am .fp-am-bal-n > b > i { font-style: normal; font-size: 12.5px; font-weight: 450; letter-spacing: 0; color: #71717a }
html.fp-dark .fp-am .fp-am-bal-n > span, html.fp-dark .fp-am .fp-am-bal-n > b > i { color: #a1a1aa }
.fp-am .fp-am-tu.fp-am-tu { grid-column: 1 / -1; justify-content: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; background: #0d0d0d; color: #fff; font-size: 12.5px; font-weight: 550; white-space: nowrap; transition: background-color var(--fp-t-hover) var(--fp-ease), transform var(--fp-t-press) var(--fp-ease) }
.fp-am .fp-am-tu.fp-am-tu svg { width: 12px; height: 12px; color: currentColor }
.fp-am .fp-am-tu.fp-am-tu[data-highlighted] { background: #2e2e33; color: #fff }
.fp-am .fp-am-tu.fp-am-tu:active { transform: scale(.97) }
html.fp-dark .fp-am .fp-am-tu.fp-am-tu { background: #f4f4f5; color: #0d0d0d }
html.fp-dark .fp-am .fp-am-tu.fp-am-tu[data-highlighted] { background: #fff; color: #0d0d0d }
.fp-am [role^="menuitem"]:not(.fp-am-tu) { height: 36px; padding: 0 10px; gap: 10px; border-radius: 10px; font-size: 14px; transition: background-color var(--fp-t-hover) var(--fp-ease) }
.fp-am [role^="menuitem"]:not(.fp-am-tu) svg { width: 17px; height: 17px }
.fp-am [role^="menuitem"]:not(.fp-am-tu)[data-highlighted], .fp-am [role^="menuitem"][data-state="open"] { background: rgb(0 0 0 / 0.045) }
html.fp-dark .fp-am [role^="menuitem"]:not(.fp-am-tu)[data-highlighted], html.fp-dark .fp-am [role^="menuitem"][data-state="open"] { background: rgb(255 255 255 / 0.06) }
.fp-am .fp-am-sw { position: relative; margin-left: auto; width: 30px; height: 18px; flex: none; border-radius: 999px; background: #dcdce0; transition: background-color var(--fp-t-hover) var(--fp-ease) }
.fp-am .fp-am-sw > i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px; background: #fff; transition: transform var(--fp-t-pop) var(--fp-ease) }
.fp-am .fp-am-sw.on { background: #f4f4f5 }
.fp-am .fp-am-sw.on > i { transform: translateX(12px); background: #1b1b1e }
@media (max-width: 767px) { .fp-am [role^="menuitem"]:not(.fp-am-tu) { height: 44px; font-size: 15px } }
/* The balance pill's token (FpToken): darker than the old coins, so the flower reads. */
html body .fp-app .kc-topbar .fp-balance svg.fp-balance-ic.fp-balance-ic { width: 16px; height: 16px; color: #18181b }
html.fp-dark body .fp-app .kc-topbar .fp-balance svg.fp-balance-ic.fp-balance-ic { color: #e4e4e7 }

/* ── Code blocks as a code window (Oleksandr, 2026-11-17: «тут формат как у кода должен быть дизайн»): a dark panel
 * with a header bar (language + «Копировать»), mono text and syntax colours, in both themes. console/ui.tsx JlCode
 * with .fp-code; jellee has its own .jl-code colours in its cabinet.add.css. No drop shadows (2026-11-09). ── */
html body .fp-app .fp-code.fp-code { background: #111113 !important; color: #e6e6ea; border: 0 !important; box-shadow:none !important; border-radius: 18px !important }
html.fp-dark body .fp-app .fp-code.fp-code { background: #0c0c0e !important; box-shadow:inset 0 0 0 1px #232327 !important}
html body .fp-app .fp-code .jl-code-head { color: #8e8e98; background: rgb(255 255 255 / .035); border-bottom: 1px solid rgb(255 255 255 / .07) }
html body .fp-app .fp-code .jl-code-head::before { content: ""; width: 44px; height: 10px; margin-right: 6px; background: radial-gradient(circle at 5px 5px, #3a3a40 4.5px, transparent 5px), radial-gradient(circle at 22px 5px, #3a3a40 4.5px, transparent 5px), radial-gradient(circle at 39px 5px, #3a3a40 4.5px, transparent 5px) }
html body .fp-app.fp-app .fp-code button.jl-code-copy { height: 30px; border: 0 !important; border-radius: 999px !important; background: rgb(255 255 255 / .09) !important; box-shadow:none !important; color: #f2f2f5 !important; transition: background-color 150ms ease, color 150ms ease }
html body .fp-app.fp-app .fp-code button.jl-code-copy:hover { background: rgb(255 255 255 / .16) !important }
html body .fp-app.fp-app .fp-code button.jl-code-copy.is-done { background: #f2f2f5 !important; color: #0d0d0d !important }
html body .fp-app .fp-code .jl-code-body { color: #e6e6ea !important; background: transparent !important; font-family: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace !important; font-size: 13px !important; line-height: 1.75 !important; letter-spacing: 0 !important; scrollbar-color: rgb(255 255 255 / .18) transparent }
html body .fp-app .fp-code .jl-t-c { color: #6f6f7a; font-style: italic }
html body .fp-app .fp-code .jl-t-s { color: #a8e6a1 }
html body .fp-app .fp-code .jl-t-k { color: #ff9b6b }
html body .fp-app .fp-code .jl-t-f { color: #8fb8ff }
html body .fp-app .fp-code .jl-t-v { color: #d2a8ff }
html body .fp-app .fp-code .jl-t-n { color: #ffd479 }

/* ── Balance popover and «Помощь Freepay» (Oleksandr, 2026-11-17 «переделать дизайн», «тут тоже меняй»; Console.tsx
 * BalanceMenu .fp-bp, SupportChat.tsx .fp-help). Flat everywhere: no shadows. */
html body:has(.fp-app) .nc-popover.fp-bp.fp-bp.fp-bp.fp-bp { overflow: hidden; padding: 0 !important; border-radius: 18px !important; background: #fff !important; border: 1px solid #e7e7e9 !important; box-shadow:none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; color: #0d0d0d }
html.fp-dark body:has(.fp-app) .nc-popover.fp-bp.fp-bp.fp-bp.fp-bp { background: #1b1b1e !important; border-color: #2c2c31 !important; color: #f4f4f5 }
.fp-bp .fp-bp-top { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px }
.fp-bp .fp-bp-coin { width: 34px; height: 34px; flex: none; color: #0d0d0d }
.fp-bp .fp-bp-fig { display: flex; min-width: 0; flex-direction: column; gap: 4px }
.fp-bp .fp-bp-cap { font-size: 12px; color: #71717a }
.fp-bp .fp-bp-fig b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 24px; font-weight: 650; line-height: 1.05; letter-spacing: -.025em }
.fp-bp .fp-bp-fig b i { font-style: normal; font-size: 13px; font-weight: 450; letter-spacing: 0; color: #71717a }
.fp-bp .fp-bp-lim { padding: 12px 16px; border-top: 1px solid #efeff1 }
.fp-bp .fp-bp-note { margin: 0; font-size: 11.5px; line-height: 1.45; color: #71717a }
.fp-bp .fp-bp-lim > * + .fp-bp-note { margin-top: 10px }
.fp-bp .fp-bp-act { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border-top: 1px solid #efeff1 }
.fp-bp :is(.fp-bp-tu, .fp-bp-dash) { display: inline-flex; height: 36px; align-items: center; justify-content: center; gap: 6px; border-radius: 11px; font-size: 13px; font-weight: 550; white-space: nowrap; transition: background-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease), transform var(--fp-t-press) var(--fp-ease) }
.fp-bp :is(.fp-bp-tu, .fp-bp-dash) svg { width: 13px; height: 13px; flex: none }
.fp-bp .fp-bp-tu { background: #0d0d0d; color: #fff }
.fp-bp .fp-bp-tu:hover { background: #27272a }
.fp-bp .fp-bp-dash { background: #f4f4f5; color: #3f3f46; font-weight: 500 }
.fp-bp .fp-bp-dash:hover { background: #ebebed; color: #0d0d0d }
.fp-bp :is(.fp-bp-tu, .fp-bp-dash):active { transform: scale(.97) }
html.fp-dark .fp-bp .fp-bp-coin { color: #f4f4f5 }
html.fp-dark .fp-bp :is(.fp-bp-cap, .fp-bp-note, .fp-bp-fig b i) { color: #a1a1aa }
html.fp-dark .fp-bp :is(.fp-bp-lim, .fp-bp-act) { border-color: #2a2a2f }
html.fp-dark .fp-bp .fp-bp-tu { background: #f4f4f5; color: #0d0d0d }
html.fp-dark .fp-bp .fp-bp-tu:hover { background: #fff }
html.fp-dark .fp-bp .fp-bp-dash { background: #26262a; color: #d4d4d8 }
html.fp-dark .fp-bp .fp-bp-dash:hover { background: #2e2e33; color: #fff }

/* «Помощь Freepay», shared by the three variants. */
html body .fp-help.fp-help { border-radius: 20px; border-color: #e7e7e9; box-shadow:none; background: #fff }
html.fp-dark body .fp-help.fp-help { border-color: #2c2c31; background: #1b1b1e }
.fp-help .fp-help-head { display: flex; flex-shrink: 0; align-items: center; gap: 11px; height: 62px; padding: 0 12px 0 16px; border-bottom: 1px solid #efeff1 }
.fp-help .fp-help-mark { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 10px; background: #0d0d0d; color: #fff }
.fp-help .fp-help-mark svg { width: 20px; height: 20px }
.fp-help .fp-help-title { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em }
.fp-help .fp-help-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #71717a }
.fp-help .fp-help-x { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 11px; color: #52525b; transition: background-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease), transform var(--fp-t-press) var(--fp-ease) }
.fp-help .fp-help-x:hover { background: rgb(0 0 0 / .05); color: #0d0d0d }
.fp-help .fp-help-x:active { transform: scale(.94) }
.fp-help .fp-help-x svg { width: 17px; height: 17px }
.fp-help .fp-help-empty { display: flex; flex-direction: column; gap: 12px; padding-top: 6px }
.fp-help .fp-help-hi { font-size: 22px; font-weight: 650; letter-spacing: -.025em; line-height: 1.15 }
.fp-help .fp-help-lead { font-size: 14px; line-height: 1.55; color: #52525b }
.fp-help .fp-help-chips { display: flex; flex-direction: column; margin-top: 4px }
.fp-help .fp-help-chip { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 13.5px; color: #18181b; transition: background-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease), transform var(--fp-t-press) var(--fp-ease) }
.fp-help .fp-help-chip > span { min-width: 0; flex: 1 }
.fp-help .fp-help-chip svg { width: 15px; height: 15px; flex: none; color: #a1a1aa; transition: transform var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease) }
.fp-help .fp-help-chip:hover svg { transform: translateX(2px); color: #0d0d0d }
.fp-help .fp-help-hint { font-size: 12px; color: #a1a1aa }
.fp-help .fp-help-av { display: block; width: 18px; height: 18px; color: #0d0d0d }
.fp-help .fp-help-foot { border-top: 0; padding: 4px 12px 12px }
.fp-help .fp-help-box.fp-help-box { border-radius: 16px; background: #fff; box-shadow:none; border: 1px solid #e4e4e7; --tw-ring-shadow: 0 0 #0000; transition: border-color var(--fp-t-hover) var(--fp-ease) }
.fp-help .fp-help-box.fp-help-box:focus-within { border-color: #a1a1aa }
.fp-help .fp-help-box textarea { background: transparent !important }
html body .fp-app .fp-help.fp-help .fp-help-box button.kl-send.kl-send { background: #0d0d0d !important; color: #fff !important; box-shadow:none !important; transition: background-color var(--fp-t-hover) var(--fp-ease), transform var(--fp-t-press) var(--fp-ease) }
html body .fp-app .fp-help.fp-help .fp-help-box button.kl-send.kl-send:disabled { background: #e4e4e7 !important; color: #a1a1aa !important; opacity: 1 }
html.fp-dark .fp-help :is(.fp-help-head) { border-color: #2a2a2f }
html.fp-dark .fp-help .fp-help-mark { background: #f4f4f5; color: #0d0d0d }
html.fp-dark .fp-help :is(.fp-help-sub, .fp-help-x) { color: #a1a1aa }
html.fp-dark .fp-help .fp-help-x:hover { background: rgb(255 255 255 / .06); color: #fff }
html.fp-dark .fp-help .fp-help-lead { color: #c4c4cc }
html.fp-dark .fp-help .fp-help-chip { color: #e4e4e7 }
html.fp-dark .fp-help .fp-help-chip:hover svg, html.fp-dark .fp-help .fp-help-av { color: #f4f4f5 }
html.fp-dark .fp-help .fp-help-hint { color: #71717a }
html.fp-dark .fp-help .fp-help-box.fp-help-box { background: #202024; border-color: #313136 }
html.fp-dark body .fp-app .fp-help.fp-help .fp-help-box button.kl-send.kl-send { background: #f4f4f5 !important; color: #0d0d0d !important }
html.fp-dark body .fp-app .fp-help.fp-help .fp-help-box button.kl-send.kl-send:disabled { background: #2c2c31 !important; color: #71717a !important }

/* «Пастель» (Oleksandr picked variant 2 of three, 2026-11-17; /mnt/project-files/balance-help-redesign/variant-2.png):
 * the landing's plan-header gradient behind the chip, the figure and the help's head; cards for the questions.
 * html:root keeps the weight these rules were tuned with. */
html:root body .fp-app .kc-topbar .fp-hcap { background: linear-gradient(120deg, #c9d7f3, #eef0f6 55%, #f6e9ee) }
html:root.fp-dark body .fp-app .kc-topbar .fp-hcap { background: linear-gradient(120deg, #26324d, #232328 55%, #3b2a34) }
html:root body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button { color: #0d0d0d !important }
html:root body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button:hover { background: rgb(255 255 255 / .45) !important }
html:root body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button + button::before { background: rgb(0 0 0 / .12) }
html:root .fp-bp .fp-bp-top { flex-direction: column; align-items: flex-start; gap: 18px; margin: 6px 6px 0; padding: 16px; border-radius: 13px; background: linear-gradient(130deg, #c9d7f3, #eef0f6 55%, #f6e9ee) }
html:root .fp-bp .fp-bp-coin { width: 30px; height: 30px }
html:root .fp-bp .fp-bp-fig b { font-size: 30px }
html:root .fp-bp .fp-bp-cap { color: #52525b }
html:root .fp-bp .fp-bp-lim { border-top: 0; padding: 14px 16px 6px }
html:root .fp-bp .fp-bp-act { grid-template-columns: 1fr; gap: 2px; padding: 8px 8px 8px; border-top: 0 }
html:root .fp-bp .fp-bp-tu { height: 40px; border-radius: 999px }
html:root .fp-bp .fp-bp-dash { height: 36px; background: transparent }
html:root .fp-bp .fp-bp-dash:hover { background: #f4f4f5 }
html:root.fp-dark .fp-bp .fp-bp-top { background: linear-gradient(130deg, #26324d, #232328 55%, #3b2a34) }
html:root.fp-dark .fp-bp .fp-bp-cap { color: #c4c4cc }
html:root.fp-dark .fp-bp .fp-bp-dash:hover { background: #26262a }
html:root .fp-help .fp-help-head { height: auto; flex-wrap: wrap; align-items: flex-start; gap: 14px; margin: 8px 8px 0; padding: 16px 10px 18px 16px; border: 0; border-radius: 15px; background: linear-gradient(130deg, #c9d7f3, #eef0f6 55%, #f6e9ee) }
html:root .fp-help .fp-help-mark { width: 40px; height: 40px; border-radius: 0; background: none; color: #0d0d0d }
html:root .fp-help .fp-help-mark svg { width: 40px; height: 40px }
html:root .fp-help .fp-help-head > div { order: 3; flex-basis: 100% }
html:root .fp-help .fp-help-x { order: 2; margin-left: auto; background: rgb(255 255 255 / .65) }
html:root .fp-help .fp-help-x:hover { background: #fff }
html:root .fp-help .fp-help-title { font-size: 19px; font-weight: 650; letter-spacing: -.02em }
html:root .fp-help .fp-help-sub { margin-top: 3px; color: #52525b; font-size: 12.5px }
html:root .fp-help .fp-help-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
html:root .fp-help .fp-help-chip { min-height: 66px; align-items: flex-start; padding: 12px 13px; border-radius: 14px; background: #f4f4f5; font-size: 13px; font-weight: 500; line-height: 1.35 }
html:root .fp-help .fp-help-chip:hover { background: #ebebed }
html:root .fp-help .fp-help-chip:active { transform: scale(.98) }
html:root .fp-help .fp-help-box.fp-help-box { border-color: transparent; border-radius: 20px; background: #f4f4f5 }
html:root .fp-help .fp-help-box.fp-help-box:focus-within { border-color: #d4d4d8 }
html:root.fp-dark .fp-help .fp-help-head { background: linear-gradient(130deg, #26324d, #232328 55%, #3b2a34) }
html:root.fp-dark .fp-help .fp-help-mark { color: #f4f4f5 }
html:root.fp-dark .fp-help .fp-help-sub { color: #c4c4cc }
html:root.fp-dark .fp-help .fp-help-x { background: rgb(255 255 255 / .08); color: #e4e4e7 }
html:root.fp-dark .fp-help .fp-help-chip { background: #26262a }
html:root.fp-dark .fp-help .fp-help-chip:hover { background: #2e2e33 }
html:root.fp-dark .fp-help .fp-help-box.fp-help-box { background: #26262a }

html:root.fp-dark body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button { color: #f4f4f5 !important }
html:root.fp-dark body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button:is(:hover, [data-state=open], [data-on]) { background: rgb(255 255 255 / .08) !important; box-shadow:none !important}
html:root.fp-dark body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button + button::before { background: rgb(255 255 255 / .14) }

/* ---------- Dashboard and «История запросов», «Пастель» (Oleksandr picked variant 1 of three, 2026-11-17: «1 шикарный»;
 * /mnt/project-files/dashboard-redesign/). FpDash.tsx: the plan-header gradient behind the balance, counters and the
 * history head, white cards. Flat: no shadows. Motion on the --fp-t tokens. */
.fpd, .fph { --fd-ink: #0d0d0d; --fd-mut: #71717a; --fd-line: #ececee; --fd-soft: #f4f4f5; --fd-card: #fff; --fd-grad: linear-gradient(120deg, #c9d7f3, #eef0f6 55%, #f6e9ee); --fd-dot: rgb(0 0 0 / .13); display: flex; min-width: 0; flex-direction: column; gap: 14px; color: var(--fd-ink) }
html.fp-dark :is(.fpd, .fph) { --fd-ink: #f4f4f5; --fd-mut: #a1a1aa; --fd-line: #2a2a2f; --fd-soft: #222226; --fd-card: #18181b; --fd-grad: linear-gradient(120deg, #26324d, #232328 55%, #3b2a34); --fd-dot: rgb(255 255 255 / .13) }
.fpd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px }
html body .fp-app .fp-main .kl-page .fpd-head h2 { margin: 0; color: var(--fd-ink); font-size: 15px; font-weight: 500 !important; letter-spacing: -.01em }
.fph-title b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -.02em }
html body .fp-app :is(.fpd, .fph) .fp-seg-tab.is-on { box-shadow:none}
.fpd-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 12px }
.fpd-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.fpd-row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px }
.fpd-panel { min-width: 0; padding: 20px 22px; border-radius: 20px }
.fpd-ph { display: flex; min-height: 32px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px }
.fpd-ph h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em }
.fpd-hint { font-size: 12.5px; color: var(--fd-mut) }
.fpd-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--fd-mut); transition: color var(--fp-t-hover) var(--fp-ease) }
html body .fp-app .fpd a.fpd-more:hover { color: var(--fd-ink) }

.fpd-bal { position: relative; isolation: isolate; display: flex; min-width: 0; flex-direction: column; overflow: hidden; padding: 20px 22px; border-radius: 20px }
.fpd-bal-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500 }
.fpd-bal-coin { width: 20px; height: 20px; flex: none }
.fpd-bal-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: 26px; font-size: 52px; font-weight: 650; line-height: 1; letter-spacing: -.045em }
.fpd-bal-n small { font-size: 14px; font-weight: 450; letter-spacing: 0; color: var(--fd-mut) }
.fpd-bal-sub { margin: 10px 0 0; font-size: 13px; color: var(--fd-mut) }
.fpd-bal-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px }
.fpd-btn { display: inline-flex; height: 34px; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border-radius: 999px; background: var(--fd-soft); color: var(--fd-ink); font-size: 13px; font-weight: 550; white-space: nowrap; transition: background-color var(--fp-t-hover) var(--fp-ease), opacity var(--fp-t-hover) var(--fp-ease), transform var(--fp-t-press) var(--fp-ease) }
.fpd-btn:hover:not(:disabled) { background: color-mix(in oklab, var(--fd-soft), var(--fd-ink) 8%) }
.fpd-btn:active:not(:disabled) { transform: scale(.97) }
.fpd-btn:disabled { opacity: .45; cursor: default }
html body .fp-app :is(.fpd, .fph) a.fpd-btn:hover { color: var(--fd-ink) }
html body .fp-app :is(.fpd, .fph) .fpd-btn.is-main, html body .fp-app :is(.fpd, .fph) .fpd-btn.is-main:hover { background: var(--fd-ink); color: var(--fd-card) }
.fpd-btn.is-main:hover { opacity: .88 }

.fpd-stat { display: flex; min-width: 0; flex-direction: column; padding: 16px 18px; border-radius: 16px }
.fpd-stat-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--fd-mut) }
.fpd-stat-ic { display: grid; width: 26px; height: 26px; flex: none; place-items: center; border-radius: 8px; color: var(--fd-ink) }
.fpd-stat-n { display: flex; align-items: baseline; gap: 5px; margin: 12px 0 8px; font-size: 28px; font-weight: 650; line-height: 1; letter-spacing: -.03em }
.fpd-stat-n small { font-size: 12.5px; font-weight: 450; letter-spacing: 0; color: var(--fd-mut) }
.fpd-stat-d { margin-top: 6px; font-size: 12px; line-height: 1.35; color: var(--fd-mut) }
.fpd-spark { display: block; width: 100%; height: 24px; overflow: visible }
.fpd-spark polyline { fill: none; stroke: var(--fd-acc, #3e7bfa); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke }
.fpd-spark-fill { fill: var(--fd-acc, #3e7bfa); opacity: .12 }
.fpd-spark.is-empty path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .22; vector-effect: non-scaling-stroke }

.fpd-ghost { position: relative; height: 220px }
.fpd-ghost-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 6px }
.fpd-ghost-bars b { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--fd-ghost, var(--fd-soft)) }
.fpd-ghost-note { position: absolute; left: 50%; top: 46%; padding: 7px 14px; border: 1px solid var(--fd-line); border-radius: 999px; background: var(--fd-card); font-size: 13px; font-weight: 500; white-space: nowrap; transform: translate(-50%, -50%) }
.fpd-ring { position: relative; display: grid; height: 220px; place-items: center }
.fpd-ring svg { height: 150px }
.fpd-ring circle { fill: none; stroke: var(--fd-soft); stroke-width: 18 }
.fpd-ring span { position: absolute; font-size: 13px; color: var(--fd-mut) }
.fpd-heat-empty { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px }
.fpd-heat-empty b { height: 14px; border-radius: 4px; background: var(--fd-soft) }

.fpd-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -4px 0 10px; font-size: 12.5px; color: var(--fd-mut) }
.fpd-legend span { display: inline-flex; align-items: center; gap: 6px }
.fpd-legend i { width: 9px; height: 9px; flex: none; border-radius: 3px }
.fpd-donut > .flex { flex-direction: column; align-items: stretch }
.fpd-donut > .flex > div:first-child { width: 150px; margin: 0 auto 8px }


.fpd-start { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 20px 28px; padding: 22px 24px; border-radius: 20px }
.fpd-start-art:empty { display: none }
.fpd-start-text h3 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.02em }
.fpd-start-text p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--fd-mut) }
.fpd-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.fpd-way { display: flex; min-width: 0; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; transition: background-color var(--fp-t-hover) var(--fp-ease), transform var(--fp-t-press) var(--fp-ease) }
.fpd-way:active { transform: scale(.98) }
html body .fp-app :is(.fpd, .fph) a.fpd-way:hover { color: var(--fd-ink) }
.fpd-way b { display: block; font-size: 14px; font-weight: 600 }
.fpd-way small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--fd-mut) }
.fpd-way-ic { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 11px; font-size: 14px; font-weight: 650 }
.fpd-way-ic svg { width: 18px; height: 18px }
.fpd-way-go { width: 15px; height: 15px; flex: none; align-self: center; margin-left: auto; color: var(--fd-mut); transition: transform var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease) }
.fpd-way:hover .fpd-way-go { color: var(--fd-ink); transform: translateX(2px) }
.fpd-start.is-compact { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 48px 24px; text-align: center }
.fpd-start.is-compact .fpd-ways { width: 100%; max-width: 640px; text-align: left }

.fpr { display: flex; min-width: 0; flex-direction: column; font-size: 13.5px }
.fpr-row { display: grid; grid-template-columns: 96px minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, .6fr); align-items: center; gap: 12px; padding: 10px 12px }
.fpr-row.is-head { padding-top: 2px; padding-bottom: 8px; font-size: 12px; font-weight: 500; color: var(--fd-mut) }
.fpr .is-num { text-align: right }
.fpr em { font-style: normal; color: var(--fd-mut) }
.fpr-when { display: flex; flex-direction: column; gap: 1px; line-height: 1.25 }
.fpr-when b { font-weight: 550 }
.fpr-when small { font-size: 12px; color: var(--fd-mut) }
.fpr-charged { font-weight: 600 }

.fph-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px }
.fph-title p { margin: 4px 0 0; font-size: 13px; color: var(--fd-mut) }
.fph-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.fph-body { min-width: 0 }
.fph-none { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 16px; font-size: 14px; color: var(--fd-mut) }
.fph-none p { margin: 0 }
.fph-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--fd-mut) }
.fph-foot .fpd-btn { width: 34px; padding: 0 }

.fpd { --fd-ghost: linear-gradient(180deg, #c9d7f3, #f6e9ee) }
html.fp-dark .fpd { --fd-ghost: linear-gradient(180deg, #26324d, #3b2a34) }
.fpd .fpd-hero { gap: 8px; padding: 8px; border-radius: 24px; background: var(--fd-grad) }
.fpd .fpd-stats { gap: 8px }
.fpd :is(.fpd-bal-n small, .fpd-bal-sub) { color: #52525b }
html.fp-dark .fpd :is(.fpd-bal-n small, .fpd-bal-sub) { color: #c4c4cc }
/* keks, 2026-11-25 («цветочек как-то выпирает опусти чуть ниже»): sits lower, about half of it under the edge. */
.fpd .fpd-bal-mark { position: absolute; z-index: -1; right: -40px; bottom: -84px; width: 210px; height: 210px; color: #fff; opacity: .6 }
html.fp-dark .fpd .fpd-bal-mark { opacity: .05 }
.fpd .fpd-bal .fpd-btn:not(.is-main) { background: rgb(255 255 255 / .7) }
.fpd .fpd-bal .fpd-btn:not(.is-main):hover { background: #fff }
html.fp-dark .fpd .fpd-bal .fpd-btn:not(.is-main) { background: rgb(255 255 255 / .1) }
html.fp-dark .fpd .fpd-bal .fpd-btn:not(.is-main):hover { background: rgb(255 255 255 / .16) }
.fpd .fpd-stat { background: rgb(255 255 255 / .72) }
html.fp-dark .fpd .fpd-stat { background: rgb(24 24 27 / .62) }
.fpd .fpd-stat-ic { background: var(--fd-grad) }
.fpd :is(.fpd-panel, .fpd-start) { border: 1px solid var(--fd-line); background: var(--fd-card) }
.fpd-start-art { display: grid; width: 76px; height: 76px; place-items: center; border-radius: 24px; background: var(--fd-grad) }
:is(.fpd, .fph) .fpd-start-mark { width: 42px; height: 42px }
:is(.fpd, .fph) .fpd-way { background: var(--fd-soft) }
:is(.fpd, .fph) .fpd-way:hover { background: color-mix(in oklab, var(--fd-soft), var(--fd-ink) 5%) }
:is(.fpd, .fph) .fpd-way-ic { background: var(--fd-grad) }
.fpd .fpd-ghost-bars b { opacity: .75 }
.fpd .fpd-ring circle { stroke: #dfe5f4 }
html.fp-dark .fpd .fpd-ring circle { stroke: #262b3a }
html:root body .fp-app .fp-main .fpd .kc-heat[data-l="0"] { background: #f2f4f9 !important }
html:root body .fp-app .fp-main .fpd .kc-heat[data-l="1"] { background: #d3def6 !important }
html:root body .fp-app .fp-main .fpd .kc-heat[data-l="2"] { background: #a6bff2 !important }
html:root body .fp-app .fp-main .fpd .kc-heat[data-l="3"] { background: #6c96f4 !important }
html:root body .fp-app .fp-main .fpd .kc-heat[data-l="4"] { background: #3e7bfa !important }
html:root.fp-dark body .fp-app .fp-main .fpd .kc-heat[data-l="0"] { background: #222226 !important }
html:root.fp-dark body .fp-app .fp-main .fpd .kc-heat[data-l="1"] { background: #26324d !important }
html:root.fp-dark body .fp-app .fp-main .fpd .kc-heat[data-l="2"] { background: #2f4a86 !important }
.fpd .fpd-heat-empty b { background: #f2f4f9 }
html.fp-dark .fpd .fpd-heat-empty b { background: #222226 }
html:root body .fp-app.fp-app.fp-app .fp-main.fp-main.fp-main .fpd .kc-heat-stat.kc-heat-stat { border-color: transparent !important; border-radius: 14px; background: var(--fd-soft) !important }
.fpd .fpr-row:not(.is-head) { border-top: 1px solid var(--fd-line) }
.fph .fph-head { padding: 20px 22px; border-radius: 22px; background: var(--fd-grad) }
.fph .fph-title p { color: #52525b }
html.fp-dark .fph .fph-title p { color: #c4c4cc }
.fph .fph-head .fpd-btn { background: rgb(255 255 255 / .7) }
html.fp-dark .fph .fph-head .fpd-btn { background: rgb(255 255 255 / .1) }
.fph :is(.fph-body, .fpd-start) { padding: 8px 10px; border: 1px solid var(--fd-line); border-radius: 20px; background: var(--fd-card) }
.fph .fpd-start { padding: 44px 24px }
.fph .fpr-row:not(.is-head) { border-top: 1px solid var(--fd-line) }
.fph .fpr-row.is-head { padding-top: 10px }

@media (max-width: 1023px) {
  .fpd-hero, .fpd-row, .fpd-start { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 767px) {
  .fpd-panel { padding: 16px }
  .fpd-bal { padding: 18px }
  .fpd-bal-n { padding-top: 18px; font-size: 40px }
  .fpd-stat { padding: 14px }
  .fpd-stat-n { font-size: 22px }
  .fpd-ways { grid-template-columns: minmax(0, 1fr) }
  .fpd-ghost, .fpd-ring { height: 160px }
  .fpd-ghost-bars { gap: 3px }
  .fpd-heat-empty { gap: 2px }
  .fpd-heat-empty b { height: 9px; border-radius: 2px }
  .fpr-row { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; padding: 9px 10px }
  .fpr .is-opt { display: none }
  .fph-tools { width: 100% }
  .fph .fph-head { padding: 16px }
}
@media (prefers-reduced-motion: reduce) { .fpd-way, .fpd-btn, .fpd-way-go { transition: none } }
/* ── «Включённые» on Расширения (Oleksandr, 2026-11-17 «активные карточки поменять дизайн»; Extensions.tsx ItemCard
 * `active`). They looked like the catalog below with a black switch, of uneven height, and jumped with a shadow on
 * hover. Now: the «Пастель» gradient of #1528, icon and switch on top, two lines of text, commands as small pills and
 * each missing service as a button at the bottom, all cards of a row the same height. Flat: no shadows, no lift. */
html body :is(.fp-app, .fp-set) .fp-ext-list .fp-ext-row.fp-ext-row { transition: background-color var(--fp-t-hover) var(--fp-ease), border-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease) }
html body :is(.fp-app, .fp-set) .fp-ext-list .fp-ext-row.fp-ext-row:hover { transform: none; box-shadow:none !important}
html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-list .fp-ext-row.fp-ext-row:hover { background: #1c1c1f; border-color: #36363b !important }
.fp-ext-cmds { display: inline-flex; min-width: 0; gap: 0 .55em; overflow: hidden; white-space: nowrap }
html body :is(.fp-app, .fp-set) .fp-ext-list .fp-ext-row.fp-ext-row.fp-ext-card { position: relative; min-height: 172px; padding: 16px 16px 14px; border: 1px solid transparent !important; border-radius: 18px; background: linear-gradient(130deg, #c9d7f3, #eef0f6 55%, #f6e9ee); color: #0d0d0d }
html body :is(.fp-app, .fp-set) .fp-ext-list .fp-ext-row.fp-ext-row.fp-ext-card:hover { background: linear-gradient(130deg, #c9d7f3, #eef0f6 55%, #f6e9ee); border-color: rgb(13 13 13 / .14) !important }
html body :is(.fp-app, .fp-set) .fp-ext-list .fp-ext-row.fp-ext-row.fp-ext-card:focus-visible { outline: 2px solid #0d0d0d; outline-offset: 2px }
html body :is(.fp-app, .fp-set) .fp-ext-card .kc-tile-ic.kc-tile-ic { width: 42px !important; height: 42px !important; border-radius: 13px; background: rgb(255 255 255 / .78) !important; color: #0d0d0d !important; box-shadow:none !important}
html body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-desc { color: #52525b }
html body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-meta { font-size: 12px; color: #3f3f46 }
html body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-cmds { flex-wrap: wrap; gap: 6px; white-space: normal }
html body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-cmds > span, html body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-meta > span:not(.fp-ext-cmds):not(:has(button)) { display: inline-flex; height: 24px; align-items: center; gap: 6px; padding: 0 9px; border-radius: 8px; background: rgb(255 255 255 / .62); font-size: 12px; font-weight: 500; color: #27272a }
html body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-need { display: inline-flex; height: 24px; max-width: 100%; align-items: center; gap: 4px; padding: 0 9px 0 7px; border-radius: 8px; background: #fff3e0; color: #b45309; font-size: 12px; font-weight: 550; transition: background-color var(--fp-t-hover) var(--fp-ease), transform var(--fp-t-press) var(--fp-ease) }
html body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-need svg { width: 13px; height: 13px; flex: none }
html body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-need:hover { background: #ffe7c2 }
html body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-need:active { transform: scale(.96) }
html body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-top > span.shrink-0.font-medium { display: inline-flex; height: 30px; align-items: center; padding: 0 13px; border-radius: 999px; background: rgb(255 255 255 / .78) !important; color: #0d0d0d !important; font-size: 13px !important; transition: background-color var(--fp-t-hover) var(--fp-ease), color var(--fp-t-hover) var(--fp-ease) }
html body :is(.fp-app, .fp-set) .fp-ext-card:hover .fp-ext-top > span.shrink-0.font-medium { background: #0d0d0d !important; color: #fff !important }
html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-list .fp-ext-row.fp-ext-row.fp-ext-card, html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-list .fp-ext-row.fp-ext-row.fp-ext-card:hover { background: linear-gradient(130deg, #26324d, #232328 55%, #3b2a34); color: #f4f4f5 }
html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-list .fp-ext-row.fp-ext-row.fp-ext-card:hover { border-color: rgb(255 255 255 / .16) !important }
html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-card .kc-tile-ic.kc-tile-ic { background: rgb(255 255 255 / .1) !important; color: #f4f4f5 !important }
html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-desc { color: #c4c4cc }
html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-meta { color: #d4d4d8 }
html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-cmds > span, html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-meta > span:not(.fp-ext-cmds):not(:has(button)) { background: rgb(255 255 255 / .08); color: #e4e4e7 }
html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-need { background: rgb(245 158 11 / .14); color: #fbbf24 }
html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-need:hover { background: rgb(245 158 11 / .22) }
html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-card .fp-ext-top > span.shrink-0.font-medium { background: rgb(255 255 255 / .1) !important; color: #f4f4f5 !important }
html.fp-dark body :is(.fp-app, .fp-set) .fp-ext-card:hover .fp-ext-top > span.shrink-0.font-medium { background: #f4f4f5 !important; color: #0d0d0d !important }

/* ── «Модели» on the API page as one card per family (Oleksandr, 2026-11-17: «дизайн поменять»). Connect.tsx
 * ModelCards: grey cards like the Base URL cards, the logo on a white tile, white chips, the picked one solid. ── */
html body .fp-app .fp-models .fp-mcard { --mc-bg: #f4f4f5; --mc-tile: #fff; --mc-chip: #fff; --mc-chip-fg: #27272a; --mc-chip-hover: #e9e9ec; --mc-on: #18181b; --mc-on-fg: #fff; background: var(--mc-bg) !important; border: 0 !important; box-shadow:none !important}
html.fp-dark body .fp-app .fp-models .fp-mcard { --mc-bg: #18181a; --mc-tile: #27272a; --mc-chip: #0b0b0c; --mc-chip-fg: #e4e4e7; --mc-chip-hover: #232326; --mc-on: #f4f4f5; --mc-on-fg: #09090b }
html body .fp-app .fp-models .fp-mcard-logo { background: var(--mc-tile) !important; color: inherit }
html body .fp-app.fp-app .fp-main .fp-models .fp-mcard button.fp-model-chip.fp-model-chip { border: 0 !important; box-shadow:none !important; background: var(--mc-chip) !important; color: var(--mc-chip-fg) !important }
html body .fp-app.fp-app .fp-main .fp-models .fp-mcard button.fp-model-chip.fp-model-chip:hover { background: var(--mc-chip-hover) !important }
html body .fp-app.fp-app .fp-main .fp-models .fp-mcard button.fp-model-chip.fp-model-chip.is-on { background: var(--mc-on) !important; color: var(--mc-on-fg) !important }
html body .fp-app .fp-models .fp-models-search { background: #f4f4f5; box-shadow:none}
html.fp-dark body .fp-app .fp-models .fp-models-search { background: #18181a }
html body .fp-app .fp-models .fp-models-search:focus-within { box-shadow:inset 0 0 0 1px #d4d4d8}
html.fp-dark body .fp-app .fp-models .fp-models-search:focus-within { box-shadow:inset 0 0 0 1px #3f3f46}
html body .fp-app.fp-app .kl-page .fp-models.fp-models .fp-models-search.fp-models-search.fp-models-search input { height: 100%; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow:none !important; outline: none !important; padding: 0 !important }

/* keks 2026-11-18: «Управление ключами» in the balance popover, between «Пополнить» and «Дашборд»: a light grey pill. */
html:root .fp-bp .fp-bp-keys { display: inline-flex; height: 40px; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; font-size: 13px; font-weight: 550; white-space: nowrap;
  background: #f4f4f5; color: #0d0d0d; margin-top: 4px; transition: background-color var(--fp-t-hover) var(--fp-ease), transform var(--fp-t-press) var(--fp-ease) }
html:root .fp-bp .fp-bp-keys svg { width: 14px; height: 14px; flex: none }
html:root .fp-bp .fp-bp-keys:hover { background: #ebebed }
html:root .fp-bp .fp-bp-keys:active { transform: scale(.97) }
html:root.fp-dark .fp-bp .fp-bp-keys { background: #26262a; color: #f4f4f5 }
html:root.fp-dark .fp-bp .fp-bp-keys:hover { background: #2e2e33 }
/* ── Project settings in a window (keks, 2026-11-18: «Сделай эти настройки в окне»): the settings window's grey frame
 * and blurred cabinet, narrower, one white sheet with the project's cards and «Новый чат в проекте» at its foot
 * (FpProjectWindow in features/projects/FpProjects.tsx). Phone: the whole screen, as the settings window. ── */
body:has(.fp-app) .fp-set.fp-pjw[role="dialog"] { width: min(640px, calc(100vw - 48px)); height: auto; max-height: min(880px, calc(100dvh - 48px)) }
.fp-pjw .fp-pjw-sheet { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; background: #fff; border-radius: 16px; overflow: hidden }
.fp-pjw .pj-side-head { height: 60px; padding: 0 14px 0 20px }
.fp-pjw .pj-side-head > span { font-size: 17px; letter-spacing: -0.01em }
.fp-pjw .fp-pjw-new { display: flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; height: 44px; margin: 0 12px 12px; border-radius: 12px; background: #19191b; color: #fff; font-size: 14px; font-weight: 500; transition: background-color var(--fp-t-hover) var(--fp-ease) }
.fp-pjw .fp-pjw-new:hover { background: #2e2e32 }
.fp-pjw .fp-pjw-new svg { width: 16px; height: 16px }
html.fp-dark .fp-pjw .fp-pjw-sheet { background: #212123 }
html.fp-dark .fp-pjw .fp-pjw-new { background: #f2f2f4; color: #19191b }
html.fp-dark .fp-pjw .fp-pjw-new:hover { background: #dcdce0 }
@media (max-width: 767px) {
  body:has(.fp-app) .fp-set.fp-pjw[role="dialog"] { width: 100vw; height: 100dvh; max-height: none }
  .fp-pjw .fp-pjw-sheet { border-radius: 0; padding-top: env(safe-area-inset-top) }
  .fp-pjw .fp-pjw-new { margin-bottom: calc(12px + env(safe-area-inset-bottom)) }
}

/* keks 2026-11-19: «Дашборд» on the logo's line in the pastel card, at the right edge. */
html:root .fp-bp .fp-bp-row { display: flex; align-self: stretch; align-items: center; justify-content: space-between; gap: 12px }
html:root .fp-bp .fp-bp-top .fp-bp-dash { height: 30px; padding: 0 10px; margin-right: -6px; border-radius: 999px; background: rgba(255,255,255,.55); color: #27272a }
html:root .fp-bp .fp-bp-top .fp-bp-dash:hover { background: #fff; color: #0d0d0d }
html:root.fp-dark .fp-bp .fp-bp-top .fp-bp-dash { background: rgba(255,255,255,.08); color: #e4e4e7 }
html:root.fp-dark .fp-bp .fp-bp-top .fp-bp-dash:hover { background: rgba(255,255,255,.14); color: #fff }
/* API → «Модели» (2026-12-01): the search field is the soft box itself; the page's input frame would draw a second box inside it. */
html body .fp-app.fp-app .kl-page .kc-mfind.kc-mfind.kc-mfind input:not([type="checkbox"]) { -webkit-appearance: none !important; appearance: none !important; background: transparent !important; border: 0 !important; box-shadow:none !important; border-radius: 0 !important; padding: 0 !important; height: 100% !important; outline: none !important; color: inherit !important }

.lockup,.fp-lockup{background-image:url(/jellee/lockup-tile.svg)!important;background-size:23.48% 100%!important;background-position:left center!important;background-repeat:no-repeat!important;-webkit-mask:url(/jellee/lockup-tile.svg) left center/23.48% 100% no-repeat,url(/jellee/lockup-word.svg) left center/contain no-repeat!important;mask:url(/jellee/lockup-tile.svg) left center/23.48% 100% no-repeat,url(/jellee/lockup-word.svg) left center/contain no-repeat!important}.lockup,.fp-lockup{width:auto!important;aspect-ratio:1/1!important;background-size:100% 100%!important;-webkit-mask:url(/jellee/lockup-tile.svg) center/100% 100% no-repeat!important;mask:url(/jellee/lockup-tile.svg) center/100% 100% no-repeat!important}

/* jellee.chat cabinet, «Студия» (keks, 2026-11-12, variant 2 of the light mockups): appended to FREEPAY's cabinet.css
 * by scripts/build-worker.mjs. A light grey frame, the sidebar on it with the active item as a white chip, the page as
 * one white card with a thin border, the new chat with the drop, a greeting and quick prompts (ChatView JelleeHello),
 * orange #FF4F12 for the send button and small accents. The cabinet's own dark theme (html.fp-dark) keeps
 * FREEPAY's look. */
/* Frame #fafafa (2026-11-17, user asked; was lavender → #efeeec → #f7f7f7). */
html:not(.fp-dark) body:has(.fp-app), html:not(.fp-dark) body .fp-app.fp-app, html.dark:not(.fp-dark) body .fp-app.fp-app { background: #fafafa !important; }
html:not(.fp-dark) body .fp-app.fp-app .fp-side, html:not(.fp-dark) body .fp-app.fp-app .kc-rail, html.dark:not(.fp-dark) body .fp-app.fp-app .fp-side { background: transparent !important; border: 0 !important; }
html:not(.fp-dark) body .fp-app.fp-app .kc-main {
  background: #fff !important; border: 0 !important; border-radius: 14px !important;
  box-shadow:none;
  margin: 8px 8px 8px 0 !important; overflow: hidden;
}
html:not(.fp-dark) body .fp-app.fp-app .kc-topbar { border-bottom: 1px solid #efefef !important; }
html:not(.fp-dark) body .fp-app.fp-app { --fp-gpt-on: #fff; --fp-gpt-hover: rgb(255 255 255 / 0.65); --fp-mac-sel: rgb(255 255 255 / 0.65); }
html:not(.fp-dark) body .fp-app.fp-app .fp-side-item { border-radius: 10px; }
html:not(.fp-dark) body .fp-app.fp-app .fp-side-item.is-on { background: #fff !important; box-shadow:none; }
/* The search is a field, not a chip (Oleksandr, 2026-11-12: «кнопка и поиск сливаются»): no white fill, only a thin
 * outline on the grey, so it no longer looks like the white active item right under it; white only while typing. A
 * little more air below it too. */
html:not(.fp-dark) body .fp-app.fp-app .fp-side-search { margin-bottom: 10px; }
html:not(.fp-dark) body .fp-app.fp-app .fp-side-search label {
  background: transparent !important; box-shadow:inset 0 0 0 1px #d6d6d6 !important; border-radius: 10px;
  transition: background-color 0.15s, box-shadow 0.15s;
}
html:not(.fp-dark) body .fp-app.fp-app .fp-side-search label:hover { background: rgb(255 255 255 / 0.45) !important; box-shadow:inset 0 0 0 1px #c9c9c9 !important; }
html:not(.fp-dark) body .fp-app.fp-app .fp-side-search label:focus-within { background: #fff !important; box-shadow:inset 0 0 0 1px #bdbdbd !important; }
.fp-app .fp-side-sec, .fp-app .fp-side-chats [class*="uppercase"] { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #9b9b9b; }
html:not(.fp-dark) body .fp-app.fp-app .fp-side-foot > button { background: #fff; border-radius: 14px; box-shadow:none; }

/* New chat (Oleksandr, 2026-11-16, variant 3 «Режимы» without the greeting): Чат | Код over the field, the field in a
 * thin peach-pink-lilac ring, the temporary chat switch and the import under it. */
.jl-home .fp-home-art { display: none; }
/* «Все треды»: no FREEPAY dither picture (plants) behind the list, plain frame like the rest (user, 2026-11-17). */
.fp-app .fp-th-page::before { content: none !important; display: none !important; }
html body .jl-home .fp-home-card.jl-modes-card { background: none !important; box-shadow:none !important; border-radius: 0; }
.jl-modes { display: flex; width: max-content; margin: 0 auto 14px; padding: 4px; border-radius: 12px; background: #f1f1f3; }
.jl-mode { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px; border-radius: 9px; font-size: 14px; color: #6b6b70; transition: background 0.15s, color 0.15s; }
.jl-mode svg { width: 16px; height: 16px; }
.jl-mode:hover { color: #0b0b0c; }
.jl-mode.is-on { background: #fff; color: #0b0b0c; font-weight: 500; box-shadow:0 0 0 1px rgb(0 0 0 / 0.04); }
html:not(.fp-dark) body .jl-home.jl-home .jl-modes-card .fp-composer.fp-composer .nc-prism.nc-prism.kl-glow {
  border: 1.5px solid transparent !important; border-radius: 20px !important; padding: 8px !important;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #ffb067, #ff6a2b 30%, #ff5fa2 60%, #9a7bff) border-box !important;
  box-shadow:none !important;
}
html body .jl-home.jl-home .jl-modes-card .kl-c-input { min-height: 110px !important; }
.jl-under { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; padding: 0 6px; font-size: 13px; color: #6b6b70; }
.jl-temp, .jl-under-link { display: flex; align-items: center; gap: 8px; height: 30px; border-radius: 8px; transition: color 0.15s; }
.jl-temp:hover, .jl-under-link:hover { color: #0b0b0c; }
.jl-under-link { gap: 6px; }
.jl-temp i { position: relative; width: 30px; height: 18px; border-radius: 999px; background: #dedee2; transition: background 0.2s; flex: none; }
.jl-temp i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow:none; transition: transform 0.2s; }
.jl-temp.is-on { color: #0b0b0c; }
.jl-temp.is-on i { background: #FF4F12; }
.jl-temp.is-on i::after { transform: translateX(12px); }
html.fp-dark .jl-modes { background: rgb(255 255 255 / 0.06); }
html.fp-dark .jl-mode { color: #a1a1aa; }
html.fp-dark .jl-mode.is-on { background: rgb(255 255 255 / 0.12); color: #fafafa; box-shadow:none; }
html.fp-dark .jl-under { color: #a1a1aa; }
html.fp-dark .jl-temp:hover, html.fp-dark .jl-under-link:hover, html.fp-dark .jl-temp.is-on { color: #fafafa; }
html.fp-dark .jl-temp i { background: #3f3f46; }

/* Orange accents */
html:not(.fp-dark) body .fp-app.fp-app .kl-send:not(:disabled) { background: #FF4F12 !important; color: #fff !important; }
html:not(.fp-dark) body .fp-app.fp-app .kl-send:not(:disabled):hover { background: #e84508 !important; }
.fp-app .fp-side-item.is-on .fp-side-ic { color: #FF4F12 !important; }

@media (max-width: 767px) {
  html:not(.fp-dark) body .fp-app.fp-app .kc-main { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
  html body .jl-home.jl-home .jl-modes-card .kl-c-input { min-height: 84px !important; }
  /* +, the model, the mic, the voice chat and send on one row under the text (the model name gets cut short). */
  html body .jl-home.jl-home .jl-modes-card .kc-model-chip { max-width: 128px !important; padding: 0 8px !important; }
}

/* Jellee's AI avatar and sign-in mark: the drop instead of FREEPAY's flower (FlowerBot, Oleksandr 2026-11-14). It
 * breathes when idle, bobs while thinking or answering, hops once when an answer is done; greyed on an error. */
.jl-drop { display: inline-block; flex: none; }
.jl-drop img { display: block; width: 100%; height: 100%; transform-origin: 50% 90%; }
.jl-drop[data-mood="idle"] img { animation: jl-breathe 3.2s ease-in-out infinite; }
.jl-drop[data-mood="think"] img, .jl-drop[data-mood="talk"] img { animation: jl-bob 0.9s ease-in-out infinite; }
.jl-drop[data-mood="happy"] img { animation: jl-hop 0.6s cubic-bezier(.22,1,.36,1) 1; }
.jl-drop[data-mood="error"] img { filter: grayscale(1); opacity: 0.6; }
@keyframes jl-breathe { 50% { transform: scale(1.04, 0.97); } }
@keyframes jl-bob { 50% { transform: translateY(-12%) scale(0.97, 1.03); } }
@keyframes jl-hop { 40% { transform: translateY(-18%) scale(0.94, 1.06); } 70% { transform: scale(1.06, 0.94); } }
@media (prefers-reduced-motion: reduce) { .jl-drop img { animation: none !important; } }
.fp-login .jl-drop { width: 64px !important; height: 64px !important; }

/* ── Dia «Вкладки» (Oleksandr, 2026-11-14: picked variant 2 of https://claude.ai/artifact/RZFGauw1u5xxtgsDb34v8M) ──
 * Chats as Dia's vertical tabs (a colour square per chat, the open one a white tab with a shadow; the model tiles over
 * them were removed with the new menu, 2026-11-14), and «Jellee рядом» on the right of an open chat (code/src/console/JelleeSide.tsx). */
.jl-tabdot { width: 14px; height: 14px; border-radius: 4.5px; flex: none; margin-right: 3px; }
html:not(.fp-dark) body .fp-app.fp-app .kc-chat-row.is-active { background: #fff !important; box-shadow:none !important; --tw-ring-shadow: 0 0 #0000; }
html:not(.fp-dark) body .fp-app.fp-app .kc-chat-row:not(.is-active):hover { background: rgb(255 255 255 / 0.5) !important; }
.jl-side {
  width: 320px; flex: none; margin: 8px 8px 8px 0; padding: 18px 16px 16px; border-radius: 14px; display: flex; flex-direction: column;
  background: rgb(255 255 255 / 0.72); box-shadow:none; color: #151515;
}
.jl-side-hd { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.jl-side-sub { margin: 10px 0 16px; font-size: 13px; line-height: 1.5; color: #666; }
.jl-side-acts { display: flex; flex-direction: column; gap: 6px; }
.jl-side-acts button {
  text-align: left; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow:0 0 0 1px #ececf1;
  transition: box-shadow 0.15s;
}
.jl-side-acts button:hover:not(:disabled) { box-shadow:0 0 0 1px #c9c9d6; }
.jl-side-acts button:disabled { opacity: 0.55; }
.jl-side-ask {
  margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-radius: 16px; background: #fff;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #8fb3ff, #c3a4ff, #ff9fc8, #ffb067) border-box;
}
.jl-side-ask input { flex: 1; min-width: 0; font-size: 14px; background: transparent; outline: none; }
.jl-side-ask button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #151515; color: #fff; flex: none; }
.jl-side-ask button:disabled { opacity: 0.35; }
html.fp-dark .jl-side { background: rgb(255 255 255 / 0.04); color: #fafafa; }
html.fp-dark .jl-side-sub { color: #a1a1aa; }
html.fp-dark .jl-side-acts button { background: transparent; box-shadow:0 0 0 1px #3f3f46; color: #e4e4e7; }
html.fp-dark .jl-side-ask { background: linear-gradient(#18181b, #18181b) padding-box, linear-gradient(120deg, #8fb3ff, #c3a4ff, #ff9fc8, #ffb067) border-box; }
html.fp-dark .jl-side-ask button { background: #fafafa; color: #111; }
@media (max-width: 1279px) { .jl-side { display: none; } }
/* 2026-11-17: «Jellee рядом» only when the chat gives a reason; the top bar button shows / hides it, «×» in its head hides it. */
.jl-side-x { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #8a8a93; }
.jl-side-x:hover { background: rgb(0 0 0 / 0.05); color: #151515; }
html.fp-dark .jl-side-x:hover { background: rgb(255 255 255 / 0.08); color: #fafafa; }
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button.jl-side-btn[data-on] { background: #fff !important; color: #0d0d0d !important; box-shadow:none !important; }
html.fp-dark body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button.jl-side-btn[data-on] { background: #2a2a2d !important; color: #fafafa !important; }
/* Dia's soft colour glow under the new chat's field. */
html:not(.fp-dark) .jl-home .fp-home-card { box-shadow:0 0 0 1px #ebebeb; }
html:not(.fp-dark) body .fp-app.fp-app .fp-side-foot { background: transparent !important; border-top: 0 !important; }

/* Sign-in (code/src/features/auth/JelleeLogin.tsx) in the Dia look of the landing and the cabinet (Oleksandr,
 * 2026-11-14: «сделай в моем дизайне новом»): off-white page with leaf shadows, the serif headline with an italic
 * second line, pill buttons, the key field with the rainbow ring, and on the right the cabinet's lavender frame with
 * a small app window. No pictures («картинки убрать»). */
@font-face{font-family:'Jellee Serif';font-style:normal;font-weight:400;font-display:swap;src:url(/jellee/fonts/serif-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Jellee Serif';font-style:normal;font-weight:400;font-display:swap;src:url(/jellee/fonts/serif-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:'Jellee Serif';font-style:italic;font-weight:400;font-display:swap;src:url(/jellee/fonts/serif-italic-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Jellee Serif';font-style:italic;font-weight:400;font-display:swap;src:url(/jellee/fonts/serif-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
/* «Плитки» (Oleksandr, 2026-11-14: picked variant 3 of project files jellee-login-v2/): one white window, on the left
 * an orange panel with the 9 model tiles and no text, on the right the key form. On phones the panel is a short strip on top. */
.jl-login { background: #f6f5f3; }
.jl-login .jl-card { box-shadow:0 0 0 1px rgb(0 0 0 / 0.05); }
.jl-login .jl-art { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, #ffb48a, #ff6a2b 45%, #e8430b); }
.jl-login .jl-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 80% 90%, rgb(255 214 120 / 0.55), transparent 70%); }
.jl-login .jl-tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 52px); gap: 8px; transform: rotate(-6deg); }
.jl-login .jl-tile { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow:none;
  animation: jl-float 6s ease-in-out infinite; }
.jl-login .jl-tile svg { width: 24px; height: 24px; }
@media (min-width: 1024px) {
  .jl-login .jl-tiles { grid-template-columns: repeat(3, 96px); gap: 18px; transform: none; }
  .jl-login .jl-tile { width: 96px; height: 96px; border-radius: 26px; }
  .jl-login .jl-tile svg { width: 40px; height: 40px; }
  .jl-login .jl-tile:nth-child(odd) { --r: -3deg; --y: -8px; }
  .jl-login .jl-tile:nth-child(3n) { --r: 4deg; --y: 6px; }
}
.jl-login .jl-tile { transform: translateY(var(--y, 0)) rotate(var(--r, 0)); }
@keyframes jl-float { 50% { transform: translateY(calc(var(--y, 0px) - 6px)) rotate(var(--r, 0)); } }
.jl-login .jl-in { animation: jl-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes jl-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .jl-login .jl-tile, .jl-login .jl-in { animation: none !important; } }
.jl-login h1 { font-weight: 700 !important; letter-spacing: -0.04em; }

/* ── Left menu (Oleksandr, 2026-11-14, a reference screenshot; code/src/console/JelleeNav.tsx) ──
 * «Новый чат», folding groups with a thin line on the left of their rows, «Поиск по чатам». */
.jl-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.jl-nav-row { width: 100%; }
.jl-nav-caret { width: 15px; height: 15px; flex: none; color: #8a8a8a; transition: transform 0.18s ease; }
.jl-nav-caret.is-folded { transform: rotate(-90deg); }
.jl-nav-kbd { font-size: 11.5px; color: #9b9b9b; }
.jl-nav-group { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px 20px; padding-left: 9px; border-left: 1px solid rgb(0 0 0 / 0.09); }
.jl-nav-sub {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: 9px; font-size: 14px; color: #5c5c5c;
  transition: background-color 0.15s, color 0.15s; min-width: 0;
}
.jl-nav-sub:hover { background: rgb(255 255 255 / 0.6); color: #111; }
.jl-nav-sub.is-on { background: #fff; color: #111; font-weight: 500; box-shadow:none; }
.jl-nav-sub.is-off { color: #a3a3a3; cursor: default; }
.jl-nav-sub.is-off:hover { background: transparent; color: #a3a3a3; }
.jl-nav-sub-ic { display: grid; place-items: center; flex: none; }
.jl-nav-sub-ic svg { width: 17px; height: 17px; }
.jl-nav-note { margin: 4px 10px 2px; font-size: 12px; color: #9b9b9b; }
.jl-nav-search { margin: 2px 0 0; }
.is-folded .jl-nav-group { display: none; }
html.fp-dark .jl-nav-group { border-left-color: rgb(255 255 255 / 0.1); }
html.fp-dark .jl-nav-sub { color: #b4b4bb; }
html.fp-dark .jl-nav-sub:hover, html.fp-dark .jl-nav-sub.is-on { background: rgb(255 255 255 / 0.07); color: #fafafa; box-shadow:none; }

/* ── «Изображения → Создать» (code/src/console/JelleeImages.tsx): the centred question, one white field with the
 * Dia glow under it, pill pickers, the orange send, «Попробуйте стиль» as a row of tall cards. */
.jl-img { padding-top: clamp(40px, 12vh, 120px); }
.jl-img-hi { text-align: center; font-size: 34px; line-height: 1.15; font-weight: 600 !important; letter-spacing: -0.025em; color: #0b0b0c; margin-bottom: 28px; }
.jl-img-card {
  border-radius: 22px; background: #fff;
  box-shadow:0 0 0 1px #ebebeb;
}
.jl-img-field {
  display: block; width: 100%; resize: none; background: transparent; outline: none; border: 0;
  padding: 18px 20px 10px; font-size: 16px; line-height: 1.5; color: #111; min-height: 76px;
}
.jl-img-field::placeholder { color: #9a9a9a; }
.jl-img-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: #222; background: #fff; box-shadow:inset 0 0 0 1px #e3e3e3;
  transition: box-shadow 0.15s, background-color 0.15s; white-space: nowrap; flex: none; min-width: 0;
}
.jl-img-pill:has(.jl-img-pill-name) { flex: 0 1 auto; }
.jl-img-pill-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.jl-img-send { flex: none; }
.jl-img-pill:hover, .jl-img-pill[data-state="open"] { box-shadow:inset 0 0 0 1px #c9c9c9; background: #fafafa; }
.jl-img-pill:disabled { opacity: 0.45; }
.jl-img-plus { width: 38px; padding: 0; justify-content: center; }
.jl-img-ratio { display: inline-block; border: 1.6px solid currentColor; border-radius: 3px; flex: none; }
.jl-img-send {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #FF4F12;
  transition: background-color 0.15s, opacity 0.15s;
}
.jl-img-send:hover:not(:disabled) { background: #e84508; }
.jl-img-send:disabled { background: #d9d9d9; color: #fff; }
.jl-img-thumb { position: relative; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; box-shadow:0 0 0 1px #e6e6e6; }
.jl-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jl-img-thumb button { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / 0.6); color: #fff; }
.jl-img-thumb button svg { width: 11px; height: 11px; }
.jl-img-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.jl-img-head h2 { font-size: 18px; font-weight: 600 !important; letter-spacing: -0.015em; color: #0b0b0c; }
.jl-img-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #6d6d6d; }
.jl-img-more:hover { color: #111; }
.jl-img-arrow {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #333; background: #fff;
  box-shadow:inset 0 0 0 1px #e3e3e3; transition: box-shadow 0.15s, opacity 0.15s;
}
.jl-img-arrow:hover:not(:disabled) { box-shadow:inset 0 0 0 1px #c4c4c4; }
.jl-img-arrow:disabled { opacity: 0.4; }
.jl-img-rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; margin: -4px -2px 0;
}
.jl-img-rail::-webkit-scrollbar { display: none; }
.jl-img-style { flex: none; width: 184px; scroll-snap-align: start; text-align: center; }
.jl-img-style-pic {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #f2f2f4;
  box-shadow:0 0 0 1px rgb(0 0 0 / 0.05); transition: box-shadow 0.18s, transform 0.18s;
}
.jl-img-style-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.jl-img-style:hover .jl-img-style-pic img { transform: scale(1.04); }
.jl-img-style.is-on .jl-img-style-pic { box-shadow:0 0 0 2.5px #FF4F12; }
.jl-img-style-check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #FF4F12; color: #fff; }
.jl-img-style-name { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 500; color: #333; }
.jl-img-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.jl-img-shot { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #f2f2f4; box-shadow:0 0 0 1px rgb(0 0 0 / 0.05); cursor: zoom-in; }
.jl-img-shot img { display: block; width: 100%; height: auto; }
.jl-img-dl {
  position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(255 255 255 / 0.92); color: #111; opacity: 0; transition: opacity 0.15s; box-shadow:none;
}
.jl-img-shot:hover .jl-img-dl, .jl-img-shot:focus-within .jl-img-dl { opacity: 1; }
.jl-img-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8a8a8a; font-size: 13.5px; cursor: default;
  background: linear-gradient(110deg, #f1f1f4 30%, #fafafb 50%, #f1f1f4 70%) 0 0 / 300% 100%; animation: jl-shimmer 1.6s linear infinite; }
@keyframes jl-shimmer { to { background-position: -300% 0; } }
@media (max-width: 767px) {
  .jl-img { padding-top: 28px; }
  .jl-img-hi { font-size: 26px; margin-bottom: 20px; }
  .jl-img-style { width: 140px; }
  .jl-img-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jl-img-dl { opacity: 1; }
  .jl-img-bar { gap: 6px; padding: 0 10px 10px; }
  .jl-img-pill { padding: 0 10px; gap: 6px; }
  .jl-img-plus { padding: 0; }
  .jl-img-pill-txt { display: none; }
  .jl-img-field { padding: 16px 16px 8px; }
}
html.fp-dark .jl-img-hi, html.fp-dark .jl-img-head h2 { color: #fafafa; }
html.fp-dark .jl-img-card { background: #18181b; box-shadow:0 0 0 1px #2e2e33; }
html.fp-dark .jl-img-field { color: #fafafa; }
html.fp-dark :is(.jl-img-pill, .jl-img-arrow) { background: transparent; color: #e4e4e7; box-shadow:inset 0 0 0 1px #3f3f46; }
html.fp-dark .jl-img-style-name { color: #d4d4d8; }

/* Account menu «Баланс-карточка» (Oleksandr picked variant 2 of five, 2026-11-16): the balance in a soft card with a
 * black «Пополнить» pill that always stays inside the card, and a theme switch. Console.tsx AccountMenu. */
.jl-am-bal { display: flex; align-items: center; gap: 10px; margin: 2px 2px 6px; padding: 11px 10px 11px 12px; border-radius: 14px; background: color-mix(in oklab, var(--foreground) 4%, transparent); }
.jl-am-bal-n { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; line-height: 1.1; }
.jl-am-bal-n > span { font-size: 11px; color: var(--muted-foreground); }
.jl-am-bal-n > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.jl-am-bal .jl-am-tu { flex: none; justify-content: center; border-radius: 999px; padding: 7px 13px; background: var(--foreground); color: var(--background); font-size: 12.5px; font-weight: 550; white-space: nowrap; }
.jl-am-bal .jl-am-tu[data-highlighted] { background: color-mix(in oklab, var(--foreground) 85%, var(--background)); color: var(--background); }
.jl-am-sw { position: relative; margin-left: auto; width: 30px; height: 18px; flex: none; border-radius: 999px; background: color-mix(in oklab, var(--foreground) 16%, transparent); transition: background 0.15s; }
.jl-am-sw > i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px; background: #fff; box-shadow:none; transition: left 0.15s; }
.jl-am-sw.on { background: var(--foreground); }
.jl-am-sw.on > i { left: 14px; background: var(--background); }

/* Balance badge «Желе» (Oleksandr, 2026-11-16, variant 5 of jellee-balance-v2): an orange pill with the coin, five limit
 * bars, the balance and a white «Пополнить». The grey capsule around it goes transparent, «Файлы» stays a plain icon.
 * The selectors are long because FREEPAY's top bar paints every button and link up there as a white capsule. */
html body .fp-app .kc-topbar .fp-hcap.fp-hcap { background: transparent; gap: 6px; padding: 0; }
html body .fp-app .kc-topbar .ml-auto .jl-bal { display: inline-flex; align-items: center; flex: none; height: 38px; padding: 3px; border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3d, #ff4f12); box-shadow:none; }
html body .fp-app .kc-topbar .ml-auto .jl-bal :is(.jl-bal-btn, .jl-bal-top) { display: inline-flex !important; align-items: center; width: auto !important;
  min-width: 0 !important; height: 32px !important; margin: 0 !important; border: 0 !important; border-radius: 999px !important; box-shadow:none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; font-size: 13.5px !important; transform: none; }
html body .fp-app .kc-topbar .ml-auto .jl-bal .jl-bal-btn { gap: 7px; padding: 0 11px 0 0 !important; background: transparent !important; color: #fff !important; font-weight: 500 !important; }
html body .fp-app .kc-topbar .ml-auto .jl-bal .jl-bal-btn:is(:hover, [data-state=open]) { background: rgba(255, 255, 255, 0.14) !important; }
html body .fp-app .kc-topbar .ml-auto .jl-bal .jl-bal-top { gap: 4px; padding: 0 13px !important; background: #fff !important; color: #ff4f12 !important; font-weight: 600 !important; }
html body .fp-app .kc-topbar .ml-auto .jl-bal .jl-bal-top:hover { background: #fff4ee !important; }
html body .fp-app .kc-topbar .ml-auto .jl-bal .jl-bal-top:active { transform: scale(0.97); }
html body .fp-app .kc-topbar .ml-auto .jl-bal .jl-bal-top svg { width: 13px; height: 13px; color: #ff4f12; }
html body .fp-app .kc-topbar .ml-auto .jl-bal .jl-bal-cc { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.24); }
html body .fp-app .kc-topbar .ml-auto .jl-bal .jl-bal-cc svg { width: 16px; height: 16px; color: #fff; }
html body .fp-app .kc-topbar .ml-auto .jl-bal .jl-bal-n { font-weight: 650; letter-spacing: -0.01em; }
html body .fp-app .kc-topbar .ml-auto .jl-bal .jl-bal-l { color: rgba(255, 255, 255, 0.85); }
.fp-app .jl-bars { display: inline-flex; gap: 2px; margin-left: 1px; }
.fp-app .jl-bars i { display: block; width: 4px; height: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.fp-app .jl-bars i[data-on] { background: #fff; }
.fp-app .jl-bars[data-low="1"] i[data-on] { background: #ffe08a; }
.fp-app .jl-bars[data-low="2"] i[data-on] { background: #ffd1d1; }
@media (max-width: 640px) {
  html body .fp-app .kc-topbar .ml-auto .jl-bal .jl-bal-top { padding: 0 !important; width: 32px !important; justify-content: center; }
  html body .fp-app .kc-topbar .ml-auto .jl-bal .jl-bal-btn { padding-right: 9px !important; }
}

/* ── «Поиск по чатам»: a real field in the left menu, suggestions in a window under it (Oleksandr, 2026-11-17;
 * code/src/console/JelleeSearch.tsx). */
.jl-find {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 10px; border-radius: 10px; cursor: text;
  background: rgb(255 255 255 / 0.7); box-shadow:inset 0 0 0 1px rgb(0 0 0 / 0.07); transition: background-color 0.15s, box-shadow 0.15s;
}
.jl-find:hover { background: #fff; }
.jl-find:focus-within, .jl-find.is-open { background: #fff; box-shadow:inset 0 0 0 1px rgb(255 79 18 / 0.45),0 0 0 3px rgb(255 79 18 / 0.1); }
.jl-find-glass { width: 17px; height: 17px; flex: none; color: #8a8a8a; }
.jl-find input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; font-size: 14px; color: #111; }
.jl-find input::placeholder { color: #8a8a8a; }
.jl-find-kbd { flex: none; height: 22px; display: grid; place-items: center; padding: 0 7px; border-radius: 7px; background: rgb(0 0 0 / 0.05); font-family: inherit; font-size: 11.5px; font-weight: 500; line-height: 1; color: #8a8a8a; }
.jl-find-x { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: #8a8a8a; }
.jl-find-x:hover { color: #111; background: rgb(0 0 0 / 0.05); }
.jl-find-x svg { width: 14px; height: 14px; }
.jl-find-pop {
  position: fixed; z-index: 80; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: #fff;
  box-shadow:0 0 0 1px rgb(0 0 0 / 0.07);
  animation: jl-find-in 0.14s ease-out both;
}
@keyframes jl-find-in { from { opacity: 0; transform: translateY(-4px); } }
.jl-find-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; }
.jl-find-head { padding: 8px 10px 4px; font-size: 12px; font-weight: 500; color: #9b9b9b; }
.jl-find-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-width: 0; padding: 8px 10px; border-radius: 9px; text-align: left; }
.jl-find-row.is-sel { background: rgb(0 0 0 / 0.045); }
.jl-find-ic { width: 17px; height: 17px; flex: none; margin-top: 1px; color: #8a8a8a; }
.jl-find-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #151515; }
.jl-find-snip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: #7a7a7a; }
.jl-find-when { flex: none; margin-top: 2px; font-size: 12px; color: #a3a3a3; }
.jl-find-empty { padding: 18px 12px; text-align: center; font-size: 13px; color: #8a8a8a; }
.jl-find-more { padding: 6px 10px 4px; font-size: 12px; }
.jl-find-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid rgb(0 0 0 / 0.06); font-size: 11.5px; color: #9b9b9b; }
.jl-find-foot kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-right: 3px; padding: 0 4px; border-radius: 5px; background: rgb(0 0 0 / 0.05); font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1; color: #777; }
html.fp-dark .jl-find { background: rgb(255 255 255 / 0.05); box-shadow:inset 0 0 0 1px rgb(255 255 255 / 0.08); }
html.fp-dark .jl-find:focus-within, html.fp-dark .jl-find.is-open { background: rgb(255 255 255 / 0.08); }
html.fp-dark .jl-find input { color: #fafafa; }
html.fp-dark .jl-find-pop { background: #1c1c1f; box-shadow:0 0 0 1px rgb(255 255 255 / 0.08); }
html.fp-dark .jl-find-row.is-sel { background: rgb(255 255 255 / 0.07); }
html.fp-dark .jl-find-title { color: #f2f2f2; }
html.fp-dark .jl-find-foot { border-top-color: rgb(255 255 255 / 0.08); }
html.fp-dark .jl-find-kbd, html.fp-dark .jl-find-foot kbd { background: rgb(255 255 255 / 0.08); }
@media (max-width: 767px) { .jl-find-foot, .jl-find-kbd { display: none; } .jl-find { height: 44px; } .jl-find input { font-size: 16px; } .jl-find-row { padding: 11px 10px; } .jl-find-title { font-size: 15px; } }
.jl-find-pop.is-inline { position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: min(60vh, 460px); }
/* Code blocks on «API» (Oleksandr, 2026-11-17: «дизайном показать что это код и скопировать легко»): a dark window
 * with a header bar (language + a clear «Копировать» button) and syntax colours, in both themes (console/ui.tsx JlCode). */
body .jl-code { background: #16161b; color: #e6e6ea; box-shadow:none; }
html.fp-dark body .jl-code { background: #0c0c0f; box-shadow:inset 0 0 0 1px rgb(255 255 255 / 0.08); }
body .jl-code-head { color: #9a9aa6; border-bottom: 1px solid rgb(255 255 255 / 0.07); background: rgb(255 255 255 / 0.03); }
body .jl-code-copy { color: #f2f2f5; background: rgb(255 255 255 / 0.08); transition: background-color .15s, color .15s; }
body .jl-code-copy:hover { background: rgb(255 255 255 / 0.15); }
body .jl-code-copy.is-done { color: #0b0b0d; background: #7ee2a8; }
body .fp-app .jl-code .jl-code-body, body .jl-code .jl-code-body { color: #e6e6ea; font-family: "Geist Mono", ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace !important; font-size: 13px !important; letter-spacing: 0 !important; font-feature-settings: normal !important; font-variant-numeric: normal !important; scrollbar-color: rgb(255 255 255 / 0.18) transparent; }
body .jl-code .jl-t-c { color: #7c7c8a; font-style: italic; }
body .jl-code .jl-t-s { color: #a5e3a0; }
body .jl-code .jl-t-k { color: #ff8a5c; }
body .jl-code .jl-t-f { color: #8ab4ff; }
body .jl-code .jl-t-v { color: #d7a6ff; }
body .jl-code .jl-t-n { color: #ffd479; }

/* ---------- «Плитки» (Oleksandr picked variant 2 of three, 2026-11-17): dashboard, help, balance pill, account card ---------- */
.jl-dash { --jl-tile: #f5f5f6; --jl-tile-ic: #fff; --jl-ghost: rgb(255 79 18 / 0.09); --jl-grid: #fff; }
html.fp-dark .jl-dash { --jl-tile: #1d1d20; --jl-tile-ic: #2a2a2e; --jl-ghost: rgb(255 79 18 / 0.14); --jl-grid: #26262a; }
.jl-tile { background: var(--jl-tile); border-radius: 22px; padding: 18px 20px; min-width: 0; }
.jl-tile-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted-foreground, #52525b); }
.jl-tile-ic { width: 32px; height: 32px; border-radius: 999px; background: var(--jl-tile-ic); box-shadow:inset 0 0 0 1px var(--border, rgb(0 0 0 / 0.08)); display: grid; place-items: center; flex: none; color: var(--foreground, #18181b); }
.jl-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.jl-tile-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.jl-kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; }
.jl-kpi-n { font-size: 36px; font-weight: 650; letter-spacing: -0.035em; line-height: 1; margin: 16px 0 8px; display: flex; align-items: baseline; gap: 6px; }
.jl-kpi-n small { font-size: 13px; font-weight: 500; letter-spacing: 0; opacity: 0.6; }
.jl-kpi-foot { min-height: 30px; display: flex; flex-direction: column; justify-content: flex-end; }
.jl-spark { width: 100%; height: 24px; display: block; overflow: visible; }
.jl-spark polyline { fill: none; stroke: #ff4f12; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.jl-spark.is-empty path { stroke: currentColor; opacity: 0.18; stroke-width: 2; stroke-dasharray: 3 4; fill: none; vector-effect: non-scaling-stroke; }
.jl-dash .jl-bal { background: #18181b; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
html.fp-dark .jl-dash .jl-bal { background: #0e0e10; box-shadow:inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.jl-bal::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 79 18 / 0.55), transparent); }
.jl-bal .jl-tile-top { color: rgb(255 255 255 / 0.75); }
.jl-bal .jl-tile-ic { background: rgb(255 255 255 / 0.1); box-shadow:inset 0 0 0 1px rgb(255 255 255 / 0.12); color: #fff; }
.jl-bal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.jl-bal-foot small { font-size: 13px; color: rgb(255 255 255 / 0.6); }
.jl-bal-top { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; color: #18181b; font-size: 13px; font-weight: 600; white-space: nowrap; transition: opacity 0.15s; }
.jl-bal-top:hover { opacity: 0.9; }
.jl-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.jl-chart-empty { position: relative; height: 210px; }
.jl-ghost { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 6px; }
.jl-ghost b { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--jl-ghost), rgb(255 79 18 / 0.03)); }
.jl-wait { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--card, #fff); border: 1px solid var(--border, rgb(0 0 0 / 0.08)); box-shadow:none; }
.jl-wait i { width: 7px; height: 7px; border-radius: 9px; background: #ff4f12; box-shadow:0 0 0 4px rgb(255 79 18 / 0.15); animation: jl-wait 1.6s ease-in-out infinite; }
@keyframes jl-wait { 50% { box-shadow:0 0 0 7px rgb(255 79 18 / 0.06); } }
@media (prefers-reduced-motion: reduce) { .jl-wait i { animation: none; } }
.jl-donut-empty { position: relative; display: grid; place-items: center; height: 190px; }
.jl-donut-empty svg { height: 160px; }
.jl-donut-empty circle { fill: none; stroke: currentColor; opacity: 0.08; stroke-width: 16; stroke-dasharray: 6 5; }
.jl-donut-empty div { position: absolute; display: flex; flex-direction: column; align-items: center; }
.jl-donut-empty b { font-size: 26px; font-weight: 650; }
.jl-donut-empty small { font-size: 12.5px; color: var(--muted-foreground, #71717a); }
.jl-heat { display: grid; grid-template-columns: repeat(24, 1fr); gap: 5px; }
.jl-heat b { aspect-ratio: 1; border-radius: 5px; background: var(--jl-grid); }
.jl-hours { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--muted-foreground, #71717a); }
.jl-dash .jl-tile .kc-box { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow:none !important; }
@media (max-width: 767px) {
  .jl-kpis { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .jl-kpis .jl-bal { grid-column: 1 / -1; }
  .jl-kpis .jl-kpi { padding: 14px; border-radius: 18px; }
  .jl-kpis .jl-kpi .jl-tile-ic, .jl-kpis .jl-kpi .jl-kpi-foot > .mt-1 { display: none; }
  .jl-kpis .jl-kpi .jl-tile-top { font-size: 12.5px; }
  .jl-kpis .jl-kpi .jl-kpi-n { font-size: 24px; margin: 12px 0 6px; }
  .jl-kpi-n { font-size: 32px; }
  .jl-row { grid-template-columns: 1fr; }
  .jl-chart-empty { height: 170px; }
  .jl-ghost { gap: 3px; }
  .jl-heat { gap: 3px; }
  .jl-heat b { border-radius: 2px; }
}

/* Top bar balance: a black pill (coin, figure, «+» to top up). */
html body .fp-app .kc-topbar .fp-hcap:has(> .fp-balance:only-child) { background: transparent !important; padding: 0 !important; }
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button.fp-balance.fp-balance { height: 36px !important; font-size: 13.5px !important; gap: 7px; padding: 0 14px 0 12px !important; border-radius: 999px !important; background: #18181b !important; color: #fff !important; }
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button.fp-balance.fp-balance:has(.jl-pill-plus) { padding-right: 4px !important; }
html body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button.fp-balance.fp-balance:is(:hover, [data-state=open]) { background: #2a2a2d !important; }
html body .fp-app .kc-topbar .fp-balance svg.fp-balance-ic.fp-balance-ic.fp-balance-ic { width: 16px !important; height: 16px !important; color: #fff !important; }
html body .fp-app .kc-topbar .fp-balance .fp-balance-l { color: rgb(255 255 255 / 0.6) !important; }
html.fp-dark body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button.fp-balance.fp-balance { background: #f4f4f5 !important; color: #18181b !important; }
html.fp-dark body .fp-app .kc-topbar .fp-hcap.fp-hcap.fp-hcap > button.fp-balance.fp-balance:is(:hover, [data-state=open]) { background: #fff !important; }
html.fp-dark body .fp-app .kc-topbar .fp-balance svg.fp-balance-ic.fp-balance-ic.fp-balance-ic { color: #18181b !important; }
html.fp-dark body .fp-app .kc-topbar .fp-balance .fp-balance-l { color: #71717a !important; }
.jl-pill-plus { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: rgb(255 255 255 / 0.14); margin-left: 2px; }
.jl-pill-plus svg { width: 14px; height: 14px; }
html.fp-dark .jl-pill-plus { background: rgb(0 0 0 / 0.08); }

/* Account card at the bottom of the menu: a soft tile, the avatar inside an orange ring. */
html body .fp-app .jl-acct { padding: 8px !important; border-radius: 16px !important; background: rgb(0 0 0 / 0.045); }
html body .fp-app .jl-acct:hover, html body .fp-app .jl-acct[data-state=open] { background: rgb(0 0 0 / 0.07); }
html.fp-dark body .fp-app .jl-acct { background: rgb(255 255 255 / 0.06); }
html.fp-dark body .fp-app .jl-acct:hover, html.fp-dark body .fp-app .jl-acct[data-state=open] { background: rgb(255 255 255 / 0.09); }
.jl-acct > span:nth-child(2) > span:first-child { font-size: 14px !important; }

/* Help panel: a peach header with a big «Чем помочь?», the four questions as 2×2 tiles, a pill composer. */
.jl-help-top { background: linear-gradient(180deg, rgb(255 79 18 / 0.09), transparent); }
.jl-help-logo { width: 28px !important; height: 28px !important; }
.jl-help-x { background: rgb(255 255 255 / 0.8); box-shadow:none; }
.jl-help-x:hover { background: #fff; }
html.fp-dark .jl-help-x { background: rgb(255 255 255 / 0.08); box-shadow:none; }
.jl-help-tile:hover { background: var(--accent, rgb(0 0 0 / 0.03)); border-color: var(--border-strong, rgb(0 0 0 / 0.14)); }
.jl-help-or::before, .jl-help-or::after { content: ""; flex: 1; height: 1px; background: var(--border, rgb(0 0 0 / 0.08)); }
.jl-help-comp { display: flex; flex-wrap: wrap; align-items: flex-end; padding: 5px; }
.jl-help-comp > div.flex-wrap { flex-basis: 100%; padding: 6px 6px 4px !important; }
.jl-help-comp > textarea { order: 2; flex: 1; min-width: 0; min-height: 38px !important; padding: 9px 6px 8px !important; }
.jl-help-comp > div:last-child { display: contents; }
.jl-help-comp > div:last-child > button:not(.kl-send) { order: 1; width: 38px; height: 38px; }
.jl-help-comp .kl-send { order: 3; width: 38px !important; height: 38px !important; border-radius: 999px !important; margin-left: 0 !important; }

.jl-help-comp > textarea { background: transparent !important; box-shadow:none !important; }
html body .jl-help-comp .kl-send:not(:disabled) { background: #ff4f12 !important; color: #fff !important; }
.jl-dash .jl-row > .jl-tile:last-child > .flex.items-center { flex-direction: column; align-items: stretch; }
.jl-dash .jl-row > .jl-tile:last-child > .flex.items-center > div:first-child { margin: 0 auto; width: 150px; }

/* Loading (Oleksandr, 2026-11-17: «иконки анимации загрузки поменяй»): one thin spinning ring everywhere instead of
 * the dot square next to «Думает…» and in the chat list (FpStateIcon «working»), the studio's four dots (.spinner)
 * and the spoked/notched icons (svg.animate-spin). A faint track and an arc that fades in towards its head, in the
 * text colour; the thread glyph is orange. The old glyph's own dots/paths are hidden, the svg box draws the ring. */
html body .fp-dot-state.is-working, html body svg.spinner, html body svg.animate-spin {
  --jl-ring: 2px;
  border-radius: 50%; overflow: hidden !important;
  background: conic-gradient(from 0deg, transparent 0 30%, currentColor 70%, currentColor 75%, transparent 75.1%),
    color-mix(in srgb, currentColor 16%, transparent);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--jl-ring)), #000 calc(100% - var(--jl-ring) + 0.6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--jl-ring)), #000 calc(100% - var(--jl-ring) + 0.6px));
  animation: jl-ring 0.7s linear infinite !important;
}
html body .fp-dot-state.is-working { color: #ff4f12; transform: scale(0.88); }
html body .fp-dot-state.is-working > *, html body svg.spinner > *, html body svg.animate-spin > * { visibility: hidden; animation: none !important; }
html body .fp-dot-state.is-working[class*="size-[13px]"], html body .fp-dot-state.is-working.size-3\.5 { --jl-ring: 1.75px; }
@keyframes jl-ring { from { rotate: 0deg; } to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  html body .fp-dot-state.is-working, html body svg.spinner, html body svg.animate-spin { animation-duration: 1.6s !important; }
}

/* ── Round 4, variant 1 «Желейный узор» (keks, 2026-11-19: «как у KLINCH только светлый … больше акцента JELLEE»,
 * picked «1 только без аватара в центре» and «убрать все тени»; mockup /mnt/project-files/jellee/design/r4/v1-*.png).
 * Klinch's layout in light: a warm grey frame, the menu on it (search field, one white card with an orange «Новый чат»,
 * projects and chats, the «Безлимит DeepSeek» card at the foot), the page as a white panel with the account on the
 * right of its bar, and on a new chat a field of jelly glyphs with the Чат | Код switch inside the field.
 * No shadows anywhere on jellee.chat: scripts/build-worker.mjs strips them from the cabinet's CSS (brand.flat). */
html:not(.fp-dark) body:has(.fp-app), html:not(.fp-dark) body .fp-app.fp-app, html.dark:not(.fp-dark) body .fp-app.fp-app { background: #FAFAFA !important; }
html:not(.fp-dark) body .fp-app.fp-app .kc-main { border: 1px solid rgb(40 20 10 / 0.06) !important; border-radius: 22px !important; margin: 10px 10px 10px 0 !important; }
html:not(.fp-dark) body .fp-app.fp-app .kc-topbar { border-bottom: 0 !important; }
/* The menu: the search on its own, then the white card. */
.jl-nav-search { margin-bottom: 10px; }
html:not(.fp-dark) body .fp-app.fp-app .jl-nav-search label, html:not(.fp-dark) body .fp-app.fp-app .jl-nav-search .jl-search {
  background: #fff !important; box-shadow:inset 0 0 0 1px rgb(40 20 10 / 0.07) !important; border-radius: 12px !important;
}
html body .jl-nav-card.jl-nav-card .fp-side-item.jl-new, html body .jl-nav-card.jl-nav-card .fp-side-item.jl-new.is-on {
  background: #FF4F12 !important; color: #fff !important; font-weight: 600; margin-bottom: 4px;
}
.jl-new-ic { width: 21px; height: 21px; display: block; }
.jl-new-eye { fill: #FF4F12; }
/* Klinch's section titles: «Проекты ⌄», «Чаты ⌄» in sentence case. */
.fp-app .fp-side-sec, .fp-app .fp-side-chats [class*="uppercase"] { text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; color: #8C817A !important; font-weight: 500; }
html:not(.fp-dark) body .fp-app.fp-app .kc-chat-row.is-active { background: #fff !important; box-shadow:inset 0 0 0 1px rgb(40 20 10 / 0.06) !important; }
html:not(.fp-dark) body .fp-app.fp-app .kc-chat-row:not(.is-active):hover { background: rgb(255 255 255 / 0.6) !important; }
/* The foot: «Безлимит DeepSeek» (and the account card in the phone's menu). */
.jl-side-foot { display: flex; flex-direction: column; gap: 8px; }
.jl-promo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid rgb(40 20 10 / 0.06); color: #2B231F; transition: border-color 0.15s; }
.jl-promo:hover { border-color: rgb(255 79 18 / 0.35); }
.jl-promo-drop { width: 38px; height: 38px; flex: none; }
.jl-promo b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.jl-promo small { display: block; font-size: 12px; color: #8C817A; line-height: 1.3; }
html.fp-dark .jl-promo { background: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.08); color: #fafafa; }
html.fp-dark .jl-promo small { color: #a1a1aa; }
/* Top bar: the account tile on the right, its tokens in orange. */
html:not(.fp-dark) body .fp-app.fp-app .kc-topbar .kc-acct-tile .tabular-nums { color: #8C817A; }
/* The field: white, a thin warm border, no colour ring; Чат | Код inside its top right corner. */
html body .jl-home .fp-home-card.jl-modes-card { position: relative; }
html:not(.fp-dark) body .jl-home.jl-home .jl-modes-card .fp-composer.fp-composer .nc-prism.nc-prism.kl-glow {
  border: 1px solid #ECE6E1 !important; background: #fff !important; border-radius: 20px !important; padding: 8px !important;
}
html:not(.fp-dark) body .jl-home.jl-home .jl-modes-card .fp-composer.fp-composer .nc-prism.nc-prism.kl-glow:focus-within { border-color: #FFB596 !important; }
@media (min-width: 768px) {
  .jl-modes-card .jl-modes { position: absolute; top: 12px; right: 12px; margin: 0; z-index: 2; }
  html body .jl-home.jl-home .jl-modes-card .kl-c-input { padding-right: 200px !important; }
}
.jl-modes { background: #F5F1EE; border-radius: 11px; padding: 3px; gap: 2px; }
.jl-mode { height: 30px; padding: 0 11px; font-size: 13px; color: #8C817A; border-radius: 8px; }
.jl-mode svg { width: 14px; height: 14px; }
.jl-mode.is-on { background: #fff; color: #E8430A; }
html.fp-dark .jl-mode.is-on { color: #FF6A2B; }
.jl-under { margin-top: 14px; color: #8C817A; }
/* The menu's logo is the tile with «Jellee» next to it, as in the picked mockup (Klinch shows its wordmark there too);
 * elsewhere the tile stays alone (worker/brand.js lockupCss). */
html body .fp-side-head .fp-lockup.fp-lockup {
  height: 26px !important; aspect-ratio: 541 / 127 !important; width: auto !important;
  background-color: #17110E !important; background-image: url(/jellee/lockup-tile.svg) !important;
  background-size: 23.48% 100% !important; background-position: left center !important; background-repeat: no-repeat !important;
  -webkit-mask: url(/jellee/lockup-tile.svg) left center / 23.48% 100% no-repeat, url(/jellee/lockup-word.svg) left center / contain no-repeat !important;
  mask: url(/jellee/lockup-tile.svg) left center / 23.48% 100% no-repeat, url(/jellee/lockup-word.svg) left center / contain no-repeat !important;
}
html.fp-dark body .fp-side-head .fp-lockup.fp-lockup { background-color: #fafafa !important; }
.jl-new-body { fill: #fff; }
html body .fp-app .kc-topbar .kc-acct-tile { box-shadow:none !important; border: 0 !important; }
html body .jl-home .fp-home-card.jl-modes-card { display: flex; flex-direction: column; }
@media (max-width: 767px) {
  html:not(.fp-dark) body .fp-app.fp-app .kc-main { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
  .jl-modes-card .jl-modes { order: -1; margin: 0 auto 12px; }
}

/* ── Round 8 (keks, 2026-11-19: «можешь сделать дизайн как у Grok?», mockup 1 «идеально»; replaces rounds 5–7) ─────
 * Light and black-and-white: a #FAFAFA left panel (drop logo, «Поиск Ctrl K», quiet section rows, «История» by day,
 * the account at the bottom), a white page with «Безлимит DeepSeek» and «Приватный» pills top right, the drop and
 * «Jellee» big over one round field, round chips under it. console/JelleeNav.tsx, JelleeTop.tsx,
 * features/chat/JelleeChips.tsx, ProjectsNav JlRow/jlDays. */
html:not(.fp-dark) body:has(.fp-app), html:not(.fp-dark) body .fp-app.fp-app, html.dark:not(.fp-dark) body .fp-app.fp-app { background: #fff !important; }
@media (min-width: 768px) {
  html body .fp-app .kc-rail.fp-side:not(.is-folded) { width: 264px !important; }
  html:not(.fp-dark) body .fp-app.fp-app .kc-rail.fp-side { background: #FAFAFA !important; border-right: 1px solid #ECECEC !important; }
  html:not(.fp-dark) body .fp-app.fp-app .kc-main { margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow:none !important; }
  html.fp-dark body .fp-app.fp-app .kc-rail.fp-side { border-right: 1px solid rgb(255 255 255 / 0.07) !important; }
}
.jg-logo { width: 30px; height: 30px; color: #0D0D0D; }
.jg-eye { fill: #fff; }
html.fp-dark .jg-logo { color: #FF6A2B; } html.fp-dark .jg-eye { fill: #0B0B0C; }
.jg-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.jg-find { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; margin-bottom: 8px; border-radius: 999px; border: 1px solid #E6E6E6; background: #fff; color: #9A9A9A; font-size: 14px; text-align: left; transition: border-color 0.15s; }
.jg-find:hover { border-color: #CFCFCF; }
.jg-find svg { width: 18px; height: 18px; flex: none; color: #6A6A6A; }
.jg-find kbd { margin-left: auto; font-family: Inter, system-ui, sans-serif !important; background: none !important; border: 0 !important; box-shadow:none !important; font-size: 11.5px; font-weight: 500; color: #8A8A8A; }
.jg-i { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #2A2A2A; text-align: left; transition: background-color 0.15s; }
.jg-i:hover { background: #F1F1F1; }
.jg-i.is-on { background: #EDEDED; color: #0D0D0D; }
.jg-ic { display: grid; place-items: center; flex: none; color: #6A6A6A; }
.jg-ic svg { width: 19px; height: 19px; }
.jg-i.is-on .jg-ic { color: #0D0D0D; }
.is-folded .jg-l { display: none; }
.is-folded .jg-find, .is-folded .jg-i { width: 40px; padding: 0; justify-content: center; margin-left: auto; margin-right: auto; }
html.fp-dark .jg-find { background: rgb(255 255 255 / 0.03); border-color: rgb(255 255 255 / 0.1); }
html.fp-dark .jg-i { color: #D9D9DB; } html.fp-dark .jg-i:hover { background: rgb(255 255 255 / 0.05); }
html.fp-dark .jg-i.is-on { background: rgb(255 255 255 / 0.08); color: #fafafa; } html.fp-dark .jg-ic, html.fp-dark .jg-find svg { color: #9A9AA0; }
/* «История»: plain titles by day, the open one in grey. */
html body .fp-app.fp-app .fp-side-chats.fp-side-chats.fp-side-chats { border-top: 0 !important; margin-top: 14px !important; padding-top: 0 !important; }
.fp-side-chats > .px-3 { padding-left: 0 !important; padding-right: 0 !important; }
.jg-hist { margin: 4px 12px 2px; font-size: 12.5px; font-weight: 500; color: #8A8A8A; }
.jg-day { margin: 12px 12px 4px; font-size: 12.5px; font-weight: 500; color: #8A8A8A; }
html body .fp-side-chats .kc-chat-row.fp-chat-row.fp-chat-row.fp-chat-row, html body .fp-app.fp-app .fp-side-chats .kc-chat-row.fp-chat-row.fp-chat-row { height: 36px !important; border-radius: 999px !important; padding-left: 12px !important; font-size: 13.5px !important; color: #2A2A2A !important; }
html:not(.fp-dark) body .fp-app.fp-app .fp-side-chats .kc-chat-row.is-active, html:not(.fp-dark) body .fp-side-chats .kc-chat-row.is-active { background: #EDEDED !important; box-shadow:none !important; color: #0D0D0D !important; }
html:not(.fp-dark) body .fp-side-chats .kc-chat-row:hover { background: #F1F1F1 !important; }
html.fp-dark body .fp-side-chats .kc-chat-row.fp-chat-row.fp-chat-row.fp-chat-row { color: #D9D9DB !important; }
/* The account at the bottom: avatar, nickname, tokens. */
.jl-side-foot { padding-top: 8px; }
html body .fp-app .jl-acct.jl-acct { border-radius: 999px !important; padding: 8px !important; background: transparent !important; box-shadow:none !important; border: 0 !important; }
html body .fp-app .jl-acct.jl-acct:hover, html body .fp-app .jl-acct.jl-acct[data-state="open"] { background: #F1F1F1 !important; }
/* Top right: two quiet pills. */
.jg-top { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.jg-pill { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #E8E8E8; background: #fff; font-size: 13px; font-weight: 500; color: #2A2A2A; white-space: nowrap; transition: border-color 0.15s, background-color 0.15s; }
.jg-pill svg { width: 16px; height: 16px; color: #0D0D0D; }
.jg-pill:hover:not(:disabled) { border-color: #CFCFCF; }
.jg-pill.is-on { background: #0D0D0D; border-color: #0D0D0D; color: #fff; } .jg-pill.is-on svg { color: #fff; }
.jg-pill:disabled { cursor: default; }
html.fp-dark .jg-pill { background: rgb(255 255 255 / 0.03); border-color: rgb(255 255 255 / 0.1); color: #D9D9DB; } html.fp-dark .jg-pill svg { color: #FF6A2B; }
html.fp-dark .jg-pill.is-on { background: #F4F4F5; color: #0B0B0C; } html.fp-dark .jg-pill.is-on svg { color: #0B0B0C; }
@media (max-width: 767px) { .jg-pill span { display: none; } .jg-pill { width: 36px; padding: 0; justify-content: center; } }
/* The new chat: the drop and «Jellee», one round field, round chips. */
html body .jl-home .fp-home-card.fp-home-card.jg-home { background: transparent !important; border: 0 !important; box-shadow:none !important; padding: 0 !important; display: flex; flex-direction: column; align-items: center; max-width: 780px; margin: 0 auto; }
.jg-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 34px; color: #0D0D0D; }
.jg-brand-drop { width: 60px; height: 60px; }
.jg-brand-word { height: 46px; aspect-ratio: 402 / 127; background: currentColor; -webkit-mask: url(/jellee/lockup-word.svg) right center / auto 100% no-repeat; mask: url(/jellee/lockup-word.svg) right center / auto 100% no-repeat; }
html.fp-dark .jg-brand { color: #F4F4F5; } html.fp-dark .jg-brand-drop { color: #FF6A2B; }
.jg-home > :not(.jg-brand):not(.jg-chips) { width: 100%; }
html body .fp-app .jg-home .kl-composer-hero.kl-composer-hero.kl-composer-hero, html body .fp-app.fp-app .kc-main .nc-prism.kl-glow.kl-glow { border-radius: 30px !important; border: 1px solid #DEDEDE !important; background: #fff !important; box-shadow:none !important; padding: 10px 12px 12px 14px !important; }
html body .fp-app .jg-home .kl-composer-hero .kl-c-input { font-size: 16px !important; padding: 8px 8px 4px !important; min-height: 48px; }
html.fp-dark body .fp-app .jg-home .kl-composer-hero.kl-composer-hero.kl-composer-hero, html.fp-dark body .fp-app.fp-app .kc-main .nc-prism.kl-glow.kl-glow { background: #151517 !important; border-color: #2E2E32 !important; }
.jg-clip { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid #E8E8E8; color: #4A4A4A; transition: border-color 0.15s, color 0.15s; }
.jg-clip:hover:not(:disabled) { border-color: #CFCFCF; color: #0D0D0D; }
.jg-clip svg { width: 19px; height: 19px; }
html.fp-dark .jg-clip { border-color: rgb(255 255 255 / 0.12); color: #C9C9CD; }
html body .fp-app .kl-c-bar .kc-model-chip { height: 38px !important; padding: 0 14px !important; border-radius: 999px !important; border: 1px solid #E8E8E8 !important; color: #2A2A2A !important; font-weight: 500 !important; box-shadow:none !important; }
html.fp-dark body .fp-app .kl-c-bar .kc-model-chip { border-color: rgb(255 255 255 / 0.12) !important; color: #D9D9DB !important; }
html:not(.fp-dark) body .fp-app.fp-app button.kl-send.kl-send.kl-send, html:not(.fp-dark) body .fp-app.fp-app button.kl-send.kl-send.kl-send:disabled { width: 40px !important; height: 40px !important; border-radius: 50% !important; background: #0D0D0D !important; color: #fff !important; opacity: 1 !important; }
html:not(.fp-dark) body .fp-app.fp-app button.kl-send.kl-send.kl-send:hover:not(:disabled) { background: #333 !important; }
.jg-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.jg-chip { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid #E8E8E8; background: #fff; font-size: 13.5px; font-weight: 500; color: #2A2A2A; transition: border-color 0.15s, background-color 0.15s; }
.jg-chip svg { width: 16px; height: 16px; color: #6A6A6A; }
.jg-chip:hover { border-color: #CFCFCF; }
.jg-chip.is-on { background: #0D0D0D; border-color: #0D0D0D; color: #fff; } .jg-chip.is-on svg { color: #fff; }
html.fp-dark .jg-chip { background: rgb(255 255 255 / 0.03); border-color: rgb(255 255 255 / 0.1); color: #D9D9DB; }
html.fp-dark .jg-chip.is-on { background: #F4F4F5; color: #0B0B0C; } html.fp-dark .jg-chip.is-on svg { color: #0B0B0C; }
.jg-foot { padding: 14px 0 18px; text-align: center; font-size: 12px; color: #8A8A8A; }
.jg-foot button { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #D0D0D0; }
.jg-foot button:hover { color: #0D0D0D; }
@media (max-width: 767px) { .jg-brand { margin-bottom: 22px; } .jg-brand-drop { width: 44px; height: 44px; } .jg-brand-word { height: 34px; } .jg-foot button, .jg-sep { display: none; } }
.jl-title { font-size: 15px; font-weight: 600; color: #0D0D0D; }
html.fp-dark .jl-title { color: #fafafa; }
/* ── Round 9 (keks, 2026-11-21: «Сделай дизайн как у Kimi», variant 1; mockups in project files jellee/design/r9/) ────
 * A grey #F7F7F7 menu (the black tile logo, a white «Новый чат» card, quiet rows Поиск / Библиотека / API, «Проекты»
 * with its «+» on the heading's line and roomy rows, «Чаты» as one plain list, the account at the bottom) and the page
 * as a white panel inset from the edges. «Безлимит DeepSeek» in the middle of the bar, one field with a grey tray
 * under it, chips. No «Jellee» over the field, no «Голос». The guest page and the sign-in card (.jk-*) are
 * features/auth/JelleeLogin.tsx. Overrides round 8 above. */
@media (min-width: 768px) {
  html:not(.fp-dark) body:has(.fp-app), html:not(.fp-dark) body .fp-app.fp-app, html.dark:not(.fp-dark) body .fp-app.fp-app { background: #F7F7F7 !important; }
  html body .fp-app .kc-rail.fp-side:not(.is-folded) { width: 248px !important; }
  html:not(.fp-dark) body .fp-app.fp-app .kc-rail.fp-side { background: #F7F7F7 !important; border-right: 0 !important; }
  html:not(.fp-dark) body .fp-app.fp-app .kc-main { margin: 8px 8px 8px 0 !important; border: 1px solid #ECECEE !important; border-radius: 14px !important; background: #fff !important; box-shadow:none !important; overflow: hidden; }
}
.jg-logo { width: 22px; height: 22px; color: #0D0D0D; }
html.fp-dark .jg-logo { color: #F4F4F5; }
.jg-nav { gap: 1px; margin-top: 4px; }
.jk-new { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 12px; margin-bottom: 10px; border-radius: 12px; background: #fff; border: 1px solid #E9E9EB; color: #111; font-size: 14.5px; font-weight: 600; text-align: left; transition: border-color 0.15s; }
.jk-new:hover { border-color: #D6D6DA; }
.jk-new svg { width: 19px; height: 19px; flex: none; }
.is-folded .jk-new { width: 40px; padding: 0; justify-content: center; margin-left: auto; margin-right: auto; }
.jg-i { height: 38px; border-radius: 10px; gap: 10px; padding: 0 10px; font-weight: 400; color: #262626; }
.jg-i:hover { background: #EEEEF0; }
.jg-i.is-on { background: #EAEAEC; color: #111; }
.jg-ic { color: #55555A; } .jg-ic svg { width: 18px; height: 18px; }
html body .jg-kbd { margin-left: auto; font: 500 11px Inter, system-ui, sans-serif !important; color: #8E8E93 !important; background: #EAEAEC !important; border: 0 !important; box-shadow:none !important; border-radius: 5px !important; padding: 2px 6px !important; }
.is-folded .jg-kbd { display: none; }
html.fp-dark .jk-new { background: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.1); color: #fafafa; }
html.fp-dark .jg-i:hover { background: rgb(255 255 255 / 0.05); } html.fp-dark .jg-kbd { background: rgb(255 255 255 / 0.08); }
/* Section headings: «Проекты» with its «+» on the same line, «Чаты». */
html body .fp-app .fp-side-chats .jl-sec { margin-top: 18px !important; height: 28px; display: flex; align-items: center !important; }
html body .fp-app .fp-side-chats .jl-sec > button:first-child { height: 28px !important; margin: 0 !important; line-height: 28px !important; padding: 0 10px !important; font-size: 13px !important; font-weight: 400 !important; color: #8E8E93 !important; }
html body .fp-app .fp-side-chats .jl-sec > :last-child:not(:first-child), html body .fp-app .fp-side-chats .jl-sec [aria-label] { align-self: center; }
html body .fp-app .fp-side-chats .jl-sec button.size-7 { width: 28px !important; height: 28px !important; margin: 0 4px 0 0 !important; display: grid; place-items: center; align-self: center !important; }
.jg-hist { margin: 18px 10px 4px !important; font-size: 13px !important; font-weight: 400 !important; color: #8E8E93 !important; }
html body .fp-app .fp-side-chats .jl-proj { height: 38px !important; border-radius: 10px !important; padding-left: 4px !important; gap: 6px !important; font-size: 14px !important; color: #262626 !important; }
html body .fp-side-chats .kc-chat-row.fp-chat-row.fp-chat-row.fp-chat-row, html body .fp-app.fp-app .fp-side-chats .kc-chat-row.fp-chat-row.fp-chat-row { height: 38px !important; border-radius: 10px !important; padding-left: 10px !important; font-size: 14px !important; color: #262626 !important; }
html:not(.fp-dark) body .fp-app.fp-app .fp-side-chats .kc-chat-row.is-active, html:not(.fp-dark) body .fp-side-chats .kc-chat-row.is-active { background: #EAEAEC !important; }
html:not(.fp-dark) body .fp-side-chats .kc-chat-row:hover, html:not(.fp-dark) body .fp-app .fp-side-chats .jl-proj:hover { background: #EEEEF0 !important; }
html body .fp-app .jl-acct.jl-acct { border-radius: 12px !important; }
html body .fp-app .jl-acct.jl-acct:hover, html body .fp-app .jl-acct.jl-acct[data-state="open"] { background: #EEEEF0 !important; }
/* The bar: «Безлимит DeepSeek» in the middle (grey, no border), «Приватный» on the right. */
@media (min-width: 768px) {
  html body .fp-app .kc-main .jk-unlim { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 5; }
}
.jk-unlim, html body .jk-unlim, html:not(.fp-dark) body .fp-app.fp-app .kc-topbar .ml-auto a.jg-pill.jk-unlim.jk-unlim.jk-unlim { background: #F2F2F4 !important; border-color: transparent !important; color: #262626 !important; box-shadow:none !important; }
.jk-unlim:hover, html:not(.fp-dark) body .fp-app.fp-app .kc-topbar .ml-auto a.jg-pill.jk-unlim.jk-unlim.jk-unlim:hover { background: #EAEAEC !important; }
html.fp-dark .jk-unlim { background: rgb(255 255 255 / 0.06) !important; color: #D9D9DB; }
/* The field: a 20px rounded box with «+», the model as text, a round send; the grey tray tucked under it. */
html body .fp-app .jg-home .kl-composer-hero.kl-composer-hero.kl-composer-hero, html body .fp-app.fp-app .kc-main .nc-prism.kl-glow.kl-glow { position: relative; z-index: 2; border-radius: 20px !important; border: 1px solid #E3E3E6 !important; box-shadow:none !important; padding: 8px 12px 10px 12px !important; }
html body .fp-app .jg-home .kl-composer-hero .kl-c-input { font-size: 15.5px !important; min-height: 52px; }
.jg-clip { width: 34px; height: 34px; border: 0; border-radius: 10px; color: #3A3A3C; }
.jg-clip:hover:not(:disabled) { background: #F2F2F4; }
.jg-clip svg { width: 20px; height: 20px; }
html body .fp-app .kl-c-bar .kc-model-chip { height: 34px !important; padding: 0 10px !important; border: 0 !important; border-radius: 10px !important; font-weight: 400 !important; }
html body .fp-app .kl-c-bar .kc-model-chip:hover { background: #F2F2F4 !important; }
html:not(.fp-dark) body .fp-app.fp-app button.kl-send.kl-send.kl-send, html:not(.fp-dark) body .fp-app.fp-app button.kl-send.kl-send.kl-send:disabled { width: 36px !important; height: 36px !important; }
html:not(.fp-dark) body .fp-app.fp-app button.kl-send.kl-send.kl-send:disabled { background: #E6E6E8 !important; color: #fff !important; }
/* The tray is as wide as the field and slides under its bottom edge (2026-11-21 «че тут поплыло»: it was 20px narrower
   and painted over the field, because the field's wrapper .fp-composer is `isolate` at z 0 while the tray had z 1). */
html body .fp-app .jg-home .fp-composer { z-index: 2; }
.jk-tray { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; width: 100% !important; margin: -20px 0 0; padding: 32px 20px 12px; border: 1px solid #EDEDF0; border-top: 0; border-radius: 0 0 20px 20px; background: #F6F6F7; font-size: 14px; color: #262626; }
.jk-tray button { display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: color 0.15s; }
.jk-tray button:hover { color: #000; }
.jk-tray svg { width: 17px; height: 17px; color: #55555A; flex: none; }
.jk-sp { flex: 1; }
html.fp-dark .jk-tray { background: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.06); color: #D9D9DB; }
@media (max-width: 767px) { .jk-tray { gap: 14px; font-size: 13px; padding: 30px 16px 11px; } .jk-tray-end { display: none !important; } }
html body .jl-home .fp-home-card.jg-home .jg-chips { margin-top: 28px; gap: 10px; }
.jg-chip { white-space: nowrap; flex: none; height: 36px; padding: 0 13px; font-weight: 400; font-size: 14px; border-color: #E9E9EB; color: #262626; }
.jg-chip svg { color: #55555A; }
.jg-foot { font-size: 13px; color: #8E8E93; }

/* The guest page (jellee.chat for someone not signed in, as Kimi's): the cabinet's look with no stores behind it. */
.jk-guest { position: fixed; inset: 0; display: flex; background: #F7F7F7; color: #111; font-family: Inter, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.jk-side { width: 248px; flex: none; display: flex; flex-direction: column; padding: 14px 10px 12px; }
.jk-side-top { height: 36px; display: flex; align-items: center; margin: 0 6px 14px; }
.jk-logo { display: block; width: 22px; height: 22px; } .jk-logo svg { width: 100%; height: 100%; display: block; color: #0D0D0D; }
.jk-nav { display: flex; flex-direction: column; gap: 1px; }
.jk-row { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px; font-size: 14px; color: #262626; text-align: left; width: 100%; }
.jk-row svg { color: #55555A; flex: none; }
.jk-row:hover { background: #EEEEF0; }
.jk-h { margin: 18px 10px 4px; font-size: 13px; color: #8E8E93; }
.jk-empty { padding: 8px 10px; font-size: 14px; color: #8E8E93; }
.jk-grow { flex: 1; }
.jk-me { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border-radius: 12px; font-size: 14.5px; font-weight: 500; text-align: left; }
.jk-me:hover { background: #EEEEF0; }
.jk-me-ava { width: 30px; height: 30px; border-radius: 50%; background: #E6E6E8; display: grid; place-items: center; color: #8E8E93; }
.jk-main { position: relative; flex: 1; margin: 8px 8px 8px 0; background: #fff; border: 1px solid #ECECEE; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.jk-bar { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 14px; }
.jk-logo-m { display: none; }
.jk-bar .jk-unlim { position: absolute; left: 50%; top: 13px; transform: translateX(-50%); }
.jk-btn { height: 36px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; background: #F2F2F4; color: #111; transition: background-color 0.15s; }
.jk-btn:hover { background: #EAEAEC; }
.jk-btn-dark { background: #0D0D0D; color: #fff; } .jk-btn-dark:hover { background: #2A2A2A; }
.jk-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 16px 60px; }
.jk-field { position: relative; z-index: 2; width: min(768px, 100%); border-radius: 20px; border: 1px solid #E3E3E6; background: #fff; padding: 14px 12px 10px 18px; box-shadow:none; }
.jk-field textarea { width: 100%; resize: none; border: 0; outline: 0; background: transparent; font: 15.5px/1.5 Inter, system-ui, sans-serif; color: #111; min-height: 48px; }
.jk-field textarea::placeholder { color: #9A9A9F; }
.jk-field-bar { display: flex; align-items: center; gap: 8px; }
.jk-ib { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #3A3A3C; } .jk-ib:hover { background: #F2F2F4; }
.jk-send { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #E6E6E8; color: #fff; transition: background-color 0.15s; }
.jk-send[data-on] { background: #0D0D0D; }
.jk-stage .jk-tray { width: min(768px, 100%) !important; }
.jk-stage .jg-chips { margin-top: 28px; gap: 10px; }
.jk-chip { white-space: nowrap; flex: none; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid #E9E9EB; background: #fff; font-size: 14px; color: #262626; } .jk-chip svg { color: #55555A; } .jk-chip:hover { border-color: #D0D0D4; }
.jk-foot { padding: 14px 16px 18px; text-align: center; font-size: 13px; color: #8E8E93; } .jk-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #D0D0D0; } .jk-foot a:hover { color: #111; }
@media (max-width: 767px) {
  .jk-side { display: none; } .jk-main { margin: 0; border: 0; border-radius: 0; } .jk-logo-m { display: block; }
  .jk-bar .jk-unlim { display: none; } .jk-stage { justify-content: flex-end; padding-bottom: 20px; } .jk-stage .jg-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; }
}
/* The sign-in card (mockup k1-login): the dot drop on the left, «Войти по ключу» on the right. */
.jk-dim { position: fixed; inset: 0; z-index: 50; background: rgb(20 20 20 / 0.34); display: grid; place-items: center; padding: 16px; animation: jk-in 0.18s ease-out; }
@keyframes jk-in { from { opacity: 0; } }
.jk-card { position: relative; width: min(840px, 100%); min-height: 560px; border-radius: 18px; background: #fff; display: flex; padding: 8px; box-shadow:none; }
.jk-art { width: 420px; flex: none; border-radius: 12px; background: #FAFAF8; display: grid; place-items: center; color: #111; }
.jk-dots { width: 330px; height: 330px; }
.jk-form { flex: 1; padding: 64px 40px 22px; display: flex; flex-direction: column; color: #111; }
.jk-card .jk-form h2 { font-size: 26px; font-weight: 600 !important; letter-spacing: -0.02em; text-align: center; margin: 0 0 36px; }
.jk-inp { height: 48px; border-radius: 12px; background: #F4F4F5; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #8E8E93; margin-bottom: 14px; transition: box-shadow 0.15s; }
.jk-inp:focus-within { box-shadow:0 0 0 1.5px #0D0D0D; }
.jk-inp input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; color: #111; }
.jk-inp input::placeholder { color: #8E8E93; }
.jk-go { width: 100%; height: 48px; border-radius: 12px; background: #0D0D0D; color: #fff; font-size: 15px; font-weight: 500; transition: opacity 0.15s; }
.jk-go:disabled { opacity: 0.35; cursor: not-allowed; }
.jk-or { display: flex; align-items: center; gap: 12px; color: #9A9AA0; font-size: 12.5px; margin: 22px 0; } .jk-or::before, .jk-or::after { content: ""; flex: 1; height: 1px; background: #ECECEE; }
.jk-alt { height: 48px; border-radius: 12px; background: #F4F4F5; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 15px; font-weight: 500; color: #111; } .jk-alt:hover { background: #ECECEE; } .jk-alt svg { color: #FF4F12; }
.jk-hint { margin-top: 10px; text-align: center; font-size: 13px; color: #8E8E93; }
.jk-legal { margin-top: auto; padding-top: 24px; text-align: center; font-size: 12.5px; line-height: 1.7; color: #9A9AA0; } .jk-legal a { color: #3A3A3C; } .jk-legal a:hover { text-decoration: underline; }
.jk-err { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: #FDEEEE; color: #A12A2A; font-size: 13px; }
.jk-x { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #9A9AA0; } .jk-x:hover { background: #F2F2F4; color: #111; }
@media (max-width: 767px) {
  .jk-card { flex-direction: column; min-height: 0; } .jk-art { width: auto; height: 180px; } .jk-dots { width: 160px; height: 160px; } .jk-form { padding: 28px 16px 14px; } .jk-form h2 { margin-bottom: 22px; }
}
.jl-empty { padding: 8px 10px; font-size: 14px; color: #8E8E93; }
/* The name next to the logo (keks, 2026-11-21: «а где возле лого надпись Jellee?»): the wordmark in the text colour. */
.jk-brand { display: flex; align-items: center; gap: 9px; }
html.fp-dark .is-folded 
/* The guest's free chat on the home page (keks, 2026-11-21: «оставь на лендосе фри чат пусть тестят»). */
.jk-stage.is-chat { justify-content: flex-end; padding-bottom: 24px; min-height: 0; }
.jk-stage.is-chat .jk-tray, .jk-stage.is-chat .jg-chips { display: none !important; }
.jk-log { width: min(768px, 100%); flex: 1; min-height: 0; overflow-y: auto; padding: 24px 4px 16px; display: flex; flex-direction: column; gap: 18px; }
.jk-msg { margin: 0; font-size: 15px; line-height: 1.6; color: #111; white-space: pre-wrap; word-break: break-word; }
.jk-msg p { margin: 0; }
.jk-msg p + p { margin-top: 8px; }
.jk-u { align-self: flex-end; max-width: 80%; background: #F2F2F4; border-radius: 18px; padding: 9px 15px; }
.jk-a { align-self: flex-start; max-width: 100%; }
.jk-think { color: #8A8A8F; }
.jk-err { color: #5D5D63; }
.jk-err button { font: inherit; color: #0D0D0D; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.jk-send:disabled { opacity: .5; cursor: default; }

/* The sign-in drop, animated (keks, 2026-11-21: «анимируй его и контуры убери»): the dots swell in a slow diagonal wave,
 * the dashes on the left drift like a breeze (JelleeDots.tsx sets each one's delay). */
.jd-dot { transform-box: fill-box; transform-origin: center; animation: jd-dot 3.2s ease-in-out infinite; }
@keyframes jd-dot { 0%, 100% { transform: scale(0.72); } 50% { transform: scale(1.12); } }
.jd-dash { animation: jd-dash 3.3s ease-in-out infinite; }
@keyframes jd-dash { 0%, 100% { transform: translateX(0); opacity: 0.35; } 50% { transform: translateX(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .jd-dot, .jd-dash { animation: none; } }
.jk-a { white-space: normal; }
.jk-a p { white-space: pre-wrap; }
.jk-a ul, .jk-a ol { margin: 8px 0; padding-left: 22px; } .jk-a ul { list-style: disc; } .jk-a ol { list-style: decimal; } .jk-a li + li { margin-top: 4px; }
.jk-a h4 { margin: 14px 0 6px; font-size: 16px; font-weight: 600; }
.jk-a strong { font-weight: 600; }
.jk-a code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; background: #F2F2F4; border-radius: 5px; padding: 1px 5px; }
.jk-a pre { margin: 10px 0; padding: 12px 14px; background: #F6F6F7; border: 1px solid #ECECEE; border-radius: 12px; overflow-x: auto; }
.jk-a pre code { background: none; padding: 0; font-size: 13px; white-space: pre; }
.jk-a a { color: #0D0D0D; text-decoration: underline; }

/* freepay.space cabinet after Agent Kit (agent-kit.framer.ai; keks, 2026-12-01: «вот тебе фул кит — делай по нему»),
 * over the z.ai layout chosen earlier the same day (variant 2: heading and quick buttons in the middle, the field at the
 * bottom). Appended by scripts/build-worker.mjs after the «jellee» look's additions, on freepay.space only
 * (worker/brand.js BRANDS.freepay.cabinetCss); jellee.chat and Klinch never get it.
 * From the kit's design system (light values): bg #FFFFFF / #FAFAFA / #F5F5F5 / #EBEBEB, border #EBEBEB, text #090909 /
 * #3B3B3B / #6C6C6C, brand sky #0099FF (8% / 16% tints), Geist for everything and Geist Mono only for taglines and short
 * labels («[ … ]», uppercase), radii 8 / 12 / 16, flat surfaces with hairlines. As in the kit's Atria template: a flat
 * menu column with plain rows, the open one on #F5F5F5, a breadcrumb in the top bar.
 * Not brought back, from earlier rounds: no line under the top bar (keks: «полоска калл»), no serif, no picture behind the
 * heading, no focus rings in the menu. The dark theme (html.fp-dark) keeps the look it had.
 * Fonts: Geist, Geist Mono (SIL OFL), latin and cyrillic, self-hosted at /freepay/fonts/. */
@font-face{font-family:'Geist';font-style:normal;font-weight:400 600;font-display:swap;src:url(/freepay/fonts/geist-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Geist';font-style:normal;font-weight:400 600;font-display:swap;src:url(/freepay/fonts/geist-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(/freepay/fonts/geist-mono-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(/freepay/fonts/geist-mono-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
html:not(.fp-dark) body .fp-app.fp-app.fp-app {
  --ak-bg:#fff; --ak-bg2:#fafafa; --ak-bg3:#f5f5f5; --ak-bg4:#ebebeb; --ak-line:#ebebeb;
  --ak-ink:#090909; --ak-ink2:#3b3b3b; --ak-ink3:#6c6c6c; --ak-sky:#0099ff;
  background:var(--ak-bg2) !important;
}
html:not(.fp-dark) body:has(.fp-app) { background:#fafafa !important; }
.fp-app, .fp-app button, .fp-app input, .fp-app textarea { font-family:'Geist', ui-sans-serif, system-ui, sans-serif !important; }
.fp-app code, .fp-app pre, .fp-app .font-mono { font-family:'Geist Mono', ui-monospace, monospace !important; }

/* window: the menu column on #FAFAFA, a hairline, the page white and flat */
html body .fp-app.fp-app.fp-app .fp-side.fp-side { background:var(--ak-bg2) !important; border:0 !important; border-right:1px solid var(--ak-line) !important; }
html:not(.fp-dark) body .fp-app.fp-app .kc-main { background:var(--ak-bg) !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; margin:0 !important; }
html:not(.fp-dark) body .fp-app.fp-app .kc-topbar { border-bottom:0 !important; }

/* top bar: «Чат / название» like «Atria / Workspace» */
.fp-app .jl-title { display:flex !important; align-items:center; gap:6px; font-size:15px !important; font-weight:400 !important; color:var(--ak-ink) !important; letter-spacing:-.01em; }
.fp-app .jl-title::before { content:"Чат /"; color:var(--ak-ink3); flex:none; }
html[lang]:not([lang="ru"]) .fp-app .jl-title::before { content:"Chat /"; }
html:not(.fp-dark) body .fp-app.fp-app .jg-top .jg-pill.jg-pill { background:var(--ak-ink) !important; color:#fff !important; border:0 !important; height:36px !important; border-radius:12px !important; font-size:14px; font-weight:500; padding:0 14px !important; box-shadow:none !important; }
html:not(.fp-dark) body .fp-app.fp-app .jg-top .jg-pill svg, html:not(.fp-dark) body .fp-app.fp-app .jg-top .jg-pill span { color:#fff !important; }
html:not(.fp-dark) body .fp-app.fp-app .jl-side-btn.jl-side-btn { border:0 !important; background:transparent !important; box-shadow:none !important; border-radius:10px !important; }
html:not(.fp-dark) body .fp-app.fp-app .jl-side-btn.jl-side-btn:hover { background:var(--ak-bg3) !important; }

/* menu: plain rows, the open one on #F5F5F5, section titles as mono taglines */
.fp-app .fp-side .scroll-thin { padding-left:12px !important; padding-right:12px !important; }
html body .fp-app.fp-app .jg-nav .jg-i, html body .fp-app.fp-app .jg-nav .jk-new.jk-new {
  height:38px !important; padding:0 12px !important; gap:10px !important; border-radius:8px !important; font-size:15px !important; font-weight:400;
  color:var(--ak-ink2) !important; background:transparent !important; border:0 !important; box-shadow:none !important; }
html body .fp-app.fp-app .jg-nav .jg-i:hover, html body .fp-app.fp-app .jg-nav .jk-new.jk-new:hover { background:var(--ak-bg3) !important; color:var(--ak-ink) !important; }
html body .fp-app.fp-app .jg-nav .jg-i.is-on, html body .fp-app.fp-app .jg-nav .jk-new.jk-new.is-on, html body .fp-app.fp-app .jg-nav [aria-current="page"] { background:var(--ak-bg4) !important; color:var(--ak-ink) !important; }
html body .fp-app.fp-app .jg-nav svg { width:17px; height:17px; color:var(--ak-ink3) !important; }
html body .fp-app.fp-app .fp-side .kc-sec-head, html body .fp-app.fp-app .fp-side .kc-sec-head *, html body .fp-app.fp-app .fp-side .jg-hist {
  font-family:'Geist Mono', ui-monospace, monospace !important; font-size:11.5px !important; font-weight:400 !important; letter-spacing:.06em !important;
  text-transform:uppercase !important; color:var(--ak-ink3) !important; }
html body .fp-app.fp-app .kc-chat-row, html body .fp-app.fp-app .kc-proj-row { height:36px !important; border-radius:8px !important; font-size:14.5px !important; color:var(--ak-ink2) !important; background:transparent !important; box-shadow:none !important; }
html body .fp-app.fp-app .kc-chat-row:hover, html body .fp-app.fp-app .kc-proj-row:hover { background:var(--ak-bg3) !important; color:var(--ak-ink) !important; }
html body .fp-app.fp-app .kc-chat-row.kc-chat-row.is-active { background:var(--ak-bg4) !important; color:var(--ak-ink) !important; box-shadow:none !important; }
html body .fp-app.fp-app .fp-side-foot { border-top:1px solid var(--ak-line); }
html body .fp-app.fp-app .jl-acct { background:transparent !important; box-shadow:none !important; border-radius:10px !important; }
html body .fp-app.fp-app .jl-acct:hover { background:var(--ak-bg3) !important; }
.fp-app .jg-nav a:focus-visible, .fp-app .jg-nav button:focus-visible, .fp-app .kc-chat-row:focus-within { outline:none !important; box-shadow:none !important; }

/* field: white card, hairline, 16px, the kit's level-1 elevation */
html:not(.fp-dark) body .fp-app .fp-composer .nc-prism.nc-prism, html:not(.fp-dark) body .jl-home.jl-home .jl-modes-card .fp-composer.fp-composer .nc-prism.nc-prism.kl-glow {
  background:#fff !important; border:1px solid var(--ak-line) !important; border-radius:16px !important; box-shadow:none !important; padding:4px !important; }
.fp-app .fp-composer textarea { font-size:15px !important; }
.fp-app .fp-composer textarea::placeholder { color:#939393 !important; }
html:not(.fp-dark) body .fp-app .jk-tray { background:var(--ak-bg2) !important; border-color:var(--ak-line) !important; }

/* messages */
html:not(.fp-dark) .fp-app .kc-user-bubble { background:var(--ak-bg3) !important; border:0 !important; border-radius:12px !important; padding:10px 14px !important; }
html:not(.fp-dark) .fp-app .kc-user-bubble .whitespace-pre-wrap { font-size:15px !important; line-height:1.6 !important; }
.fp-app .kc-ai-msg .prose-nc { font-size:15.5px; line-height:1.7; color:var(--ak-ink); }
.fp-app .bg-background.px-3 { background:#fff !important; }

/* «Freepay рядом» panel */
html:not(.fp-dark) body .fp-app.fp-app .jl-side { background:var(--ak-bg2) !important; border:0 !important; border-left:1px solid var(--ak-line) !important; border-radius:0 !important; box-shadow:none !important; margin:0 !important; }

/* new chat: tagline, big light heading, quick buttons as sky tags like the kit's «/skill» ones; the field at the bottom */
.jl-home > div > .flex-1:first-child { flex:1 1 0 !important; }
.jl-home > div > .flex-\[1\.25\] { display:none; }
.jl-home .jg-home { display:flex; flex-direction:column; flex:3 1 0; width:100%; max-width:760px !important; margin:0 auto; }
.zai-hello { order:-2; text-align:center; margin:0 0 28px; }
.zai-tag { margin:0 0 18px; font:400 13px/1 'Geist Mono', ui-monospace, monospace; letter-spacing:.06em; text-transform:uppercase; color:#6c6c6c; }
.zai-title { margin:0; font:400 48px/1.08 'Geist', ui-sans-serif, system-ui, sans-serif; letter-spacing:-.035em; color:#090909; }
html.fp-dark .zai-title { color:#fafafa; }
html.fp-dark .zai-tag { color:#939393; }
html body .fp-app.fp-app .jl-home .jg-home .jg-chips.jg-chips { order:-1; justify-content:center !important; flex-wrap:wrap; gap:8px !important; }
.jl-home .jg-home > .w-full { order:2; margin-top:auto; }
.jl-home .jk-tray { order:3; }
.jl-home .fp-composer .nc-prism .kl-c-input { min-height:86px !important; }
html:not(.fp-dark) body .fp-app.fp-app .jg-chip { height:32px !important; padding:0 12px !important; border-radius:8px !important; border:1px solid rgb(0 153 255 / .16) !important; background:rgb(0 153 255 / .08) !important; color:#0077cc !important; box-shadow:none !important; font:500 13.5px/1 'Geist', ui-sans-serif, sans-serif !important; }
html:not(.fp-dark) body .fp-app.fp-app .jg-chip svg { color:#0099ff !important; }
html:not(.fp-dark) body .fp-app.fp-app .jg-chip:hover { background:rgb(0 153 255 / .14) !important; }

@media (max-width: 767px) {
  .zai-title { font-size:32px; }
  .zai-tag { font-size:12px; margin-bottom:12px; }
}
