/* F39: human AI visual references and visual-only week switcher.
 * Does not modify lab states, photos, patient data, session or clinical clock. */
body:has(.home-premium) .preview-weeks{
  position:relative;z-index:15;margin:4px auto 2px;width:min(100% - 48px,390px);
  background:linear-gradient(120deg,rgba(255,254,248,.83),rgba(249,238,224,.8));
  border:1px solid rgba(255,255,255,.94);border-radius:16px;padding:10px 11px;
  box-shadow:0 5px 16px #5f4d3614,inset 0 0 0 1px #e2d7c863;
  backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);
}
body:has(.home-premium) .preview-weeks .week-preview-header{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  font:700 9px/1.35 'Segoe UI',Arial,sans-serif;letter-spacing:.10em;
  color:#687664;margin-bottom:8px;
}
body:has(.home-premium) .preview-weeks .week-preview-header span:last-child{
  font:500 9px/1.3 'Segoe UI',Arial,sans-serif;letter-spacing:0;color:#8c7c6b
}
body:has(.home-premium) .week-preview-buttons{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;
}
body:has(.home-premium) .week-preview-buttons>button{
  min-height:38px;border:1px solid #d6c9b8;background:#fff9f0bb;
  color:#647764;border-radius:11px;padding:7px 0;font:650 11px/1.2 'Segoe UI',Arial,sans-serif;
  cursor:pointer;transition:background .14s,border-color .14s,transform .14s;
}
body:has(.home-premium) .week-preview-buttons>button:hover{background:#fffdf7;border-color:#b8b69e}
body:has(.home-premium) .week-preview-buttons>button:focus-visible{outline:3px solid #b98062;outline-offset:2px}
body:has(.home-premium) .week-preview-buttons>button[aria-pressed="true"]{
  border-color:#78957d;background:linear-gradient(125deg,#e9ede1,#f7eddf);
  color:#345941;box-shadow:inset 0 0 0 1px #fff9,0 2px 5px #617c5d19;
}
body:has(.home-premium) .week-preview-caption{
  margin:7px 0 0;font:500 10px/1.5 'Segoe UI',Arial,sans-serif;color:#7e7467;
}
body:has(.home-premium) .week-preview-caption strong{color:#4c6b51;font-weight:650}
body:has(.home-premium) .week-preview-reset{
  border:0;background:transparent;color:#6c866d;text-decoration:underline;
  font:600 10px 'Segoe UI',Arial,sans-serif;padding:2px 0;cursor:pointer;
}
body:has(.home-premium) .week-preview-reset:focus-visible{outline:3px solid #b98062}
body:has(.home-premium) .mobile-app{background-position:center top!important}
body:has(.home-premium)[data-atelier-week="1"] .mobile-app{
  --week-visual-filter:sepia(.12);background-size:100% auto;
}
body:has(.home-premium)[data-atelier-week="2"] .mobile-app{--week-visual-filter:saturate(1.06)}
body:has(.home-premium)[data-atelier-week="3"] .mobile-app{--week-visual-filter:saturate(1.15)}
body:has(.home-premium)[data-atelier-week="4"] .mobile-app{--week-visual-filter:contrast(1.05)}
/* Three views are segments of one AI-generated visual reference.
   Not actual patient photos; actual media still uses lab synthetic PNGs only. */
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot .photo-shape{
  background-image:url('/f40/assets/rostos_ia_3_angulos.webp')!important;
  background-size:300% 100%!important;
  background-repeat:no-repeat!important;
  aspect-ratio:88 / 138!important;
  min-height:133px;
  box-shadow:inset 0 0 0 1px #fff8,0 2px 7px #765b4812;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot[data-photo="frontal"] .photo-shape{
  background-position:0% 50%!important;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot[data-photo="direita"] .photo-shape{
  background-position:50% 50%!important;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot[data-photo="esquerda"] .photo-shape{
  background-position:100% 50%!important;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-caption{
  font:650 10px/1.3 'Segoe UI',Arial,sans-serif;color:#4e6757;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot{
  min-height:183px;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot[aria-pressed="true"] .photo-shape::after{
  background:#56876b;color:white;
}
@media(max-width:365px){
 body:has(.home-premium) .preview-weeks{width:calc(100% - 28px)}
 body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot .photo-shape{min-height:120px}
}
@media(prefers-reduced-motion:reduce){
 body:has(.home-premium) .week-preview-buttons>button{transition:none!important}
}

body:has(#screen-home[hidden]) .preview-weeks{display:none}

/* Override each former illustrative SVG at identical selector specificity. */
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot[data-photo="frontal"] .photo-shape,
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot[data-photo="direita"] .photo-shape,
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot[data-photo="esquerda"] .photo-shape{
 background-image:url('/f40/assets/rostos_ia_3_angulos.webp')!important;
 background-size:300% 100%!important;
 background-repeat:no-repeat!important;
}

/* The comparison selector belongs to Home, not the photo step. */
body[data-atelier-open="true"][data-atelier-state="photos"] .preview-weeks{display:none!important}

/* F39 CARD CONTINUIDADE — 2026-10-27
   A planta/flor deve ser a mesma do fundo inteiro da tela.
   Antes: .bloom-art repetia o SVG dentro do card, com escala e recorte
   diferentes, criando flor duplicada. Agora: um único SVG de fundo.
   Alteração apenas visual, em cópia local, com backup .PRE_FIX_CARD.bak. */
body:has(.home-premium) #screen-home .journey-card .bloom-art,
body:has(.home-premium) #screen-home .journey-card::after{
  display:none!important;
}
body:has(.home-premium) #screen-home .journey-card{
  background:linear-gradient(110deg,
    rgba(255,252,244,.70) 0%,
    rgba(255,252,244,.52) 50%,
    rgba(255,252,244,.25) 100%)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  border:1px solid rgba(255,253,247,.84);
  box-shadow:inset 0 0 0 1px rgba(226,215,199,.38),
             inset 0 1px 0 rgba(255,255,255,.92),
             0 10px 28px rgba(61,57,44,.12);
}

/* F39 — verde-sálvia tipo vidro, conservando fundo botânico contínuo.
   O cartão NÃO reaplica o SVG, e NÃO desfoca o fundo. */
body:has(.home-premium) #screen-home .journey-card {
  background:
    linear-gradient(117deg,
      rgba(117,153,121,.39) 0%,
      rgba(144,177,142,.30) 47%,
      rgba(180,202,170,.18) 100%) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  border:1px solid rgba(242,249,236,.88) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.83),
    inset 0 0 0 1px rgba(225,239,218,.34),
    0 10px 27px rgba(43,67,46,.15) !important;
}
body:has(.home-premium) #screen-home .journey-card .journey-count strong,
body:has(.home-premium) #screen-home .journey-card .journey-count>span,
body:has(.home-premium) #screen-home .journey-card .journey-label,
body:has(.home-premium) #screen-home .journey-card .journey-bottom {
  color:#294333 !important;
}
body:has(.home-premium) #screen-home .journey-card .progress-track{
  background:rgba(237,245,228,.66) !important;
  box-shadow:inset 0 1px 3px rgba(50,88,58,.17) !important;
}
body:has(.home-premium) #screen-home .journey-card .journey-type{
  background:rgba(245,249,238,.58) !important;
  border-color:rgba(216,231,209,.87) !important;
  color:#3b5a42 !important;
}
