/* Loaded last: desktop, mobile and account pages share one production theme. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e13; --surface: #141a22; --surface-strong: #19212c;
  --surface-soft: #1c2632; --ink: #f6f3eb; --muted: #bdc6d2;
  --line: #3e4957; --brand: #f4ce7a; --brand-2: #edba54;
  --brand-3: #ffe0a2; --accent: #f4ce7a; --danger: #ffb0b0;
  --success: #82dfbc; --shadow-lg: 0 24px 54px #0005;
  --shadow-md: 0 12px 30px #0004;
}
html[data-theme="dark"] body {
  color: var(--ink); background: radial-gradient(ellipse at 85% 0%, #a7792220, transparent 45%), linear-gradient(160deg, #0b0e13, #141a22) !important;
}
html[data-theme="dark"] body::before, html[data-theme="dark"] body::after { background: #b38a3920; opacity: .2; }
html[data-theme="dark"] :is(.topbar,.section-shell,.card,.feature-panel,.plan-card,.auth-panel,.insight-card,.summary-tile,.auth-note-card,.rr-plans,.rr-paths,.rw-offer,.rw-enquiry,.rr-testimonials,.rr-plan,.rr-review,.rr-path-card) {
  color: var(--ink) !important; background: linear-gradient(140deg, #1b232d, #121820) !important;
  border-color: var(--line) !important; box-shadow: var(--shadow-md);
}
html[data-theme="dark"] :is(.section-shell,.card)::before { background: linear-gradient(130deg,#f4ce7a08,transparent 48%); }
html[data-theme="dark"] :is(.hero-upload-card,.hero-upload-action,.hero-sample-metric,.landing-quote,.sixty-second-card,.application-kit-preview,.kit-preview-card,.before-after-card,.role-link-grid a,.mobile-role-links a,.landing-file-shell,.upload-shell,.upload-invite,.upload-status,.privacy-shield,.wizard-progress,.wizard-step,.mobile-faq-list details,.public-faq-grid details,.faq-list details,.faq-item,.landing-stat,.metric-card,.detail-list,.workspace-profile,.plan-feature,.workspace-note,.upload-panel,.file-shell,.mobile-sticky-cta) {
  color:var(--ink) !important; background:#1b2531 !important; border-color:#465565 !important;
}
html[data-theme="dark"] :is(.sample-label,.kit-preview-header span,.jd-benefits span,.pill,.badge,.chip) { color:#ffe0a2 !important; background:#45381f !important; border-color:#92733e !important; }
html[data-theme="dark"] :is(.before-after-card code,pre,code) { color:#e1e8f1 !important; background:#0f1721 !important; }
html[data-theme="dark"] .topbar .brand { background:#fff; border-radius:10px; padding:7px; }
html[data-theme="dark"] .topbar .nav-primary-cta,html[data-theme="dark"] .nav-link.primary { color:#17140d !important; background:#f4ce7a !important; }
html[data-theme="dark"] #quota-gate [style*="background"] { background:#1b2531 !important; }
html[data-theme="dark"] .helper-text[style*="color:#9d3333"],html[data-theme="dark"] .account-field-error { color:#ffb0b0 !important; }
/* Legacy response-injected marketing panels also need dark surface pairs. */
html[data-theme="dark"] :is(.resume-application-kit-card,.resume-learning-article-card,.resume-review-help-links,.resume-review-help-links__card,.resume-application-kit-card__grid span) { color:var(--ink) !important; background:#1b2531 !important; border-color:#465565 !important; }
html[data-theme="dark"] :is(.resume-application-kit-card__eyebrow,.resume-learning-article-card__eyebrow) { color:#ffe0a2 !important; background:#45381f !important; }
html[data-theme="dark"] :is(.resume-application-kit-card,.resume-learning-article-card) p { color:var(--muted) !important; }
html[data-theme="dark"] :is(.resume-application-kit-card__actions,.resume-learning-article-card__actions) a { color:#17140d !important; background:#f4ce7a !important; border-color:#f4ce7a !important; }
html[data-theme="dark"] :is(.rr-top,.rr-aside,.rr-panel,.rr-links,.rr-menu-toggle,.resume-review-guidance__card,.resume-review-seo-faq__shell,.resume-review-seo-faq__item) { color:var(--ink) !important; background:#1b2531 !important; border-color:#465565 !important; }
html[data-theme="dark"] :is(.rr-kicker,.resume-review-guidance__eyebrow,.resume-review-seo-faq__eyebrow) { color:#ffe0a2 !important; background:#45381f !important; }
html[data-theme="dark"] :is(.rr-button,.resume-review-guidance__button) { color:#17140d !important; background:#f4ce7a !important; border-color:#f4ce7a !important; }
html[data-theme="dark"] .rr-brand img { background:#fff; padding:5px; border-radius:8px; }
html[data-theme="dark"] :is(.resume-review-guidance__points span,.resume-review-seo-faq__links a) { color:#e6edf7 !important; background:#253446 !important; border-color:#586577 !important; }
html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6,label,strong,b,.brand-title,.rr-plan-price,.rw-price,.account-form legend) { color: var(--ink) !important; }
html[data-theme="dark"] :is(p,li,small,figcaption,.helper,.helper-text,.brand-subtitle,.rr-plan-description,.rr-plan-note,.rr-review-source,.section-heading p,.rw-form-note,.rr-path-card small) { color: var(--muted); }
html[data-theme="dark"] :is(.rw-kicker,.rr-plan-eyebrow,.eyebrow,.rr-plan-allowance,.rr-review>span,.rr-path-card>span,.rw-whatsapp,.rr-review a,.rr-review-source a) { color: var(--brand) !important; }
html[data-theme="dark"] :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),textarea,select) {
  color: var(--ink) !important; background: #0e141c !important; border-color: #586577 !important;
  caret-color: var(--brand); box-shadow: none;
}
html[data-theme="dark"] :is(input,textarea)::placeholder { color: #9facbe !important; opacity: 1; }
html[data-theme="dark"] input:is([type=checkbox],[type=radio]) { accent-color: #edba54; }
html[data-theme="dark"] input::file-selector-button { color:#17140d; background:#f4ce7a; border:0; border-radius:6px; padding:8px 12px; margin-right:12px; cursor:pointer; }
html[data-theme="dark"] :is(.btn,.button,.rr-plan-action,.rw-submit,.nav-primary-cta,.rw-actions a:first-child,button[type=submit]) {
  color: #17140d !important; background: linear-gradient(135deg,#ffe4a9,#edba54) !important; border-color: #f4ce7a !important;
}
html[data-theme="dark"] :is(.btn,.button,.rr-plan-action,.rw-submit,.nav-primary-cta) :is(span,strong,b) { color:inherit !important; }
html[data-theme="dark"] :is(nav a,.rr-review-controls button,.rw-actions a:last-child,.password-toggle,.btn-secondary,.btn.secondary,.button.secondary) {
  color: var(--ink) !important; background: #1d2733 !important; border-color: #586577 !important;
}
html[data-theme="dark"] .topbar nav.account-nav a[aria-current=page] { color:#ffe4a9 !important; background:#48391f !important; border-color:#d4a85a !important; }
html[data-theme="dark"] .brand-mark { background: #fff !important; border-color: #fff; padding:8px; border-radius:12px; }
html[data-theme="dark"] :is(.flash,.alert,.auth-note,.notice,.rw-form-errors) { background:#1b2b3b !important; color:#d8e7f7 !important; border-color:#5a7e9f !important; }
html[data-theme="dark"] :is(.flash.error,.flash.danger,.errorlist,.rw-form-errors) { color:#ffb0b0 !important; }
/* Legacy light cards must not wash out dark-theme consent/help text. */
html[data-theme="dark"] :is(.checkbox-row,.reset-card) {
  color:var(--ink) !important; background:#1b2531 !important; border-color:#465565 !important;
}
html[data-theme="dark"] .checkbox-row { text-align:left; cursor:pointer; line-height:1.5; }
html[data-theme="dark"] .checkbox-row input[type=checkbox] { flex:0 0 18px; width:18px; height:18px; }
html[data-theme="dark"] :is(.flash.error,.flash.danger,.rw-form-errors) { background:#3b2028 !important; border-color:#995365 !important; }
html[data-theme="dark"] .flash.success { color:#a2efcb !important; background:#17362d !important; border-color:#538c73 !important; }
html[data-theme="dark"] :is(table,th,td,details,summary) { border-color: var(--line) !important; }
html[data-theme="dark"] :is(th,thead) { background: #26313e !important; color:var(--ink) !important; }
html[data-theme="dark"] :is(td,tbody tr) { background:#141a22 !important; color:var(--ink) !important; }
html[data-theme="dark"] :is(footer,.site-footer,.portal-footer) { color:var(--muted) !important; background:#0b1017 !important; border-color:var(--line) !important; }
html[data-theme="dark"] :focus-visible { outline:3px solid #ffe0a2 !important; outline-offset:4px; }
html[data-theme="dark"] :is(.rr-plan-featured,.rr-path-card:hover,.insight-card:hover) { border-color:#cfaa62 !important; box-shadow:0 0 30px #e9bb4d10; }
html[data-theme="dark"] .rr-plan-featured { box-shadow:inset 0 3px #f4ce7a,0 10px 35px #0003; }
html[data-theme="dark"] :is(.rr-plan li,.rw-copy li)::before { color:#82dfbc; }
.rr-promo { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.7fr); gap:32px; align-items:center; padding:clamp(20px,3vw,38px); border:1px solid var(--line); border-radius:24px; }
.rr-promo img { display:block; max-height:650px; width:100%; object-fit:contain; border-radius:18px; }
.rr-promo h2 { font-size:clamp(1.7rem,3vw,2.8rem); line-height:1.12; }
.rr-promo p { line-height:1.7; }
.rr-feature-link { display:block; text-decoration:none; border:1px solid var(--line); }
.rr-feature-link:focus-visible { outline-offset:5px; }
@media(max-width:760px) { .rr-promo { grid-template-columns:1fr; gap:20px; } .rr-promo img { max-height:520px; } }
@media(prefers-reduced-motion:reduce) { html[data-theme="dark"] :is(.card,.rr-path-card,.insight-card) { transition:none; } }
@media print {
  html[data-theme="dark"] { color-scheme:light; --ink:#111; --muted:#333; --brand:#111; --line:#bbb; }
  html[data-theme="dark"] body, html[data-theme="dark"] :is(.section-shell,.card,.feature-panel,.insight-card,.plan-card,.rr-plan,.checkbox-row,.reset-card,table,th,td,tbody tr) { background:#fff !important; color:#111 !important; box-shadow:none !important; }
  html[data-theme="dark"] :is(h1,h2,h3,h4,p,li,small,strong,b,label) { color:#111 !important; }
  .rr-promo { display:none; }
}
