/* CVPilot AI — contrast and interaction polish. Preserve component styling; improve legibility. */
html:not(.dark) {
  --cp-ink: #172238;
  --cp-muted: #48576d;
  --cp-soft-muted: #5d6c82;
  --cp-line: #d1dbe8;
  --cp-line-strong: #bdcadb;
}
html.dark {
  --cp-ink: #f4f7fc;
  --cp-muted: #c4cedd;
  --cp-soft-muted: #aebbd0;
  --cp-line: #3b4a62;
  --cp-line-strong: #50617b;
}
html:not(.dark) body :where(.muted,.subhead,.field-hint,.field-hint-inline,.optional-field-label,.character-counter,.text-muted,.text-secondary,.text-soft,.helper-text,.form-help,.small-note,.editor-section-sub,.panel-head p,.price-description,.price-note,.example-summary,.template-customize-note,.template-premium-heading span:not(.template-tone-dot)) {
  color: #48576d !important;
  opacity: 1 !important;
}
html:not(.dark) body :where(.field label,.field > label,.form-label,.auth-card label,.panel-head h2,.panel-head h3,.editor-section-title,.preview-top strong,.template-premium-heading strong,.kr-home-template-info strong) {
  color: #172238 !important;
}
html:not(.dark) body :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {
  color: #172238 !important;
  background-color: #fff !important;
  border-color: #bdcadb !important;
}
html:not(.dark) body :where(input,textarea,select)::placeholder { color: #66758a !important; opacity: 1 !important; }
html:not(.dark) body :where(.panel,.career-panel,.editor-panel,.preview-panel,.account-panel,.auth-card,.contact-form,.contact-aside-card,.price-card,.kr-price-card,.example-card,.job-stat-card,.stat-card,.dashboard-card,.quick-tool-card,.follow-up-panel,.pdf-tool-card,.tool-option,.ats-guide-panel,.ats-history-panel,.ats-form-panel,.ats-results-panel,.tailor-main,.career-side-panel,.interview-output-panel,.letter-library,.cover-editor-panel,.billing-history-panel,.billing-current-plan,.checkout-method-panel,.checkout-summary-panel,.application-kit-result,.template-card-premium,.kr-home-template-card) {
  border-color: #d0d9e6 !important;
}
html.dark body :where(.muted,.subhead,.field-hint,.field-hint-inline,.optional-field-label,.character-counter,.text-muted,.text-secondary,.text-soft,.helper-text,.form-help,.small-note,.editor-section-sub,.panel-head p,.price-description,.price-note,.example-summary,.template-customize-note) {
  color: #c4cedd !important;
  opacity: 1 !important;
}
html.dark body :where(.field label,.field > label,.form-label,.auth-card label,.panel-head h2,.panel-head h3,.editor-section-title,.preview-top strong,.template-premium-heading strong) { color: #f2f5fb !important; }
html.dark body :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {
  color: #f2f5fb !important;
  background-color: #1d2a40 !important;
  border-color: #52627b !important;
}
html.dark body :where(input,textarea,select)::placeholder { color: #aebbd0 !important; opacity: 1 !important; }
html.dark body :where(.panel,.career-panel,.editor-panel,.preview-panel,.account-panel,.auth-card,.contact-form,.contact-aside-card,.price-card,.kr-price-card,.example-card,.job-stat-card,.stat-card,.dashboard-card,.quick-tool-card,.follow-up-panel,.pdf-tool-card,.tool-option,.ats-guide-panel,.ats-history-panel,.ats-form-panel,.ats-results-panel,.tailor-main,.career-side-panel,.interview-output-panel,.letter-library,.cover-editor-panel,.billing-history-panel,.billing-current-plan,.checkout-method-panel,.checkout-summary-panel,.application-kit-result,.template-card-premium,.kr-home-template-card) {
  border-color: #3b4a62 !important;
}
/* Make icons crisp and aligned without recoloring semantic status badges. */
body :where(.btn,button,a,.panel-head-icon,.feature-icon,.job-stat-icon,.dropzone-icon,.editor-tab,.theme-toggle) > svg,
body :where(.btn,button,a,.panel-head-icon,.feature-icon,.job-stat-icon,.dropzone-icon,.editor-tab,.theme-toggle) > i[data-lucide] { vertical-align: middle; flex: 0 0 auto; }
body :where(.btn,button) > svg, body :where(.btn,button) > i[data-lucide] { width: 16px; height: 16px; }
body :where(.panel-head-icon,.feature-icon,.job-stat-icon,.dropzone-icon) { transition: transform .2s ease, box-shadow .2s ease; }
body :where(.btn,.icon-button,.theme-toggle):focus-visible, body :where(a,button,input,select,textarea):focus-visible { outline: 3px solid color-mix(in srgb,var(--cp-accent) 44%,transparent); outline-offset: 2px; }
.cvp-spin { display:inline-block; width:15px; height:15px; animation: cvpSpin .85s linear infinite; vertical-align:-3px; }
@keyframes cvpSpin { to { transform: rotate(360deg); } }
.member-notice-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:12px; }
.member-notice-actions .btn { display:inline-flex; align-items:center; gap:7px; }
#resume-export-notice { margin-top:14px; }
#resume-export-notice p { margin:6px 0 0; color:var(--cp-muted); }
button[aria-busy=true] { cursor:progress; opacity:.88; }
@media (max-width:640px) { .member-notice-actions .btn { flex:1 1 100%; justify-content:center; } }
@media (prefers-reduced-motion:reduce) { .cvp-spin { animation:none; } body :where(.panel-head-icon,.feature-icon,.job-stat-icon,.dropzone-icon,.btn,button,a) { transition:none !important; } }

/* Local Lucide fallback: icons remain visible if the CDN is unavailable. */
.cvp-local-icon { display:inline-flex !important; align-items:center; justify-content:center; width:1.15em; height:1.15em; vertical-align:-.16em; flex:0 0 auto; line-height:1; }
.cvp-local-icon > svg { display:block; width:100%; height:100%; overflow:visible; }
.btn .cvp-local-icon,.tool-option .cvp-local-icon { margin-right:2px; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  body :where(.feature-icon,.panel-head-icon,.job-stat-icon,.dropzone-icon):hover { transform:translateY(-2px) rotate(-2deg); }
  body :where(.feature-icon,.panel-head-icon,.job-stat-icon,.dropzone-icon) { transition:transform .22s ease,filter .22s ease; }
}
.pdf-member-gate { display:grid; justify-items:start; gap:10px; padding:clamp(20px,3vw,30px); border:1px solid var(--cp-line-strong); border-radius:18px; background:linear-gradient(145deg,var(--cp-paper),var(--cp-paper-2)); color:var(--cp-ink); }
.pdf-member-gate .feature-icon { display:grid; place-items:center; width:46px; height:46px; border:1px solid color-mix(in srgb,var(--cp-accent) 24%,var(--cp-line)); border-radius:14px; background:var(--cp-accent-soft); color:var(--cp-accent-strong); }
.pdf-member-gate .feature-icon svg { width:21px; height:21px; }
.pdf-member-gate h3 { margin:0; color:var(--cp-ink); font-size:clamp(18px,2vw,22px); font-weight:800; letter-spacing:-.025em; }
.pdf-member-gate p { max-width:58ch; margin:0; color:var(--cp-muted); line-height:1.65; }
html.dark .pdf-member-gate { border-color:var(--cp-line-strong); background:linear-gradient(145deg,#1b2940,#202d43); }
.cvpilot-route-loader-emblem { display:flex; align-items:center; justify-content:center; gap:8px; }
.cvpilot-route-mascot { width:56px; height:56px; display:grid; place-items:center; overflow:visible; }
.cvpilot-route-mascot .cvp-mascot { width:56px; height:56px; }
.cvp-local-icon.cvp-spin { width:15px; height:15px; }
@media (max-width:640px) { .pdf-member-gate { padding:19px 16px; } }
@media (prefers-reduced-motion:reduce) { .cvp-local-icon,.cvp-local-icon svg { animation:none !important; transition:none !important; } }
