/**
 * @license
 * MyFonts Webfont Build ID 3867246
 *
 * The fonts listed in this notice are subject to the End User License
 * Agreement(s) entered into by the website owner. All other parties are
 * explicitly restricted from using the Licensed Webfonts(s).
 *
 * You may obtain a valid license at the URLs below.
 *
 * Webfont: Catiler .Soft Regular by Gatype
 * URL: https://www.myfonts.com/collections/gatype-foundry
 *
 * © 2026 MyFonts Inc. */
@font-face {
  font-family: "Catiler Soft";
  src: url("assets/fonts/catiler-soft-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* Layout: one 1200px column. Each concept is a diagram first and a few words second.
   Colors, corners, shadows and type follow the Local Code app (Libraries/Style/Sources/Color.swift): its cool grey ramp,
   inverted charcoal primary buttons, red as the brand color, and SF Pro everywhere except the display title. */
:root {
  /* App neutrals: secondary / tertiary / primary backgrounds, text and border tokens. */
  --page: #f4f5f6;
  --surface: #ffffff;
  --stage: #e8eaec;
  --ink: #252933;
  --label: #424755;
  --muted: #555e68;
  --faint: #8c97a4;
  --line: #dadde0;
  --line-strong: #b7bfc7;
  --hover: #e8eaec;
  --focus: #38b4fc;

  /* Buttons: primaryFill / nonaryText, and the white secondary button. */
  --cta: #252933;
  --cta-ink: #ffffff;
  --button: #ffffff;
  --chip: #fafbfc;

  /* Banner cycle, from EmptyBannerController. Red is the brand color. */
  --red: #ff5e4d;
  --orange: #ec9711;
  --lime: #80bc1b;
  --mint: #00b782;
  --cyan: #00b4b4;
  --violet: #8f66ff;
  --pink: #f47dc1;
  --ok: #22bd21;

  /* Always-dark panels use the app's dark mode surfaces. */
  --dark: #131417;
  --dark-2: #1a1c1f;
  --on-dark: #dadde0;
  --on-dark-muted: #8c97a4;
  --on-dark-label: #b7bfc7;
  --on-dark-ok: #40be39;
  /* A card raised inside a dark panel: white here, the app's raised dark grey in dark mode. */
  --raised: #ffffff;
  --raised-ink: #252933;

  --code-bg: #f2f2f2;

  /* The Local Code window mock (.lc), named after the app's tokens in Color.swift. The rail is the macOS sidebar
     material, sampled from the app; the glass is the macOS 26 button glass. */
  --lc-rail: #e4e4e4;
  --lc-panel: #f4f5f6;       /* secondaryBackground */
  --lc-chat: #ffffff;        /* tertiaryBackground */
  --lc-label: #000000;       /* system label: the transcript text */
  --lc-text1: #252933;       /* primaryText */
  --lc-text2: #424755;       /* secondaryText */
  --lc-text3: #555e68;       /* tertiaryText */
  --lc-text4: #8c97a4;       /* quaternaryText */
  --lc-text6: #555e68;       /* senaryText */
  --lc-text7: #8c97a4;       /* septenaryText */
  --lc-text8: #252933;       /* octonaryText */
  --lc-line: #dadde0;        /* primaryBorder */
  --lc-line-strong: #c9ced4; /* duodenaryBorder */
  --lc-field: #ffffff;       /* tertiaryFill */
  --lc-selected: #e8eaec;    /* quinaryBackground */
  --lc-fill: #252933;        /* primaryFill */
  --lc-on-fill: #ffffff;     /* nonaryText */
  --lc-fill-off: #e8eaec;    /* septenaryFill */
  --lc-composer: #fafbfc;    /* novemdecenaryBackground */
  --lc-bubble: #f4f5f6;      /* octodecenaryBackground */
  --lc-code: #f2f2f2;
  --lc-red: #ff5e4d;         /* primaryColor */
  --lc-red-pastel: #ffccc2;
  --lc-red-shade: #cf3221;
  --lc-blue: #60b2f0;        /* secondaryColor */
  --lc-track: #e8eaec;       /* octonaryBackground */
  --lc-grab: #dadde0;        /* sedecenaryBackground */
  --lc-thumb: #ffffff;
  --lc-hr: rgb(0 0 0 / .35);
  --lc-url: rgb(118 118 128 / .12);
  --lc-toolbar-ink: rgb(60 60 67 / .6);
  --lc-glass: rgb(255 255 255 / .9);
  --lc-glass-shadow: 0 0 0 1px rgb(0 0 0 / .04), 0 4px 14px rgb(0 0 0 / .08);
  --lc-window-edge: rgb(0 0 0 / .1);

  --font-display: "Catiler Soft", "Iowan Old Style", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* App corner radii: small buttons 8, fields 12, cards and bubbles 16, large cards 32. Buttons and pills are capsules. */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 32px;
  /* The composer's double shadow. */
  --shadow: 0 4px 6px -2px rgb(0 0 0 / .08), 0 8px 10px -4px rgb(0 0 0 / .05);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #090a0b; --surface: #1a1c1f; --stage: #131417; --ink: #dadde0; --label: #b7bfc7; --muted: #b7bfc7; --faint: #8c97a4;
    --line: #252933; --line-strong: #424755; --hover: #252933;
    --cta: #f4f5f6; --cta-ink: #252933; --button: #424755; --chip: #202329;
    --red: #e34a39; --orange: #e69105; --lime: #7bb612; --mint: #009f71; --cyan: #009c9d; --violet: #8f66ff; --pink: #eb74b8; --ok: #40be39;
    --raised: #252933; --raised-ink: #dadde0; --code-bg: #212121;
    --lc-rail: #242528; --lc-panel: #131417; --lc-chat: #1a1c1f; --lc-label: #ffffff;
    --lc-text1: #dadde0; --lc-text2: #b7bfc7; --lc-text3: #b7bfc7; --lc-text4: #8c97a4; --lc-text6: #8c97a4; --lc-text7: #555e68; --lc-text8: #ffffff;
    --lc-line: #252933; --lc-line-strong: #343845; --lc-field: #252933; --lc-selected: #252933; --lc-fill: #f4f5f6; --lc-on-fill: #252933; --lc-fill-off: #252933;
    --lc-composer: #202329; --lc-bubble: #252933; --lc-code: #212121; --lc-red: #e34a39; --lc-red-pastel: #472522; --lc-red-shade: #cf3a38;
    --lc-blue: #56a0d8; --lc-track: #424755; --lc-grab: #424755; --lc-thumb: #dadde0; --lc-hr: rgb(255 255 255 / .35);
    --lc-url: rgb(118 118 128 / .24); --lc-toolbar-ink: rgb(235 235 245 / .6);
    --lc-glass: rgb(37 41 51 / .9); --lc-glass-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 4px 14px rgb(0 0 0 / .4); --lc-window-edge: rgb(255 255 255 / .12);
    --shadow: 0 4px 6px -2px rgb(0 0 0 / .4), 0 8px 10px -4px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #090a0b; --surface: #1a1c1f; --stage: #131417; --ink: #dadde0; --label: #b7bfc7; --muted: #b7bfc7; --faint: #8c97a4;
  --line: #252933; --line-strong: #424755; --hover: #252933;
  --cta: #f4f5f6; --cta-ink: #252933; --button: #424755; --chip: #202329;
  --red: #e34a39; --orange: #e69105; --lime: #7bb612; --mint: #009f71; --cyan: #009c9d; --violet: #8f66ff; --pink: #eb74b8; --ok: #40be39;
  --raised: #252933; --raised-ink: #dadde0; --code-bg: #212121;
  --lc-rail: #242528; --lc-panel: #131417; --lc-chat: #1a1c1f; --lc-label: #ffffff;
  --lc-text1: #dadde0; --lc-text2: #b7bfc7; --lc-text3: #b7bfc7; --lc-text4: #8c97a4; --lc-text6: #8c97a4; --lc-text7: #555e68; --lc-text8: #ffffff;
  --lc-line: #252933; --lc-line-strong: #343845; --lc-field: #252933; --lc-selected: #252933; --lc-fill: #f4f5f6; --lc-on-fill: #252933; --lc-fill-off: #252933;
  --lc-composer: #202329; --lc-bubble: #252933; --lc-code: #212121; --lc-red: #e34a39; --lc-red-pastel: #472522; --lc-red-shade: #cf3a38;
  --lc-blue: #56a0d8; --lc-track: #424755; --lc-grab: #424755; --lc-thumb: #dadde0; --lc-hr: rgb(255 255 255 / .35);
  --lc-url: rgb(118 118 128 / .24); --lc-toolbar-ink: rgb(235 235 245 / .6);
  --lc-glass: rgb(37 41 51 / .9); --lc-glass-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 4px 14px rgb(0 0 0 / .4); --lc-window-edge: rgb(255 255 255 / .12);
  --shadow: 0 4px 6px -2px rgb(0 0 0 / .4), 0 8px 10px -4px rgb(0 0 0 / .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
/* With a mouse or trackpad, show the whole page at 90%, like browser zoom. Touch screens keep full-size text and tap
   targets. */
@media (pointer: fine) { html { zoom: .9; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
code { font: .88em var(--font-mono); background: var(--code-bg); padding: .08em .35em; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; text-wrap: balance; }
h3 { font-weight: 600; font-size: 17px; letter-spacing: -.01em; line-height: 1.3; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--label); }
.lede { font-size: 20px; line-height: 1.45; color: var(--muted); max-width: 30em; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border-radius: 999px;
  font: 500 15px/1.2 var(--font-body); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--cta); color: var(--cta-ink); }
.button-primary:hover { background: color-mix(in srgb, var(--cta) 92%, black); }
.button-quiet { background: var(--button); color: var(--ink); border-color: var(--line); }
.button-quiet:hover { background: var(--hover); }
.button-large { min-height: 48px; padding: 12px 22px; font-size: 16px; }
.button[disabled] { opacity: .6; cursor: progress; }
/* The App Store button, after drawthings.ai: a soft vertical fade, the download icon and two lines of text, fit into
   the regular capsule and its heights. */
.button-store { gap: 6px; padding: 4px 16px 4px 12px; background-image: linear-gradient(rgb(255 255 255 / .08), rgb(0 0 0 / .32)); }
.button-store.button-large { gap: 8px; padding: 6px 22px 6px 16px; }
.button-store .ic { width: 26px; height: 26px; }
.button-store.button-large .ic { width: 32px; height: 32px; }
.i-store { --i: url("assets/store-desktop.svg"); }
@media (max-width: 560px) { .i-store { --i: url("assets/store-phone.svg"); } }
.store-label { display: grid; justify-items: start; line-height: 1.12; }
.store-label span { font-size: 10px; font-weight: 400; }
.store-label strong { font-size: 13px; font-weight: 650; }
.button-large .store-label span { font-size: 12px; }
.button-large .store-label strong { font-size: 16px; }
.download-direct, .closing .download-direct { font-size: 14px; color: var(--muted); }
.download-direct a { color: inherit; text-underline-offset: 3px; }
.download-direct a:hover { color: var(--ink); }
.icon-button {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-button:hover { background: var(--hover); }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { max-width: 1200px; margin-inline: auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; }
/* Catiler's ascent leaves room above the capitals, so centering the line box sits the letters high. Nudge them down
   so the cap height centers on the monkey. */
.nav-brand span { font: 400 26px/1 var(--font-display); transform: translateY(.18em); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--ink); background: var(--hover); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (max-width: 1000px) { .nav-links { display: none; } }
@media (max-width: 560px) { .nav-engineer { display: none; } .nav-brand span { display: none; } }

/* Hero: the pitch, then the app itself. */
.hero { padding-block: 72px 96px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); max-width: 12.5em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .download-direct { flex-basis: 100%; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.badges a { display: inline-flex; align-items: center; gap: 8px; margin: -6px -12px; padding: 6px 12px; border-radius: inherit; text-decoration: none; }
.badges a:hover { background: var(--hover); }
.hero-shot { margin-top: 56px; }
/* Tall enough for the whole finished thread, prompt included. */
.hero-shot .lc { height: 860px; }
.hero-shot .lc-bars { height: 170px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* App icons: the app's own template PNGs (Apps/LocalCode/Resources/Assets.xcassets, @2x), tinted like UIKit tints
   them, through a mask filled with the current color. */
.ic { flex: none; display: inline-block; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic.s16 { width: 16px; height: 16px; }
.ic.s20 { width: 20px; height: 20px; }
.i-folder { --i: url("assets/ui/folder-24.png"); }
.i-gear { --i: url("assets/ui/gear-24.png"); }
.i-kit { --i: url("assets/ui/kit-24.png"); }
.i-activities { --i: url("assets/ui/histogram-chart-24.png"); }
.i-cpu { --i: url("assets/ui/cpu.png"); }
.i-person { --i: url("assets/ui/person-24.png"); }
.i-chat { --i: url("assets/ui/chat-24.png"); }
.i-chat-new { --i: url("assets/ui/chat-new-24.png"); }
.i-clock { --i: url("assets/ui/clock-24.png"); }
.i-plus { --i: url("assets/ui/plus-24.png"); }
.i-folder-filled { --i: url("assets/ui/folder-filled-16.png"); }
.i-overflow { --i: url("assets/ui/overflow.png"); }
.i-keyboard { --i: url("assets/ui/keyboard-20.png"); }
.i-chevron-down { --i: url("assets/ui/chevron-down-16.png"); }
.i-chevron-left { --i: url("assets/ui/chevron-left-16.png"); }
.i-chevron-right { --i: url("assets/ui/chevron-right-16.png"); }
.i-info { --i: url("assets/ui/info-16.png"); }
.i-minus { --i: url("assets/ui/minus-large.png"); }
.i-browser-tab { --i: url("assets/ui/browser-tab-24.png"); }
.i-copy { --i: url("assets/ui/copy-16.png"); }
.i-refresh { --i: url("assets/ui/refresh-16.png"); }
.i-undo { --i: url("assets/ui/undo-16.png"); }
.i-redo { --i: url("assets/ui/redo-16.png"); }
.i-send { --i: url("assets/ui/arrow-up-thick-24.png"); }
.i-stop { --i: url("assets/ui/stop-v3-filled-24.png"); }
.i-close { --i: url("assets/ui/close-24.png"); }
.i-speedometer { --i: url("assets/ui/speedometer-20.png"); }
.i-arrow-right { --i: url("assets/ui/arrow-right-16.png"); }
.i-prompt-processing { --i: url("assets/ui/prompt-processing-16.png"); }
.i-token-generation { --i: url("assets/ui/token-generation-16.png"); }

/* The Local Code window, built from the app's own UIKit values (Apps/LocalCode, Libraries/Components, Libraries/Style).
   Inside .lc, lengths are UIKit points and fonts are the nominal size × 1.15, as Mac Catalyst draws them. The Mac
   shows this iPad layout at 77%; the mock zooms to 80% (66% on mid-size screens) and keeps only the chat on phones. */
.lc-frame { container-type: inline-size; }
.lc {
  zoom: .8;
  position: relative; display: grid; grid-template-columns: 102px 378px minmax(0, 1fr);
  height: 800px; margin: 0; overflow: hidden; isolation: isolate;
  border-radius: 22px; background: var(--lc-rail); color: var(--lc-label);
  font: 400 17.25px/23px var(--font-body); text-align: left;
  box-shadow: 0 0 0 1px var(--lc-window-edge), 0 28px 64px rgb(0 0 0 / .16), 0 8px 20px rgb(0 0 0 / .06);
}
/* Zero specificity, so a row's own class can set its margins. */
:where(.lc) p { margin: 0; }

/* Rail: traffic lights, the four pages (the picked one in pastel red), and the machine and account buttons. */
.lc-rail { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 57px; }
.lc-lights { position: absolute; top: 13px; left: 12px; display: flex; gap: 13px; }
.lc-lights i { width: 16px; height: 16px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .14); }
.lc-lights i:nth-child(2) { background: #febc2e; }
.lc-lights i:nth-child(3) { background: #28c840; }
.lc-menu { display: grid; gap: 4px; }
.lc-menu > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: var(--lc-text6); }
.lc-menu > .is-on { background: var(--lc-red-pastel); color: var(--lc-red-shade); }
.lc-rail-foot { position: absolute; bottom: 20px; display: grid; gap: 12px; }
.lc-rail-foot > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--lc-glass); box-shadow: var(--lc-glass-shadow); color: var(--lc-text6); }

/* Left panel: a page title, its content, and the context meter. */
.lc-panel { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: 16px 0 0 16px; background: var(--lc-panel); box-shadow: -2px -2px 10px rgb(0 0 0 / .04); }
.lc-panel-head { flex: none; display: flex; align-items: center; height: 52px; padding: 0 14px 0 24px; border-bottom: 1px solid var(--lc-line); }
.lc-panel-title { flex: 1; min-width: 0; font-size: 18.4px; font-weight: 500; color: var(--lc-text1); }
.lc-modes { display: flex; gap: 1px; width: 75px; height: 36px; padding: 1px; margin-right: 8px; border-radius: 18px; background: var(--lc-glass); box-shadow: var(--lc-glass-shadow); }
.lc-modes > span { display: grid; place-items: center; width: 36px; color: var(--lc-text1); }
.lc-modes > .is-on { background: radial-gradient(circle, var(--lc-selected) 14px, transparent 14.5px); }
.lc-head-button { display: grid; place-items: center; width: 36px; height: 36px; color: var(--lc-text6); }

.lc-projects { flex: 1; min-height: 0; overflow: hidden; padding: 12px 0 0 12px; }
.lc-project, .lc-thread { display: flex; align-items: center; margin-right: 12px; font-size: 16.1px; white-space: nowrap; }
.lc-project > span:nth-child(2), .lc-thread > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lc-project .i-overflow, .lc-thread .i-overflow { margin: 0 8px 0 6px; color: var(--lc-text6); }
.lc-project { gap: 4px; height: 36px; padding-left: 12px; font-weight: 600; color: var(--lc-text2); }
.lc-thread { gap: 6px; height: 40px; margin-bottom: 4px; padding-left: 8px; border-radius: 16px; color: var(--lc-text6); }
.lc-thread.is-on { background: var(--lc-selected); color: var(--lc-text2); }
.lc-new-thread { margin-bottom: 16px; font-style: italic; }

.lc-workspace { flex: none; padding: 18px 20px 20px; border-top: 1px solid var(--lc-line); }
.lc-workspace p { display: flex; align-items: center; gap: 4px; height: 20px; font-size: 14.95px; font-weight: 600; color: var(--lc-text2); }
.lc-popup { display: flex; align-items: center; height: 40px; margin-top: 14px; padding: 0 12px; border-radius: 8px; background: var(--lc-field); font-size: 16.1px; color: var(--lc-text3); white-space: nowrap; }
.lc-popup > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* The context meter draws its labels twice: grey on the track, and on the fill's color inside the clipped fill. */
.lc-context { flex: none; height: 61px; padding: 16px 12px 0; border-top: 1px solid var(--lc-line); }
.lc-meter { position: relative; display: block; height: 24px; border-radius: 8px; overflow: hidden; background: var(--lc-selected); color: var(--lc-text4); font-size: 13.8px; line-height: 24px; }
.lc-meter-labels { display: flex; justify-content: space-between; gap: 8px; padding: 0 8px; white-space: nowrap; }
.lc-meter-labels > span:last-child { font-variant-numeric: tabular-nums; }
.lc-meter-fill { position: absolute; inset: 0; background: var(--lc-fill); color: var(--lc-on-fill); clip-path: inset(0 calc(100% - var(--p)) 0 0); }

/* Settings-style cards, as on the Activities page. */
.lc-cards { flex: 1; min-height: 0; overflow: hidden; display: grid; align-content: start; gap: 12px; padding: 12px; }
.lc-card { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--lc-line); border-radius: 16px; background: var(--lc-panel); box-shadow: 0 2px 8px rgb(0 0 0 / .04); }
.lc-card-title { display: flex; align-items: center; height: 40px; padding: 0 12px; font-size: 16.1px; font-weight: 600; color: var(--lc-text2); }
.lc-card-title .ic { margin-left: auto; color: var(--lc-text6); }
.lc-card-row { display: flex; gap: 8px; animation: lc-rise .25s ease both; }
.lc-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; background: var(--lc-field); font-size: 16.1px; color: var(--lc-text3); white-space: nowrap; }
.lc-field > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lc-minus { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--lc-field); color: var(--lc-text3); }
.lc-empty { display: grid; justify-items: center; align-content: center; gap: 8px; height: 88px; font-size: 14.95px; color: var(--lc-text3); }
/* A list longer than the window, scrolled to its end. */
.lc-cards-end { align-content: unsafe end; }
.lc-field-row { display: flex; gap: 8px; }
.lc-card-label { display: flex; justify-content: space-between; height: 14px; padding: 0 12px; font-size: 13.8px; line-height: 14px; color: var(--lc-text3); }
/* A slider tinted primaryColor, and a UISwitch that is on. */
.lc-range { position: relative; height: 28px; margin: 0 12px 4px; background: linear-gradient(to right, var(--lc-red) var(--v), var(--lc-track) 0) 0 12px / 100% 4px no-repeat; }
.lc-range span { position: absolute; top: 4px; left: var(--v); width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--lc-thumb); box-shadow: 0 .5px 3px rgb(0 0 0 / .3), 0 0 0 .5px rgb(0 0 0 / .06); }
.lc-switch { flex: none; position: relative; width: 62px; height: 28px; margin-right: -2px; border-radius: 14px; background: var(--lc-red); }
.lc-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 38px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
/* Settings' Avg. Speed footer: a title row over two stats split by hairlines. */
.lc-speed { flex: none; border-top: 1px solid var(--lc-line); color: var(--lc-text2); }
.lc-speed-head { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 20px; font-size: 14.95px; font-weight: 600; }
.lc-speed-more { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12.65px; font-weight: 500; }
.lc-speed-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--lc-line); }
.lc-speed-stats p { display: grid; gap: 8px; min-width: 0; padding: 16px; }
.lc-speed-stats p + p { border-left: 1px solid var(--lc-line); }
.lc-speed-stats p > span { display: flex; align-items: center; gap: 4px; height: 16px; font-size: 12.65px; color: var(--lc-text6); white-space: nowrap; }
.lc-speed-stats strong { font-size: 24.15px; line-height: 29px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Chat: the transcript column scrolls under the floating project bar and the composer. */
.lc-chat { position: relative; z-index: 2; min-width: 0; overflow: hidden; background: var(--lc-chat); box-shadow: -2px -2px 10px rgb(0 0 0 / .04); }
.lc-scroll { position: absolute; inset: 0; overflow: hidden; -webkit-mask: linear-gradient(transparent 44px, #000 84px); mask: linear-gradient(transparent 44px, #000 84px); }
.lc-transcript { display: grid; gap: 16px; width: min(960px, 100% - 96px); margin: 0 auto; padding: 88px 20px 236px 32px; }
.lc-transcript > li { min-width: 0; animation: lc-rise .3s ease both; }
@keyframes lc-rise { from { opacity: 0; transform: translateY(6px); } }

.lc-project-bar { position: absolute; z-index: 3; top: 20px; left: 20px; display: flex; gap: 12px; }
.lc-glass { background: var(--lc-glass); box-shadow: var(--lc-glass-shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lc-project-pill { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 16px 0 20px; border-radius: 26px; font-size: 18.4px; font-weight: 500; color: var(--lc-text1); white-space: nowrap; }
.lc-new { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--lc-text1); }

/* Transcript items: the user's bubble, the running group, and the finished answer. Text follows the app's markdown:
   15pt (17.25 on Mac) on a 23pt line, paragraphs 7pt apart, inline code in SF Mono on a flat highlight. */
.lc-user { display: grid; justify-items: end; }
.lc-bubble { max-width: 78%; margin-left: 80px; padding: 8px 16px 12px; border-radius: 16px 16px 8px 16px; background: var(--lc-bubble); color: var(--lc-text8); overflow-wrap: anywhere; }
.lc-meta { display: flex; align-items: center; gap: 4px; height: 24px; margin: 4px 8px 0 0; font-size: 13.8px; color: var(--lc-text4); }
.lc-meta .ic, .lc-foot .ic { margin: 4px; color: var(--lc-text6); }
.lc-foot { display: flex; align-items: center; height: 24px; margin-top: 8px; font-size: 14.95px; color: var(--lc-text4); }
.lc-foot .ic:first-of-type { margin-left: 12px; }
.lc-foot .ic + .ic { margin-left: 8px; }
.lc-md p { margin-bottom: 7px; }
.lc-md > :last-child { margin-bottom: 0; }
.lc-md strong { font-weight: 700; }
.lc code { font: 15px/1 var(--font-mono); padding: 0; border-radius: 0; background: var(--lc-code); color: inherit; overflow-wrap: anywhere; }
.lc-md hr { height: 1px; margin: 15px 0; border: 0; background: var(--lc-hr); }

/* While it works: tool calls shimmer above the "Working..." line, behind a rule that ends just above the avatar. */
.lc-think { position: relative; padding-left: 12px; }
.lc-think::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 30px; width: 2px; background: var(--lc-line); }
.lc-think-log { margin-bottom: 12px; }
.lc-think-log p { margin-bottom: 7px; }
.lc-working { display: flex; align-items: center; height: 24px; margin-left: -12px; color: var(--lc-text8); }
.lc-avatar { width: 24px; height: 24px; border-radius: 6px; background: #e8eaec; }
.lc-working .lc-shimmer { display: flex; align-items: center; }
.lc-spinner { width: 20px; height: 20px; margin: 0 4px 0 8px; background: var(--lc-text6); -webkit-mask: url("assets/ui/message-spinner.png") center / contain no-repeat; mask: url("assets/ui/message-spinner.png") center / contain no-repeat; animation: lc-spin .8s steps(8) infinite; }
@keyframes lc-spin { to { transform: rotate(360deg); } }
.lc-shimmer {
  -webkit-mask: linear-gradient(105deg, rgb(0 0 0 / .28) 42%, #000 50%, rgb(0 0 0 / .28) 58%) 100% 0 / 300% 100% no-repeat;
  mask: linear-gradient(105deg, rgb(0 0 0 / .28) 42%, #000 50%, rgb(0 0 0 / .28) 58%) 100% 0 / 300% 100% no-repeat;
  animation: lc-shimmer 2.4s linear infinite;
}
@keyframes lc-shimmer { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* Composer: grab handle, text, then undo/redo, the slider, the model button and send (stop while it works). */
.lc-composer {
  position: absolute; z-index: 3; left: 50%; bottom: 24px; width: min(960px, 100% - 96px); transform: translateX(-50%);
  border: 1px solid var(--lc-line); border-radius: 32px; background: var(--lc-composer);
  box-shadow: 0 8px 20px -10px rgb(0 0 0 / .08), 0 4px 12px -6px rgb(0 0 0 / .16);
}
.lc-grab { display: block; width: 36px; height: 5px; margin: 6px auto; border-radius: 2.5px; background: var(--lc-grab); }
.lc-composer .lc-input { padding: 8px 20px 16px; color: var(--lc-text7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-tools { display: flex; align-items: center; height: 72px; padding: 0 16px 0 20px; border-top: 1px solid var(--lc-line); }
.lc-history { flex: none; display: flex; height: 32px; border: 1px solid var(--lc-line-strong); border-radius: 16px; color: var(--lc-text6); }
.lc-history > span { display: grid; place-items: center; padding: 0 10px 0 12px; }
.lc-history > span + span { padding: 0 12px 0 10px; border-left: 1px solid var(--lc-line-strong); }
.lc-history .is-off { opacity: .45; }
.lc-slider { --v: 96%; position: relative; flex: 1; min-width: 88px; height: 4px; margin-left: 16px; border-radius: 2px; background: linear-gradient(to right, var(--lc-blue) var(--v), var(--lc-track) 0); }
.lc-slider span { position: absolute; top: 50%; left: var(--v); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--lc-thumb); box-shadow: 0 .5px 3px rgb(0 0 0 / .3), 0 0 0 .5px rgb(0 0 0 / .06); }
.lc-model { position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; height: 32px; margin-left: 16px; padding: 0 10px 0 34px; border-radius: 16px; font-size: 16.1px; color: var(--lc-text1); white-space: nowrap; }
.lc-model img { position: absolute; top: 6px; left: 10px; }
.lc-model > span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
.lc-model .ic { color: var(--lc-text6); }
.lc-send { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 16px; border-radius: 50%; background: var(--lc-fill-off); color: var(--lc-text7); }
.lc-send .ic { --i: url("assets/ui/arrow-up-thick-24.png"); }
.lc-send.is-running { background: var(--lc-fill); color: var(--lc-on-fill); }
.lc-send.is-running .ic { --i: url("assets/ui/stop-v3-filled-24.png"); }

/* The app's browser window, with the rim glow it wears while an agent drives it. */
.lc-browser { position: absolute; z-index: 4; top: 92px; right: 32px; width: min(620px, 100% - 64px); border-radius: 22px; box-shadow: 0 0 0 1px var(--lc-window-edge), 0 22px 48px rgb(0 0 0 / .2); animation: lc-window-in .35s ease both; }
@keyframes lc-window-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.lc-browser::before {
  content: ""; position: absolute; z-index: -1; inset: -8px; border-radius: 30px; opacity: 0; transition: opacity .6s ease;
  background: conic-gradient(rgb(0 110 245), rgb(204 0 167), rgb(255 173 85), rgb(0 204 68), rgb(0 170 204), rgb(170 0 204), rgb(0 110 245));
  filter: blur(20px) saturate(1.3); animation: lc-glow 4s linear infinite;
}
.lc-browser.is-driven::before { opacity: .6; }
@keyframes lc-glow { to { filter: blur(20px) saturate(1.3) hue-rotate(-360deg); } }
/* Toolbar: traffic lights at its vertical center, back and forward as adjacent 32pt buttons from 100pt in. */
.lc-browser-bar { position: relative; display: flex; align-items: center; height: 52px; padding: 0 10px 0 100px; border-radius: 22px 22px 0 0; background: var(--lc-panel); box-shadow: inset 0 -.5px rgb(60 60 67 / .29); color: var(--lc-toolbar-ink); }
.lc-browser-bar .lc-lights { top: 18px; }
.lc-browser-bar > .ic { margin: 0 8px; }
.lc-browser-bar > .i-chevron-right { opacity: .4; }
/* The URL pill centers in the toolbar unless that would crowd the buttons: it starts at least 12pt after forward
   (100 + 2 × 32 + 12 = 176) and keeps a 10pt trailing margin, like the app's constraints. */
.lc-url { position: absolute; top: 10px; left: max(50% - 180px, 176px); display: flex; align-items: center; width: min(360px, 100% - 186px); height: 32px; padding: 0 10px 0 32px; border-radius: 16px; background: var(--lc-url); font-size: 16px; color: var(--lc-label); }
.lc-url > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.lc-url .ic { margin-left: 8px; color: var(--lc-toolbar-ink); }
.lc-browser-page { display: grid; gap: 12px; padding: 34px 36px 40px; border-radius: 0 0 22px 22px; background: #fbf3e6; color: #3b2417; font-family: Georgia, "Times New Roman", serif; }
.site-kicker { font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.site-title { font-size: 38px; line-height: 1.05; }
.site-menu { display: grid; gap: 8px; margin-top: 4px; font: 17px/1.4 var(--font-body); }
.site-menu li { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid rgb(59 36 23 / .18); }
.site-button { justify-self: start; margin-top: 10px; padding: 10px 18px; border-radius: 10px; background: #c2562d; color: #fff; font: 600 16px/1 var(--font-body); }

/* Mid-size screens zoom out; phones keep the chat, like the iPhone app. */
@container (max-width: 1100px) { .lc { zoom: .66; } }
@container (max-width: 900px) {
  .lc { zoom: .8; grid-template-columns: minmax(0, 1fr); height: 760px; border-radius: 34px; }
  .lc-rail, .lc-panel { display: none; }
  .lc-project-bar { top: 16px; left: 16px; }
  .lc-transcript, .lc-composer { width: calc(100% - 24px); }
  .lc-transcript { padding: 84px 8px 236px 12px; }
  .lc-browser { top: 84px; right: 16px; width: calc(100% - 32px); }
  /* The narrow column wraps the prompt, so the finished hero thread needs more height. */
  .hero-shot .lc { height: 920px; }
}
@container (max-width: 560px) {
  .lc-slider { display: none; }
  .lc-model { margin-left: auto; }
  /* No room for back and forward: the pill follows the traffic lights (12 + 3 × 16 + 2 × 13 + 12 = 98). */
  .lc-browser-bar > .ic { display: none; }
  .lc-url { left: max(50% - 180px, 98px); width: min(360px, 100% - 108px); }
}

/* Sections */
.section { padding-block: 104px; }
.section-tint { background: var(--stage); }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; }
.section h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
@media (max-width: 640px) { .section { padding-block: 72px; } }

/* On always-dark panels, buttons switch to the app's dark-mode primary (near-white on charcoal). */
.layer-1, .plan, .price-feature, .chat-head { --cta: #f4f5f6; --cta-ink: #252933; --hover: #252933; }

/* Local execution, on the theme's surfaces. */
/* The scene: your Mac as a boundary (styled like the Security layers), the internet link, and the cloud outside it. */
.device { display: grid; grid-template-columns: minmax(0, 1fr) clamp(72px, 10vw, 128px) 200px; align-items: start; }
/* The link and the cloud line up with the row of nodes, a fixed distance below the panel's top edge:
   border 2 + padding 18 + head 24 + flow margin 44 + half an icon 32. Label wrapping only changes the panel's height. */
.device { --row-y: 120px; }
/* Outlines are the ink at 30%, which in dark mode is the light hairline on charcoal. */
.device { --edge: color-mix(in srgb, var(--ink) 30%, transparent); }

.zone {
  margin: 0; min-width: 0; padding: 18px 22px 8px; border-radius: var(--r-xl);
  background: var(--surface); border: 2px solid var(--edge); transition: border-color .2s ease;
}
.zone:hover { border-color: var(--label); }
.zone-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 24px; }
.zone-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.zone-status { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wifi { width: 18px; height: 18px; flex: none; fill: var(--ink); stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.wifi-arcs { fill: none; transition: opacity .3s ease; }
.wifi-slash { display: none; stroke: var(--red); }
.device[data-wifi="off"] .wifi-arcs { opacity: .3; }
.device[data-wifi="off"] .wifi-slash { display: inline; }
.device-status { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); transition: color .3s ease, background-color .3s ease; }

.flow-wrap { position: relative; margin: 44px 24px 48px; }
.flow-wrap { --flow-gap: 12px; }
.flow { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--flow-gap); }
.flow li { display: grid; justify-items: center; gap: 12px; text-align: center; font-weight: 600; font-size: 15px; }
.flow-icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-lg);
  background: var(--stage); border: 1.5px solid var(--edge); color: var(--ink);
  box-shadow: var(--shadow);
  transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}
.flow-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* The packet runs between the first and last icon centers. With four columns and three gaps, a column's center
   sits (100% - 3 gaps) / 8 in from each end. */
.flow-track { position: absolute; left: calc((100% - 3 * var(--flow-gap)) / 8); right: calc((100% - 3 * var(--flow-gap)) / 8); top: 31px; height: 2px; background: color-mix(in srgb, var(--ink) 20%, transparent); }
.flow-packet { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--label); box-shadow: 0 0 0 6px color-mix(in srgb, var(--label) 20%, transparent); animation: packet-x 3.6s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes packet-x { 0% { left: 0; } 50% { left: 100%; } 100% { left: 0; } }

/* The internet link leaves the Mac's edge at the node row and runs into the cloud's left edge; Wi-Fi off cuts it. */
.uplink { position: relative; height: 2px; margin: calc(var(--row-y) - 1px) -19px 0 0; }
.uplink-line { position: absolute; inset: 0; background: repeating-linear-gradient(to right, rgb(140 151 164 / .45) 0 6px, transparent 6px 12px); }
.uplink-label { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.uplink-break { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--stage); border: 1.5px solid var(--red); color: var(--red); font-size: 11px; line-height: 1; }

/* The outline's widest point and the text sit 80px down the box; the outline leans 3px right, hence the left padding. */
.cloud { position: relative; display: grid; place-content: center; justify-items: center; gap: 2px; width: 200px; aspect-ratio: 120 / 80; margin-top: calc(var(--row-y) - 80px); padding: 14% 0 0 6px; text-align: center; opacity: .5; transition: opacity .3s ease; }
.cloud-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cloud-shape path { fill: color-mix(in srgb, var(--ink) 4%, transparent); stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; transition: stroke .3s ease, fill .3s ease; }
.cloud-title { position: relative; font-weight: 600; font-size: 15px; }
.cloud-note { position: relative; font-size: 12px; color: var(--faint); }

.device[data-cloud="on"] .cloud { opacity: 1; }
.device[data-cloud="on"] .cloud-shape path { stroke: var(--orange); stroke-dasharray: none; fill: color-mix(in srgb, var(--orange) 10%, transparent); }
.device[data-cloud="on"] .uplink-line { background: repeating-linear-gradient(to right, var(--orange) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: dash .8s linear infinite; }
.device[data-cloud="on"] .flow-model .flow-icon { border: 1.5px dashed var(--orange); color: var(--orange); background: transparent; box-shadow: none; }
.device[data-cloud="on"] .device-status { color: var(--orange); background: color-mix(in srgb, var(--orange) 16%, transparent); }
.device[data-wifi="off"] .uplink-break { display: grid; }
.device[data-wifi="off"] .uplink-line { animation: none; background: repeating-linear-gradient(to right, rgb(140 151 164 / .3) 0 6px, transparent 6px 12px); }
.device[data-wifi="off"] .device-status { color: var(--label); background: color-mix(in srgb, var(--label) 14%, transparent); }
.device[data-cloud="on"][data-wifi="off"] .cloud-shape path { stroke: var(--red); fill: transparent; }
.device[data-cloud="on"][data-wifi="off"] .device-status { color: var(--red); background: color-mix(in srgb, var(--red) 16%, transparent); }
@keyframes dash { to { background-position: 24px 0; } }

/* The app's settings cards: a card on the panel color, a title with its info button, and a field row holding the label
   and the switch (UISwitch tinted primaryColor, the capsule thumb of iOS 26). */
.switches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.setting-card { display: grid; gap: 7px; width: min(100%, 320px); padding: 7px; border: 1px solid var(--lc-line); border-radius: 14px; background: var(--lc-panel); box-shadow: var(--shadow); cursor: pointer; }
.setting-title { display: flex; align-items: center; height: 35px; padding: 0 10px; font-size: 14px; color: var(--lc-text2); }
.setting-title strong { font-weight: 600; }
.setting-title .ic { margin-left: auto; color: var(--lc-text4); }
.setting-row { position: relative; display: flex; align-items: center; gap: 12px; height: 35px; padding: 0 8px 0 10px; border-radius: 7px; background: var(--lc-field); font-size: 14px; font-weight: 500; color: var(--lc-text2); }
.setting-row > span:first-child { flex: 1; min-width: 0; }
.setting-row input { position: absolute; inset: 0; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.switch-ui { flex: none; position: relative; width: 54px; height: 24px; border-radius: 12px; background: var(--lc-track); transition: background-color .2s ease; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 32px; height: 20px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .25s cubic-bezier(.3, 1.3, .5, 1); }
.setting-row input:checked + .switch-ui { background: var(--lc-red); }
.setting-row input:checked + .switch-ui::after { transform: translateX(18px); }
.setting-row input:focus-visible + .switch-ui { outline: 2px solid var(--label); outline-offset: 2px; }

@media (max-width: 900px) {
  .device { grid-template-columns: 1fr; justify-items: center; }
  .zone { width: 100%; }
  /* Stacked: the link drops from the panel's bottom edge into the cloud's top. The outline leans 3px right, so the
     cloud shifts left to center its body under the link. */
  .uplink { width: 2px; height: 64px; margin: 0 0 -8px; }
  .cloud { margin: 0 0 0 -6px; }
  .uplink-line { background: repeating-linear-gradient(to bottom, rgb(140 151 164 / .45) 0 6px, transparent 6px 12px); }
  .device[data-cloud="on"] .uplink-line { background: repeating-linear-gradient(to bottom, var(--orange) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation-name: dash-y; }
  .device[data-wifi="off"] .uplink-line { background: repeating-linear-gradient(to bottom, rgb(140 151 164 / .3) 0 6px, transparent 6px 12px); }
  .uplink-label { bottom: auto; top: 50%; left: 16px; right: auto; transform: translateY(-50%); }
  .device[data-wifi="off"] .uplink-label { left: 22px; }
}
@keyframes dash-y { to { background-position: 0 24px; } }
@media (max-width: 720px) {
  .zone { padding: 14px 12px 4px; border-radius: 24px; }
  .flow-wrap { margin: 32px 6px 32px; }
  .flow-wrap { --flow-gap: 4px; }
  .flow li { gap: 8px; font-size: 12px; line-height: 1.3; }
  .flow-icon { width: 42px; height: 42px; border-radius: 12px; }
  .flow-icon svg { width: 20px; height: 20px; }
  .flow-track { top: 20px; }
}

/* Security: nested layers */
.security { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.layer { position: relative; border-radius: var(--r-xl); padding: 44px 22px 22px; transition: border-color .2s ease; }
.layer-label { position: absolute; top: 14px; left: 22px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.layer-1 { background: var(--dark); color: var(--on-dark); border: 2px solid var(--dark); }
.layer-1 > .layer-label { color: var(--on-dark-label); }
.layer-2 { background: var(--dark-2); border: 2px solid rgb(218 221 224 / .3); border-radius: 24px; }
.layer-2 > .layer-label { color: var(--on-dark-muted); }
.layer-3 { background: var(--raised); color: var(--raised-ink); border-radius: 16px; padding-block: 44px 28px; }
.layer-3 > .layer-label { color: var(--raised-ink); }
.layer:hover { border-color: var(--on-dark-label); }
.agent { display: grid; justify-items: center; gap: 6px; font-weight: 650; }
.agent img { border-radius: 50%; background: #faf3e2; } /* the monkey art's own cream */
.rules { display: grid; gap: 28px; }
.rules-head { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.rules ul { display: grid; gap: 10px; }
.rules li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; }
.rules li::before { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 15px; font-weight: 700; }
.rule-yes::before { content: "✓"; color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.rule-no::before { content: "✕"; color: var(--red); background: color-mix(in srgb, var(--red) 13%, transparent); }
.rule-no { color: var(--muted); }
.rules-source { font-size: 15px; color: var(--muted); }
.rules-source a { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .security { grid-template-columns: 1fr; } }

/* Models: memory fit grid. One row per model, one column per Mac memory size. */
.fit { display: grid; gap: 6px; padding: 20px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.fit-head, .fit-row { display: grid; grid-template-columns: minmax(210px, 1.6fr) repeat(9, minmax(0, 1fr)); gap: 6px; align-items: center; }
.fit-corner { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fit-col {
  font: 600 14px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--muted);
  padding: 10px 0; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.fit-col span { font-weight: 400; font-size: 11px; }
.fit-col:hover { color: var(--ink); background: var(--hover); }
.fit-col[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.fit-row { padding-block: 6px; border-top: 1px solid var(--line); }
.fit-label { display: grid; min-width: 0; padding-right: 8px; }
.fit-label strong { font: 600 18px/1.2 var(--font-body); letter-spacing: -.015em; white-space: nowrap; }
.fit-label .fit-req { color: var(--ink); font-size: 13.5px; margin-top: 2px; }
.fit-req b { font-weight: 600; color: var(--muted); }
.fit-label span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fit-cell { height: 44px; border-radius: 8px; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.fit-cell.is-none { background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--line) 70%, transparent) 5px 6px); border: 1px dashed var(--line); }
.fit-cell.is-min { background-color: color-mix(in srgb, var(--tone) 30%, var(--surface)); }
.fit-cell.is-rec { background-color: color-mix(in srgb, var(--tone) 62%, var(--surface)); }
.fit-cell.is-full { background-color: var(--tone); }
/* Hatching marks the sizes where part of the model streams from the SSD. */
.fit-cell.is-stream, .swatch.is-stream { background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .55) 0 3px, transparent 3px 9px); }
.fit-cell.is-selected { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.fit-status { grid-column: 2 / -1; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.fit-status strong { color: var(--ink); font-weight: 600; }
/* Legend items are capsule toggles; the picked one explains itself in the note. The negative margin keeps the first
   swatch on the content edge despite the capsule's padding. */
.fit-legend { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 0 -10px; }
.fit-legend button {
  display: flex; align-items: center; gap: 8px; padding: 5px 10px; border: 0; border-radius: 999px; background: transparent;
  font: 500 14px/1.3 var(--font-body); color: var(--muted); cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
/* The section is tinted with the hover grey, so the capsule uses the card surface and a hairline instead. */
.fit-legend button:hover { background: var(--surface); }
.fit-legend button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
/* Neutral, in the selected memory column's color, so the legend explains fill levels without suggesting any one
   model's color. */
.swatch { --tone: var(--ink); width: 22px; height: 14px; border-radius: 4px; }
/* The legend's three cases, drawn like the bars: dashed empty, hatched, solid. */
.swatch.is-none { background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--line) 70%, transparent) 5px 6px); border: 1px dashed var(--line-strong); }
.swatch.is-stream { background-color: color-mix(in srgb, var(--tone) 45%, var(--surface)); }
.swatch.is-full { background-color: var(--tone); }
.fit-note { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 46em; }
@media (max-width: 720px) {
  .fit { padding: 14px; }
  .fit-head, .fit-row { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
  .fit-corner { grid-column: 1 / -1; }
  .fit-label { grid-column: 1 / -1; padding-top: 6px; }
  .fit-status { grid-column: 1 / -1; }
  .fit-col { font-size: 12px; padding: 8px 0; }
  .fit-col span { display: none; }
  .fit-cell { height: 34px; border-radius: 6px; }
}
.providers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 36px; }
.providers p { font-weight: 600; color: var(--muted); }
.providers ul { display: flex; flex-wrap: wrap; gap: 8px; }
.providers li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }

/* Built-in skills: a tab per task above the app, which replays it. */
.work { display: grid; gap: 16px; }
.work-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.work-tabs::-webkit-scrollbar { display: none; }
.work-tab {
  display: grid; gap: 4px; flex: none; text-align: left; padding: 10px 14px; border-radius: var(--r-md); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: 600 15px/1.2 var(--font-body);
  transition: border-color .15s ease, background-color .15s ease;
}
.work-tab code { padding: 0; background: none; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.work-tab:hover { border-color: var(--muted); }
.work-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--page); }
.work-tab[aria-selected="true"] code { color: color-mix(in srgb, var(--page) 70%, transparent); }

/* Results land in the answer the way the app shows them: images inline, tables as markdown. Images keep their own
   light colors in dark mode, like any PNG would. Sizes are UIKit points, inside .lc. */
.lc-media { max-width: 640px; margin: 4px 0 7px; }

/* Charts: the bars grow in as the image appears. */
.lc-chart { display: grid; gap: 14px; padding: 22px 24px 18px; border: 1px solid #dadde0; background: #fff; color: #555e68; font: 15px/1.3 var(--font-body); }
.lc-chart figcaption { display: flex; justify-content: space-between; }
.lc-chart figcaption strong { color: #252933; }
.lc-bars { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 230px; padding: 40px 0 26px; background: linear-gradient(#dadde0, #dadde0) 0 calc(100% - 26px) / 100% 1px no-repeat; }
.lc-bar { position: relative; flex: 1; height: 0; border-radius: 4px 4px 0 0; background: var(--c, #00b4b4); transition: height .7s cubic-bezier(.2, .8, .2, 1) var(--d); }
.lc-bar i { position: absolute; bottom: -24px; left: -4px; right: -4px; text-align: center; font: 13px/1 var(--font-body); }
.is-shown .lc-bar { height: var(--h); }
.lc-flag { position: absolute; top: 2px; left: var(--x); padding: 5px 10px; border-radius: 8px; background: #ffeae7; color: #e23d2c; font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .3s ease 1s, transform .3s ease 1s; }
.is-shown .lc-flag { opacity: 1; transform: none; }

/* Video: the rendered walkthrough, playing inline. Each scene puts the day and time over the event. */
.lc-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(120% 120% at 20% 10%, #2d2160 0%, #120d2a 60%, #07050f 100%); }
.scene { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 0 8%; text-align: center; font: 600 40px/1.1 var(--font-body); letter-spacing: -.02em; color: #fff; opacity: 0; animation: scene 6s linear infinite; }
.scene small { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: #b9a8ff; }
.scene-2 { animation-delay: 2s; }
.scene-3 { animation-delay: 4s; }
@keyframes scene { 0% { opacity: 0; transform: scale(.96); } 5%, 30% { opacity: 1; transform: none; } 35%, 100% { opacity: 0; } }
.lc-video-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(255 255 255 / .18); }
.lc-video-progress i { display: block; width: 0; height: 100%; background: #fff; animation: progress 6s linear infinite; }
@keyframes progress { to { width: 100%; } }

/* Images: four renders, sharpening as they appear. */
.lc-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 560px; }
/* The scene blurs inside the frame, so the blur never bleeds past the image's edges. */
.shot { --mug: #efe7d8; --mug-shade: #c9bfae; position: relative; aspect-ratio: 5 / 4; overflow: hidden; }
.shot-scene {
  position: absolute; inset: -24px;
  background:
    radial-gradient(60% 40% at 78% 8%, rgb(255 240 210 / .55), transparent 70%),
    linear-gradient(to bottom, #d9d2c7 0 52%, transparent 52%),
    linear-gradient(168deg, transparent 0 58%, rgb(120 120 130 / .18) 59%, transparent 61%),
    linear-gradient(176deg, transparent 0 70%, rgb(120 120 130 / .14) 71%, transparent 72.5%),
    linear-gradient(to bottom, #f4f2ee, #e3e0da);
  filter: blur(14px) saturate(.4); transition: filter 1.2s ease var(--d);
}
.shot-terracotta { --mug: #c86a45; --mug-shade: #8f4026; }
.shot-sage { --mug: #a9bf9a; --mug-shade: #6f8a62; }
.shot-navy { --mug: #2c3e5c; --mug-shade: #16233a; }
.mug {
  position: absolute; left: calc(30% + 7px); bottom: calc(22% + 14px); width: 30%; height: 33%; border-radius: 6% 6% 18% 18% / 4% 4% 14% 14%;
  background: linear-gradient(to right, var(--mug-shade), var(--mug) 30%, color-mix(in srgb, var(--mug) 70%, white) 48%, var(--mug) 62%, var(--mug-shade));
  box-shadow: 18px 12px 22px -8px rgb(40 30 20 / .35);
}
.mug::before { content: ""; position: absolute; top: -4%; left: 0; right: 0; height: 12%; border-radius: 50%; background: radial-gradient(ellipse at center, #3b2414 0 55%, var(--mug-shade) 58% 100%); }
.mug::after { content: ""; position: absolute; right: -30%; top: 20%; width: 36%; height: 44%; border: 8px solid var(--mug); border-left: 0; border-radius: 0 50% 50% 0; box-shadow: 3px 3px 6px -3px rgb(40 30 20 / .4); }
.noise { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); mix-blend-mode: overlay; transition: opacity 1.2s ease var(--d); }
.is-shown .shot-scene { filter: none; }
.is-shown .noise { opacity: .06; }

/* Portal: each step is one of the app's settings cards, with its white fields and popup buttons. */
.portal { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.portal-form { display: grid; gap: 14px; }
.step { margin: 0; padding: 8px 12px 16px; border: 1px solid var(--lc-line); border-radius: 16px; background: var(--lc-panel); box-shadow: 0 2px 8px rgb(0 0 0 / .04); display: grid; gap: 10px; min-width: 0; }
.step legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0; font-weight: 600; font-size: 16px; color: var(--lc-text2); }
.step-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lc-fill); color: var(--lc-on-fill); font-size: 12px; font-weight: 700; }
.field-label { font-size: 13px; font-weight: 500; color: var(--lc-text6); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; min-height: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; background: var(--lc-field); font-size: 14px; font-weight: 500; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.chip input:checked + span { background: var(--lc-fill); color: var(--lc-on-fill); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip:hover span { border-color: var(--lc-line-strong); }
select, input, textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--lc-field);
  border: 1px solid transparent; border-radius: 8px; padding: 9px 12px; width: 100%; min-width: 0; min-height: 40px;
}
textarea { resize: vertical; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; }
/* A popup button: the app's field with chevron-down-16 at the trailing edge. */
.popup { position: relative; display: block; }
.popup select { -webkit-appearance: none; appearance: none; padding-right: 40px; color: var(--lc-text3); cursor: pointer; }
.popup::after { content: ""; position: absolute; top: 50%; right: 12px; width: 16px; height: 16px; margin-top: -8px; background: var(--lc-text3); -webkit-mask: url("assets/ui/chevron-down-16.png") center / contain no-repeat; mask: url("assets/ui/chevron-down-16.png") center / contain no-repeat; pointer-events: none; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--lc-text6); }
.field em { font-style: normal; font-weight: 400; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 15px; color: var(--muted); }
.form-status.is-error { color: var(--red); }
/* Sent: the privacy rules' green check badge before ink text. */
.form-status.is-success { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.form-status.is-success::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }

.plan { position: sticky; top: 84px; display: grid; gap: 14px; padding: 26px; border-radius: var(--r-xl); background: var(--dark); color: var(--on-dark); border: 1px solid rgb(218 221 224 / .12); box-shadow: var(--shadow); }
.plan-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-label); }
.plan-model { font: 600 clamp(1.6rem, 2.6vw, 2rem)/1.15 var(--font-body); letter-spacing: -.02em; }
.plan-path { color: var(--on-dark-muted); font-size: 15px; }
.plan-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding-block: 16px; border-block: 1px solid rgb(218 221 224 / .16); }
.plan-specs dt { font-size: 12px; color: var(--on-dark-muted); }
.plan-specs dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.plan-celebrate { width: 140px; height: 105px; justify-self: center; }
/* One column: the plan moves above the form and sticks under the nav, so it stays in view while editing. */
@media (max-width: 900px) {
  .portal { grid-template-columns: 1fr; gap: 16px; }
  .plan { order: -1; z-index: 5; top: calc(env(safe-area-inset-top, 0px) + 68px); gap: 8px; padding: 14px 18px; border-radius: var(--r-lg); }
  .plan-label { font-size: 11px; }
  .plan-model { font-size: 1.45rem; }
  .plan-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-block: 10px; }
  .plan-specs dd { font-size: 13px; line-height: 1.3; }
  .plan-path { font-size: 13px; }
  .plan-celebrate { display: none; }
}
@media (max-width: 560px) { .plan-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.price { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.price p { color: var(--muted); }
.price .price-figure { font: 600 44px/1 var(--font-body); letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--ink); margin-block: 4px; }
/* A hairline keeps dark cards visible on the dark page and tinted sections in dark mode. */
.price-feature { background: var(--dark); color: var(--on-dark); border-color: rgb(218 221 224 / .12); }
.price-feature p { color: var(--on-dark-muted); }
.price-feature .price-figure { color: var(--on-dark); }
.price-feature .button { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }

/* Closing + footer */
.closing { padding-block: 104px; text-align: center; }
.closing-inner { display: grid; justify-items: center; gap: 16px; }
.closing-icon { border-radius: 22px; box-shadow: var(--shadow); }
/* Catiler Soft's ascenders rise above the font's ascent, past a 1.05 line box. Safari then leaves their tops unpainted
   when the icon above repaints, so this line box is tall enough to hold them. */
.closing h2 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.2; }
.closing p { color: var(--muted); font-size: 18px; }
.closing .download-direct { margin-top: -6px; }
.footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* Chat: the app's thread in a small window. A glass launcher, a panel header, the user's bubbles and plain answers,
   and the composer with its round send button. */
.chat-launcher {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 9px; border: 0; border-radius: 23px;
  background: var(--lc-glass); box-shadow: var(--lc-glass-shadow), 0 10px 30px rgb(0 0 0 / .12); color: var(--lc-text1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 500 15px var(--font-body); cursor: pointer; transition: transform .2s ease;
}
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher img { border-radius: 7px; }
.chat-launcher[aria-expanded="true"] { display: none; }
@media (max-width: 560px) {
  .chat-launcher { right: 16px; padding: 0 9px; }
  .chat-launcher span { display: none; }
}
.chat {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 41;
  width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 110px));
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  background: var(--lc-chat); border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--lc-window-edge), 0 24px 56px rgb(0 0 0 / .18), 0 6px 16px rgb(0 0 0 / .06);
  transform-origin: bottom right; animation: chat-in .22s ease-out;
}
@keyframes chat-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (max-width: 560px) { .chat { right: 16px; } }
.chat-head { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 10px 0 16px; background: var(--lc-panel); border-bottom: 1px solid var(--lc-line); color: var(--lc-text1); }
.chat-head img { border-radius: 7px; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-title { font-weight: 500; font-size: 15.5px; line-height: 1.3; }
.chat-sub { font-size: 12.5px; color: var(--lc-text4); }
.chat-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--lc-text6); cursor: pointer; }
.chat-close:hover { background: var(--lc-selected); }
.chat-log { overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 92%; font-size: 15px; line-height: 1.45; color: var(--lc-label); white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; animation: bubble-in .2s ease-out; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(4px); } }
.bubble-me { align-self: flex-end; max-width: 78%; padding: 7px 14px 10px; border-radius: 14px 14px 7px 14px; background: var(--lc-bubble); color: var(--lc-text8); }
.chat-note { align-self: center; font-size: 12.5px; color: var(--lc-text4); text-align: center; padding: 2px 8px; }
.chat-note.is-error { color: var(--red); }
.chat-note a { color: inherit; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-quick:empty { display: none; }
.chat-quick button { font: 500 13.5px var(--font-body); padding: 7px 13px; border: 0; border-radius: 999px; background: var(--lc-glass); box-shadow: var(--lc-glass-shadow); color: var(--lc-text1); cursor: pointer; }
.chat-quick button:hover { background: var(--lc-selected); }
.chat-quick .is-human, .chat-quick .is-human:hover { background: var(--lc-fill); color: var(--lc-on-fill); }
.chat-handoff { display: grid; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--lc-line); background: var(--lc-panel); }
.chat-handoff > p { font-size: 14px; color: var(--lc-text6); }
.handoff-actions { display: flex; justify-content: flex-end; gap: 8px; }
/* The composer: a rounded field on the composer color with the app's double shadow and send button. */
.chat-input { display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 6px 6px 6px 16px; border: 1px solid var(--lc-line); border-radius: 26px; background: var(--lc-composer); box-shadow: 0 8px 20px -10px rgb(0 0 0 / .08), 0 4px 12px -6px rgb(0 0 0 / .16); }
.chat-input:focus-within { border-color: var(--focus); }
.chat-input input { flex: 1; min-height: 36px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; }
.chat-input input:focus { outline: none; }
.chat-input input::placeholder { color: var(--lc-text7); }
.chat-input .send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--lc-fill); color: var(--lc-on-fill); cursor: pointer; }
.chat-input .send:disabled { background: var(--lc-fill-off); color: var(--lc-text7); cursor: default; }
.chat-input .send .ic { width: 22px; height: 22px; }
/* The guide's typing state is the app's "Working..." line. */
.chat-working { display: inline-flex; align-items: center; gap: 6px; color: var(--lc-text8); font-style: italic; }
.chat-working img { border-radius: 5px; background: #e8eaec; }
.chat-working .lc-shimmer { display: inline-flex; align-items: center; gap: 4px; }
.chat-working .lc-spinner { width: 18px; height: 18px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flow-packet { display: none; }
  .scene:first-child { opacity: 1; }
}
