.microsoft-login-button {display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;margin:16px 0 0;border:1px solid #cbd5dc;border-radius:12px;background:#fff;color:#20313a;font:600 15px/1.3 system-ui;cursor:pointer;padding:12px 16px}
.microsoft-login-button:disabled {cursor:not-allowed;opacity:.6}
.microsoft-mark {display:inline-grid;grid-template-columns:10px 10px;gap:2px;flex:none}
.microsoft-mark i {width:10px;height:10px;background:#f25022}.microsoft-mark i:nth-child(2){background:#7fba00}.microsoft-mark i:nth-child(3){background:#00a4ef}.microsoft-mark i:nth-child(4){background:#ffb900}
.microsoft-login-hint {font-size:12px;line-height:1.5;color:#586b75;margin:8px 0 16px}
.microsoft-account-switch {width:100%;min-height:44px;margin:0 0 8px;white-space:normal}
.microsoft-account-switch[hidden] {display:none!important}
.microsoft-account-switch:focus-visible {outline:3px solid #29837a;outline-offset:3px}
/* Login surfaces must use the same palette as the card, including iPhone dark mode. */
body :is(#loginView,#sessionUnavailable) {color:var(--suite-text,#20313a);background:var(--suite-page,#eef2f4)}
body #loginView .login-brand p {color:var(--suite-text,#20313a)}
body #loginForm :is(.microsoft-login-hint,.microsoft-local-fallback summary,label,.login-remember small) {color:var(--suite-muted,#586b75)}
body #loginForm .microsoft-login-hint {font-size:13px}
body #loginForm .login-remember strong {color:var(--suite-text,#20313a)}
body #loginForm .microsoft-local-fallback {border-color:var(--suite-line,#d8e0e6)}
body #loginForm .form-error {color:var(--suite-danger,#b42318)}
body #loginForm .preview-hint {background:var(--suite-soft,#f0f4f7);color:var(--suite-muted,#586b75);border-color:var(--suite-line,#d8e0e6)}
.microsoft-local-fallback {margin-top:20px;border-top:1px solid #d8e0e6;padding-top:16px;font-size:13px}
.microsoft-local-fallback summary {cursor:pointer;color:#586b75;margin-bottom:14px}
.microsoft-local-fallback[open] {display:block}.microsoft-local-fallback label {margin-top:12px}
.microsoft-reauth-dialog [hidden] {display:none!important}
.microsoft-reauth-dialog a.microsoft-login-button {box-sizing:border-box;text-decoration:none}
.microsoft-reauth-dialog input {box-sizing:border-box;width:100%;min-height:44px;font:inherit;border:1px solid #cad7dc;border-radius:8px;padding:8px}
.microsoft-login-setup {border-left:4px solid #29837a}
.microsoft-login-setup code {overflow-wrap:anywhere;white-space:normal}
.microsoft-login-setup ol {padding-left:22px;font-size:14px;line-height:1.6}
.microsoft-login-setup .settings-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.microsoft-login-setup .settings-grid input:not([type="checkbox"]) {min-width:0;width:100%;box-sizing:border-box}
.microsoft-login-setup input[type="checkbox"] {width:18px;height:18px;vertical-align:middle;margin-right:8px}
.microsoft-login-user {display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.2fr) auto;gap:12px;align-items:center;padding:14px 0;border-top:1px solid #d8e0e6}
.microsoft-login-user small {display:block;overflow-wrap:anywhere}.microsoft-login-user input{width:100%;box-sizing:border-box;min-width:0}
.microsoft-login-actions {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.microsoft-account-confirmation {box-sizing:border-box;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;border:1px solid #cad7dc;border-radius:18px;padding:24px;background:#fff;color:#20313a;box-shadow:0 24px 80px #14293240;font:15px/1.6 system-ui}
.microsoft-account-confirmation::backdrop {background:#15283299}
.microsoft-account-confirmation h2 {margin:0 0 16px;font-size:22px;line-height:1.25}
.microsoft-account-confirmation p {overflow-wrap:anywhere;margin:12px 0}
.microsoft-account-identity {font-weight:650}.microsoft-account-object {font-size:12px;color:#586b75}
.microsoft-account-confirmation-actions {display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:24px}
.microsoft-account-confirmation-actions button {min-height:44px;white-space:normal}
.microsoft-account-confirmation-actions button:focus-visible {outline:3px solid #29837a;outline-offset:3px}
@media(max-width:420px){.microsoft-account-confirmation{padding:20px}.microsoft-account-confirmation-actions{flex-direction:column}.microsoft-account-confirmation-actions button{width:100%}}
.microsoft-return {margin:0;background:#eef2f4;color:#20313a;font:16px/1.6 system-ui;display:grid;place-items:center;min-height:100vh}
.microsoft-return main {background:white;border:1px solid #d8e0e6;border-radius:20px;padding:32px;max-width:480px;margin:20px}.microsoft-return h1{font-size:26px}.microsoft-return a{color:#21665f}
@media(max-width:680px){.microsoft-login-user,.microsoft-login-setup .settings-grid{grid-template-columns:1fr}.microsoft-login-user{gap:8px}.microsoft-login-actions button{min-height:44px}}
