/* SYNCWELCOME001: presentation of a confirmed guest welcome only.
   State and authorization remain in the existing application.
   Official CP422 logo and illustration bytes are not altered. */
#sync-welcome[hidden],#sync-welcome-back[hidden],#sync-welcome-checking[hidden]{display:none!important;}
.sync-welcome-checking{max-inline-size:34rem;margin:clamp(3rem,16vh,8rem) auto;padding:24px;color:#102b46;font-size:1rem;line-height:1.6;text-align:center;}
body.sync-welcome-active{position:relative;display:flex;flex-direction:column;min-block-size:100vh;min-block-size:100svh;background:#102b46;color:#fff;}
body.sync-welcome-active .sync-topbar{position:relative;flex:0 0 auto;inline-size:100%;max-inline-size:1280px;block-size:auto;min-block-size:76px;padding-block:calc(12px + env(safe-area-inset-top,0px)) 12px;padding-inline:max(20px,env(safe-area-inset-left,0px)) max(20px,env(safe-area-inset-right,0px));gap:12px;}
body.sync-welcome-active .sync-wordmark{color:#fff;flex:0 0 auto;}
body.sync-welcome-active .sync-wordmark img{inline-size:42px;block-size:42px;}
body.sync-welcome-active .sync-wordmark>span{font-size:1.875rem;}
body.sync-welcome-active .sync-top-actions{min-inline-size:0;gap:8px;}
body.sync-welcome-active #sync-install{color:#d5e7f6;font-size:.75rem;line-height:1.3;max-inline-size:5.25rem;min-block-size:44px;}
body.sync-welcome-active #sync-company-search{color:#fff;background:#173b59;border:1px solid #6f94ae;border-radius:50%;inline-size:44px;min-inline-size:44px;block-size:44px;min-block-size:44px;}
body.sync-welcome-active #sync-company-search:hover{background:#234c6d;}
body.sync-welcome-active #sync-main{display:flex;flex-direction:column;flex:1 0 auto;inline-size:100%;min-inline-size:0;max-inline-size:none;margin:0 auto;padding:0;}
body.sync-welcome-active #sync-entry{color:#102b46;margin-block:8px;margin-inline:max(20px,env(safe-area-inset-left,0px)) max(20px,env(safe-area-inset-right,0px));}
body.sync-welcome-active #sync-entry-error{margin-inline:20px;}
.sync-welcome{position:relative;isolation:isolate;display:flex;flex:1 0 auto;flex-direction:column;align-items:center;inline-size:100%;min-inline-size:0;min-block-size:calc(100svh - 13.5rem);margin:0 auto;padding:8px max(20px,env(safe-area-inset-left,0px)) 24px max(20px,env(safe-area-inset-right,0px));}
.sync-welcome-art{position:absolute;inset:0;z-index:-1;display:flex;align-items:center;justify-content:center;inline-size:100%;block-size:100%;margin:0;pointer-events:none;}
.sync-welcome-art img{display:block;inline-size:100%;block-size:100%;max-inline-size:100%;max-block-size:100%;object-fit:contain;object-position:center;}
.sync-welcome-content{position:relative;display:flex;flex:1 0 auto;flex-direction:column;align-items:center;justify-content:space-between;gap:clamp(10rem,28svh,20rem);inline-size:100%;min-inline-size:0;text-align:center;color:#fff;}
.sync-welcome-heading{inline-size:min(100%,36rem);min-inline-size:0;margin-inline:auto;}
.sync-welcome-eyebrow{margin:0 0 10px;color:#9bd6e7;font-size:.6875rem;font-weight:650;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;}
#sync-welcome-title{margin:0;font-size:clamp(1.875rem,5.5vw,2.75rem);font-weight:720;line-height:1.08;letter-spacing:-.035em;color:#fff;overflow-wrap:normal;}
#sync-welcome-description{margin:14px 0 0;font-size:.9375rem;line-height:1.6;color:#d0e0ed;}
.sync-welcome-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;inline-size:min(100%,28rem);min-inline-size:0;}
.sync-welcome-button{display:inline-flex;align-items:center;justify-content:center;min-inline-size:0;min-block-size:52px;padding:14px 12px;border:1px solid transparent;border-radius:14px;font:inherit;font-size:1rem;font-weight:700;line-height:1.3;text-align:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer;touch-action:manipulation;}
.sync-welcome-button-primary{background:#fff;color:#102b46;border-color:#fff;box-shadow:0 8px 24px #06182b33;}
.sync-welcome-button-primary:hover:not(:disabled){background:#e7f5ff;border-color:#e7f5ff;}
.sync-welcome-button-secondary{background:#163752;color:#fff;border-color:#91b5cf;}
.sync-welcome-button-secondary:hover:not(:disabled){background:#234b68;}
.sync-welcome-button:disabled{opacity:.6;cursor:wait;}
.sync-welcome-button:focus-visible,body.sync-welcome-active .sync-topbar :is(a,button):focus-visible,body.sync-welcome-active #sync-footer a:focus-visible{outline:3px solid #23c7d9;outline-offset:4px;}
#sync-welcome-title:focus-visible{outline:3px solid #23c7d9;outline-offset:6px;border-radius:4px;}
body.sync-welcome-active #sync-footer{flex:0 0 auto;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 18px;inline-size:100%;max-inline-size:48rem;margin:0 auto;padding:12px max(20px,env(safe-area-inset-left,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-right,0px));color:#c9dce9;font-size:.6875rem;line-height:1.5;}
body.sync-welcome-active #sync-footer>a{display:inline-flex;align-items:center;min-block-size:44px;padding-inline:4px;color:#e6f4ff;font-size:.75rem;text-decoration:underline;text-underline-offset:3px;}
body.sync-welcome-active #sync-footer>.sync-home-credit{color:#c9dce9;font-size:.6875rem;line-height:1.5;padding:0;}
body.sync-welcome-active #sync-home-credit img{background:#fff;padding:3px;border-radius:4px;}
.sync-welcome-back{display:inline-flex;grid-column:1/-1;align-items:center;justify-self:start;gap:9px;max-inline-size:100%;min-block-size:44px;padding:8px 2px;border:0;border-radius:6px;background:transparent;color:#0a5eb8;font:inherit;font-size:.875rem;font-weight:650;line-height:1.5;text-align:start;white-space:normal;touch-action:manipulation;}
.sync-welcome-back>span:first-child{font-size:1.25rem;}
body[data-sync-welcome-state="auth"] .sync-gate{row-gap:18px;}
.sync-welcome-back:focus-visible{outline:3px solid #1687ff;outline-offset:3px;}
@media(min-width:900px){
 body.sync-welcome-active .sync-topbar{padding-inline:44px;min-block-size:88px;}
 .sync-welcome{padding-inline:40px;}
 .sync-welcome-eyebrow{font-size:.75rem;}
 #sync-welcome-title{font-size:2.75rem;}
 #sync-welcome-description{font-size:1rem;}
}
@media(max-width:360px){
 body.sync-welcome-active .sync-topbar{padding-inline:max(16px,env(safe-area-inset-left,0px)) max(16px,env(safe-area-inset-right,0px));gap:8px;}
 body.sync-welcome-active .sync-wordmark img{inline-size:36px;block-size:36px;}
 body.sync-welcome-active .sync-wordmark>span{font-size:1.625rem;}
 .sync-welcome{padding-inline:16px;}
 .sync-welcome-content{gap:10rem;}
 .sync-welcome-eyebrow{font-size:.625rem;letter-spacing:.09em;}
 #sync-welcome-description{font-size:.875rem;margin-block-start:12px;}
 .sync-welcome-actions{gap:10px;}
 .sync-welcome-button{min-block-size:50px;padding-inline:8px;font-size:.9375rem;border-radius:12px;}
}
@media(max-width:280px){
 body.sync-welcome-active .sync-topbar{flex-wrap:wrap;}
 .sync-welcome-actions{grid-template-columns:minmax(0,1fr);}
 #sync-welcome-title{font-size:1.625rem;overflow-wrap:anywhere;}
}
@media(max-height:500px) and (min-width:600px){
 body.sync-welcome-active .sync-topbar{min-block-size:64px;padding-block:calc(8px + env(safe-area-inset-top,0px)) 8px;}
 .sync-welcome{min-block-size:20rem;padding-block-end:18px;}
 .sync-welcome-content{gap:10rem;}
 .sync-welcome-eyebrow{margin-block-end:8px;}
 #sync-welcome-title{font-size:1.625rem;}
 #sync-welcome-description{margin-block-start:10px;font-size:.875rem;}
 body.sync-welcome-active #sync-footer{padding-block-start:0;}
}
@media(prefers-reduced-motion:reduce){
 .sync-welcome,.sync-welcome *,.sync-welcome-back{animation:none!important;transition:none!important;scroll-behavior:auto;}
}
@media(forced-colors:active){
 body.sync-welcome-active{background:Canvas;color:CanvasText;}
 body.sync-welcome-active .sync-wordmark,.sync-welcome-content,.sync-welcome-eyebrow,#sync-welcome-title,#sync-welcome-description,body.sync-welcome-active #sync-footer,body.sync-welcome-active #sync-footer>.sync-home-credit{color:CanvasText;}
 .sync-welcome-button,body.sync-welcome-active #sync-company-search{background:ButtonFace;color:ButtonText;border:2px solid ButtonText;box-shadow:none;}
 body.sync-welcome-active #sync-install,body.sync-welcome-active #sync-footer>a{color:LinkText;}
 .sync-welcome-button:focus-visible,body.sync-welcome-active .sync-topbar :is(a,button):focus-visible,body.sync-welcome-active #sync-footer a:focus-visible,#sync-welcome-title:focus-visible{outline-color:Highlight;}
}
@media print{.sync-welcome-art,.sync-welcome-actions,.sync-welcome-back{display:none!important;}}

/* Guest screen only: the picture takes the available space, not another viewport. */
body.sync-welcome-active:has(#sync-welcome:not([hidden])) {
 min-block-size:100svh;
}
body.sync-welcome-active:has(#sync-welcome:not([hidden])) .sync-topbar{
 min-block-size:calc(56px + env(safe-area-inset-top,0px));
 padding-block:calc(6px + env(safe-area-inset-top,0px)) 6px;
}
body.sync-welcome-active:has(#sync-welcome:not([hidden])) #sync-main{
 flex:1 1 auto;min-block-size:0;
}
.sync-welcome{
 flex:1 1 auto;min-block-size:0;padding-block:4px 8px;
}
.sync-welcome-content{
 display:grid;grid-template-rows:auto minmax(104px,1fr) auto;
 justify-items:center;align-items:center;align-content:stretch;
 gap:clamp(6px,1.3svh,14px);flex:1 1 auto;
}
.sync-welcome-content .sync-welcome-art{
 position:relative;inset:auto;z-index:auto;min-block-size:104px;max-block-size:min(42svh,420px);
 block-size:100%;inline-size:100%;
}
.sync-welcome-content .sync-welcome-art img{
 block-size:100%;inline-size:100%;object-fit:contain;
 aspect-ratio:auto;max-block-size:min(42svh,420px);min-block-size:0;
}
.sync-welcome-actions{align-self:end}
.sync-welcome-button{min-block-size:44px;padding-block:9px}
body.sync-welcome-active #sync-footer{
 padding-block:4px max(8px,env(safe-area-inset-bottom,0px));gap:2px 12px;
}
body.sync-welcome-active #sync-footer>a{min-block-size:30px}
body.sync-welcome-active #sync-home-credit small{color:inherit;font-size:inherit}
body.sync-welcome-active #sync-footer>.sync-home-credit{font-weight:500}
@media(max-width:480px){
 .sync-welcome-eyebrow{margin-block-end:5px}
 #sync-welcome-title{font-size:clamp(1.55rem,7vw,1.9rem)}
 #sync-welcome-description{margin-block-start:7px;font-size:.88rem;line-height:1.35}
}
@media(max-height:680px){
 .sync-welcome-content .sync-welcome-art,.sync-welcome-content .sync-welcome-art img{max-block-size:32svh}
}

body:not(.sync-welcome-active) #sync-footer [data-kivoryn-credit="cp431"]{display:none!important}
