/* The command bar (⌘K): public/agency-command.js, plus the Settings / Your AI / setup pages (public/agency-settings.js, scoped ".fxs").
   Blanks 2045 look (notes/DESIGN-2045-2026-11-20.md): tokens + primitives from future.css (loaded after this file).
   The fallbacks keep it right on its own. Aurora colour only on AI moments. */
.cmdk-back, .cmdk-trigger, .fxs {
  --cmdk-ink: var(--fx-ink, var(--fx-ink)); --cmdk-ink-2: var(--fx-ink-2, var(--fx-ink-2)); --cmdk-ink-3: var(--fx-ink-3, var(--fx-ink-3)); --cmdk-ink-4: var(--fx-ink-4, #a3a8b3);
  --cmdk-card: var(--fx-card, #fff); --cmdk-sunk: var(--fx-sunk, var(--fx-sunk));
  --cmdk-line: var(--fx-line, rgba(31, 30, 29, 0.07)); --cmdk-line-2: var(--fx-line-2, rgba(31, 30, 29, 0.12));
  --cmdk-cobalt: var(--fx-cobalt, var(--fx-cobalt)); --cmdk-cobalt-text: var(--fx-cobalt-deep, var(--fx-cobalt-deep)); --cmdk-cobalt-soft: var(--fx-cobalt-soft, var(--fx-cobalt-soft));
  --cmdk-aurora: var(--fx-aurora, linear-gradient(110deg, var(--fx-cobalt), #e19e81 38%, #e27ad6 68%, #ffb38a));
  --cmdk-bad: var(--fx-bad);
  --cmdk-ease: var(--fx-ease, cubic-bezier(.2, .8, .2, 1));
  --cmdk-font: var(--fx-sans, 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif);
  --cmdk-mono: var(--fx-mono, ui-monospace, Consolas, monospace);
  font-family: var(--cmdk-font);
}
html.cmdk-open { overflow: hidden; }

/* ═════════════ the command bar: a floating glass composer ═════════════ */
.cmdk-back {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center;
  padding: 13vh 16px 16px; background: rgba(18, 13, 11, 0); transition: background 220ms var(--cmdk-ease), backdrop-filter 220ms var(--cmdk-ease);
}
.cmdk-back[hidden] { display: none; }
.cmdk-back.in { background: rgba(18, 13, 11, 0.16); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cmdk.fx-glass, .cmdk {
  width: 100%; max-width: 680px; max-height: min(600px, 78vh); display: flex; flex-direction: column;
  background: var(--fx-glass-strong, rgba(255, 255, 255, 0.9)); color: var(--cmdk-ink); border-radius: 26px; overflow: hidden;
  box-shadow: var(--fx-shadow-float, 0 40px 80px -32px rgba(31, 30, 29, .35)), 0 0 0 1px rgba(255, 255, 255, .6) inset;
  opacity: 0; transform: translateY(-8px) scale(0.985); transition: opacity 200ms var(--cmdk-ease), transform 260ms var(--cmdk-ease);
}
.cmdk-back.in .cmdk { opacity: 1; transform: none; }
.cmdk .ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.cmdk .ico svg { width: 100%; height: 100%; }

/* input row: big, calm; focus glows cobalt like the composer */
.cmdk-head { display: flex; align-items: center; gap: 10px; margin: 10px 10px 4px; padding: 10px 8px 10px 16px; border-radius: 20px; background: var(--cmdk-card); box-shadow: 0 0 0 1px var(--cmdk-line); transition: box-shadow 260ms var(--cmdk-ease); }
.cmdk-head:focus-within { box-shadow: 0 0 0 1px rgba(201, 100, 66, .35), 0 0 0 6px rgba(201, 100, 66, .08), 0 18px 40px -26px rgba(201, 100, 66, .45); }
.cmdk-glass { color: var(--cmdk-ink-4); }
.cmdk .cmdk-input {
  flex: 1; min-width: 0; height: auto; border: 0; outline: 0; background: transparent; box-shadow: none; padding: 6px 0; color: var(--cmdk-ink);
  font: 400 22px/1.35 var(--cmdk-font); letter-spacing: -0.015em;
}
.cmdk .cmdk-input::placeholder { color: var(--cmdk-ink-4); }
.cmdk .cmdk-mic, .cmdk .cmdk-close {
  display: inline-flex; align-items: center; justify-content: center; width: var(--fx-h); height: var(--fx-h); padding: 0; flex: none;
  border: 0; border-radius: 999px; cursor: pointer; transition: background 160ms var(--cmdk-ease), color 160ms, box-shadow 160ms;
}
.cmdk .cmdk-mic { background: var(--cmdk-ink); color: #fff; box-shadow: var(--fx-shadow-card); }
.cmdk .cmdk-mic:hover { background: #2f2622; }
.cmdk .cmdk-mic.on { background: var(--cmdk-aurora); color: #fff; animation: cmdk-pulse 1.6s ease-out infinite; }
.cmdk .cmdk-close { background: transparent; color: var(--cmdk-ink-3); box-shadow: none; width: 34px; height: 34px; }
.cmdk .cmdk-close:hover { background: var(--cmdk-sunk); color: var(--cmdk-ink); }
@keyframes cmdk-pulse { 0% { box-shadow: 0 0 0 0 rgba(225, 158, 129, 0.4); } 100% { box-shadow: 0 0 0 12px rgba(225, 158, 129, 0); } }
.cmdk :focus-visible { outline: 2px solid var(--cmdk-cobalt); outline-offset: 2px; }
.cmdk .cmdk-input:focus-visible { outline: 0; }

/* status line (thinking / messages) */
.cmdk-live { font-size: 13px; line-height: 1.4; color: var(--cmdk-ink-2); padding: 0 24px; }
.cmdk-live:not(:empty) { padding: 10px 24px 2px; }
.cmdk-live.bad { color: var(--cmdk-bad); }
.cmdk.busy .cmdk-live::after { content: ''; display: inline-block; width: 22px; height: 4px; margin-left: 10px; border-radius: 3px; background: var(--cmdk-aurora); vertical-align: middle; animation: cmdk-blink 900ms ease-in-out infinite; }
.cmdk.planning .cmdk-live:not(.bad) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
@keyframes cmdk-blink { 50% { opacity: 0.25; } }

/* results, grouped: Clients · Ideas · Proposals · Actions */
.cmdk-list { list-style: none; margin: 0; padding: 4px 10px 10px; overflow-y: auto; flex: 1; }
.cmdk-list[hidden] { display: none; }
.cmdk-group { padding: 14px 12px 6px; font: 500 12px/1.2 var(--cmdk-font); letter-spacing: .02em; color: var(--cmdk-ink-3); }
.cmdk-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; cursor: pointer;
  color: var(--cmdk-ink); font-size: 15px; line-height: 1.3; transition: background 140ms var(--cmdk-ease), box-shadow 140ms var(--cmdk-ease);
}
.cmdk-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none; background: var(--cmdk-card); box-shadow: 0 0 0 1px var(--cmdk-line); color: var(--cmdk-ink-3); }
.cmdk-ico .ico { width: 16px; height: 16px; }
.cmdk-item.on { background: var(--cmdk-card); box-shadow: var(--fx-shadow-card); }
.cmdk-item.on .cmdk-ico { color: var(--cmdk-ink); }
.cmdk-item[data-kind="ask"], .cmdk-item[data-kind="do"] { font-weight: 500; margin-top: 6px; }
.cmdk-item[data-kind="ask"] .cmdk-ico, .cmdk-item[data-kind="do"] .cmdk-ico { color: #d5764e; background: linear-gradient(var(--cmdk-card), var(--cmdk-card)) padding-box, var(--cmdk-aurora) border-box; border: 1px solid transparent; box-shadow: none; }
.cmdk-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-hint { flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--cmdk-ink-3); }
.cmdk-pill { flex: none; height: 20px; padding: 0 8px; font-size: 10px; }
.cmdk-empty { padding: 20px 14px; font-size: 14px; color: var(--cmdk-ink-3); }

/* the plan: "Blanks will…", what will happen, before any write */
.cmdk-plan { margin: 10px 14px 14px; padding: 20px 22px 18px; border-radius: var(--fx-r-card); background: var(--cmdk-card); }
.cmdk-plan[hidden] { display: none; }
.cmdk-say { margin: 12px 0 0; font: 500 22px/1.28 var(--cmdk-font); letter-spacing: -0.02em; color: var(--cmdk-ink); }
.cmdk-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--cmdk-ink-2); }
.cmdk .cmdk-field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; font-size: 13px; font-weight: 500; color: var(--cmdk-ink-2); }
.cmdk .cmdk-field input {
  height: 42px; font: 500 14px/1.4 var(--cmdk-font); color: var(--cmdk-ink); background: var(--cmdk-sunk);
  border: 0; border-radius: 12px; padding: 0 14px; outline: 0; box-shadow: none; margin: 0;
}
.cmdk .cmdk-field input:focus { box-shadow: 0 0 0 1px rgba(201, 100, 66, .4), 0 0 0 5px rgba(201, 100, 66, .08); background: var(--cmdk-card); }
.cmdk-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.cmdk .cmdk-go, .cmdk .cmdk-cancel {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 18px; border-radius: 999px; border: 0;
  font: 500 14px/1 var(--cmdk-font); cursor: pointer; transition: background 160ms var(--cmdk-ease), opacity 160ms, box-shadow 160ms;
}
.cmdk .cmdk-go { background: var(--cmdk-ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 18px -8px rgba(18, 13, 11, .6); }
.cmdk .cmdk-go:hover { background: #2f2622; }
.cmdk .cmdk-cancel { background: var(--cmdk-sunk); color: var(--cmdk-ink-2); box-shadow: none; }
.cmdk .cmdk-cancel:hover { background: #eee9e7; color: var(--cmdk-ink); }
.cmdk.busy .cmdk-go { opacity: 0.55; pointer-events: none; }
.cmdk .cmdk-go kbd { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: transparent; }

/* footer + keys */
.cmdk-foot { display: flex; gap: 16px; align-items: center; padding: 10px 24px 12px; border-top: 1px solid var(--cmdk-line); font-size: 12px; color: var(--cmdk-ink-3); }
.cmdk-foot-ai { margin-left: auto; }
.cmdk kbd, .cmdk-trigger kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; margin-right: 2px;
  font: 500 12px/1 var(--cmdk-mono); color: var(--cmdk-ink-3); background: var(--cmdk-card); border: 0; box-shadow: 0 0 0 1px var(--cmdk-line-2); border-radius: 6px;
}

/* trigger (nav slot) + phone floating trigger */
.cmdk-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 12px; max-width: 100%;
  border: 0; border-radius: 999px; background: var(--cmdk-card); color: var(--cmdk-ink-3); box-shadow: 0 0 0 1px var(--cmdk-line-2);
  font: 400 13px/1 var(--cmdk-font); cursor: pointer; transition: box-shadow 160ms var(--cmdk-ease), color 160ms;
}
.cmdk-trigger:hover { color: var(--cmdk-ink); box-shadow: 0 0 0 1px var(--cmdk-line-2), 0 4px 12px -6px rgba(31, 30, 29, .25); }
.cmdk-trigger:focus-visible { outline: 2px solid var(--cmdk-cobalt); outline-offset: 2px; }
.cmdk-trigger .ico { display: inline-flex; width: 16px; height: 16px; }
.cmdk-trigger .ico svg { width: 100%; height: 100%; }
.cmdk-trigger-text { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-fab { display: none; }

/* phone: a glass sheet from the bottom */
@media (max-width: 759px) {
  .cmdk-back { align-items: flex-end; padding: 0; }
  .cmdk.fx-glass, .cmdk { max-width: none; max-height: 88vh; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom, 0); transform: translateY(24px); }
  .cmdk-head { margin: 10px 10px 4px; padding: 8px 6px 8px 14px; }
  .cmdk .cmdk-input { font-size: 18px; } /* ≥16px: no zoom on focus */
  .cmdk .cmdk-mic { width: 44px; height: 44px; }
  .cmdk-item { padding: 10px; }
  .cmdk-hint { max-width: 38%; }
  .cmdk-foot { display: none; }
  .cmdk-plan { margin: 8px 10px 12px; padding: 18px; }
  .cmdk-say { font-size: 22px; }
  .cmdk-actions { flex-direction: column-reverse; }
  .cmdk .cmdk-go, .cmdk .cmdk-cancel { justify-content: center; height: 48px; }
  .cmdk .cmdk-go kbd, .cmdk .cmdk-cancel kbd, .cmdk-trigger kbd { display: none; }
  .cmdk-fab {
    display: inline-flex; position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0)); z-index: 900;
    width: 48px; height: 48px; padding: 0; justify-content: center; background: var(--cmdk-ink); color: #fff;
    box-shadow: var(--fx-shadow-card);
  }
  .cmdk-fab .cmdk-trigger-text { display: none; }
  .cmdk-fab .ico { width: 20px; height: 20px; }
}

/* ═════════════ Settings, Your AI, setup (agency-settings.js) ═════════════ */
.fxs { color: var(--cmdk-ink); }
.fxs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 4px 0 22px; }
.fxs .fxs-hero { font: 500 var(--fx-t-title)/1.08 var(--fx-sans); letter-spacing: -.035em; word-spacing: 0; }
.fxs-tabs.fx-tabs { margin: 0 0 22px; padding-bottom: 2px; box-shadow: inset 0 -1px 0 var(--cmdk-line); overflow-x: auto; scrollbar-width: none; }
.fxs-tabs a { text-decoration: none; white-space: nowrap; }
.fxs-stack > * + * { margin-top: 16px; }
.fxs .brand-grid > * + * { margin-top: 0; }

/* calm cards with editorial section titles */
.fxs-card { padding: 24px 26px; }
.fxs-sec { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fxs .fxs-h { margin: 0; font: 500 18px/1.25 var(--cmdk-font); letter-spacing: -0.02em; color: var(--cmdk-ink); }
.fxs-sub { margin: 5px 0 0; max-width: 62ch; font-size: 14px; line-height: 1.5; color: var(--cmdk-ink-3); }
.fxs-note { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--cmdk-ink-3); }
.fxs-note.center { text-align: center; }
.fxs-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.fxs-foot.left { justify-content: flex-start; }
.fxs a.fx-btn { text-decoration: none !important; }
.fxs label { margin-top: 14px; }
.fxs .form-grid label { margin-top: 14px; }

/* lists: rows with a hairline between */
.fxs-list { list-style: none; margin: 0; padding: 0; }
.fxs-list > li + li { border-top: 1px solid var(--cmdk-line); }
.fxs-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.fxs-list > li:first-child, .fxs-list > li:first-child > .fxs-row { padding-top: 4px; }
.fxs-row-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.fxs-row-main b { font-weight: 500; font-size: 14px; color: var(--cmdk-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxs-row-main small { font-size: 13px; line-height: 1.45; color: var(--cmdk-ink-3); }
.fxs-row-end { display: flex; align-items: center; gap: 10px; flex: none; }
.fxs .fxs-tile { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.fxs .fxs-tile.soft { background: var(--cmdk-sunk); color: var(--cmdk-ink-2); }
.fxs-role { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--cmdk-sunk); font: 500 12px/1 var(--cmdk-font); color: var(--cmdk-ink-2); white-space: nowrap; }
.fxs-list.facts .fxs-k { width: 110px; flex: none; font-size: 13px; color: var(--cmdk-ink-3); }
.fxs-list.facts .fxs-v { flex: 1; min-width: 0; font-size: 14px; color: var(--cmdk-ink); overflow-wrap: anywhere; }

/* rules: switches */
.fxs label.fxs-toggle { display: flex; margin: 0; cursor: pointer; white-space: normal; font-weight: 400; }
.fxs input.fxs-switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; padding: 0; border-radius: 999px; cursor: pointer;
  background: var(--cmdk-line-2); box-shadow: none; transition: background 200ms var(--cmdk-ease);
}
.fxs input.fxs-switch::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(31, 30, 29, .25); transition: transform 200ms var(--cmdk-ease); }
.fxs input.fxs-switch:checked { background: var(--cmdk-ink); }
.fxs input.fxs-switch:checked::before { transform: translateX(16px); }
.fxs input.fxs-switch:disabled { opacity: .5; cursor: default; }

/* who sees which client: pill ticks */
.fxs-access { flex-wrap: wrap; align-items: flex-start; }
.fxs-access .fxs-row-main { flex: 1 1 200px; padding-top: 5px; }
.fxs-ticks { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 300px; justify-content: flex-end; }
.fxs label.fxs-tick {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; margin: 0; padding: 0 12px 0 10px; border-radius: 999px; cursor: pointer;
  background: var(--cmdk-card); box-shadow: 0 0 0 1px var(--cmdk-line-2); font: 500 13px/1 var(--cmdk-font); color: var(--cmdk-ink-2); white-space: nowrap;
  transition: background 160ms var(--cmdk-ease), box-shadow 160ms;
}
.fxs label.fxs-tick span { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.fxs label.fxs-tick input { width: 14px; height: 14px; }
.fxs label.fxs-tick:has(input:checked) { background: var(--cmdk-cobalt-soft); box-shadow: 0 0 0 1px rgba(201, 100, 66, .3); color: var(--cmdk-cobalt-text); }
.fxs label.fxs-tick:has(input:disabled) { opacity: .7; cursor: default; }
.fxs label.fxs-tick.all { color: var(--cmdk-ink); }

/* plan & usage */
.fxs-meter .fx-eyebrow { margin: 0; }
.fxs-big { margin: 4px 0 2px; font: 400 36px/1.05 var(--cmdk-font); letter-spacing: -0.035em; color: var(--cmdk-ink); }
.fxs .fxs-bar { height: 10px; margin: 18px 0 8px; background: var(--cmdk-sunk); }

/* ── two-half cards: the picture left, plain right (Your AI, connector) ── */
.fxs-split { display: grid; grid-template-columns: minmax(260px, 42%) minmax(0, 1fr); overflow: hidden; }
.fxs-split > .fxs-art { border-radius: 0; min-height: 320px; }
.fxs-split > .fxs-art.small { min-height: 220px; }
.fxs-half { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 34px 36px 32px; }
.fxs-half > .fx-eyebrow { margin: 0; }
.fxs .fxs-title { margin: 10px 0 10px; font: 500 var(--fx-t-28)/1.1 var(--cmdk-font); letter-spacing: -0.03em; color: var(--cmdk-ink); }
.fxs .fxs-title.sm { font-size: var(--fx-t-22); }
.fxs h1.fxs-title { font: 500 var(--fx-t-title)/1.08 var(--fx-sans); letter-spacing: -.035em; word-spacing: 0; }
/* The serif accent is for page heroes only: card titles in Settings / Your AI stay plain Geist. */
.fxs .fxs-h .fx-accent, .fxs h2.fxs-title .fx-accent { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; }
.fxs-lede { margin: 0 0 20px; max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--cmdk-ink-2); }
.fxs-fine { margin: 14px 0 0; max-width: 60ch; font-size: 13px; line-height: 1.5; color: var(--cmdk-ink-3); }
.fxs-fine a { color: var(--cmdk-ink-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--cmdk-line-2); }
.fxs-fine a:hover { color: var(--cmdk-ink); }
.fxs-dots-inline { color: var(--cmdk-ink-4); font-size: .6em; letter-spacing: .12em; vertical-align: .18em; }
.fxs-ai.on .fxs-title .fx-accent { color: var(--cmdk-ink); }
.fxs-connect .connect-body { grid-column: 1 / -1; }
.fxs-connect .connect-body.open { margin: 0; padding: 22px 26px 24px; border-top: 1px solid var(--cmdk-line); }

/* the picture: rings + orbiting icons around a centre piece */
.fxs-art { position: relative; }
.fxs-ring { position: absolute; left: 50%; top: 50%; width: 210px; height: 210px; translate: -50% -50%; border-radius: 50%; border: 1px dashed rgba(31, 30, 29, .1); pointer-events: none; }
.fxs-ring.r2 { width: 340px; height: 340px; border-style: solid; border-color: rgba(31, 30, 29, .05); }
.fxs-art.small .fxs-ring { width: 170px; height: 170px; }
.fxs-art.small .fxs-ring.r2 { width: 280px; height: 280px; }
.fxs-centre { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.fxs-art .fx-orbit-icon { color: var(--cmdk-ink-3); animation: fxs-float 7s ease-in-out infinite; transition: box-shadow 260ms var(--cmdk-ease), scale 260ms var(--cmdk-ease), opacity 260ms; }
.fxs-art .fx-orbit-icon .ico { width: 18px; height: 18px; }
.fxs-art .fx-orbit-icon .ico svg { width: 100%; height: 100%; }
.fxs-o1 { left: 15%; top: 17%; }
.fxs-o2 { right: 13%; bottom: 19%; animation-delay: -2.4s !important; }
.fxs-o3 { right: 17%; top: 13%; animation-delay: -4.1s !important; }
.fxs-o4 { left: 9%; bottom: 15%; animation-delay: -1.2s !important; }
.fxs-o5 { left: 44%; top: 5%; animation-delay: -3.3s !important; }
.fxs-o6 { right: 5%; top: 47%; animation-delay: -5.2s !important; }
.fxs-art .fx-orbit-icon.lit { scale: 1.18; color: var(--cmdk-ink); box-shadow: 0 0 0 1.5px rgba(225, 158, 129, .55), 0 14px 30px -12px rgba(225, 158, 129, .55); }
.fxs-art:has(.lit) [data-p]:not(.lit) { opacity: .45; }
@keyframes fxs-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.fxs-mark { display: inline-flex; width: 20px; height: 20px; color: var(--cmdk-ink); flex: none; }
.fxs-mark svg { width: 100%; height: 100%; }

/* centre pieces: the key chip, "Blanks ••• Claude", the brand chip */
.fxs-keychip { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--cmdk-card); box-shadow: var(--fx-shadow-float, 0 30px 60px -30px rgba(31, 30, 29, .4)); font: 500 15px/1 var(--cmdk-mono); color: var(--cmdk-ink-2); }
.fxs-keychip .ico { width: 18px; height: 18px; color: var(--cmdk-ink-3); }
.fxs-keychip .ico svg { width: 100%; height: 100%; }
.fxs-keychip-dots { color: var(--cmdk-ink-4); letter-spacing: .08em; }
.fxs-pair { display: inline-flex; align-items: center; gap: 10px; padding: 8px; border-radius: 999px; background: var(--cmdk-card); }
.fxs-pair-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cmdk-sunk); }
.fxs-pair-tile .fxs-mark { width: 24px; height: 24px; }
.fxs-pair-dots { display: inline-flex; gap: 5px; padding: 0 4px; }
.fxs-pair-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--cmdk-ink-4); animation: fxs-dot 1.8s var(--cmdk-ease) infinite; }
.fxs-pair-dots i:nth-child(2) { animation-delay: .2s; }
.fxs-pair-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes fxs-dot { 0%, 100% { opacity: .35; } 40% { opacity: 1; background: #e19e81; } }
.fxs-brandchip { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 10px; border-radius: 999px; background: var(--cmdk-card); box-shadow: var(--fx-shadow-float, 0 30px 60px -30px rgba(31, 30, 29, .4)); font: 500 15px/1 var(--cmdk-font); color: var(--cmdk-ink); max-width: 80%; }
.fxs-brandchip i { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--cmdk-cobalt); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.fxs-brandchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the key pill: paste one key → provider shows → Connect */
.fxs-keywrap, .fxs-form { width: 100%; max-width: 560px; }
.fxs-keypill {
  display: flex; align-items: center; gap: 8px; height: 62px; padding: 7px; border-radius: 999px; background: var(--cmdk-card);
  box-shadow: 0 0 0 1px var(--cmdk-line-2), 0 1px 2px rgba(31, 30, 29, .04); transition: box-shadow 260ms var(--cmdk-ease);
}
.fxs-keypill:focus-within { box-shadow: 0 0 0 1px rgba(201, 100, 66, .4), 0 0 0 6px rgba(201, 100, 66, .08), 0 24px 50px -28px rgba(201, 100, 66, .45); }
.fxs-keypill.found { box-shadow: 0 0 0 1.5px rgba(225, 158, 129, .5), 0 0 0 6px rgba(225, 158, 129, .08), 0 24px 50px -28px rgba(225, 158, 129, .5); }
.fxs-keypill.bad { box-shadow: 0 0 0 1.5px rgba(194, 59, 42, .55), 0 0 0 6px rgba(194, 59, 42, .07); animation: fxs-shake 320ms var(--cmdk-ease); }
@keyframes fxs-shake { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
.fxs-det { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--cmdk-sunk); color: var(--cmdk-ink-3); }
.fxs-det .ico { width: 18px; height: 18px; } .fxs-det .ico svg { width: 100%; height: 100%; }
.fxs-det .fxs-mark { width: 24px; height: 24px; animation: fxs-pop 260ms var(--cmdk-ease); }
@keyframes fxs-pop { from { scale: .6; opacity: 0; } }
.fxs-keypill.checking .fxs-det { background: var(--cmdk-aurora); color: #fff; animation: fx-breathe 1.2s ease-in-out infinite; }
.fxs-keypill.checking .fxs-det .fxs-mark { color: #fff; }
.fxs .fxs-keyin { flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 4px; border: 0; background: transparent; box-shadow: none !important; font: 400 15px/1 var(--cmdk-mono); color: var(--cmdk-ink); letter-spacing: .02em; }
.fxs .fxs-keyin::placeholder { font-family: var(--cmdk-font); color: var(--cmdk-ink-4); letter-spacing: 0; }
.fxs .fxs-connect.fx-btn { height: 48px; padding: 0 18px 0 22px; font-size: 15px; flex: none; }
.fxs .fxs-connect .ico { width: 16px; height: 16px; } .fxs .fxs-connect .ico svg { width: 100%; height: 100%; }
.fxs-detect { margin: 10px 0 0 22px; font-size: 13px; line-height: 1.4; color: var(--cmdk-ink-3); }
.fxs-detect.ok { color: var(--cmdk-ink-2); }
.fxs-detect.ok::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--fx-live, #22a06b); vertical-align: .1em; }
.fxs-detect.warn { color: var(--cmdk-bad); }
.fxs-adv { margin-top: 14px; }
.fxs-adv summary { font-size: 13px; color: var(--cmdk-ink-3); cursor: pointer; }
.fxs-adv[open] summary { color: var(--cmdk-ink); }
.fxs-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.fxs .fxs-link {
  display: inline-flex; align-items: center; gap: 6px; height: auto; padding: 2px 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  font: 500 14px/1.3 var(--cmdk-font); color: var(--cmdk-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cmdk-line-2);
}
.fxs .fxs-link:hover { background: none; text-decoration-color: currentColor; }
.fxs .fxs-link.quiet { color: var(--cmdk-ink-3); }
.fxs .fxs-link .ico { width: 16px; height: 16px; } .fxs .fxs-link .ico svg { width: 100%; height: 100%; }
.fxs-change { width: 100%; margin-top: 18px; }
.fxs-change[hidden] { display: none; }
.fxs-connected { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cmdk-ink-2); }

/* ── first-run setup: one illustrated card, "1 of 2", Skip · Next ── */
.fxs-setup { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 32px 28px 64px; }
.fxs-setup-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.fxs-setup-top .fx-eyebrow { flex: 1; text-align: center; }
.fxs-logo { display: inline-flex; align-items: center; gap: 9px; font: 600 16px/1 var(--cmdk-font); letter-spacing: -0.01em; }
.fxs-logo .fxs-mark { width: 26px; height: 26px; }
.fxs-setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 32px; align-items: start; }
.fxs-setup-card { overflow: hidden; }
.fxs-setup-card > .fxs-art { border-radius: 0; min-height: 210px; }
.fxs-setup-body { padding: 24px 32px 26px; }
.fxs-progress { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--cmdk-ink-3); }
.fxs-progress .fx-magic { width: 120px; }
.fxs-setup-body .fxs-title { margin-top: 16px; }
.fxs-setup-body .fxs-form { max-width: none; }
.fxs-setup-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--cmdk-line); }
.fxs-setup-foot .fx-btn { height: 42px; padding: 0 18px; }
.fxs-setup-side { position: sticky; top: 24px; display: grid; gap: 10px; }

@media (max-width: 980px) {
  .fxs-setup-grid { grid-template-columns: 1fr; }
  .fxs-setup-side { position: static; }
}
@media (max-width: 759px) {
  .fxs-split { grid-template-columns: 1fr; }
  .fxs-split > .fxs-art { min-height: 210px; }
  .fxs-split > .fxs-art.small { min-height: 170px; }
  .fxs-half { padding: 22px 20px 24px; }
  .fxs-card { padding: 20px 18px; }
  .fxs-keypill { height: 58px; padding: 5px; }
  .fxs-det { width: 44px; height: 44px; }
  .fxs .fxs-keyin { font-size: 16px; } /* no zoom on focus */
  .fxs .fxs-connect.fx-btn { height: 46px; padding: 0 16px; }
  .fxs .fxs-connect .ico { display: none; }
  .fxs-detect { margin-left: 14px; }
  .fxs-sec { flex-wrap: wrap; }
  .fxs-ticks { justify-content: flex-start; }
  .fxs-list.facts .fxs-k { width: 80px; }
  .fxs-setup { padding: 18px 16px 48px; }
  .fxs-setup-top .fx-eyebrow { display: none; }
  .fxs-setup-body { padding: 20px 18px 22px; }
  .fxs-ring.r2 { width: 280px; height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .cmdk-back, .cmdk, .cmdk-item, .cmdk-trigger, .cmdk-head { transition: none; }
  .cmdk { transform: none; }
  .cmdk .cmdk-mic.on, .cmdk.busy .cmdk-live::after { animation: none; }
  .fxs-art .fx-orbit-icon, .fxs-pair-dots i, .fxs-keypill.bad, .fxs-keypill.checking .fxs-det, .fxs-det .fxs-mark { animation: none; }
  .fxs-keypill, .fxs-art .fx-orbit-icon, .fxs input.fxs-switch, .fxs input.fxs-switch::before { transition: none; }
}

/* Local testing: "Use my ChatGPT plan" under the key form (2026-11-20). */
.fxs-local { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--fx-line-2); display: grid; gap: 10px; justify-items: start; }
/* phone: text links get a 40 px hit area; the page ends above the floating bar */
@media (max-width: 759px) {
  .fxs .fxs-link { min-height: 40px; padding: 0; }
  .fxs { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* Setup step 2 after connecting (first-user audit bug 8): "Connected." and one obvious next step. */
.fxs [hidden] { display: none !important; }
.fxs-setup-foot:has(> .fxs-next-big) { justify-content: flex-end; }
.fxs-setup-foot .fx-btn.fxs-next-big { height: 48px; padding: 0 24px; font-size: 15px; }
/* Your AI: this month's usage, one line, links to Account → Plan & usage (bug 12) */
.fxs-usage { margin: 12px 0 0; font-size: 13px; }
.fxs-usage .skel { display: inline-block; width: 220px; height: 14px; }
.fxs-usage a { display: inline-flex; align-items: center; gap: 6px; color: var(--cmdk-ink-2); text-decoration: none; }
.fxs-usage a:hover { color: var(--cmdk-ink); }
.fxs-usage .ico, .fxs-usage svg { width: 14px; height: 14px; color: var(--cmdk-ink-3); }

/* ═════════════ the inline plan (Today's composer, agency-command.js inlinePlan): the same "Blanks will…" card, in the page ═════════════ */
.cmdk-inline {
  --cmdk-ink: var(--fx-ink, var(--fx-ink)); --cmdk-ink-2: var(--fx-ink-2, var(--fx-ink-2)); --cmdk-ink-3: var(--fx-ink-3, var(--fx-ink-3)); --cmdk-ink-4: var(--fx-ink-4, #a3a8b3);
  --cmdk-card: var(--fx-card, #fff); --cmdk-sunk: var(--fx-sunk, var(--fx-sunk));
  --cmdk-line: var(--fx-line, rgba(31, 30, 29, 0.07)); --cmdk-line-2: var(--fx-line-2, rgba(31, 30, 29, 0.12));
  --cmdk-aurora: var(--fx-aurora, linear-gradient(110deg, var(--fx-cobalt), #e19e81 38%, #e27ad6 68%, #ffb38a));
  --cmdk-bad: var(--fx-bad); --cmdk-ease: var(--fx-ease, cubic-bezier(.2, .8, .2, 1));
  --cmdk-font: var(--fx-sans, 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif); --cmdk-mono: var(--fx-mono, ui-monospace, Consolas, monospace);
  font-family: var(--cmdk-font); margin: 12px 0 0; box-shadow: var(--fx-shadow-card);
}
.cmdk-inline .ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.cmdk-inline .ico svg { width: 100%; height: 100%; }
.cmdk-inline .cmdk-say { font-size: 20px; }
.cmdk-inline .cmdk-inline-thinking { color: var(--cmdk-ink-2); }
.cmdk-inline.busy .cmdk-sub::after, .cmdk-inline.busy .cmdk-inline-status::after { content: ''; display: inline-block; width: 22px; height: 4px; margin-left: 10px; border-radius: 3px; background: var(--cmdk-aurora); vertical-align: middle; animation: cmdk-blink 900ms ease-in-out infinite; }
.cmdk-inline-status { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--cmdk-ink-2); }
.cmdk-inline-status:empty { display: none; }
.cmdk-inline-status.bad { color: var(--cmdk-bad); }
.cmdk-inline-list { list-style: none; margin: 10px -6px 0; padding: 0; }
.cmdk-inline-list .cmdk-item { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; }
.cmdk-inline-list .cmdk-item:hover, .cmdk-inline-list .cmdk-item:focus-visible { background: var(--cmdk-sunk); outline: 0; }
.cmdk-inline .cmdk-field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; font-size: 13px; font-weight: 500; color: var(--cmdk-ink-2); }
.cmdk-inline .cmdk-field input { height: 42px; font: 500 14px/1.4 var(--cmdk-font); color: var(--cmdk-ink); background: var(--cmdk-sunk); border: 0; border-radius: 12px; padding: 0 14px; outline: 0; box-shadow: none; margin: 0; }
.cmdk-inline .cmdk-field input:focus { box-shadow: 0 0 0 1px rgba(201, 100, 66, .4), 0 0 0 5px rgba(201, 100, 66, .08); background: var(--cmdk-card); }
.cmdk-inline .cmdk-actions { margin-top: 16px; }
.cmdk-inline .cmdk-go, .cmdk-inline .cmdk-cancel {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 18px; border-radius: 999px; border: 0;
  font: 500 14px/1 var(--cmdk-font); cursor: pointer; transition: background 160ms var(--cmdk-ease), opacity 160ms, box-shadow 160ms;
}
.cmdk-inline .cmdk-go { background: var(--cmdk-ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 18px -8px rgba(18, 13, 11, .6); }
.cmdk-inline .cmdk-go:hover { background: #2f2622; }
.cmdk-inline .cmdk-cancel { background: var(--cmdk-sunk); color: var(--cmdk-ink-2); box-shadow: none; }
.cmdk-inline .cmdk-cancel:hover { background: #eee9e7; color: var(--cmdk-ink); }
.cmdk-inline.busy .cmdk-go { opacity: 0.55; pointer-events: none; }
.cmdk-inline kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; margin-right: 2px;
  font: 500 12px/1 var(--cmdk-mono); color: var(--cmdk-ink-3); background: var(--cmdk-card); border: 0; box-shadow: 0 0 0 1px var(--cmdk-line-2); border-radius: 6px;
}
.cmdk-inline .cmdk-go kbd { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: none; }
@media (max-width: 640px) {
  .cmdk-inline { padding: 18px; }
  .cmdk-inline .cmdk-actions { flex-direction: column-reverse; }
  .cmdk-inline .cmdk-go, .cmdk-inline .cmdk-cancel { justify-content: center; height: 48px; }
  .cmdk-inline kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cmdk-inline.busy .cmdk-sub::after, .cmdk-inline.busy .cmdk-inline-status::after { animation: none; } }
