/* THE THEME — generated from lib/theme.ts, the one table of colours. Edit it there. */
:root {
  color-scheme: light;
  --bg: #F2F2F7;
  --panel: #FFFFFF;
  --panel-2: #F2F2F7;
  --raised: #E5E5EA;
  --field: #FFFFFF;
  --line: #C6C6C8;
  --line-soft: #E5E5EA;
  --bar: rgba(242, 242, 247, 0.8);
  --material: rgba(255, 255, 255, 0.9);
  --overlay: rgba(0, 0, 0, 0.22);
  --ink: #000000;
  --ink-2: #3C3C43;
  --ink-3: #636366;
  --accent: #007AFF;
  --accent-ink: #0062C4;
  --accent-fill: #0071E3;
  --accent-fill-hover: #0062C4;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --warn: #C4001A;
  --warn-soft: rgba(255, 59, 48, 0.1);
  --warn-line: rgba(215, 0, 21, 0.35);
  --playhead: #FF3B30;
  --marker: #C93400;
  --wave: #248A3D;
  --beat: #000000;
  --check-a: #FFFFFF;
  --check-b: #E5E5EA;
  --viewer: #FFFFFF;
  --picture-ground: #151517;
  --picture-ink: #FFFFFF;
  --viewer-scrim: rgba(0, 0, 0, 0.86);
  --picture-ink-2: #AEAEB2;
  --picture-material: rgba(44, 44, 46, 0.72);
  --seg-track: rgba(118, 118, 128, 0.12);
  --seg-thumb: #FFFFFF;
  --bubble: #000000;
  --bubble-ink: #FFFFFF;
  --bubble-mention: #4DA3FF;
  --message: #F0F0F3;
  --message-ink: #000000;
  --carousel-seam: #FFFFFF;
  --carousel-title: rgba(255, 255, 255, 0.62);
  --carousel-title-shade: rgba(0, 0, 0, 0.18);
  --kind-text: #5856D6;
  --kind-shape: #34C759;
  --kind-image: #FF9500;
  --kind-video: #32ADE6;
  --kind-solid: #AF52DE;
  --kind-composition: #FFCC00;
  --kind-adjustment: #FF2D55;
  --kind-audio: #00C7BE;
  --curve-1: #0062C4;
  --curve-2: #C93400;
  --curve-3: #248A3D;
  --curve-4: #D30F45;
  --curve-5: #8944AB;
  --curve-6: #0071A4;
  --spot-1: #3634A3;
  --spot-1-soft: rgba(88, 86, 214, 0.12);
  --spot-1-fill: #5856D6;
  --spot-2: #8944AB;
  --spot-2-soft: rgba(175, 82, 222, 0.12);
  --spot-2-fill: #8944AB;
  --spot-3: #D30F45;
  --spot-3-soft: rgba(255, 45, 85, 0.12);
  --spot-3-fill: #D30F45;
  --spot-4: #C93400;
  --spot-4-soft: rgba(255, 149, 0, 0.12);
  --spot-4-fill: #C93400;
  --spot-5: #1E7B35;
  --spot-5-soft: rgba(52, 199, 89, 0.12);
  --spot-5-fill: #1E7B35;
  --spot-6: #0071A4;
  --spot-6-soft: rgba(48, 176, 199, 0.12);
  --spot-6-fill: #0071A4;
  --symbol-1: #E10600;
  --symbol-2: #A2741A;
  --symbol-3: #9A7D00;
  --symbol-4: #16984A;
  --symbol-5: #1F5A4B;
  --symbol-6: #C8247F;
  --symbol-7: #86868B;
  --tint: 22%;
  --tint-held: 34%;
  --tint-label: 50%;
  --tint-label-held: 66%;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-thumb: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --panel: #1C1C1E;
  --panel-2: #2C2C2E;
  --raised: #323234;
  --field: #141416;
  --line: #38383A;
  --line-soft: #2C2C2E;
  --bar: rgba(22, 22, 24, 0.78);
  --material: rgba(44, 44, 46, 0.9);
  --overlay: rgba(0, 0, 0, 0.55);
  --ink: #FFFFFF;
  --ink-2: #AEAEB2;
  --ink-3: #9D9DA2;
  --accent: #0A84FF;
  --accent-ink: #4DA3FF;
  --accent-fill: #0071E3;
  --accent-fill-hover: #0062C4;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(10, 132, 255, 0.2);
  --warn: #FF6961;
  --warn-soft: rgba(255, 69, 58, 0.16);
  --warn-line: rgba(255, 105, 97, 0.4);
  --playhead: #FF453A;
  --marker: #FFD60A;
  --wave: #30D158;
  --beat: #FFFFFF;
  --check-a: #1A1A1C;
  --check-b: #111113;
  --viewer: #000000;
  --picture-ground: #151517;
  --picture-ink: #FFFFFF;
  --viewer-scrim: rgba(0, 0, 0, 0.86);
  --picture-ink-2: #AEAEB2;
  --picture-material: rgba(44, 44, 46, 0.72);
  --seg-track: rgba(118, 118, 128, 0.24);
  --seg-thumb: #636366;
  --bubble: #3A3A3C;
  --bubble-ink: #FFFFFF;
  --bubble-mention: #7CBBFF;
  --message: #2C2C2E;
  --message-ink: #FFFFFF;
  --carousel-seam: #FFFFFF;
  --carousel-title: rgba(255, 255, 255, 0.62);
  --carousel-title-shade: rgba(0, 0, 0, 0.18);
  --kind-text: #5E5CE6;
  --kind-shape: #30D158;
  --kind-image: #FF9F0A;
  --kind-video: #64D2FF;
  --kind-solid: #BF5AF2;
  --kind-composition: #FFD60A;
  --kind-adjustment: #FF375F;
  --kind-audio: #63E6E2;
  --curve-1: #0A84FF;
  --curve-2: #FF9F0A;
  --curve-3: #30D158;
  --curve-4: #FF375F;
  --curve-5: #BF5AF2;
  --curve-6: #64D2FF;
  --spot-1: #9492FF;
  --spot-1-soft: rgba(94, 92, 230, 0.2);
  --spot-1-fill: #5856D6;
  --spot-2: #DA8FFF;
  --spot-2-soft: rgba(191, 90, 242, 0.2);
  --spot-2-fill: #9351B8;
  --spot-3: #FF6482;
  --spot-3-soft: rgba(255, 55, 95, 0.2);
  --spot-3-fill: #D30F45;
  --spot-4: #FFB340;
  --spot-4-soft: rgba(255, 159, 10, 0.2);
  --spot-4-fill: #C93400;
  --spot-5: #30DB5B;
  --spot-5-soft: rgba(48, 209, 88, 0.2);
  --spot-5-fill: #1E7B35;
  --spot-6: #70D7FF;
  --spot-6-soft: rgba(64, 203, 224, 0.2);
  --spot-6-fill: #0071A4;
  --symbol-1: #FF453A;
  --symbol-2: #E8C25A;
  --symbol-3: #FFCC00;
  --symbol-4: #1DB954;
  --symbol-5: #5BAE93;
  --symbol-6: #FF6BB5;
  --symbol-7: #8E8E93;
  --tint: 34%;
  --tint-held: 50%;
  --tint-label: 36%;
  --tint-label-held: 44%;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 36px rgba(0, 0, 0, 0.55);
  --shadow-thumb: 0 1px 2px rgba(0, 0, 0, 0.3);
}
body.viewing {
  color-scheme: dark;
  --bg: #000000;
  --panel: #1C1C1E;
  --panel-2: #2C2C2E;
  --raised: #323234;
  --field: #141416;
  --line: #38383A;
  --line-soft: #2C2C2E;
  --bar: rgba(22, 22, 24, 0.78);
  --material: rgba(44, 44, 46, 0.9);
  --overlay: rgba(0, 0, 0, 0.55);
  --ink: #FFFFFF;
  --ink-2: #AEAEB2;
  --ink-3: #9D9DA2;
  --accent: #0A84FF;
  --accent-ink: #4DA3FF;
  --accent-fill: #0071E3;
  --accent-fill-hover: #0062C4;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(10, 132, 255, 0.2);
  --warn: #FF6961;
  --warn-soft: rgba(255, 69, 58, 0.16);
  --warn-line: rgba(255, 105, 97, 0.4);
  --playhead: #FF453A;
  --marker: #FFD60A;
  --wave: #30D158;
  --beat: #FFFFFF;
  --check-a: #1A1A1C;
  --check-b: #111113;
  --viewer: #000000;
  --picture-ground: #151517;
  --picture-ink: #FFFFFF;
  --viewer-scrim: rgba(0, 0, 0, 0.86);
  --picture-ink-2: #AEAEB2;
  --picture-material: rgba(44, 44, 46, 0.72);
  --seg-track: rgba(118, 118, 128, 0.24);
  --seg-thumb: #636366;
  --bubble: #3A3A3C;
  --bubble-ink: #FFFFFF;
  --bubble-mention: #7CBBFF;
  --message: #2C2C2E;
  --message-ink: #FFFFFF;
  --carousel-seam: #FFFFFF;
  --carousel-title: rgba(255, 255, 255, 0.62);
  --carousel-title-shade: rgba(0, 0, 0, 0.18);
  --kind-text: #5E5CE6;
  --kind-shape: #30D158;
  --kind-image: #FF9F0A;
  --kind-video: #64D2FF;
  --kind-solid: #BF5AF2;
  --kind-composition: #FFD60A;
  --kind-adjustment: #FF375F;
  --kind-audio: #63E6E2;
  --curve-1: #0A84FF;
  --curve-2: #FF9F0A;
  --curve-3: #30D158;
  --curve-4: #FF375F;
  --curve-5: #BF5AF2;
  --curve-6: #64D2FF;
  --spot-1: #9492FF;
  --spot-1-soft: rgba(94, 92, 230, 0.2);
  --spot-1-fill: #5856D6;
  --spot-2: #DA8FFF;
  --spot-2-soft: rgba(191, 90, 242, 0.2);
  --spot-2-fill: #9351B8;
  --spot-3: #FF6482;
  --spot-3-soft: rgba(255, 55, 95, 0.2);
  --spot-3-fill: #D30F45;
  --spot-4: #FFB340;
  --spot-4-soft: rgba(255, 159, 10, 0.2);
  --spot-4-fill: #C93400;
  --spot-5: #30DB5B;
  --spot-5-soft: rgba(48, 209, 88, 0.2);
  --spot-5-fill: #1E7B35;
  --spot-6: #70D7FF;
  --spot-6-soft: rgba(64, 203, 224, 0.2);
  --spot-6-fill: #0071A4;
  --symbol-1: #FF453A;
  --symbol-2: #E8C25A;
  --symbol-3: #FFCC00;
  --symbol-4: #1DB954;
  --symbol-5: #5BAE93;
  --symbol-6: #FF6BB5;
  --symbol-7: #8E8E93;
  --tint: 34%;
  --tint-held: 50%;
  --tint-label: 36%;
  --tint-label-held: 44%;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 36px rgba(0, 0, 0, 0.55);
  --shadow-thumb: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* site/theme.css */
/*
 * What every page shares of its look: the face, the corners, the focus ring, the
 * appearance switch, and what happens when somebody asks for less motion.
 *
 * COMPOSED SECOND INTO EVERY STYLESHEET, after the colours `lib/theme.ts` writes and
 * before the page's own rules (`STYLESHEETS` there), by the build and the dev server
 * alike. NO COLOUR IS WRITTEN HERE OR IN ANY OTHER STYLESHEET — every one is a name
 * from that table, which is what makes a theme one column of it. `check:layers`
 * refuses a literal.
 *
 * APPLE'S FACE, NOT A COPY OF IT. The system font stack asks the platform for its
 * own UI face — San Francisco on an Apple device, Segoe or Roboto elsewhere — so no
 * font file of Apple's is shipped, and no request is made for one.
 */

:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  /* CONTINUOUS-LOOKING CORNERS: a control at 8, a card at 12 to 16, a sheet at 14. */
  --r-control: 8px;
  --r-card: 12px;
  --r-sheet: 14px;
  /* The pointer's target on a touch screen, which Apple's guidelines put at 44 points. */
  --touch: 44px;
}

/* A RING FOR THE KEYBOARD, everywhere a page has not drawn its own: systemBlue,
   outside the control, and only for a keyboard — a ring after every click teaches
   people to switch it off. */
:where(:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- the appearance switch: Light, Dark --------------------------------------
 *
 * APPLE'S SEGMENTED CONTROL: a sunken track and a raised thumb on the segment chosen.
 * Which one is chosen is read from the root's `data-theme`, which the head's script
 * set before anything painted — so the right segment is lit before the bundle
 * arrives, and the bundle only keeps `aria-checked` in step with it.
 */
.theme-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  background: var(--seg-track);
  flex: none;
}

.theme-opt {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.theme-opt:hover { color: var(--ink); }
.theme-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.theme-icon { display: block; width: 15px; height: 15px; }

:root:not([data-theme="dark"]) .theme-opt[data-choice="light"],
:root[data-theme="dark"] .theme-opt[data-choice="dark"] {
  background: var(--seg-thumb);
  color: var(--ink);
  box-shadow: var(--shadow-thumb);
}

@media (pointer: coarse) {
  .theme-opt { width: var(--touch); height: 36px; position: relative; }
  /* THE TARGET IS 44 TALL WHERE THE SEGMENT IS 36: the four points either side are
     the track's padding, and a finger landing on them means the segment. */
  .theme-opt::before { content: ''; position: absolute; inset: -4px 0; }
  .theme-seg { padding: 4px; border-radius: 12px; }
}

/* A FIELD'S HINT IS WORDS A PERSON READS, so it is the quietest label colour, which
   holds AA on a field in both themes — the browser's own grey is 4.0:1 on a dark
   field. Opaque, because Firefox fades a placeholder by default. */
::placeholder { color: var(--ink-3); opacity: 1; }

/* --- less motion, when it is asked for -----------------------------------------
 *
 * EVERYTHING THAT MOVES FOR ITS OWN SAKE STOPS: a transition, an animation, a
 * smooth scroll. What a person drives — a drag, the playhead, a film playing — is
 * not CSS and is untouched, because that motion is the work.
 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* site/home.css */
/* The homepage, and the search pages and the 404 that wear it: the AI video maker for real estate (the owner,
   2026-11-26). Every colour is a role from lib/theme.ts.
   APPLE'S LOOK, IN COLOUR (the owner, 2026-11-26: "use apple ui style everywhere and put some colors not just black
   and white"): an action is Apple's blue capsule (`--accent-fill`, white words, a deeper blue under the pointer), the
   other choice beside it the same capsule drawn in outline, and colour is spent as apple.com spends it — on the
   headline's second line, the eyebrows and the steps' numbers — never on a whole surface. */
:root { --gutter: 28px; --wide: 1160px; --measure: 62ch; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--panel); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- the bar ------------------------------------------------------------- */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; padding: 0 max(var(--gutter), calc((100% - var(--wide)) / 2)); background: var(--material); border-bottom: 1px solid var(--line-soft); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.mark { display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); font: 600 18px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
/* The existing logo asset; its alpha follows the page's ink in either theme. */
.brand-icon { display: block; flex: 0 0 34px; width: 34px; height: 34px; background: var(--ink); -webkit-mask: url('/icon.svg') center / contain no-repeat; mask: url('/icon.svg') center / contain no-repeat; mask-mode: alpha; }
.bar nav { display: flex; align-items: center; gap: 8px; }
.bar nav a, .bar-btn { padding: 8px 12px; color: var(--ink-2); font-size: 13px; text-decoration: none; white-space: nowrap; }
.bar nav a:hover, .bar-btn:hover { color: var(--ink); }
/* THE PAGE THE PERSON IS ON, in the header as in the footer: /skills marks its own link (`aria-current`), which the
   header drew in the same grey as every other until the review of 2026-11-26. */
.bar nav a[aria-current="page"] { color: var(--ink); }
.bar-btn { border: 0; background: none; border-radius: 999px; cursor: pointer; max-width: 25vw; overflow: hidden; text-overflow: ellipsis; }
/* Account state owns visibility, including when a control has a display utility. */
.bar [hidden] { display: none; }
/* THE ACTION: Apple's blue capsule, deeper blue under the pointer rather than faded. Its words are `!important`
   because `.bar nav a` (0,1,2) would otherwise colour the header's Get started. */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 18px; background: var(--accent-fill); color: var(--on-accent) !important; border-radius: 999px; padding: 10px 20px; font-weight: 600; text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.pill:hover { background: var(--accent-fill-hover); }
.pill.big { padding: 15px 25px; font-size: 15px; }
.bar .pill { padding: 9px 18px; }
.bar #account { max-width: 180px; }
/* THE OTHER CHOICE BESIDE IT: the same capsule in outline, its words the blue's own, tinted under the pointer. */
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid var(--accent); border-radius: 999px; padding: 14px 23px; color: var(--accent-ink); font-size: 15px; font-weight: 500; text-decoration: none; background: var(--panel); transition: background-color .18s ease; }
.secondary:hover { background: var(--accent-soft); }

/* --- the hero ------------------------------------------------------------ */
.hero { max-width: var(--wide); margin: 0 auto; padding: 72px var(--gutter) 52px; text-align: center; }
/* AN EYEBROW IN APPLE'S ORANGE, as apple.com sets its "New" over a heading: `--spot-4`, measured on the page and on
   the cards it also sits in (--bg). */
.eyebrow { margin: 0 0 20px; color: var(--spot-4); font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font: 600 clamp(50px, 6.4vw, 82px)/1 var(--display); letter-spacing: -.06em; text-wrap: balance; }
h1 > span { display: block; }
/* THE HEADLINE'S SECOND LINE IN COLOUR — "stand out.", and the search pages' and the 404's — blue through purple and
   pink to orange, cut to the letters (the owner, 2026-11-26: "put some colors not just black and white"). Every stop
   is a role measured as words on --panel, and the blend between them is sRGB's (the default), whose lowest point was
   sampled at 5.28:1 light and 5.99:1 dark: `in oklch` brightens the middle past what anything measures. Inline-block
   so the gradient spans the words rather than the whole width (a block's would leave its ends off the letters); the
   tenth of an em under it keeps a descender's tail inside the painted box, and is taken back so the line sits where
   it did. Forced colours draw it as plain text. */
h1 > span + span { display: inline-block; padding-bottom: .1em; margin-bottom: -.1em; background: linear-gradient(90deg, var(--accent-ink), var(--spot-2) 40%, var(--spot-3) 72%, var(--spot-4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { h1 > span + span { background: none; color: CanvasText; } }
.sub { max-width: 50ch; margin: 26px auto 0; color: var(--ink-2); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
/* THE HERO ON A SHORT SCREEN, since the Dashboard's box sits in it (site/ask.css, 2026-11-16): tightened so a laptop's
   first screen holds the whole box and the links under it — the review of that day measured 1366x650, 1280x720 and
   1440x800 ending mid-box, the links below. Less above the h1, the h1 sized by the screen's height as well as its
   width, the gaps closer, and the box's examples kept to the ones that fit: one row below 760 px, none below 680. A tall
   screen and a phone are drawn as they were. */
@media (min-width: 761px) and (max-height: 860px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(50px, min(6.4vw, 9.5vh), 82px); }
  .hero .sub { margin-top: 18px; }
  .hero .home-ask { margin-top: 24px; }
  .hero .links { margin-top: 22px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .hero .home-ask .chat-example:nth-child(n + 3) { display: none; }
}
@media (min-width: 761px) and (max-height: 680px) {
  .hero .home-ask .chat-examples { display: none; }
}

/* --- the loops' pause ----------------------------------------------------
   Above the video editor's page's row of steps (editor/src/home-loops.ts): the homepage demonstration's own
   button, kept by its name when the demonstration went (the owner, 2026-11-25), holding itself at its bar's end. */
.demo-pause { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-soft); border-radius: 50%; background: var(--panel); color: var(--ink-2); cursor: pointer; margin-left: auto; }
.demo-pause[hidden] { display: none; }
.demo-pause:hover { color: var(--ink); border-color: var(--line); }
.demo-pause path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo-pause .demo-play-icon { display: none; fill: currentColor; }
.demo-pause[aria-pressed="true"] .demo-pause-icon { display: none; }
.demo-pause[aria-pressed="true"] .demo-play-icon { display: inline; }
/* What the carousel maker's page says under its gallery. */
.demo-note { margin: 16px 0 0; color: var(--ink-3); font-size: 12px; text-align: center; }

/* --- the carousels -------------------------------------------------------
   FINISHED CAROUSELS, NOT A CHAT (the owner, 2026-11-08: "just show as created ones and just
   continuoes with very slim white line in between", then "on left side text and right side
   carousel iverflowing out of screen towards right but can be scrolled towards left and hiding
   text very animatedly and next one alternative"). A row is the copy and a strip of the five
   slides Ymotion exported, a hair of white between them, running off the screen's edge; every
   other row is the mirror.

   THE PAGE'S SCROLL MOVES THE CAROUSEL FIRST (the owner: "when you scroll up it should first
   carousel in and then only move to next"). Wide, each row is pinned (`.cx-pin[data-pinned]`, as
   tall as the row and the strip's whole travel) while the page's scroll carries its strip through,
   and only then does the page move on; back up, the strip goes back before the row above comes.
   editor/src/home-gallery.ts sets `--travel`, the strip's place and `--p`, 0 to 1, how far it has
   come over the copy. The copy lies above the strip: the title stays and the slides pass under it
   ("text like \"Photo Dump\" should slide come on carousels and it should be white and light") —
   its dark ink cut away where the slides are and a white copy shown there. The prompt goes with
   the title until the slides reach it, then is cut where they are and fades: it is never drawn on
   a slide ("prompt should disappear not get on the carousel").
   A row as tall as the window leaves no room to scroll it through, so `--h` gives way to a short
   window and a row that still does not fit under the bar is not pinned.
   Narrow, nothing is pinned: the copy sits above its strip, which a finger swipes. */
.gallery { padding-top: 168px; overflow-x: clip; }
.gallery .section-heading { margin-bottom: 72px; }

.cx-pin { --travel: 0px; --h: clamp(240px, min(34vw, 100vh - 136px), 500px); --copy: min(400px, 32vw); --edge: max(var(--gutter), calc((100% - var(--wide)) / 2)); --away: -1; --p: 0; }
.cx-pin + .cx-pin { margin-top: 88px; }
.cx-pin[data-pinned] { height: calc(var(--h) + var(--travel)); }
.cx-row { position: relative; height: var(--h); }
.cx-pin[data-pinned] > .cx-row { position: sticky; }
@supports (height: 100svh) { .cx-pin { --h: clamp(240px, min(34vw, 100svh - 136px), 500px); } }
.cx-row.is-flip { --away: 1; }
.cx-copy { position: absolute; z-index: 2; top: 50%; left: var(--edge); width: var(--copy); transform: translateY(-50%); pointer-events: none; }
.cx-row.is-flip .cx-copy { left: auto; right: var(--edge); text-align: right; }
/* THE KIND AS THE TITLE, LARGE (the owner, 2026-11-08: "replace with \"Photo Dump\" like make it
   bigger", "it should be white and light", "more font weight but less bright", then "keep it white
   but make it transparent types"): medium weight, in the softer ink on the page and a see-through
   white (`--carousel-title`) on the slides.
   The white is the title's own `::after`, drawn from `data-text` and silent to a screen reader
   (`/ ""`), so the words are in the page once; `--on-cut` is where the slides are under it. */
.cx-big { --on-cut: inset(0 100% 0 0); position: relative; margin: 0; color: var(--ink-2); font: 500 clamp(46px, 5.6vw, 80px)/.96 var(--display); letter-spacing: -.05em; text-wrap: balance; }
.cx-ink { display: block; }
.cx-big::after { content: attr(data-text); content: attr(data-text) / ""; position: absolute; inset: 0; color: var(--carousel-title); text-shadow: 0 2px 28px var(--carousel-title-shade); clip-path: var(--on-cut); pointer-events: none; }
/* THE TITLE AND THE PROMPT GO TOGETHER: drawn a little the way the strip goes as it comes under
   them, eased, so the title settles on it rather than sits still while it passes. */
.cx-big, .cx-ask { transform: translateX(calc(var(--away) * 28px * (1 - (1 - var(--p)) * (1 - var(--p))))); }
/* THE PROMPT THAT MADE IT, as the person's side of the chat draws one. It fades from the moment the
   slides reach the copy and is gone by the time they are past its middle. */
.cx-ask { display: inline-block; margin: 26px 0 0; padding: 10px 18px; border-radius: 22px; background: var(--bubble); color: var(--bubble-ink); font-size: 14px; line-height: 1.45; text-align: left; opacity: clamp(0, 1.25 - var(--p) * 2, 1); }
.cx-strip { position: relative; z-index: 1; display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; padding-inline: calc(var(--edge) + var(--copy) + 56px) var(--edge); scrollbar-width: none; overscroll-behavior-x: contain; }
.cx-pin[data-pinned] .cx-strip { overflow-x: hidden; }
.cx-strip::-webkit-scrollbar { display: none; }
.cx-row.is-flip .cx-strip { direction: rtl; }
.cx-strip:focus-visible { outline-offset: -4px; }
/* ONE PIXEL OF WHITE between slides (the owner, 2026-11-08: "decrease more white strip between the slides"). */
.cx-track { display: flex; flex: none; gap: 1px; height: 100%; overflow: hidden; border-radius: 14px; background: var(--carousel-seam); }
.cx-track img { display: block; flex: none; width: auto; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--picture-ground); -webkit-user-drag: none; transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
/* AS A ROW FIRST COMES INTO VIEW its slides arrive from the side they run off, one after another. */
.cx-row[data-cx-enter]:not(.is-in) .cx-track img { opacity: 0; transform: translateX(calc(var(--away) * -64px)); }
.cx-track img:nth-child(2) { transition-delay: 70ms; }
.cx-track img:nth-child(3) { transition-delay: 140ms; }
.cx-track img:nth-child(4) { transition-delay: 210ms; }
.cx-track img:nth-child(5) { transition-delay: 280ms; }

/* --- how it works, connect, the last word -------------------------------- */
.section-wrap { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-heading { text-align: center; margin-bottom: 42px; }
h2 { margin: 0; font: 600 clamp(32px, 4.2vw, 52px)/1.08 var(--display); letter-spacing: -.05em; text-wrap: balance; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading > p:last-child:not(.eyebrow) { color: var(--ink-2); font-size: 16px; max-width: 54ch; margin: 18px auto 0; }
.how { padding-top: 120px; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.how-steps li { padding: 26px 24px 28px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--bg); }
/* THE STEPS' NUMBERS IN THREE OF APPLE'S COLOURS — blue, purple, orange — each a fill white words are measured on. */
.how-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); font: 600 13px/1 var(--display); }
.how-steps li:nth-child(2) .how-n { background: var(--spot-2-fill); }
.how-steps li:nth-child(3) .how-n { background: var(--spot-4-fill); }
.how-steps h3 { margin: 18px 0 6px; font: 600 21px/1.2 var(--display); letter-spacing: -.03em; }
.how-steps p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.allowance-note { margin: 18px 0 0; color: var(--ink-3); font-size: 12px; text-align: center; }
.faq { max-width: 760px; padding-top: 120px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:first-of-type { border-top: 1px solid var(--line-soft); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--touch); padding: 18px 2px; font: 600 17px/1.35 var(--display); letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--ink-3); font: 400 22px/1 var(--sans); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; max-width: 62ch; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.faq details a { color: var(--accent-ink); }
.connect { max-width: 940px; padding-top: 120px; }
/* HOW TO CONNECT, AS ONE PROMPT (site/connect.css draws the box): under the centred heading and the line naming the
   chatbots, a column of its own, its address and its link centred under it as the heading is. */
.connect .connect-ask { max-width: 720px; margin: 0 auto; }
.connect .connect-address, .connect .connect-more { text-align: center; }
.last { text-align: center; padding-top: 135px; padding-bottom: 120px; }
.last h2 { font-size: clamp(40px, 5.8vw, 70px); }
.last .links { margin-top: 30px; }
footer { max-width: var(--wide); margin: 0 auto; padding: 30px var(--gutter) 40px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 30px; color: var(--ink-2); font-size: 12px; }
footer > span { font-size: 14px; }
footer .theme-seg { margin-right: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
footer nav a { text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
/* --- the search pages: /ai-video-editor and /ai-carousel-maker (lib/seo.ts `LANDING_PAGES`) ---
   The homepage's own parts — the hero, how it works, the gallery, the questions, the last word —
   and these few of their own: the video's steps side by side, a grid of what to ask for, a pair
   of cards, and the slide shapes drawn to scale. */
.lp-steps, .lp-features, .lp-pair, .lp-sizes { padding-top: 120px; }
.lp-gallery { padding-top: 120px; }
/* THE STEPS' PAUSE (`.demo-pause`, above), over the row it stops (editor/src/home-loops.ts). */
.lp-reel-bar { display: flex; justify-content: flex-end; min-height: 32px; margin: -18px 0 14px; }
.lp-reel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.lp-reel:focus-visible { outline-offset: 8px; }
.lp-reel figure { margin: 0; }
.lp-phone { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 20px; background: var(--picture-ground); box-shadow: 0 0 0 4px var(--panel), 0 0 0 5px var(--line-soft), var(--shadow); }
.lp-phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-reel figcaption { margin-top: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.lp-reel figcaption strong { display: block; margin-bottom: 8px; color: var(--ink); font: 600 16px/1.25 var(--display); letter-spacing: -.02em; }
.lp-ask { display: inline-block; padding: 8px 13px; border-radius: 16px; background: var(--bubble); color: var(--bubble-ink); font-size: 12.5px; line-height: 1.45; }
.lp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lp-grid li { padding: 24px 22px 26px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--bg); }
.lp-grid h3 { margin: 0 0 8px; font: 600 18px/1.25 var(--display); letter-spacing: -.02em; }
.lp-grid p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.lp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-pair article { padding: 34px 32px 36px; border: 1px solid var(--line-soft); border-radius: 22px; background: var(--bg); }
.lp-pair .eyebrow { margin-bottom: 14px; }
.lp-pair h2 { font-size: clamp(28px, 3.2vw, 40px); }
.lp-pair p:not(.eyebrow) { margin: 16px 0 0; max-width: var(--measure); color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.lp-facts { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.lp-facts li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 14px; }
/* THE SLIDE SHAPES TO SCALE: every one 1080 wide, so each is drawn at one width and its own height. */
.lp-shapes { display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap; gap: 36px; margin: 0; padding: 0; list-style: none; }
.lp-shapes li { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-3); font-size: 12px; }
.lp-shapes strong { margin-top: 12px; color: var(--ink); font: 600 15px/1.3 var(--display); letter-spacing: -.01em; }
.lp-shape { display: block; width: 120px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.lp-shape.is-square { aspect-ratio: 1; }
.lp-shape.is-portrait { aspect-ratio: 4 / 5; }
.lp-shape.is-tall { aspect-ratio: 3 / 4; }
.lp-shape.is-story { aspect-ratio: 9 / 16; }
.lp-shape.is-landscape { aspect-ratio: 1080 / 566; }
.lp-shape.is-default { border-color: var(--accent); background: var(--accent); }
.lp-also { margin: 28px 0 0; color: var(--ink-2); font-size: 14px; }
.lp-also a { color: var(--accent-ink); }
footer nav a[aria-current="page"] { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* A FOCUSED ELEMENT KEEPS ITS OWN SHAPE: the ring is rounded only where nothing gives the element a radius (a text
   link), at no specificity. As one rule with the ring (0,1,0, after `.pill` and `.secondary`) it turned every blue
   capsule — Get started, Sign up free, See all skills — into a rounded rectangle inside a square ring as it took focus
   (the review of 2026-11-26). */
:where(:focus-visible) { border-radius: 5px; }

@media (pointer: coarse) { .bar nav a, .bar-btn, footer nav a { min-height: var(--touch); display: inline-flex; align-items: center; } .demo-pause { min-height: var(--touch); } .demo-pause { width: var(--touch); flex-basis: var(--touch); } .lp-reel-bar { min-height: var(--touch); } }
@media (max-width: 1000px) {
  .bar nav a:first-child { display: none; }
  .how-steps { gap: 12px; }
}
@media (max-width: 820px) {
  .how-steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
}
@media (max-width: 760px) { .bar { height: 64px; } .bar nav a { display: none; } .hero { padding-top: 62px; } .how, .connect, .faq, .gallery { padding-top: 85px; } .last { padding-top: 85px; padding-bottom: 80px; } footer { gap: 20px; flex-wrap: wrap; } }
@media (max-width: 760px) {
  .gallery { padding-top: 112px; }
  .gallery .section-heading { margin-bottom: 44px; }
  .cx-row { height: auto; }
  .cx-pin + .cx-pin { margin-top: 64px; }
  .cx-copy, .cx-row.is-flip .cx-copy { position: static; width: auto; margin: 0 var(--gutter) 22px; transform: none; text-align: left; }
  .cx-strip, .cx-row.is-flip .cx-strip { height: min(75vw, 420px); padding-inline: var(--gutter); direction: ltr; }
  .cx-track { border-radius: 12px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .bar { gap: 12px; } .bar nav { gap: 0; } .bar-btn { font-size: 12px; padding: 9px; max-width: 30vw; } .bar .pill { padding: 9px 13px; }
  .hero { padding-top: 50px; padding-bottom: 36px; }
  h1 { font-size: clamp(42px, 12vw, 60px); }
  .sub { font-size: 15px; max-width: 34ch; margin-top: 20px; }
  .links { gap: 9px; margin-top: 24px; }
  .pill.big, .secondary { font-size: 13px; padding: 13px 18px; gap: 12px; }
  .section-heading { margin-bottom: 28px; } .eyebrow { font-size: 9px; } h2 { font-size: 34px; }
  .section-heading > p:last-child:not(.eyebrow) { font-size: 14px; max-width: 33ch; }
  .last h2 { font-size: 40px; }
  footer { padding-top: 24px; padding-bottom: 30px; gap: 20px 14px; } footer nav { width: 100%; gap: 24px; } footer .theme-seg { margin-left: auto; margin-right: 0; }
}
@media (max-width: 1000px) { .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-reel { gap: 12px; } }
@media (max-width: 820px) {
  /* A SCROLLER HERE, reached by keyboard (it is a tab stop) and drawn with room for each phone's
     5px ring; its edges are the screen's, so its focus ring is drawn inside them. */
  .lp-reel { display: flex; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .lp-reel:focus-visible { outline-offset: -4px; }
  .lp-reel::-webkit-scrollbar { display: none; }
  .lp-reel li { flex: 0 0 min(52vw, 230px); scroll-snap-align: start; }
  .lp-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) { .lp-steps, .lp-features, .lp-pair, .lp-sizes, .lp-gallery { padding-top: 85px; } }
@media (max-width: 560px) {
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-pair article { padding: 26px 22px 28px; }
  .lp-shapes { gap: 18px 22px; }
  .lp-shape { width: 76px; border-radius: 7px; }
  .lp-shapes strong { font-size: 13px; }
  .lp-shapes li { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .secondary, .cx-track img, .faq summary::after { transition: none; }
  .cx-big, .cx-ask { transform: none; }
}

/* --- skills: a player for each kind, on /skills and the homepage --------------------
   The owner, 2026-11-26: "show all skills with their demo ... use apple ui style everywhere and put some colors not
   just black and white", then "show it like one place for video so it is changing according to selected in dropdown,
   and we're going to add carousels also for it as well but separate section on skills page", then "also change dropdown
   to show options to select", choosing "Visible options". So a kind of skill is one player: EVERY SKILL A PILL over ONE
   PANEL at a time — tinted, round, no rule round it, its demo on the left and its words on the right where there is
   room, stacked on a phone. The colour is the TONE, a number the page writes on a pill and its panel alike
   (editor/src/skill-cards.ts) — 0 the accent, 1 to 6 the theme's spots — so no skill is named here. The tints carry
   words only on the page's --panel, where lib/theme.ts measures them (THEME_TINT_PAIRS), and a chosen pill's words are
   white on its tone's fill, measured too (THEME_TEXT_PAIRS `on-accent`). A pill shows its panel and a carousel's slides
   move (editor/src/skill-show.ts); "Use this skill" fills the box (editor/src/skill-use.ts). */
.skills { padding-top: 120px; }
.skill-show { margin: 0; }
/* THE BAR, centred: the pills, wrapping to as many rows as they need, and after them the player's own pause (WCAG
   2.2.2), shown with script by editor/src/home-loops.ts for the videos and editor/src/skill-show.ts for the slides —
   and the videos' sound after it (the owner, 2026-11-27: "turn on sounds for demo also, along to turn off as well").
   The pills' rows are kept narrower than a laptop's column, so the pills and the pause centre together and thirteen
   break as seven and six rather than eleven and two, the pause stranded at the edge: with their symbols, the first
   seven are 739 px and eight 846 (measured in Chrome at 1280 px, 2026-11-26), so the rows stop midway, at 790.
   A TABLET'S COLUMN, or a phone on its side, is narrower than 790 and would wrap at its own width — six and six and one,
   "Colour flip" alone — so from 561 to 860 px the pills draw tighter (gap 6, padding 10 and 12, 14 px words: the first
   seven 653 px, eight 747) and stop at 700, seven and six again; under 765 px at 545, five a row (six would be 550).
   THE VIDEOS' TWO BUTTONS, the pause and the sound (`.skill-controls`), stand one over the other from 561 to 919 px —
   two rows of pills are as tall as the two buttons — so they take the room one took and the rows still break as seven
   and six: side by side they take 82 px (98 to a finger), and from 861 to 903 px "Colour flip" fell to a row of its
   own, the pills already at their laptop size there and their 790 not reached (measured in Chrome, mouse and touch,
   2026-11-27). 919 rather than 904 leaves the pills 16 px for a font drawn a little wider. */
.skill-bar { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; margin: 0 0 24px; }
.skill-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-width: 0; max-width: 790px; }
.skill-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
/* A PILL, as apple.com sets a row of choices: a capsule on the page's own ground in a hairline, its words quiet, darker
   under a pointer that hovers (never a finger's, which a phone leaves "hovering" on whatever slid under it once the row
   scrolled); THE CHOSEN ONE FILLED IN ITS TONE, its words white, and edged in its tone's words colour — told by its
   fill, its edge and its words alike (each fill and each edge measured 3:1 on the page: THEME_MARK_PAIRS). */
.skill-tab { --tab-fill: var(--accent-fill); --tab-edge: var(--accent); --symbol: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; min-height: 36px; margin: 0; padding: 0 16px 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink-2); font: 600 15px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
@media (hover: hover) { .skill-tab:hover { border-color: var(--ink-3); color: var(--ink); } }
.skill-tab[aria-selected="true"] { border-color: var(--tab-edge); background: var(--tab-fill); color: var(--on-accent); }
/* A PILL'S SYMBOL (the owner, 2026-11-26: "use like logos or things what they represent along with inside pill", then
   "coloring also same"): 16 px before the word, a picture of what the look stands for in the colour it is known by —
   the pill's own `--symbol`, a role editor/src/skill-cards.ts sets from the skill's row, measured 3:1 on the pill's
   --panel in both themes (THEME_MARK_PAIRS) — drawn as lines on a round pen, a solid part filled; and ON THE CHOSEN PILL
   its words' white, so a red symbol never sinks into a red fill. The left padding is three less than the right, as the
   symbol's own box holds a little air. */
.skill-symbol { flex: 0 0 16px; width: 16px; height: 16px; color: var(--symbol); transition: color .18s ease; }
.skill-symbol path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skill-symbol .skill-symbol-solid { fill: currentColor; stroke: none; }
.skill-tab[aria-selected="true"] .skill-symbol { color: inherit; }
/* Forced colours keep an author's colour on an svg that sets its own, and the pill under it is the system's: the
   symbol takes the pill's words' colour there, as its words do. */
@media (forced-colors: active) { .skill-symbol { color: inherit; } }
.skill-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skill-tab[data-tone="1"] { --tab-fill: var(--spot-1-fill); --tab-edge: var(--spot-1); }
.skill-tab[data-tone="2"] { --tab-fill: var(--spot-2-fill); --tab-edge: var(--spot-2); }
.skill-tab[data-tone="3"] { --tab-fill: var(--spot-3-fill); --tab-edge: var(--spot-3); }
.skill-tab[data-tone="4"] { --tab-fill: var(--spot-4-fill); --tab-edge: var(--spot-4); }
.skill-tab[data-tone="5"] { --tab-fill: var(--spot-5-fill); --tab-edge: var(--spot-5); }
.skill-tab[data-tone="6"] { --tab-fill: var(--spot-6-fill); --tab-edge: var(--spot-6); }
/* Forced colours take every fill away, so the chosen pill is drawn in the system's own selection. */
@media (forced-colors: active) { .skill-tab[aria-selected="true"] { forced-color-adjust: none; border-color: Highlight; background: Highlight; color: HighlightText; } }
/* A TABLET'S PILLS, tighter, so its rows break as a laptop's (the bar's note above). */
@media (min-width: 561px) and (max-width: 860px) {
  .skill-tabs { gap: 6px; max-width: 700px; }
  .skill-tab { padding: 0 12px 0 10px; gap: 5px; font-size: 14px; }
}
@media (min-width: 561px) and (max-width: 764px) {
  .skill-tabs { max-width: 545px; }
}
/* THE VIDEOS' PAUSE AND SOUND, one over the other wherever side by side would push a pill to a row of its own (the
   bar's note above). */
@media (min-width: 561px) and (max-width: 919px) {
  .skill-controls { flex-direction: column; gap: 8px; }
}
.skill-step-icon path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skill-pause, .skill-sound { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-soft); border-radius: 50%; background: var(--panel); color: var(--ink-2); cursor: pointer; }
.skill-pause[hidden], .skill-sound[hidden] { display: none; }
.skill-pause:hover, .skill-sound:hover { color: var(--ink); border-color: var(--line); }
.skill-pause:focus-visible, .skill-sound:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skill-pause path, .skill-sound path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skill-pause .skill-play-icon { display: none; fill: currentColor; }
.skill-pause[aria-pressed="true"] .skill-pause-icon { display: none; }
.skill-pause[aria-pressed="true"] .skill-play-icon { display: inline; }
/* THE SOUND, round as the pause is: a speaker struck through while off, and with its waves while on (`aria-pressed`,
   editor/src/home-loops.ts); on a demo with no sound of its own, struck through and faint whatever was chosen, and
   pressing it does nothing (`aria-disabled`, its title saying why). */
.skill-sound .skill-sound-on { display: none; }
.skill-sound[aria-pressed="true"] .skill-sound-on { display: inline; }
.skill-sound[aria-pressed="true"] .skill-sound-off { display: none; }
.skill-sound[aria-disabled="true"] { color: var(--ink-3); cursor: default; }
.skill-sound[aria-disabled="true"]:hover { color: var(--ink-3); border-color: var(--line-soft); }
.skill-sound[aria-disabled="true"] .skill-sound-on { display: none; }
.skill-sound[aria-disabled="true"] .skill-sound-off { display: inline; }
.skill-stage { display: grid; gap: 24px; }
/* THE TONE: one pair of roles a panel draws its kicker, its current dot and its ground from. */
.skill-card { --tone: var(--accent-ink); --tone-soft: var(--accent-soft); }
.skill-card[data-tone="1"] { --tone: var(--spot-1); --tone-soft: var(--spot-1-soft); }
.skill-card[data-tone="2"] { --tone: var(--spot-2); --tone-soft: var(--spot-2-soft); }
.skill-card[data-tone="3"] { --tone: var(--spot-3); --tone-soft: var(--spot-3-soft); }
.skill-card[data-tone="4"] { --tone: var(--spot-4); --tone-soft: var(--spot-4-soft); }
.skill-card[data-tone="5"] { --tone: var(--spot-5); --tone-soft: var(--spot-5-soft); }
.skill-card[data-tone="6"] { --tone: var(--spot-6); --tone-soft: var(--spot-6-soft); }
/* STACKED by default — the demo, then the words, centred — and side by side from 761 px (below). A rule the colour of
   nothing, so a forced-colours screen still draws the panel's edge. ONE PANEL SHOWS: the rest carry `hidden`, which a
   rule giving them a display of their own would otherwise undo. */
.skill-card { display: grid; justify-items: center; align-content: start; gap: 28px; margin: 0; padding: 36px 24px 34px; border: 1px solid transparent; border-radius: 28px; background: var(--tone-soft); text-align: center; }
.skill-card[hidden] { display: none; }
.skill-demo { display: grid; justify-items: center; gap: 14px; width: 100%; min-width: 0; }
.skill-phone { position: relative; width: min(250px, 64%); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 26px; background: var(--picture-ground); box-shadow: var(--shadow); }
.skill-phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A CAROUSEL'S DEMO: its slides at 4:5 in a frame rounded as the phone is, a scroller that snaps a slide at a time, so
   a finger swipes it; under it, previous, a dot a slide (the shown one a capsule in the tone, so it is told by its shape
   as well as its colour) and next. */
.skill-slides { position: relative; width: min(400px, 100%); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 26px; background: var(--picture-ground); box-shadow: var(--shadow); }
.skill-slides-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.skill-slides-track::-webkit-scrollbar { display: none; }
.skill-slide { display: block; flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; -webkit-user-drag: none; }
.skill-slides-nav { display: flex; align-items: center; justify-content: center; gap: 8px; }
.skill-slide-step { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-soft); border-radius: 50%; background: var(--panel); color: var(--ink-2); cursor: pointer; }
.skill-slide-step:hover { color: var(--ink); border-color: var(--line); }
.skill-slide-step:focus-visible, .skill-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skill-dots { display: flex; align-items: center; }
.skill-dot { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.skill-dot::before { content: ''; width: 7px; height: 7px; border-radius: 4px; background: var(--ink-3); transition: width .25s ease, background-color .25s ease; }
.skill-dot[aria-current="true"]::before { width: 20px; background: var(--tone); }
.skill-words { min-width: 0; }
.skill-kicker { margin: 0 0 8px; color: var(--tone); font: 600 14px/1.3 var(--sans); }
.skill-card h3 { margin: 0; color: var(--ink); font: 600 28px/1.12 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.skill-blurb { max-width: 40ch; margin: 12px auto 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.skill-action { margin: 24px 0 0; }
.skill-use { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 20px; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font: 600 14px/1 var(--sans); text-decoration: none; transition: background-color .18s ease; }
.skill-use:hover { background: var(--accent-fill-hover); }
.skill-use:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skills-all { margin: 40px 0 0; text-align: center; }
/* WHAT A PRESS SAYS WITHOUT LEAVING (editor/src/skill-use.ts: a browser that keeps nothing for the site), under the
   button in the blurb's own words' colour; empty, it takes no room. */
.skill-said { margin: 12px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.skill-said:empty { margin: 0; }
/* /skills' VIDEOS, right under its hero: the homepage's 120 px above a section is too much under a hero that already
   says what the page is (the review of 2026-11-26). */
.skills.skills-page { padding-top: 24px; }
/* SIDE BY SIDE where a panel has the room — a laptop's wide panel, a tablet's column: the demo on the left, the words
   on the right, larger, as apple.com lays one product beside its name. */
@media (min-width: 761px) {
  .skill-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-items: stretch; align-items: center; gap: 48px; padding: 48px 56px; text-align: left; }
  .skill-phone { width: min(280px, 100%); }
  .skill-slides { width: min(420px, 100%); }
  .skill-card h3 { font-size: clamp(30px, 3.4vw, 44px); }
  .skill-blurb { margin-left: 0; font-size: 17px; }
}
@media (pointer: coarse) {
  .skill-use { min-height: var(--touch); }
  .skill-pause, .skill-sound, .skill-slide-step { width: var(--touch); height: var(--touch); flex-basis: var(--touch); }
  .skill-bar, .skill-tab { min-height: var(--touch); }
  .skill-dot { height: var(--touch); }
}
@media (max-width: 760px) {
  .skills { padding-top: 85px; }
  .skills-all { margin-top: 28px; }
}
@media (max-width: 560px) {
  /* ON A PHONE THE PILLS ARE ONE ROW THAT SCROLLS SIDEWAYS (the owner's choice, 2026-11-26): out to the screen's edges,
     its first pill at the page's gutter and the pause pinned after it at the gutter's other side; the row's own scroll,
     never the page's (it is as wide as the screen, and its overscroll is its own), resting a pill's start at the gutter;
     no bar drawn, and the end fading out before the pause (a mask reads only alpha, so its colour is any opaque role),
     so a pill cut there reads as more. editor/src/skill-show.ts
     brings the chosen one whole into it, clear of the padding, which also holds its focus ring inside what the row clips. */
  .skill-bar { justify-content: flex-start; gap: 0; margin-inline: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .skill-tabs { flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-start; max-width: none; margin-block: -4px; padding: 4px 24px 4px var(--gutter); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter) 24px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to left, transparent, var(--ink) 20px); mask-image: linear-gradient(to left, transparent, var(--ink) 20px); }
  .skill-tabs::-webkit-scrollbar { display: none; }
  .skill-tab { scroll-snap-align: start; }
  /* The sound pinned after the pause, apart from it as the pills are from each other. */
  .skill-controls { gap: 8px; }
  .skill-card { gap: 22px; padding: 28px 18px 26px; border-radius: 24px; }
  .skill-phone { width: min(220px, 66%); border-radius: 22px; }
  .skill-slides { border-radius: 22px; }
  .skill-card h3 { font-size: 24px; }
  .skill-blurb { font-size: 15px; }
}
/* WITH NO SCRIPT THE PAGE IS STILL A LIST OF EVERY SKILL: no pills that could do nothing, and every panel shown, one
   under another, each video its poster and each carousel its cover (the review of 2026-11-26: a swipe past a cover
   landed on slides nothing would ever give a file). */
@media (scripting: none) {
  .skill-show .skill-card[hidden] { display: grid; }
  .skill-bar, .skill-slides-nav { display: none; }
  /* A slide waiting in data-src is never given its file without script: each carousel shows its cover alone. */
  .skill-slide[data-src] { display: none; }
}
.skill-phone .skill-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .skill-tab, .skill-symbol, .skill-use, .skill-dot::before { transition: none; }
}
/* THE HEADER'S "Skills" STAYS WHILE THE BAR HAS ROOM FOR IT: the rule that hides a bar's first link under 1000px is for a
   search page's "What it does", and Skills is the first on the homepage and on /skills. Under 760px every link goes,
   and the footer has it. */
@media (min-width: 761px) and (max-width: 1000px) { .bar nav a[href="/skills"] { display: inline; } }
@media (min-width: 761px) and (max-width: 1000px) and (pointer: coarse) { .bar nav a[href="/skills"] { display: inline-flex; } }

/* site/ask.css */
/* "What do you want to make?" — THE BOX, wherever it is drawn: the Dashboard's (`mountAsk` in editor/src/hub.ts, the
   built-in chat with no project, `chat-panel.ts` variant 'dash') and the homepage's, the same markup written into the
   hero by both hosts (`askBoxHtml`, editor/src/ask-box.ts). Composed into the hub's sheet before site/hub.css, which
   draws the conversation around it, and into the homepage's after site/home.css (lib/theme.ts `STYLESHEETS`). These
   rules sat in site/hub.css until 2026-11-16 and moved here word for word, in their order, so the Dashboard is drawn
   exactly as it was; the homepage's own few — its width in the hero, its label, its files kept in the browser — follow.
   Every colour is a role from lib/theme.ts. */
.chat[data-variant="dash"] { display: grid; gap: 14px; font-size: 15px; line-height: 1.55; }
.chat [hidden] { display: none !important; }
.chat-more, .chat-attach { display: inline-grid; place-items: center; width: var(--touch); height: var(--touch); padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.chat-more:hover, .chat-attach:hover { background: var(--panel-2); color: var(--ink); }
.chat-attach:disabled { opacity: .4; cursor: default; }
.chat-glyph { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chat-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-example { padding: 9px 15px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--bg); color: var(--ink-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
.chat-example:hover { border-color: var(--ink-3); color: var(--ink); }
.chat-status { margin: 0; color: var(--ink-3); font-size: 13px; }
.chat-status:empty { display: none; }
/* WHAT THE CHAT VIEW ADDS (editor/app.css): a reply's film and foot, and the box's other glyphs — none of them the Dashboard's. */
.chat-media, .chat-plus, .chat-up, .chat-stop, .chat-down, .chat-menu-editor { display: none; }
.chat-word { white-space: nowrap; }
.chat-composer { display: grid; gap: 8px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chip { position: relative; display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 4px 4px 4px 12px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 12px; }
.chat-chip[data-state="failed"] { border-color: var(--warn-line); color: var(--warn); }
.chat-chip-name { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-chip-bar { position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width .2s ease; }
.chat-chip[data-state="ready"] .chat-chip-bar, .chat-chip[data-state="failed"] .chat-chip-bar { display: none; }
.chat-chip-x { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.chat-chip-x:hover { background: var(--panel-2); color: var(--ink); }
.chat-field { display: grid; gap: 8px; padding: 16px 14px 12px 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); box-shadow: var(--shadow); transition: border-color .18s ease; }
.chat-field:focus-within { border-color: var(--accent); }
/* THE "/" LIST: the skills, over the box (editor/src/slash-menu.ts) — the field places it, and it opens upward. */
.chat-field { position: relative; }
.chat-slash { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 30; display: grid; gap: 2px; max-height: 300px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); box-shadow: var(--shadow); text-align: left; }
/* NO ROOM ABOVE THE BOX — the Dashboard's, near the top — it opens downward instead (slash-menu.ts `place`). */
.chat-slash.chat-slash-below { top: calc(100% + 8px); bottom: auto; }
.chat-slash-item { display: grid; gap: 2px; padding: 9px 12px; border-radius: 12px; cursor: pointer; }
/* THE SKILL CHOSEN, as a menu in macOS shows the row under the keys: Apple's blue, its words white — the editor's own
   list (editor/app.css) draws it so, and the two are one list. Its note stays whole-white rather than faded, in both,
   so it reads at AA on the blue. */
.chat-slash-item[aria-selected="true"] { background: var(--accent-fill); }
.chat-slash-item[aria-selected="true"] :is(.chat-slash-name, .chat-slash-note) { color: var(--on-accent); }
.chat-slash-name { color: var(--ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.chat-slash-note { color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.chat-input { width: 100%; min-height: 72px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.55; resize: none; overflow-y: hidden; }
.chat-input:focus { outline: none; }
/* A SKILL NAMED AT THE START OF THE WORDS, IN THE ACCENT, as Claude draws a slash command (the owner, 2026-11-26: "like
   "/skill-name" should become blue like in claude in editor"). A textarea cannot colour part of its words, so the same
   words are drawn in a mirror of its box, type and wrapping (editor/src/slash-mark.ts copies them from the field),
   laid OVER the field — positioned, after it — so a selection or an input method's highlight, which the field draws
   behind its words, stays behind the mirror's. ONLY WHILE A SKILL IS NAMED (`data-skill`) are the field's own words
   see-through; its caret stays, in its ink. The name changes colour and nothing else, or the caret would stand off its
   letters. editor/app.css draws the same. */
.chat-write { position: relative; display: grid; }
.chat-mirror { position: absolute; inset: 0; overflow: hidden; margin: 0; border: 0 solid transparent; color: var(--ink); white-space: pre-wrap; overflow-wrap: break-word; pointer-events: none; user-select: none; }
.chat-input[data-skill] { -webkit-text-fill-color: transparent; caret-color: currentColor; }
.chat-skill { color: var(--accent-ink); }
.chat-composing { text-decoration: underline; }
@media (forced-colors: active) {
  .chat-mirror { display: none; }
  .chat-input[data-skill] { -webkit-text-fill-color: currentColor; }
}
.chat-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-send { min-height: var(--touch); padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chat-send:hover:not(:disabled) { background: var(--accent-fill-hover); }
.chat-send:disabled { background: var(--raised); color: var(--ink-3); cursor: default; }
/* STOP STAYS THE INK, pointer over it or not: `:hover:not(:disabled)` above outranks a bare `[data-mode]`, so without
   the second rule a Stop turned blue under the pointer and read as one more Make it. */
.chat-send[data-mode="stop"], .chat-send[data-mode="stop"]:hover:not(:disabled) { background: var(--ink); color: var(--panel); }
/* A + TO ATTACH, as the chat view's pill has one and as a chat's own box does — not a paperclip. */
/* ITS MENU (Clear) beside Make it, at the box's end: the Dashboard's chat has no head to carry one. */
.chat[data-variant="dash"] .chat-menu-at { margin-left: auto; }
.chat[data-variant="dash"] .chat-paperclip { display: none; }
.chat[data-variant="dash"] .chat-plus { display: block; width: 22px; height: 22px; stroke-width: 1.8; }
:is(.chat-example, .chat-fold, .chat-yes, .chat-no, .chat-send, .chat-chip-x, .chat-menu-item, .chat-save-button, .chat-more, .chat-attach):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 620px) {
  .chat[data-variant="dash"] { font-size: 14px; }
  .chat-field { padding: 14px 10px 10px 16px; border-radius: 20px; }
  .chat-example { font-size: 12px; }
}

/* THE HOMEPAGE'S BOX (the owner, 2026-11-16: "put textfield of dashboard on homepage"): in the hero, between its
   sentence and its links, as wide as a calm column, read left to right inside a centred hero. Its label is the
   Dashboard's heading, said small; the h1 above it stays the page's. A FILE IS KEPT IN THIS BROWSER until the person
   signs in (`home-ask.ts`): "keeping" while its bytes are written, plain once kept, and in the warning colour when it
   could not be — too big for what the browser lends the site, or no storage at all — with why in its title and on the
   status line; `kept` is the Dashboard's too, for a carried request's file that uploads when Make it is pressed there.
   Its two examples a phone shows are the first two; the third waits for a wider screen. On a short laptop
   screen the hero tightens around it (site/home.css, "the hero on a short screen"). */
.home-ask { max-width: 720px; margin: 34px auto 0; text-align: left; }
.home-ask-label { display: block; margin: 0 0 10px 6px; color: var(--ink-2); font: 600 15px/1.3 var(--display); letter-spacing: -.01em; }
.home-ask .chat[data-variant="dash"] { gap: 12px; }
.home-ask .chat-examples { justify-content: center; }
.home-ask .chat-status { padding: 0 6px; }
.home-ask .chat-status a { color: var(--accent-ink); font-weight: 600; }
.chat-chip[data-state="keeping"] .chat-chip-bar { width: 100%; opacity: .35; animation: ask-keeping 1.2s ease-in-out infinite alternate; }
@keyframes ask-keeping { from { opacity: .15; } to { opacity: .55; } }
.chat-chip[data-state="kept"] .chat-chip-bar { display: none; }
.chat-chip[data-state="unkept"] { border-color: var(--warn-line); color: var(--warn); }
.chat-chip[data-state="unkept"] .chat-chip-bar { display: none; }
@media (max-width: 560px) {
  .home-ask { margin-top: 26px; }
  .home-ask-label { font-size: 14px; }
  .home-ask .chat-example:nth-child(n + 3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-chip[data-state="keeping"] .chat-chip-bar { animation: none; }
}

/* site/connect.css */
/*
 * HOW TO CONNECT A CHATBOT, AS ONE PROMPT: the box the homepage's Connect and the Dashboard both show under their
 * heading and the line naming the chatbots (lib/connect.ts `connectAsk`, wired by editor/src/home-connect.ts
 * `wireConnect`; the owner, 2026-11-15). Composed into both pages' stylesheets (`STYLESHEETS` in lib/theme.ts), so
 * the two cannot drift; each page places it, and nothing here knows which page it is on. Every colour is a role
 * from lib/theme.ts, light and dark alike.
 */
.connect-ask { min-width: 0; text-align: left; }
.connect-prompt { display: flex; align-items: center; gap: 14px 18px; padding: 14px 14px 14px 22px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--bg); }
.connect-prompt-text { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--ink); font: 500 16px/1.5 var(--sans); letter-spacing: -.01em; overflow-wrap: anywhere; }
/* COPY, Apple's blue capsule (the owner, 2026-11-26: "use apple ui style everywhere and put some colors not just black
   and white"), deeper blue under the pointer; and quiet once it has done its work — Copied, or Selected where the
   clipboard refused. */
.connect-copy { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 96px; min-height: var(--touch); padding: 0 20px; border: 1px solid var(--accent-fill); border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font: 600 14px/1 var(--sans); cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.connect-copy:hover { border-color: var(--accent-fill-hover); background: var(--accent-fill-hover); }
.connect-copy[data-state] { border-color: var(--line); background: var(--panel); color: var(--ink-2); opacity: 1; }
.connect-copy[hidden] { display: none; }
.connect-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* What a screen reader is told as the button changes, and nobody else sees. */
.connect-said { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.connect-address { margin: 18px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
/* THE ADDRESS, a word to paste: one press selects it whole. */
.connect-address code { color: var(--ink); font: 400 13px/1.6 var(--mono); white-space: normal; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.connect-more { margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
.connect-more a { color: var(--accent-ink); text-underline-offset: 3px; }
/* A PHONE: the prompt over its button, the button a finger's full width, and no line wider than the screen. */
@media (max-width: 560px) {
  .connect-prompt { flex-direction: column; align-items: stretch; padding: 16px; border-radius: 16px; }
  .connect-prompt-text { font-size: 15px; }
  .connect-address, .connect-more { font-size: 13px; }
  .connect-address code { font-size: 12px; }
}

/* site/auth.css */
/*
 * The account dialog, and the menu under the account button.
 *
 * SHARED, BECAUSE THE DIALOG IS. `askToSignIn` and `accountMenu` are one
 * definition in `editor/src/signin.ts` and the editor, /dashboard and /create
 * all open them — so their appearance has to be one definition too. It lived in
 * `editor/app.css`, which the hub pages do not load, and the first thing a
 * person saw on /dashboard was an unstyled form.
 *
 * COMPOSED INTO BOTH STYLESHEETS AT BUILD, rather than linked as a third file:
 * a separate <link> would be an extra request on every page, and an unhashed one
 * under a year-long immutable header is exactly the stale-asset trap this build
 * hashes everything to avoid. `scripts/build-web.ts` and `scripts/serve.ts` each
 * append it, and `npm run check` asserts both outputs still contain it.
 *
 * ITS OWN CHROME, NOT `.connect`'s. That one is the editor's dense panel — small
 * type, a title bar, full width — and a sign-up form in it reads as a settings
 * sheet stretched to 740px. This is the first thing anybody sees after the
 * homepage, so it keeps that register: one narrow column, generous, quiet.
 *
 * APPLE'S SHEET, IN EITHER THEME: a white card (#1C1C1E in dark) with a large
 * title, fields 44 points tall, one filled blue button and the rest tinted. Every
 * colour is a role from lib/theme.ts, which every stylesheet this is composed into
 * starts with — no fallback values, because there is no sheet without them.
 */

.signin-field {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  font: inherit;
}

.signin-field:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* THE CARD HAS TO STAY REACHABLE ON A SHORT WINDOW. A dialog centres itself
   with `margin: auto` inside its own box, so a card taller than the viewport
   hangs off BOTH ends with nothing to scroll and the "Create account" button
   is simply gone — measured at 708px of card in a 640px window. So the dialog
   is the whole viewport, scrolls itself, and centres the card with a flex
   `margin: auto`, which is the one centring that does not clip what overflows. */
dialog.auth {
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 24px 16px;
  box-sizing: border-box;
  background: transparent;
  color: var(--ink);
  overflow-y: auto;
  /* A scroll that reaches the end stops there rather than scrolling the editor
     behind the backdrop. */
  overscroll-behavior: contain;
}

/* SCOPED TO [open], because `dialog:not([open]) { display: none }` is a UA rule
   of the same specificity as `dialog.auth` — an unscoped `display: flex` here
   beats it and the sign-in card is on screen before anybody asks for it. */
dialog.auth[open] { display: flex; }

dialog.auth::backdrop {
  background: var(--overlay);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.auth-card {
  /* `margin: auto` on a flex child, not `place-items: center` on the parent:
     grid centring clips the top of an item taller than its container. */
  margin: auto;
  width: min(400px, 100%);
  flex: 0 0 auto;
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  padding: 34px 34px 28px;
  box-shadow: var(--shadow);
  font: 400 15px/1.55 var(--sans);
}

.auth-mark {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin-bottom: 22px;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Signing in has no lede, so the heading carries the space it was giving. */
.auth-card.auth-tight h2 { margin-bottom: 24px; }

.auth-lede {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.auth-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  color: var(--warn);
  font-size: 13.5px;
}

/* WHAT IS NOT A FAILURE — an account waiting on its inbox, a link on its way — in the accent's
   soft fill rather than the warning's. */
.auth-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 13.5px;
}
.auth-note + .auth-link { display: block; margin: -4px 0 14px; font-size: 13.5px; }
/* HIDDEN MEANS HIDDEN: each of these sets its own `display`, which beats the browser's `[hidden]`. */
.auth-link[hidden], .auth-google[hidden], .auth-or[hidden], .auth-note[hidden] { display: none; }

/* "Forgot password?", under the field it is about, to the right. */
.auth-forgot {
  display: block;
  margin: -6px 0 14px auto;
  font-size: 13px;
}

/* The label wraps its input, so the whole thing is one click target and the
   two cannot drift apart. */
/* `display: block` HERE BEATS THE BROWSER'S OWN `[hidden] { display: none }`,
   because an author rule wins a tie against the user agent — so the Confirm
   password field stayed on screen while signing in, with `hidden` dutifully set
   to true on it. Checking the PROPERTY said it was hidden; checking the pixels
   would have said otherwise. */
.auth-label[hidden] { display: none; }

.auth-label {
  display: block;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.auth-label .signin-field {
  margin: 6px 0 0;
  height: 44px;
  padding: 0 13px;
  font-size: 16px;
  border-radius: 10px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 100%;
}

.auth-label .signin-field::placeholder { color: var(--ink-3); }
.auth-label .signin-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-primary {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.auth-primary:hover:not(:disabled) { background: var(--accent-fill-hover); }
.auth-primary:disabled { opacity: 0.6; cursor: default; }

/* A rule with a word in it, rather than a word floating between two buttons. */
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--ink-2);
  font-size: 12px;
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-google {
  display: block;
  height: 44px;
  line-height: 42px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.auth-google:hover { background: var(--raised); }

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
}

/* The other mode is a sentence, not a second button competing with the first. */
.auth-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 500;
  color: var(--accent-ink);
  cursor: pointer;
}

.auth-link:hover { text-decoration: underline; }

.auth-fine {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* A SECOND ACTION IN THE CARD, as a button: the Google button's outline, the width of the primary. */
button.auth-second {
  width: 100%;
  margin-top: 10px;
  background: none;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

/* --- the account's connected chatbots -------------------------------------- */

/* A SHEET'S GROUPED LIST (`openConnections`): one inset group on the card, a row each, a hairline
   between rows from the text's edge, a quiet Disconnect in the warning's ink. Wider than the
   sign-in card, so a row is a line of title and a line of detail rather than three. */
.auth-card.conn-card { width: min(480px, 100%); }
.conn-card .auth-lede { margin-bottom: 20px; }

.conn-list {
  margin: 0 0 12px;
  border-radius: 14px;
  background: var(--panel-2);
  overflow: hidden;
}
.conn-list[hidden] { display: none; }

.conn-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 11px 10px 11px 14px;
}
.conn-row + .conn-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 64px;
  right: 0;
  height: 1px;
  background: var(--line);
  transform: scaleY(0.5);
  transform-origin: top;
}

.conn-tile {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.conn-tile[data-here] { background: var(--raised); color: var(--ink-2); }

.conn-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conn-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conn-sub { color: var(--ink-3); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }

.conn-end {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--warn);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
/* LIFTED ONTO THE CARD'S GROUND, not tinted: the warning's ink on its own tint over `--panel-2`
   is 4.16:1 in dark, under AA for words this size; on `--panel` it is 6:1 (THEME_TEXT_PAIRS). */
.conn-end:hover:not(:disabled) { background: var(--panel); }
.conn-end:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.conn-end:disabled { color: var(--ink-3); cursor: default; }

/* WHILE THE LIST IS READ: two rows' shape, breathing unless motion is turned down. */
.conn-waiting .conn-tile { background: var(--raised); }
.conn-bar { display: block; width: 38%; height: 10px; border-radius: 5px; background: var(--raised); }
.conn-bar + .conn-bar { width: 62%; margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .conn-waiting { animation: conn-waiting 1.1s ease-in-out infinite alternate; }
}
@keyframes conn-waiting { to { opacity: 0.45; } }

/* NO ROWS: a drawing, what is so, and where to connect one — in the group's own place. */
.conn-list.conn-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 20px 26px;
  text-align: center;
}
.conn-empty-icon { margin-bottom: 8px; color: var(--ink-3); }
.conn-empty-title { margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; }
.conn-empty-words { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.conn-empty .auth-link { margin-top: 10px; font-size: 14px; text-decoration: none; }

.conn-foot { margin: 0 0 18px; padding: 0 4px; color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }

@media (max-width: 460px) {
  .auth-card { padding: 26px 22px 22px; border-radius: 14px; }
  .auth-card h2 { font-size: 22px; }
}

/* The website's signed-in header stays compact; identity is inside the menu. */
body[data-page] #account.account-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: var(--touch);
  min-height: var(--touch);
  max-width: none;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  overflow: visible;
  text-overflow: clip;
}
body[data-page] #account.account-compact:hover { background: var(--bg); opacity: 1; transform: none; }
.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font: 600 13px/1 var(--sans);
}
.account-chevron { color: var(--ink-3); font: 400 12px/1 var(--sans); }

/* --- the account menu, shared with the editor ----------------------------- */

.who-menu {
  position: fixed;
  width: 300px;
  min-width: 0;
  max-width: calc(100vw - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow);
  font: 400 13px/1.4 var(--sans);
  z-index: 60;
}

.who-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 6px;
}
.who-avatar { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-soft); border-radius: 50%; background: var(--bg); color: var(--ink); font: 600 14px/1 var(--sans); }
.who-identity { display: grid; gap: 3px; min-width: 0; }
.who-caption { color: var(--ink-3); font-size: 10px; }
.who-email { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.who-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  text-align: left;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  cursor: pointer;
}
.who-item:hover { background: var(--bg); color: var(--ink); }
.who-item:active { background: var(--panel-2); }
.who-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.who-icon { flex: 0 0 16px; width: 16px; height: 16px; color: var(--ink-3); }
.who-item:hover .who-icon { color: var(--ink); }
.who-item-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

/* THE WAYS OUT, under a rule of their own. */
.who-item[data-leave] { color: var(--ink-2); }
.who-item:not([data-leave]) + .who-item[data-leave] {
  margin-top: 10px;
}
.who-item:not([data-leave]) + .who-item[data-leave]::before { content: ''; position: absolute; top: -5px; left: 10px; right: 10px; height: 1px; background: var(--line-soft); }

@media (pointer: coarse) {
  .who-item { min-height: var(--touch); }
  .conn-end { min-height: var(--touch); }
}

.auth-fine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.auth-fine a:hover { color: var(--ink); }
.auth-legal { margin: 4px 0 18px; padding: 0; border: 0; }
