/* Variant B (Julio's feedback, 28 Nov night). Loaded after styles.css; variant A stays as it is. */

/* 2. inherit's own color through the page: one accent, the indigo-violet of the hero aura */
:root {
  --acc: #4b3df0; --acc-ink: #4232dc; --acc-2: #8a4dff;
  --acc-soft: color-mix(in srgb, #4b3df0 9%, var(--surface-1));
  --acc-line: color-mix(in srgb, #4b3df0 38%, transparent);
  --acc-grad: linear-gradient(135deg, #3a2bd8 0%, #6a3cf5 55%, #a25bff 100%);
}
:root[data-theme="dark"] {
  --acc: #7c6dff; --acc-ink: #a99fff; --acc-2: #b07cff;
  --acc-soft: color-mix(in srgb, #7c6dff 15%, var(--surface-1));
  --acc-line: color-mix(in srgb, #7c6dff 45%, transparent);
  --acc-grad: linear-gradient(135deg, #5a4bff 0%, #8a5cff 55%, #c07cff 100%);
}

/* 1. the bar stays on top over the whole page; solid, it does not turn to glass on scroll */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--canvas); box-shadow: 0 1px 0 var(--line-1); }
.topbar .nav { height: 64px; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--acc-grad); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.nav-links a.on { color: var(--ink-1); }
.nav-links a.on::after { transform: scaleX(1); }
html { scroll-padding-top: 80px; }
.themebtn { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface-hi); color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line-1); transition: transform var(--dur-press) var(--ease); }
.themebtn::before { content: ""; position: absolute; inset: -4px; }
.themebtn svg { grid-area: 1 / 1; transition: transform 320ms var(--ease), opacity 200ms var(--ease); }
:root[data-theme="dark"] .themebtn .i-moon, :root:not([data-theme="dark"]) .themebtn .i-sun { opacity: 0; transform: rotate(-70deg) scale(.5); }
.themebtn:active { transform: scale(.94); }
.themebtn:focus-visible { border-radius: 999px; }
.btn-acc { background: var(--acc-soft); color: var(--acc-ink); box-shadow: inset 0 0 0 1px var(--acc-line); }

/* accent on elements, edges, numbers and active states */
.kicker { color: var(--acc-ink) !important; }
.kicker i { background: var(--acc-grad) !important; width: 8px !important; height: 8px !important; }
.btn-primary { background: var(--acc-grad); color: #fff; }
@media (hover: hover) { .btn-primary:hover { background: var(--acc-grad); filter: brightness(1.08); } }
.fact b, .facts--five .fact b { background: var(--acc-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step .ico { background: var(--acc-soft); color: var(--acc-ink); box-shadow: inset 0 0 0 1px var(--acc-line); }
.bswitch button[aria-selected="true"] { background: var(--acc-soft); color: var(--acc-ink); box-shadow: inset 0 0 0 1px var(--acc-line); }
.tree [role="tab"][aria-selected="true"] { background: var(--acc-soft); color: var(--acc-ink); box-shadow: inset 0 0 0 1px var(--acc-line); }
.seg button[aria-pressed="true"] { color: var(--acc-ink); }
.bt i { background: var(--acc-grad); }
.bt--crit i { background: var(--crit); } .bt--ok i { background: var(--ok); }
.src { text-decoration-color: var(--acc-line); }
.ratio { box-shadow: inset 0 0 0 1px var(--acc-line); }
.gl-quote::before, .gl-quote::after { color: var(--acc); }
.not-list li::before { background: var(--acc); }
.rule-list li::before, .insp-steps li::before { background: var(--acc-soft); color: var(--acc-ink); box-shadow: inset 0 0 0 1px var(--acc-line); }

/* gradient edge on hover (cards and panels), plus a small lift: 5, less static */
.card::after, .panel::after, .step::after { content: none; }
.card, .panel { position: relative; }
.card:hover, .card:focus-visible { box-shadow: inset 0 0 0 1px var(--acc-line); }
@media (hover: hover) {
  .card { transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
  .card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--acc-line), 0 18px 40px -24px color-mix(in srgb, var(--acc) 55%, transparent); }
  .panel { transition: box-shadow 220ms var(--ease); }
  .panel:hover { box-shadow: inset 0 0 0 1px var(--acc-line); }
}

/* 4. denser: smaller gaps between sections, same alignment */
.sec { padding: 56px 0; }
.showroom { padding-top: 40px; }
.hero { padding: 84px 0 104px; }
.sec-head { margin-bottom: 26px; }
.sec-head .kicker { margin-bottom: 10px; }
.sec-head p { margin-top: 10px; }
.answer { margin-top: 20px; }
.closing { padding: 48px 0 56px; }
.facts-cap { margin-top: 10px; }
#built { padding-top: 24px !important; }

/* 8. characters: the selected brand's figure big on the left, fixed heights, selectable tiles, states follow */
.chars { grid-template-columns: 340px minmax(0, 1fr); }
.chars-big { display: flex; flex-direction: column; }
.big-stage { position: relative; flex: none; height: 340px; min-height: 0; padding: 24px; background: radial-gradient(60% 55% at 50% 56%, color-mix(in srgb, var(--bacc, #6a3cf5) 42%, transparent), transparent 72%), var(--sbg, #0c0c0e); }
.big-stage img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0,0,0,.32)); transition: opacity 180ms var(--ease), transform 260ms var(--ease); }
.big-stage img.swap { opacity: 0; transform: scale(.94); }
.big-meta { min-height: 66px; }
.big-meta b { display: flex; align-items: center; gap: 8px; }
.big-meta .chosen-tag { padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 500; color: #fff; background: var(--acc-grad); }
.big-states { height: 82px; flex: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: start; padding: 0 16px 16px; }
.big-states button { position: relative; aspect-ratio: 1; padding: 3px; border: 0; border-radius: 8px; cursor: pointer; background: var(--sbg, var(--surface-2)); box-shadow: inset 0 0 0 1px var(--line-1); transition: transform var(--dur-press) var(--ease); }
.big-states button::before { content: ""; position: absolute; inset: -3px; }
.big-states button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--acc); }
.big-states img { width: 100%; height: 100%; object-fit: contain; }
.big-states .none { grid-column: 1 / -1; align-self: center; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.char-grid--fixed { height: 404px; overflow-y: auto; align-content: start; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); padding: 2px 4px 2px 2px; scrollbar-width: thin; }
.char-grid--fixed .ch { all: unset; box-sizing: border-box; display: flex; flex-direction: column; border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform var(--dur-press) var(--ease), box-shadow var(--dur-ui) var(--ease); }
.char-grid--fixed .ch:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
.char-grid--fixed .ch[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--acc); }
.char-grid--fixed .ch:active { transform: scale(.97); }
.char-grid--fixed .ch-meta { min-height: 52px; }
.char-grid--fixed .ch-meta small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.char-grid--fixed .ch.chosen .ch-meta::after { content: none; }
@media (hover: hover) { .char-grid--fixed .ch:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--acc-line); } .themebtn:hover { color: var(--acc-ink); } }

@media (max-width: 1080px) {
  .chars { grid-template-columns: minmax(0, 1fr); }
  .big-stage { height: 300px; }
}
@media (max-width: 640px) {
  .sec { padding: 40px 0; }
  .showroom { padding-top: 28px; }
  .hero { padding: 48px 0 100px; }
  .topbar .nav { height: 58px; }
  .big-stage { height: 260px; }
  .char-grid--fixed { height: auto; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .char-grid--fixed .ch { scroll-snap-align: start; }
  .ab-switch { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .themebtn svg, .big-stage img, .nav-links a::after, .char-grid--fixed .ch { transition: none; }
  .card:hover { transform: none; }
}
.big-meta { height: 78px; min-height: 0; overflow: hidden; }
.big-meta span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.char-grid--fixed .ch-meta { height: 66px; min-height: 0; overflow: hidden; }
.big-stage { display: block; padding: 0; overflow: hidden; }
.big-stage img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }

/* ---------- 3. Showroom: brand row and walkthrough ---------- */
.rail-wrap { position: relative; }
.brand-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 12px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.brand-rail::-webkit-scrollbar { display: none; }
.bcard { all: unset; box-sizing: border-box; scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; cursor: pointer;
  background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
.bcard:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 3px; }
.bcard .bc-stage { position: relative; height: 132px; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 62%, color-mix(in srgb, var(--bacc, #6a3cf5) 40%, transparent), transparent 72%), var(--sbg, var(--surface-2)); }
.bcard .bc-stage img.fig { height: 88px; width: auto; max-width: 70%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.3)); transition: transform 300ms var(--ease); }
.bcard .logo-chip { left: 8px; top: 8px; min-width: 28px; height: 28px; padding: 4px; border-radius: 8px; }
.bcard .logo-chip img { height: 18px; max-width: 80px; }
.bcard .bc-strip { display: flex; height: 6px; }
.bcard .bc-strip i { flex: 1; }
.bcard .bc-meta { padding: 10px 12px 12px; }
.bcard .bc-meta b { display: block; font-size: 14px; font-weight: 500; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .bc-meta span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bcard[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--acc), 0 16px 34px -22px color-mix(in srgb, var(--acc) 70%, transparent); transform: translateY(-3px); }
.bcard[aria-selected="true"] .bc-stage img.fig { transform: scale(1.08); }
@media (hover: hover) { .bcard:hover { transform: translateY(-3px); } .bcard:hover .bc-stage img.fig { transform: scale(1.06) rotate(-2deg); } }
.rail-nav { position: absolute; right: 0; top: -54px; display: flex; gap: 6px; }
.rail-btn { width: 36px; height: 36px; border: 0; border-radius: 999px; cursor: pointer; font-size: 15px; color: var(--ink-1); background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line-1); position: relative; }
.rail-btn::before { content: ""; position: absolute; inset: -4px; }
.rail-btn:disabled { opacity: .35; cursor: default; }
.tour { margin-top: 6px; padding: 0 !important; overflow: hidden; }
.tour-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line-1); }
.tour-steps button { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-3); transition: color 200ms var(--ease), background-color 200ms var(--ease); }
.tour-steps button span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.tour-steps button[aria-selected="true"] { color: var(--ink-1); background: var(--acc-soft); }
.tour-steps button[aria-selected="true"] span { background: var(--acc-grad); color: #fff; box-shadow: none; }
.tour-steps button:focus-visible { outline: 2px solid var(--ink-1); outline-offset: -4px; }
.tour-progress { height: 2px; background: var(--line-2); }
.tour-progress i { display: block; height: 100%; width: 0; background: var(--acc-grad); transition: width 300ms var(--ease); }
.tour-body { height: 352px; padding: 26px 28px; overflow: hidden; }
.tour-body > .tb { height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; animation: tb-in 320ms var(--ease) both; }
@keyframes tb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tb h3 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.015em; color: var(--ink-1); }
.tb .tb-text p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-body); }
.tb .tb-text .by { margin-top: 14px; display: flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--ink-3); }
.tb-vis { height: 100%; min-height: 0; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); padding: 18px; }
.tb-sw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tb-sw div i { display: block; height: 52px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px rgba(127,127,140,.22); }
.tb-sw div b { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-sw div code { font-size: 11px; color: var(--ink-3); }
.tb-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tb-stats div { padding: 14px; border-radius: var(--r-sm); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.tb-stats b { display: block; font-size: var(--fs-xl); font-weight: 500; background: var(--acc-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.tb-stats span { font-size: 13px; color: var(--ink-2); }
.tb-quote { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink-1); }
.tb-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tb-figs img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-xs); background: var(--sbg, var(--surface-1)); }
.tb-pics { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tb-pics img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: var(--r-xs); background: #fff; }
.tb-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tb-actions a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.tb-actions .go { background: var(--acc-grad); color: #fff; }
.tb-files { display: grid; gap: 6px; font: 13px/1.6 var(--font-mono); color: var(--ink-body); }
.tb-files span { color: var(--ink-3); }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-1); }
.tour-host { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.tour-btns { display: flex; gap: 8px; }

/* ---------- 6. Taste with examples ---------- */
.taste-pairs { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.tp-row { display: grid; gap: 8px; }
.tp-axis { font-size: 13px; color: var(--ink-2); }
.tp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tp-card { position: relative; display: flex; flex-direction: column; height: 148px; overflow: hidden; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-1); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.tp-card .tp-art { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.tp-card .tp-lbl { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 10px; font-size: 12px; font-weight: 500; color: var(--ink-1); background: var(--surface-1); border-top: 1px solid var(--line-1); }
.tp-card.on { box-shadow: inset 0 0 0 2px var(--acc); }
.tp-card.on .tp-lbl::after { content: "chosen"; padding: 0 6px; border-radius: 999px; font-size: 11px; color: #fff; background: var(--acc-grad); }
.tp-card.dim { opacity: .62; }
@media (hover: hover) { .tp-card:hover { transform: translateY(-2px); opacity: 1; } }
.taste-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ---------- 9. F13 ---------- */
.f13-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.f13-step { padding: 18px; border-radius: var(--r); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.f13-step b { display: block; margin-top: 10px; font-size: var(--fs-md); font-weight: 500; color: var(--ink-1); }
.f13-step p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.f13-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 600; color: #fff; background: var(--acc-grad); }
.f13-arrow { align-self: center; font-size: 20px; color: var(--acc-ink); }
.f13-compare { margin: 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.f13-compare figure { display: grid; gap: 8px; }
.f13-compare figcaption { font-size: 13px; color: var(--ink-2); }
.zoom { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: zoom-in; border-radius: var(--r-sm); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-1); transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
.zoom:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 3px; }
.f13-compare .zoom img { display: block; width: 100%; aspect-ratio: 16 / 8.5; object-fit: contain; }
.f13-compare figure:first-child .zoom { background: #fff; }
.f13-compare figure:last-child .zoom { background: #09090b; }
@media (hover: hover) { .zoom:hover { transform: scale(1.015); box-shadow: inset 0 0 0 1px var(--acc-line), 0 16px 36px -24px color-mix(in srgb, var(--acc) 60%, transparent); } }
.pcard { cursor: zoom-in; }
.pcard .zoom { border-radius: 0; box-shadow: none; }

/* lightbox */
.lightbox { width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r); background: var(--surface-1); color: var(--ink-1); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lightbox::backdrop { background: rgba(6, 6, 10, .72); }
.lightbox[open] { animation: lb-in 240ms var(--ease) both; }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb-stage { height: min(72vh, 680px); display: grid; place-items: center; padding: 20px; background: var(--lbbg, #fff); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-1); font-size: 14px; color: var(--ink-1); }
.lb-bar div { display: flex; gap: 6px; }

/* ---------- 10. Slack-style channel ---------- */
.agents-b { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; align-items: stretch; }
.agents-b .panel pre.code { flex: none; font-size: 12.5px; }
.slackish { display: grid; grid-template-columns: 188px minmax(0, 1fr); height: 520px; border-radius: var(--r); overflow: hidden; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1), var(--shadow); }
.sl-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: #1d1430; color: #cfc8e6; }
:root[data-theme="dark"] .sl-side { background: #150f24; }
.sl-ws { padding: 4px 8px 12px; font-size: 15px; font-weight: 600; color: #fff; }
.sl-group { padding: 10px 8px 4px; font-size: 12px; color: #9a90b8; }
.sl-ch { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 6px; font-size: 14px; }
.sl-ch.on { background: color-mix(in srgb, #7c6dff 40%, transparent); color: #fff; }
.sl-app img { width: 18px; height: 18px; border-radius: 5px; }
.sl-main { display: flex; flex-direction: column; min-width: 0; }
.sl-head { display: flex; align-items: baseline; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line-1); }
.sl-head b { font-size: 15px; color: var(--ink-1); }
.sl-head span { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.sl-msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; animation: tb-in 260ms var(--ease) both; }
.sl-av { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--surface-hi); color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.sl-av img { width: 100%; height: 100%; object-fit: cover; }
.sl-who { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-1); }
.sl-who .app { padding: 0 5px; border-radius: 4px; font-size: 10.5px; font-weight: 500; color: var(--ink-2); background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line-1); }
.sl-who time { font-size: 12px; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sl-text { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ink-body); }
.sl-text .mention { margin-right: 2px; }
.sl-steps { margin-top: 6px; display: grid; gap: 4px; }
.sl-steps div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); animation: tb-in 240ms var(--ease) both; }
.sl-steps div::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.sl-think { display: inline-flex; gap: 4px; margin-top: 6px; }
.sl-think i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: think 1s ease-in-out infinite; }
.sl-think i:nth-child(2) { animation-delay: .15s; } .sl-think i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.sl-btns { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.sl-btns span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--ink-1); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.sl-btns span.on { color: #fff; background: var(--acc-grad); box-shadow: none; }
.sl-figs { margin-top: 8px; display: flex; gap: 8px; }
.sl-figs figure { display: grid; gap: 4px; width: 96px; }
.sl-figs img { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: var(--sbg, var(--surface-2)); box-shadow: inset 0 0 0 1px var(--line-1); }
.sl-figs span { font-size: 12px; color: var(--ink-2); text-align: center; }
.sl-link { display: inline-flex; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--acc-ink); }
.sl-compose { display: flex; gap: 8px; margin: 0 14px 14px; padding: 6px 6px 6px 14px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.sl-compose input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 16px/1.4 var(--font-sans); color: var(--ink-1); }
.sl-compose:focus-within { box-shadow: inset 0 0 0 1px var(--acc-line); }
.sl-send { width: 36px; height: 36px; border: 0; border-radius: 8px; cursor: pointer; font-size: 16px; color: #fff; background: var(--acc-grad); }
.sl-send:disabled { opacity: .45; cursor: default; }

/* ---------- 11. Build dialog ---------- */
.build-dlg { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r); background: var(--surface-1); color: var(--ink-1); box-shadow: 0 30px 80px -20px rgba(0,0,0,.55), inset 0 0 0 1px var(--line-1); }
.build-dlg::backdrop { background: rgba(6, 6, 10, .6); }
.build-dlg[open] { animation: lb-in 240ms var(--ease) both; }
.bd-form { display: grid; gap: 14px; padding: 22px 22px 18px; }
.bd-head { display: flex; align-items: center; justify-content: space-between; }
.bd-head h2 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.015em; }
.bd-x { width: 36px; height: 36px; border: 0; border-radius: 999px; cursor: pointer; font-size: 20px; color: var(--ink-2); background: var(--surface-2); }
.bd-lead { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.bd-field { display: grid; gap: 6px; }
.bd-field span { font-size: 13px; color: var(--ink-2); }
.bd-field input { height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); font: 16px/1.4 var(--font-sans); color: var(--ink-1); outline: none; }
.bd-field input:focus-visible { box-shadow: inset 0 0 0 2px var(--acc); }
.bd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bd-msg { min-height: 20px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.bd-msg.err { color: var(--crit); }
.bd-msg a { color: var(--acc-ink); text-decoration: underline; text-underline-offset: 3px; }
.bd-foot { display: flex; justify-content: flex-end; gap: 8px; }
.bd-go { height: 44px; }

@media (max-width: 1080px) {
  .tour-body { height: auto; min-height: 352px; }
  .tour-body > .tb { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tb-vis { height: auto; }
  .agents-b { grid-template-columns: minmax(0, 1fr); }
  .f13-flow { grid-template-columns: minmax(0, 1fr); }
  .f13-arrow { transform: rotate(90deg); justify-self: start; margin-left: 18px; }
}
@media (max-width: 640px) {
  .brand-rail { grid-auto-columns: 156px; }
  .bcard .bc-stage { height: 112px; }
  .rail-nav { display: none; }
  .tour-steps { grid-template-columns: repeat(6, 52px); overflow-x: auto; }
  .tour-steps button { font-size: 0; }
  .tour-steps button span { font-size: 11px; }
  .tour-body { padding: 18px; min-height: 0; height: 560px; overflow-y: auto; }
  .tb-sw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .taste-pairs { grid-template-columns: minmax(0, 1fr); }
  .f13-compare { grid-template-columns: minmax(0, 1fr); }
  .slackish { grid-template-columns: minmax(0, 1fr); height: 560px; }
  .sl-side { display: none; }
  .bd-two { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .bcard, .bcard .bc-stage img.fig, .tp-card, .zoom, .tour-progress i { transition: none; }
  .tour-body > .tb, .sl-msg, .sl-steps div, .lightbox[open], .build-dlg[open] { animation: none; }
  .sl-think i { animation: none; opacity: .7; }
}
.slackish { grid-template-rows: minmax(0, 1fr); }
.sl-main, .sl-side { min-height: 0; }
.sl-head b { white-space: nowrap; }

/* taste cards from the app's preview inputs */
.taste-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.tp-axis { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tp-axis b { font-size: 15px; font-weight: 500; color: var(--ink-1); }
.tp-axis span { font-size: 12px; color: var(--ink-3); }
.tp-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.tp-side.dim { opacity: .58; }
.tp-side .tc { box-shadow: 0 0 0 0 transparent; }
.tp-side.on .tc { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--acc); }
@media (hover: hover) { .tp-side:hover { opacity: 1; transform: translateY(-2px); } }
.tc { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; display: flex; flex-direction: column; }
.tc-label { font-size: 10.5px; opacity: .7; letter-spacing: .02em; }
.tc-head { line-height: 1.05; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tc-sub { font-size: 11.5px; opacity: .8; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-list { margin: 0; padding-left: 14px; font-size: 10.5px; line-height: 1.35; opacity: .85; list-style: disc; }
.tc-cta { align-self: flex-start; font-size: 11.5px; font-weight: 600; padding: 6px 11px; white-space: nowrap; }
.tp-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.tp-cap b { font-size: 14px; font-weight: 500; color: var(--ink-1); }
.tp-chosen { padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 500; color: #fff; background: var(--acc-grad); }
.tp-desc { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.tp-rule { margin-top: 2px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-line); font-size: 13px; line-height: 1.45; color: var(--ink-body); }
.tp-rule span { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 500; color: var(--acc-ink); }
.tp-rule--open { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3); }

/* company switch with many brands: one line that scrolls */
.bswitch { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.bswitch::-webkit-scrollbar { display: none; }
.bswitch button { flex: none; white-space: nowrap; }
.panel-row .bswitch, .gl-bar .bswitch { min-width: 0; }
@media (max-width: 1080px) { .taste-pairs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .tp-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } .tc { padding: 12px !important; } .tc-sub { display: none; } }
