/* Scoped public modal; cabinet styles are not loaded or changed. */
#auth-page.auth-page{position:fixed;inset:0;margin:auto;padding:0;width:min(460px,calc(100% - 32px));height:fit-content;min-height:0;max-height:calc(100dvh - 40px);border:1px solid #dce5df;border-radius:18px;background:#fff;color:#193c2d;box-shadow:0 24px 90px #15332430;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}
#auth-page.auth-page:not([open]){display:none!important}
#auth-page.auth-page[open]{display:block}
#auth-page.auth-page.auth-register{width:min(560px,calc(100% - 32px))}
#auth-page::backdrop{background:#102c2359;backdrop-filter:blur(3px)}
body:has(#auth-page[open]){overflow:hidden}
#auth-page .auth-topline{position:sticky;top:0;z-index:2;background:#fff;padding:12px 22px 4px;margin:0;display:flex;justify-content:space-between;align-items:center;width:auto;max-width:none;min-height:52px}
#auth-page .auth-brand{font-size:18px;line-height:1.4}
#auth-page .auth-close{width:44px;height:44px;min-width:44px;display:grid;place-items:center;padding:0;border:0;border-radius:9px;background:transparent;color:#607168;font-size:27px;line-height:1}
#auth-page .auth-close:hover{background:#edf4ef}
#auth-page .auth-layout{display:block;width:100%;margin:0;max-width:none;border:0;border-radius:0;box-shadow:none;background:transparent;min-height:0}
#auth-page .auth-form-wrap{padding:16px 28px 26px;background:transparent;min-width:0}
#auth-page h2{font-size:25px;line-height:1.3;font-weight:650;margin:0 0 10px;letter-spacing:-.4px}
#auth-page .eyebrow{font-size:14px;margin:0 0 8px;display:block}
#auth-page .auth-form-wrap>.hint{margin:0 0 24px;color:#5d7166;font-size:14px;line-height:1.5}
#auth-page form{margin:0}
#auth-page label{display:block;font-size:14px;line-height:1.5;font-weight:500;margin:0 0 18px}
#auth-page label[hidden],#auth-page [hidden]{display:none!important}
#auth-page input:not([type=checkbox]){width:100%;height:46px;min-height:46px;margin-top:7px;border:1px solid #cbd8cf;border-radius:8px;padding:10px 12px;background:#fff;color:#1c382a;font-size:16px;box-sizing:border-box}
#auth-page .auth-password-field{margin:0 0 18px}
#auth-page .auth-password-field>label{margin:0 0 7px}
#auth-page #platform-auth-login>.auth-password-field>label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#auth-page .auth-password-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;line-height:1.5;margin:0 0 7px}
#auth-page .auth-password-heading .text-btn{font-size:14px;min-height:30px}
#auth-page .password-control{position:relative;display:block}
#auth-page .password-control input{margin:0;padding-right:86px}
#auth-page .password-toggle{position:absolute;right:8px;top:5px;transform:none;min-height:36px;padding:4px 5px;border:0;background:transparent;font-size:14px;color:#426851}
#auth-page .auth-submit{width:100%;font-size:15px;font-weight:600;min-height:46px;margin-top:2px;text-align:center;display:block}
#auth-page .auth-links{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:16px 0 0;font-size:14px}
#auth-page .auth-links .text-btn{font-size:14px}
#auth-page .auth-legal-footer{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;margin-top:24px;padding-top:16px;border-top:1px solid #e6ece7;font-size:14px}
#auth-page .auth-legal-footer a{color:#597063;text-decoration:none}
#auth-page .auth-legal-footer a:hover{text-decoration:underline}
#auth-page .auth-error{font-size:14px;line-height:1.5;padding:12px;border-radius:8px;background:#fff2ee;color:#913c2c;margin:14px 0}
#auth-page .device-accounts{margin:0 0 20px;padding:0;border:0;background:transparent}
#auth-page .device-account{display:flex;align-items:center;gap:6px;border-bottom:1px solid #e3ebe5;padding:5px 0;margin:0}
#auth-page .device-account-select{display:flex;flex:1;gap:12px;align-items:center;text-align:left;min-width:0;width:100%;padding:10px 5px;border:0;border-radius:8px;background:transparent;color:inherit}
#auth-page .device-account-select:hover{background:#f0f6f1}
#auth-page .device-account-select strong{font-size:15px;font-weight:600;display:block}
#auth-page .device-account-select small,#auth-page .auth-selected-account small{display:block;font-size:14px;color:#5d7166;overflow-wrap:anywhere}
#auth-page .device-account-select>span:last-child{margin-left:auto}
#auth-page .auth-account-avatar{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;background:#e9f2eb;color:#315e43;border-radius:50%;font-size:14px}
#auth-page .device-account-remove{font-size:22px;padding:8px;min-width:40px;min-height:44px}
#auth-page .auth-another{width:100%;margin:0}
#auth-page .auth-selected-account{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px;border:1px solid #dce5df;border-radius:9px;margin-bottom:20px;font-size:14px}
#auth-page .auth-selected-account>span{min-width:0;overflow-wrap:anywhere}
#auth-page .auth-selected-account .text-btn{font-size:14px}
#auth-page .registration-legal{margin:20px 0}
#auth-page #platform-auth-register>:nth-child(n+3){grid-column:1/-1}
#auth-page #platform-auth-register .auth-password-field{margin-bottom:0}
#auth-page #platform-auth-register .registration-legal{margin:4px 0 0;padding:12px}
#auth-page .registration-legal .check{display:flex;align-items:flex-start;font-size:14px;gap:10px;font-weight:400}
#auth-page .registration-legal input{margin:4px 0 0;flex:0 0 auto}
#auth-page .registration-legal input[type=checkbox]{width:18px;height:18px;min-height:18px;padding:0}
#auth-page .registration-legal .check{margin-bottom:10px;min-height:32px}
#auth-page .registration-legal p,#auth-page .password-hint{font-size:14px;line-height:1.5;margin:8px 0 16px}
#auth-page .auth-success h2{margin-top:8px}
#auth-page .auth-success .auth-success-icon{font-size:28px}
#auth-page .auth-success p,#auth-page .auth-next-steps{font-size:14px;line-height:1.65}
#auth-page .vica-turnstile{margin:20px 0 16px;min-height:0;max-width:100%;padding:13px 12px;background:#f5f8f5;border:1px solid #dce7df;border-radius:9px;box-sizing:border-box}
#auth-page .vica-verification-title{font-size:14px;font-weight:600;margin-bottom:10px;color:#284b36}
#auth-page .vica-turnstile-slot{font-size:0;line-height:0;min-height:65px;max-width:100%;display:flex;justify-content:center}
#auth-page .vica-verification-message{font-size:14px;line-height:1.5;color:#536c5c;margin:8px 0 0}
#auth-page .vica-turnstile[data-state=error],#auth-page .vica-turnstile[data-state=timeout]{background:#fff8ed;border-color:#e6d5b3}
#auth-page .vica-turnstile .text-btn{font-size:14px;margin-top:5px;min-height:36px}
@media(max-width:540px){
 #auth-page.auth-page,#auth-page.auth-page.auth-register{width:100%;max-width:100%;max-height:100dvh;height:100dvh;margin:0;border:0;border-radius:0;inset:0}
 #auth-page .auth-topline{padding:14px 16px 0}
 #auth-page .auth-form-wrap{padding:18px 22px 30px;max-width:460px;margin:0 auto}
 #auth-page h2{font-size:24px}
 #auth-page .auth-close{width:44px;height:44px}
}

/* Authentication uses one typeface and consistent control metrics. */
#auth-page{font-family:"IBM Plex Sans",Arial,sans-serif;font-size:14px;line-height:1.5}
#auth-page button,#auth-page input,#auth-page label,#auth-page a{font-family:inherit;letter-spacing:normal;text-transform:none}
#auth-page h2{font-weight:600}
#auth-page .auth-form-wrap h2{font-size:25px;line-height:1.3;font-weight:600;margin:0 0 10px;letter-spacing:normal}
#auth-page label{font-weight:600}
#auth-page #platform-auth-register{display:block}
#auth-page #platform-auth-register>label{margin-bottom:16px}
#auth-page #platform-auth-register .auth-password-field{margin-bottom:16px}
#auth-page .registration-legal .check{font-size:14px;line-height:1.5;font-weight:400;margin:0 0 14px}
#auth-page .registration-legal .check:last-child{margin-bottom:0}
#auth-page .registration-legal a{color:#155a42;text-decoration:underline;text-underline-offset:3px;font-weight:600}
#auth-page .registration-legal a:hover{color:#0c3929;text-decoration-thickness:2px}
#auth-page .registration-legal a:focus-visible{outline:2px solid #23694f;outline-offset:3px}
#auth-page .auth-links{align-items:center;font-size:14px;line-height:1.5;gap:6px}
#auth-page .auth-links .text-btn{font-size:14px;line-height:1.5;font-weight:600;padding:6px 4px;margin:0;display:inline-flex;align-items:center}
#auth-page .auth-links>span{line-height:1.5}

#auth-page button,#auth-page input{font-family:inherit}
#auth-page .btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border:1px solid #cbd8cf;border-radius:8px;padding:10px 14px;background:#fff;color:var(--site-ink);font-size:14px;line-height:1.5;font-weight:600}
#auth-page .btn.primary{background:var(--site-brand);border-color:var(--site-brand);color:white}
#auth-page .btn.primary:hover{background:var(--site-brand-hover)}
#auth-page button:disabled{opacity:.6;cursor:wait}
#auth-page .text-btn{border:0;background:transparent;color:var(--site-brand);font-size:14px;line-height:1.5;padding:5px 0}
#auth-page input[type=checkbox]{accent-color:var(--site-brand)}
#auth-page .hint{color:var(--site-muted);font-size:14px;line-height:1.6}
#auth-page .notice{padding:12px;border:1px solid var(--site-line);border-radius:8px;background:var(--site-soft);font-size:14px}
#auth-page .device-quick-label{color:var(--site-brand);font-weight:600}
#auth-page .device-account-select>span:last-child{margin-left:0;flex:1}
#auth-page .password-hint{font-size:14px;line-height:1.6}
#auth-page .auth-register-back{margin-top:20px}
#auth-page .oauth-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
#auth-page .auth-success{font-size:14px;line-height:1.65}
#auth-page .auth-next-steps{padding-left:22px}
#auth-page .auth-success .auth-submit{margin-top:16px}
html:has(#auth-page[open]){scrollbar-gutter:stable}

/* Native semantics and keyboard behaviour; consistent Vica drawing. Switches stay switches. */
:root input[type=checkbox]:not([role=switch]){appearance:none;-webkit-appearance:none;box-sizing:border-box;display:inline-block;position:relative;width:19px!important;height:19px!important;min-width:19px;min-height:19px!important;flex:0 0 19px;margin:0 9px 0 0;padding:0!important;border:1.5px solid #a7b9ae;border-radius:5px;background:var(--vica-surface,#fff);vertical-align:middle;cursor:pointer;background-position:center;background-size:15px 15px;background-repeat:no-repeat;transition:background-color .12s,border-color .12s,box-shadow .12s}
:root input[type=checkbox]:not([role=switch]):checked{background-color:var(--business-accent,#246b53);border-color:var(--business-accent,#246b53);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m4 10 4 4 8-8' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
:root input[type=checkbox]:not([role=switch]):indeterminate{background-color:var(--business-accent,#246b53);border-color:var(--business-accent,#246b53);background-image:linear-gradient(#fff,#fff);background-size:10px 2px}
:root input[type=checkbox]:not([role=switch]):focus-visible{outline:3px solid #80b8a0;outline-offset:3px}
:root input[type=checkbox]:not([role=switch]):hover:not(:disabled){border-color:var(--business-accent,#246b53);box-shadow:0 0 0 3px #71a88d1c}
:root input[type=checkbox]:not([role=switch]):disabled{opacity:.45;cursor:not-allowed}
:root select:not([multiple]):not([size]){appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m6 8 4 4 4-4' stroke='%23566f62' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 12px center;background-size:18px 18px;background-repeat:no-repeat;padding-right:38px!important;border-radius:9px;cursor:pointer}
:root select:not([multiple]):not([size]):focus-visible{outline:3px solid #80b8a0;outline-offset:2px}
:root select:disabled{cursor:not-allowed;opacity:.6}
:root select option{font:inherit;background:var(--vica-surface,#fff);color:var(--ink,#193f35)}
@media(forced-colors:active){:root input[type=checkbox]:not([role=switch]),:root select:not([multiple]):not([size]){appearance:auto;background-image:none}}
@media(prefers-reduced-motion:reduce){:root input[type=checkbox]:not([role=switch]){transition:none}}

:root label>select{margin-top:8px} :root label.messages-sort>select,:root .theme-control>select{margin-top:0}

/* Keep the initial reservation and the rendered widget at the same size. */
#auth-page .vica-turnstile{container-type:inline-size}
#auth-page .vica-verification-message{min-height:42px}
@container (max-width:299.99px){#auth-page .vica-turnstile-slot{min-height:140px}#auth-page .vica-verification-message{min-height:63px}}
