/* Facebook presentation layer. Original text, IDs and application flow are retained. */
:root {
  --canvas: #f0f2f5;
  --canvas-elevated: #f7f8fa;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f0f2f5;
  --surface-hover: #e7f3ff;
  --surface-inverse: #1877f2;
  --text: #1c1e21;
  --text-soft: #4b4f56;
  --text-muted: #65676b;
  --text-inverse: #ffffff;
  --line: #e4e6eb;
  --line-strong: #ccd0d5;
  --accent: #1877f2;
  --accent-strong: #166fe5;
  --accent-soft: #e7f3ff;
  --accent-ink: #1877f2;
  --blue: #1877f2;
  --shadow-xs: 0 2px 5px rgba(0, 0, 0, .04);
  --shadow-sm: 0 10px 32px rgba(0, 0, 0, .08);
  --shadow-md: 0 24px 65px rgba(0, 0, 0, .16);
  --focus-ring: 0 0 0 4px rgba(24, 119, 242, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --green-modal: #1877f2;
  --green-soft-modal: #e7f3ff;
  --violet-modal: #1877f2;
  --violet-soft-modal: #e7f3ff;
  --ink-modal: #1c1e21;
  --muted-modal: #65676b;
  --line-modal: #e4e6eb;
  --shadow-modal: 0 24px 70px rgba(24, 71, 105, .19);
  --sidebar-width: 258px;
}
body { background: var(--canvas); }
.app { background: var(--canvas); }
.app-main {
  background-color: var(--canvas);
  background-image: none;
  background-size: 280px 280px;
}
.app-sidebar { padding: 24px 16px 20px; border-color: var(--line); }
.sidebar-brand { padding: 0 12px; }
.openai-wordmark-img, .openai-icon-img, html[data-theme] .openai-wordmark-img,
html[data-theme] .openai-icon-img { filter: none !important; }
.openai-wordmark-img { width: 153px; height: 40px; }
.openai-wordmark-img--header { width: 137px; height: 36px; }
.app-header { background: rgba(255, 255, 255, .97); box-shadow: 0 2px 10px rgba(43, 89, 123, .025); }
.online-status { border-color: #dbe8fa; background: #edf4ff; color: #4b6b96; }
.online-status__dot, .intro-live-status__dot { background: #31a24c; }
.header-btn { border-radius: 50%; color: var(--accent); background: var(--surface-soft); }
.stage-nav { gap: 8px; margin-top: 38px; }
.stage-nav__label { color: #8a8d91; font-size: 10px; letter-spacing: .12em; }
.stage-nav__item { min-height: 68px; gap: 12px; grid-template-columns: 34px 1fr; border-radius: 16px; padding: 12px; }
.stage-nav__item::after { display: none; }
.stage-nav__item.is-active { background: #e7f3ff; color: #1877f2; box-shadow: none; }
.stage-nav__item.is-active small { color: #5e79a4; }
.stage-nav__index { width: 32px; height: 32px; border-radius: 50%; border-color: #e4e6eb; background: #f0f2f5; }
.stage-nav__item.is-active .stage-nav__index { border-color: #1877f2; background: #1877f2; color: #fff; box-shadow: 0 4px 12px rgba(24,119,242,.2); }
.stage-nav__item.is-complete .stage-nav__index { border-color: #c5ddfa; background: #e7f3ff; }
.sidebar-note { border: 0; padding: 16px 12px; background: #f7f8fa; border-radius: 16px; }
.screen-intro { padding: 32px 0; align-items: safe center; background: transparent; overflow-y: auto; }
.screen-intro .intro-stack.intro-stack--focused {
  width: min(620px, calc(100% - 48px)); height: auto; margin: auto;
  gap: 15px; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; align-content: start;
}
.screen-intro .intro-hero-heading {
  position: relative; display: grid; gap: 16px; padding: 25px 28px 27px;
  border: 1px solid rgba(255,255,255,.9); border-radius: 24px;
  background: linear-gradient(130deg, #fff 0%, #fafbfc 75%, #f0f4fa 100%);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.intro-hero-heading__meta { position: relative; z-index: 1; justify-content: space-between; }
.intro-model-label { min-height: 26px; font-size: 10px; padding: 6px 11px; border-radius: 20px; letter-spacing: .08em; color: #1877f2; background: #e7f3ff; }
.intro-live-status { font-size: 11px; color: #65676b; gap: 6px; }
.screen-intro .intro-hero-heading h1 { position: relative; z-index: 1; display: block; font-size: clamp(32px, 3.8vw, 38px); line-height: 1.1; letter-spacing: -.04em; font-weight: 730; }
.intro-hero-heading h1 > span { display: block; }
.intro-hero-heading h1 em { color: #1877f2; }
.intro-hero-heading h1 em::after { background: #d2e5ff; height: .13em; animation: none; transform: none; }
.intro-brand-strip { min-height: 44px; padding: 5px 8px; gap: 6px; border: 0; border-radius: 14px; background: rgba(255,255,255,.58); }
.intro-brand-chip { background: transparent; border: 0; box-shadow: none; }
.screen-intro .intro-assistant-card {
  position: relative; gap: 12px; padding: 0; border: 0;
  border-radius: 0; background: transparent; box-shadow: none; overflow: visible;
}
.intro-assistant-card::before { display: none; }
.intro-assistant-card__header { gap: 11px; }
.intro-assistant-card__avatar { width: 43px; height: 43px; border-radius: 50%; background: transparent; }
.intro-assistant-card__avatar .openai-icon-img { width: 43px; height: 43px; }
.intro-assistant-card__header h2 { display: grid; gap: 2px; color: #1877f2; font-size: 15px; font-weight: 700; }
.intro-assistant-card__header h2 span { font-size: 11px; color: #8a8d91; font-weight: 400; }
.screen-intro .intro-assistant-card__message { position: relative; min-height: 0; padding: 17px 20px; border: 1px solid #fff; border-radius: 18px 18px 18px 4px; background: #fff; color: #4b4f56; box-shadow: var(--shadow-sm); }
.intro-assistant-card__message::before { content: ""; position: absolute; left: -8px; bottom: -1px; width: 18px; height: 19px; background: #fff; clip-path: polygon(100% 0,100% 100%,0 100%); }
.screen-intro .intro-assistant-card__message p { font-size: 15px; line-height: 1.58; min-height: 76px; }
.intro-platform-widget { min-height: 88px; gap: 13px; padding: 15px 18px; border-radius: 19px; border: 1px solid rgba(255,255,255,.95); background: linear-gradient(120deg,#f7f8fa,#e7f3ff); box-shadow: var(--shadow-xs); }
.intro-platform-widget__head strong { color: #1877f2; font-size: 13px; }
.intro-platform-widget__head > span { color: #1877f2; border: 0; font-size: 10px; background: #fff; padding: 5px 8px; }
.intro-platform-widget__pulse { background: #1877f2; }
.intro-platform-signals > span { width: 31px; height: 31px; color: #1877f2; background: #fff; border: 1px solid #e4e6eb; border-radius: 10px; }
.intro-platform-scan__track { background: #d2e5ff; }
.intro-platform-scan__beam { background: linear-gradient(90deg,transparent,#1877f2); }
.intro-platform-scan__dot { background: #b7d7ff; box-shadow: 0 0 0 3px rgba(24,119,242,.08); }
.intro-platform-result { color: #1877f2; background: #fff; border-color: #dbe8fa; border-radius: 11px; }
.screen-intro .intro-mini-flow { display: grid; padding: 13px 15px; border: 0; border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: none; }
.intro-mini-flow__icon { color: #1877f2; background: #f0f2f5; border-radius: 50%; width: 33px; height: 33px; }
.intro-mini-flow__item strong { color: #65676b; font-size: 12px; font-weight: 600; }
.intro-mini-flow__arrow { color: #9ab8dc; }
.screen-intro .intro-analysis-btn,
.btn-primary, .primary-btn, .quiz-next-btn, .trade-result-btn {
  background: linear-gradient(110deg,#1877f2,#1877f2); color: #fff;
  border-radius: 15px; box-shadow: 0 8px 20px rgba(24,119,242,.2);
}
.screen-intro .intro-analysis-btn { width: 100%; min-height: 56px; font-size: 16px; font-weight: 700; }
.screen-intro .intro-analysis-btn:hover, .btn-primary:hover, .primary-btn:hover { box-shadow: 0 10px 24px rgba(24,119,242,.28); }
.screen-loader, .screen-quiz, .screen-trading.company-screen, .screen-activation, .screen-final { background: transparent; }
.loader-modal, .quiz-modal, .analysis-modal, .activation-card, .bento-card, .trade-result-card, .form-wrapper { border-color: rgba(255,255,255,.95); border-radius: 24px; box-shadow: var(--shadow-sm); }
.loader-lottie, .modal-lottie { border-radius: 50%; background: transparent; }
.loader-lottie .ai-orb, .modal-lottie .ai-orb { width: 68px; height: 68px; }
.loader-lottie::after, .modal-lottie::after { border-radius: 50%; border-color: #9ac0f8; }
.loader-kicker, .analysis-kicker { color: #1877f2; }
.loader-progress, .analysis-progress, .quiz-progress-line { background: #e4e6eb; }
.loader-progress span, .analysis-progress span, .quiz-progress-line span { background: linear-gradient(90deg,#5a9dfa,#1877f2); }
.assistant-avatar__slot { border-radius: 50%; background: transparent; }
.assistant-avatar__slot .ai-orb { width: 42px; height: 42px; }
.assistant-avatar__status { background: #31a24c; }
.quiz-assistant__info h2 { color: #1877f2; font-size: 16px; font-weight: 700; }
.quiz-message { border: 0; border-radius: 5px 16px 16px 16px; background: #f0f2f5; }
.quiz-question__label { color: #1877f2; letter-spacing: .07em; }
.quiz-name-card { background: #f7f8fa; border-color: #e4e6eb; border-radius: 18px; }
.quiz-option { min-height: 60px; background: #f7f8fa; border-color: #e4e6eb; border-radius: 15px; color: #4b4f56; }
.quiz-option:hover { border-color: #a2c5f8; background: #e7f3ff; }
.quiz-option.is-selected { border-color: #1877f2; background: #e7f3ff; color: #1877f2; box-shadow: 0 0 0 2px rgba(24,119,242,.08); }
.quiz-option__check { border-radius: 50%; border-color: #ccd0d5; }
.quiz-option.is-selected .quiz-option__check { background: #1877f2; border-color: #1877f2; color: #fff; }
.quiz-field input, .meta-input { border-radius: 12px; border-color: #ccd0d5; background: #f7f8fa; }
.quiz-field input:focus, .meta-input:focus { border-color: #1877f2; background: #fff; }
.company-hero { background: #fff; }
.company-hero__copy h1 { color: #1c1e21; font-weight: 700; }
.company-count { color: #1877f2; background: #e7f3ff; border-color: #c5ddfa; }
.company-choice-hint-v2 { border-color: #d2e5ff; background: #f0f2f5; color: #1877f2; }
.company-choice-hint-v2.is-complete { border-color: #c5ddfa; background: #e7f3ff; color: #1877f2; }
.company-choice-hint-v2__number, .company-choice-hint-v2.is-complete .company-choice-hint-v2__number { border-radius: 50%; background: #1877f2; box-shadow: 0 4px 12px rgba(24,119,242,.15); }
.company-choice-hint-v2__copy { display: grid; gap: 3px; }
.company-choice-hint-v2__copy small { color: #65676b; }
.company-grid .company-card.company-card--income-v2 { border-color: #e4e6eb !important; border-radius: 18px !important; background: linear-gradient(145deg,#fff,#fafbfc) !important; box-shadow: 0 5px 15px rgba(24,119,242,.06) !important; }
.company-grid .company-card.company-card--income-v2.is-selected { border-color: #1877f2 !important; background: #e7f3ff !important; box-shadow: 0 5px 16px rgba(24,119,242,.13) !important; }
.company-income-v2__index { background: #eef7ff !important; color: #3283b7 !important; }
.company-income-v2__identity > strong { color: #1c1e21 !important; }
.company-income-v2__amount { border-color: #d2e5ff !important; background: #e7f3ff !important; color: #1877f2 !important; }
.company-income-v2__amount small { color: #5e79a4 !important; }
.company-income-v2__action, .company-card--income-v2.is-selected .company-income-v2__action { background: #1877f2 !important; }
.company-card--income-v2.is-selected .company-income-v2__check { background: #1877f2 !important; border-color: #1877f2 !important; }
.company-carousel-arrows button { border-color: #d2e5ff; border-radius: 50%; color: #1877f2; background: #e7f3ff; }
.activation-icon { background: transparent; border: 0; width: 72px; height: 72px; }
.activation-icon img { width: 68px; height: 68px; }
.activation-statuses > div { background: #f7f8fa; border-color: #e4e6eb; }
.activation-statuses > div > span { background: #e7f3ff; color: #1877f2; }
.activation-note { border-color: #e4e6eb; background: #f7f8fa; }
.income-summary-card { border: 1px solid #e4e6eb; border-radius: 24px; background: linear-gradient(145deg,#fff,#fafbfc); box-shadow: var(--shadow-sm); }
.income-summary-kicker { color: #1877f2; }
.income-summary-amount { border-color: #d2e5ff; background: linear-gradient(120deg,#e7f3ff,#edf4ff); border-radius: 19px; }
.income-summary-amount strong { color: #1877f2; }
.income-summary-amount i { background: #1877f2; }
.income-guide { border-color: #e4e6eb; background: #e7f3ff; }
.income-guide-heading span, .income-guide-grid i { color: #1877f2; }
.screen-final .form-wrapper { border-color: #e4e6eb; background: #fff; box-shadow: var(--shadow-sm); }
.screen-final .form-badge { border-color: #d2e5ff; background: #e7f3ff; color: #1877f2; }
.screen-final .form-badge-dot { background: #1877f2; }
.final-guidance { background: #f7f8fa; border-color: #e4e6eb; }
.modal-overlay { background: rgba(22,58,83,.28); backdrop-filter: blur(7px); padding: 16px; }
.dialog, .cabinet-message { background: #fff; border-color: #fff; border-radius: 24px; }
.dialog::before { background: rgba(24,119,242,.08); }
.dialog .icon img, .cabinet-message .icon img { width: 146px; height: auto; }
.answer, .answer.no { border-color: #e4e6eb; background: #f7f8fa; border-radius: 15px; }
.answer[aria-checked="true"], .answer.selected { border-color: #1877f2; background: #e7f3ff; }
.confirm { background: #1877f2; border-radius: 13px; }
.confirm:disabled { background: #c1cfe2; }
.status-list i { color: #1877f2; background: #e7f3ff; }
#linkedLandingShell, #linkedLandingFrame { background: #f0f2f5; }
#linkedLandingLoader { background: #f0f2f5; }
.linked-loader-card { border-color: #e4e6eb; border-radius: 22px; color: #4b4f56; box-shadow: var(--shadow-sm); }
.linked-loader-ring { border-color: #d4ebfb; border-top-color: #1877f2; }
/* Standalone thank-you page. */
body.facebook-thanks { box-sizing: border-box; width: 100%; max-width: none; min-height: 100dvh; margin: 0; padding: 20px; color: #1c1e21; background: #f0f2f5; font-family: var(--font) !important; }
.facebook-thanks .logo-container { max-width: 460px; margin: 0 auto; padding: 12px 20px; height: 66px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.facebook-thanks .logo-container img { height: 36px !important; }
.facebook-thanks .thanks-container { box-sizing: border-box; position: relative; max-width: 460px; min-height: 0; margin: 24px auto; padding: 36px 28px; border: 1px solid #fff; border-radius: 24px; background: #fff; color: #1c1e21; box-shadow: var(--shadow-sm); }
.facebook-thanks .thanks-container::before { content: ""; display: block; width: 72px; height: 72px; margin: 0 auto 22px; background: url("../images/facebook-icon.svg") center / contain no-repeat; }
.facebook-thanks .thanks-title { font-size: 30px; line-height: 1.1; letter-spacing: -.04em; margin: 0 0 16px; }
.facebook-thanks .thanks-message { color: #65676b; font-size: 15px; line-height: 1.65; }
.facebook-thanks .thanks-btn { background: linear-gradient(110deg,#1877f2,#1877f2); border-radius: 14px; width: 100%; box-sizing: border-box; font-size: 14px; box-shadow: 0 7px 18px rgba(24,119,242,.19); }
@media (max-width: 980px) { :root { --header-height: 62px; } }
@media (max-width: 600px) {
  .app-header { padding: 0 16px; gap: 8px; }
  .openai-wordmark-img--header { width: 127px; height: 35px; }
  .online-status { height: 29px; padding: 0 8px; gap: 6px; }
  .online-status__text { font-size: 9px; }
  .header-btn { width: 31px; height: 31px; }
  .screen-intro { padding: 18px 0 24px; align-items: flex-start; }
  .screen-intro .intro-stack.intro-stack--focused { width: calc(100% - 28px); gap: 12px; padding: 0; margin: 0 auto; }
  .screen-intro .intro-hero-heading { padding: 21px 20px 23px; gap: 13px; border-radius: 21px; }
  .screen-intro .intro-hero-heading h1 { font-size: clamp(28px, 7.8vw, 35px); line-height: 1.12; }
  .intro-model-label { font-size: 9px; min-height: 24px; }
  .intro-live-status { font-size: 10px; }
  .intro-brand-strip { min-height: 37px; padding: 3px 5px; border-radius: 11px; }
  .screen-intro .intro-assistant-card { padding: 0; gap: 11px; }
  .screen-intro .intro-assistant-card__message { padding: 14px 16px; }
  .intro-assistant-card__avatar, .intro-assistant-card__avatar .openai-icon-img { width: 39px; height: 39px; }
  .intro-assistant-card__header h2 { font-size: 14px; }
  .intro-assistant-card__header h2 span { font-size: 10px; }
  .screen-intro .intro-assistant-card__message p { font-size: 14px; line-height: 1.58; min-height: 132px; }
  .intro-platform-widget { padding: 12px 14px; min-height: 85px; gap: 11px; border-radius: 17px; }
  .intro-platform-widget__head strong { font-size: 12px; }
  .intro-platform-widget__head > span { display: block; font-size: 9px; }
  .screen-intro .intro-mini-flow { display: grid; padding: 11px 10px; border-radius: 16px; }
  .intro-mini-flow__item strong { font-size: 10.5px; }
  .intro-mini-flow__icon { width: 29px; height: 29px; }
  .intro-mini-flow__icon svg { width: 20px; height: 20px; }
  .screen-intro .intro-analysis-btn { min-height: 54px; font-size: 15px; }
  .quiz-overlay { padding: 16px 14px 24px; align-content: start; }
  .quiz-modal { padding: 19px 17px; max-height: none; border-radius: 22px; }
  .quiz-message { padding: 13px 14px; }
  .quiz-question h3 { font-size: 24px; line-height: 1.17; }
  .quiz-options { gap: 9px; }
  .quiz-option { padding: 14px; }
  .loader-modal { padding: 30px 23px; border-radius: 22px; }
  .activation-card { border-radius: 22px; padding: 24px 20px; }
  .company-layout { width: calc(100% - 28px) !important; padding: 16px 0 24px !important; gap: 13px !important; }
  .company-layout > .bento-card { border-radius: 21px; }
  .company-hero { padding: 19px 18px; gap: 10px; }
  .company-hero__copy h1 { font-size: 25px; line-height: 1.13; }
  .company-hero__summary { font-size: 13px; }
  .company-picker { padding: 16px !important; }
  .company-picker__head--simple h2 { font-size: 21px !important; }
  .screen-final .final-scroll { width: calc(100% - 28px); padding-top: 16px; gap: 14px; }
  .screen-final .form-wrapper, .income-summary-card { padding: 23px 18px; border-radius: 22px; }
  .income-summary-card h2 { font-size: 28px; }
  .screen-final .form-title { font-size: 27px; }
}
@media (max-width: 370px) {
  .app-header { padding: 0 12px; }
  .online-status { padding: 0 6px; }
  .online-status__text { font-size: 8px; }
  .screen-intro .intro-hero-heading { padding: 18px 16px 21px; }
  .screen-intro .intro-assistant-card { padding: 0; }
  .screen-intro .intro-assistant-card__message p { min-height: 155px; }
  .company-income-v2__title { flex-wrap: wrap; }
  .company-income-v2__amount { margin-left: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Facebook feed cards, neutral canvas and the signature blue action buttons. */
.app-main { background: #f0f2f5; }
.screen-intro .intro-hero-heading { border-color: #e4e6eb; border-radius: 14px; background: #fff; }
.stage-nav__item, .sidebar-note { border-radius: 10px; }
.screen-intro .intro-assistant-card__message { border-radius: 14px; border-color: #e4e6eb; }
.intro-assistant-card__message::before { display: none; }
.intro-platform-widget { background: #fff; border-color: #e4e6eb; border-radius: 14px; }
.screen-intro .intro-mini-flow { background: #fff; border: 1px solid #e4e6eb; border-radius: 14px; }
.screen-intro .intro-analysis-btn, .btn-primary, .primary-btn, .quiz-next-btn, .trade-result-btn { background: #1877f2; border-radius: 10px; }
.screen-intro .intro-analysis-btn:hover, .btn-primary:hover, .primary-btn:hover { background: #166fe5; }
.loader-modal, .quiz-modal, .analysis-modal, .activation-card, .bento-card, .trade-result-card, .form-wrapper { border-radius: 14px; border-color: #e4e6eb; }
.company-layout > .bento-card, .income-summary-card, .screen-final .form-wrapper { border-radius: 14px; border-color: #e4e6eb; background: #fff; }
.company-grid .company-card.company-card--income-v2 { border-radius: 12px !important; background: #fff !important; }
.company-grid .company-card.company-card--income-v2.is-selected { background: #f3f8ff !important; }
.income-summary-amount { border-radius: 12px; background: #e7f3ff; }
.income-guide, .quiz-name-card, .activation-statuses > div, .activation-note { border-radius: 12px; }
.dialog, .cabinet-message, .linked-loader-card { border-radius: 16px; }
.facebook-thanks .logo-container, .facebook-thanks .thanks-container { border-radius: 14px; border: 1px solid #e4e6eb; }
.facebook-thanks .thanks-btn { background: #1877f2; border-radius: 10px; }
@media (max-width:600px) {
  .screen-intro .intro-hero-heading, .quiz-modal, .activation-card { border-radius: 14px; }
  .company-layout > .bento-card, .screen-final .form-wrapper, .income-summary-card { border-radius: 14px; }
}
