/* R22 · Quiet optical account and customer workspaces. Forms and source states
   remain live; decoration never substitutes for an account or system status. */
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog){
 --account-ink:#e8f1f7;--account-muted:#98adbd;--account-faint:#748da1;
 --account-floor:#08131e;--account-surface:#0c1b29;--account-raised:#122535;
 --account-line:rgba(120,168,195,.24);--account-soft:rgba(120,168,195,.12);
 --account-accent:#82cfe8;--account-amber:#e4b183;--account-good:#8bcbb7;
 --account-shadow:0 12px 40px rgba(0,6,13,.15);--text:var(--account-ink);--muted:var(--account-muted);--surface:var(--account-surface);--line:var(--account-line);--adaptive-muted:var(--account-muted);
 color:var(--account-ink);min-width:0;font-kerning:normal;letter-spacing:0;
}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog),
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) *{box-sizing:border-box}
html[data-ui="5"] .stage1-r22-account{width:100%;max-width:1260px;margin-inline:auto}
html[data-ui="5"] .stage1-r22-account .page-heading{display:flex;align-items:center;gap:20px;margin:0 0 24px!important;padding:0!important}
html[data-ui="5"] .stage1-r22-account .page-heading>div{min-width:0}
html[data-ui="5"] .stage1-r22-account .page-heading h1{font-size:clamp(28px,2.5vw,36px)!important;line-height:1.3!important;font-weight:560;letter-spacing:-.025em;margin:0 0 10px!important;color:var(--account-ink)}
html[data-ui="5"] .stage1-r22-account .page-heading .eyebrow{font-size:9px;letter-spacing:.14em;color:var(--account-faint);margin-bottom:9px}
html[data-ui="5"] .stage1-r22-account .page-heading p{font-size:13px!important;line-height:1.8!important;color:var(--account-muted);max-width:730px;margin:0}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) :is(.muted,.field small){color:var(--account-muted)!important}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--account-accent)!important;outline-offset:3px!important}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) .btn{min-width:44px;min-height:44px!important;border-radius:9px!important;font-size:13px;font-weight:500;line-height:1.6;box-shadow:none!important}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) .btn:is(.secondary,.ghost){background:var(--account-raised)!important;color:var(--account-ink)!important;border-color:var(--account-line)!important}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) .btn.ghost{background:transparent!important}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) .btn.primary{background:#b9ddeb!important;color:#102b3e!important;border:1px solid #d2ebf5!important;box-shadow:inset 0 1px #fff5!important}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) .field{min-width:0;max-width:100%;gap:7px}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) .field label{font-size:12px;line-height:1.6;font-weight:500;color:var(--account-ink)}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) .field :is(input,textarea,select){width:100%;min-width:0;max-width:100%;min-height:46px!important;padding:11px 13px!important;border:1px solid var(--account-line)!important;border-radius:9px!important;background:var(--account-floor)!important;color:var(--account-ink)!important;font-size:16px!important;line-height:1.7;box-shadow:inset 0 1px #d5eff805!important}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) .field :is(input,textarea,select):focus{border-color:var(--account-accent)!important}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) .field small{font-size:11px;line-height:1.8}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) :is(input,textarea)::placeholder{color:var(--account-faint);opacity:1}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) .notice{font-size:12px;line-height:1.9;border:1px solid var(--account-line);border-radius:9px;background:var(--account-raised);color:var(--account-muted)}
html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) .notice.error{color:#eaa9a5;border-color:#a96861}
html[data-ui="5"] .stage1-r22-account .panel{background:var(--account-surface)!important;border-color:var(--account-line)!important;box-shadow:var(--account-shadow)!important;border-radius:15px!important}
html[data-ui="5"] .stage1-r22-account .panel-head h2{font-size:19px!important;line-height:1.5!important;font-weight:550;color:var(--account-ink)}
html[data-ui="5"] .stage1-r22-account .panel-head p{font-size:13px;line-height:1.8;color:var(--account-muted)}
html[data-ui="5"] .stage1-r22-account :is(.table-scroll,.table-wrap){max-width:100%;overflow:auto;border:1px solid var(--account-line);border-radius:10px;background:var(--account-floor)}
html[data-ui="5"] .stage1-r22-account :is(th,td){border-bottom-color:var(--account-soft);font-size:12px;line-height:1.8;padding:14px 15px}
html[data-ui="5"] .stage1-r22-account th{color:var(--account-muted);font-size:11px;font-weight:500;background:var(--account-raised)}
html[data-ui="5"] .stage1-r22-account td{color:var(--account-ink)}

/* A compact identity above the editor replaces the competing profile column. */
html[data-ui="5"] .stage1-r22-profile .profile-layout{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:16px}
html[data-ui="5"] .stage1-r22-profile .r22-profile-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:22px;position:relative;top:auto;padding:24px 26px 0;border:1px solid var(--account-line);border-radius:15px;background:var(--account-surface);box-shadow:var(--account-shadow);overflow:hidden}
html[data-ui="5"] .stage1-r22-profile .r22-profile-summary>.profile-cover{position:absolute;inset:0;height:auto;pointer-events:none;background:linear-gradient(270deg,var(--account-surface) 33%,rgba(7,21,34,.88)),url('/brand/earth-cinematic-r20.png') left 58%/58% auto no-repeat;border:0;opacity:.7}
html[data-ui="5"] .stage1-r22-profile .r22-profile-summary>.profile-cover:after{width:86px;height:1px;inset:0 26px auto auto;background:linear-gradient(90deg,transparent,var(--account-accent),transparent)}
html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-main{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:20px;min-width:0}
html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-main>.code-avatar{margin:0;border:1px solid var(--account-line);box-shadow:0 0 0 5px rgba(124,185,212,.035);background:var(--account-floor);color:var(--account-ink)}
html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-main>div{min-width:0}
html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-main h2{font-size:25px;line-height:1.35;font-weight:550;letter-spacing:-.025em;margin:0 0 5px;overflow-wrap:anywhere}
html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-main p{font-size:12px;line-height:1.8;color:var(--account-muted);margin:3px 0;overflow-wrap:anywhere}
html[data-ui="5"] .stage1-r22-profile .r22-profile-handle{font-size:11px!important;text-align:start}
html[data-ui="5"] .stage1-r22-profile .profile-status{max-width:100%;font-size:10px;line-height:1.6;white-space:normal;color:var(--account-muted);border:1px solid var(--account-line);background:var(--account-floor);padding:5px 8px;margin:0}
html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-tools{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:5px;max-width:240px}
html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-tools .btn{width:auto;margin:0;font-size:12px}
html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-tools>a{display:flex;min-height:44px;align-items:center;justify-content:center;color:var(--account-accent);font-size:12px}
html[data-ui="5"] .stage1-r22-profile .r22-profile-context{position:relative;grid-column:1/-1;border-top:1px solid var(--account-soft);margin-top:22px;min-width:0}
html[data-ui="5"] .stage1-r22-profile .r22-profile-context>summary{display:flex;gap:8px;align-items:center;min-height:44px;padding:10px 0;font-size:11px;color:var(--account-muted);cursor:pointer;list-style:none}
html[data-ui="5"] .stage1-r22-profile .r22-profile-context>summary:after{content:'+';margin-inline-start:auto;color:var(--account-accent);font-size:18px;font-weight:300}
html[data-ui="5"] .stage1-r22-profile .r22-profile-context[open]>summary:after{content:'−'}
html[data-ui="5"] .stage1-r22-profile .r22-profile-context>div{padding:2px 0 18px;display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap}
html[data-ui="5"] .stage1-r22-profile .r22-profile-context :is(p,.profile-company,.chips){margin:0;font-size:12px}
html[data-ui="5"] .stage1-r22-profile .r22-profile-context .chip{font-size:11px;background:transparent;border-color:var(--account-line)}
html[data-ui="5"] .stage1-r22-profile .profile-edit{padding:0 28px 24px;border:1px solid var(--account-line);border-radius:15px;background:var(--account-surface);box-shadow:var(--account-shadow)}
html[data-ui="5"] .stage1-r22-profile .identity-tabs{gap:18px;margin:0 0 24px!important;border-color:var(--account-line);min-width:0;scrollbar-width:thin}
html[data-ui="5"] .stage1-r22-profile .identity-tabs button{min-height:54px;padding:15px 4px 13px;font-size:13px;color:var(--account-muted);font-weight:450}
html[data-ui="5"] .stage1-r22-profile .identity-tabs button[aria-selected="true"]{color:var(--account-ink);border-bottom-color:var(--account-accent);font-weight:550}
html[data-ui="5"] .stage1-r22-profile .identity-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
html[data-ui="5"] .stage1-r22-profile .profile-edit .field{margin-bottom:22px}
html[data-ui="5"] .stage1-r22-profile .profile-edit textarea{min-height:140px}
html[data-ui="5"] .stage1-r22-profile .avatar-editor-row{gap:14px;padding:0 0 20px;margin:0 0 24px;border-color:var(--account-soft)}
html[data-ui="5"] .stage1-r22-profile .avatar-editor-row .code-avatar{width:46px!important;height:46px!important;font-size:18px!important;border:1px solid var(--account-line)}
html[data-ui="5"] .stage1-r22-profile .avatar-editor-row strong{font-size:13px;font-weight:500}
html[data-ui="5"] .stage1-r22-profile .avatar-editor-row p{font-size:11px;margin:5px 0 0}
html[data-ui="5"] .stage1-r22-profile .profile-edit .form-actions{padding-top:20px;border-color:var(--account-line);gap:15px;justify-content:flex-start}
html[data-ui="5"] .stage1-r22-profile .profile-edit .form-actions>.btn{min-width:180px}
html[data-ui="5"] .stage1-r22-profile .profile-project-editor{border:0;border-top:1px solid var(--account-line);border-radius:0;background:transparent;padding:23px 0 0;margin:20px 0}
html[data-ui="5"] .stage1-r22-profile .profile-link-editor{padding:16px 0;border-bottom:1px solid var(--account-soft)}
html[data-ui="5"] .stage1-r22-profile .profile-publish{padding:18px;border:1px solid var(--account-line);border-radius:10px;background:var(--account-floor);align-items:flex-start}
html[data-ui="5"] .stage1-r22-profile .profile-publish input{margin-top:4px;accent-color:var(--account-accent)}
html[data-ui="5"] .stage1-r22-public-profile .public-profile-card{border-color:var(--account-line);border-radius:18px;background:var(--account-surface);box-shadow:var(--account-shadow)}
html[data-ui="5"] .stage1-r22-public-profile .profile-cover{height:120px;background:linear-gradient(115deg,#293b4b,#142330 65%,#293a46);border-color:var(--account-line)}

/* Provider inventory is read as rows, with full configuration truth visible. */
html[data-ui="5"] .stage1-r22-connections>.r22-account-chapter{padding:0!important;overflow:hidden;margin-bottom:20px!important}
html[data-ui="5"] .stage1-r22-connections .r22-account-chapter>.panel-head{padding:23px 26px!important;border-bottom:1px solid var(--account-line);margin:0!important;background:linear-gradient(100deg,var(--account-raised),var(--account-surface));align-items:center}
html[data-ui="5"] .stage1-r22-connections .panel-head h2{font-size:18px!important;margin:0 0 7px}
html[data-ui="5"] .stage1-r22-connections .panel-head p{font-size:12px;max-width:650px;margin:0}
html[data-ui="5"] .stage1-r22-connections .connection-grid{display:block;padding:0 26px}
html[data-ui="5"] .stage1-r22-connections .connection-card{--provider-tone:var(--account-faint);display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:20px;min-width:0;padding:23px 0;border:0;border-bottom:1px solid var(--account-soft);border-radius:0;background:transparent}
html[data-ui="5"] .stage1-r22-connections .connection-card:last-child{border-bottom:0}
html[data-ui="5"] .stage1-r22-connections .connection-card[data-connection-state="linked"]{--provider-tone:var(--account-accent)}
html[data-ui="5"] .stage1-r22-connections .connection-card[data-connection-state="reachable"]{--provider-tone:var(--account-good)}
html[data-ui="5"] .stage1-r22-connections .connection-card:is([data-connection-state="ready"],[data-connection-state="model_unconfirmed"]){--provider-tone:var(--account-amber)}
html[data-ui="5"] .stage1-r22-connections .connection-card[data-connection-state="failed"]{--provider-tone:#dea29a}
html[data-ui="5"] .stage1-r22-connections .provider-monogram{width:42px;height:42px;border:1px solid var(--account-line);background:var(--account-raised);border-radius:12px;font-size:20px;color:var(--account-ink);font-weight:500}
html[data-ui="5"] .stage1-r22-connections .r22-provider-copy{min-width:0}
html[data-ui="5"] .stage1-r22-connections .connection-card h3{font-size:16px;line-height:1.5;font-weight:550;margin:0 0 5px;color:var(--account-ink)}
html[data-ui="5"] .stage1-r22-connections .connection-card p{font-size:12px;line-height:1.8;margin:3px 0;color:var(--account-muted);overflow-wrap:anywhere}
html[data-ui="5"] .stage1-r22-connections .connection-card small{display:block;font-size:11px;line-height:1.75;color:var(--account-muted);max-width:600px;overflow-wrap:anywhere}
html[data-ui="5"] .stage1-r22-connections .connection-card .connection-state{display:flex;align-items:baseline;gap:7px;color:var(--provider-tone);font-size:12px}
html[data-ui="5"] .stage1-r22-connections .connection-state:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor;flex:0 0 4px;align-self:center}
html[data-ui="5"] .stage1-r22-connections .connection-card>.btn{width:auto;min-width:120px;margin:0;font-size:12px}
html[data-ui="5"] .stage1-r22-connections .r22-ai-provider{grid-template-columns:minmax(0,1fr) auto;gap:22px}
html[data-ui="5"] .stage1-r22-connections .r22-ai-provider .inline-between{justify-content:flex-start;gap:12px;flex-wrap:wrap}
html[data-ui="5"] .stage1-r22-connections .r22-ai-provider .chip{font-size:10px;padding:3px 7px;background:transparent;border-color:var(--account-line);color:var(--account-muted)}
html[data-ui="5"] .stage1-r22-connections .connection-actions{margin:0;padding:0;gap:4px;max-width:290px}
html[data-ui="5"] .stage1-r22-connections .connection-actions .btn{min-height:44px;font-size:12px;padding-inline:10px}
html[data-ui="5"] .stage1-r22-connections .r22-account-chapter>p{padding:15px 26px;margin:0;border-top:1px solid var(--account-soft);font-size:11px;line-height:1.8}
html[data-ui="5"] .stage1-r22-connections .empty{padding:35px 25px!important}

/* Authentication shares the brand scene; the form remains the focal point. */
html[data-ui="5"] .stage1-r22-auth{display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(340px,1fr)!important;max-width:1160px!important;min-height:640px!important;margin:48px auto!important;border:1px solid var(--account-line);border-radius:20px;background:var(--account-surface);box-shadow:var(--account-shadow);overflow:hidden}
html[data-ui="5"] .stage1-r22-auth .auth-art{position:relative;display:flex!important;flex-direction:column;align-items:flex-start;text-align:start;min-width:0;padding:34px!important;border:0!important;border-inline-end:1px solid var(--account-line)!important;background:#03101c!important;isolation:isolate;overflow:hidden}
html[data-ui="5"] .stage1-r22-auth .auth-art:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(1,9,18,.15),rgba(1,9,18,.06) 40%,rgba(1,9,18,.94) 89%);z-index:-1;pointer-events:none}
html[data-ui="5"] .stage1-r22-auth .r22-auth-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% center;z-index:-2;opacity:.78}
html[data-ui="5"] .stage1-r22-auth .auth-art>.brand{opacity:1;align-self:flex-start;position:relative;color:#f1f7fa}
html[data-ui="5"] .stage1-r22-auth .auth-art>.brand strong{font-size:14px;letter-spacing:.16em}
html[data-ui="5"] .stage1-r22-auth .auth-art>.brand small{font-size:7px;color:#a6bdcc}
html[data-ui="5"] .stage1-r22-auth .r22-auth-art-caption{font-size:8px;letter-spacing:.2em;color:#acbdca;margin-top:25px}
html[data-ui="5"] .stage1-r22-auth .auth-art h2{font-size:clamp(34px,3.5vw,47px)!important;line-height:1.19!important;font-weight:540;letter-spacing:-.03em;color:#f1f7fb;margin:auto 0 16px!important;padding-top:160px;text-shadow:0 2px 14px #0004}
html[data-ui="5"] .stage1-r22-auth .auth-art p{font-size:13px;line-height:1.8;color:#b0c4d2;margin:0;max-width:310px}
html[data-ui="5"] .stage1-r22-auth .auth-form-wrap{width:100%;min-width:0;max-width:none!important;min-height:0!important;padding:44px clamp(24px,4vw,55px)!important;align-self:center;background:var(--account-surface)}
html[data-ui="5"] .stage1-r22-auth .r22-auth-context{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--account-muted);margin-bottom:26px}
html[data-ui="5"] .stage1-r22-auth .r22-auth-context svg{color:var(--account-accent)}
html[data-ui="5"] .stage1-r22-auth .auth-form-wrap>.eyebrow{font-size:8px;letter-spacing:.15em;color:var(--account-faint);margin-bottom:10px}
html[data-ui="5"] .stage1-r22-auth .auth-form-wrap h1{font-size:33px!important;line-height:1.3!important;letter-spacing:-.03em;font-weight:550;color:var(--account-ink);margin:0 0 12px!important}
html[data-ui="5"] .stage1-r22-auth .auth-form-wrap>.muted{font-size:13px!important;line-height:1.85!important;margin:0 0 26px}
html[data-ui="5"] .stage1-r22-auth .form .field{margin-bottom:18px}
html[data-ui="5"] .stage1-r22-auth .form-actions{margin-top:24px}
html[data-ui="5"] .stage1-r22-auth .form-actions>.btn{min-height:48px!important;font-size:14px}
html[data-ui="5"] .stage1-r22-auth .auth-links{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:12px 0;color:var(--account-accent)}
html[data-ui="5"] .stage1-r22-auth .auth-links a,html[data-ui="5"] .stage1-r22-auth .back-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:var(--account-accent)}
html[data-ui="5"] .stage1-r22-auth .auth-trust{font-size:11px;line-height:1.7;color:var(--account-faint);margin-top:15px;padding-top:18px;border-color:var(--account-soft)}
html[data-ui="5"] .stage1-r22-auth .auth-trust svg{color:var(--account-accent);flex:none}
html[data-ui="5"] .stage1-r22-auth .external-login{gap:8px;margin:20px 0;border-color:var(--account-soft)}
html[data-ui="5"] .stage1-r22-auth .external-login small{font-size:11px}
html[data-ui="5"] .stage1-r22-registration-closed{max-width:760px;padding:40px!important;margin:45px auto;border:1px solid var(--account-line);border-radius:18px;background:var(--account-surface)}
html[data-ui="5"] .stage1-r22-onboarding .stepper{padding:22px;border:1px solid var(--account-line);border-radius:14px;background:var(--account-surface);box-shadow:none;gap:16px}
html[data-ui="5"] .stage1-r22-onboarding .step.current>span{background:var(--account-accent);color:var(--account-floor);box-shadow:none}
html[data-ui="5"] .stage1-r22-onboarding :is(.module-option,.plan-option){background:var(--account-floor);border-color:var(--account-line);border-radius:10px}
html[data-ui="5"] .stage1-r22-onboarding :is(.module-option,.plan-option).selected{background:var(--account-raised);border-color:var(--account-accent)}

/* Customer context, tools, tabs and records form one continuous workbench. */
html[data-ui="5"] .stage1-r22-workspace .workspace-breadcrumb{font-size:11px;color:var(--account-faint);margin:0 0 15px;gap:7px}
html[data-ui="5"] .stage1-r22-workspace .workspace-breadcrumb a{min-height:44px;display:inline-flex;align-items:center;color:var(--account-muted)}
html[data-ui="5"] .stage1-r22-workspace .customer-workspace-head{gap:18px;margin:0!important;padding:25px 26px 18px;border:1px solid var(--account-line);border-bottom:0;border-radius:16px 16px 0 0;background:linear-gradient(115deg,var(--account-raised),var(--account-surface) 65%)}
html[data-ui="5"] .stage1-r22-workspace .identity-line{gap:16px;width:100%}
html[data-ui="5"] .stage1-r22-workspace .customer-monogram.large{width:52px;height:52px;border:1px solid var(--account-line);border-radius:15px;background:var(--account-floor);color:var(--account-accent);font-size:25px;font-weight:450}
html[data-ui="5"] .stage1-r22-workspace .identity-line .eyebrow{font-size:8px;letter-spacing:.15em;color:var(--account-faint)}
html[data-ui="5"] .stage1-r22-workspace .identity-line h1{font-size:30px!important;line-height:1.25!important;letter-spacing:-.03em;font-weight:560;margin:6px 0 10px;color:var(--account-ink)}
html[data-ui="5"] .stage1-r22-workspace .entity-metadata{font-size:11px;line-height:1.7;gap:9px;color:var(--account-muted)}
html[data-ui="5"] .stage1-r22-workspace .entity-metadata code{font-size:10px;color:var(--account-faint)}
html[data-ui="5"] .stage1-r22-workspace .r22-workspace-actions{display:flex;flex-wrap:nowrap;overflow:auto;width:100%;min-width:0;gap:4px;padding-top:12px;border-top:1px solid var(--account-soft);scrollbar-width:thin}
html[data-ui="5"] .stage1-r22-workspace .r22-workspace-actions .btn{flex:0 0 auto!important;min-height:44px;white-space:nowrap;padding:8px 12px;font-size:12px;background:transparent!important;border-color:transparent!important;color:var(--account-muted)!important}
html[data-ui="5"] .stage1-r22-workspace .r22-workspace-actions .btn:is(:hover,[aria-expanded="true"]){background:var(--account-raised)!important;color:var(--account-ink)!important}
html[data-ui="5"] .stage1-r22-workspace .r22-workspace-actions svg{color:var(--account-accent);width:16px;height:16px}
html[data-ui="5"] .stage1-r22-workspace .workspace-body{display:block}
html[data-ui="5"] .stage1-r22-workspace .workspace-record{border:1px solid var(--account-line);border-top:0;border-radius:0 0 16px 16px;background:var(--account-surface);box-shadow:var(--account-shadow);overflow:hidden}
html[data-ui="5"] .stage1-r22-workspace .adaptive-tabs{gap:4px;margin:0!important;padding:0 22px!important;background:var(--account-surface);border-top:1px solid var(--account-soft);border-bottom:1px solid var(--account-line)}
html[data-ui="5"] .stage1-r22-workspace .adaptive-tabs button{min-height:53px;padding:13px 10px;font-size:12px;color:var(--account-muted);border-bottom-width:2px;gap:6px}
html[data-ui="5"] .stage1-r22-workspace .adaptive-tabs button[aria-selected="true"]{color:var(--account-ink);border-bottom-color:var(--account-accent)}
html[data-ui="5"] .stage1-r22-workspace .adaptive-tabs button:hover{background:var(--account-raised)}
html[data-ui="5"] .stage1-r22-workspace .adaptive-tabs button>span{background:transparent;border:1px solid var(--account-line);border-radius:4px;color:var(--account-faint);font-size:9px;padding:1px 4px}
html[data-ui="5"] .stage1-r22-workspace .workspace-tab-panel{padding:25px 26px;min-height:320px}
html[data-ui="5"] .stage1-r22-workspace .customer-overview{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:24px}
html[data-ui="5"] .stage1-r22-workspace :is(.customer-context-card,.followup-list,.setup-checklist){padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html[data-ui="5"] .stage1-r22-workspace .customer-context-card{border-inline-start:1px solid var(--account-soft)!important;padding-inline-start:24px!important}
html[data-ui="5"] .stage1-r22-workspace :is(.customer-context-card,.followup-list,.setup-checklist) h2{font-size:18px;line-height:1.5;font-weight:550;color:var(--account-ink);margin:0 0 18px}
html[data-ui="5"] .stage1-r22-workspace .followup-list{border-top:1px solid var(--account-line)!important;padding-top:24px!important}
html[data-ui="5"] .stage1-r22-workspace .entity-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px;padding-top:20px;border-color:var(--account-soft)}
html[data-ui="5"] .stage1-r22-workspace .entity-summary strong{font-size:25px;font-weight:500;color:var(--account-ink);font-variant-numeric:tabular-nums}
html[data-ui="5"] .stage1-r22-workspace .entity-summary span{font-size:10px;color:var(--account-muted)}
html[data-ui="5"] .stage1-r22-workspace :is(.followup-list article,.system-workspace-row,.workspace-conversations>article,.ops-task-list>article){border-color:var(--account-soft);padding-block:18px;color:var(--account-ink);background:transparent}
html[data-ui="5"] .stage1-r22-workspace .section-bar{gap:14px;flex-wrap:wrap;margin-bottom:20px;align-items:center}
html[data-ui="5"] .stage1-r22-workspace .section-bar h2{font-size:20px;line-height:1.5;letter-spacing:-.015em;font-weight:550;color:var(--account-ink)}
html[data-ui="5"] .stage1-r22-workspace .section-bar .btn{font-size:12px}
html[data-ui="5"] .stage1-r22-workspace .system-workspace-row{min-height:86px;border-radius:0;padding-inline:12px}
html[data-ui="5"] .stage1-r22-workspace .system-workspace-row:is(:hover,.selected){background:var(--account-raised)}
html[data-ui="5"] .stage1-r22-workspace .system-workspace-row strong{font-size:15px;font-weight:500}
html[data-ui="5"] .stage1-r22-workspace .system-icon{border:1px solid var(--account-line);background:var(--account-floor);color:var(--account-accent);border-radius:10px}
html[data-ui="5"] .stage1-r22-workspace .installation-inspector{background:var(--account-floor);border-color:var(--account-line);border-radius:12px}
html[data-ui="5"] .stage1-r22-workspace .installation-evidence{border-color:var(--account-soft)}
html[data-ui="5"] .stage1-r22-workspace .entity-footer{margin:0;padding:13px 26px;border-color:var(--account-line);font-size:10px;color:var(--account-faint);background:var(--account-floor)}
html[data-ui="5"] .stage1-r22-workspace .entity-footer .btn{font-size:11px}
html[data-ui="5"] .stage1-r22-workspace .ops-doc-list{display:block}
html[data-ui="5"] .stage1-r22-workspace .ops-doc-list>article{padding:20px 0;border:0;border-top:1px solid var(--account-line);border-radius:0;background:transparent;color:var(--account-ink)}
html[data-ui="5"] .stage1-r22-workspace .ops-doc-list>article:first-child{border-top:0}

/* Native dialogs preserve the complete record behind each focused task. */
html[data-ui="5"] .modal.stage1-r22-account-dialog{width:min(740px,calc(100% - 28px))!important;max-width:740px!important;max-height:calc(100dvh - 32px)!important;margin:auto!important;padding:24px!important;border:1px solid var(--account-line)!important;border-radius:16px!important;background:var(--account-surface)!important;color:var(--account-ink)!important;box-shadow:0 24px 90px #0006!important;overflow:auto!important}
html[data-ui="5"] .modal.stage1-r22-account-dialog>.modal-head{position:sticky;z-index:3;top:-24px;margin:-24px -24px 24px!important;padding:15px 24px!important;border-bottom:1px solid var(--account-line);background:var(--account-surface)}
html[data-ui="5"] .stage1-r22-account-dialog>.modal-head h2{font-size:20px!important;line-height:1.5!important;font-weight:550;color:var(--account-ink);min-width:0;overflow-wrap:anywhere}
html[data-ui="5"] .stage1-r22-account-dialog>.modal-head>.btn{flex:0 0 44px;width:44px;min-height:44px}
html[data-ui="5"] .stage1-r22-account-dialog .public-profile-card{background:var(--account-floor);border-color:var(--account-line);border-radius:13px}
html[data-ui="5"] .stage1-r22-account-dialog .public-profile-card .profile-cover{height:78px}
html[data-ui="5"] .stage1-r22-account-dialog .proposal-context{background:var(--account-raised);color:var(--account-muted);border:1px solid var(--account-line)}
html[data-ui="5"] .stage1-r22-account-dialog .proposal-diff{background:var(--account-floor);border-color:var(--account-line)}
html[data-ui="5"] .stage1-r22-account-dialog .proposal-diff dt{color:var(--account-muted)}
html[data-ui="5"] .stage1-r22-account-dialog .proposal-diff dd{color:var(--account-ink)}
html[data-ui="5"] .r22-copilot-dialog .entity-copilot{display:flex;flex-direction:column;position:static;width:100%;max-width:none;max-height:none;min-width:0;border:0;border-radius:0;background:transparent;overflow:visible}
html[data-ui="5"] .r22-copilot-dialog :is(.copilot-context,.copilot-mode){padding-inline:0;color:var(--account-muted)}
html[data-ui="5"] .r22-copilot-dialog .copilot-context{padding-top:0}
html[data-ui="5"] .r22-copilot-dialog .copilot-context small{color:var(--account-faint)}
html[data-ui="5"] .r22-copilot-dialog .copilot-transcript{padding:18px 0;min-height:170px;max-height:42dvh;overflow:auto}
html[data-ui="5"] .r22-copilot-dialog .copilot-welcome{padding:10px 15px}
html[data-ui="5"] .r22-copilot-dialog .copilot-welcome>img{width:38px;height:38px;opacity:.9}
html[data-ui="5"] .r22-copilot-dialog .copilot-welcome h2{font-size:21px;font-weight:500;color:var(--account-ink)}
html[data-ui="5"] .r22-copilot-dialog .copilot-welcome p{font-size:13px;color:var(--account-muted)}
html[data-ui="5"] .r22-copilot-dialog .copilot-message.question{background:var(--account-raised);border:1px solid var(--account-soft);border-radius:10px}
html[data-ui="5"] .r22-copilot-dialog .copilot-message details{color:var(--account-muted)}
html[data-ui="5"] .r22-copilot-dialog .copilot-message summary{min-height:44px;display:flex;align-items:center}
html[data-ui="5"] .r22-copilot-dialog .copilot-prompts{padding:10px 0;flex-wrap:nowrap;overflow:auto;border-color:var(--account-line);scrollbar-width:thin}
html[data-ui="5"] .r22-copilot-dialog .copilot-prompts>.btn{flex:0 0 auto;min-height:44px!important;font-size:11px;white-space:nowrap}
html[data-ui="5"] .r22-copilot-dialog .context-composer{padding:14px 0 0;border-color:var(--account-line)}
html[data-ui="5"] .r22-copilot-dialog .context-composer textarea{font-size:16px;background:var(--account-floor);color:var(--account-ink);border-color:var(--account-line);border-radius:10px;min-height:65px;line-height:1.7}

@media(max-width:1000px){
 html[data-ui="5"] .stage1-r22-auth{grid-template-columns:minmax(0,.85fr) minmax(0,1fr)!important;margin:28px 20px!important;width:calc(100% - 40px)!important;min-height:580px!important}
 html[data-ui="5"] .stage1-r22-auth .auth-art{padding:26px!important}
 html[data-ui="5"] .stage1-r22-auth .auth-form-wrap{padding:32px!important}
 html[data-ui="5"] .stage1-r22-profile .r22-profile-summary{grid-template-columns:minmax(0,1fr);gap:18px;padding:22px 22px 0}
 html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-tools{flex-direction:row;max-width:none;flex-wrap:wrap}
 html[data-ui="5"] .stage1-r22-profile .r22-profile-context{margin-top:0}
 html[data-ui="5"] .stage1-r22-connections .r22-ai-provider{grid-template-columns:minmax(0,1fr)}
 html[data-ui="5"] .stage1-r22-connections .connection-actions{max-width:none}
}
@media(max-width:680px){
 html[data-ui="5"] .stage1-r22-account .page-heading{margin-bottom:20px!important;flex-wrap:wrap}
 html[data-ui="5"] .stage1-r22-account .page-heading h1{font-size:27px!important}
 html[data-ui="5"] .stage1-r22-account .page-heading p{font-size:12px!important}
 html[data-ui="5"] .stage1-r22-profile .r22-profile-summary{padding:18px 15px 0;gap:14px;border-radius:12px}
 html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-main{grid-template-columns:52px minmax(0,1fr);gap:12px 14px}
 html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-main>.code-avatar{width:52px!important;height:52px!important;font-size:21px!important;grid-row:1/3}
 html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-main h2{font-size:23px}
 html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-main .profile-status{grid-column:2;justify-self:start;font-size:10px}
 html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-tools{gap:4px}
 html[data-ui="5"] .stage1-r22-profile .r22-profile-summary-tools .btn{font-size:11px;padding:8px 12px}
 html[data-ui="5"] .stage1-r22-profile .profile-edit{padding:0 16px 19px;border-radius:12px}
 html[data-ui="5"] .stage1-r22-profile .identity-tabs{gap:14px;margin-bottom:20px!important}
 html[data-ui="5"] .stage1-r22-profile .identity-tabs button{font-size:12px;min-height:50px}
 html[data-ui="5"] .stage1-r22-profile .identity-fields{grid-template-columns:minmax(0,1fr);gap:0}
 html[data-ui="5"] .stage1-r22-profile .avatar-editor-row{flex-wrap:wrap;gap:12px;margin-bottom:20px}
 html[data-ui="5"] .stage1-r22-profile .avatar-editor-row>.btn{margin-inline-start:60px;width:auto;font-size:11px}
 html[data-ui="5"] .stage1-r22-profile .profile-edit .form-actions>.btn{width:100%;min-width:0}
 html[data-ui="5"] .stage1-r22-profile .profile-link-editor{grid-template-columns:minmax(0,1fr)}
 html[data-ui="5"] .stage1-r22-profile .profile-publish{padding:14px;font-size:13px}
 html[data-ui="5"] .stage1-r22-connections .r22-account-chapter>.panel-head{padding:19px 16px!important;gap:13px}
 html[data-ui="5"] .stage1-r22-connections .panel-head h2{font-size:17px!important}
 html[data-ui="5"] .stage1-r22-connections .panel-head p{font-size:12px}
 html[data-ui="5"] .stage1-r22-connections .connection-grid{padding:0 16px}
 html[data-ui="5"] .stage1-r22-connections .r22-login-provider{grid-template-columns:36px minmax(0,1fr);gap:13px;padding:20px 0}
 html[data-ui="5"] .stage1-r22-connections .provider-monogram{width:36px;height:36px;font-size:17px;align-self:start}
 html[data-ui="5"] .stage1-r22-connections .r22-login-provider>.btn{grid-column:2;justify-self:start;min-width:0;max-width:100%;font-size:11px;padding:8px 12px}
 html[data-ui="5"] .stage1-r22-connections .r22-ai-provider{gap:13px;padding:20px 0}
 html[data-ui="5"] .stage1-r22-connections .connection-actions{gap:3px;flex-wrap:wrap}
 html[data-ui="5"] .stage1-r22-connections .connection-actions .btn{font-size:11px;padding:8px 9px}
 html[data-ui="5"] .stage1-r22-connections .r22-account-chapter>p{padding:15px 16px}
 html[data-ui="5"] .stage1-r22-auth{display:block!important;width:calc(100% - 24px)!important;margin:18px 12px 30px!important;min-height:0!important;border-radius:15px}
 html[data-ui="5"] .stage1-r22-auth .auth-art{display:block!important;padding:18px 21px!important;border-inline-end:0!important;border-bottom:1px solid var(--account-line)!important;min-height:0!important;background:var(--account-raised)!important}
 html[data-ui="5"] .stage1-r22-auth .auth-art :is(.r22-auth-scene,h2,p,.r22-auth-art-caption){display:none!important}
 html[data-ui="5"] .stage1-r22-auth .auth-art:after{display:none}
 html[data-ui="5"] .stage1-r22-auth .auth-art .brand{gap:11px}
 html[data-ui="5"] .stage1-r22-auth .auth-art .brand img{width:35px;height:35px}
 html[data-ui="5"] .stage1-r22-auth .auth-art .brand strong{font-size:12px;color:var(--account-ink)}
 html[data-ui="5"] .stage1-r22-auth .auth-art .brand small{font-size:6px;color:var(--account-muted)}
 html[data-ui="5"] .stage1-r22-auth .auth-form-wrap{padding:24px 21px!important;min-height:0!important}
 html[data-ui="5"] .stage1-r22-auth .r22-auth-context{margin-bottom:22px;font-size:10px}
 html[data-ui="5"] .stage1-r22-auth .auth-form-wrap h1{font-size:30px!important}
 html[data-ui="5"] .stage1-r22-auth .auth-form-wrap>.muted{font-size:12px!important}
 html[data-ui="5"] .stage1-r22-registration-closed{padding:26px 20px!important;margin:24px 12px;width:calc(100% - 24px)}
 html[data-ui="5"] .stage1-r22-onboarding .stepper{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:14px}
 html[data-ui="5"] .stage1-r22-workspace .customer-workspace-head{padding:20px 15px 12px;gap:15px}
 html[data-ui="5"] .stage1-r22-workspace .identity-line{gap:12px;align-items:flex-start}
 html[data-ui="5"] .stage1-r22-workspace .customer-monogram.large{width:42px;height:42px;border-radius:12px;font-size:21px}
 html[data-ui="5"] .stage1-r22-workspace .identity-line h1{font-size:25px!important}
 html[data-ui="5"] .stage1-r22-workspace .entity-metadata{font-size:10px;gap:7px}
 html[data-ui="5"] .stage1-r22-workspace .r22-workspace-actions .btn{font-size:11px;padding-inline:9px}
 html[data-ui="5"] .stage1-r22-workspace .adaptive-tabs{padding-inline:8px!important}
 html[data-ui="5"] .stage1-r22-workspace .adaptive-tabs button{font-size:11px;min-height:50px;padding-inline:9px}
 html[data-ui="5"] .stage1-r22-workspace .workspace-tab-panel{padding:21px 15px}
 html[data-ui="5"] .stage1-r22-workspace .customer-overview{grid-template-columns:minmax(0,1fr);gap:23px}
 html[data-ui="5"] .stage1-r22-workspace .customer-context-card{border-inline-start:0!important;padding-inline-start:0!important;border-top:1px solid var(--account-line)!important;padding-top:23px!important}
 html[data-ui="5"] .stage1-r22-workspace .entity-footer{padding:12px 15px;gap:6px 10px}
 html[data-ui="5"] .stage1-r22-workspace .section-bar h2{font-size:18px}
 html[data-ui="5"] .stage1-r22-workspace .system-workspace-row{padding-inline:5px}
 html[data-ui="5"] .stage1-r22-workspace .system-workspace-row strong{font-size:14px}
 html[data-ui="5"] .stage1-r22-workspace .followup-list article{align-items:flex-start;flex-wrap:wrap;gap:10px}
 html[data-ui="5"] .stage1-r22-workspace .followup-list article>div{flex:1 1 160px}
 html[data-ui="5"] .modal.stage1-r22-account-dialog{width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;max-height:calc(100dvh - 20px)!important;padding:18px 15px!important;border-radius:13px!important}
 html[data-ui="5"] .modal.stage1-r22-account-dialog>.modal-head{top:-18px;margin:-18px -15px 20px!important;padding:12px 15px!important;gap:12px}
 html[data-ui="5"] .stage1-r22-account-dialog>.modal-head h2{font-size:18px!important}
 html[data-ui="5"] .r22-copilot-dialog .copilot-transcript{max-height:38dvh}
 html[data-ui="5"] .stage1-r22-account-dialog .proposal-diff>div{grid-template-columns:minmax(0,1fr);gap:5px}
 html[data-ui="5"] .stage1-r22-account-dialog .form-actions{flex-wrap:wrap;gap:8px}
 html[data-ui="5"] .stage1-r22-account-dialog .form-actions>.btn{flex:1 1 120px}
}
@media(max-width:360px){
 html[data-ui="5"] .stage1-r22-profile .profile-edit{padding-inline:12px}
 html[data-ui="5"] .stage1-r22-profile .r22-profile-summary{padding-inline:12px}
 html[data-ui="5"] .stage1-r22-workspace .workspace-tab-panel{padding-inline:12px}
 html[data-ui="5"] .stage1-r22-auth .auth-form-wrap{padding-inline:17px!important}
 html[data-ui="5"] .stage1-r22-connections .connection-actions .btn{padding-inline:7px}
}

/* Day and reduced effects are first-class forms of the same work surface. */
html[data-ui="5"][data-theme="light"] :is(.stage1-r22-account,.stage1-r22-account-dialog){--account-ink:#203849;--account-muted:#567080;--account-faint:#617e90;--account-floor:#f6fafc;--account-surface:#ffffff;--account-raised:#eaf1f5;--account-line:rgba(84,126,151,.27);--account-soft:rgba(84,126,151,.14);--account-accent:#296b89;--account-amber:#94602a;--account-good:#357865;--account-shadow:0 10px 35px rgba(24,53,73,.05)}
html[data-ui="5"][data-theme="light"] .stage1-r22-profile .r22-profile-summary>.profile-cover{background:linear-gradient(100deg,#e7f1f5,#fff);opacity:1}
html[data-ui="5"][data-theme="light"] .stage1-r22-connections .connection-card[data-connection-state="failed"]{--provider-tone:#a24c43}
html[data-ui="5"][data-theme="light"] :is(.stage1-r22-account,.stage1-r22-account-dialog) .notice.error{color:#a24c43;border-color:#bd827a}
html[data-ui="5"][data-theme="light"] .stage1-r22-public-profile .profile-cover{background:linear-gradient(115deg,#dbe9f0,#eaf2f7)}
html[data-ui="5"]:is([data-ui-effects="reduced"],[data-reduce-transparency="true"],.a11y-opaque) :is(.stage1-r22-account,.stage1-r22-account-dialog){--account-shadow:none}
html[data-ui="5"]:is([data-ui-effects="reduced"],[data-reduce-transparency="true"],.a11y-opaque) .stage1-r22-account :is(.profile-edit,.r22-profile-summary,.r22-account-chapter,.customer-workspace-head,.workspace-record,.panel){background:var(--account-surface)!important;backdrop-filter:none!important;box-shadow:none!important}
html[data-ui="5"]:is([data-ui-effects="reduced"],[data-reduce-transparency="true"],.a11y-opaque) .stage1-r22-profile .r22-profile-summary>.profile-cover{display:none}
html[data-ui="5"]:is([data-ui-effects="reduced"],[data-reduce-transparency="true"],.a11y-opaque) .stage1-r22-account-dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html[data-ui="5"]:is([data-contrast="high"],.a11y-contrast) :is(.stage1-r22-account,.stage1-r22-account-dialog){--account-muted:#d1e1ec;--account-faint:#b8ccd9;--account-line:#7895a8;--account-soft:#536d80}
html[data-ui="5"][data-theme="light"]:is([data-contrast="high"],.a11y-contrast) :is(.stage1-r22-account,.stage1-r22-account-dialog){--account-muted:#304b5c;--account-faint:#3d5a6c;--account-line:#496c83;--account-soft:#7792a3}
html[data-ui="5"]:is([data-ui-effects="reduced"],[data-reduced-motion="true"],.a11y-no-motion) :is(.stage1-r22-account,.stage1-r22-account-dialog) *,html[data-ui="5"]:is([data-ui-effects="reduced"],[data-reduced-motion="true"],.a11y-no-motion) :is(.stage1-r22-account,.stage1-r22-account-dialog){animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog),html[data-ui="5"] :is(.stage1-r22-account,.stage1-r22-account-dialog) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:680px){
 html[data-ui="5"] .stage1-r22-profile .avatar-editor-row>div:not(.code-avatar){flex:1 1 calc(100% - 60px);min-width:calc(100% - 60px)}
 html[data-ui="5"] .stage1-r22-profile .avatar-editor-row>.btn{flex:1 0 100%;width:100%;margin-inline-start:0;min-height:44px}
}
