/* Shared authentication layout. Keep Calendar and Notes copies byte-identical. */
:root .auth-shell{--bg:#f4f4f2;--panel:#fff;--text:#151515;--muted:#777;--line:#e7e7e4;--inverse:#fff;--auth-edge:#b7b7b7;width:100%;max-width:none;display:block;background:var(--bg);color:var(--text);min-height:100svh;margin:0;padding:0;overflow:auto;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.5;color-scheme:light}
@media(prefers-color-scheme:dark){:root .auth-shell{--bg:#111;--panel:#1c1c1c;--text:#eee;--muted:#aaa;--line:#333;--inverse:#111;--auth-edge:#555;color-scheme:dark}}
html:has(.auth-shell){background:#f4f4f2;color-scheme:light}
@media(prefers-color-scheme:dark){html:has(.auth-shell){background:#111;color-scheme:dark}}
.auth-shell .app-header{position:absolute;top:12px;left:20px;right:20px;border:0;background:transparent;min-height:44px;display:flex;justify-content:flex-end;z-index:30}
.auth-shell>.app-header,.auth-shell .app-header>.brand-lockup,.auth-shell .app-header>.header-scope{display:none}
.auth-shell .viewport-top{background:var(--bg)}
.auth-shell .app-menu{left:auto;right:0}
.auth-shell .app-content{width:100%;max-width:none;margin:0;padding:0}
.auth-shell .welcome{box-sizing:border-box;width:100%;max-width:none;margin:0;min-height:100svh;display:flex;flex:none;align-items:flex-start;justify-content:center;overflow:visible;padding:clamp(88px,calc((100svh - 560px)/2),220px) max(20px,env(safe-area-inset-right)) 48px max(20px,env(safe-area-inset-left))}
.auth-shell .auth-content{width:100%;max-width:460px;min-width:0}
.auth-shell .auth-brand{display:flex;align-items:center;gap:12px;margin:0 0 20px;text-align:left;height:44px}
.auth-shell .auth-brand img{display:block;width:44px;height:44px;flex:0 0 44px;border-radius:10px;object-fit:contain;filter:none}
.auth-shell .auth-brand h1{margin:0;font-size:22px;font-weight:700;letter-spacing:-.6px;line-height:26px;white-space:nowrap}
.auth-shell .login-panel{box-sizing:border-box;width:100%;max-width:none;padding:26px 22px;background:var(--panel);border:1px solid var(--line);border-radius:18px}
.auth-shell .auth-intro{margin:0 0 24px}
.auth-shell .auth-title{margin:0 0 8px;font-size:20px;line-height:26px;font-weight:700;letter-spacing:-.4px}
.auth-shell .auth-description{margin:0;color:var(--muted);font-size:12px;line-height:20px;word-break:keep-all;overflow-wrap:anywhere}
.auth-shell .login-form{display:flex;flex-direction:column;gap:24px;margin:0}
.auth-shell .login-form label{display:flex;flex-direction:column;gap:8px;margin:0;font-size:13px;font-weight:400;line-height:20px;color:var(--muted)}
.auth-shell .login-form input{box-sizing:border-box;width:100%;height:48px;min-height:48px;margin:0;border:1px solid var(--auth-edge);border-radius:12px;background:var(--panel);color:var(--text);padding:12px;font-family:inherit;font-size:16px;line-height:22px;box-shadow:none;caret-color:var(--text)}
.auth-shell .login-form input:focus-visible{outline:2px solid var(--text);outline-offset:3px}
.auth-shell .login-panel .primary{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:48px;min-height:48px;margin:0;padding:12px 18px;border:1px solid var(--text);border-radius:12px;font-family:inherit;font-size:14px;font-weight:400;line-height:22px;letter-spacing:0;background:var(--text);color:var(--inverse)}
.auth-shell .auth-footer{display:block;box-sizing:border-box;min-height:44px;margin:24px 0 0;padding:0;text-align:left;color:var(--muted);font-size:12px;font-weight:400;line-height:20px;word-break:keep-all;overflow-wrap:anywhere}
.auth-shell .auth-footer .text-button{display:flex;align-items:flex-start;justify-content:flex-start;min-height:44px;margin:0;padding:0;border:0;background:none;color:var(--muted);font:inherit;line-height:20px;text-align:left;align-content:start;text-decoration:underline;text-underline-offset:3px}
.auth-shell .login-panel .fine-print,.auth-shell .login-panel .form-error{margin:0;font-size:12px;line-height:20px;word-break:keep-all;overflow-wrap:anywhere}
.auth-shell .notice{position:relative;z-index:31;margin:72px auto -72px;max-width:460px}
@media(max-width:380px){.auth-shell .welcome{padding-left:16px;padding-right:16px}.auth-shell .login-panel{padding:24px 20px}}
