/* Approved Studio evolution. Scoped to the existing non-legal portal gate.
   Palette 03 roles; business state and document content are not changed. */
@media (forced-colors:none) {
html:root body.wn-quiet-editorial.wn-portal-design {
 --ev-bg:#F0F4F8;--ev-paper:#FFFFFF;--ev-soft:#F0F4F8;--ev-raised:#FFFFFF;
 --ev-ink:#102A43;--ev-muted:#486581;--ev-line:#D9E2EC;--ev-control:#829AB1;
 --ev-action:#4D3DF7;--ev-action-hover:#3525E6;--ev-action-ink:#FFFFFF;--ev-link:#3525E6;--ev-selected:#E6E6FF;
 --ev-good:#0C6B58;--ev-good-bg:#EFFCF6;--ev-error:#AB091E;--ev-error-bg:#FFE3E3;--ev-warning:#8D2B0B;--ev-warning-bg:#FFFBEA;
 --ev-gradient-start:#E6E6FF;--ev-gradient-end:#EFFCF6;--ev-input:#FFFFFF;
 --pd-canvas:var(--ev-bg);--pd-paper:var(--ev-paper);--pd-soft:var(--ev-soft);--pd-raised:var(--ev-raised);--pd-ink:var(--ev-ink);--pd-muted:var(--ev-muted);--pd-line:var(--ev-line);--pd-control:var(--ev-control);--pd-link:var(--ev-link);--pd-hover:var(--ev-action-hover);--pd-action-ink:var(--ev-action-ink);--pd-selected:var(--ev-selected);--pd-panel-start:var(--ev-gradient-start);--pd-panel-end:var(--ev-gradient-end);--pd-input:var(--ev-input);--pd-shadow:rgba(16,42,67,.04);
 --qe-canvas:var(--ev-bg)!important;--qe-paper:var(--ev-paper)!important;--qe-surface:var(--ev-soft)!important;--qe-raised:var(--ev-raised)!important;--qe-ink:var(--ev-ink)!important;--qe-muted:var(--ev-muted)!important;--qe-line:var(--ev-line)!important;--qe-control:var(--ev-control)!important;--qe-link:var(--ev-link)!important;--qe-focus:var(--ev-link)!important;--qe-selection:var(--ev-selected)!important;--qe-action:var(--ev-action)!important;--qe-action-hover:var(--ev-action-hover)!important;--qe-action-ink:var(--ev-action-ink)!important;--qe-good:var(--ev-good)!important;--qe-error:var(--ev-error)!important;--qe-warning:var(--ev-warning)!important;
 --wn-bg:var(--ev-bg);--wn-panel:var(--ev-paper);--wn-text:var(--ev-ink);--wn-secondary:var(--ev-muted);--wn-link:var(--ev-link);--wn-focus:var(--ev-link);--wn-divider:var(--ev-line);--wn-control-border:var(--ev-control);
 --onboard-page:var(--ev-bg);--onboard-panel:var(--ev-paper);--onboard-start:var(--ev-gradient-start);--onboard-end:var(--ev-gradient-end);--onboard-ink:var(--ev-ink);--onboard-muted:var(--ev-muted);--onboard-line:var(--ev-line);--onboard-input:var(--ev-input);--onboard-control:var(--ev-control);--onboard-link:var(--ev-link);--onboard-action:var(--ev-action);--onboard-action-ink:var(--ev-action-ink);
 background:var(--ev-bg)!important;color:var(--ev-ink)!important;
}
html[data-wn-theme="dark"]:root body.wn-quiet-editorial.wn-portal-design,
html:root body.wn-quiet-editorial.wn-portal-design[data-wn-theme="dark"] {
 --ev-bg:#102A43;--ev-paper:#243B53;--ev-soft:#1B344B;--ev-raised:#334E68;--ev-ink:#F0F4F8;--ev-muted:#BCCCDC;--ev-line:#486581;--ev-control:#829AB1;
 --ev-action:#C4C6FF;--ev-action-hover:#E6E6FF;--ev-action-ink:#0C008C;--ev-link:#C4C6FF;--ev-selected:#334366;
 --ev-good:#8EEDC7;--ev-good-bg:#164C49;--ev-error:#FFBDBD;--ev-error-bg:#542B3C;--ev-warning:#FCE588;--ev-warning-bg:#4A412B;
 --ev-gradient-start:#293657;--ev-gradient-end:#173E45;--ev-input:#102A43;
}
html:root body.wn-portal-design :is(.site-header,.pp-header,.sidebar) {background:var(--ev-paper)!important;border-color:var(--ev-line)!important;}
html:root body.wn-portal-design :is(.identity,.pp-brand,.qe-wordmark,.brand-name) {color:var(--ev-ink)!important;}
html:root body.wn-portal-design .sidebar .nav-link {color:var(--ev-muted)!important;background:transparent!important;border-color:transparent!important;}
html:root body.wn-portal-design .sidebar .nav-link:hover {background:var(--ev-soft)!important;color:var(--ev-ink)!important;}
html:root body.wn-portal-design .sidebar .nav-link.is-active {background:var(--ev-selected)!important;color:var(--ev-link)!important;box-shadow:inset 2px 0 var(--ev-link)!important;}
html:root body.wn-portal-design :is(.card,.pp-card,.pp-panel,.plan-card,.service-card,.balance-card) {background:var(--ev-paper)!important;border-color:var(--ev-line)!important;box-shadow:none!important;}
html:root body.wn-portal-design :is(.auth-card,.client-space-card,.plan-card.is-current),
html:root body.wn-portal-design.wn-onboarding .pp>main {background:linear-gradient(105deg,var(--ev-gradient-start),var(--ev-gradient-end))!important;}
html:root body.wn-portal-design :is(.button,.pp-btn):not(.button-secondary):not(.button-danger):not(.pp-btn-secondary) {background:var(--ev-action)!important;color:var(--ev-action-ink)!important;border-color:var(--ev-action)!important;}
html:root body.wn-portal-design :is(.button,.pp-btn):not(.button-secondary):not(.button-danger):not(.pp-btn-secondary):hover {background:var(--ev-action-hover)!important;border-color:var(--ev-action-hover)!important;}
html:root body.wn-portal-design :is(.button-secondary,.pp-btn-secondary,.button-text) {background:var(--ev-paper)!important;color:var(--ev-muted)!important;border-color:var(--ev-line)!important;}
html:root body.wn-portal-design :is(.button-danger,button.danger,a.danger) {background:var(--ev-paper)!important;color:var(--ev-error)!important;border-color:var(--ev-line)!important;}
html:root body.wn-portal-design :is(.notice-error,.pp-err,.alert-error,.error-message) {color:var(--ev-error)!important;background:var(--ev-error-bg)!important;border-color:var(--ev-error)!important;}
html:root body.wn-portal-design :is(.notice-success,.alert-success,.suite-status-good) {color:var(--ev-good)!important;}
html:root body.wn-portal-design :is(.notice-warning,.suite-status-warning) {color:var(--ev-warning)!important;}
html:root body.wn-portal-design .suite-status-muted {color:var(--ev-muted)!important;}
html:root body.wn-portal-design :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),select,textarea) {background:var(--ev-input)!important;color:var(--ev-ink)!important;border:1px solid var(--ev-control)!important;box-shadow:0 1px 3px rgba(16,42,67,.04)!important;}
html:root body.wn-portal-design :is(input,textarea)::placeholder {color:var(--ev-muted)!important;opacity:1;}
html:root body.wn-portal-design :is(.wn-theme-switch,.wn-theme-switch:hover,.wn-theme-switch[aria-checked="true"]) {background:var(--ev-paper)!important;color:var(--ev-muted)!important;border:1px solid var(--ev-line)!important;box-shadow:none!important;}
html:root body.wn-portal-design .wn-theme-track {background:var(--ev-soft)!important;border-color:var(--ev-control)!important;}
html:root body.wn-portal-design .wn-theme-track::after {background:var(--ev-muted)!important;}
html:root body.wn-portal-design .wn-theme-switch[aria-checked="true"] .wn-theme-track {background:var(--ev-muted)!important;border-color:var(--ev-muted)!important;}
html:root body.wn-portal-design .wn-theme-switch[aria-checked="true"] .wn-theme-track::after {background:var(--ev-bg)!important;}
html:root body.wn-portal-design :is(a,button,input,textarea,select,summary):focus-visible {outline:3px solid #1992D4!important;outline-offset:3px;}
html:root body.wn-portal-design :is(.suite-account-table,.data-table) {background:var(--ev-paper)!important;}
html:root body.wn-portal-design :is(.suite-account-table,.data-table) :is(td,th) {border-color:var(--ev-line)!important;}
html:root body.wn-portal-design #main .suite-account-table thead th {background:var(--ev-soft)!important;color:var(--ev-muted)!important;}
html:root body.wn-portal-design .suite-account-actions>a.button-secondary {background:var(--ev-paper)!important;color:var(--ev-muted)!important;border-color:var(--ev-line)!important;}
html:root body.wn-portal-design .badge {background:var(--ev-soft)!important;color:var(--ev-muted)!important;border-color:var(--ev-line)!important;}
html:root body.wn-portal-design :is(.card,.pp-panel) a:not(.button):not(.pp-btn) {color:var(--ev-link);}
}
html:root body.wn-portal-design,
html:root body.wn-portal-design :is(button,input,select,textarea,.nav-link,.badge,.button,.pp-btn,.field-label,.field label,.small-text,.muted,.suite-status,.suite-search label,.suite-account-table) {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;}
html:root body.wn-portal-design {font-size:14px;line-height:1.55;}
html:root body.wn-portal-design :is(h1,h2,.qe-wordmark,.brand-name,.identity-caption,.pp-brand,.portal-brand) {font-family:"Times New Roman",Times,serif!important;}
html:root body.wn-portal-design .site-header {min-height:86px;padding:20px clamp(20px,3vw,40px);gap:20px;}
html:root body.wn-portal-design :is(.identity>.qe-wordmark,.identity>.brand-name,.pp-brand .qe-wordmark) {font-size:34px!important;letter-spacing:-1px!important;}
html:root body.wn-portal-design .identity-caption {font-size:16px!important;}
html:root body.wn-portal-design .header-account {gap:16px;}
html:root body.wn-portal-design :is(.header-note,.client-ref,.button-text) {font-size:12px!important;}
html:root body.wn-portal-design .app-shell {max-width:1440px;grid-template-columns:196px minmax(0,1fr);}
html:root body.wn-portal-design .app-shell.auth-shell,
html:root body.wn-portal-design .app-shell.simple-dashboard {grid-template-columns:minmax(0,1fr);}
html:root body.wn-portal-design .main-content {min-width:0;padding:34px clamp(20px,3.3vw,46px) 56px;}
html:root body.wn-portal-design .page-heading {margin-bottom:26px;padding-bottom:0;border-bottom:0;}
html:root body.wn-portal-design :is(.page-heading,.auth-intro) h1,
html:root body.wn-portal-design .pp h1 {font-size:clamp(32px,3vw,40px)!important;line-height:1.1!important;letter-spacing:-1px!important;font-weight:400!important;}
html:root body.wn-portal-design :is(.page-heading p,.auth-intro p,.pp-note) {font-size:14px!important;line-height:1.6;max-width:65ch;}
html:root body.wn-portal-design :is(.card,.pp-panel,.pp-card,.plan-card,.service-card) {border-radius:8px!important;}
html:root body.wn-portal-design :is(.card,.pp-card,.pp-panel) {padding:24px;}
html:root body.wn-portal-design :is(.card,.pp-panel,.pp-card) > :is(h2,h3),
html:root body.wn-portal-design .card-heading h2 {font-family:"Times New Roman",Times,serif!important;font-size:25px!important;line-height:1.2!important;letter-spacing:-.5px;font-weight:400!important;}
html:root body.wn-portal-design :is(.field label,.field-label) {font-size:13px!important;font-weight:500;}
html:root body.wn-portal-design :is(.field input,.field textarea,.field select) {font-size:15px!important;border-radius:5px!important;}
html:root body.wn-portal-design .field-help {font-size:12px!important;}
html:root body.wn-portal-design :is(.button,.pp-btn) {font-size:13px!important;line-height:1.4;min-height:40px;padding:10px 15px;border-radius:5px;}
html:root body.wn-portal-design .button-small {font-size:12px!important;padding:7px 11px;min-height:34px;}
html:root body.wn-portal-design .sidebar {padding:25px 12px;gap:4px;}
html:root body.wn-portal-design .nav-link {font-size:13px!important;line-height:1.4;border-radius:5px;padding:11px 12px;gap:10px;}
html:root body.wn-portal-design .sidebar-label {font-size:10px;letter-spacing:1px;padding-inline:12px;}
html:root body.wn-portal-design .wn-theme-switch {min-height:36px;padding:8px 10px;border-radius:5px;font-size:12px!important;gap:8px;}
html:root body.wn-portal-design .wn-theme-switch .wn-theme-track {width:30px;height:18px;}
html:root body.wn-portal-design .wn-theme-switch .wn-theme-track::after {width:12px;height:12px;top:2px;left:2px;}
html:root body.wn-portal-design .wn-theme-switch[aria-checked="true"] .wn-theme-track::after {transform:translateX(12px);}
html:root body.wn-portal-design :is(.small-text,.muted,.auth-footnote,.auth-links,.pp-footnote) {font-size:13px!important;}
html:root body.wn-portal-design :is(.site-footer,.pp-footer) {font-size:12px;line-height:1.5;background:transparent!important;}
html:root body.wn-portal-design .auth-content {max-width:600px;padding:42px 22px 60px;}
html:root body.wn-portal-design.wn-onboarding .pp>main {max-width:600px;padding:30px;border-radius:9px;}
html:root body.wn-portal-design.wn-onboarding .pp>main>p {font-size:14px;}
html:root body.wn-portal-design .suite-search {max-width:720px;margin-bottom:26px;}
html:root body.wn-portal-design .suite-search label {font-size:13px!important;}
html:root body.wn-portal-design .suite-search input {font-size:15px!important;min-height:44px!important;border-radius:5px!important;}
html:root body.wn-portal-design .suite-search-status {font-size:12px!important;}
html:root body.wn-portal-design .suite-account-group> :is(h2,summary) {font-family:"Times New Roman",Times,serif;font-size:25px;}
html:root body.wn-portal-design .suite-account-group .badge {font-size:11px;}
html:root body.wn-portal-design .suite-account-table :is(th,td) {padding:18px 14px;font-size:13px;}
html:root body.wn-portal-design .suite-account-table th[scope=row] {font-size:15px;font-weight:500;line-height:1.4;}
html:root body.wn-portal-design .suite-account-table thead th {font-size:10px;letter-spacing:.7px;text-transform:uppercase;}
html:root body.wn-portal-design .suite-account-status {width:150px;}
html:root body.wn-portal-design .suite-status {font-size:12px!important;}
html:root body.wn-portal-design .suite-account-actions {width:290px;}
html:root body.wn-portal-design .suite-account-actions>a {font-size:12px!important;min-height:38px;padding:9px 12px;margin:3px 5px 3px 0;}
html:root body.wn-portal-design .wn-evolution-icon {width:20px;height:20px;flex-shrink:0;fill:none;color:inherit;}
html:root body.wn-portal-design .wn-evolution-icon .primary {fill:currentColor;opacity:.45;}
html:root body.wn-portal-design .wn-evolution-icon .secondary {fill:currentColor;}
@media(max-width:880px){html:root body.wn-portal-design .app-shell{grid-template-columns:1fr;}html:root body.wn-portal-design .sidebar{padding:12px 18px;}html:root body.wn-portal-design .main-content{padding:28px 22px 45px;}}
@media(max-width:620px){html:root body.wn-portal-design .site-header{padding:18px;min-height:76px;gap:12px;flex-wrap:wrap;}html:root body.wn-portal-design .identity>.qe-wordmark{font-size:29px!important;}html:root body.wn-portal-design .main-content{padding:25px 18px 40px;}html:root body.wn-portal-design :is(input,select,textarea){font-size:16px!important;}html:root body.wn-portal-design :is(.card,.pp-card,.pp-panel){padding:20px 18px;}html:root body.wn-portal-design .suite-account-table :is(th,td){padding:0;}html:root body.wn-portal-design .suite-account-actions{width:auto;}html:root body.wn-portal-design .suite-account-actions>a{min-height:42px;}html:root body.wn-portal-design .wn-theme-switch{min-height:42px;}html:root body.wn-portal-design.wn-onboarding .pp>main{padding:24px 18px;}}
@media print{html:root body.wn-portal-design{background:white!important;color:black!important;}.wn-evolution-icon{color:black!important;}}
/* Match the older compatibility layer's specificity at the shell boundary. */
html:root body.wn-portal-design .wn-profile-identity{display:flex;align-items:center;gap:9px;margin-top:9px;font:12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;text-decoration:none!important;max-width:100%;}
html:root body.wn-portal-design .wn-profile-identity>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere;}
html:root body.wn-portal-design .wn-profile-identity small{font-size:11px;color:var(--ev-muted);font-weight:400;}
html:root body.wn-portal-design .wn-profile-avatar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;overflow:hidden;background:var(--ev-selected);color:var(--ev-link);font-size:11px;}
html:root body.wn-portal-design .wn-profile-avatar img{width:100%;height:100%;object-fit:cover;}
@media (forced-colors:none) {
html:root body.wn-quiet-editorial.wn-portal-design:is(.signed-in,.signed-out,.pp-body):not(:has(.agreement-shell)) :is(.app-shell,.main-content,.auth-content) {background:var(--ev-bg)!important;}
html:root body.wn-quiet-editorial.wn-portal-design:is(.signed-in,.signed-out,.pp-body):not(:has(.agreement-shell)) .app-shell .sidebar a.nav-link:any-link:not(.button):not(.wn-btn):not(.wn-work-card):not(.ce-proposal-action) {color:var(--ev-muted)!important;background:transparent!important;border-color:transparent!important;}
html:root body.wn-quiet-editorial.wn-portal-design:is(.signed-in,.signed-out,.pp-body):not(:has(.agreement-shell)) .app-shell .sidebar a.nav-link.is-active:any-link:not(.button):not(.wn-btn):not(.wn-work-card):not(.ce-proposal-action) {color:var(--ev-link)!important;background:var(--ev-selected)!important;border-color:transparent!important;}
html:root body.wn-quiet-editorial.wn-portal-design:is(.signed-in,.signed-out,.pp-body):not(:has(.agreement-shell)) .app-shell .sidebar a.nav-link:hover:any-link:not(.button):not(.wn-btn):not(.wn-work-card):not(.ce-proposal-action) {color:var(--ev-ink)!important;background:var(--ev-soft)!important;}
html:root body.wn-quiet-editorial.wn-portal-design:is(.signed-in,.signed-out,.pp-body):not(:has(.agreement-shell)) .site-header form[action="/logout"] button.button-text[type="submit"] {background:var(--ev-paper)!important;color:var(--ev-muted)!important;border:1px solid var(--ev-line)!important;}
html:root body.wn-quiet-editorial.wn-portal-design:is(.signed-in,.signed-out,.pp-body):not(:has(.agreement-shell)) :is(.auth-links,.auth-footnote,.pp-footnote,.pp-footer) a:any-link {color:var(--ev-link)!important;}
html:root body.wn-quiet-editorial.wn-portal-design:is(.signed-in,.signed-out,.pp-body):not(:has(.agreement-shell)) .eyebrow {color:var(--ev-muted)!important;}
html:root body.wn-quiet-editorial.wn-portal-design:is(.signed-in,.signed-out,.pp-body):not(:has(.agreement-shell)) .site-footer a:any-link {color:var(--ev-ink)!important;}
html:root body.wn-quiet-editorial.wn-portal-design:is(.signed-in,.signed-out,.pp-body):not(:has(.agreement-shell)) .suite-account-actions>a.button.button-secondary {background:var(--ev-paper)!important;color:var(--ev-muted)!important;border-color:var(--ev-line)!important;}
html:root body.wn-quiet-editorial.wn-portal-design:is(.signed-in,.signed-out,.pp-body):not(:has(.agreement-shell)) .app-shell .wn-profile-identity:any-link:not(.button):not(.wn-btn):not(.wn-work-card):not(.ce-proposal-action){color:var(--ev-ink)!important;}
/* The inherited submit rule contains #wpLoginAttempt inside :is(). Match its
   ID specificity without modifying any existing form or submit handler. */
html:root body.wn-quiet-editorial.wn-portal-design :is(#main,.site-header,.pp) :is(.button-text,.button-secondary,.pp-btn-secondary){background:var(--ev-paper)!important;color:var(--ev-muted)!important;border-color:var(--ev-line)!important;}
html:root body.wn-quiet-editorial.wn-portal-design :is(#main,.site-header,.pp) .button-danger{background:var(--ev-paper)!important;color:var(--ev-error)!important;border-color:var(--ev-line)!important;}
}
