/* WikiNative Studio portal: the approved public-site design, adapted to account pages.
   Included by the existing portal host gate, never on legal pages. Presentation only. */
@media (forced-colors: none) {
  html:root body.wn-quiet-editorial.wn-portal-design {
    --pd-canvas:#faf9f7; --pd-paper:#fffdfc; --pd-soft:#f4eef5; --pd-raised:#ffffff;
    --pd-ink:#233847; --pd-muted:#56646d; --pd-line:#ded9df; --pd-control:#778398;
    --pd-link:#92278f; --pd-hover:#70216e; --pd-action-ink:#ffffff; --pd-selected:#eee1f0;
    --pd-panel-start:#f4eaf6; --pd-panel-end:#faf8fa; --pd-input:#ffffff;
    --pd-shadow:rgba(54,28,65,.055);
    --qe-canvas:var(--pd-canvas)!important; --qe-paper:var(--pd-paper)!important;
    --qe-surface:var(--pd-soft)!important; --qe-raised:var(--pd-raised)!important;
    --qe-ink:var(--pd-ink)!important; --qe-muted:var(--pd-muted)!important;
    --qe-line:var(--pd-line)!important; --qe-control:var(--pd-control)!important;
    --qe-link:var(--pd-link)!important; --qe-focus:var(--pd-link)!important;
    --qe-selection:var(--pd-selected)!important; --qe-action:var(--pd-link)!important;
    --qe-action-hover:var(--pd-hover)!important; --qe-action-ink:var(--pd-action-ink)!important;
    --qe-shadow:var(--pd-shadow)!important;
    --onboard-page:var(--pd-canvas); --onboard-panel:var(--pd-paper);
    --onboard-start:var(--pd-panel-start); --onboard-end:var(--pd-panel-end);
    --onboard-ink:var(--pd-ink); --onboard-muted:var(--pd-muted);
    --onboard-line:var(--pd-line); --onboard-control:var(--pd-control);
    --onboard-input:var(--pd-input); --onboard-link:var(--pd-link);
    --onboard-action:var(--pd-link); --onboard-action-ink:var(--pd-action-ink);
    background:var(--pd-canvas)!important; color:var(--pd-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"] {
    --pd-canvas:#141b24; --pd-paper:#1b2430; --pd-soft:#27303e; --pd-raised:#2d3746;
    --pd-ink:#f3eff6; --pd-muted:#c1c5cf; --pd-line:#4f5665; --pd-control:#9ba7bd;
    --pd-link:#d9b3eb; --pd-hover:#ead2f5; --pd-action-ink:#23162b; --pd-selected:#42344f;
    --pd-panel-start:#312838; --pd-panel-end:#252c38; --pd-input:#101924;
    --pd-shadow:rgba(0,0,0,.16);
  }
  html:root body.wn-portal-design :is(.site-header,.pp-header,.site-footer,.pp-footer,.sidebar) {
    background:transparent!important; border-color:var(--pd-line)!important;
  }
  html:root body.wn-portal-design :is(.identity,.pp-brand,.qe-wordmark,.brand-name) {color:var(--pd-link)!important;}
  html:root body.wn-portal-design :is(.identity-caption,.header-note,.client-ref) {color:var(--pd-muted)!important;}
  html:root body.wn-portal-design .sidebar .nav-link:hover,
  html:root body.wn-portal-design .sidebar .nav-link.is-active {background:var(--pd-selected)!important;color:var(--pd-link)!important;}
  html:root body.wn-portal-design :is(.card,.plan-card,.service-card,.pp-card) {
    background:var(--pd-paper)!important; border:1px solid var(--pd-line)!important;
    box-shadow:0 3px 14px var(--pd-shadow)!important;
  }
  html:root body.wn-portal-design :is(.auth-card,.plan-card.is-current,.client-space-card),
  html:root body.wn-portal-design.wn-onboarding .pp > main {
    background:linear-gradient(110deg,var(--pd-panel-start),var(--pd-panel-end))!important;
    border-color:var(--pd-line)!important;
  }
  html:root body.wn-portal-design :is(.balance-card,.client-space-card,.plan-card.is-current) {border-top:3px solid var(--pd-link)!important;}
  html:root body.wn-portal-design :is(#main,.pp) :is(.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),.field textarea,.field select,.inline-form select) {
    background:var(--pd-input)!important; color:var(--pd-ink)!important;
    border:1px solid var(--pd-control)!important; border-radius:7px!important;
    box-shadow:0 1px 2px var(--pd-shadow)!important; caret-color:var(--pd-ink);
  }
  html:root body.wn-portal-design :is(#main,.pp) :is(input,textarea)::placeholder {color:var(--pd-muted)!important;opacity:1;}
  html:root body.wn-portal-design :is(.field-help,.small-text,.muted,.page-heading p,.auth-intro p,.auth-footnote,.pp-footnote) {color:var(--pd-muted)!important;}
  html:root body.wn-portal-design :is(.button,.pp-btn):not(.button-secondary):not(.button-danger) {
    background:var(--pd-link)!important;border-color:var(--pd-link)!important;color:var(--pd-action-ink)!important;
  }
  html:root body.wn-portal-design :is(.button,.pp-btn):not(.button-secondary):not(.button-danger):hover {background:var(--pd-hover)!important;border-color:var(--pd-hover)!important;}
  html:root body.wn-portal-design :is(.button-secondary,.pp-btn-secondary) {background:var(--pd-paper)!important;color:var(--pd-link)!important;border-color:var(--pd-control)!important;}
  html:root body.wn-portal-design :is(a,button,input,textarea,select,summary):focus-visible {outline:3px solid var(--pd-link)!important;outline-offset:4px;}
  html:root body.wn-portal-design :is(.auth-intro,.page-heading,.pp) :is(h1,h2,h3) {color:var(--pd-ink)!important;}
  html:root body.wn-portal-design :is(.site-footer,.pp-footer) {color:var(--pd-muted)!important;}
}
html:root body.wn-portal-design,
html:root body.wn-portal-design :is(button,input,select,textarea,.brand-name,.qe-wordmark) {font-family:"Times New Roman",Times,serif!important;}
html:root body.wn-portal-design {font-size:17px;line-height:1.6;}
html:root body.wn-portal-design .site-header {height:auto;min-height:96px;padding:24px clamp(24px,4vw,64px);gap:24px;}
html:root body.wn-portal-design .identity {gap:3px;align-items:baseline;}
html:root body.wn-portal-design :is(.identity > .qe-wordmark,.identity > .brand-name,.pp-brand .qe-wordmark) {font-size:38px!important;font-weight:400!important;letter-spacing:-1px!important;line-height:1.1;}
html:root body.wn-portal-design .identity-caption {font-size:17px!important;}
html:root body.wn-portal-design .header-account {margin-left:auto;gap:24px;}
html:root body.wn-portal-design :is(.header-note,.client-ref,.button-text) {font-size:15px;}
html:root body.wn-portal-design .app-shell {max-width:1440px;}
html:root body.wn-portal-design .main-content {padding:48px clamp(24px,4vw,56px) 72px;}
html:root body.wn-portal-design .page-heading {margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid var(--pd-line);}
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,44px)!important;line-height:1.14!important;letter-spacing:-.025em!important;font-weight:400!important;}
html:root body.wn-portal-design :is(.page-heading p,.auth-intro p) {font-size:18px!important;line-height:1.6;max-width:65ch;}
html:root body.wn-portal-design :is(.card,.plan-card,.service-card,.pp-card) {border-radius:12px!important;}
html:root body.wn-portal-design :is(.card,.pp-card) {padding:28px;}
html:root body.wn-portal-design :is(.card,.plan-card,.service-card,.pp-card) > :is(h2,h3),
html:root body.wn-portal-design .card-heading h2 {font-size:25px!important;font-weight:400!important;line-height:1.25!important;letter-spacing:-.015em;}
html:root body.wn-portal-design :is(.card,.service-card,.pp-card) > p {line-height:1.65;}
html:root body.wn-portal-design :is(.field label,.field-label) {font-size:17px!important;font-weight:600;}
html:root body.wn-portal-design :is(.field input,.field textarea,.field select) {font-size:17px!important;}
html:root body.wn-portal-design .field-help {font-size:15px!important;}
html:root body.wn-portal-design :is(.button,.pp-btn) {min-height:46px;font-size:17px;line-height:1.4;padding:12px 20px;border-radius:7px;}
html:root body.wn-portal-design .button-small {min-height:36px;padding:7px 12px;font-size:15px;}
html:root body.wn-portal-design .sidebar {padding-top:36px;gap:6px;}
html:root body.wn-portal-design .nav-link {font-size:16px;line-height:1.35;}
html:root body.wn-portal-design .sidebar-label {font-size:12px;letter-spacing:.09em;}
html:root body.wn-portal-design :is(.site-footer,.pp-footer) {font-size:15px;line-height:1.6;padding-top:28px;padding-bottom:28px;}
html:root body.wn-portal-design .site-footer {padding-inline:clamp(24px,4vw,64px);}
/* Auth keeps the two-field entry point and visible input surfaces. */
html:root body.wn-portal-design .auth-content {max-width:640px;padding:52px 24px 72px;}
html:root body.wn-portal-design .auth-intro {text-align:left;margin-bottom:28px;}
html:root body.wn-portal-design .auth-card {padding:32px;}
html:root body.wn-portal-design .auth-links {gap:14px;font-size:16px;line-height:1.5;}
html:root body.wn-portal-design .auth-footnote {font-size:16px;line-height:1.6;}
html:root body.wn-portal-design.wn-onboarding .pp {max-width:1120px;width:calc(100% - 48px);margin:0 auto;}
html:root body.wn-portal-design.wn-onboarding .pp-header {min-height:96px;padding:24px 0;margin:0 0 48px;border-bottom:1px solid var(--pd-line);gap:24px;}
html:root body.wn-portal-design.wn-onboarding .pp > main {max-width:620px;margin:0 auto 64px;padding:36px;border:1px solid var(--pd-line);border-radius:12px;}
html:root body.wn-portal-design.wn-onboarding .pp-footer {max-width:1120px;margin:0;border-top:1px solid var(--pd-line);}
html:root body.wn-portal-design.wn-onboarding .pp > main > p {font-size:18px;line-height:1.6;}
@media (max-width:880px) {
  html:root body.wn-portal-design .sidebar {padding:12px 20px;gap:4px;}
  html:root body.wn-portal-design .main-content {padding:36px 24px 56px;}
  html:root body.wn-portal-design .auth-content {padding:40px 24px 56px;}
}
@media (max-width:620px) {
  html:root body.wn-portal-design .site-header {min-height:80px;padding:20px;gap:16px;}
  html:root body.wn-portal-design :is(.identity > .qe-wordmark,.identity > .brand-name,.pp-brand .qe-wordmark) {font-size:30px!important;letter-spacing:-.6px!important;}
  html:root body.wn-portal-design .identity-caption {font-size:15px!important;}
  html:root body.wn-portal-design .header-account {gap:16px;}
  html:root body.wn-portal-design .main-content {padding:32px 20px 48px;}
  html:root body.wn-portal-design .auth-content {padding:32px 20px 48px;}
  html:root body.wn-portal-design .page-heading {margin-bottom:24px;padding-bottom:20px;}
  html:root body.wn-portal-design :is(.card,.auth-card,.pp-card) {padding:24px 20px;}
  html:root body.wn-portal-design .nav-link {font-size:15px;}
  html:root body.wn-portal-design .sidebar {padding:10px 12px;}
  html:root body.wn-portal-design .site-footer {padding-inline:20px;}
  html:root body.wn-portal-design.wn-onboarding .pp {width:calc(100% - 40px);}
  html:root body.wn-portal-design.wn-onboarding .pp-header {min-height:80px;padding:20px 0;margin-bottom:32px;gap:12px;}
  html:root body.wn-portal-design.wn-onboarding .pp > main {padding:28px 20px;margin-bottom:40px;}
}
@media print {html:root body.wn-portal-design {background:white!important;color:black!important;} html:root body.wn-portal-design .card {box-shadow:none!important;}}
