@media screen {
  .theme-toggle{flex:0 0 42px;width:42px;min-height:42px;padding:0;border:1px solid #9aafb4;border-radius:50%;background:#fff;color:#102943;font-size:24px;cursor:pointer;margin-left:auto}
  .site-header .nav-toggle{margin-left:0}
  .entry-error{display:block;color:#a12020;font-size:13px;line-height:1.5;margin-top:5px;font-weight:600}
  input[aria-invalid=true]{border-color:#b63838;box-shadow:0 0 0 1px #b63838}
  .service-search{max-width:680px;margin:0 0 28px}.service-search label{font-weight:750;display:block;margin-bottom:8px}.service-search>div{display:flex;gap:10px}.service-search input{width:100%;min-width:0;min-height:48px;padding:12px;border:1px solid #9aafb4;border-radius:10px;font:inherit}.service-search p{min-height:1.5em;color:#536777;font-size:14px}
  .updates-link{font:inherit;color:inherit;border:1px solid currentColor;background:transparent;border-radius:8px;padding:10px 14px;cursor:pointer;align-self:start}
  .updates-dialog{max-width:650px;width:calc(100% - 32px);max-height:85dvh;border:1px solid #9aafb4;border-radius:18px;background:#fff;color:#102943;padding:0;box-shadow:0 22px 80px #0005}.updates-dialog::backdrop{background:#082b40bd}.updates-content{padding:26px}.updates-content p,.updates-content li{line-height:1.65}.updates-close{float:right;min-height:44px;border:1px solid #9aafb4;border-radius:8px;background:transparent;color:inherit;padding:8px 12px;cursor:pointer}
  .embedded-feedback{margin-top:28px;padding:24px;border:1px solid #bdccc6;border-radius:18px;background:#fff}.embedded-feedback p{max-width:800px}.feedback-frame{margin-top:18px}.feedback-frame iframe{display:block;width:100%;height:850px;border:0;border-radius:8px;background:white}
  html[data-theme=dark]{color-scheme:dark;--bg:#101d28;--paper:#172b39;--canvas:#101d28;--ink:#edf3f8;--muted:#b9cbd8;--line:#415767;--green:#65d1ca;--green-dark:#c3f0ed;--green-soft:#203d42}
  html[data-theme=dark] body{background:#101d28;color:#edf3f8}
  html[data-theme=dark] :is(.site-header,.service-card,.content-card,.form-card,.panel,.table-card,.service-guide,.service-feedback,.social-section,.contact-stack article,.tax-panel,.tax-trust span,.updates-dialog,.embedded-feedback){background:#172b39;color:#edf3f8;border-color:#415767}
  html[data-theme=dark] :is(input,select,textarea,.theme-toggle){background:#101d28;color:#edf3f8;border-color:#6c8393}
  html[data-theme=dark] :is(.site-brand,.brand-wordmark,.brand-wordmark small,.page-breadcrumb,.service-search p,.field>span,.manual-card label,.draft-notice,.pdf-help,.service-guide p,.service-guide li,.service-faq p,.service-card p,.content-card p,.page-hero>p,.home-hero__copy>p){color:#c6d7e3}
  html[data-theme=dark] :is(.home-hero h1 em,.brand-ds,.text-link,.related-services a,.page-breadcrumb a){color:#75ded5}
  html[data-theme=dark] :is(.site-disclaimer,.draft-controls,.manual-card,.pay-evidence,.service-faq details,.support-details,.social-card,.tax-process>div,.table-card__header){background:#203541;color:#dce9f0;border-color:#526c7b}
  html[data-theme=dark] :is(th,td){background:#172b39;color:#edf3f8;border-color:#415767}
  html[data-theme=dark] :is(.live-panel,.contact-primary,.tax-start){background:#092534;color:#fff}
  html[data-theme=dark] :is(.site-nav a,.social-copy strong,.social-copy>span,.social-links a,.summary-card strong,.summary-card span,.earning-item){color:#dce9f0}
  html[data-theme=dark] .entry-error{color:#ffb6ae}
  html[data-theme=dark] :is(.hero,.profile-band){background:linear-gradient(135deg,#092534,#164954)}
  html[data-theme=dark] :is(.action-row,.summary-card,.optional-box,.paid-options,.share-fallback,.form-error,.support-dialog,.pdf-dialog,.allowance-card){background:#203541;color:#edf3f8;border-color:#526c7b}
  html[data-theme=dark] :is(.primary-button,.button--primary){background:#006a65;color:#fff;border-color:#65d1ca}
  html[data-theme=dark] .summary-card strong{color:#edf3f8}
  html[data-theme=dark] :is(.summary-grid article,.status-pill,.transfer-options summary,.support-card,.bank-details,.support-note,.floating-support,.dialog-close,.nav-toggle){background:#203541;color:#edf3f8;border-color:#526c7b}
  html[data-theme=dark] .summary-net{background:#006a65!important;color:#fff}
  html[data-theme=dark] .summary-grid :is(strong,span){color:#edf3f8}
  html[data-theme=dark] .primary-button:hover{background:#085953;color:#fff}
  html[data-theme=dark] :is(.secondary-button,.ghost-button,.button--light){background:#203541;color:#eaf5fa;border-color:#6c8393}
  @media(max-width:1000px){html[data-theme=dark] .site-nav{background:#172b39;border-color:#6c8393}}
  @media(max-width:420px){.theme-toggle{flex-basis:36px;width:36px;min-height:36px}.site-header{gap:6px!important}.site-brand .brand-wordmark{font-size:19px!important}.site-brand>.brand-logo{flex-basis:40px!important;width:40px!important}.updates-content{padding:20px}}
}
@media print{.theme-toggle,.service-search,.embedded-feedback,.updates-dialog,.updates-link,.entry-error{display:none!important}}

@media screen{.service-search button{min-height:48px;border:1px solid #9aafb4;border-radius:10px;padding:10px 16px;font:inherit;cursor:pointer}html[data-theme=dark] .branch-number{background:#295359;color:#fff}}

/* 2.2.2: explicit foreground/background pairs for guides and feedback. */
@media screen {
  html[data-theme=dark] :is(.service-guide h2,.service-guide h3,.related-services strong,.service-feedback strong){color:#edf3f8}
  html[data-theme=dark] .service-faq summary{color:#8ce6dc}
  html[data-theme=dark] .service-feedback p{color:#c6d7e3}
  html[data-theme=dark] .related-services a{background:#203d42;color:#b9f2e9;border-color:#6c8393}
  html[data-theme=dark] .related-services a:hover{background:#295359;color:#fff}
  html[data-theme=dark] :is(.service-feedback__link,.pdf-feedback a){color:#bee0ff}
  html[data-theme=dark] .service-feedback__link{background:#203d55;border-color:#7394b5}
  html[data-theme=dark] .service-feedback__link:hover{background:#2b4d68;color:#fff}
  html[data-theme=dark] .service-feedback__icon{background:#203d55;color:#bee0ff}
  html[data-theme=dark] .pdf-feedback{background:#203541;color:#c6d7e3}
  html[data-theme=dark] .site-brand>.brand-logo{background-color:#fff;border-radius:10px;background-size:88% auto;box-shadow:0 0 0 1px #ffffff30}
}

