/* 1.3.66: preserve the signature effects, simplify the composition. */
body #header{overflow:visible!important}
body #header .brand{position:relative!important;overflow:visible!important;flex-shrink:0;width:220px!important}
body #header .brand img{position:absolute!important;left:0;top:50%;width:245px!important;height:125px!important;max-height:none!important;max-width:none!important;object-fit:contain!important;transform-origin:center;animation:district-full-logo 10s ease-in-out infinite!important;filter:drop-shadow(0 0 5px #02f0fb55) drop-shadow(0 0 8px #e700f533)!important}
@keyframes district-full-logo{0%,100%{transform:translate(-4px,-50%) rotate(-4deg)}50%{transform:translate(5px,-50%) rotate(-1deg)}}
body #main .atelier-hero-166{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:32px;min-height:0!important;height:auto!important;padding:70px max(32px,calc((100vw - 1360px)/2)) 38px!important;overflow:visible!important;background:transparent!important}
body #main .atelier-hero-166::after{display:none!important}
body #main .atelier-hero-166 .atelier-hero-copy{position:relative!important;inset:auto!important;z-index:1;max-width:none!important;width:100%!important;padding:0!important;transform:none!important}
body #main .atelier-hero-166 h1{font-size:clamp(25px,4.1vw,58px)!important;line-height:1.13!important;letter-spacing:-.045em!important;width:100%!important;max-width:none!important;margin:16px 0 24px!important;padding:0!important}
body #main .atelier-hero-166 h1 .hero-line{display:block!important;white-space:nowrap!important;font-size:inherit!important;line-height:inherit!important}
body #main .atelier-hero-166 h1 .hero-line:first-child{background:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body #main .atelier-hero-166 .atelier-hero-copy>p:not(.atelier-label){max-width:520px!important;font-size:17px!important;line-height:1.65!important}
body #main .atelier-hero-166 .atelier-link{display:inline-block;margin:14px 0 0 18px}
.district-hero-visual{margin:0;min-width:0;position:relative;text-align:center}
.district-fashion-blob{position:relative;isolation:isolate;max-width:580px;margin:auto}
.district-fashion-blob::before{content:'';position:absolute;inset:16% 0 1%;z-index:-1;background:var(--gradient-do);border-radius:43% 57% 65% 35% / 55% 38% 62% 45%;opacity:.76;animation:district-blob 12s ease-in-out infinite;box-shadow:0 0 36px #119dfb30}
.district-fashion-blob img{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 12px 12px #020b2460);transition:transform .7s ease}
.district-fashion-blob:hover img{transform:translateY(-7px) scale(1.025)}
.district-hero-visual figcaption{font-size:10px;letter-spacing:.08em;margin-top:8px;color:var(--ink-soft);text-shadow:0 1px 4px #000}
@keyframes district-blob{50%{border-radius:57% 43% 38% 62% / 40% 58% 42% 60%;transform:rotate(3deg) scale(.97,1.025)}}
body #main .atelier-universe{display:flex!important;flex-direction:column!important;height:auto!important;aspect-ratio:auto!important;min-height:0!important;overflow:hidden!important;background:var(--glass)!important}
body #main .atelier-universe::after{display:none!important}
body #main .atelier-universe>img{position:relative!important;inset:auto!important;display:block;width:100%!important;height:auto!important;aspect-ratio:1!important;object-fit:cover!important;transform:none;filter:drop-shadow(0 5px 7px #020b2480);transition:transform .5s}
body #main .atelier-universe:hover>img{transform:scale(1.025)!important}
body #main .atelier-universe>div{position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:3px 12px;padding:14px 18px!important;min-height:86px;box-sizing:border-box;background:var(--glass)!important}
body #main .atelier-universe small{grid-column:1/-1;font-size:10px!important}
body #main .atelier-universe h3{font-size:27px!important;line-height:1.1!important;margin:0!important}
body #main .atelier-universe>div>span{font-size:12px!important}
body #footer{display:flex!important;align-items:center!important;gap:22px!important;padding:12px max(24px,calc((100% - 1440px)/2))!important}
body #footer .footer-top{flex:1;grid-template-columns:140px 1fr 1.2fr 1fr 1.1fr!important;gap:20px!important;align-items:center!important}
body #footer .footer-about{position:relative!important;align-items:center!important}
body #footer .footer-logo{width:140px!important;height:72px!important;max-width:100%!important;animation:do-logo-float 10s ease-in-out infinite;filter:drop-shadow(0 0 4px #02f0fb40)}
body #footer .footer-about p{display:none!important}
body #footer .footer-links{gap:0!important}
body #footer .footer-links strong{display:none!important}
body #footer .footer-links :is(a,span){font-size:11px!important;line-height:1.35!important;min-height:24px!important;min-block-size:24px!important;display:flex;align-items:center}
body #footer .footer-bottom{flex:0 0 155px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:3px!important;border:0!important;margin:0!important;padding:0!important;font-size:10px!important}

@media(max-width:1299px){body #header .brand{width:195px!important}body #header .brand img{width:215px!important;height:110px!important}body #footer{gap:12px!important}body #footer .footer-top{grid-template-columns:120px repeat(4,minmax(0,1fr))!important;gap:12px!important}body #footer .footer-logo{width:120px!important;height:64px!important}body #footer .footer-bottom{flex-basis:130px!important}}
@media(max-width:999px){body #main .atelier-hero-166{grid-template-columns:1fr!important;padding:65px 32px 28px!important;gap:12px}body #main .atelier-hero-166 h1{font-size:clamp(25px,6.6vw,58px)!important}body #main .atelier-hero-166 .atelier-hero-copy{text-align:center}body #main .atelier-hero-166 .atelier-hero-copy>p:not(.atelier-label){margin-left:auto;margin-right:auto}.district-hero-visual{width:min(100%,480px);margin:0 auto}body #footer{display:grid!important;grid-template-columns:1fr!important}body #footer .footer-top{grid-template-columns:120px repeat(4,minmax(0,1fr))!important}body #footer .footer-bottom{flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:16px!important}}
@media(max-width:600px){body #header .brand{width:125px!important}body #header .brand img{width:158px!important;height:82px!important;left:-4px!important}body #main .atelier-hero-166{padding:54px 20px 24px!important}body #main .atelier-hero-166 h1{font-size:clamp(24px,7vw,40px)!important;letter-spacing:-.045em!important}body #main .atelier-hero-166 .atelier-label{font-size:9px!important;letter-spacing:.08em!important}body #main .atelier-hero-166 .atelier-hero-copy>p:not(.atelier-label){font-size:14px!important}body #main .atelier-hero-166 .atelier-link{display:block;margin:18px 0}.district-hero-visual{max-width:380px}body #footer{padding:16px 20px!important}body #footer .footer-top{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 20px!important}body #footer .footer-about{grid-column:1/-1!important}body #footer .footer-logo{width:150px!important;height:76px!important}body #footer .footer-links :is(a,span){min-height:32px!important;min-block-size:32px!important;font-size:12px!important}body #footer .footer-bottom{flex-wrap:wrap!important;gap:8px 14px!important}}
@media(prefers-reduced-motion:reduce){body #header .brand img{animation:none!important;transform:translateY(-50%) rotate(-3deg)!important}.district-fashion-blob::before,body #footer .footer-logo{animation:none!important}.district-fashion-blob img{transition:none!important}.district-fashion-blob:hover img{transform:none!important}}
body.x-motion-paused #header .brand img{animation:none!important;transform:translateY(-50%) rotate(-3deg)!important}body.x-motion-paused .district-fashion-blob::before,body.x-motion-paused #footer .footer-logo{animation:none!important}body.x-motion-paused .district-fashion-blob:hover img{transform:none!important}
/* Local glass behind copy keeps the exact photograph visible and text readable. */
body #main .atelier-hero-166 .atelier-hero-copy{isolation:isolate}
body #main .atelier-hero-166 .atelier-hero-copy::before{content:'';position:absolute;inset:-20px -12px;z-index:-1;background:linear-gradient(110deg,#020b245e,#06112945);backdrop-filter:blur(4px);border-radius:28px;pointer-events:none}
body #main .atelier-hero-166 h1 .hero-line:last-child{filter:drop-shadow(0 1px 1px #b7f9ff66) drop-shadow(0 2px 4px #000)}
@media(max-width:999px){body #main .atelier-hero-166 h1{text-align:center!important}}
@media(min-width:1300px){body.district-footer-visible :is(#do-ai,#do-support){bottom:145px!important}}

/* 1.3.67 — bounded layout changes; signature palette and pointer effects retained. */
body #announcement{background:transparent!important;padding:4px 16px!important;text-align:left!important}
.district-welcome-blob{position:relative;isolation:isolate;display:block;width:fit-content;max-width:100%;margin:auto;padding:5px 24px;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:13px;line-height:1.4;text-align:left;text-shadow:0 1px 2px #000}
.district-welcome-blob::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:43% 57% 65% 35% / 55% 38% 62% 45%;background:linear-gradient(#020b24bd,#020b24bd),var(--gradient-do);animation:district-blob 12s ease-in-out infinite;pointer-events:none}
body #main .atelier-hero-166 .atelier-hero-copy{padding:22px!important;box-sizing:border-box;text-align:left!important}
body #main .atelier-hero-166 .atelier-hero-copy::before{inset:0!important;border-radius:43% 57% 65% 35% / 55% 38% 62% 45%!important;background:linear-gradient(#020b24c9,#020b24c9),var(--gradient-do)!important;animation:district-blob 12s ease-in-out infinite;box-shadow:0 0 36px #119dfb30;backdrop-filter:none}
body #main .atelier-hero-166 h1 .hero-line{white-space:normal!important;color:#fff!important;-webkit-text-fill-color:#fff!important;background:none!important;filter:none!important}
body #main :is(h1,h2,h3,h4,h5,h6){text-align:center!important;max-inline-size:100%!important;min-inline-size:0;line-height:1.2!important;text-wrap:balance;overflow-wrap:normal;word-break:normal;hyphens:none;white-space:normal!important}
body #main :is(p,ul,ol,li,dl,dt,dd,label,summary,td,th,small,.kicker,.atelier-label,.prose,.product-meta,.contact-intro,.do-story-invitation){text-align:left!important}
body #main :is(.section-head,.atelier-section>header,.atelier-story-poster header,.atelier-hero-copy,.atelier-outro){text-align:left!important}
body #main .atelier-story h2 span{display:inline!important}
body #main .atelier-story h2{font-size:clamp(18px,3vw,40px)!important}
body #main .atelier-story-poster header h1{font-size:clamp(20px,3.8vw,44px)!important;text-align:center!important}
body #main :is(#results,.atelier-grid,.atelier-story-narrative){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:clamp(16px,2.5vw,28px)!important;align-items:stretch!important;grid-auto-rows:1fr;max-inline-size:100%;min-inline-size:0}
body #main :is(#results,.atelier-grid)>:is(.product,.atelier-card){width:100%!important;height:auto!important;min-height:0!important;min-width:0!important;aspect-ratio:auto!important;box-sizing:border-box}
body #main :is(#results,.atelier-products)>.product{display:flex;flex-direction:column}
body #main :is(#results,.atelier-products) .product-image{height:auto!important;aspect-ratio:1!important;flex:none}
body #main :is(#results,.atelier-products) .product-image a,body #main :is(#results,.atelier-products) .product-image picture{display:block;width:100%;height:100%}
body #main :is(#results,.atelier-products) .product-image img{width:100%;height:100%;object-fit:contain}
body #main :is(#results,.atelier-products) .product-meta{height:auto!important;min-height:100px!important;flex:1;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px!important;align-items:center!important}
body #main .product-meta>div{width:100%;min-width:0}
body #main .product-meta h3{font-size:clamp(16px,1.7vw,22px)!important;overflow-wrap:normal!important}
body #main .atelier-story-narrative{max-width:none;margin:28px 0}
body #main .atelier-story-narrative>p{margin:0!important;padding:24px;box-sizing:border-box;border:1px solid var(--line);border-radius:24px;background:var(--glass);font-size:clamp(16px,1.6vw,20px);line-height:1.7}
body #main .atelier-story-narrative>p:last-child:nth-child(odd){grid-column:1/-1}
body #main .empty.wide{grid-column:1/-1}
body #footer{padding-inline:16px!important;gap:16px!important}
body #footer .footer-top{grid-template-columns:clamp(170px,16vw,225px) repeat(4,minmax(0,1fr))!important;gap:16px!important}
body #footer .footer-about{align-items:flex-start!important;justify-content:center!important}
body #footer .footer-logo{width:clamp(170px,16vw,225px)!important;height:82px!important;object-fit:contain!important}
body #footer .footer-links a{position:relative;isolation:isolate;text-align:left!important}
body #header .actions{gap:8px!important;flex-shrink:0}
body #header .actions>.icon{min-width:44px!important;min-height:44px!important;padding:0!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex-shrink:0}
body #header .actions .do-premium-icon{width:40px!important;height:40px!important;flex-shrink:0}
.district-icon-box{position:relative;display:block;width:40px;height:40px;flex-shrink:0;transition:transform .35s,filter .35s}
body #header .district-icon-box .count{position:absolute!important;inset:auto!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:24px!important;height:16px!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;display:grid!important;place-items:center;background:none!important;box-shadow:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:11px!important;font-weight:800!important;line-height:1!important;letter-spacing:0!important;text-shadow:0 1px 2px #000!important;animation:none!important;pointer-events:none}
body #header a[href='/panier'] .district-icon-box .count{top:66%!important}
body #header .district-counted:is(:hover,:focus-visible)>.district-icon-box{animation:do-icon-bounce .55s both;filter:drop-shadow(0 0 6px #df00ff70)}
body #header .do-action-label{font-size:10px!important}
/* The flight bar reflects measured stage checkpoints, never a timer. */
.district-flight{--flight-progress:0;position:relative;isolation:isolate;padding:18px;margin-block:16px;border:1px solid var(--line);border-radius:20px;background:#07152fe6;overflow:visible}
.district-flight-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body #main .district-flight :is(strong,small,output){color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:none!important}
.district-flight-heading output{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums}
.district-flight>small{display:block;font-size:12px;line-height:1.5;margin-top:12px;text-align:left}
.district-runway{position:relative;height:52px;margin-top:20px;padding-inline:22px}
body #main .district-runway progress{appearance:none;-webkit-appearance:none;display:block;width:100%;height:12px!important;margin:20px 0 0!important;border:0;border-radius:99px;overflow:hidden;background:#263551}
.district-runway progress::-webkit-progress-bar{background:#263551;border-radius:99px}
.district-runway progress::-webkit-progress-value{background:var(--gradient-do);border-radius:99px}
.district-runway progress::-moz-progress-bar{background:var(--gradient-do);border-radius:99px}
.district-aircraft{position:absolute;left:22px;right:22px;top:0;height:40px;pointer-events:none;transform:translateX(calc(var(--flight-progress)*100%));transition:transform .5s ease}
.district-aircraft>svg,.district-aircraft>span{position:absolute;left:0;top:0;width:40px;height:40px;transform:translate(-50%,-14px);transform-origin:center}
.district-plane{fill:#ecffff;stroke:#119dfb;stroke-width:1;filter:drop-shadow(-5px 0 4px #02f0fb99)}
.district-runway::before{content:'';position:absolute;left:22px;right:22px;top:2px;height:3px;transform:scaleX(var(--flight-progress));transform-origin:left;background:linear-gradient(90deg,transparent,#119dfb,#02f0fb);opacity:.65;transition:transform .5s ease;pointer-events:none}
.district-aircraft>.district-rocket,.district-aircraft>.district-smoke{display:none;font-size:32px}
.district-flight[data-state=done] .district-plane,.district-flight[data-state=failed] .district-plane{display:none}
.district-flight[data-state=done] .district-rocket{display:block;animation:district-launch 1s .15s ease-in both}
.district-flight[data-state=failed] .district-smoke{display:block;animation:district-bump .6s ease-out both}
.district-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;border-radius:20px}
.district-confetti i{display:none;position:absolute;left:calc(var(--x)*1%);top:45%;width:6px;height:10px;background:var(--cyan)}
.district-confetti i:nth-child(3n){background:var(--magenta)}
.district-confetti i:nth-child(3n+1){background:var(--bleu-clair)}
.district-flight[data-state=done] .district-confetti i{display:block;animation:district-confetti 1.4s calc(.8s + var(--i)*.012s) ease-out both}
body #main .update-live-status{font-size:16px;line-height:1.6;text-align:left;color:#fff!important;background:#07152fe6;border-radius:14px;padding:14px;overflow-wrap:anywhere}
body #main .update-live-status:empty{display:none}
body #main .update-live-status.failed{border:1px solid #fb41ff}
body #main .update-live-status.done{border:1px solid var(--cyan)}
body #main .update-workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:24px;align-items:start}
body #main :is(.update-drop,.update-side,.update-overview,.update-studio){min-width:0;max-width:100%;box-sizing:border-box}
body #main .update-drop{padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--glass)}
body #main .update-side{display:grid;gap:16px}
body #main .update-side-card{padding:18px;border:1px solid var(--line);border-radius:20px}
body #main .update-file{display:grid;gap:8px}
body #main .update-file input{max-width:100%;width:100%;box-sizing:border-box}
body #main .update-install,body #main #update-retry{min-height:44px;max-width:100%;white-space:normal}
@keyframes district-launch{to{transform:translate(-50%,-100px) rotate(18deg);opacity:0}}
@keyframes district-bump{40%{transform:translate(-50%,10px) rotate(18deg)}to{transform:translate(-50%,0);opacity:.85}}
@keyframes district-confetti{0%{opacity:0;transform:translate(0,-20px)}15%{opacity:1}100%{opacity:0;transform:translate(var(--drift),120px) rotate(240deg)}}
@media(max-width:1100px){body #footer .footer-top{grid-template-columns:180px repeat(2,minmax(0,1fr))!important}body #footer .footer-about{grid-row:span 2}body #header .actions{gap:3px!important}body #header .actions .do-premium-icon,.district-icon-box{width:36px!important;height:36px!important}body #main .update-workspace{grid-template-columns:1fr}}
@media(max-width:600px){body #main :is(#results,.atelier-grid,.atelier-story-narrative){grid-template-columns:1fr!important;grid-auto-rows:1fr}body #main .atelier-story-narrative>p:last-child:nth-child(odd){grid-column:auto}body #footer .footer-top{grid-template-columns:repeat(2,minmax(0,1fr))!important}body #footer .footer-about{grid-column:1/-1!important;grid-row:auto}body #footer .footer-logo{width:200px!important;height:80px!important}body #main .update-drop{padding:16px}body #main .atelier-hero-166 .atelier-hero-copy{padding:18px!important}body #header .do-action-label{display:none!important}}
@media(prefers-reduced-motion:reduce){.district-welcome-blob::before,body #main .atelier-hero-copy::before,body #header .district-icon-box{animation:none!important}.district-aircraft>svg,.district-aircraft>span{transition:none!important}.district-flight[data-state=done] .district-rocket{animation:none;transform:translate(-50%,-14px)}.district-flight[data-state=failed] .district-smoke{animation:none}.district-flight[data-state=done] .district-confetti i{display:none}}
@media(prefers-reduced-motion:reduce){.district-aircraft,.district-runway::before{transition:none!important}}
body #main :is(h1,h2,h3,h4,h5,h6) :is(span,em){font-size:inherit!important;line-height:inherit!important}
body #main .atelier-story>h3{font-size:clamp(18px,2.6vw,32px)!important}
body #main .atelier-universe>picture{display:block;flex:none;aspect-ratio:1;overflow:hidden}
body #main .atelier-universe>picture>img{display:block;width:100%;height:100%;object-fit:cover}
body #dialog :is(h1,h2,h3){text-align:center!important;line-height:1.2!important;white-space:normal;overflow-wrap:normal}
body #dialog :is(h1,h2,h3) :is(span,em){font-size:inherit!important;line-height:inherit!important}
body #dialog :is(p,label,ul,ol,li,small){text-align:left!important}
body #do-bottom-nav .district-icon-box{width:36px;height:36px}
body #do-bottom-nav .district-icon-box .do-premium-icon{width:36px!important;height:36px!important}
body #do-bottom-nav .district-icon-box .count{position:absolute!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;display:grid!important;place-items:center;width:24px;height:16px;padding:0!important;border:0!important;border-radius:0!important;min-width:0!important;background:none!important;box-shadow:none!important;font-size:11px!important;font-weight:800;color:#fff!important;line-height:1!important;animation:none!important}
body #do-bottom-nav a[href='/panier'] .district-icon-box .count{top:66%!important}
body #do-bottom-nav :is(a,button){min-width:44px;min-height:44px}
body #footer .footer-top{position:relative;isolation:isolate}
body #footer .district-footer-pill{position:absolute;left:0;top:0;z-index:0;pointer-events:none;background:var(--gradient-do);opacity:.44;border-radius:46% 54% 41% 59% / 62% 38% 62% 38%;box-shadow:0 0 16px #00bbff30,0 0 16px #df00ff20;transition:transform .35s,width .35s,height .35s}
body #footer .footer-links a{z-index:2}
body #footer .footer-links a.do-blob-link::before{display:none!important}
@media(prefers-reduced-motion:reduce){body #footer .district-footer-pill{transition:none!important}}
body #main .update-studio-head{margin-bottom:24px}
body #main .update-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:24px}
body #main .update-version{display:flex;align-items:center;gap:20px;padding:20px;background:var(--glass);border:1px solid var(--line);border-radius:24px;min-width:0}
body #main .update-version strong{display:block;font-size:clamp(24px,3vw,36px);font-variant-numeric:tabular-nums}
body #main .update-round-icon{display:grid;place-items:center;width:56px;height:56px;flex:none;border-radius:50%;background:var(--glass-hover);font-size:32px}
body #main .update-pill{display:inline-block;padding:5px 10px;border:1px solid var(--cyan);border-radius:99px;font-size:11px;margin-top:8px}
body #main .update-actions-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
body #main .update-result{padding:20px;border:1px solid var(--cyan);border-radius:24px;margin-block:24px;background:var(--glass)}
body #main .result-steps{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
body #main .update-file input::file-selector-button{background:var(--glass-hover);color:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;margin-right:12px;cursor:pointer}
@media(max-width:700px){body #main .update-overview{grid-template-columns:1fr}.district-flight-heading{gap:8px}.district-flight-heading strong{font-size:14px}}
