/* Delay visibility only. Completion always hides synchronously. */
.kcea-loading-host:not([data-kcea-inline-host])[data-kcea-loading-active]>:not(.kcea-loading-slot):not(a){display:none!important}
.kcea-loading-slot[hidden],[data-kcea-loader][hidden],[data-kcea-inline-loader][hidden]{display:none!important}
.kcea-loading-slot{width:100%;min-width:0;grid-column:1/-1;margin:12px 0;opacity:0}
.kcea-loading-slot[data-kcea-show]{animation:kcea-loading-reveal 0s linear .12s forwards}
@keyframes kcea-loading-reveal{to{opacity:1}}
.kcea-loading-slot [data-kcea-loader]{display:flex;justify-content:center;width:100%;max-width:100%}
.kcea-loading-slot .kcea-surface{width:min(100%,430px);flex:0 1 430px;margin:0 auto}
html[data-kcea-route-leaving] main,html[data-kcea-route-leaving] #app{visibility:hidden!important}
[data-kcea-loading-active],[data-kcea-pending]{cursor:progress}
.kcea-inline-entry{margin:18px 0;padding:0;min-height:44px}
.kcea-inline-entry>a{display:block;margin-top:12px}
.mock-entry-page #exam-loading{width:calc(100% - 32px);max-width:1120px;margin:18px auto}
.mock-entry-page #exam-loading>a{color:#245d52}
.kcea-inline-slot{display:inline-flex;align-items:center;width:auto;max-width:100%;vertical-align:middle;margin:6px 0}
a>.kcea-inline-slot,button>.kcea-inline-slot{margin:0 0 0 .65em;font-size:13px}
[data-kcea-inline-loader]{display:inline-flex;align-items:center;gap:8px;font-size:14px;line-height:1.6;color:inherit}
.kcea-inline-spinner{box-sizing:border-box;display:inline-block;flex:0 0 14px;width:14px;height:14px;border:2px solid #c8d8d5;border-top-color:#2c7969;border-radius:50%;animation:kcea-inline-spin .8s linear infinite}
@keyframes kcea-inline-spin{to{transform:rotate(360deg)}}
/* Fixed track and logo box keep status-message changes out of logo sizing. */
#loading-view.kcea-loading-host{padding:24px 16px;grid-template-columns:minmax(0,430px)}
#loading-view .kcea-loading-slot{width:100%;margin:0}
#loading-view .kcea-surface{background:transparent;border:0;border-radius:0;color:#c4d0d5;min-height:300px}
#loading-view .kcea-header{display:none}
#loading-view .kcea-content{padding:0;min-height:300px}
#loading-view .kcea-logo-scene{width:294px;max-width:100%;height:180px;flex:0 0 180px}
#loading-view .kcea-original-logo{width:210px;max-width:210px;height:142.453608px;object-fit:contain;flex:0 0 210px}
#loading-view .kcea-status{width:100%;min-height:60px;margin:24px 0 0;color:#c4d0d5}
#twin-loading.kcea-loading-host{flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){.kcea-inline-spinner{animation:none}}
@media(max-width:350px){.kcea-loading-slot .kcea-content{padding-left:8px;padding-right:8px}.kcea-loading-slot .kcea-step span:last-child{font-size:11px}}

a.primary .kcea-inline-spinner,button.primary .kcea-inline-spinner{border-color:#ffffff66;border-top-color:#fff}

/* Immediate exam entry surface shared by departure and first destination paint. */

html[data-kcea-exam-entry="book"]{overflow:hidden!important}
html[data-kcea-exam-entry="book"] body>header,html[data-kcea-exam-entry="book"] body>main,html[data-kcea-exam-entry="book"] body>.wrap{visibility:hidden!important}
#exam-entry-stage{display:none}
html[data-kcea-exam-entry="book"] #exam-entry-stage{display:grid;visibility:visible!important;position:fixed;inset:0;z-index:10000;background:#f4f6f7;place-content:center;place-items:center;grid-template-columns:minmax(0,430px);padding:16px}
html[data-kcea-exam-entry="book"] #exam-entry-stage>.kcea-loading-slot{opacity:1;animation:none;margin:0}


/* New book/cards only. Login logo styles and header state are unchanged. */
html[data-kcea-scene]{overflow:hidden!important;background:#fcfbf6}
html[data-kcea-scene] body>:not(header):not(.kcea-scene-portal):not(script):not(style):not(link){visibility:hidden!important}
html[data-kcea-scene] body>header{position:relative;z-index:20001}
.kcea-scene-portal{display:none!important}
html[data-kcea-scene] .kcea-scene-portal:not([hidden]){display:grid!important;visibility:visible!important;position:fixed!important;inset:0;z-index:20000;background:#fcfbf6;place-items:center;padding:16px;box-sizing:border-box;width:100%;height:100dvh;margin:0;opacity:1;animation:none;overflow:auto;cursor:progress}
.kcea-scene-portal .kcea-surface.kcea-refined{border:0;border-radius:0;background:#fcfbf6;max-width:430px;width:min(430px,calc(100vw - 32px))}
.kcea-scene-portal .kcea-header{display:none!important}
.kcea-scene-portal .kcea-status,.kcea-sr-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
html[data-kcea-scene] #exam-entry-stage{display:none!important}
@media(prefers-reduced-motion:reduce){.kcea-scene-portal *{animation:none!important;transition:none!important}}

html[data-kcea-exam-entry][data-kcea-scene] body>header{visibility:visible!important}

/* Approved single visible status for book/cards. Login status is unchanged. */
.kcea-scene-portal .kcea-status{position:static!important;width:auto!important;height:auto!important;padding:0!important;margin:18px 0 0!important;overflow:visible!important;clip-path:none!important;white-space:normal!important;border:0!important;font-size:16px;line-height:1.65;text-align:center;color:#263e39}
