/* Blade-first skeleton: paints before the Vite client; no white flash. */
:root{color-scheme:light;box-sizing:border-box}
*,*::before,*::after{box-sizing:inherit}
html,body{width:100%;min-width:320px;min-height:100%;margin:0;padding:0}
body{overflow-x:clip}
.vc-boot-mobile-screen{display:none}
.vc-boot-shell{display:grid;grid-template-columns:44.8% minmax(0,55.2%);width:min(1620px,calc(100% - 36px));margin:18px auto;min-height:max(730px,calc(100dvh - 36px));border-radius:24px;background:#fffaf5;overflow:hidden;box-shadow:0 16px 46px #120e0e0e;font-family:Inter,system-ui,sans-serif}
.vc-boot-art{background-color:#242120;background-size:cover;background-position:center;position:relative;min-height:730px}
.vc-boot-art:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0006,transparent 40%)}
.vc-boot-logo{position:absolute;z-index:2;width:190px;height:auto;max-width:46%;left:38px;top:36px;filter:drop-shadow(0 1px 2px #ffffff3a)}
.vc-boot-form{display:flex;flex-direction:column;justify-content:center;gap:21px;padding:clamp(30px,6vw,100px);width:100%;min-width:0}
.vc-boot-fields{display:grid;gap:20px;margin:36px 0 5px}
.vc-boot-block{background:linear-gradient(105deg,#ebe6df 5%,#fffdfb 24%,#ebe6df 40%);background-size:200% 100%;animation:vc-boot-wave 1.6s ease-in-out infinite;border-radius:12px;width:100%;height:17px}
.vc-boot-title{height:52px;max-width:80%}.vc-boot-description{height:20px;max-width:62%}
.vc-boot-input{height:62px;border-radius:12px}.vc-boot-button{height:64px;border-radius:12px;background:linear-gradient(105deg,#e2d2bd,#fff2df,#e2d2bd);background-size:200% 100%}
.vc-boot-small{height:15px;width:35%;align-self:center;margin-top:14px}
.vc-boot-warning{max-width:570px;margin:16px auto;padding:18px;border:1px solid #ebcfad;background:#fff7e8;border-radius:14px;color:#58432a;font:14px/1.5 system-ui}
.vc-boot-warning a{color:#a55800;font-weight:700}
.vc-boot-onboarding{display:block;max-width:1180px;min-height:calc(100dvh - 60px)}
.vc-boot-onboarding .vc-boot-form{height:calc(100dvh - 60px);max-width:900px;padding:70px}
.vc-boot-logo-in{display:block;width:190px;height:auto;margin-bottom:auto}
@keyframes vc-boot-wave{from{background-position:110% 0}to{background-position:-110% 0}}
@media(max-width:900px){.vc-boot-shell{width:100%;margin:0;min-height:100dvh;display:block;border-radius:0}.vc-boot-art{display:none}.vc-boot-form{min-height:100dvh;padding:72px 24px 25px}.vc-boot-title{height:37px}.vc-boot-fields{margin:25px 0}.vc-boot-input{height:50px}.vc-boot-onboarding .vc-boot-form{height:auto;padding:60px 22px;min-height:100dvh}}
@media(prefers-reduced-motion:reduce){.vc-boot-block{animation:none}}

/* Crossfade without dropping the initial HTML skeleton. React mounts into a
   sibling, never the skeleton's own element, so no white intermediary frame. */
#viscove-boot{position:relative;z-index:3;min-height:100dvh;background:#f5f1ed;opacity:1}
#viscove-auth,#viscove-onboarding{
  position:absolute;top:0;left:0;width:100%;
  visibility:hidden;opacity:0;pointer-events:none;
}
html.vc-ui-ready #viscove-auth,
html.vc-ui-ready #viscove-onboarding{
  position:relative;visibility:visible;opacity:1;pointer-events:auto;
}
/* One-frame handoff after the photo is decoded. Avoid half-transparent
   screens in slow browsers and reduce perceived flicker. */
html.vc-ui-ready #viscove-boot{display:none}

@media(max-width:900px){
  html,body,#viscove-boot{background:#edf0e8}
  html:has(.vc-launch),body:has(.vc-launch){background:#153f34}
  #viscove-boot .vc-boot-shell{display:none}
  .vc-boot-mobile-screen{display:block;width:100%;max-width:520px;min-height:100dvh;margin:0 auto;padding:calc(20px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));color:#153f34;font-family:'Viscove Manrope',Manrope,system-ui,sans-serif}
  .vc-boot-mobile-header{display:flex;align-items:center;justify-content:space-between;min-height:42px;margin-bottom:24px}
  .vc-boot-mobile-brand{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:750;letter-spacing:-.9px}
  .vc-boot-mobile-brand img{display:block;width:27px;height:25px}
  .vc-boot-mobile-badge{width:32px;height:32px;border-radius:50%;background:#dbe3d2}
  .vc-boot-mobile-screen .vc-boot-block{max-width:100%;background:linear-gradient(105deg,#dfe6d7 8%,#f3f6ed 24%,#dfe6d7 40%);background-size:200% 100%;border-radius:7px}
  .vc-boot-mobile-heading{display:grid;gap:6px;margin:0 0 20px}
  .vc-boot-mobile-heading .vc-boot-block:first-child{height:32px;width:58%}
  .vc-boot-mobile-heading .vc-boot-block:nth-child(2){height:35px;width:47%}
  .vc-boot-mobile-heading .vc-boot-block:last-child{height:12px;width:74%;margin-top:5px}
  .vc-boot-mobile-screen .vc-boot-mobile-photo{height:auto;aspect-ratio:1.3;width:100%;border-radius:23px;margin-bottom:18px}
  .vc-boot-mobile-register .vc-boot-mobile-photo{aspect-ratio:1.23}
  .vc-boot-mobile-status .vc-boot-mobile-photo{aspect-ratio:1.21}
  .vc-boot-mobile-verify-email .vc-boot-mobile-photo{aspect-ratio:1.27}
  .vc-boot-mobile-password-code .vc-boot-mobile-photo,.vc-boot-mobile-new-password .vc-boot-mobile-photo,.vc-boot-mobile-forgot-password .vc-boot-mobile-photo{aspect-ratio:1.77}
  .vc-boot-mobile-fields{display:grid;gap:18px;margin:0 0 20px}
  .vc-boot-mobile-field{display:grid;gap:7px;min-width:0}
  .vc-boot-mobile-field .vc-boot-block:first-child{height:10px;width:25%;border-radius:4px}
  .vc-boot-mobile-field .vc-boot-block:last-child{height:47px;width:100%;border-radius:12px}
  .vc-boot-mobile-screen .vc-boot-mobile-action{height:52px;width:100%;margin-top:20px;border-radius:40px;background:#d2dec7}
  .vc-boot-mobile-screen .vc-boot-mobile-footer{height:11px;width:56%;margin:23px auto 0}
  .vc-boot-mobile-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .vc-boot-mobile-choice{display:grid;align-content:start;gap:9px;min-width:0;padding:16px 13px;border:1px solid #d2dacb;border-radius:21px}
  .vc-boot-mobile-choice .vc-boot-block:first-child{width:27px;height:27px;margin-bottom:3px}
  .vc-boot-mobile-choice .vc-boot-block:nth-child(2){width:85%;height:14px}
  .vc-boot-mobile-choice .vc-boot-block:last-child{width:95%;height:28px}
  .vc-boot-mobile-note{height:11px!important;width:62%!important;margin:20px auto 23px}
  .vc-boot-mobile-details{padding:5px 15px;background:#f7f9f2;border-radius:20px}
  .vc-boot-mobile-detail{display:flex;align-items:center;gap:12px;min-height:68px;padding:15px 0}
  .vc-boot-mobile-detail+.vc-boot-mobile-detail{border-top:1px solid #d9e0d2}
  .vc-boot-mobile-detail>span{flex-shrink:0;width:30px;height:30px;border-radius:50%;background:#d6dfc9}
  .vc-boot-mobile-detail>div{display:grid;gap:8px;flex:1;min-width:0}
  .vc-boot-mobile-detail .vc-boot-block:first-child{height:12px;width:62%}
  .vc-boot-mobile-detail .vc-boot-block:last-child{height:10px;width:93%}
  .vc-boot-mobile-code{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:25px 0}
  .vc-boot-mobile-code .vc-boot-block{height:48px;border-radius:10px}
  .vc-boot-warning{margin:16px 22px;padding:14px;border-color:#b6c6a9;background:#f5f8ef;color:#153f34}
  .vc-boot-warning a{color:#153f34}
  #viscove-boot:has(.vc-boot-screen-welcome){background:#153f34}
  #viscove-boot .vc-boot-screen-welcome{display:none}
}
@media(max-width:360px){.vc-boot-mobile-screen{padding-left:18px;padding-right:18px}}

/* Desktop first paint shares the final page grid and photo to avoid a style flash. */
.vc-boot-desktop-brand{display:none}
@media(min-width:901px){
  html,body,#viscove-boot{background:#edf0e8}
  .vc-boot-desktop-brand{display:flex;align-items:center;gap:11px;width:min(1500px,100%);margin:auto;min-height:88px;padding:26px 32px;color:#153f34;font:800 30px/1 'Viscove Manrope',Manrope,system-ui,sans-serif;letter-spacing:-1.3px}
  .vc-boot-desktop-brand img{display:block;object-fit:contain}
  .vc-boot-shell:not(.vc-boot-onboarding){grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:clamp(40px,5vw,80px);width:min(1500px,100%);padding:12px 32px 28px;margin:0 auto;min-height:calc(100dvh - 88px);background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
  .vc-boot-shell:not(.vc-boot-onboarding) .vc-boot-art{position:relative;min-width:0;min-height:560px;overflow:hidden;border-radius:26px;background:#dce3d5}
  .vc-boot-art:after{display:none}
  .vc-boot-desktop-photo{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
  .vc-boot-shell:not(.vc-boot-onboarding) .vc-boot-form{justify-self:center;align-self:center;width:100%;max-width:492px;min-height:560px;background:transparent;padding:20px 12px 20px 0;gap:18px}
  .vc-boot-block{background:linear-gradient(105deg,#dfe6d7 8%,#f3f6ed 24%,#dfe6d7 40%);background-size:200% 100%}
  .vc-boot-input{height:49px;border-radius:12px}
  .vc-boot-button{height:54px;border-radius:999px;background:linear-gradient(105deg,#cad9bf,#e1eacb,#cad9bf);background-size:200% 100%}
  .vc-boot-onboarding .vc-boot-art{display:none}
  @media(max-width:1120px){
    .vc-boot-shell:not(.vc-boot-onboarding){gap:32px;padding-left:24px;padding-right:24px;grid-template-columns:minmax(0,.9fr) minmax(0,1fr)}
    .vc-boot-shell:not(.vc-boot-onboarding) .vc-boot-form{padding-right:0}
  }
  @media(max-height:820px){
    .vc-boot-desktop-brand{min-height:74px;padding-top:20px;padding-bottom:20px}
    .vc-boot-shell:not(.vc-boot-onboarding){min-height:calc(100dvh - 74px)}
  }
}

/* Onboarding first paint follows the open form instead of the earlier status card. */
@media(max-width:900px),(display-mode:standalone){
  #viscove-boot:has(.vc-boot-mobile-onboarding){background:#edf0e8}
  #viscove-boot:has(.vc-boot-mobile-onboarding) .vc-boot-shell{display:none}
  .vc-boot-mobile-onboarding{display:flex;flex-direction:column;max-width:520px;width:100%;margin:0 auto;min-height:100dvh;padding:calc(20px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));color:#153f34}
  .vc-boot-mobile-onboarding .vc-boot-mobile-header{display:flex;align-items:center;justify-content:space-between;min-height:42px;margin-bottom:22px}
  .vc-boot-mobile-onboarding .vc-boot-mobile-brand{display:flex;gap:8px;align-items:center;font:750 22px/1.4 'Viscove Manrope',Manrope,sans-serif;letter-spacing:-.9px}
  .vc-boot-onboarding-fields{display:flex;flex:1;flex-direction:column}
  .vc-boot-onboarding-label{width:24%;height:12px;margin:5px 0 10px}
  .vc-boot-onboarding-progress{display:flex;gap:6px;margin-bottom:28px}
  .vc-boot-onboarding-progress i{height:5px;flex:1;background:#c6cebf;border-radius:6px}
  .vc-boot-onboarding-progress i:first-child{background:#a9b99c}
  .vc-boot-mobile-onboarding .vc-boot-mobile-heading .vc-boot-block:first-child{height:34px;width:72%}
  .vc-boot-mobile-onboarding .vc-boot-mobile-heading .vc-boot-block:last-child{height:13px;width:90%;margin:7px 0 20px}
  .vc-boot-mobile-onboarding .vc-boot-mobile-action{margin-top:auto;min-height:52px}
}
