/* Account pages open as fresh documents without the story's transition snapshots. */
@view-transition{navigation:none}
.member-portal{padding-top:var(--offsite-header-height,80px)}
.member-portal .button{min-height:40px}
.portal-container{max-width:1240px;margin:0 auto;padding:45px var(--offsite-gutter,clamp(20px,5vw,88px)) 35px}
.portal-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}
.portal-page-heading h1{font:48px/1.02 var(--heading);letter-spacing:-1px;margin:9px 0 12px}
.portal-page-heading p{font-size:14px;color:var(--muted);max-width:650px}
.portal-mode-banner{font-size:14px;padding:11px var(--offsite-gutter,clamp(20px,5vw,88px));border-bottom:1px solid var(--line);background:var(--surface);color:var(--muted);display:flex;justify-content:space-between;gap:15px}
.portal-mode-banner strong{color:var(--fg)}
.portal-mode-banner a{text-decoration:underline;text-underline-offset:3px}
.auth-layout{margin:65px auto 55px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(40px,6vw,96px);padding:0 var(--offsite-gutter,clamp(20px,5vw,88px));align-items:start}
.auth-story{padding:25px 0}
.auth-story h1{font:69px/.97 var(--heading);letter-spacing:-1.5px;margin:20px 0 25px;max-width:440px}
.auth-story>p{font-size:14px;color:var(--muted);max-width:400px;line-height:1.9}
.auth-story .eyebrow{color:var(--accent)}
.auth-steps{margin-top:36px;display:grid;gap:20px}
.auth-step{display:flex;gap:15px;align-items:flex-start;font-size:14px}
.auth-step .step-number{font:24px var(--heading);color:var(--accent);width:24px;flex-shrink:0}
.auth-step strong{display:block;font-weight:500}
.auth-step p{font-size:14px;color:var(--muted);margin-top:4px}
.auth-panel{border:0;border-left:1px solid var(--line);border-radius:0;background:transparent;padding:30px 0 30px 32px;max-width:540px;width:100%;box-shadow:none}
.auth-panel h2{font:31px var(--heading);margin:20px 0 10px}
.auth-panel>p{font-size:14px;color:var(--muted);line-height:1.75}
.auth-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line)}
.auth-tabs button{background:none;font-size:14px;padding:9px 0;border-radius:0;color:var(--muted)}
.auth-tabs button.selected{color:var(--fg);box-shadow:inset 0 -2px 0 var(--accent)}
.auth-panel .field-label{margin-top:18px}
.auth-panel input{width:100%;min-height:43px}
.password-input{display:flex;position:relative}
.password-input input{padding-right:65px}
.password-input button{position:absolute;right:7px;top:6px;height:30px;min-width:49px;background:transparent;color:var(--muted);border-radius:calc(var(--radius)/2);font-size:14px}
.auth-panel .auth-submit{width:100%;margin-top:24px}
.auth-note{margin-top:20px;padding-top:17px;border-top:1px solid var(--line);font-size:14px;line-height:1.8;color:var(--muted)}
.auth-note a{text-decoration:underline;text-underline-offset:3px}
.auth-error{font-size:14px;color:#af493c;border:1px solid #af493c55;background:color-mix(in srgb,#af493c 4%,var(--surface));padding:12px;margin:16px 0;border-radius:var(--radius)}
.auth-unavailable h2{margin-top:20px}
.auth-unavailable p{font-size:16px;line-height:1.8;color:var(--muted);max-width:440px}
.portal-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0 22px;border-bottom:1px solid var(--line);margin-bottom:26px}
.portal-view-tabs{display:flex;gap:5px;flex-wrap:wrap}
.portal-view-tabs button{font-size:14px;min-height:35px;padding:7px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);color:var(--muted)}
.portal-view-tabs button.active{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.portal-toolbar select{max-width:250px;font-size:14px;padding:8px}
.member-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:22px;align-items:start}
.member-stack{display:grid;gap:22px}
.member-card{padding:24px;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}
.member-card h2{font:26px var(--heading);letter-spacing:-.3px}
.member-card h3{font-size:14px;font-weight:600}
.member-card p{font-size:14px;color:var(--muted);line-height:1.8;margin-top:9px}
.member-card>.eyebrow{color:var(--accent);margin-bottom:12px}
.member-card .inline-actions{margin-top:18px}
.member-list{display:grid;gap:13px;margin-top:20px}
.member-project{padding:20px;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius)}
.member-project-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.member-project h3{font:25px var(--heading)}
.member-project .project-copy{font-size:14px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}
.member-project .project-meta{font-size:14px;display:flex;gap:15px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line);color:var(--muted)}
.member-project .button{font-size:14px;min-height:32px;padding:6px 11px}
.member-project .sharing-label{font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-top:14px}
.member-project .sharing-label+p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.journey{display:grid;gap:0;margin:18px 0}
.journey-step{display:flex;gap:13px;padding:15px 0;border-bottom:1px solid var(--line);font-size:14px}
.journey-step:last-child{border-bottom:0}
.journey-point{width:23px;height:23px;display:grid;place-content:center;background:var(--surface-2);border:1px solid var(--line);border-radius:50%;font-size:14px;color:var(--muted);flex-shrink:0}
.journey-step.done .journey-point{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.journey-step strong{font-size:14px;font-weight:500}
.journey-step p{font-size:14px;margin-top:2px}
.portal-empty{padding:28px 8px;text-align:center}
.portal-empty h3{font:25px var(--heading);margin-bottom:8px}
.portal-empty p{font-size:14px;color:var(--muted)}
.sharing-form label{display:block;font-size:14px;font-weight:500;margin:17px 0 7px}
.sharing-form textarea{width:100%;min-height:100px;font-size:14px}
.checkbox-field{display:flex;gap:10px;align-items:flex-start;margin:18px 0 0}
.checkbox-field input{width:17px;height:17px;accent-color:var(--accent);flex-shrink:0;margin-top:2px}
.checkbox-field label{font-size:14px;margin:0!important;font-weight:400;line-height:1.7}
.checkbox-field small{font-size:14px;display:block;color:var(--muted)}
.sharing-form .inline-actions{margin-top:20px}
.member-dialog-body{padding:25px}
.member-dialog-body h3{font-size:14px;margin:16px 0 7px}
.member-dialog-body p{font-size:14px;color:var(--muted);line-height:1.8}
.member-dialog-body input,.member-dialog-body select{width:100%}
.member-dialog-body .inline-actions{margin-top:22px}
.member-dialog-body .code-block{margin-top:13px}
.member-admin-panels{display:grid;gap:24px}
.member-admin-panels .panel{overflow:visible}
.member-admin-panels th,.member-admin-panels td{font-size:14px}
.member-admin-panels td{overflow-wrap:anywhere}
.member-admin-panels .table-scroll{overflow-x:auto}
.member-admin-panels .table-actions{display:flex;gap:7px;flex-wrap:wrap}
.member-admin-panels .table-actions .button{font-size:14px;min-height:30px;padding:5px 9px}
.member-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:25px}
.member-count{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.member-count strong{font:34px var(--heading);display:block}
.member-count span{font-size:14px;color:var(--muted)}
.member-portal .portal-footer{font-size:14px;color:var(--muted);border-top:1px solid var(--line);padding:22px var(--offsite-gutter,clamp(20px,5vw,88px));display:flex;justify-content:space-between;gap:20px}
.member-portal .portal-footer a{text-decoration:underline;text-underline-offset:3px}
.portal-notice{padding:15px 18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);font-size:14px;margin-bottom:22px;line-height:1.8}
.portal-notice strong{display:block;font-weight:500}
.portal-notice p{color:var(--muted);font-size:14px}
.portal-notice.error{border-color:#af493c88}
.portal-link{font-size:14px;text-decoration:underline;text-underline-offset:3px}
.member-portal [data-busy=true]{opacity:.6}
.project-link{font-size:14px;text-decoration:underline;text-underline-offset:3px}
.member-portal .invite-lock{width:44px;height:44px;display:grid;place-content:center;font-size:22px;color:var(--accent)}
@media(max-width:900px){
.auth-layout{gap:35px;margin-top:42px}
.auth-story h1{font-size:57px}
.auth-panel{padding-left:25px}
.member-grid{grid-template-columns:1fr}
.member-stack{grid-template-columns:1fr 1fr}
.portal-page-heading h1{font-size:42px}
.portal-container{padding-top:35px}
.portal-toolbar{gap:15px}
}
@media(max-width:650px){
.portal-mode-banner{padding-top:10px;padding-bottom:10px;font-size:14px;flex-wrap:wrap;gap:7px}
.auth-layout{grid-template-columns:minmax(0,1fr);gap:26px;margin:30px auto}
.auth-story{padding:0!important}
.auth-story h1{font-size:48px;margin:14px 0 16px;max-width:330px}
.auth-story>p{font-size:14px;line-height:1.8}
.auth-steps{display:none}
.auth-panel{padding:24px 0 0;border-left:0;border-top:1px solid var(--line)}
.auth-panel h2{font-size:30px;margin-top:17px}
.auth-panel>p{font-size:14px}
.portal-container{padding-top:28px;padding-bottom:28px}
.portal-page-heading{align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:23px}
.portal-page-heading h1{font-size:39px}
.portal-page-heading p{font-size:14px}
.member-stack{grid-template-columns:1fr}
.member-card{padding:20px}
.member-project{padding:17px}
.member-project h3{font-size:23px}
.member-project-heading{gap:9px}
.portal-toolbar{padding-top:7px;gap:14px;align-items:flex-start}
.portal-view-tabs{gap:4px}
.portal-view-tabs button{font-size:14px;padding:6px 10px;min-height:32px}
.portal-toolbar>select{max-width:100%;width:100%}
.member-counts{gap:9px}
.member-count{padding:14px}
.member-count strong{font-size:28px}
.member-count span{font-size:14px}
.member-admin-panels th,.member-admin-panels td{padding:11px;font-size:14px}
.member-admin-panels .hide-mobile{display:none}
.member-portal .portal-footer{font-size:14px;padding-top:20px;padding-bottom:20px;flex-wrap:wrap}
.member-dialog-body{padding:20px}
.member-admin-panels .panel-heading{padding:16px}
.member-admin-panels .panel-heading .button{font-size:14px}
.member-project .project-meta{font-size:14px}
.portal-notice{padding:13px}
.portal-header-right>.portal-link{display:none}
}
.member-stack-main{display:grid;gap:22px;min-width:0}
.admin-project-grid{margin-top:24px}
.auth-return{margin-top:24px}
.member-portal .member-admin-panels .panel-heading{flex-wrap:wrap;gap:16px}
.member-portal .member-admin-panels .panel-heading>div{min-width:0}
.member-portal .member-admin-panels .panel-subtitle{max-width:580px}
.member-portal .member-admin-panels table{min-width:560px}
.member-portal .member-admin-panels td,.member-portal .member-admin-panels th{white-space:normal}
.member-portal .portal-header-right>span{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.member-portal dialog{max-height:88svh;overflow:auto}
.member-portal .portal-notice .text-link{margin-top:12px}
.member-portal .member-admin-panels .activity-list{overflow-wrap:anywhere}
.member-portal .auth-unavailable .inline-actions{margin-top:18px}
.member-portal .member-project-heading h3{overflow-wrap:anywhere}
.member-portal .auth-panel .help-text{font-size:14px;margin-top:8px}
.member-portal .auth-note{overflow-wrap:anywhere}
.auth-tabs>a{display:flex;align-items:center;justify-content:center;font-size:14px;padding:9px 0;color:var(--muted)}
.auth-tabs>a:hover{color:var(--fg)}
@media(max-width:650px){
.member-portal .portal-header-right>span{max-width:95px}
.member-portal .member-admin-panels .panel-heading .button{width:100%}
.member-portal .portal-header-right{flex-wrap:wrap;justify-content:flex-end}
.member-portal .member-admin-panels .panel-title{font-size:22px}
.member-portal .member-admin-panels .panel-subtitle{font-size:14px}
.member-portal .member-admin-panels .activity-list{padding:12px}
.member-portal .member-count span{font-size:14px}
}

/* Account pages share the assistant's readable scale. */
.member-portal input,.member-portal select,.member-portal textarea{font-size:16px;line-height:1.5}
.member-portal .field-label,.member-portal .auth-tabs>a,.member-portal .auth-tabs button{font-size:14px}
.member-portal .auth-story>p,.member-portal .auth-panel>p,.member-portal .member-card p,.member-portal .project-copy,.member-portal .portal-page-heading p{font-size:16px;line-height:1.8}
.member-portal .auth-note,.member-portal .auth-panel .help-text{font-size:14px;line-height:1.7}
.member-portal .button{font-size:15px;min-height:44px}
@media(max-width:650px){.member-portal input,.member-portal select,.member-portal textarea{font-size:16px}.member-portal .auth-story h1{font-size:45px}}

/* Public sign-in stays complete while the private account connection is off. */
.auth-entry .auth-layout{max-width:1440px;min-height:calc(100svh - var(--offsite-header-height,80px) - 86px);margin:0 auto;padding-top:60px;padding-bottom:60px;align-items:center;gap:clamp(48px,7vw,112px)}
.auth-entry .auth-story{padding:0}
.auth-entry .auth-story h1{font-size:clamp(56px,5.2vw,80px);line-height:1.02;max-width:510px;margin:24px 0}
.auth-entry .auth-story>p{font-size:18px;line-height:1.85;max-width:455px}
.auth-story-line{width:64px;height:2px;background:var(--offsite-signal);margin-top:32px}
.auth-entry .auth-panel{padding:12px 0 12px 44px;max-width:520px}
.auth-entry .auth-panel h2{font-size:42px;line-height:1.1;margin:16px 0 12px}
.auth-entry .auth-panel>p{font-size:17px;margin-bottom:24px}
.auth-entry .field-label{font-size:16px;font-weight:500;margin:0 0 10px}
.auth-entry fieldset{border:0;padding:0;margin:0;min-width:0}
.auth-entry #account-form .field-label:not(:first-child){margin-top:22px}
.auth-entry input{min-height:54px;font-size:17px;background:#fafaf8b3;padding:13px 16px}
.auth-entry input:disabled{color:var(--offsite-muted);opacity:.7;cursor:not-allowed}
.auth-password-label{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:24px}
.auth-password-label .text-link{font-size:14px;white-space:nowrap;text-underline-offset:4px}
.auth-entry .password-input button{top:10px;right:10px;font-size:14px;min-height:34px}
.auth-entry .auth-submit{display:flex;align-items:center;justify-content:space-between;min-height:54px;font-size:17px;padding:0 18px;margin-top:28px}
.auth-entry .auth-submit:disabled{background:var(--offsite-ink);border-color:var(--offsite-ink);color:var(--offsite-surface);opacity:.45;cursor:not-allowed}
.auth-entry .auth-note{font-size:16px;margin-top:28px;padding-top:22px}
.auth-entry .auth-note>a{display:inline-block}
.auth-entry .auth-note p{font-size:14px;line-height:1.7;margin-top:8px;color:var(--offsite-muted)}
.auth-connection{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0 0 22px;padding:12px 0 12px 14px;border-left:2px solid var(--offsite-signal);color:var(--offsite-muted);font-size:15px;line-height:1.6}
.auth-connection .text-link{font-size:14px;padding:0;min-height:32px;text-decoration:underline;text-underline-offset:4px}
.auth-entry [hidden]{display:none!important}
.auth-entry .auth-error{font-size:15px;line-height:1.6}
@media(max-width:900px){.auth-entry .auth-layout{gap:40px;padding-top:44px;padding-bottom:44px}.auth-entry .auth-panel{padding-left:28px}.auth-entry .auth-story h1{font-size:58px}}
@media(max-width:650px){.auth-entry .auth-layout{min-height:0;gap:0;padding-top:32px;padding-bottom:36px}.auth-entry .auth-story{display:none}.auth-entry .auth-panel{padding:0;max-width:none;border:0}.auth-entry .auth-panel h2{font-size:38px}.auth-entry input{font-size:17px}.auth-entry .portal-footer{font-size:13px;gap:12px}}
@media(max-width:360px){.auth-entry .auth-story h1{font-size:43px}.auth-password-label{gap:8px}.auth-password-label .text-link{font-size:13px}}

.invite-entry .auth-layout{align-items:start;padding-top:64px}
.invite-entry .auth-story{padding-top:80px}
.invite-entry #auth-form .field-label{margin-top:22px}
.invite-entry #auth-form .field-label:first-child{margin-top:0}
.auth-invite-existing{font-size:15px;line-height:1.8;color:var(--muted);border-left:2px solid var(--accent);padding-left:16px;margin:22px 0}
.invite-entry .auth-note .text-link{display:block;font-size:14px;margin-top:12px;color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.invite-entry .auth-panel .auth-note{font-size:14px;line-height:1.8}
@media(max-width:650px){.invite-entry .auth-layout{padding-top:32px}.invite-entry .auth-story{padding-top:0}}
