/* Mon univers — approved shell + final structural centering */
html body #moi>.hero[data-moi-premium-shell]{
  box-sizing:border-box!important;
  height:470px!important;
  min-height:470px!important;
  max-height:470px!important;
  margin:0 0 8px!important;
  padding:22px 24px 18px!important;
  align-self:start!important;
  align-content:center!important;
  overflow:hidden!important;
  border:1px solid var(--a7-line)!important;
  border-radius:28px!important;
  background:linear-gradient(145deg,var(--a7-glass-strong),var(--a7-glass))!important;
  box-shadow:var(--a7-shadow-soft)!important;
  -webkit-backdrop-filter:blur(20px) saturate(1.12)!important;
  backdrop-filter:blur(20px) saturate(1.12)!important;
}
html body #moi>.hero[data-moi-premium-shell]>div:first-child,
html body #moi>.hero[data-moi-premium-shell]>.u4-hero-board{
  align-self:center!important;
}

@media(max-width:1300px){
  html body #moi>.hero[data-moi-premium-shell]{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:20px!important;
    align-content:start!important;
    border-radius:24px!important;
  }
}
@media(max-width:760px){
  html body #moi>.hero[data-moi-premium-shell]{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:16px!important;
    border-radius:22px!important;
    margin-bottom:8px!important;
  }
}

/* Stage 2: preserve the approved Stage 1 home composition. */
html.lce-stage2 #home .s2-hero-meta,
html.lce-stage2 #home .s2-hero-number,
html.lce-stage2 #home .s2-polaroid-ring,
html.lce-stage2 #home .s2-manifesto{
  display:none!important;
}
html.lce-stage2 #home.s1-home .hero{
  grid-template-columns:minmax(0,1.02fr) minmax(390px,.98fr)!important;
  align-items:center!important;
  gap:34px!important;
  min-height:610px!important;
  margin:4px 0 24px!important;
  padding:44px!important;
  overflow:hidden!important;
}
html.lce-stage2 #home.s1-home .s1-hero-copy{
  max-width:730px!important;
  padding:26px 22px 28px 4px!important;
  position:relative!important;
  top:64px!important;
  transform:none!important;
}
html.lce-stage2 #home.s1-home .hero h1{
  font-size:clamp(52px,5.8vw,88px)!important;
  line-height:.91!important;
  letter-spacing:-.045em!important;
  margin:12px 0 18px!important;
}
html.lce-stage2 #home.s1-home .hero p{
  font-size:18px!important;
  line-height:1.65!important;
  max-width:650px!important;
}
html.lce-stage2 #home.s1-home .hero .actions{margin-top:26px!important;}
html.lce-stage2 #home.s1-home .hero .primary,
html.lce-stage2 #home.s1-home .hero .soft{padding:13px 19px!important;}
html.lce-stage2 #home .s1-hero-media{transform:none!important;}
html.lce-stage2 #home .s1-polaroids{
  min-height:470px!important;
  position:relative!important;
  top:28px!important;
  transform:none!important;
  max-width:94%!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
html.lce-stage2 #home .s1-polaroid{padding:9px 9px 38px!important;border-radius:5px!important;}
html.lce-stage2 #home.s1-home .s1-polaroid.main{right:8%!important;top:4%!important;}
html.lce-stage2 #home.s1-home .s1-polaroid.a{left:4%!important;bottom:3%!important;}
html.lce-stage2 #home.s1-home .s1-polaroid.b{left:11%!important;top:5%!important;}
html.lce-stage2 #home .s1-stamp{
  right:5%!important;
  bottom:7%!important;
  padding:13px 16px!important;
  border-radius:17px!important;
  transform:none!important;
}
html.lce-stage2 #home.s1-home .stats{gap:14px!important;margin:0 0 20px!important;}
html.lce-stage2 #home.s1-home .stat{padding:20px!important;border-radius:22px!important;}
html.lce-stage2 #home.s1-home .stat b{font-size:40px!important;}
html.lce-stage2 #home .s1-storyboard{gap:16px!important;margin-bottom:20px!important;}
html.lce-stage2 #home .s1-tile{min-height:310px!important;border-radius:26px!important;}
html.lce-stage2 #home .s1-tile .copy{left:22px!important;right:22px!important;bottom:20px!important;}
html.lce-stage2 #home .s1-tile span{font-size:10px!important;}
html.lce-stage2 #home .s1-tile h3{font-size:29px!important;line-height:1!important;margin:7px 0 6px!important;}

@media(max-width:1120px){
  html.lce-stage2 #home.s1-home .hero{grid-template-columns:1fr!important;min-height:0!important;padding:38px!important;}
  html.lce-stage2 #home .s1-polaroids{min-height:430px!important;max-width:670px!important;width:100%!important;margin:auto!important;top:0!important;}
  html.lce-stage2 #home .s1-storyboard{grid-template-columns:1fr 1fr!important;}
  html.lce-stage2 #home .s1-tile.mem{grid-column:1/-1!important;min-height:340px!important;}
  html.lce-stage2 #home.s1-home .s1-hero-copy{top:0!important;}
}
@media(max-width:760px){
  html.lce-stage2 #home.s1-home .hero{min-height:0!important;padding:28px 19px 22px!important;border-radius:26px!important;}
  html.lce-stage2 #home .s1-hero-copy{padding:18px 0!important;}
  html.lce-stage2 #home.s1-home .hero h1{font-size:49px!important;}
  html.lce-stage2 #home .s1-polaroids{min-height:330px!important;}
  html.lce-stage2 #home .s1-stamp{display:none!important;}
  html.lce-stage2 #home .s1-storyboard{grid-template-columns:1fr!important;}
  html.lce-stage2 #home .s1-tile.mem{grid-column:auto!important;}
  html.lce-stage2 #home .s1-tile{min-height:270px!important;}
}

/* FINAL — Mon univers desktop: true vertical centering, no manual Y offset. */
@media(min-width:1301px){
  html body #moi>.hero[data-moi-premium-shell]{
    height:auto!important;
    min-height:280px!important;
    max-height:none!important;
    padding:20px 24px 0!important;
    grid-template-rows:auto!important;
    align-items:stretch!important;
    align-content:stretch!important;
  }
  html body #moi>.hero[data-moi-premium-shell]>div:first-child{
    position:static!important;
    top:auto!important;
    transform:none!important;
    align-self:stretch!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    min-height:0!important;
    box-sizing:border-box!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }
  html body #moi>.hero[data-moi-premium-shell]>.u4-hero-board{
    position:relative!important;
    top:79px!important;
    transform:none!important;
    align-self:center!important;
  }
}

/* GLOBAL — all creation/edit sheets use the current site typography and palette. */
html body .lce-modalback,
html body .caps-seal-confirmback{
  background:rgba(0,0,0,.42)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.08)!important;
  backdrop-filter:blur(18px) saturate(1.08)!important;
}

html body .lce-modal,
html body .caps-seal-confirm,
html body #drawer{
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  background:var(--v9-surface,#fff)!important;
  color:var(--v9-ink,#050505)!important;
  border-color:var(--v9-line,rgba(0,0,0,.075))!important;
  box-shadow:0 30px 90px rgba(0,0,0,.16)!important;
}

html body .lce-modal h1,
html body .lce-modal h2,
html body .lce-modal h3,
html body .caps-seal-confirm h1,
html body .caps-seal-confirm h2,
html body .caps-seal-confirm h3,
html body #drawer h1,
html body #drawer h2,
html body #drawer h3{
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  color:var(--v9-ink,#050505)!important;
  font-style:normal!important;
  font-weight:700!important;
  letter-spacing:-.045em!important;
}

html body .lce-modalhead,
html body .drawerhead{
  border-color:var(--v9-line,rgba(0,0,0,.075))!important;
}
html body .drawerhead{
  background:var(--v9-glass-strong,rgba(255,255,255,.82))!important;
  color:var(--v9-ink,#050505)!important;
}

html body .lce-form label,
html body .lce-realform label,
html body .caps-media-head b,
html body .caps-media-head small,
html body .caps-media-existing,
html body .caps-seal-confirm p,
html body #drawer .mut{
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  color:var(--v9-muted,#6e6e73)!important;
}

html body .lce-form input,
html body .lce-form textarea,
html body .lce-form select,
html body .lce-realform input,
html body .lce-realform textarea,
html body .lce-realform select,
html body .lce-toolbar input,
html body .lce-toolbar select{
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  background:var(--v9-surface,#fff)!important;
  color:var(--v9-ink,#050505)!important;
  border-color:var(--v9-line,rgba(0,0,0,.10))!important;
  box-shadow:none!important;
}
html body .lce-form input::placeholder,
html body .lce-form textarea::placeholder,
html body .lce-realform input::placeholder,
html body .lce-realform textarea::placeholder,
html body .lce-toolbar input::placeholder{
  color:var(--v9-faint,#86868b)!important;
  opacity:1!important;
}
html body .lce-form input:focus,
html body .lce-form textarea:focus,
html body .lce-form select:focus,
html body .lce-realform input:focus,
html body .lce-realform textarea:focus,
html body .lce-realform select:focus,
html body .lce-toolbar input:focus,
html body .lce-toolbar select:focus{
  outline:none!important;
  border-color:var(--v9-ink,#050505)!important;
  box-shadow:0 0 0 3px rgba(0,0,0,.08)!important;
}

html body .lce-modal .primary,
html body .caps-seal-confirm .primary,
html body .caps-seal-danger{
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  background:#111113!important;
  border-color:#111113!important;
  color:#fff!important;
  box-shadow:none!important;
}
html body .lce-modal .soft,
html body .lce-close,
html body .caps-seal-confirm .soft,
html body #drawer .soft,
html body .drawerhead button{
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  background:var(--v9-surface,#fff)!important;
  border-color:var(--v9-line,rgba(0,0,0,.10))!important;
  color:var(--v9-ink,#050505)!important;
  box-shadow:none!important;
}
html body .lce-modal button:hover,
html body .caps-seal-confirm button:hover,
html body .drawerhead button:hover{
  opacity:.76!important;
}

html body .caps-media-box,
html body .caps-media-row,
html body .caps-media-existing,
html body .caps-seal-note,
html body .caps-seal-warning,
html body .lce-entry,
html body .lce-empty,
html body .lce-chat,
html body .lce-chatmsg{
  background:var(--v9-bg,#f5f5f7)!important;
  color:var(--v9-ink,#050505)!important;
  border-color:var(--v9-line,rgba(0,0,0,.075))!important;
}
html body .caps-seal-note,
html body .caps-seal-warning{
  color:var(--v9-muted,#6e6e73)!important;
}
html body .caps-media-row button,
html body .lce-danger{
  color:var(--v9-ink,#050505)!important;
}

html body #drawerbg{
  background:rgba(0,0,0,.42)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  backdrop-filter:blur(12px)!important;
}
html body #drawer .section,
html body #drawer .placehero{
  border-color:var(--v9-line,rgba(0,0,0,.075))!important;
}

html body .lce-toast{
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  background:#111113!important;
  color:#fff!important;
}

html[data-lce-theme="dark"] body .lce-modal .primary,
html[data-lce-theme="dark"] body .caps-seal-confirm .primary,
html[data-lce-theme="dark"] body .caps-seal-danger{
  background:#fff!important;
  border-color:#fff!important;
  color:#000!important;
}
html[data-lce-theme="dark"] body .lce-form input:focus,
html[data-lce-theme="dark"] body .lce-form textarea:focus,
html[data-lce-theme="dark"] body .lce-form select:focus,
html[data-lce-theme="dark"] body .lce-realform input:focus,
html[data-lce-theme="dark"] body .lce-realform textarea:focus,
html[data-lce-theme="dark"] body .lce-realform select:focus{
  border-color:#fff!important;
  box-shadow:0 0 0 3px rgba(255,255,255,.12)!important;
}
html[data-lce-theme="dark"] body input[type="date"]{
  color-scheme:dark!important;
}

/* GLOBAL V2 — hard force the same rounded black/white visual language on every sheet. */
html body .lce-modal,
html body .caps-seal-confirm{
  background:#fff!important;
  color:#050505!important;
  border:1px solid #d1d1d6!important;
  border-radius:34px!important;
  overflow:auto!important;
}
html body #drawer{
  background:#fff!important;
  color:#050505!important;
  border-left:1px solid #d1d1d6!important;
  border-radius:34px 0 0 34px!important;
}

html body .lce-modal,
html body .lce-modal *,
html body .caps-seal-confirm,
html body .caps-seal-confirm *,
html body #drawer,
html body #drawer *{
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}

html body .lce-modal h1,
html body .lce-modal h2,
html body .lce-modal h3,
html body .caps-seal-confirm h1,
html body .caps-seal-confirm h2,
html body .caps-seal-confirm h3,
html body #drawer h1,
html body #drawer h2,
html body #drawer h3{
  color:#050505!important;
  font-weight:700!important;
  font-style:normal!important;
}

html body .lce-form label,
html body .lce-realform label,
html body .caps-media-head b,
html body .caps-media-head small,
html body .caps-media-existing,
html body .caps-seal-confirm p,
html body #drawer .mut{
  color:#3a3a3c!important;
}

html body .lce-form input,
html body .lce-form textarea,
html body .lce-form select,
html body .lce-realform input,
html body .lce-realform textarea,
html body .lce-realform select,
html body .lce-toolbar input,
html body .lce-toolbar select,
html body .field,
html body input.field,
html body textarea.field,
html body select.field{
  background:#fff!important;
  color:#050505!important;
  border:1px solid #d1d1d6!important;
  border-radius:18px!important;
  box-shadow:none!important;
}
html body .lce-form textarea,
html body .lce-realform textarea,
html body textarea.field{
  border-radius:20px!important;
}

html body .lce-form input:focus,
html body .lce-form textarea:focus,
html body .lce-form select:focus,
html body .lce-realform input:focus,
html body .lce-realform textarea:focus,
html body .lce-realform select:focus,
html body .field:focus{
  border-color:#050505!important;
  box-shadow:0 0 0 3px rgba(0,0,0,.08)!important;
}

html body .lce-modal button,
html body .caps-seal-confirm button,
html body #drawer button{
  border-radius:999px!important;
}
html body .lce-modal .primary,
html body .caps-seal-confirm .primary,
html body .caps-seal-danger{
  background:#050505!important;
  border:1px solid #050505!important;
  color:#fff!important;
}
html body .lce-modal .soft,
html body .lce-close,
html body .caps-seal-confirm .soft,
html body #drawer .soft,
html body .drawerhead button{
  background:#fff!important;
  border:1px solid #d1d1d6!important;
  color:#050505!important;
}

html body .caps-media-box,
html body .caps-media-row,
html body .caps-media-existing,
html body .caps-seal-note,
html body .caps-seal-warning,
html body .lce-entry,
html body .lce-empty,
html body .lce-chat,
html body .lce-chatmsg{
  background:#f5f5f7!important;
  color:#050505!important;
  border:1px solid #d1d1d6!important;
}
html body .caps-media-box{border-radius:24px!important;}
html body .caps-media-row,
html body .caps-media-existing,
html body .caps-seal-note,
html body .caps-seal-warning,
html body .lce-entry,
html body .lce-empty,
html body .lce-chat,
html body .lce-chatmsg{border-radius:18px!important;}

html body .lce-modalhead{
  border-bottom:1px solid #e5e5ea!important;
  padding-bottom:14px!important;
}
html body .drawerhead{
  background:rgba(255,255,255,.94)!important;
  color:#050505!important;
  border-bottom:1px solid #e5e5ea!important;
}
html body #drawer .section,
html body #drawer .placehero{
  border-color:#e5e5ea!important;
}

html body .lce-toast{
  background:#050505!important;
  color:#fff!important;
  border-radius:18px!important;
}

html body .lce-modalback,
html body .caps-seal-confirmback,
html body #drawerbg{
  background:rgba(0,0,0,.52)!important;
}

html[data-lce-theme="dark"] body .lce-modal,
html[data-lce-theme="dark"] body .caps-seal-confirm,
html[data-lce-theme="dark"] body #drawer{
  background:#0b0b0c!important;
  color:#fff!important;
  border-color:#2c2c2e!important;
}
html[data-lce-theme="dark"] body .lce-form input,
html[data-lce-theme="dark"] body .lce-form textarea,
html[data-lce-theme="dark"] body .lce-form select,
html[data-lce-theme="dark"] body .lce-realform input,
html[data-lce-theme="dark"] body .lce-realform textarea,
html[data-lce-theme="dark"] body .lce-realform select,
html[data-lce-theme="dark"] body .field{
  background:#1c1c1e!important;
  color:#fff!important;
  border-color:#3a3a3c!important;
}
html[data-lce-theme="dark"] body .lce-modal .primary,
html[data-lce-theme="dark"] body .caps-seal-confirm .primary,
html[data-lce-theme="dark"] body .caps-seal-danger{
  background:#fff!important;
  color:#000!important;
  border-color:#fff!important;
}
