/* Tema "vivid" do Briefing Intelligence: ativado pelo modelo (template.ui.theme = "vivid").
   Mais leitura, toques maiores, ícones em destaque, progresso visível e comemoração. Mobile primeiro. */
body.theme-vivid{--blue:#3D5AFE;--blue-soft:#eef1ff;font-size:16px}
body.theme-vivid .space-scene{opacity:.7}
body.theme-vivid .screen{animation:vx-arrive .5s var(--ease) both}
@keyframes vx-arrive{from{opacity:0;transform:translateY(18px) scale(.99)}to{opacity:1;transform:none}}

/* boas-vindas */
.vx-logos{display:flex;align-items:center;gap:14px;margin-bottom:34px}
.vx-logos img{height:24px;width:auto}.vx-logos .vx-x{color:var(--quiet);font-size:18px}
.vx-logos b{font-size:15px;letter-spacing:.24em;font-weight:700;color:var(--paper)}
body.theme-vivid .welcome-screen h1{font-size:clamp(44px,5.6vw,74px);line-height:1.02;letter-spacing:-.055em}
body.theme-vivid .intro-copy{font-size:16px;line-height:1.7;max-width:560px}
body.theme-vivid .welcome-meta strong{color:var(--blue)}

/* perguntas */
body.theme-vivid .question-heading h1{font-size:clamp(32px,3.6vw,48px);line-height:1.08;letter-spacing:-.04em}
body.theme-vivid .question-description{font-size:15px;line-height:1.65;max-width:600px}
body.theme-vivid legend,body.theme-vivid .field>label{font-size:15px;line-height:1.5;margin-bottom:12px;color:#1d2433}
body.theme-vivid .field-required{font-size:12px}
body.theme-vivid .field-help{font-size:13px}
body.theme-vivid .field input:not([type=radio]):not([type=checkbox]),body.theme-vivid .field textarea,body.theme-vivid .field select{font-size:16px;padding:15px 16px;border-radius:14px;min-height:54px;transition:border-color .2s,box-shadow .2s}
body.theme-vivid .field input:focus,body.theme-vivid .field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px #3d5afe1f;outline:none}
body.theme-vivid .field textarea{min-height:120px;line-height:1.6}
body.theme-vivid .option-list{gap:10px}
body.theme-vivid .option{min-height:66px;padding:14px 16px;font-size:15px;line-height:1.4;border-radius:16px;border:1.5px solid #e2e6f0;transition:border-color .2s,background .2s,transform .25s var(--ease),box-shadow .25s}
body.theme-vivid .option:hover{transform:translateY(-2px);box-shadow:0 10px 24px -14px #3d5afe66;border-color:#c7d1fb}
body.theme-vivid .option-icon{flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:var(--blue-soft)}
body.theme-vivid .option-icon svg{width:21px;height:21px}
body.theme-vivid .option:has(input:checked){border-color:var(--blue);background:#f4f6ff;box-shadow:0 10px 26px -16px #3d5afe99}
body.theme-vivid .option:has(input:checked) .option-icon{background:var(--blue);color:#fff;animation:vx-pop .4s var(--ease)}
body.theme-vivid .option input{width:20px;height:20px;accent-color:var(--blue)}
@keyframes vx-pop{0%{transform:scale(.8) rotate(-8deg)}60%{transform:scale(1.12) rotate(3deg)}100%{transform:none}}
body.theme-vivid .optional-details summary{font-size:14px}
body.theme-vivid .optional-guidance{font-size:12px}
body.theme-vivid .button{font-size:14px;min-height:54px;border-radius:15px}
body.theme-vivid .button-primary{box-shadow:0 12px 26px -12px #3d5afe}

/* progresso */
.vx-progress{position:relative;display:flex;flex-direction:column;gap:7px;min-width:210px;margin-left:auto}
.vx-progress[hidden]{display:none}
.vx-progress-txt{font-size:11px;letter-spacing:.06em;color:var(--muted);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vx-progress-bar{display:block;height:5px;border-radius:99px;background:#e6eaf5;overflow:hidden;position:relative}
.vx-progress-bar::after{content:"";position:absolute;inset:0 auto 0 0;width:var(--p,0%);border-radius:inherit;background:linear-gradient(90deg,#8EA2FF,var(--blue));transition:width .6s var(--ease)}
body.theme-vivid .flow-label{display:none}

/* comemoração */
.vx-confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:90}
body.theme-vivid .stage-milestone{font-size:13px;font-weight:600;padding:13px 22px;color:#fff;background:#0B0C0E;border-color:#0B0C0E;box-shadow:0 16px 40px -14px #0b0c0e88}
body.theme-vivid .stage-milestone svg{color:#8EA2FF}

/* conclusão */
body.theme-vivid .success-orbit{width:84px;height:84px;background:var(--blue);color:#fff;border:0;box-shadow:0 0 0 12px #3d5afe14,0 0 0 26px #3d5afe0a;animation:vx-success .7s var(--ease) both}
body.theme-vivid .success-orbit svg{width:34px;height:34px}
@keyframes vx-success{0%{transform:scale(.3);opacity:0}60%{transform:scale(1.12);opacity:1}100%{transform:none}}
.vx-next-h{margin:34px 0 12px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--blue);font-weight:700}
.vx-next{list-style:none;margin:0 0 30px;padding:0;display:grid;gap:10px}
.vx-next li{display:flex;gap:16px;align-items:flex-start;padding:16px 18px;border-radius:16px;background:#f5f7ff;border:1px solid #e3e8fb;animation:vx-arrive .5s var(--ease) both}
.vx-next li:nth-child(2){animation-delay:.08s}.vx-next li:nth-child(3){animation-delay:.16s}.vx-next li:nth-child(4){animation-delay:.24s}
.vx-next-n{font-size:12px;font-weight:700;color:var(--blue);padding-top:2px}
.vx-next b{display:block;font-size:15px}.vx-next span{font-size:14px;color:var(--muted);line-height:1.55}

/* celular: excelente acima de tudo */
@media(max-width:800px){
  body.theme-vivid .flow-header{flex-wrap:wrap;padding:16px 20px 14px;min-height:0;gap:10px;position:sticky;top:0;z-index:30}
  body.theme-vivid .mobile-brand img{height:22px;width:auto}
  .vx-progress{order:3;flex-basis:100%;min-width:0}
  .vx-progress-txt{text-align:left;font-size:12px}
  body.theme-vivid .save-area{font-size:11px}
  body.theme-vivid .flow-main{padding:18px 14px 28px;min-height:0;align-items:flex-start}
  body.theme-vivid .screen{padding:26px 20px 22px;border-radius:24px}
  body.theme-vivid .welcome-screen{padding:30px 22px}
  body.theme-vivid .welcome-screen h1{font-size:clamp(38px,11vw,52px)}
  .vx-logos{margin-bottom:26px}.vx-logos img{height:20px}
  body.theme-vivid .question-heading h1{font-size:clamp(27px,7.6vw,34px)}
  body.theme-vivid .screen-eyebrow{font-size:10px}
  body.theme-vivid .option-list{grid-template-columns:1fr}
  body.theme-vivid .option{min-height:60px}
  body.theme-vivid .flow-actions{position:sticky;bottom:0;margin:26px -20px -22px;padding:14px 20px calc(14px + env(safe-area-inset-bottom));background:rgba(255,255,255,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-radius:0 0 24px 24px;z-index:5}
  body.theme-vivid .flow-actions .button-primary{flex:1}
  body.theme-vivid .flow-next{flex:1;justify-content:flex-end}
  body.theme-vivid .back-button{font-size:14px;padding:12px 6px}
  body.theme-vivid .button{font-size:15px}
  body.theme-vivid .stage-milestone{top:auto;bottom:96px;left:50%;max-width:calc(100% - 32px);white-space:normal;text-align:center}
}
@media(prefers-reduced-motion:reduce){body.theme-vivid .screen,.vx-next li,body.theme-vivid .success-orbit,body.theme-vivid .option:has(input:checked) .option-icon{animation:none}}

/* na abertura o cartão já traz as logos */
@media(max-width:800px){body.theme-vivid:has(.welcome-screen) .mobile-brand{visibility:hidden}}
@media(max-width:800px){body.theme-vivid[data-scene=dark] .flow-actions{background:rgba(14,17,26,.94);border-top-color:rgba(255,255,255,.08)}}
