/* "Try Jane live" (/chat/, plan 5.15) and the fixed chat of /for/ pages. Built by build_v6_p5.py 5.5. */
.cj-head .nav-bar { display: flex; align-items: center; justify-content: space-between; }
.cj-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cj { padding: 16px 0 96px; }
.cj-grid { display: grid; gap: 16px; }
.cj-h1 { margin: 0; font-size: 32px; line-height: 1.15; }
.cj-sub { margin: 8px 0 12px; color: var(--ink-soft); }
.cj-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cj .chip { min-height: 44px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.cj .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cj-try { margin: 16px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink-mute); }
.cj-prompts { display: grid; gap: 8px; }
.prompt { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  font: inherit; font-size: 15px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.prompt:hover, .cj .chip:hover { border-color: var(--accent); }
.cj-sample { margin: 12px 0 0; font-size: 13px; color: var(--ink-mute); }
.cj-cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; height: 72px; padding: 0 16px;
  background: var(--card); border-top: 1px solid var(--line); }
.cj-cta { width: 100%; justify-content: center; text-align: center; }
.cj-voice { margin-top: 12px; }
.cj-voice-line { margin: 8px 0 0; font-size: 13px; color: var(--ink-mute); }
.cj-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg, 20px);
  background: var(--card); overflow: hidden; }
.cj-slot { flex: 1; display: flex; min-height: 0; }
.cj-slot > div { flex: 1; }
/* 5.6 fold fix: the widget host takes the card height so its input box sits above the 72px bar. */
.cj-slot [data-chat-widget] { height: 100%; overflow: hidden; }
.cj-slot .wai-shadow-host { height: 100% !important; }
.cj-skel { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--ink-soft); }
.cj-skel img { border-radius: 50%; }
.cj-failed { display: none; margin: 0; padding: 16px; color: var(--ink); }
.cj-card[data-state="ready"] .cj-skel, .cj-card[data-state="failed"] .cj-skel { display: none; }
.cj-card[data-state="failed"] .cj-failed { display: block; }
.cj-fixed { height: 520px; }
.cj-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 30; margin: 0; padding: 12px 16px;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; }
@media (min-width: 900px) {
  .cj { padding: 40px 0; }
  .cj-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; align-items: start; }
  .cj-h1 { font-size: 44px; }
  .cj-cta-bar { position: static; height: auto; padding: 0; margin-top: 20px; border: 0; background: none; }
  .cj-cta { width: auto; }
  .cj-right .cj-card { height: 640px; max-width: 560px; margin: 0 auto; }
  .cj-fixed { height: 560px; }
}
@media (prefers-reduced-motion: no-preference) { .prompt, .cj .chip { transition: border-color .15s; } }
html, body { overflow-x: clip; }
.cj .chip:focus-visible, .prompt:focus-visible, .cj-voice:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.cj .chip:active, .prompt:active { transform: translateY(1px); }
.cj .chip:disabled, .prompt:disabled { opacity: .5; cursor: not-allowed; }
/* Vertical pages (/for/, plan 5.16): pains list and the fixed chat in the hero. */
.for-pains { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.for-pains li { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg, 20px); background: var(--card); font-size: var(--fs-body, 17px); }
@media (min-width: 900px) { .for-pains { grid-template-columns: repeat(3, 1fr); } }
.for-chat .cj-try { margin-top: 0; }
.for-chat .cj-prompts { margin-bottom: 12px; }
/* Vertical pages: the idle card (static first message + "Start the chat") until a click mounts the widget (FIX 2026-11-30, 5.7 b). */
.cj-idle { display: none; flex: 1; flex-direction: column; justify-content: space-between; gap: 16px; padding: 16px; }
.cj-card[data-state="idle"] .cj-idle { display: flex; }
.cj-card[data-state="idle"] .cj-skel { display: none; }
.cj-msg { display: flex; align-items: flex-start; gap: 12px; }
.cj-msg img { border-radius: 50%; flex: none; }
.cj-msg p { margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--paper); color: var(--ink); }
.cj-start { align-self: stretch; justify-content: center; }
.cj-start:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
