/* F38: four distinct weekly visual treatments + guided photo step.
   Presentation only. Does not control deadlines, permissions or clinical state. */
body:has(.home-premium){
 --week-glow:rgba(164,178,151,.32);--week-petal:rgba(223,179,146,.37);
 --week-leaf:#7c9478;--week-action:#cb997c;--week-paper:#f7f0e5;
 --week-image:url('/f40/assets/atelier-week-2.svg');
}
body[data-atelier-week="1"]:has(.home-premium){
 --week-glow:rgba(190,190,153,.32);--week-petal:rgba(236,206,178,.28);
 --week-leaf:#879579;--week-action:#cd9b83;--week-paper:#faf4ea;
 --week-image:url('/f40/assets/atelier-week-1.svg');
}
body[data-atelier-week="2"]:has(.home-premium){
 --week-glow:rgba(163,186,147,.31);--week-petal:rgba(228,177,155,.4);
 --week-leaf:#758f76;--week-action:#cc9677;--week-paper:#f8f0e4;
 --week-image:url('/f40/assets/atelier-week-2.svg');
}
body[data-atelier-week="3"]:has(.home-premium){
 --week-glow:rgba(135,165,139,.40);--week-petal:rgba(213,161,146,.32);
 --week-leaf:#668b77;--week-action:#be846d;--week-paper:#f7eee3;
 --week-image:url('/f40/assets/atelier-week-3.svg');
}
body[data-atelier-week="4"]:has(.home-premium){
 --week-glow:rgba(116,152,137,.37);--week-petal:rgba(211,166,143,.28);
 --week-leaf:#5d806f;--week-action:#b98768;--week-paper:#f7f1e8;
 --week-image:url('/f40/assets/atelier-week-4.svg');
}
body:has(.home-premium) .mobile-app{
 background:
 linear-gradient(150deg,rgba(251,248,239,.69),rgba(246,239,225,.31)),
 var(--week-image) center top / 100% auto no-repeat,
 radial-gradient(ellipse at 93% 12%,var(--week-glow),transparent 63%),
 linear-gradient(155deg,var(--week-paper),#f8eadb 72%,#f1e6d8)!important;
 transition:background-color .3s ease;
}
body:has(.home-premium) #screen-home .progress-fill{background:linear-gradient(90deg,#a5b092,var(--week-leaf))}
body:has(.home-premium) #screen-home .bloom-art{
 background:radial-gradient(ellipse at 50% 50%,var(--week-petal),transparent 70%),
 var(--week-image) 100% 43% / 300% auto no-repeat;
}
body:has(.home-premium) #screen-home .action-icon-camera{background:linear-gradient(145deg,#dfad8b,var(--week-action))}
body:has(.home-premium) #screen-home .action-icon-leaf{background:linear-gradient(145deg,#a1b092,var(--week-leaf))}
body:has(.home-premium) #screen-home .journey-card{
 background:linear-gradient(122deg,rgba(255,252,246,.87),rgba(251,241,225,.63) 58%,var(--week-glow));
}
body:has(.home-premium) .bottom-nav .nav-item.is-active{color:var(--week-action)}
/* When photos are due, home CTA enters the dedicated photo presentation screen.
   The same #stage-card, data-photo buttons, consent and send requests are reused. */
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home>.greeting,
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home>.journey-card,
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home>.home-action-list,
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home>.follow-section,
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home>.gentle-note{display:none!important}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .activity-panel{
 margin:0;padding:17px 0 28px;border-top:0;min-height:calc(100dvh - 183px);
 scroll-margin-top:40px;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .activity-panel .section-heading{margin:4px 0 7px}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .activity-panel .section-heading .upper{display:none}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .activity-panel .section-heading h2{
 font-size:26px;margin:0;line-height:1.3;font-weight:400;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .close-activity{
 background:rgba(255,254,248,.8);border-color:#e5dac7;border-radius:50%;width:43px;height:43px;
 padding:0;display:flex;align-items:center;justify-content:center;font-size:0;
 box-shadow:inset 0 1px #fff,0 4px 12px #584d3c16;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .close-activity span{font-size:24px;font-family:Georgia,serif;font-weight:400}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .stage-card{
 background:linear-gradient(125deg,rgba(255,254,251,.67),rgba(250,239,225,.65));
 border:1px solid rgba(255,255,255,.8);box-shadow:inset 0 0 0 1px #e8decb,0 9px 24px #7c63440a;
 padding:17px 15px 20px;border-radius:19px;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .stage-card h3{
 font-family:"Palatino Linotype",Georgia,serif!important;font-size:25px!important;margin:11px 0 8px!important;
 color:#344b3c;letter-spacing:-.04em;font-weight:400;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .stage-card>p{
 font-size:11px;line-height:1.65;color:#74786a;margin-bottom:12px;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .stage-kicker{color:#887863;font-size:9px;letter-spacing:.13em}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .status-dot{background:var(--week-leaf)}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .due-chip{
 background:#f8ebdd;border:1px solid #ecdaca;border-radius:20px;color:#866951;font-size:10px;margin-bottom:8px;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .status-banner{
 background:#ebeee2;border:1px solid #cad7c4;color:#586f58;border-radius:10px;margin:12px 0;font-size:10px;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-grid{
 margin:17px 0 16px;gap:9px;align-items:stretch;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot{
 padding:4px 4px 9px;min-height:177px;overflow:hidden;justify-content:flex-start;gap:7px;
 border:1px solid rgba(231,218,201,.95)!important;border-radius:13px!important;
 background:rgba(255,253,249,.78)!important;
 box-shadow:inset 0 1px #fff,0 3px 11px #604d3b11;
 transition:transform .17s ease,box-shadow .17s ease;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot:hover{transform:translateY(-2px);box-shadow:0 9px 18px #604d3b1b}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot[aria-pressed="true"]{
 border-color:#8b9f86!important;box-shadow:inset 0 0 0 1px #91a58e,0 5px 12px #657d5b19
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-shape{
 width:100%;height:auto;min-height:132px;aspect-ratio:3/3.72;display:block;flex:none;border:0!important;border-radius:9px!important;
 background-color:#e9ddcd!important;background-size:cover!important;background-position:center top!important;
 box-shadow:inset 0 0 0 1px #ffffff65;position:relative;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot[data-photo="frontal"] .photo-shape{background-image:url('/f40/assets/ref-frontal.svg')!important}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot[data-photo="direita"] .photo-shape{background-image:url('/f40/assets/ref-direita.svg')!important}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot[data-photo="esquerda"] .photo-shape{background-image:url('/f40/assets/ref-esquerda.svg')!important}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-shape::before{display:none!important}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-shape::after{
 content:"";display:none;position:absolute;right:6px;bottom:6px;width:24px;height:24px;z-index:2;
 border:1px solid #ffffffa6;border-radius:50%;box-shadow:0 1px 5px #273c2e22;
 background:#64896d;color:#fff;font:700 15px/24px Arial,sans-serif;text-align:center;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot[aria-pressed="true"] .photo-shape::after{
 content:"✓";display:block!important;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-caption{
 color:#596957;font-size:9.5px;line-height:1.3;font-weight:700;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-helper{
 font-size:10px;color:#797e71;line-height:1.65;margin:0 0 13px;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .stage-card .primary-button{
 width:100%;min-height:52px;border-radius:13px!important;
 background:linear-gradient(120deg,#db9b7a,#be8060)!important;
 box-shadow:inset 0 1px #fff7,0 6px 18px #a16a4a30!important;
}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .stage-card .primary-button:disabled{background:#e7e2d9!important;box-shadow:none!important}
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .inline-note{
 font-size:10px;color:#818575;line-height:1.6;
}
body:has(.home-premium) .photo-rail{display:none}
body[data-atelier-open="true"][data-atelier-state="photos"] .photo-rail{
 display:flex;flex-direction:column;gap:9px;margin:13px 1px 20px;
}
body[data-atelier-open="true"][data-atelier-state="photos"] .photo-rail-line{
 display:grid;grid-template-columns:repeat(3,1fr);gap:6px;
}
body[data-atelier-open="true"][data-atelier-state="photos"] .photo-rail-line>span{
 display:block;height:6px;border-radius:9px;background:#e2d5c1;
}
body[data-atelier-open="true"][data-atelier-state="photos"] .photo-rail-line>span.is-done{background:var(--week-leaf)}
body[data-atelier-open="true"][data-atelier-state="photos"] .photo-rail-description{
 font:600 10px/1.4 "Segoe UI",sans-serif;color:#786d5c;text-align:right;
}
@media(max-width:380px){
 body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-grid{gap:6px}
 body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot{min-height:164px;padding:3px 3px 7px}
 body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-shape{min-height:120px}
 body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-caption{font-size:8.5px}
}
@media(prefers-reduced-motion:reduce){
 body:has(.home-premium) .mobile-app,body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot{transition:none!important}
 body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .photo-spot:hover{transform:none!important}
}
/* Photo screen position must remain below the local demo toolbar. */
body[data-atelier-open="true"][data-atelier-state="photos"] #screen-home .activity-panel{scroll-margin-top:86px!important}
