.pilot-auth{max-width:480px;margin:8vh auto;padding:28px;background:#fffdf6;border-radius:24px;box-shadow:0 12px 70px #342b191a}.pilot-auth h1{font-size:36px}.pilot-auth form{display:grid;gap:14px}.pilot-auth input,.pilot-auth select{box-sizing:border-box;width:100%;min-height:48px}.pilot-auth [role=alert]{color:#943c34;overflow-wrap:anywhere}.pilot-auth button{min-height:48px}.pilot-account{display:flex;gap:8px;align-items:center;max-width:220px;min-height:44px}.pilot-account span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pilot-account small{display:block;font-size:11px}.pilot-status{position:fixed;z-index:9999;inset:auto 12px 84px;padding:18px;background:#fff4da;border:2px solid #9b642f;border-radius:16px;max-width:620px;margin:auto;box-shadow:0 10px 50px #0003}.pilot-status p{margin:0 0 12px}.pilot-status div{display:flex;flex-wrap:wrap;gap:10px}.pilot-status button{min-height:44px}.pilot-token{overflow-wrap:anywhere;user-select:all;padding:12px;background:#f2eedf}.pilot-auth-switch{margin-top:18px}.pilot-family-name{font-size:14px}.pilot-auth a{color:inherit}.pilot-saving{font-size:12px;color:#617044}.family-switch{cursor:default}.family-demo-banner,.family-profile-bar,.demo-pill,.family-device-menu,.side-note .avatars,.back-link{display:none!important}.demo-footer{padding-bottom:20px}.community-home-hero{display:none}.pilot-account-menu form{display:grid;gap:12px}.pilot-account-menu button{min-height:44px}body[data-save-blocked=true] #main-content{opacity:.65;pointer-events:none}body[data-save-blocked=true] dialog form{pointer-events:none}body[data-save-blocked=true] #editor button.close{pointer-events:auto}.pilot-auth-container .sidebar,.pilot-auth-container .workspace,.pilot-auth-container .family-bottom-nav{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #92683c;outline-offset:3px}img{max-width:100%}dialog{max-height:90dvh;overflow:auto}.pilot-auth-container{padding:12px}.pilot-account-actions{display:flex;gap:10px;flex-wrap:wrap}.pilot-account-actions button{min-height:44px}@media(max-width:760px){.pilot-account{max-width:150px;font-size:12px}.pilot-account small{display:none}.top-actions{gap:6px}.pilot-auth{margin:6vh auto;padding:20px;max-width:100%}.pilot-status{bottom:80px;max-height:65dvh;overflow:auto}.pilot-account-menu{max-width:100%;overflow-wrap:anywhere}}@media(max-width:360px){.pilot-account{max-width:102px}.topbar{padding-left:12px;padding-right:12px}.pilot-auth h1{font-size:30px}}
/* Reviewed additions to client/pilot.css; kept separately as a change record. */
.pilot-auth h1{overflow-wrap:anywhere}
.pilot-password-field{min-width:0}
.pilot-password-field>label{display:block}
.pilot-password-control{position:relative;min-width:0}
.pilot-password-control input{padding-right:60px;min-width:0}
.pilot-password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:48px;height:48px;min-height:48px;padding:12px;border:0;border-radius:12px;background:transparent;color:#405b3d;display:grid;place-items:center;cursor:pointer}
.pilot-password-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pilot-password-slash{display:none}
.pilot-password-toggle[aria-pressed=true] .pilot-password-slash{display:block}
.pilot-password-field>.hint{display:block;margin-top:5px}

/* Compact entry; isolated from the signed-in, age-specific family appearance. */
body.pilot-auth-container{padding:20px 16px;background:#f8f4eb;min-height:100svh;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.pilot-auth{box-sizing:border-box;width:100%;max-width:420px;margin:5vh auto;padding:22px;border:1px solid #e7e6dc;border-radius:22px;background:#fffdf8;box-shadow:0 10px 40px #243b2908;font:14px/1.45 system-ui,-apple-system,sans-serif;color:#304432}
.pilot-auth *{box-sizing:border-box}
.pilot-auth-brand{display:flex;align-items:center;gap:10px}
.pilot-auth-brand svg,.pilot-auth-brand img{display:block;width:42px;height:42px;flex:none}
.pilot-auth-brand strong{font-size:19px;letter-spacing:-.5px;font-weight:650;color:#304b34}
.pilot-auth-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.pilot-auth h1{font:650 23px/1.2 system-ui,-apple-system,sans-serif;letter-spacing:-.65px;color:#304432;margin:24px 0 8px;overflow-wrap:normal;word-break:normal}
.pilot-auth-header+h1{margin-top:0}
.pilot-auth .pilot-auth-description{font:14px/1.45 system-ui,-apple-system,sans-serif;color:#637062;margin:0 0 20px}
.pilot-auth-choices{display:grid;gap:10px}
.pilot-auth .pilot-auth-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;width:100%;min-height:68px;border:1px solid #dbe1d5;border-radius:14px;background:#f9faf5;padding:13px 15px;text-align:left;color:#304432;font:14px/1.35 system-ui,-apple-system,sans-serif}
.pilot-auth-choice strong{display:block;font-weight:650;font-size:15px}
.pilot-auth .pilot-auth-choice>span:first-child{flex:1;min-width:0;width:auto;color:inherit}
.pilot-auth .pilot-auth-choice strong{color:inherit}
.pilot-auth-choice small{display:block;margin-top:4px;font-size:12px;color:#6b7768}
.pilot-auth .pilot-auth-choice>span:last-child{font-size:25px;line-height:1;flex:none;width:auto;color:inherit}
.pilot-auth .pilot-auth-choice.is-primary{background:#405b3d;border-color:#405b3d;color:#fffdf7}
.pilot-auth-choice.is-primary small{color:#e1e9db}
.pilot-auth .pilot-auth-note{font-size:12px;color:#6b7768;margin:18px 0 0}
.pilot-auth form{display:grid;gap:12px;margin:0}
.pilot-auth form label,.pilot-auth .pilot-password-field>label{display:block;min-width:0;margin:0;font:500 13px/1.35 system-ui,-apple-system,sans-serif;color:#4d6049}
.pilot-auth form input,.pilot-auth form select{display:block;width:100%;height:44px;min-height:44px;margin:5px 0 0;padding:10px 12px;border:1px solid #d5ddce;border-radius:11px;background:#fffefa;color:#263f2a;font:16px/22px system-ui,-apple-system,sans-serif}
.pilot-auth .pilot-password-control input{margin-top:5px;padding-right:54px}
.pilot-auth .pilot-password-toggle{right:0;width:44px;height:44px;min-height:44px;padding:11px;border-radius:11px;color:#405b3d}
.pilot-auth .pilot-password-toggle svg{width:22px;height:22px}
.pilot-auth .hint{font:12px/1.35 system-ui,-apple-system,sans-serif;color:#78816f;margin:5px 0 0}
.pilot-auth-name-age{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:12px}
.pilot-auth #pilot-auth-error{font-size:13px;line-height:1.35;margin:0;color:#943c34}
.pilot-auth #pilot-auth-error:empty{display:none}
.pilot-auth button[type=submit]{width:100%;min-height:44px;padding:11px 16px;margin-top:2px;border-radius:12px;background:#405b3d;border:1px solid #405b3d;color:#fffdf7;font:600 15px/20px system-ui,-apple-system,sans-serif}
.pilot-auth .pilot-auth-back{border:0;border-radius:10px;background:transparent;color:#62765c;padding:10px 8px;min-width:44px;min-height:44px;font:500 13px/20px system-ui,-apple-system,sans-serif}
.pilot-auth .pilot-auth-switch{min-height:44px;width:100%;padding:9px 0;margin:12px 0 0;background:transparent;border:0;font:500 13px/20px system-ui,-apple-system,sans-serif;color:#4c6d45}
@media(max-width:760px){body.pilot-auth-container{padding:16px 14px}.pilot-auth{margin:0 auto;padding:18px;border-radius:18px;max-width:420px}.pilot-auth h1{font-size:22px}}
@media(max-width:360px){body.pilot-auth-container{padding:12px}.pilot-auth{padding:16px}.pilot-auth h1{font-size:22px}.pilot-auth form{gap:10px}.pilot-auth .pilot-auth-description{margin-bottom:16px;font-size:13px}.pilot-auth-header{margin-bottom:14px}}
.identity img.brand-symbol{display:block;width:46px;height:46px;flex:none;object-fit:contain;border-radius:12px}
.identity{font-size:27px;line-height:1.1;gap:10px}
.family-logo-avatar{padding:0;background:#fff9ed;overflow:hidden}
.family-logo-avatar img{display:block;width:100%;height:100%;object-fit:contain}
.family-brand-settings{max-width:440px;margin:auto}
.family-brand-settings h2{margin:10px 0;font-size:28px}
.family-brand-settings p{font-size:14px;line-height:1.6}
.family-logo-preview{display:block;width:112px;height:112px;object-fit:contain;background:#fff9ed;border:1px solid #deddd2;border-radius:24px;margin:22px auto}
.family-brand-settings form{display:grid;gap:12px}
.family-logo-picker{display:grid;gap:8px;font-size:14px}
.family-logo-picker input{width:100%;min-height:44px;max-width:100%;font-size:14px;margin:0}
.family-logo-picker input::file-selector-button{min-height:44px;border:1px solid #cbd6c9;border-radius:10px;background:#edf3e9;color:#304b34;padding:8px 12px;margin-right:10px;cursor:pointer}
.family-brand-settings .hint{margin:0;font-size:12px;color:#66705f}
.family-brand-settings button{min-height:44px;white-space:normal}
#family-logo-error{margin:0;overflow-wrap:anywhere}
#family-logo-error:empty{display:none}
#family-logo-reset{width:100%;margin-top:12px;font-size:13px}
#family-logo-reset[hidden]{display:none}
@media(max-width:760px){body .family-mobile-brand,body[data-family-theme] .family-mobile-brand{display:flex;align-items:center;gap:6px;flex:none;font:600 16px/1.05 Georgia,serif;letter-spacing:-.3px;min-height:44px;text-align:left;padding:0}.family-mobile-brand img{display:block;width:32px;height:32px;object-fit:contain;border-radius:9px}.family-mobile-brand span{display:block}.family-brand-settings h2{font-size:25px}.family-brand-settings{padding-top:5px}.family-brand-settings .primary{width:100%;font-size:14px}}
.identity img.brand-symbol{width:60px;height:60px;border-radius:0}
.family-switch .family-logo-avatar{width:48px;height:48px;flex:none}
.profile-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;overflow:hidden;background:#e8ede2;color:#556b4f;border:1px solid #d2dccd;border-radius:50%}
.profile-avatar img.profile-photo{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.profile-avatar .profile-photo[hidden],.profile-avatar .profile-initials[hidden]{display:none}
.profile-initials{display:block;font:500 18px/1 system-ui,sans-serif}
.pilot-account>.profile-avatar{width:34px;height:34px}
.pilot-account .pilot-account-name{flex:1;min-width:0;text-align:left}
.pilot-account .pilot-scope-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font:400 11px/1.3 system-ui,sans-serif;opacity:.8;margin-top:2px}
.pilot-account .pilot-account-chevron{flex:none}
.profile-account-photo{display:flex;align-items:center;gap:14px;width:100%;padding:12px;border:1px solid #d9dfd2;border-radius:16px;background:#f4f7ef;text-align:left;color:#354c33;margin:16px 0}
.profile-account-photo>.avatar{width:52px;height:52px}
.profile-account-photo>span:nth-child(2){flex:1;font-size:16px}
.profile-account-photo small{display:block;font-size:12px;margin-top:5px;color:#687361}
.profile-account-photo>span:last-child{font-size:24px}
.profile-photo-settings{max-width:440px;margin:auto}
.profile-photo-settings h2{font-size:28px;margin:10px 0}
.profile-photo-settings p{font-size:14px;line-height:1.6}
.profile-photo-settings form{display:grid;gap:12px}
.profile-photo-preview{width:136px;height:136px;border-radius:50%;overflow:hidden;margin:24px auto;background:#e8ede2;box-shadow:0 0 0 5px #f4f7ef}
.profile-photo-preview>img,.profile-photo-preview>.profile-avatar{display:block;width:100%;height:100%;object-fit:cover;margin:0;border:0}
.profile-photo-preview>.profile-avatar{display:flex}
.profile-photo-preview .profile-initials{font-size:46px}
.profile-photo-settings .hint{font-size:12px;color:#66705f;margin:0}
.profile-photo-settings button{min-height:44px;white-space:normal}
#profile-photo-error{margin:0;overflow-wrap:anywhere}
#profile-photo-error:empty{display:none}
#profile-photo-reset{width:100%;font-size:13px;margin-top:12px}
#profile-photo-reset[hidden]{display:none}
.profile-personal-photo{display:grid;justify-items:center;gap:5px;flex:none;padding:0;min-width:68px;min-height:84px;background:transparent;border:0;color:inherit}
.profile-personal-photo .avatar,.profile-family-photo .avatar{width:68px;height:68px}
.profile-personal-photo small{font-size:12px}
.profile-family-photo{margin:18px 0}
@media(max-width:760px){body .family-mobile-brand img{width:50px;height:50px;border-radius:0}.pilot-account{max-width:min(150px,42vw);padding:5px 8px;gap:6px;min-height:46px}.pilot-account>.profile-avatar{width:34px;height:34px}.pilot-account .profile-initials{font-size:16px}.profile-photo-settings h2{font-size:25px}.profile-photo-settings .primary{width:100%;font-size:14px}}
@media(max-width:360px){body .family-mobile-brand,body[data-family-theme] .family-mobile-brand{font-size:15px;gap:4px}.pilot-account{padding:5px 6px;gap:5px}.top-actions{gap:5px}}

.pilot-registration-step{border:0;padding:0;margin:0;min-inline-size:0;display:grid;gap:12px}
.pilot-registration-step[hidden],#pilot-auth-form button[hidden]{display:none!important}
.pilot-registration-step legend{padding:0 0 12px;font-size:16px;font-weight:600;color:#536b4e}
.faith-home-entry{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:4px 0 16px}
.faith-home-entry button{min-height:44px}

/* Ailya brand remains legible beside the account and add controls. */
.pilot-auth-brand{color:#214d41}
@media(max-width:760px){body[data-family-theme] .family-mobile-brand{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:25px}body[data-family-theme] .family-mobile-brand img{width:38px;height:38px;object-fit:contain}body[data-family-theme] .family-mobile-brand>span{line-height:1.1}}
@media(max-width:359px){body[data-family-theme] .family-mobile-brand{gap:5px;font-size:23px}body[data-family-theme] .family-mobile-brand img{width:34px;height:34px}}

.pilot-auth-name-age.pilot-auth-dates{grid-template-columns:minmax(0,1fr)}
.pilot-start-guide{display:block;margin:12px auto 0}
.family-guide-entry{margin-block:0 12px}
.family-guide-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px}
.family-guide-header h2{margin:0}
.family-guide-header button,.family-guide-share button{min-height:44px}
.family-start-guide ol{padding-inline-start:24px}
.family-start-guide li{margin-block:12px}
.family-start-guide h3,.family-start-guide li p{margin:4px 0}
.family-guide-share{border-top:1px solid var(--appearance-line,#cdd9d0);padding-top:12px}
.family-guide-share summary{cursor:pointer;font-weight:650;margin-bottom:10px}
.family-guide-share textarea{width:100%;box-sizing:border-box;margin-bottom:10px}
