*{box-sizing:border-box}body{margin:0;background:#f1f7f6;color:#173d3f;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.page{max-width:540px;margin:0 auto;padding:28px 20px 44px}.brand{display:inline-flex;gap:12px;align-items:center;color:#12646a;text-decoration:none;font-size:22px;font-weight:750;margin-bottom:24px}.brand span{font-size:13px;font-weight:550;border-left:1px solid #b7d1ce;padding-left:12px}.card{background:white;border:1px solid #dfebe9;border-radius:22px;padding:30px 26px;box-shadow:0 12px 32px #174c3d08}.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:750;color:#637b79;margin:0 0 12px}h1{font-size:30px;line-height:1.15;letter-spacing:-.025em;margin:0 0 12px}#intro{color:#536e6c;margin:0 0 22px}.tabs{display:flex;padding:4px;border:1px solid #dce9e7;border-radius:12px;gap:4px;margin-bottom:20px}.tabs button{flex:1;background:transparent;border:0;border-radius:8px;padding:11px;color:#506967;font-weight:650}.tabs button[aria-current]{background:#e7f4f1;color:#12646a}label{display:block;font-weight:650;font-size:14px;margin:16px 0 7px}input{width:100%;padding:13px 14px;border:1px solid #adc4c0;border-radius:10px;font:inherit;min-height:49px;background:#fff;color:#173d3f}input:focus{outline:3px solid #bfe8df;border-color:#12646a}input[readonly]{background:#f3f7f6}button{font:inherit;cursor:pointer;min-height:44px}.primary{display:block;width:100%;background:#12646a;color:#fff;font-weight:700;border:0;border-radius:11px;padding:14px;margin-top:24px}.secondary{display:block;width:100%;background:transparent;border:0;padding:12px;color:#12646a;font-size:14px}button:disabled{opacity:.55;cursor:wait}.hint{font-size:13px;color:#617876;margin:8px 0 0}#notice:empty{display:none}#notice{padding:12px;background:#eef7f5;border-radius:10px;color:#1b5559;font-size:14px;overflow-wrap:anywhere}.next{border-top:1px solid #e2eeeb;margin-top:28px;padding-top:20px}.next h2{font-size:15px;margin:0 0 12px}.next ol{font-size:14px;color:#566f6c;padding-left:22px;margin:0}.next li{padding:4px 0}.footer{text-align:center;color:#6c8280;font-size:12px;margin:20px 0 0}[hidden]{display:none!important}@media(max-width:380px){.page{padding:22px 14px}.card{padding:25px 20px}h1{font-size:27px}}
#request-code{display:block;width:100%;min-height:54px;margin:20px 0 8px;padding:14px 18px;background:#12646a;color:#fff;border:2px solid #12646a;border-radius:11px;font-size:17px;font-weight:750;box-shadow:0 3px 8px #12646a26}#request-code:hover:not(:disabled){background:#0d5156;border-color:#0d5156}#request-code:focus-visible{outline:3px solid #76c7b9;outline-offset:3px}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}h1,h2,p,label,li{overflow-wrap:break-word}h2{font-size:21px;line-height:1.3;margin:0 0 12px}input,select{min-width:0;font-size:16px}select{display:block;width:100%;min-height:49px;padding:12px;border:1px solid #adc4c0;border-radius:10px;background:#fff;color:#173d3f;font-family:inherit}fieldset{border:0;padding:0;margin:0;min-width:0}fieldset:disabled input,fieldset:disabled select{color:#173d3f;opacity:1;-webkit-text-fill-color:#173d3f}.stage-card{margin-top:20px}.document-item{padding:12px;background:#eef7f5;border-radius:9px;font-size:14px;overflow-wrap:anywhere}.footer-link{display:block}.link-button{text-align:center;text-decoration:none}input[type=file]{font-size:14px;overflow:hidden}button{white-space:normal;line-height:1.4}.page{width:100%}@media(max-width:420px){.page{padding:20px 14px 32px}.card{padding:24px 20px}h1{font-size:28px}}

/* Match the KANK black and pearl palette. */
:root{color-scheme:dark}body{background:#0c0715;color:#f5f5ef}
.brand{color:#f5f5ef}.brand span,.eyebrow{color:#e8e2f1;border-color:#4b3c60}
.card{background:#170e25;border-color:#4b3c60;box-shadow:0 12px 30px #0003}
#intro,.hint,.next ol,.footer{color:#d7d0e2}.hint a,.footer a,.secondary{color:#b7acc9}
.tabs{border-color:#655573}.tabs button{color:#e8e2f1}.tabs button[aria-current]{background:#291443;color:#e8e2f1}
input,select,input[readonly]{background:#171221;color:#f5f5ef;border-color:#655573}
fieldset:disabled input,fieldset:disabled select{color:#f5f5ef;-webkit-text-fill-color:#f5f5ef}
.primary,#request-code{background:#291443;color:#ffffff;border:1px solid #b7acc9;box-shadow:0 5px 18px #29144320}
#request-code:hover:not(:disabled),.primary:hover:not(:disabled){background:#3b205b;color:#ffffff;border-color:#b7acc9}
input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #e8e2f1;outline-offset:3px;border-color:#b7acc9}
#notice,.document-item{background:#1b102d;color:#e8e2f1}.next{border-color:#4b3c60}

/* Bright white lettering across doctor sign-in and onboarding. */
body,body .page :where(*){color:#fff!important}
body input,body select{color:#fff!important;-webkit-text-fill-color:#fff!important}
body input::placeholder{color:#fff!important;opacity:1}
body .primary,body #request-code{background:#291443;color:#fff!important;border-color:#b7acc9}
body .primary:hover:not(:disabled),body #request-code:hover:not(:disabled){background:#3b205b;color:#fff!important;border-color:#b7acc9}
body button:disabled{opacity:1;background:#1a1226;color:#fff!important;border-color:#b7acc9}

/* Keep typed text and saved credentials readable over browser autofill colours. */
body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),body textarea{background-color:#171221!important;color:#fff!important;-webkit-text-fill-color:#fff!important;caret-color:#fff;-webkit-box-shadow:0 0 0 1000px #171221 inset!important;box-shadow:0 0 0 1000px #171221 inset!important}
body input:is(:-webkit-autofill,:autofill){-webkit-text-fill-color:#fff!important;caret-color:#fff;-webkit-box-shadow:0 0 0 1000px #171221 inset!important;box-shadow:0 0 0 1000px #171221 inset!important}

/* A phone hint must look different from a number the doctor entered. */
body #phone::placeholder{color:#bdb0c9!important;-webkit-text-fill-color:#bdb0c9!important;opacity:1}

/* Consistent gold guidance on Doctor and Staff sign-in and registration pages. */
body .page :is(p,li,.hint,.footer):not(:where(#notice,#notice *,.warn,.warn *,.error,.error *,.notice,.notice *,.document-item,.document-item *,.primary,.primary *,.secondary,.secondary *,button,button *,input,input *,select,select *,textarea,textarea *,h1,h1 *,h2,h2 *,h3,h3 *,label,label *,[role="alert"],[role="alert"] *)),
body .page :is(p,li,.hint,.footer) :is(a,span,small,em):not(:where(#notice,#notice *,.warn,.warn *,.error,.error *,.notice,.notice *,.document-item,.document-item *,.primary,.primary *,.secondary,.secondary *,button,button *,input,input *,select,select *,textarea,textarea *,h1,h1 *,h2,h2 *,h3,h3 *,label,label *,[role="alert"],[role="alert"] *)) { color:#e5c46b!important; }
body .page :is(p,li,.hint,.footer) a:not(:where(#notice,#notice *,.warn,.warn *,.error,.error *,.notice,.notice *,.document-item,.document-item *,.primary,.primary *,.secondary,.secondary *,button,button *,input,input *,select,select *,textarea,textarea *,h1,h1 *,h2,h2 *,h3,h3 *,label,label *,[role="alert"],[role="alert"] *)) { text-decoration:underline; text-underline-offset:.16em; }

/* Match Doctor and Staff onboarding guidance and footer typography. */
body .page :is(p,.hint,.footer,li):not(:where(button,button *,.primary,.primary *,.secondary,.secondary *,input,input *,select,select *,textarea,textarea *,h1,h1 *,h2,h2 *,h3,h3 *,.document-item,.document-item *)) { font-size:13px!important; line-height:1.55!important; }
body .page :is(p,.hint,.footer,li) :is(a,span,small,em,b,strong):not(:where(button,button *,.primary,.primary *,.secondary,.secondary *)) { font-size:inherit!important; line-height:inherit; }
body .page .footer,body .page .footer :is(a,span,small),body .page a.footer { color:#fff!important; font-size:13px!important; line-height:1.55!important; }
body .page .document-item,body .page .document-item :is(span,small,b,strong) { color:#fff!important; font-size:14px!important; line-height:1.55!important; }
body .page .nin-consent,body .page .nin-consent span,body .page label:has(input[type=checkbox]),body .page label:has(input[type=checkbox]) span { color:#fff!important; font-size:14px!important; font-weight:700!important; line-height:1.55!important; }

.page .next summary{cursor:pointer;font-size:13px;line-height:1.55;padding:6px 0}.page .next ol{margin-top:10px}
.recovery-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:18px}.recovery-options .primary{margin:0;padding:12px 8px;min-height:56px;font-size:14px;line-height:1.3;text-align:center;display:flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid #b7acc9}.recovery-options [aria-pressed="true"]{outline:2px solid #e5c46b;outline-offset:2px}#recovery-notice:empty{display:none}#recovery-notice{padding:12px;border:1px solid #b7acc9;border-radius:10px;overflow-wrap:anywhere}@media(max-width:350px){.recovery-options{grid-template-columns:1fr}}

/* Mobile date controls: keep the native picker inside the same box as other inputs. */
body .page input[type="date"]{-webkit-appearance:none;appearance:none;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-inline-size:0;max-inline-size:100%;display:block;height:48px;min-height:48px;padding:11px 12px;margin:0;font-family:inherit;font-size:16px;line-height:24px;text-align:left;overflow:hidden;}
body .page input[type="date"]::-webkit-date-and-time-value{min-height:24px;margin:0;text-align:left;}
body .page input[type="date"]::-webkit-datetime-edit{padding:0;min-width:0;max-width:100%;}

/* KankMed dark purple v3: sign-in, registration and onboarding match the app (bg #0c0715, card #170e25, buttons #291443 with a thin light outline). */
:root{color-scheme:dark}
html body{background:#0c0715;color:#fff}
html body .card{background:#170e25;border:1px solid #4b3c60;box-shadow:none}
html body .brand,html body .brand span,html body .eyebrow{color:#fff;border-color:#4b3c60}
html body .tabs{background:#10091c;border:1px solid #b7acc9}
html body .tabs button{color:#fff;background:transparent}
html body .tabs button[aria-current]{background:#291443;color:#fff;box-shadow:inset 0 0 0 1px #b7acc9}
html body .primary,html body #request-code,html body .secondary{display:block;background:#291443;color:#fff!important;border:1px solid #b7acc9;box-shadow:none}
html body .secondary{padding:12px;font-size:16px;text-align:center;border-radius:11px}
html body .primary:hover:not(:disabled),html body #request-code:hover:not(:disabled),html body .secondary:hover:not(:disabled){background:#3b205b;border-color:#fff;color:#fff!important}
html body .primary:active:not(:disabled),html body #request-code:active:not(:disabled){background:#1d0d32}
html body button:disabled{opacity:1;background:#1a1226;color:#cfc4dc!important;border-color:#4b3c60}
html body input,html body select,html body input[readonly]{background:#171221;border:1px solid #655573;color:#fff}
html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),html body textarea{background-color:#171221!important;-webkit-box-shadow:0 0 0 1000px #171221 inset!important;box-shadow:0 0 0 1000px #171221 inset!important}
html body input:is(:-webkit-autofill,:autofill){-webkit-box-shadow:0 0 0 1000px #171221 inset!important;box-shadow:0 0 0 1000px #171221 inset!important}
html body input::placeholder{color:#bdb0c9!important;-webkit-text-fill-color:#bdb0c9!important}
html body input:focus,html body select:focus,html body button:focus-visible,html body a:focus-visible,html body summary:focus-visible{outline:3px solid #e8e2f1;outline-offset:3px;border-color:#e8e2f1}
html body #notice,html body .document-item{background:#1b102d;border:1px solid #76538f;color:#eee5f3}
html body .next{border-color:#4b3c60}
html body input[type=checkbox],html body input[type=radio]{accent-color:#8b5fd0}
html body .page .hint a,html body .page .footer a,html body .page .next a{color:#e0d0f7!important}
html body .optional{font-weight:400;color:#d7d0e2}
html body #teams-field[hidden]{display:none!important}
/* Entry fields: clear white boxes with dark text (sign-in and registration) */
html:root body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=hidden]):not([type=image]),select,textarea){background-color:#fff!important;color:#1a1030!important;-webkit-text-fill-color:#1a1030!important;caret-color:#1a1030;border:1px solid #7b6a99!important;color-scheme:light;opacity:1;-webkit-box-shadow:none!important;box-shadow:none!important}
html:root body select{background-color:#fff!important;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231a1030' d='M1 1l5 6 5-6'/></svg>")!important;background-repeat:no-repeat!important;background-position:right 12px center!important}
html:root body select option{background:#fff;color:#1a1030}
html:root body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=hidden]):not([type=image]):-webkit-autofill,html:root body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=hidden]):not([type=image]):-webkit-autofill:hover,html:root body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=hidden]):not([type=image]):-webkit-autofill:focus,html:root body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=hidden]):not([type=image]):-webkit-autofill:active{-webkit-text-fill-color:#1a1030!important;caret-color:#1a1030;background-color:#fff!important;-webkit-box-shadow:0 0 0 1000px #fff inset!important;box-shadow:0 0 0 1000px #fff inset!important;transition:background-color 99999s ease-in-out 0s}
html:root body :is(input,textarea)::placeholder{color:#6b5f7e!important;-webkit-text-fill-color:#6b5f7e!important;opacity:1!important}
html:root body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=hidden]):not([type=image]),select,textarea):is(:disabled,[readonly]){background-color:#f0ecf6!important;color:#4a3f60!important;-webkit-text-fill-color:#4a3f60!important;border-color:#a99bc0!important;-webkit-box-shadow:none!important;box-shadow:none!important}
html:root body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=hidden]):not([type=image]),select,textarea):is(:focus,:focus-visible){border-color:#5b2d9e!important;outline:3px solid #c9a8ff!important;outline-offset:2px}
html:root body :is(input[type=checkbox],input[type=radio]){color-scheme:light;accent-color:#8b5fd0}


/* t974u/t975u: revert doctor CTAs to dark purple #291443 + keep safe-area (reject brand-green). */
:root{--km-brand:#291443;--km-brand-hover:#3b205b;--km-brand-active:#1d0d32;--km-brand-outline:#b7acc9}
html body .page{padding:calc(28px + env(safe-area-inset-top, 0px)) 20px calc(44px + env(safe-area-inset-bottom, 0px))}
@media(max-width:420px){html body .page{padding:calc(20px + env(safe-area-inset-top, 0px)) 14px calc(32px + env(safe-area-inset-bottom, 0px))}}
@media(max-width:380px){html body .page{padding:calc(22px + env(safe-area-inset-top, 0px)) 14px calc(32px + env(safe-area-inset-bottom, 0px))}}
html body .tabs button[aria-current]{background:var(--km-brand)!important;color:#fff!important;box-shadow:inset 0 0 0 1px var(--km-brand-outline)}
html body .primary,html body #request-code,html body .secondary{background:var(--km-brand)!important;color:#fff!important;border:1px solid var(--km-brand-outline)!important;box-shadow:none}
html body .primary:hover:not(:disabled),html body #request-code:hover:not(:disabled),html body .secondary:hover:not(:disabled){background:var(--km-brand-hover)!important;border-color:#fff!important;color:#fff!important}
html body .primary:active:not(:disabled),html body #request-code:active:not(:disabled){background:var(--km-brand-active)!important}
html body button:disabled{background:#2a1f3a!important;color:#d7d0e2!important;border-color:#4b3c60!important}
html body input[type=checkbox],html body input[type=radio]{accent-color:var(--km-brand)}
html:root body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=hidden]):not([type=image]),select,textarea):is(:focus,:focus-visible){border-color:var(--km-brand)!important;outline:3px solid #b7acc9!important;outline-offset:2px}

#register-notice:empty{display:none}#register-notice{padding:12px;border:1px solid #b7acc9;border-radius:10px;background:#1b102d;overflow-wrap:anywhere;font-size:14px;scroll-margin-bottom:24px}
/* Keep password visibility beside its field and distinct from sign-in. */
button.password-toggle{justify-self:start;width:auto;min-height:44px;margin-top:0;padding:8px 14px;font-size:14px;}
