/* Claude Fable element kit v3, adapted to existing QOQAI flows.
   Decoration only: no inferred success, loading, selection or application state. */
@media screen {
  body.qoqai-kit {
    --bg: #0a0c0b; --panel: #111513; --panel-dark: #050605;
    --text: #ede8dc; --paper: #ede8dc; --muted: #b4b1a7; --soft: #d4d0c5;
    --line: #464d49; --lime: #c8f53c; --qoq-edge: #737c77;
    --qoq-surface: #181d1a; --qoq-well: #050605;
    --qoq-ease: cubic-bezier(.2,0,0,1);
    background-color: var(--bg); color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.65; color-scheme: dark;
  }
  body.qoqai-kit[data-qoq-page] button { min-height: 44px; }
  .qoqai-kit :is(main, section, article, aside) { min-width: 0; }
  .qoqai-kit :is(.muted, .quiet-note, .fine-print, .help-lede, .hero-support, .sidebar-note, .section-footnote) { color: var(--muted); }
  .qoqai-kit:not(.redesign) h1 { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.1; letter-spacing: -.035em; }
  .qoqai-kit:not(.redesign) h2 { font-size: clamp(25px, 2.7vw, 34px); line-height: 1.25; letter-spacing: -.025em; }
  .qoqai-kit:not(.redesign) h3 { line-height: 1.35; }
  .qoqai-kit :is(.eyebrow, .section-label, .nav-label, .route-kicker) { letter-spacing: .04em; line-height: 1.6; }
  .qoqai-kit :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid #ede8dc !important; outline-offset: 4px;
  }
  .qoqai-kit :is(button, .button, .primary-button, .secondary-button, .secondary, .primary-action, .customer-workflow-primary) {
    max-width: 100%; white-space: normal;
    transition: background-color 160ms var(--qoq-ease), border-color 160ms var(--qoq-ease), box-shadow 140ms var(--qoq-ease);
  }
  .qoqai-kit :is(.button:not(.secondary, .returning-customer-login), .primary-button, .primary-action, .customer-workflow-primary) {
    min-height: 52px; padding: 14px 22px; border-radius: 10px;
    border: 1px solid #d6ff55; background: #c8f53c; color: #0a0c0b;
    box-shadow: 0 6px 0 #7a981c; font-weight: 650; transform: none;
    margin-bottom: 6px; text-align: center; font-size: 15px; line-height: 1.4;
  }
  .qoqai-kit :is(.secondary, .secondary-button, .returning-customer-login, .header-workspace) {
    min-height: 44px; border: 1.5px solid var(--qoq-edge); border-radius: 10px;
    background: transparent; color: #ede8dc; transform: none;
  }
  body.qoqai-kit[data-qoq-page] :is(button, .button):disabled,
  body.qoqai-kit[data-qoq-page] :is(button, .button):disabled:is(:hover, :focus-visible, :active) {
    background: #20261f; color: #b4b1a7; border: 1.5px dashed #737c77;
    box-shadow: none; opacity: 1; cursor: default; transform: none;
  }
  .qoqai-kit :is(input:not([type=checkbox], [type=radio], [type=range], [type=hidden], [type=submit], [type=button], [type=file]), select, textarea) {
    background: #050605; color: #ede8dc; border: 1.5px solid #737c77;
    border-radius: 6px; min-height: 52px; font-family: inherit; font-size: 16px;
    line-height: 1.6; padding: 12px 14px; caret-color: #c8f53c;
    transition: border-color 160ms var(--qoq-ease);
  }
  .qoqai-kit :is(input, select, textarea):hover:not(:disabled) { border-color: #ede8dc; }
  .qoqai-kit :is(input, select, textarea):focus-visible { border-color: #ede8dc; }
  .qoqai-kit :is(input, select, textarea):disabled { background: #111513; border-style: dashed; color: #b4b1a7; }
  .qoqai-kit :is(input, select, textarea):is([aria-invalid=true], :user-invalid) { border-width: 2px; border-color: var(--error, #ffbcc0); }
  .qoqai-kit :is(input[type=checkbox], input[type=radio]) { accent-color: #c8f53c; }
  .qoqai-kit :is(.panel, .context-card, .practice-card, .first-steps, .workspace-orientation, .beginner-start, .workflow-picker, .customer-workflow, .payment-card, .workflow-card, .assessment-panel, .inquiry-panel) {
    background: #111513; border-color: #464d49; border-radius: 16px;
  }
  .qoqai-kit :is(.next-step-grid article, .help-choices a) { background: #111513; border: 1.5px solid #737c77; border-radius: 16px; }
  .qoqai-kit :is(.help-choices a, .workflow-card):is(:hover, :focus-within) { background: #181d1a; border-color: #ede8dc; transform: none; }
  .qoqai-kit :is(.customer-nav, .dashboard-sidebar nav, .page-navigation, .help-section-nav) { border-color: #464d49; }
  .qoqai-kit :is(.customer-nav a, .dashboard-sidebar nav a) {
    position: relative; gap: 10px; color: #b4b1a7; background: transparent;
    border: 1px solid transparent; border-radius: 8px; min-height: 44px;
  }
  .qoqai-kit :is(.customer-nav a, .dashboard-sidebar nav a):is(:hover, :focus-visible) { color: #ede8dc; background: #181d1a; }
  .qoqai-kit :is(.customer-nav a, .dashboard-sidebar nav a)[aria-current=page] {
    color: #ede8dc; font-weight: 650; background: #181d1a; border-color: #737c77;
    box-shadow: inset 0 -2px 0 #c8f53c;
  }
  .qoqai-kit .customer-nav a::before {
    content: ''; width: 18px; height: 18px; flex: 0 0 18px;
    background: currentColor; -webkit-mask: var(--qoq-icon) center / contain no-repeat;
    mask: var(--qoq-icon) center / contain no-repeat;
  }
  .qoqai-kit .customer-nav a[href='/start'] { --qoq-icon: url('/assets/icons/01-workflow.svg'); }
  .qoqai-kit .customer-nav a[href='/onboarding'] { --qoq-icon: url('/assets/icons/07-customer.svg'); }
  .qoqai-kit .customer-nav a[href='/learn'] { --qoq-icon: url('/assets/icons/08-learning.svg'); }
  .qoqai-kit .customer-nav a[href='/support'] { --qoq-icon: url('/assets/icons/09-support.svg'); }
  .qoqai-kit .customer-nav a[href='/data'] { --qoq-icon: url('/assets/icons/10-privacy-lock.svg'); }
  .qoqai-kit :is(#lessons button, .progress-rail nav button) { border: 1.5px solid #737c77; border-radius: 10px; min-height: 52px; }
  .qoqai-kit :is(#lessons button, .progress-rail nav button)[aria-current=step] {
    background: #181d1a; border-color: #c8f53c; box-shadow: inset 3px 0 0 #c8f53c; color: #ede8dc;
  }
  .qoqai-kit :is(#lessons button, .progress-rail nav button):hover { background: #181d1a; }
  .qoqai-kit details { background-color: #111513; border-color: #464d49; border-radius: 10px; }
  .qoqai-kit details > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 52px; list-style: none; cursor: pointer;
  }
  .qoqai-kit details > summary::-webkit-details-marker { display: none; }
  .qoqai-kit details > summary::after {
    content: '+' / ''; display: grid; place-items: center; flex: 0 0 32px;
    width: 32px; height: 32px; border: 1px solid #737c77; border-radius: 50%;
    color: #ede8dc; font-size: 20px; font-weight: 400; line-height: 1;
  }
  .qoqai-kit details[open] > summary::after { content: '−' / ''; background: #20261f; }
  .qoqai-kit details > summary:is(:hover, :focus-visible) { background: #181d1a; border-radius: 8px; }
  .qoqai-kit details[open] > summary { border-color: #464d49; }
  .qoqai-kit summary:has(> span[aria-hidden])::after { content: none; }
  .qoqai-kit :is(.faq-list, #inquiry-privacy) summary > span[aria-hidden] {
    display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px;
    border: 1px solid #737c77; border-radius: 50%; font-size: 0; transform: none;
  }
  .qoqai-kit :is(.faq-list, #inquiry-privacy) summary > span[aria-hidden]::after { content: '+'; font-size: 20px; }
  .qoqai-kit :is(.faq-list, #inquiry-privacy) details[open] > summary > span[aria-hidden]::after { content: '−'; }
  .qoqai-kit #inquiry-privacy[open] > summary > span[aria-hidden]::after { content: '−'; }
  .qoqai-kit :is(.topbar, .dashboard-header, header:not(.header)) { background-color: #0a0c0b; border-color: #464d49; }
  .qoqai-kit :is(.dashboard-sidebar, .sidebar-note) { background: #111513; border-color: #464d49; }
  .qoqai-kit :is(.footer, .dashboard-footer, footer) { border-color: #464d49; color: #b4b1a7; }
  .qoqai-kit footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .qoqai-kit :is([role=status], .status-line) { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
  /* Base save-indicator also means "Ready when you are", so it is neutral. */
  .qoqai-kit .save-indicator:not(.is-error) { background: transparent; border: 1.5px solid #ede8dc; box-shadow: none; }
  .qoqai-kit :is(#inquiry-success .receipt-check, #submitted-notice .notice-symbol) { color: #0a0c0b; background: #c8f53c; border-color: #c8f53c; }
  .qoqai-kit.redesign .self-paced { background: #111513; color: #ede8dc; border-block: 1px solid #464d49; }
  .qoqai-kit.redesign .course-offer :is(h2, p, .price strong, .price span) { color: #ede8dc; }
  .qoqai-kit.redesign .course-offer .gradient-text { color: #c8f53c; -webkit-text-fill-color: #c8f53c; }
  .qoqai-kit.redesign .course-offer .eyebrow { color: #b4b1a7; }
  .qoqai-kit.redesign .course-offer-purchase { padding: 32px; border: 1.5px solid #737c77; border-radius: 16px; background: #050605; }
  .qoqai-kit.redesign .self-paced :is(a, button):focus-visible { outline-color: #ede8dc !important; }
  .qoqai-kit .qoqai-chat-panel { background: #111513; color: #ede8dc; border: 1px solid #737c77; border-radius: 16px; max-height: 85dvh; }
  .qoqai-kit .qoqai-chat-panel :is(.qoqai-chat-message-body, .qoqai-chat-starters button, textarea) { background: #050605; color: #ede8dc; border-color: #737c77; }
  .qoqai-kit .qoqai-chat-header h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; color: #ede8dc; }
  .qoqai-kit .qoqai-chat-welcome h3 { font-size: 24px; line-height: 1.2; }
  .qoqai-kit .qoqai-chat-header { position: sticky; top: 0; z-index: 2; background: #111513; }
  .qoqai-kit .qoqai-chat-panel button[type=submit] { background: #c8f53c; color: #0a0c0b; }
  .qoqai-kit .qoqai-chat-icon-button { background: #20261f; color: #ede8dc; min-width: 44px; min-height: 44px; }
  .qoqai-kit .qoqai-chat-toolbar button { min-height: 44px; }
  .qoqai-kit .qoqai-chat-panel details > summary { font-size: 13px; }
}
@media screen and (max-width: 760px) {
  .qoqai-kit :is(input:not([type=checkbox], [type=radio]), select, textarea) { font-size: 16px; }
  .qoqai-kit .customer-nav a { gap: 4px; font-size: 11px; padding-inline: 3px; }
  .qoqai-kit .customer-nav a::before { display: none; }
  .qoqai-kit :is(.actions, .notice-actions, .payment-actions) { gap: 12px; }
  .qoqai-kit :is(.actions, .notice-actions, .payment-actions) > :is(.button, .secondary, .primary-button, .secondary-button) { width: 100%; }
  .qoqai-kit.redesign .course-offer-purchase { padding: 24px 20px; }
  .qoqai-kit .qoqai-chat-panel { inset: auto 0 0; width: 100%; max-width: none; border-radius: 16px 16px 0 0; }
}
@media screen and (prefers-reduced-motion: reduce) {
  .qoqai-kit *, .qoqai-kit *::before, .qoqai-kit *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media screen and (forced-colors: active) {
  .qoqai-kit :is(button, .button, input, select, textarea, summary, [aria-current]) { border-color: ButtonText; box-shadow: none; }
  .qoqai-kit :is(a, button, input, select, textarea, summary):focus-visible { outline-color: Highlight !important; }
  .qoqai-kit .customer-nav a::before { display: none; }
}
/* With a short viewport (landscape or a keyboard), use one scroll container so
   the composer and privacy actions remain reachable below the conversation. */
@media screen and (max-height: 650px) {
  .qoqai-kit .qoqai-chat-panel[open] { overflow-y: auto; }
  .qoqai-kit .qoqai-chat-scroll { flex: none; min-height: 0; overflow: visible; overscroll-behavior: auto; }
  .qoqai-kit .qoqai-chat-bottom { flex: none; max-height: none; overflow: visible; }
}
