@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&family=Outfit:wght@500;700;800&display=swap");

:root {
  --workspace-bg: #fefce8;
  --workspace-bg-soft: #fffef4;
  --workspace-bg-strong: #fff8c7;
  --workspace-panel: rgba(255, 255, 255, 0.9);
  --workspace-panel-strong: rgba(255, 255, 255, 0.96);
  --workspace-panel-muted: rgba(255, 248, 199, 0.58);
  --workspace-line: rgba(30, 41, 59, 0.16);
  --workspace-line-strong: #1e293b;
  --workspace-shadow-sm: 6px 6px 0 rgba(30, 41, 59, 0.12);
  --workspace-shadow: 8px 8px 0 rgba(30, 41, 59, 0.13);
  --workspace-shadow-lg: 12px 12px 0 rgba(30, 41, 59, 0.16);
  --workspace-ink: #0f1b37;
  --workspace-ink-soft: #667085;
  --workspace-ink-muted: #94a3b8;
  --workspace-accent: #facc15;
  --workspace-accent-soft: #fde68a;
  --workspace-accent-deep: #2563eb;
  --workspace-accent-contrast: #1e293b;
  --workspace-success: #12b76a;
  --workspace-radius-sm: 8px;
  --workspace-radius-md: 14px;
  --workspace-radius-lg: 18px;
  --workspace-radius-xl: 28px;
  --workspace-sky: #60a5fa;
  --workspace-sky-soft: rgba(96, 165, 250, 0.12);
  --yuyu-yellow: var(--workspace-accent);
  --yuyu-yellow-soft: var(--workspace-accent-soft);
  --bg-main: var(--workspace-bg);
  --ink: #1e293b;
  --ink-light: var(--workspace-ink-soft);
  --ink-muted: var(--workspace-ink-muted);
  --card-pink: rgba(217, 119, 87, 0.14);
  --card-blue: rgba(214, 229, 247, 0.92);
  --card-yellow: rgba(255, 248, 199, 0.92);
  --primary: var(--workspace-accent);
  --primary-hover: #fde047;
  --shadow-sm: var(--workspace-shadow-sm);
  --shadow-md: var(--workspace-shadow);
  --shadow-lg: var(--workspace-shadow-lg);
  --radius-sm: var(--workspace-radius-sm);
  --radius-md: var(--workspace-radius-md);
  --radius-lg: var(--workspace-radius-lg);
  --radius-xl: var(--workspace-radius-xl);
  --font-display: "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-ui: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-sans: var(--font-ui);
  --soft: var(--workspace-bg);
  --paper: rgba(255, 255, 255, 0.92);
  --paper-warm: rgba(255, 248, 199, 0.86);
  --muted: var(--workspace-ink-soft);
  --line: #1e293b;
  --line-soft: rgba(30, 41, 59, 0.16);
  --gold: var(--workspace-accent);
  --shadow: var(--workspace-shadow);
  --nav-height: 88px;
  --community-bg: var(--workspace-bg);
  --community-surface: var(--workspace-panel);
  --community-surface-strong: var(--workspace-panel-strong);
  --community-border: var(--workspace-line);
  --community-border-strong: var(--workspace-line-strong);
  --community-text: var(--workspace-ink);
  --community-text-soft: var(--workspace-ink-soft);
  --community-text-faint: var(--workspace-ink-muted);
  --community-brand: var(--workspace-sky);
  --community-brand-soft: var(--workspace-sky-soft);
  --community-success: var(--workspace-success);
  --community-warning: #d4a017;
  --community-danger: #e11d48;
  --community-shadow-sm: var(--workspace-shadow-sm);
  --community-shadow-md: var(--workspace-shadow);
  --community-shadow-lg: var(--workspace-shadow-lg);
  --community-radius-sm: 8px;
  --community-radius-md: 14px;
  --community-radius-lg: 18px;
  --community-font: var(--font-ui);
}

html.theme-night,
body.theme-night {
  --workspace-bg: #0f172a;
  --workspace-bg-soft: #111827;
  --workspace-bg-strong: #1e293b;
  --workspace-panel: rgba(15, 23, 42, 0.84);
  --workspace-panel-strong: rgba(15, 23, 42, 0.92);
  --workspace-panel-muted: rgba(30, 41, 59, 0.76);
  --workspace-line: rgba(226, 232, 240, 0.18);
  --workspace-line-strong: #dbe4f0;
  --workspace-shadow-sm: 6px 6px 0 rgba(2, 6, 23, 0.36);
  --workspace-shadow: 8px 8px 0 rgba(2, 6, 23, 0.42);
  --workspace-shadow-lg: 12px 12px 0 rgba(2, 6, 23, 0.5);
  --workspace-ink: #f8fafc;
  --workspace-ink-soft: #cbd5e1;
  --workspace-ink-muted: #94a3b8;
  --workspace-accent: #60a5fa;
  --workspace-accent-soft: rgba(96, 165, 250, 0.18);
  --workspace-accent-deep: #93c5fd;
  --workspace-accent-contrast: #0f172a;
  --workspace-sky: #60a5fa;
  --workspace-sky-soft: rgba(96, 165, 250, 0.18);
  --bg-main: var(--workspace-bg);
  --ink: var(--workspace-ink);
  --ink-light: var(--workspace-ink-soft);
  --ink-muted: var(--workspace-ink-muted);
  --card-pink: rgba(96, 165, 250, 0.14);
  --card-blue: rgba(30, 41, 59, 0.88);
  --card-yellow: rgba(15, 23, 42, 0.86);
  --primary: var(--workspace-accent);
  --primary-hover: #93c5fd;
  --soft: var(--workspace-bg);
  --paper: rgba(15, 23, 42, 0.92);
  --paper-warm: rgba(30, 41, 59, 0.86);
  --muted: var(--workspace-ink-soft);
  --line: #dbe4f0;
  --line-soft: rgba(226, 232, 240, 0.18);
  --gold: var(--workspace-accent);
  --shadow: var(--workspace-shadow);
  --community-bg: var(--workspace-bg);
  --community-surface: var(--workspace-panel);
  --community-surface-strong: var(--workspace-panel-strong);
  --community-border: var(--workspace-line);
  --community-border-strong: var(--workspace-line-strong);
  --community-text: var(--workspace-ink);
  --community-text-soft: var(--workspace-ink-soft);
  --community-text-faint: var(--workspace-ink-muted);
  --community-brand: var(--workspace-sky);
  --community-brand-soft: var(--workspace-sky-soft);
}

html,
body {
  min-height: 100%;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(90deg, rgba(30, 41, 59, 0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(30, 41, 59, 0.018) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--workspace-bg);
  color: var(--workspace-ink);
}

body {
  color: var(--workspace-ink);
  font-family: var(--font-ui);
}

body.community-page,
body.yuyu-react-body {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(90deg, rgba(30, 41, 59, 0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(30, 41, 59, 0.018) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--workspace-bg) !important;
}

html.theme-night,
body.theme-night,
html.theme-night body.community-page,
html.theme-night body.yuyu-react-body,
body.theme-night.community-page,
body.theme-night.yuyu-react-body {
  background:
    radial-gradient(circle at top center, rgba(96, 165, 250, 0.12), transparent 32%),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--workspace-bg) !important;
}

a,
button,
input,
textarea,
select {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-bar,
.wizard-header,
.landing-header,
.programs-header,
.top-nav {
  backdrop-filter: blur(16px);
  background: rgba(254, 252, 232, 0.9) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: var(--workspace-shadow) !important;
}

body.theme-night .site-bar,
body.theme-night .wizard-header,
body.theme-night .landing-header,
body.theme-night .programs-header,
body.theme-night .top-nav {
  background: rgba(15, 23, 42, 0.82) !important;
}

.site-brand strong,
.wizard-brand strong,
.landing-brand strong,
.top-nav__brand,
.dashboard-brand h1,
.community-sidebar__brand strong {
  color: var(--workspace-ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
}

.site-brand span,
.wizard-brand span,
.landing-brand span,
.community-sidebar__brand span,
.dashboard-brand__copy,
.top-nav__link,
.site-nav a,
.wizard-header__link,
.landing-nav a,
.programs-nav a {
  color: var(--workspace-ink-soft) !important;
}

.site-nav a,
.wizard-header__link,
.landing-nav a,
.programs-nav a,
.top-nav__link,
.community-sidebar__item,
.community-sidebar__secondary,
.sidebar-nav-item {
  align-items: center;
  border-radius: 999px !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800 !important;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.site-nav a:hover,
.wizard-header__link:hover,
.landing-nav a:hover,
.programs-nav a:hover,
.top-nav__link:hover,
.community-sidebar__item:hover,
.community-sidebar__secondary:hover,
.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--workspace-ink) !important;
  transform: translateY(-1px);
}

.footer-content,
.site-footer {
  color: var(--workspace-ink-muted) !important;
}

.icp-link,
.police-link {
  color: rgba(102, 112, 133, 0.86) !important;
}

.icp-link:hover,
.police-link:hover {
  color: var(--workspace-ink) !important;
}

.step-indicator,
.wizard-step,
.step-content,
.step-content--wide,
.review-summary,
.result-view,
.selection-hero-card,
.selection-hero-card__copy,
.selection-hero-card__note,
.selection-form-section,
.selection-question-card,
.selection-destination-card,
.selection-program-card,
.selection-metric-card,
.recommendation-precheck,
.recommendation-precheck__panel,
.before-result-preview,
.programs-hero__copy,
.programs-hero__meta,
.programs-workbench,
.program-filter-panel,
.program-result-state,
.program-results__status,
.program-modal__panel,
.community-feed-stage,
.community-panel,
.community-topbar,
.publish-hero,
.publish-compact-header,
.community-sidebar,
.profile-sidebar,
.profile-main__header,
.form-section,
.modal-box,
.auth-modal,
.profile-summary-card,
.settings-summary-card {
  background: var(--workspace-panel-strong) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--workspace-radius-lg) !important;
  box-shadow: var(--workspace-shadow-sm) !important;
}

.program-results__status,
.selection-hero-card__copy,
.selection-hero-card__note,
.selection-form-section,
.selection-question-card,
.selection-destination-card,
.selection-program-card,
.selection-metric-card,
.profile-summary-card,
.settings-summary-card {
  border-radius: var(--workspace-radius-md) !important;
}

.section-tag,
.eyebrow,
.community-topbar__eyebrow,
.section-eyebrow,
.card-eyebrow,
.dashboard-contact-eyebrow,
.profile-main__eyebrow {
  background: transparent !important;
  border: 0 !important;
  color: #2563eb !important;
  display: block;
  min-height: 0;
  padding: 0 !important;
  width: auto;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 14px !important;
  text-transform: uppercase;
}

.step-header h1,
.step-header h2,
.programs-hero__copy h1,
.community-topbar__copy h1,
.publish-hero h1,
.publish-compact-header h1,
.profile-main__header h2,
.page-heading h1,
.community-hero h1,
.profile-hero h1,
.dashboard-title,
.dashboard-group__header h3,
.dashboard-spotlight-header h3,
.landing-stage h1,
.landing-stage h2 {
  color: var(--workspace-ink) !important;
  font-family: var(--font-display) !important;
  letter-spacing: -0.04em !important;
}

.step-header p,
.community-topbar__copy p:last-child,
.publish-hero p,
.publish-compact-header p,
.profile-main__status,
.profile-main__description,
.page-heading span,
.community-hero p,
.programs-hero__subtitle,
.landing-section-heading span,
.landing-stage p,
.program-results__status,
.selection-bullet-list,
.selection-dot-list,
.selection-number-list,
.recommendation-precheck__list,
.before-result-preview__caption {
  color: var(--workspace-ink-soft) !important;
}

.primary-button,
.auth-btn--primary,
.landing-button--primary,
.contact-btn,
.dashboard-login,
.user-button,
.btn-primary,
.button.primary {
  background: var(--workspace-accent) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: 4px 4px 0 rgba(30, 41, 59, 0.16) !important;
  color: var(--workspace-accent-contrast) !important;
}

.primary-button:hover,
.auth-btn--primary:hover,
.landing-button--primary:hover,
.contact-btn:hover,
.dashboard-login:hover,
.user-button:hover,
.btn-primary:hover,
.button.primary:hover {
  background: #fde047 !important;
  box-shadow: 2px 2px 0 rgba(30, 41, 59, 0.18) !important;
  transform: translate(2px, 2px);
}

.soft-button,
.ghost-button,
.inline-button,
.auth-btn--outline,
.landing-button--secondary,
.contact-btn--ghost,
.state-action-btn,
.secondary-btn,
.ghost-btn,
.program-card__action,
.btn-outline,
.button.secondary,
.dashboard-settings,
.icon-button,
.user-menu__trigger,
.program-filter-panel__toggle,
.community-feed-stage__tabs button,
.search-tabs button,
.center-tabs button,
.publish-type-tabs button {
  background: var(--paper) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: 3px 3px 0 rgba(30, 41, 59, 0.12) !important;
  color: var(--workspace-ink) !important;
}

.soft-button:hover,
.ghost-button:hover,
.inline-button:hover,
.auth-btn--outline:hover,
.landing-button--secondary:hover,
.contact-btn--ghost:hover,
.state-action-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.program-card__action:hover,
.btn-outline:hover,
.button.secondary:hover,
.dashboard-settings:hover,
.icon-button:hover,
.user-menu__trigger:hover,
.program-filter-panel__toggle:hover {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 2px 2px 0 rgba(30, 41, 59, 0.14) !important;
  transform: translate(2px, 2px);
}

.ghost-button--danger {
  background: rgba(217, 119, 87, 0.12) !important;
  border-color: var(--line) !important;
  color: #c25b40 !important;
}

.ghost-button--danger:hover {
  background: rgba(217, 119, 87, 0.18) !important;
}

.search-pill,
.search-pill--compact,
.auth-input,
.publish-workbench textarea,
.publish-workbench input,
.publish-workbench select,
.tool-form textarea,
.tool-form input,
.tool-form select,
.form-input,
.form-textarea,
.form-select,
.filter-field input,
.filter-field select,
.program-filter-panel input,
.program-filter-panel select,
label input,
label textarea,
label select {
  background: var(--paper) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: 3px 3px 0 rgba(30, 41, 59, 0.12) !important;
  color: var(--workspace-ink) !important;
}

.search-pill:focus-within,
.auth-input:focus,
.publish-workbench textarea:focus,
.publish-workbench input:focus,
.publish-workbench select:focus,
.tool-form textarea:focus,
.tool-form input:focus,
.tool-form select:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.filter-field input:focus,
.filter-field select:focus,
.program-filter-panel input:focus,
.program-filter-panel select:focus,
label input:focus,
label textarea:focus,
label select:focus {
  border-color: #2563eb !important;
  box-shadow:
    0 0 0 4px rgba(96, 165, 250, 0.18),
    3px 3px 0 rgba(30, 41, 59, 0.12) !important;
  outline: none !important;
}

.program-filter-panel__toggle.is-active,
.community-sidebar__item.is-active,
.sidebar-nav-item.is-active,
.avatar-tab.is-active,
.auth-tab.is-active,
.community-feed-stage__tabs button.is-active,
.search-tabs button.is-active,
.center-tabs button.is-active,
.publish-type-tabs button.is-active,
.category-tabs .is-active,
.feed-controls .is-active,
.type-tabs .is-active {
  background: #60a5fa !important;
  border-color: var(--line) !important;
  box-shadow: 3px 3px 0 rgba(30, 41, 59, 0.12) !important;
  color: var(--workspace-ink) !important;
  font-weight: 900 !important;
}

.wizard-shell {
  width: min(1360px, calc(100vw - 40px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 20px 0 42px !important;
}

body.body-wizard .wizard-shell {
  display: grid !important;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 22px !important;
  align-items: start;
}

body.body-wizard .wizard-header {
  grid-column: 1 / -1;
  padding: 16px 18px !important;
}

body.body-wizard .step-indicator {
  grid-column: 1;
  position: sticky !important;
  top: 104px !important;
  padding: 18px !important;
  align-self: start;
}

body.body-wizard .step-indicator__list {
  display: grid;
  gap: 10px;
}

body.body-wizard .step-indicator__item {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 3px 3px 0 rgba(30, 41, 59, 0.1);
}

body.body-wizard .step-indicator__number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.06);
  color: var(--workspace-ink);
  font-weight: 800;
  border: 1.5px solid var(--line);
}

body.body-wizard .step-indicator__label {
  color: var(--workspace-ink-soft);
  font-weight: 700;
}

body.body-wizard .step-indicator__item.is-active {
  background: rgba(255, 248, 199, 0.92);
  border-color: var(--line);
  box-shadow: 4px 4px 0 rgba(30, 41, 59, 0.12);
}

body.body-wizard .step-indicator__item.is-active .step-indicator__number {
  background: #60a5fa;
  color: #ffffff;
}

body.body-wizard .wizard-body {
  grid-column: 2;
  min-width: 0;
}

body.body-wizard .wizard-step {
  padding: 34px !important;
}

body.body-wizard .step-content {
  max-width: min(920px, 100%) !important;
  margin: 0 auto 0 0 !important;
}

body.body-wizard .step-content--wide {
  max-width: 100% !important;
}

body.body-wizard .wizard-footer {
  grid-column: 2;
  position: sticky !important;
  bottom: 18px !important;
  left: auto !important;
  right: auto !important;
  display: flex !important;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  width: min(820px, 100%);
  padding: 12px !important;
  background: rgba(254, 252, 232, 0.92) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: var(--workspace-shadow) !important;
  backdrop-filter: blur(16px);
}

body.body-wizard .wizard-footer[hidden],
body.body-wizard .wizard-footer button[hidden] {
  display: none !important;
}

body.body-wizard .wizard-footer__spacer {
  flex: 1;
}

body.body-wizard .site-footer {
  grid-column: 1 / -1;
  margin-top: 4px !important;
}

.step-header {
  margin-bottom: 26px !important;
  display: grid;
  gap: 10px;
}

.step-header h1,
.step-header h2 {
  font-size: clamp(2rem, 3.6vw, 3.5rem) !important;
  line-height: 1.02 !important;
  margin: 0 !important;
}

.step-header p {
  margin: 0 !important;
  max-width: 760px;
  line-height: 1.75 !important;
}

.before-result-preview {
  padding: 24px !important;
}

.before-result-preview .result-preview,
.before-result-preview .cv-preview,
.result-preview,
.cv-preview {
  background: rgba(255, 255, 255, 0.88) !important;
  border-radius: 14px !important;
  border: 1.5px solid var(--line) !important;
}

.form-grid,
.grid.two {
  gap: 16px !important;
}

.form-grid--two,
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.generate-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.generation-status,
.result-status {
  color: var(--workspace-ink-soft) !important;
  font-weight: 700;
}

.recommendation-precheck {
  display: grid;
  gap: 18px !important;
  padding: 30px !important;
}

.recommendation-precheck__header {
  display: grid;
  gap: 12px;
}

.recommendation-precheck__header h1 {
  margin: 0;
  color: var(--workspace-ink);
  font-family: var(--yuyu-font-display);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.recommendation-precheck__header p,
.recommendation-template,
.recommendation-consent span {
  color: var(--workspace-ink-soft) !important;
}

.recommendation-template {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--line);
  border-radius: 14px;
}

.selection-shell .selection-hero-card,
.selection-shell .selection-result-panel,
.selection-shell .selection-prefill-bar,
.selection-shell .selection-stage-card {
  box-shadow: var(--workspace-shadow-sm) !important;
}

.selection-shell .selection-stage-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 18px !important;
}

.selection-shell .selection-stage-card.is-selected,
.selection-shell .selection-stage-card:hover {
  border-color: var(--line) !important;
  box-shadow: 6px 6px 0 rgba(30, 41, 59, 0.14) !important;
  transform: translate(2px, 2px);
}

.selection-shell .selection-panel-head h3 {
  margin: 0;
  color: var(--workspace-ink);
  font-family: var(--yuyu-font-display);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-layout {
  display: grid !important;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 24px !important;
  align-items: start;
  margin-top: 24px !important;
}

.profile-sidebar {
  position: sticky;
  top: 104px;
  padding: 24px 20px !important;
  gap: 18px !important;
}

.profile-sidebar__avatar,
.profile-sidebar__completeness {
  border-bottom: 1px solid var(--workspace-line) !important;
}

.avatar-img {
  border: 1.5px solid var(--line) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 4px 4px 0 rgba(30, 41, 59, 0.12);
}

.avatar-change-btn,
.btn-ai,
.btn-ai-inline {
  background: var(--workspace-accent) !important;
  border: 1.5px solid var(--line) !important;
  color: var(--workspace-accent-contrast) !important;
  box-shadow: 4px 4px 0 rgba(30, 41, 59, 0.14) !important;
}

.completeness-bar {
  background: rgba(31, 36, 48, 0.08) !important;
  border: 0 !important;
  height: 8px !important;
}

.completeness-bar__fill {
  background: linear-gradient(135deg, #60a5fa, #facc15) !important;
}

.sidebar-nav-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--line) !important;
  box-shadow: 3px 3px 0 rgba(30, 41, 59, 0.12);
}

.sidebar-nav-item.is-active {
  transform: translateX(0) !important;
}

.profile-main__header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start !important;
  padding: 28px 30px !important;
}

.profile-main__intro {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-main__description {
  margin: 0;
  max-width: 760px;
  line-height: 1.7;
}

.profile-main__summary {
  display: grid;
  gap: 12px;
  justify-items: end;
  min-width: min(320px, 100%);
}

.profile-summary-card {
  width: min(320px, 100%);
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}

.profile-summary-card span {
  color: var(--workspace-ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-summary-card strong {
  color: var(--workspace-ink);
  font-size: 1.05rem;
  line-height: 1.3;
}

.profile-main__status {
  justify-self: stretch;
  width: min(320px, 100%);
  justify-content: space-between;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 3px 3px 0 rgba(30, 41, 59, 0.12);
}

.form-section {
  padding: 24px !important;
}

.modal-overlay,
.auth-overlay,
.detail-overlay,
.program-modal {
  backdrop-filter: blur(12px);
}

.auth-overlay,
.detail-overlay,
.program-modal__backdrop {
  background: rgba(15, 23, 42, 0.48) !important;
}

.auth-modal {
  width: min(560px, calc(100vw - 32px)) !important;
  padding: 30px 28px !important;
}

.auth-modal__title {
  font-size: clamp(1.8rem, 3vw, 2.2rem) !important;
}

.auth-tabs,
.avatar-tabs {
  gap: 10px !important;
}

.auth-tab,
.avatar-tab {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid var(--workspace-line) !important;
  border-radius: 16px !important;
  color: var(--workspace-ink-soft) !important;
  font-weight: 700 !important;
}

.auth-tab.is-active,
.avatar-tab.is-active {
  color: var(--workspace-accent-contrast) !important;
}

.auth-captcha__track,
.auth-avatars-wrap,
.auth-wechat-qr__box,
.auth-profile-preview__avatar,
.auth-avatar-upload,
.auth-gate {
  border-color: var(--workspace-line) !important;
  border-radius: 18px !important;
}

.auth-gate {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--workspace-shadow) !important;
}

.auth-overlay .auth-btn--primary,
.auth-gate .auth-btn--primary {
  background: transparent !important;
  border: 0 !important;
  border-radius: var(--auth-sketch-radius-sm) !important;
  box-shadow: none !important;
  color: #ffffff !important;
  --auth-control-fill: #0f172a;
}

.auth-overlay .auth-btn--primary:not(:disabled):hover,
.auth-gate .auth-btn--primary:not(:disabled):hover {
  background: transparent !important;
  box-shadow: none !important;
  transform: scale(1.02) !important;
}

html.theme-night .auth-overlay .auth-btn--primary,
body.theme-night .auth-overlay .auth-btn--primary,
html.theme-night .auth-gate .auth-btn--primary,
body.theme-night .auth-gate .auth-btn--primary {
  color: #0f172a !important;
  --auth-control-fill: #ffffff;
}

.auth-gate__text {
  color: var(--workspace-ink) !important;
}

.community-shell {
  background: transparent !important;
}

.community-sidebar {
  top: 18px !important;
  margin: 18px 0 18px 18px;
  min-height: calc(100vh - 36px);
  padding: 22px 18px !important;
}

.community-sidebar__item,
.community-sidebar__secondary {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--line);
  box-shadow: 3px 3px 0 rgba(30, 41, 59, 0.1);
}

.community-sidebar__icon {
  background: rgba(96, 165, 250, 0.12) !important;
  color: #2563eb !important;
}

.community-workspace {
  padding: 24px 28px 42px !important;
}

.community-topbar,
.publish-hero,
.publish-compact-header,
.community-feed-stage,
.community-panel {
  padding: 24px !important;
}

.community-feed-stage__tabs button.is-active,
.search-tabs button.is-active,
.center-tabs button.is-active,
.publish-type-tabs button.is-active {
  background: linear-gradient(135deg, rgba(255, 247, 215, 0.96), rgba(240, 201, 76, 0.52)) !important;
  border-color: rgba(128, 98, 18, 0.18) !important;
  color: var(--workspace-ink) !important;
}

.yuyu-app,
.home-screen,
.browse-screen,
.community-screen,
.search-screen,
.publish-screen,
.profile-screen,
.center-screen,
.tool-screen,
.simple-screen,
.dashboard-screen {
  background: transparent !important;
}

.top-nav {
  position: sticky !important;
  left: auto !important;
  right: auto !important;
  top: 18px !important;
  width: min(1360px, calc(100vw - 48px)) !important;
  margin: 18px auto 0 !important;
  padding: 14px 18px !important;
}

.top-nav__link,
.feed-controls button,
.feed-controls a,
.category-tabs button,
.type-tabs button,
.hot-searches button {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 999px !important;
  box-shadow: 3px 3px 0 rgba(30, 41, 59, 0.12) !important;
}

.sketch-border,
.sketch-border-sm,
.sketch-card,
.state-block,
.profile-hero,
.detail-panel,
.publish-workbench,
.notification-list button,
.offer-strip article,
.post-card__frame {
  border: 1.5px solid var(--line) !important;
  box-shadow: var(--workspace-shadow-sm) !important;
}

.sketch-border {
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
}

.sketch-border-sm {
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
}

body[data-page="application-copilot"] {
  --line: #1e293b;
  --workspace-line-strong: #1e293b;
  --workspace-shadow-sm: 6px 6px 0 rgba(30, 41, 59, 0.12);
  --workspace-shadow: 8px 8px 0 rgba(30, 41, 59, 0.14);
  --workspace-shadow-lg: 12px 12px 0 rgba(30, 41, 59, 0.16);
  color: #0f172a;
}

body[data-page="application-copilot"] .copilot-dashboard--command .sketch-border {
  border: 1.5px solid var(--line) !important;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
  box-shadow: var(--workspace-shadow-sm) !important;
}

body[data-page="application-copilot"] .copilot-dashboard--command .sketch-border-sm,
body[data-page="application-copilot"] .copilot-dashboard--command .craft-inline-button,
body[data-page="application-copilot"] .copilot-dashboard--command .craft-primary-button {
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
}

body[data-page="application-copilot"] .copilot-dashboard--command .copilot-status-strip.sketch-border-sm {
  border: 1.5px solid var(--line) !important;
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
  box-shadow: var(--workspace-shadow-sm) !important;
}

body[data-page="application-copilot"] .copilot-dashboard--command .copilot-backlog-row.sketch-border-sm {
  border: 1.5px solid var(--line) !important;
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
  box-shadow: var(--workspace-shadow-sm) !important;
}

.sketch-card,
.state-block,
.profile-hero,
.publish-workbench,
.notification-list button,
.offer-strip article,
.post-card__frame {
  background: rgba(255, 255, 255, 0.9) !important;
}

.sketch-card:hover,
.tool-card-link:hover .sketch-card,
.tool-card-link:focus-visible .sketch-card,
.post-card:hover .post-card__frame {
  transform: translate(3px, 3px) !important;
  box-shadow: 4px 4px 0 rgba(30, 41, 59, 0.16) !important;
}

.post-card__frame,
.post-card:hover .post-card__frame {
  transform: none !important;
}

.post-card__image-wrap {
  background: rgba(240, 201, 76, 0.18) !important;
  border-radius: 22px !important;
}

.post-card__image-tint {
  display: none !important;
}

.post-card--offset-one,
.post-card--offset-two {
  margin-top: 0 !important;
}

.masonry-feed {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

.publish-workbench {
  padding: 24px !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
}

.detail-panel {
  background: rgba(255, 255, 255, 0.96) !important;
  border-radius: 18px !important;
  box-shadow: 10px 10px 0 rgba(30, 41, 59, 0.16) !important;
}

.detail-media {
  background: rgba(255, 248, 199, 0.56) !important;
}

.detail-close {
  background: var(--workspace-ink) !important;
  border-radius: 8px !important;
}

.detail-tags span {
  background: rgba(255, 248, 199, 0.82) !important;
  border: 1.5px solid var(--line) !important;
}

.notification-list button {
  align-items: center;
}

.state-block {
  padding: 28px !important;
}

.dashboard-screen {
  padding: 30px 28px 56px !important;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 8px 8px 0 rgba(30, 41, 59, 0.13) !important;
  color: #0f1b37 !important;
}

.dashboard-card--primary {
  background: #111a33 !important;
  color: #ffffff !important;
}

.dashboard-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 10px 12px 0 rgba(30, 41, 59, 0.2) !important;
}

.landing-header,
.programs-header {
  width: min(1220px, calc(100vw - 40px)) !important;
  padding: 14px 18px !important;
}

.landing-shell,
.programs-hero,
.programs-workbench {
  width: min(1220px, calc(100vw - 40px)) !important;
}

.landing-button--primary,
.landing-button--secondary,
.contact-btn,
.contact-btn--ghost {
  border-radius: 18px !important;
}

.landing-button--primary,
.contact-btn {
  color: var(--workspace-accent-contrast) !important;
}

.program-result-state {
  top: 106px !important;
  padding: 18px !important;
}

.program-result-state__metric,
.programs-scale-card,
.programs-scale-item {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: 3px 3px 0 rgba(30, 41, 59, 0.1) !important;
}

.program-modal__panel {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 10px 10px 0 rgba(30, 41, 59, 0.16) !important;
}

.auth-overlay.is-visible .auth-modal,
.modal-overlay.is-visible .modal-box {
  transform: translateY(0) scale(1);
}

@media (max-width: 1180px) {
  body.body-wizard .wizard-shell {
    grid-template-columns: 1fr;
  }

  body.body-wizard .step-indicator,
  body.body-wizard .wizard-body,
  body.body-wizard .wizard-footer {
    grid-column: 1;
  }

  body.body-wizard .step-indicator {
    position: sticky !important;
    top: 94px !important;
  }

  body.body-wizard .step-indicator__list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .profile-layout {
    grid-template-columns: 1fr !important;
  }

  .profile-sidebar {
    position: static;
  }

  .profile-main__header {
    grid-template-columns: 1fr !important;
  }

  .profile-main__summary {
    justify-items: stretch;
  }

  .masonry-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .publish-workbench {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .site-shell,
  .wizard-shell,
  .top-nav,
  .landing-header,
  .programs-header,
  .landing-shell,
  .programs-hero,
  .programs-workbench {
    width: calc(100vw - 24px) !important;
  }

  .site-bar,
  .wizard-header,
  .landing-header,
  .programs-header,
  .top-nav {
    top: 10px !important;
    padding: 14px !important;
  }

  body.body-wizard .wizard-step,
  .recommendation-precheck,
  .recommendation-precheck__panel,
  .program-filter-panel,
  .community-topbar,
  .community-feed-stage,
  .community-panel,
  .profile-main__header,
  .form-section,
  .auth-modal,
  .modal-box {
    padding: 22px !important;
  }

  .community-shell {
    grid-template-columns: 1fr !important;
  }

  .community-sidebar {
    position: static;
    min-height: auto;
    margin: 12px;
  }

  .community-workspace {
    padding: 6px 12px 32px !important;
  }

  .masonry-feed {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  body.body-wizard .wizard-shell {
    width: calc(100vw - 20px) !important;
    padding: 10px 0 28px !important;
    gap: 16px !important;
  }

  body.body-wizard .step-indicator__list {
    grid-template-columns: 1fr;
  }

  body.body-wizard .wizard-footer {
    width: 100%;
    flex-wrap: wrap;
  }

  .form-grid--two,
  .grid.two,
  .selection-stage-grid,
  .selection-result-grid {
    grid-template-columns: 1fr !important;
  }

  .profile-sidebar__nav {
    flex-direction: row !important;
    overflow-x: auto;
  }

  .profile-main__status,
  .profile-summary-card {
    width: 100%;
  }
}

body.body-ps {
  --ps-accent: #60a5fa;
  --ps-accent-soft: rgba(96, 165, 250, 0.16);
  --ps-ink: #0f172a;
  --ps-line: rgba(15, 23, 42, 0.14);
  --ps-surface: rgba(255, 255, 255, 0.84);
  --ps-surface-strong: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at top left, rgba(250, 214, 162, 0.24), transparent 24%),
    radial-gradient(circle at top right, rgba(178, 219, 255, 0.22), transparent 26%),
    linear-gradient(180deg, #fff9e8 0%, #f7f1df 100%);
}

body.body-ps .wizard-shell--ps {
  width: min(1540px, calc(100vw - 40px)) !important;
  padding: 20px 0 34px !important;
  gap: 20px !important;
}

body.body-ps .wizard-header--ps {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 22px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

body.body-ps .wizard-brand {
  gap: 14px;
}

body.body-ps .wizard-brand__badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.92);
}

body.body-ps .wizard-brand__icon {
  width: 34px;
  height: 34px;
}

body.body-ps .wizard-header__meta {
  display: grid;
  gap: 4px;
  justify-self: center;
  text-align: center;
}

body.body-ps .wizard-header__meta p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.48);
}

body.body-ps .wizard-header__meta strong {
  color: var(--ps-ink);
  font-size: 1rem;
}

body.body-ps .wizard-workspace {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

body.body-ps .wizard-rail {
  position: sticky;
  top: 96px;
}

body.body-ps .step-indicator {
  display: grid;
  gap: 22px;
  padding: 24px 20px !important;
  border: 0 !important;
  background: rgba(255, 252, 243, 0.84) !important;
}

body.body-ps .step-indicator__intro {
  display: grid;
  gap: 12px;
}

body.body-ps .step-indicator__intro h1 {
  margin: 0;
  color: var(--ps-ink);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.6vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

body.body-ps .step-indicator__intro p {
  margin: 0;
  color: rgba(15, 23, 42, 0.66);
  line-height: 1.8;
  font-size: 0.94rem;
}

body.body-ps .step-indicator__list {
  display: grid !important;
  gap: 10px;
}

body.body-ps .step-indicator__item,
body.body-ps .step-indicator__item:hover {
  opacity: 1 !important;
}

body.body-ps .step-indicator__item:not(:last-child)::after {
  display: none !important;
}

body.body-ps .step-indicator__button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1.5px solid transparent;
  border-radius: 22px 14px 20px 12px / 14px 20px 12px 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.body-ps .step-indicator__button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.08);
}

body.body-ps .step-indicator__number {
  width: 42px !important;
  height: 42px !important;
  border: 1.5px solid var(--ps-line) !important;
  border-radius: 14px 10px 16px 9px / 11px 16px 10px 15px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--ps-ink) !important;
  box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-ps .step-indicator__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.body-ps .step-indicator__label {
  display: block !important;
  margin: 0 !important;
  color: var(--ps-ink) !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
}

body.body-ps .step-indicator__caption {
  display: block;
  color: rgba(15, 23, 42, 0.52);
  font-size: 0.82rem;
  line-height: 1.4;
}

body.body-ps .step-indicator__item.is-active .step-indicator__button {
  background: #0f172a;
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.14);
}

body.body-ps .step-indicator__item.is-active .step-indicator__number {
  color: white !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

body.body-ps .step-indicator__item.is-active .step-indicator__label,
body.body-ps .step-indicator__item.is-active .step-indicator__caption {
  color: white !important;
}

body.body-ps .step-indicator__item.is-complete .step-indicator__button {
  background: var(--ps-accent-soft);
}

body.body-ps .step-indicator__summary {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.92);
}

body.body-ps .step-indicator__summary-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.46);
}

body.body-ps .step-indicator__summary strong {
  font-size: 1.05rem;
  color: var(--ps-ink);
}

body.body-ps .step-indicator__summary p {
  margin: 0;
  color: rgba(15, 23, 42, 0.66);
  line-height: 1.75;
  font-size: 0.9rem;
}

body.body-ps .wizard-stage {
  min-width: 0;
}

body.body-ps .wizard-step {
  min-height: 820px;
  padding: 0 !important;
  border: 0 !important;
  background: var(--ps-surface) !important;
  overflow: hidden;
  animation: none !important;
}

body.body-ps .wizard-step--enter-next {
  animation: ps-step-enter-next 320ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body.body-ps .wizard-step--enter-prev {
  animation: ps-step-enter-prev 320ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@keyframes ps-step-enter-next {
  from {
    opacity: 0;
    transform: translate3d(24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ps-step-enter-prev {
  from {
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

body.body-ps .step-content,
body.body-ps .step-content--wide {
  max-width: none !important;
  padding: 40px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    transparent;
  display: grid;
  gap: 30px;
}

body.body-ps .step-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

body.body-ps .step-header {
  margin: 0 !important;
  display: grid;
  gap: 14px;
}

body.body-ps .step-header h2 {
  margin: 0 !important;
  max-width: 13ch;
  color: var(--ps-ink);
  font-size: clamp(2.2rem, 3.9vw, 3.55rem) !important;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body.body-ps .step-header p {
  margin: 0;
  max-width: 68ch;
  color: rgba(15, 23, 42, 0.66) !important;
  font-size: 0.98rem;
  line-height: 1.86;
}

body.body-ps .step-hero__note {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 0 !important;
  background: rgba(255, 250, 237, 0.94);
  align-content: start;
}

body.body-ps .step-hero__note span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.44);
}

body.body-ps .step-hero__note p {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.78;
  font-size: 0.92rem;
}

body.body-ps .ps-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 20px;
  align-items: start;
}

body.body-ps .before-result-preview {
  margin: 0 !important;
  padding: 24px !important;
  border: 0 !important;
  background: rgba(255, 251, 244, 0.92) !important;
}

body.body-ps .before-result-preview .result-preview {
  background: rgba(255, 255, 255, 0.78) !important;
}

body.body-ps .before-result-preview .word-scale-preview {
  --word-scale: 0.38;
}

body.body-ps .before-result-preview .result-preview__paper {
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

body.body-ps .ps-panel,
body.body-ps .experience-section,
body.body-ps .result-view {
  border: 0 !important;
  background: var(--ps-surface-strong) !important;
}

body.body-ps .ps-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
}

body.body-ps .ps-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body.body-ps .ps-panel__head h3 {
  margin: 8px 0 0;
  color: var(--ps-ink);
  font-size: 1.22rem;
}

body.body-ps .ps-panel__head p {
  margin: 0;
  max-width: 34ch;
  color: rgba(15, 23, 42, 0.62);
  line-height: 1.75;
  font-size: 0.92rem;
}

body.body-ps .sop-fit-fields {
  display: grid;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

body.body-sop #sop-example-preview .word-scale-preview {
  --word-scale: 0.46;
}

body.body-sop .sop-fit-fields .ps-panel__head p {
  max-width: 64rem;
}

body.body-ps .ps-target-toggle {
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 0 !important;
  background: rgba(248, 250, 252, 0.92) !important;
  align-items: stretch;
}

body.body-ps .ps-target-label {
  width: 100%;
  justify-content: space-between;
  gap: 16px;
}

body.body-ps .ps-target-copy {
  display: grid;
  gap: 4px;
}

body.body-ps .ps-target-text {
  color: var(--ps-ink);
  font-size: 1rem;
  font-weight: 800;
}

body.body-ps .ps-target-hint {
  color: rgba(15, 23, 42, 0.56);
  font-size: 0.84rem;
  line-height: 1.6;
}

body.body-ps .ps-toggle-track {
  background: rgba(15, 23, 42, 0.14) !important;
}

body.body-ps .ps-toggle-wrap input:checked + .ps-toggle-track {
  background: var(--ps-accent) !important;
}

body.body-ps .ps-toggle-label {
  min-width: 18px;
  color: var(--ps-ink) !important;
}

body.body-ps .ps-prefill-status {
  margin-left: 0 !important;
  color: rgba(15, 23, 42, 0.56) !important;
  line-height: 1.6;
}

body.body-ps .form-grid__full {
  grid-column: 1 / -1;
}

body.body-ps .step-split--ps {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr) !important;
  gap: 20px !important;
}

body.body-ps .step-split__tips {
  position: sticky;
  top: 110px;
  padding: 22px !important;
  border: 0 !important;
  background: rgba(248, 250, 252, 0.9) !important;
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-ps .step-split__tips h3 {
  margin: 0 0 14px;
  color: var(--ps-ink);
  font-size: 1rem;
  font-weight: 800;
}

body.body-ps .step-split__tips ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.68) !important;
}

body.body-ps .step-split__tips li + li {
  margin-top: 8px;
}

body.body-ps .ps-experience-grid {
  display: grid;
  gap: 20px;
}

body.body-ps .experience-section {
  padding: 24px !important;
}

body.body-ps .experience-section__head {
  margin-bottom: 14px !important;
}

body.body-ps .experience-stack {
  gap: 16px !important;
}

body.body-ps .ps-experience-add-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

body.body-ps .ps-experience-add-row__button {
  min-width: 128px;
}

body.body-ps .experience-card {
  padding: 20px !important;
  border: 0 !important;
  background: rgba(248, 250, 252, 0.88) !important;
}

body.body-ps .experience-card__head {
  align-items: flex-start;
}

body.body-ps .ps-panel--additional {
  align-items: start;
}

body.body-ps .step-hint {
  margin: 0 !important;
  border: 0 !important;
  background: rgba(255, 248, 230, 0.94) !important;
  box-shadow: none !important;
}

body.body-ps .ps-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 20px;
  align-items: start;
}

body.body-ps .ps-panel--review .review-summary {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.body-ps .ps-panel--generate {
  position: sticky;
  top: 110px;
  align-content: start;
}

body.body-ps .generate-controls {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
}

body.body-ps .generate-controls .primary-button {
  width: 100%;
}

body.body-ps .generation-status {
  color: rgba(15, 23, 42, 0.68) !important;
}

body.body-ps .ps-generate-note {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 0 !important;
  background: rgba(255, 248, 230, 0.94) !important;
}

body.body-ps .ps-generate-note strong {
  color: var(--ps-ink);
  font-size: 0.96rem;
}

body.body-ps .ps-generate-note p {
  margin: 0;
  color: rgba(15, 23, 42, 0.68);
  line-height: 1.75;
  font-size: 0.92rem;
}

body.body-ps .result-view {
  padding: 24px !important;
  gap: 18px !important;
}

body.body-ps .result-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ps-ink);
  font-weight: 800;
}

body.body-ps .result-status[data-tone="active"] {
  background: rgba(96, 165, 250, 0.16);
}

body.body-ps .result-status[data-tone="ready"] {
  background: rgba(16, 185, 129, 0.14);
}

body.body-ps .result-status[data-tone="done"] {
  background: rgba(249, 115, 22, 0.14);
}

body.body-ps .result-view__actions {
  flex-wrap: wrap;
}

body.body-ps .ps-transcript-status.has-error,
body.body-cv .cv-transcript-status.has-error {
  border-color: var(--error) !important;
  background: rgba(192, 57, 43, 0.06) !important;
  color: var(--error) !important;
}

body.body-ps .refine-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 0 !important;
  background: rgba(248, 250, 252, 0.9) !important;
}

body.body-ps .wizard-footer {
  position: sticky;
  bottom: 16px;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.84) !important;
}

body.body-ps .wizard-footer__meta {
  display: grid;
  gap: 2px;
}

body.body-ps .wizard-footer__meta span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.42);
}

body.body-ps .wizard-footer__meta strong {
  color: var(--ps-ink);
  font-size: 0.96rem;
}

body.body-ps .wizard-footer__spacer {
  min-height: 1px;
}

body.body-ps .primary-button,
body.body-ps .ghost-button,
body.body-ps .inline-button,
body.body-ps .soft-button,
body.body-ps .ps-upload-trigger {
  border-radius: 22px 12px 18px 10px / 12px 18px 10px 22px !important;
  border: 1.5px solid var(--ps-line) !important;
}

body.body-ps .primary-button {
  min-height: 52px;
  background: #0f172a !important;
  color: white !important;
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.14) !important;
}

body.body-ps .primary-button:hover {
  background: #111827 !important;
  transform: translate(2px, 2px) !important;
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.14) !important;
}

body.body-ps .primary-button:disabled {
  box-shadow: none !important;
}

body.body-ps .ghost-button,
body.body-ps .inline-button,
body.body-ps .soft-button {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--ps-ink) !important;
  box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-ps .ghost-button:hover,
body.body-ps .inline-button:hover,
body.body-ps .soft-button:hover {
  transform: translate(1px, 1px) !important;
  box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-ps .ghost-button--danger {
  background: rgba(248, 113, 113, 0.14) !important;
}

body.body-ps .ps-upload-trigger {
  background: rgba(248, 250, 252, 0.92) !important;
  border-style: dashed !important;
  border-color: rgba(15, 23, 42, 0.24) !important;
  box-shadow: none !important;
}

body.body-ps .ps-upload-trigger:hover {
  border-color: rgba(15, 23, 42, 0.38) !important;
}

body.body-ps label span {
  color: var(--ps-ink) !important;
  font-weight: 800 !important;
}

body.body-ps input,
body.body-ps textarea,
body.body-ps select {
  border: 1.5px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 18px 10px 16px 10px / 10px 16px 10px 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--ps-ink) !important;
}

body.body-ps input:focus,
body.body-ps textarea:focus,
body.body-ps select:focus {
  border-color: rgba(96, 165, 250, 0.58) !important;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16) !important;
  transform: none !important;
}

body.body-ps .site-footer {
  margin-top: 6px !important;
}

@media (max-width: 1180px) {
  body.body-ps .wizard-workspace,
  body.body-ps .ps-intro-grid,
  body.body-ps .step-split--ps,
  body.body-ps .ps-review-grid,
  body.body-ps .step-hero {
    grid-template-columns: 1fr !important;
  }

  body.body-ps .wizard-rail,
  body.body-ps .step-split__tips,
  body.body-ps .ps-panel--generate {
    position: static;
  }

  body.body-ps .step-header h2 {
    max-width: none;
  }

  body.body-ps .ps-panel__head {
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  body.body-ps .wizard-header--ps {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  body.body-ps .wizard-header__meta {
    justify-self: start;
    text-align: left;
  }

  body.body-ps .wizard-header__nav {
    justify-content: space-between;
  }

  body.body-ps .step-indicator__list {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(182px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body.body-ps .step-indicator__list::-webkit-scrollbar {
    height: 6px;
  }
}

@media (max-width: 768px) {
  body.body-ps .wizard-shell--ps {
    width: calc(100vw - 20px) !important;
    padding-top: 10px !important;
    gap: 16px !important;
  }

  body.body-ps .wizard-header--ps,
  body.body-ps .step-indicator,
  body.body-ps .wizard-step,
  body.body-ps .wizard-footer {
    border-radius: 24px 14px 20px 12px / 14px 20px 12px 24px !important;
  }

  body.body-ps .step-content,
  body.body-ps .step-content--wide,
  body.body-ps .ps-panel,
  body.body-ps .experience-section,
  body.body-ps .result-view {
    padding: 22px 18px !important;
  }

  body.body-ps .step-header h2 {
    font-size: 2rem !important;
  }

  body.body-ps .before-result-preview .word-scale-preview {
    --word-scale: 0.34;
  }

  body.body-ps .wizard-footer {
    bottom: 10px;
    grid-template-columns: 1fr;
  }

  body.body-ps .wizard-footer__spacer {
    display: none;
  }

  body.body-ps #btn-prev,
  body.body-ps #btn-next {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body.body-ps .wizard-header__nav {
    flex-direction: column;
    align-items: stretch;
  }

  body.body-ps .wizard-header__link {
    width: 100%;
  }

  body.body-ps .step-indicator__list {
    grid-auto-columns: minmax(160px, 1fr);
  }

  body.body-ps .result-view__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  body.body-ps .result-view__actions .soft-button {
    width: 100%;
  }
}

body.body-ps {
  background:
    radial-gradient(circle at top left, rgba(255, 241, 196, 0.28), transparent 22%),
    linear-gradient(180deg, #fffbe8 0%, #fff8dc 100%);
}

body.body-ps .wizard-shell--ps {
  width: min(1020px, calc(100vw - 48px)) !important;
  padding: 0 0 28px !important;
  gap: 18px !important;
}

body.body-ps .wizard-header--ps {
  position: sticky !important;
  top: 0 !important;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 12px 36px 12px 48px !important;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  border: 0 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
}

body.body-ps .wizard-brand {
  gap: 8px;
}

body.body-ps .wizard-brand__badge {
  width: auto;
  height: auto;
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
}

body.body-ps .wizard-brand__icon {
  width: 16px;
  height: 16px;
}

body.body-ps .wizard-brand strong {
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0;
}

body.body-ps .wizard-brand span {
  margin-top: 1px;
  font-size: 0.58rem;
  color: rgba(15, 23, 42, 0.5);
}

body.body-ps .wizard-header__nav {
  justify-self: end;
  gap: 18px;
}

body.body-ps .wizard-header__link {
  min-height: auto;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(15, 23, 42, 0.82);
  box-shadow: none !important;
  font-size: 0.82rem;
  font-weight: 700;
}

body.body-ps .wizard-header__link:hover {
  transform: none !important;
  box-shadow: none !important;
  color: var(--ps-ink);
}

body.body-ps .wizard-workspace {
  grid-template-columns: 176px minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: start;
  padding-top: 12px;
}

body.body-ps .wizard-rail {
  top: 82px;
}

body.body-ps .step-indicator {
  gap: 0;
  padding: 12px !important;
  background: rgba(255, 255, 255, 0.74) !important;
}

body.body-ps .step-indicator__list {
  gap: 8px;
}

body.body-ps .step-indicator__button {
  gap: 10px;
  min-height: 40px;
  padding: 10px 10px 10px 9px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none !important;
}

body.body-ps .step-indicator__button:hover {
  transform: none;
  box-shadow: none !important;
}

body.body-ps .step-indicator__number {
  width: 22px !important;
  height: 22px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  box-shadow: none !important;
  font-size: 0.72rem;
  font-weight: 700;
}

body.body-ps .step-indicator__label {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

body.body-ps .step-indicator__caption {
  display: none;
}

body.body-ps .step-indicator__item.is-active .step-indicator__button {
  background: #0f172a;
  border-color: #0f172a;
  box-shadow: none !important;
}

body.body-ps .wizard-stage {
  position: relative;
  max-width: 760px;
}

body.body-ps .wizard-step {
  min-height: 894px;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
}

body.body-ps .step-content,
body.body-ps .step-content--wide {
  padding: 38px 40px 132px !important;
  gap: 24px;
  background: transparent;
}

body.body-ps .step-hero__note,
body.body-ps .wizard-footer__meta,
body.body-ps .ps-panel__head p {
  display: none !important;
}

body.body-ps .step-header {
  gap: 10px;
}

body.body-ps .step-header h2 {
  max-width: none;
  font-size: 2.2rem !important;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body.body-ps .step-header p {
  max-width: 48ch;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.42) !important;
}

body.body-ps .section-tag {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7aa2f7;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

body.body-ps .ps-intro-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 20px;
}

body.body-ps .before-result-preview {
  padding: 18px 20px 22px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
}

body.body-ps .before-result-preview__head {
  gap: 10px;
}

body.body-ps .before-result-preview__head h3 {
  font-size: 0.92rem;
  color: var(--ps-ink);
}

body.body-ps .before-result-preview__caption {
  font-size: 0.72rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.5);
}

body.body-ps #ps-example-preview .word-scale-preview {
  --word-scale: 0.31;
}

body.body-ps .ps-panel--form {
  gap: 14px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.body-ps .ps-panel--form .ps-panel__head {
  display: none;
}

body.body-ps .ps-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: end;
}

body.body-ps .ps-target-toggle {
  display: grid;
  gap: 6px;
  padding: 0 !important;
  background: transparent !important;
}

body.body-ps .ps-target-label {
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

body.body-ps .ps-target-text,
body.body-ps .ps-meta-field > span {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: rgba(15, 23, 42, 0.7) !important;
}

body.body-ps .ps-toggle-wrap {
  gap: 8px;
}

body.body-ps .ps-toggle-track {
  width: 32px;
  height: 16px;
}

body.body-ps .ps-toggle-thumb {
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
}

body.body-ps .ps-toggle-wrap input:checked + .ps-toggle-track .ps-toggle-thumb {
  left: 18px;
}

body.body-ps .ps-toggle-label {
  font-size: 0.72rem;
}

body.body-ps .ps-prefill-status {
  font-size: 0.68rem;
  line-height: 1.5;
}

body.body-ps .ps-meta-field {
  display: grid;
  gap: 6px;
}

body.body-ps .form-grid {
  gap: 14px;
}

body.body-ps .form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

body.body-ps .ps-field--half {
  grid-column: 1 / 2;
}

body.body-ps label {
  gap: 6px;
}

body.body-ps label span {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: rgba(15, 23, 42, 0.6) !important;
}

body.body-ps input,
body.body-ps textarea,
body.body-ps select {
  min-height: 36px;
  padding: 9px 11px;
  border: 1px solid rgba(15, 23, 42, 0.22) !important;
  border-radius: 4px !important;
  font-size: 0.78rem;
  box-shadow: none !important;
}

body.body-ps select {
  min-height: 36px;
}

body.body-ps .wizard-footer {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 36px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  grid-template-columns: auto 1fr auto;
}

body.body-ps #btn-prev,
body.body-ps #btn-next {
  min-width: 92px;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 4px !important;
  font-size: 0.76rem;
  box-shadow: none !important;
}

body.body-ps #btn-prev {
  background: rgba(255, 255, 255, 0.92) !important;
  color: rgba(15, 23, 42, 0.42) !important;
}

body.body-ps #btn-prev:disabled {
  opacity: 1;
  cursor: default;
}

body.body-ps #btn-next {
  background: #0f172a !important;
}

body.body-ps .site-footer {
  margin-top: 18px !important;
}

body.body-ps .footer-content {
  gap: 10px;
}

body.body-ps .icp-link,
body.body-ps .police-link {
  font-size: 0.58rem;
  color: rgba(15, 23, 42, 0.26);
}

@media (max-width: 900px) {
  body.body-ps .wizard-shell--ps {
    width: calc(100vw - 24px) !important;
  }

  body.body-ps .wizard-header--ps {
    width: auto;
    margin-left: 0;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  body.body-ps .wizard-workspace {
    grid-template-columns: 1fr !important;
  }

  body.body-ps .wizard-rail,
  body.body-ps .wizard-stage {
    max-width: none;
    position: static;
  }

  body.body-ps .step-indicator__list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 1fr);
    overflow-x: auto;
  }

  body.body-ps .wizard-footer {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 18px;
  }

  body.body-ps .wizard-step {
    min-height: auto;
  }

  body.body-ps .step-content,
  body.body-ps .step-content--wide {
    padding-bottom: 28px !important;
  }
}

@media (max-width: 640px) {
  body.body-ps .ps-meta-grid,
  body.body-ps .form-grid--two {
    grid-template-columns: 1fr !important;
  }

  body.body-ps .step-content,
  body.body-ps .step-content--wide {
    padding: 24px 18px 28px !important;
  }

  body.body-ps .step-header h2 {
    font-size: 1.8rem !important;
  }

  body.body-ps .wizard-footer {
    grid-template-columns: 1fr;
  }

  body.body-ps .result-view__actions {
    grid-template-columns: 1fr;
  }
}

/* PS desktop alignment fixes */
body.body-ps .wizard-shell--ps {
  display: block !important;
  grid-template-columns: none !important;
}

body.body-ps .wizard-workspace {
  display: grid !important;
  grid-template-columns: 236px minmax(0, 760px) !important;
  gap: 30px !important;
  justify-content: center;
  width: 100%;
  max-width: 1026px;
  margin: 0 auto;
}

body.body-ps .wizard-stage {
  width: 100%;
  max-width: 760px;
}

body.body-ps .step-indicator__intro[hidden],
body.body-ps .step-indicator__summary[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  body.body-ps .wizard-workspace {
    grid-template-columns: 1fr !important;
    max-width: none;
  }

  body.body-ps .wizard-stage {
    max-width: none;
  }
}

@media (min-width: 901px) {
  body.body-ps .wizard-shell--ps {
    width: min(1088px, calc(100vw - 48px)) !important;
  }

  body.body-ps .wizard-rail {
    width: 236px;
    max-width: 236px;
    top: 82px;
  }

  body.body-ps .step-indicator {
    gap: 0;
    padding: 16px 14px !important;
  }

  body.body-ps .step-indicator__list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
    width: 100%;
  }

  body.body-ps .step-indicator__item {
    display: block !important;
    grid-template-columns: none !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.body-ps .step-indicator__item::after {
    display: none !important;
  }

  body.body-ps .step-indicator__button {
    width: 100%;
    min-height: 62px;
    padding: 14px 16px;
    gap: 14px;
    justify-content: flex-start;
    border-radius: 10px !important;
  }

  body.body-ps .step-indicator__number {
    width: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
    font-size: 0.82rem;
    flex: 0 0 auto;
  }

  body.body-ps .step-indicator__copy {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  body.body-ps .step-indicator__label {
    font-size: 0.98rem !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  body.body-ps .step-content,
  body.body-ps .step-content--wide {
    padding: 34px 38px 24px !important;
    gap: 20px;
  }

  body.body-ps .before-result-preview {
    padding: 16px 18px 18px !important;
  }

  body.body-ps #ps-example-preview .word-scale-preview {
    --word-scale: 0.27;
  }

  body.body-ps .form-grid {
    gap: 12px;
  }

  body.body-ps .form-grid--two {
    column-gap: 16px;
    row-gap: 12px;
  }

  body.body-ps .wizard-footer {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 38px 28px;
  }
}

/* PS final polish */
body.body-ps .wizard-header--ps {
  padding: 14px 36px 14px 48px !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  background: linear-gradient(180deg, rgba(255, 250, 232, 0.96), rgba(255, 246, 214, 0.92)) !important;
}

body.body-ps .wizard-brand {
  gap: 12px;
}

body.body-ps .wizard-brand__badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}

body.body-ps .wizard-brand__icon {
  width: 28px;
  height: 28px;
}

body.body-ps .wizard-brand strong {
  font-size: 1.34rem;
}

body.body-ps .wizard-brand span {
  font-size: 0.66rem;
}

body.body-ps .wizard-stage,
body.body-ps .wizard-step {
  overflow: visible !important;
}

body.body-ps .wizard-step {
  min-height: auto !important;
}

body.body-ps .wizard-footer {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 18px 0 0 !important;
  padding: 22px 0 0 !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (min-width: 901px) {
  body.body-ps .wizard-footer {
    grid-template-columns: auto 1fr auto !important;
    align-items: center;
    margin: 22px 0 0 !important;
    padding: 24px 0 0 !important;
  }
}

/* PS screenshot alignment */
body.body-ps .wizard-shell--ps {
  width: min(1600px, calc(100vw - 24px)) !important;
  padding: 0 12px 48px !important;
}

body.body-ps .wizard-header--ps {
  position: sticky !important;
  top: 0 !important;
  width: 100vw;
  height: 80px;
  margin-left: calc(50% - 50vw);
  padding: 0 32px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  border: 0 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(255, 250, 232, 0.98), rgba(255, 246, 214, 0.94)) !important;
  box-shadow: none !important;
}

body.body-ps .wizard-brand {
  gap: 10px;
}

body.body-ps .wizard-brand__badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
}

body.body-ps .wizard-brand__icon {
  width: 34px;
  height: 34px;
}

body.body-ps .wizard-brand strong {
  font-size: 1.5rem;
  line-height: 1;
}

body.body-ps .wizard-brand span {
  margin-top: 2px;
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.5);
}

body.body-ps .wizard-header__nav {
  gap: 18px;
}

body.body-ps .wizard-workspace {
  display: grid !important;
  grid-template-columns: 288px minmax(0, 1fr) !important;
  gap: 32px !important;
  align-items: start;
  width: min(1480px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 32px 0 0;
}

body.body-ps .wizard-rail {
  position: sticky;
  top: 112px;
  width: 288px;
  max-width: 288px;
}

body.body-ps .step-indicator {
  padding: 16px !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

body.body-ps .step-indicator__button {
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 10px !important;
}

body.body-ps .step-indicator__number {
  width: 34px !important;
  height: 34px !important;
}

body.body-ps .step-indicator__label {
  font-size: 1.02rem !important;
}

body.body-ps .wizard-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  min-height: 1160px;
  padding: 34px 64px 42px !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--workspace-shadow-sm) !important;
}

body.body-ps .wizard-step {
  flex: 1 1 auto;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.body-ps .step-content,
body.body-ps .step-content--wide {
  max-width: none !important;
  padding: 0 !important;
  display: grid;
  gap: 34px;
  background: transparent !important;
}

body.body-ps .step-header {
  gap: 14px;
  margin: 0 !important;
}

body.body-ps .step-header h2 {
  font-size: 4rem !important;
  line-height: 1.05;
}

body.body-ps .step-header p {
  max-width: none;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(15, 23, 42, 0.4) !important;
}

body.body-ps .ps-intro-grid {
  grid-template-columns: 1fr !important;
  gap: 28px;
}

body.body-ps .before-result-preview {
  padding: 30px 32px 32px !important;
}

body.body-ps #ps-example-preview .word-scale-preview {
  --word-scale: 0.42;
}

body.body-ps .ps-panel--form {
  gap: 20px;
}

body.body-ps .ps-meta-grid {
  grid-template-columns: minmax(0, 1fr) 1fr;
  gap: 28px;
}

body.body-ps .form-grid {
  gap: 24px;
}

body.body-ps .form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 24px;
}

body.body-ps .ps-field--half {
  grid-column: 1 / 2;
}

body.body-ps input,
body.body-ps textarea,
body.body-ps select {
  min-height: 58px;
  padding: 14px 16px;
  font-size: 0.98rem;
}

body.body-ps .wizard-footer {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  margin-top: auto !important;
  padding: 48px 0 0 !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: transparent !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center;
}

body.body-ps .wizard-footer__meta,
body.body-ps .wizard-footer__spacer {
  display: none !important;
}

body.body-ps #btn-prev,
body.body-ps #btn-next {
  min-width: 146px;
  min-height: 56px;
  padding: 0 28px;
  font-size: 1rem;
}

body.body-ps #btn-next {
  justify-self: end;
}

body.body-ps .site-footer {
  margin-top: 18px !important;
}

@media (max-width: 1200px) {
  body.body-ps .wizard-workspace {
    grid-template-columns: 248px minmax(0, 1fr) !important;
  }

  body.body-ps .wizard-rail {
    width: 248px;
    max-width: 248px;
  }

  body.body-ps .wizard-stage {
    padding: 28px 34px 34px !important;
  }

  body.body-ps .step-header h2 {
    font-size: 3rem !important;
  }
}

@media (max-width: 900px) {
  body.body-ps .wizard-header--ps {
    width: auto;
    height: auto;
    margin-left: 0;
    padding: 14px 16px !important;
    border-radius: 16px !important;
  }

  body.body-ps .wizard-workspace {
    grid-template-columns: 1fr !important;
    width: 100%;
    padding-top: 20px;
  }

  body.body-ps .wizard-rail {
    position: static;
    width: 100%;
    max-width: none;
  }

  body.body-ps .wizard-stage {
    min-height: auto;
    padding: 24px 18px 28px !important;
  }

  body.body-ps .step-header h2 {
    font-size: 2.1rem !important;
  }

  body.body-ps .ps-meta-grid,
  body.body-ps .form-grid--two {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  body.body-ps .wizard-footer {
    grid-template-columns: 1fr auto !important;
    gap: 14px;
    padding-top: 28px !important;
  }
}

@media (max-width: 640px) {
  body.body-ps .wizard-header--ps {
    padding: 12px 14px !important;
  }

  body.body-ps .wizard-brand__badge {
    width: 32px;
    height: 32px;
  }

  body.body-ps .wizard-brand__icon {
    width: 26px;
    height: 26px;
  }

  body.body-ps #btn-prev,
  body.body-ps #btn-next {
    min-width: 0;
    width: 100%;
  }

  body.body-ps .wizard-footer {
    grid-template-columns: 1fr !important;
  }

  body.body-ps #btn-next {
    justify-self: stretch;
  }
}

/* PS ai_studio strict */
body.body-ps {
  background: #fefce8 !important;
  overflow-x: hidden;
}

body.body-ps .wizard-shell--ps {
  width: min(1600px, calc(100vw - 24px)) !important;
  padding: 0 0 48px !important;
}

body.body-ps .wizard-header--ps {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  width: 100vw !important;
  height: 80px;
  margin-left: calc(50% - 50vw);
  padding: 0 32px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  border: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 0 !important;
  background: rgba(254, 252, 232, 0.9) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
}

body.body-ps .wizard-brand {
  gap: 10px;
}

body.body-ps .wizard-brand__badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.body-ps .wizard-brand__icon {
  width: 36px !important;
  height: 36px !important;
}

body.body-ps .wizard-brand strong {
  font-size: 1.85rem;
  line-height: 1;
  color: #0f172a;
}

body.body-ps .wizard-brand span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.46);
}

body.body-ps .wizard-header__nav {
  gap: 18px;
}

body.body-ps .wizard-header__link {
  min-height: auto;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(15, 23, 42, 0.78);
  box-shadow: none !important;
  transform: none !important;
  font-size: 0.82rem;
  font-weight: 700;
}

body.body-ps .wizard-workspace {
  display: grid !important;
  grid-template-columns: 288px minmax(0, 1fr) !important;
  gap: 32px !important;
  align-items: start;
  width: min(1540px, 100%);
  max-width: none !important;
  margin: 0 auto;
  padding: 32px 0 0;
}

body.body-ps .wizard-rail {
  position: sticky;
  top: 112px;
  width: 288px;
  max-width: 288px;
}

body.body-ps .step-indicator {
  display: grid;
  gap: 0;
  padding: 16px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-ps .step-indicator__intro,
body.body-ps .step-indicator__summary {
  display: none !important;
}

body.body-ps .step-indicator__list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px;
  width: 100%;
}

body.body-ps .step-indicator__item,
body.body-ps .step-indicator__item:hover {
  display: block !important;
  opacity: 1 !important;
}

body.body-ps .step-indicator__item::after {
  display: none !important;
}

body.body-ps .step-indicator__button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1.5px solid rgba(148, 163, 184, 0.35) !important;
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: none !important;
  text-align: left;
  transform: none !important;
}

body.body-ps .step-indicator__number {
  width: 32px !important;
  height: 32px !important;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1.5px solid rgba(148, 163, 184, 0.44) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-size: 0.8rem;
  font-weight: 700;
}

body.body-ps .step-indicator__copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

body.body-ps .step-indicator__label {
  display: block !important;
  font-size: 1rem !important;
  line-height: 1.1 !important;
  color: #475569 !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

body.body-ps .step-indicator__caption {
  display: none !important;
}

body.body-ps .step-indicator__item.is-active .step-indicator__button {
  border-color: #0f172a !important;
  background: #0f172a !important;
}

body.body-ps .step-indicator__item.is-active .step-indicator__number {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  color: #ffffff !important;
}

body.body-ps .step-indicator__item.is-active .step-indicator__label {
  color: #ffffff !important;
}

body.body-ps .wizard-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  min-height: 800px;
  padding: 36px 64px 40px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-ps .wizard-step {
  flex: 1 1 auto;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.body-ps .step-content,
body.body-ps .step-content--wide {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid;
  gap: 36px;
  background: transparent !important;
}

body.body-ps .step-hero__note,
body.body-ps .wizard-footer__meta,
body.body-ps .ps-panel__head p {
  display: none !important;
}

body.body-ps .section-tag {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

body.body-ps .step-header {
  margin: 0 !important;
  display: grid;
  gap: 14px;
}

body.body-ps .step-header h2 {
  margin: 0 !important;
  font-size: 3.9rem !important;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #0f172a;
}

body.body-ps .step-header p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(15, 23, 42, 0.38) !important;
}

body.body-ps .ps-intro-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 28px;
}

body.body-ps .before-result-preview {
  padding: 26px 32px 30px !important;
  background: rgba(248, 250, 252, 0.36) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
  box-shadow: none !important;
}

body.body-ps .before-result-preview__head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

body.body-ps .before-result-preview__head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
}

body.body-ps .before-result-preview__caption {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #475569;
}

body.body-ps #ps-example-preview .word-scale-preview {
  --word-scale: 0.43;
}

body.body-ps .before-result-preview .result-preview {
  padding: 22px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
  box-shadow: none !important;
}

body.body-ps .result-preview__paper {
  box-shadow: none !important;
}

body.body-ps .ps-panel--form {
  display: grid;
  gap: 18px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.body-ps .ps-panel--form .ps-panel__head {
  display: none !important;
}

body.body-ps .ps-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 34px;
  align-items: end;
}

body.body-ps .ps-target-toggle {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.body-ps .ps-target-label {
  justify-content: flex-start;
  gap: 14px;
}

body.body-ps .ps-target-text,
body.body-ps .ps-meta-field > span,
body.body-ps label span {
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
}

body.body-ps .ps-toggle-track {
  width: 48px;
  height: 26px;
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28) !important;
}

body.body-ps .ps-toggle-thumb {
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
}

body.body-ps .ps-toggle-wrap input:checked + .ps-toggle-track {
  background: #60a5fa !important;
}

body.body-ps .ps-toggle-wrap input:checked + .ps-toggle-track .ps-toggle-thumb {
  left: 25px;
}

body.body-ps .ps-toggle-label {
  font-size: 0.82rem;
}

body.body-ps .form-grid {
  display: grid;
  gap: 24px;
}

body.body-ps .form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 22px;
}

body.body-ps .ps-field--half {
  grid-column: 1 / 2;
}

body.body-ps .form-grid__full {
  grid-column: 1 / -1;
}

body.body-ps label {
  display: grid;
  gap: 10px;
}

body.body-ps input,
body.body-ps textarea,
body.body-ps select {
  min-height: 58px;
  padding: 14px 16px;
  border: 1.5px solid rgba(15, 23, 42, 0.18) !important;
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  color: #0f172a !important;
  box-shadow: none !important;
  font-size: 0.96rem;
}

body.body-ps textarea {
  min-height: 140px;
}

body.body-ps input:focus,
body.body-ps textarea:focus,
body.body-ps select:focus {
  border-color: rgba(96, 165, 250, 0.72) !important;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14) !important;
  transform: none !important;
}

body.body-ps .wizard-footer {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100% !important;
  max-width: none !important;
  margin: 72px 0 0 !important;
  padding: 40px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.body-ps .wizard-footer__meta,
body.body-ps .wizard-footer__spacer {
  display: none !important;
}

body.body-ps #btn-prev,
body.body-ps #btn-next {
  min-width: 146px;
  min-height: 56px;
  padding: 0 28px;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
  box-shadow: none !important;
  font-size: 1rem;
  font-weight: 700;
}

body.body-ps #btn-prev {
  background: rgba(255, 255, 255, 0.98) !important;
  color: rgba(15, 23, 42, 0.32) !important;
}

body.body-ps #btn-prev:disabled {
  opacity: 1;
  cursor: default;
}

body.body-ps #btn-next {
  margin-left: auto;
  background: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16) !important;
}

body.body-ps .site-footer {
  margin-top: 14px !important;
}

@media (max-width: 1200px) {
  body.body-ps .wizard-workspace {
    grid-template-columns: 248px minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  body.body-ps .wizard-rail {
    width: 248px;
    max-width: 248px;
  }

  body.body-ps .wizard-stage {
    padding: 28px 34px 34px !important;
  }

  body.body-ps .step-header h2 {
    font-size: 3rem !important;
  }

  body.body-ps .ps-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  body.body-ps .wizard-header--ps {
    width: auto !important;
    height: auto;
    margin-left: 0;
    padding: 14px 16px !important;
    border-radius: 16px !important;
  }

  body.body-ps .wizard-workspace {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100%;
    padding-top: 18px;
  }

  body.body-ps .wizard-rail {
    position: static;
    width: 100%;
    max-width: none;
  }

  body.body-ps .wizard-stage {
    min-height: auto;
    padding: 24px 18px 28px !important;
  }

  body.body-ps .step-header h2 {
    font-size: 2.2rem !important;
  }

  body.body-ps .ps-meta-grid,
  body.body-ps .form-grid--two {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  body.body-ps .wizard-footer {
    margin-top: 42px !important;
    padding-top: 24px !important;
  }
}

@media (max-width: 640px) {
  body.body-ps .wizard-brand__badge {
    width: 34px;
    height: 34px;
  }

  body.body-ps .wizard-brand__icon {
    width: 28px !important;
    height: 28px !important;
  }

  body.body-ps #btn-prev,
  body.body-ps #btn-next {
    min-width: 0;
    width: 100%;
  }

  body.body-ps .wizard-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

/* CV / Recommendation ai-studio alignment */
body.body-cv,
body.body-recommendation {
  background: #fefce8 !important;
  overflow-x: hidden;
}

body.body-cv .wizard-shell--cv,
body.body-recommendation .wizard-shell--recommendation {
  display: block !important;
  width: min(1600px, calc(100vw - 24px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 0 48px !important;
}

body.body-cv .wizard-header--cv,
body.body-recommendation .wizard-header--recommendation {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  width: 100vw !important;
  height: 80px;
  margin-left: calc(50% - 50vw);
  padding: 0 32px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  border: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 0 !important;
  background: rgba(254, 252, 232, 0.9) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
}

body.body-cv .wizard-brand,
body.body-recommendation .wizard-brand {
  gap: 10px;
}

body.body-cv .wizard-brand__badge,
body.body-recommendation .wizard-brand__badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.body-cv .wizard-brand__icon,
body.body-recommendation .wizard-brand__icon {
  width: 36px !important;
  height: 36px !important;
}

body.body-cv .wizard-brand strong,
body.body-recommendation .wizard-brand strong {
  font-size: 1.85rem;
  line-height: 1;
  color: #0f172a;
}

body.body-cv .wizard-brand span,
body.body-recommendation .wizard-brand span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.46);
}

body.body-cv .wizard-header__nav,
body.body-recommendation .wizard-header__nav {
  gap: 18px;
}

body.body-cv .wizard-header__link,
body.body-recommendation .wizard-header__link {
  min-height: auto;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.76) !important;
}

body.body-cv .wizard-workspace,
body.body-recommendation .wizard-workspace {
  display: grid !important;
  grid-template-columns: 288px minmax(0, 1fr) !important;
  gap: 32px !important;
  align-items: start;
  width: min(1540px, 100%);
  max-width: none !important;
  margin: 0 auto;
  padding: 32px 0 0;
}

body.body-cv .wizard-rail,
body.body-recommendation .wizard-rail {
  position: sticky;
  top: 112px;
  width: 288px;
  max-width: 288px;
}

body.body-recommendation .wizard-rail[hidden] {
  display: none !important;
}

body.body-recommendation .wizard-rail[hidden] + .wizard-stage {
  grid-column: 1 / -1;
  max-width: min(1180px, 100%);
  margin: 0 auto;
}

body.body-cv .step-indicator,
body.body-recommendation .step-indicator {
  display: grid;
  gap: 0;
  padding: 16px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-cv .step-indicator__list,
body.body-recommendation .step-indicator__list {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 12px;
  width: 100%;
}

body.body-cv .step-indicator__item,
body.body-recommendation .step-indicator__item {
  list-style: none;
  display: block !important;
  opacity: 1 !important;
}

body.body-cv .step-indicator__item::after,
body.body-recommendation .step-indicator__item::after {
  display: none !important;
}

body.body-cv .step-indicator__button,
body.body-recommendation .step-indicator__button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1.5px solid rgba(148, 163, 184, 0.35) !important;
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: none !important;
  color: #475569 !important;
  text-align: left;
  transform: none !important;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

body.body-cv .step-indicator__number,
body.body-recommendation .step-indicator__number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1.5px solid rgba(148, 163, 184, 0.44) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 0.8rem;
  font-weight: 700;
}

body.body-cv .step-indicator__copy,
body.body-recommendation .step-indicator__copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

body.body-cv .step-indicator__label,
body.body-recommendation .step-indicator__label {
  display: block !important;
  font-size: 1rem !important;
  line-height: 1.1 !important;
  color: #475569 !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

body.body-cv .step-indicator__item.is-active .step-indicator__button,
body.body-recommendation .step-indicator__item.is-active .step-indicator__button {
  border-color: #0f172a !important;
  background: #0f172a !important;
}

body.body-cv .step-indicator__item.is-active .step-indicator__number,
body.body-recommendation .step-indicator__item.is-active .step-indicator__number {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  color: #ffffff !important;
}

body.body-cv .step-indicator__item.is-active .step-indicator__label,
body.body-recommendation .step-indicator__item.is-active .step-indicator__label {
  color: #ffffff !important;
}

body.body-cv .wizard-stage,
body.body-recommendation .wizard-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  min-height: 800px;
  padding: 36px 64px 40px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-recommendation .wizard-body {
  display: block;
  grid-column: auto;
  min-width: 0;
}

body.body-recommendation .wizard-body[hidden] {
  display: none !important;
}

body.body-recommendation .recommendation-precheck[hidden] {
  display: none !important;
}

body.body-recommendation #recommendation-step-indicator[hidden],
body.body-recommendation .wizard-footer[hidden] {
  display: none !important;
}

body.body-cv .wizard-step,
body.body-recommendation .wizard-step,
body.body-cv .step-content,
body.body-cv .step-content--wide,
body.body-recommendation .step-content,
body.body-recommendation .step-content--wide,
body.body-recommendation .recommendation-precheck {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.body-cv .wizard-step,
body.body-recommendation .wizard-step {
  flex: 1 1 auto;
  min-height: 0 !important;
  overflow: visible !important;
}

body.body-cv .step-content,
body.body-cv .step-content--wide,
body.body-recommendation .step-content,
body.body-recommendation .step-content--wide,
body.body-recommendation .recommendation-precheck {
  max-width: none !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: row;
  gap: 36px;
  align-items: start;
}

body.body-recommendation .recommendation-precheck {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body.body-cv .section-tag,
body.body-recommendation .section-tag {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

body.body-cv .step-header,
body.body-recommendation .step-header {
  margin: 0 !important;
  display: grid;
  gap: 14px;
}

body.body-cv .step-header h2,
body.body-recommendation .step-header h2 {
  margin: 0;
  font-size: clamp(3rem, 4.4vw, 4.3rem) !important;
  line-height: 0.98;
  letter-spacing: -0.06em !important;
  color: #0f172a !important;
}

body.body-cv .step-header p,
body.body-recommendation .step-header p {
  max-width: 760px;
  margin: 0 !important;
  color: #94a3b8 !important;
  font-size: 1rem;
  line-height: 1.8 !important;
}

body.body-recommendation .recommendation-precheck__title {
  font-family: var(--font-display) !important;
  font-size: clamp(3.2rem, 5vw, 4.9rem) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.06em !important;
}

body.body-recommendation #recommendation-step-1 .step-header h2 {
  font-family: var(--landing-font-display, var(--yuyu-font-display, var(--font-display))) !important;
}

body.body-recommendation .recommendation-precheck__title-accent {
  color: #2563eb !important;
  font-style: italic;
}

body.body-cv .before-result-preview,
body.body-cv .result-view,
body.body-cv .review-summary,
body.body-cv .cv-hint-card,
body.body-cv .cv-editor-section,
body.body-cv .experience-section,
body.body-recommendation .before-result-preview,
body.body-recommendation .result-view,
body.body-recommendation .review-summary,
body.body-recommendation .recommendation-precheck__panel,
body.body-recommendation .recommendation-evidence-card,
body.body-recommendation .cv-editor-section,
body.body-recommendation .step-hint {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
  box-shadow: none !important;
}

body.body-cv .generate-controls,
body.body-recommendation .generate-controls,
body.body-recommendation .recommendation-template {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
  box-shadow: none !important;
}

body.body-cv .review-summary,
body.body-cv .cv-hint-card,
body.body-cv .cv-editor-section,
body.body-cv .experience-section,
body.body-recommendation .review-summary,
body.body-recommendation .recommendation-evidence-card,
body.body-recommendation .cv-editor-section,
body.body-recommendation .step-hint {
  padding: 24px 26px !important;
}

body.body-cv .before-result-preview,
body.body-recommendation .before-result-preview {
  padding: 30px 34px !important;
}

body.body-cv .before-result-preview__head,
body.body-recommendation .before-result-preview__head {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

body.body-cv .before-result-preview__head h3,
body.body-recommendation .before-result-preview__head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a !important;
}

body.body-cv .before-result-preview__caption,
body.body-recommendation .before-result-preview__caption {
  margin: 0;
  color: #64748b !important;
  font-size: 0.92rem;
  line-height: 1.8;
}

body.body-cv .before-result-preview .word-scale-preview,
body.body-recommendation .before-result-preview .word-scale-preview {
  width: min(980px, 100%);
  margin: 0 auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.body-cv .before-result-preview .cv-preview,
body.body-cv .result-view .cv-preview,
body.body-recommendation .before-result-preview .result-preview,
body.body-recommendation .result-view .result-preview {
  padding: 12px;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 32px 8px 28px 8px / 8px 28px 8px 32px !important;
}

body.body-cv .ps-target-toggle {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.body-cv .ps-target-label {
  justify-content: flex-start;
  gap: 14px;
}

body.body-cv .ps-target-text,
body.body-cv label span,
body.body-recommendation label span,
body.body-recommendation .recommendation-precheck__panel li,
body.body-recommendation .recommendation-consent span {
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
}

body.body-cv .ps-toggle-track {
  width: 48px;
  height: 26px;
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28) !important;
}

body.body-cv .ps-toggle-thumb {
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
}

body.body-cv .ps-toggle-wrap input:checked + .ps-toggle-track {
  background: #60a5fa !important;
}

body.body-cv .ps-toggle-wrap input:checked + .ps-toggle-track .ps-toggle-thumb {
  left: 25px;
}

body.body-cv .form-grid,
body.body-recommendation .form-grid {
  display: grid;
  gap: 24px;
}

body.body-cv .form-grid--two,
body.body-recommendation .form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 22px;
}

body.body-cv .cv-inline-section-title,
body.body-ps .cv-inline-section-title {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px dashed rgba(15, 23, 42, 0.18);
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
}

body.body-cv label,
body.body-recommendation label {
  display: grid;
  gap: 10px;
}

body.body-cv input,
body.body-cv textarea,
body.body-cv select,
body.body-recommendation input,
body.body-recommendation textarea,
body.body-recommendation select {
  min-height: 58px;
  padding: 14px 16px;
  border: 1.5px solid rgba(15, 23, 42, 0.18) !important;
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  color: #0f172a !important;
  box-shadow: none !important;
  font-size: 0.96rem;
}

body.body-cv textarea,
body.body-recommendation textarea {
  min-height: 140px;
}

body.body-cv input:focus,
body.body-cv textarea:focus,
body.body-cv select:focus,
body.body-recommendation input:focus,
body.body-recommendation textarea:focus,
body.body-recommendation select:focus {
  border-color: rgba(96, 165, 250, 0.72) !important;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14) !important;
  transform: none !important;
}

body.body-cv .experience-section__head,
body.body-recommendation .experience-section__head,
body.body-cv .cv-record-card__head,
body.body-recommendation .cv-record-card__head,
body.body-recommendation .recommendation-precheck__template-head,
body.body-recommendation .result-view__toolbar,
body.body-cv .result-view__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body.body-cv .result-view,
body.body-recommendation .result-view {
  padding: 28px 30px !important;
}

body.body-cv .result-view__actions,
body.body-recommendation .result-view__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.body-cv .soft-button,
body.body-recommendation .soft-button,
body.body-cv .inline-button,
body.body-recommendation .inline-button,
body.body-cv .ghost-button--danger,
body.body-recommendation .ghost-button--danger {
  min-height: 42px;
  padding: 0 16px;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: none !important;
}

body.body-recommendation .recommendation-precheck__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
  align-items: start;
}

body.body-recommendation .recommendation-precheck__panel {
  padding: 24px 26px !important;
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

body.body-recommendation .recommendation-precheck__panel--template {
  grid-column: 1 / -1;
}

body.body-recommendation .recommendation-precheck__panel h3 {
  margin: 0;
  font-family: var(--font-display) !important;
  font-size: clamp(1.32rem, 1.55vw, 1.6rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.04em !important;
  white-space: nowrap;
}

body.body-recommendation .recommendation-precheck__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

body.body-recommendation .recommendation-precheck__list li {
  line-height: 1.7 !important;
}

body.body-recommendation .recommendation-template {
  margin: 0;
  padding: 18px 20px;
}

body.body-recommendation .recommendation-precheck__action-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

body.body-recommendation .recommendation-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
}

body.body-recommendation .recommendation-consent input {
  min-height: 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

body.body-cv .wizard-footer,
body.body-recommendation .wizard-footer {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100% !important;
  max-width: none !important;
  margin: 72px 0 0 !important;
  padding: 40px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.body-cv .wizard-footer__spacer,
body.body-recommendation .wizard-footer__spacer {
  display: none !important;
}

body.body-cv .wizard-footer .ghost-button,
body.body-cv .wizard-footer .primary-button,
body.body-recommendation .wizard-footer .ghost-button,
body.body-recommendation .wizard-footer .primary-button {
  min-width: 146px;
  min-height: 56px;
  padding: 0 28px;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
  box-shadow: none !important;
  font-size: 1rem;
  font-weight: 700;
}

body.body-cv .wizard-footer .ghost-button,
body.body-recommendation .wizard-footer .ghost-button {
  background: rgba(255, 255, 255, 0.98) !important;
  color: rgba(15, 23, 42, 0.32) !important;
}

body.body-cv .wizard-footer .primary-button,
body.body-recommendation .wizard-footer .primary-button {
  margin-left: auto;
  background: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16) !important;
}

body.theme-night .sketch-card,
body.theme-night .state-block,
body.theme-night .profile-hero,
body.theme-night .publish-workbench,
body.theme-night .notification-list button,
body.theme-night .offer-strip article,
body.theme-night .post-card__frame,
body.theme-night .detail-panel,
body.theme-night .program-result-state__metric,
body.theme-night .programs-scale-card,
body.theme-night .programs-scale-item,
body.theme-night .program-modal__panel,
body.theme-night .dashboard-card,
body.theme-night .dashboard-contact-link,
body.theme-night .dashboard-contact-modal__card,
body.theme-night .landing-story-panel,
body.theme-night .landing-story-quote,
body.theme-night .landing-story-compare__card,
body.theme-night .landing-offer-card,
body.theme-night .landing-slogan-card {
  background: rgba(15, 23, 42, 0.84) !important;
  border-color: rgba(226, 232, 240, 0.16) !important;
  box-shadow: 8px 8px 0 rgba(2, 6, 23, 0.36) !important;
  color: var(--workspace-ink) !important;
}

body.theme-night .detail-media,
body.theme-night .post-card__image-wrap {
  background: rgba(30, 41, 59, 0.84) !important;
}

body.theme-night .landing-stage--hero,
body.theme-night .landing-stage--slogans,
body.theme-night .landing-stage--story,
body.theme-night .landing-stage--offers {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.52)),
    var(--workspace-bg) !important;
}

body.theme-night .landing-stage__mist {
  background:
    radial-gradient(circle at 50% 40%, rgba(96, 165, 250, 0.14), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(96, 165, 250, 0.08), transparent 22%),
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.06), transparent 24%) !important;
}

body.theme-night .landing-stage__shape {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.12), rgba(255, 255, 255, 0.02)) !important;
}

body.theme-night .dashboard-card--primary,
body.theme-night .landing-stage--cta,
body.theme-night .dashboard-contact-modal__close {
  background: #111827 !important;
  color: #f8fafc !important;
}

body.theme-night .dashboard-settings,
body.theme-night .search-pill,
body.theme-night .search-pill--compact,
body.theme-night .dashboard-progress__chips a,
body.theme-night .dashboard-contact-modal__value,
body.theme-night .user-menu__panel,
body.theme-night .detail-tags span {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(226, 232, 240, 0.18) !important;
  color: var(--workspace-ink) !important;
}

body.theme-night .dashboard-card p,
body.theme-night .dashboard-contact-link small,
body.theme-night .dashboard-progress,
body.theme-night .dashboard-progress__copy,
body.theme-night .landing-offer-card span,
body.theme-night .landing-story-copy p,
body.theme-night .landing-story-compare__card li,
body.theme-night .landing-cta-heading p,
body.theme-night .landing-contact-card__copy small {
  color: var(--workspace-ink-soft) !important;
}

body.theme-night .dashboard-brand,
body.theme-night .dashboard-brand h1,
body.theme-night .dashboard-title,
body.theme-night .landing-hero-block h1,
body.theme-night .landing-story-panel h2,
body.theme-night .landing-story-compare__card h3,
body.theme-night .landing-section-heading h2,
body.theme-night .landing-offer-card strong,
body.theme-night .dashboard-contact-panel h3,
body.theme-night .dashboard-contact-modal__value strong {
  color: var(--workspace-ink) !important;
}

body.theme-night .landing-hero-block p,
body.theme-night .landing-section-heading span,
body.theme-night .landing-story-panel,
body.theme-night .landing-story-quote,
body.theme-night .landing-contact-card {
  color: var(--workspace-ink-soft) !important;
}

body.theme-night .landing-cta-button {
  background: #60a5fa !important;
  color: #0f172a !important;
}

body.theme-night.body-cv:not([data-page^="community"]) .writing-page,
body.theme-night.body-cv:not([data-page^="community"]) .writing-page *,
body.theme-night.body-cv:not([data-page^="community"]) .cv-preview__paper,
body.theme-night.body-cv:not([data-page^="community"]) .cv-preview__paper * {
  color: #111827 !important;
}

body.body-cv .site-footer,
body.body-recommendation .site-footer {
  margin-top: 14px !important;
}

@media (max-width: 1200px) {
  body.body-cv .wizard-workspace,
  body.body-recommendation .wizard-workspace {
    grid-template-columns: 248px minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  body.body-cv .wizard-rail,
  body.body-recommendation .wizard-rail {
    width: 248px;
    max-width: 248px;
  }

  body.body-cv .wizard-stage,
  body.body-recommendation .wizard-stage {
    padding: 28px 34px 34px !important;
  }

  body.body-cv .step-header h2,
  body.body-recommendation .step-header h2 {
    font-size: 3rem !important;
  }
}

@media (max-width: 900px) {
  body.body-cv .wizard-workspace,
  body.body-recommendation .wizard-workspace {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100%;
    padding-top: 18px;
  }

  body.body-cv .wizard-rail,
  body.body-recommendation .wizard-rail {
    position: static;
    width: 100%;
    max-width: none;
  }

  body.body-cv .wizard-stage,
  body.body-recommendation .wizard-stage {
    min-height: auto;
    padding: 24px 18px 28px !important;
  }

  body.body-cv .step-header h2,
  body.body-recommendation .step-header h2 {
    font-size: 2.2rem !important;
  }

  body.body-cv .form-grid--two,
  body.body-recommendation .form-grid--two,
  body.body-recommendation .recommendation-precheck__grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  body.body-recommendation .wizard-rail[hidden] + .wizard-stage {
    max-width: none;
  }

  body.body-recommendation .recommendation-precheck__action-zone {
    align-items: stretch;
  }

  body.body-cv .wizard-footer,
  body.body-recommendation .wizard-footer {
    margin-top: 42px !important;
    padding-top: 24px !important;
  }
}

@media (max-width: 640px) {
  body.body-cv .wizard-brand__badge,
  body.body-recommendation .wizard-brand__badge {
    width: 34px;
    height: 34px;
  }

  body.body-cv .wizard-brand__icon,
  body.body-recommendation .wizard-brand__icon {
    width: 28px !important;
    height: 28px !important;
  }

  body.body-cv .wizard-footer,
  body.body-recommendation .wizard-footer {
    flex-direction: column;
    align-items: stretch;
  }

  body.body-cv .wizard-footer .ghost-button,
  body.body-cv .wizard-footer .primary-button,
  body.body-recommendation .wizard-footer .ghost-button,
  body.body-recommendation .wizard-footer .primary-button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 900px) {
  body.body-sop .step-indicator__list {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow-x: visible !important;
    gap: 10px !important;
  }

  body.body-sop .step-indicator__item {
    min-width: 0 !important;
  }

  body.body-sop .step-indicator__button {
    min-height: 58px !important;
    padding: 12px 12px !important;
  }
}

@media (max-width: 640px) {
  body.body-sop .step-indicator__list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

body.body-sop .wizard-workspace {
  grid-template-columns: 220px minmax(0, 1040px) !important;
  gap: 24px !important;
  width: min(1320px, calc(100vw - 64px)) !important;
  padding-top: 24px !important;
}

body.body-sop .wizard-rail {
  width: 220px;
  max-width: 220px;
  top: 104px;
}

body.body-sop .step-indicator {
  padding: 12px !important;
  border-radius: 14px !important;
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-sop .step-indicator__list {
  gap: 8px;
}

body.body-sop .step-indicator__button {
  min-height: 48px;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px !important;
}

body.body-sop .step-indicator__number {
  width: 26px !important;
  height: 26px !important;
}

body.body-sop .step-indicator__label {
  font-size: 0.88rem !important;
}

body.body-sop .wizard-stage {
  min-height: auto;
  padding: 30px 34px 34px !important;
  border-radius: 16px !important;
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-sop .step-content,
body.body-sop .step-content--wide {
  gap: 24px;
}

body.body-sop .step-header {
  gap: 10px;
}

body.body-sop .step-header h2 {
  font-size: 2.7rem !important;
  line-height: 1.08;
  letter-spacing: 0;
}

body.body-sop .step-header p {
  max-width: 62ch;
  font-size: 0.88rem;
}

body.body-sop .ps-intro-grid {
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 24px;
  align-items: start;
}

body.body-sop .ps-intro-grid > .ps-panel--form {
  order: 1;
}

body.body-sop #sop-example-preview {
  order: 2;
  position: sticky;
  top: 104px;
  padding: 16px !important;
  border-radius: 14px !important;
  background: rgba(248, 250, 252, 0.72) !important;
}

body.body-sop #sop-example-preview .before-result-preview__head {
  gap: 8px;
  margin-bottom: 12px;
}

body.body-sop #sop-example-preview .before-result-preview__head h3 {
  font-size: 0.95rem;
  line-height: 1.45;
}

body.body-sop #sop-example-preview .before-result-preview__caption {
  font-size: 0.78rem;
  line-height: 1.6;
}

body.body-sop #sop-example-preview .result-preview {
  max-width: 100%;
  padding: 10px !important;
  overflow: hidden;
}

body.body-sop #sop-example-preview .word-scale-preview {
  --word-scale: 0.21;
  justify-content: flex-start;
}

body.body-sop #sop-example-preview .word-scale-preview__viewport {
  max-width: 100%;
}

body.body-sop .ps-meta-grid {
  grid-template-columns: 1fr !important;
  gap: 14px;
}

body.body-sop .form-grid--two {
  column-gap: 20px;
  row-gap: 16px;
}

body.body-sop input,
body.body-sop textarea,
body.body-sop select {
  min-height: 50px;
  padding: 12px 14px;
}

body.body-sop .wizard-footer {
  margin-top: 42px !important;
  padding-top: 24px !important;
}

@media (max-width: 1200px) {
  body.body-sop .wizard-workspace {
    grid-template-columns: 200px minmax(0, 1fr) !important;
    width: min(100%, calc(100vw - 36px)) !important;
  }

  body.body-sop .wizard-rail {
    width: 200px;
    max-width: 200px;
  }

  body.body-sop .ps-intro-grid {
    grid-template-columns: 1fr !important;
  }

  body.body-sop #sop-example-preview {
    position: static;
  }

  body.body-sop #sop-example-preview .word-scale-preview {
    --word-scale: 0.32;
  }
}

@media (max-width: 900px) {
  body.body-sop .wizard-workspace {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  body.body-sop .wizard-rail {
    width: 100%;
    max-width: none;
  }

  body.body-sop .wizard-stage {
    padding: 24px 18px 28px !important;
  }

  body.body-sop .step-header h2 {
    font-size: 2.1rem !important;
  }

  body.body-sop .step-indicator__list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.body-sop .step-indicator__button {
    min-height: 54px !important;
  }

  body.body-sop #sop-example-preview .word-scale-preview {
    --word-scale: 0.24;
  }
}

@media (max-width: 640px) {
  body.body-sop .step-indicator__list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.body-sop #sop-example-preview .word-scale-preview {
    --word-scale: 0.18;
  }
}

body.body-sop #sop-example-preview .result-preview {
  display: none !important;
}

.sop-example-cta__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sop-example-cta__chips span {
  padding: 5px 9px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(15, 23, 42, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
}

.sop-example-cta__button {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
}

body.sop-onboarding-open {
  overflow: hidden;
  --sop-onboarding-sketch-lg: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --sop-onboarding-sketch-sm: 120px 10px 110px 10px / 10px 110px 10px 120px;
  --sop-onboarding-sketch-paper: 28px 9px 24px 12px / 12px 24px 9px 28px;
  --sop-onboarding-sketch-chip: 10px 3px 9px 4px / 4px 9px 3px 10px;
}

.sop-onboarding[hidden] {
  display: none !important;
}

.sop-onboarding {
  position: fixed;
  inset: 0;
  z-index: 1200;
  color: #0f172a;
  --sop-onboarding-sketch-lg: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --sop-onboarding-sketch-sm: 120px 10px 110px 10px / 10px 110px 10px 120px;
  --sop-onboarding-sketch-paper: 28px 9px 24px 12px / 12px 24px 9px 28px;
  --sop-onboarding-sketch-chip: 10px 3px 9px 4px / 4px 9px 3px 10px;
}

.sop-onboarding__shade {
  position: absolute;
  inset: 0;
  z-index: 1200;
  background: rgba(8, 13, 28, 0.72);
}

.sop-onboarding__spotlight {
  position: fixed;
  z-index: 1210;
  display: none;
  border: 2px solid rgba(251, 191, 36, 0.96);
  border-radius: var(--sop-onboarding-sketch-lg);
  box-shadow: 0 0 0 9999px rgba(8, 13, 28, 0.72), 0 18px 44px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transition: left 160ms ease, top 160ms ease, width 160ms ease, height 160ms ease;
}

.sop-onboarding.has-page-target .sop-onboarding__shade {
  display: none;
}

.sop-onboarding.has-page-target .sop-onboarding__spotlight {
  display: block;
}

body.sop-onboarding-open .sop-onboarding-page-target {
  position: relative;
  z-index: 1220 !important;
  border-radius: var(--sop-onboarding-sketch-lg);
  outline: 2px solid rgba(251, 191, 36, 0.95);
  outline-offset: 6px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28) !important;
  pointer-events: none;
}

.sop-onboarding__dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1230;
  width: min(1360px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(700px, 1fr) minmax(320px, 390px);
  gap: 24px;
  padding: 22px !important;
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(15, 23, 42, 0.18) !important;
  border-radius: var(--sop-onboarding-sketch-lg) !important;
  background: #fffdf2 !important;
  box-shadow: 10px 10px 0 rgba(15, 23, 42, 0.2), 0 30px 90px rgba(0, 0, 0, 0.28) !important;
}

.sop-onboarding__sample-wrap {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--sop-onboarding-sketch-lg);
  background: rgba(248, 250, 252, 0.78);
}

.sop-onboarding__sample-pages {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.sop-onboarding__sample-pages--single {
  grid-template-columns: minmax(280px, 680px);
  justify-content: center;
}

.sop-onboarding__sample-wrap.is-onboarding-highlight,
.sop-onboarding__sample-pages.is-onboarding-highlight,
.sop-onboarding__copy.is-onboarding-highlight,
.sop-onboarding__doc-body.is-onboarding-highlight,
.sop-onboarding__doc-section.is-onboarding-highlight {
  outline: 2px solid rgba(251, 191, 36, 0.98);
  outline-offset: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.sop-onboarding__sample-doc {
  width: 100%;
  aspect-ratio: 794 / 1123;
  min-height: 0;
  padding: 34px 34px 34px 48px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--sop-onboarding-sketch-paper);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  box-sizing: border-box;
  overflow: hidden;
}

.sop-onboarding__sample-doc--continued {
  padding-top: 42px;
}

.sop-onboarding__sample-doc--cv,
.sop-onboarding__sample-doc--letter {
  padding: 32px 34px 34px 46px;
}

.sop-onboarding__doc-head {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.sop-onboarding__doc-head p,
.sop-onboarding__doc-head h3 {
  margin: 0;
}

.sop-onboarding__doc-head p {
  color: rgba(15, 23, 42, 0.5);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sop-onboarding__doc-head h3 {
  color: #0f172a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.2;
}

.sop-onboarding__doc-head span {
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.54rem;
}

.sop-onboarding__doc-body {
  display: grid;
  gap: 7px;
  padding-top: 10px;
}

.sop-onboarding__doc-body p {
  position: relative;
  margin: 0;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.55rem;
  line-height: 1.34;
}

.sop-onboarding__doc-section {
  position: relative;
  display: grid;
  gap: 5px;
}

.sop-onboarding__doc-section h4 {
  margin: 0;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.58rem;
  line-height: 1.2;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(15, 23, 42, 0.16);
}

.sop-onboarding__doc-section h4 .sop-onboarding__paragraph-badge {
  left: -29px;
  top: -1px;
}

.sop-onboarding__paragraph-badge {
  position: absolute;
  left: -29px;
  top: 1px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.55);
  border-radius: var(--sop-onboarding-sketch-chip);
  background: rgba(239, 246, 255, 0.96);
  color: #1d4ed8;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  opacity: 0.54;
}

.sop-onboarding.sop-onboarding--structure .sop-onboarding__paragraph-badge {
  opacity: 1;
  border-color: rgba(251, 191, 36, 0.95);
  background: #fef3c7;
  color: #92400e;
}

.sop-onboarding__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--sop-onboarding-sketch-lg);
  background: rgba(255, 255, 255, 0.9);
}

.sop-onboarding__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sop-onboarding__eyebrow span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sop-onboarding__skip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--sop-onboarding-sketch-sm);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.sop-onboarding__copy h2 {
  margin: 0;
  color: #0f172a;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.sop-onboarding__body {
  color: rgba(15, 23, 42, 0.76);
  font-size: 0.98rem;
  line-height: 1.8;
}

.sop-onboarding__body p,
.sop-onboarding__body ol {
  margin: 0;
}

.sop-onboarding__body ol {
  display: grid;
  gap: 8px;
  padding-left: 1.2rem;
}

.sop-onboarding__controls {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.sop-onboarding__controls .ghost-button,
.sop-onboarding__controls .primary-button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  border-radius: var(--sop-onboarding-sketch-sm) !important;
}

.sop-onboarding__controls .ghost-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.sop-onboarding.sop-onboarding--page-focus .sop-onboarding__dialog {
  left: auto;
  right: 32px;
  width: min(440px, calc(100vw - 48px));
  grid-template-columns: 1fr;
  transform: translateY(-50%);
}

.sop-onboarding.sop-onboarding--page-focus .sop-onboarding__sample-wrap {
  display: none;
}

@media (max-width: 980px) {
  .sop-onboarding__dialog {
    width: min(760px, calc(100vw - 28px));
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px !important;
  }

  .sop-onboarding__sample-pages {
    gap: 12px;
  }

  .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__dialog {
    left: 50%;
    right: auto;
    width: min(560px, calc(100vw - 28px));
    transform: translate(-50%, -50%);
  }

  .sop-onboarding__sample-doc {
    padding: 28px 28px 28px 38px;
  }

  .sop-onboarding__doc-body p {
    font-size: 0.4rem;
    line-height: 1.32;
  }
}

@media (max-width: 640px) {
  .sop-onboarding__dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    padding: 12px !important;
  }

  .sop-onboarding__sample-wrap {
    padding: 10px;
  }

  .sop-onboarding__sample-pages {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sop-onboarding__sample-doc {
    padding: 28px 28px 28px 40px;
  }

  .sop-onboarding__doc-head h3 {
    font-size: 0.95rem;
  }

  .sop-onboarding__doc-body {
    gap: 6px;
  }

  .sop-onboarding__doc-body p {
    font-size: 0.4rem;
  }

  .sop-onboarding__paragraph-badge {
    left: -26px;
    width: 16px;
    height: 16px;
    font-size: 0.56rem;
  }

  .sop-onboarding__copy {
    padding: 14px;
  }

  .sop-onboarding__controls {
    flex-direction: column;
  }
}

.before-result-preview--inline-hidden[hidden] {
  display: none !important;
}

body.body-ps:not(.body-sop) .ps-intro-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.body-ps .wizard-rail,
body.body-cv .wizard-rail {
  display: grid;
  gap: 16px;
  align-content: start;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail,
body.body-cv .wizard-rail .before-result-preview--rail {
  margin: 0 !important;
  padding: 16px !important;
  display: grid;
  gap: 12px;
  overflow: hidden;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .before-result-preview__head,
body.body-cv .wizard-rail .before-result-preview--rail .before-result-preview__head {
  display: grid;
  gap: 10px;
  margin: 0 !important;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .section-tag,
body.body-cv .wizard-rail .before-result-preview--rail .section-tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail h3,
body.body-cv .wizard-rail .before-result-preview--rail h3 {
  margin: 0;
  font-size: 0.95rem !important;
  line-height: 1.35;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .before-result-preview__caption,
body.body-cv .wizard-rail .before-result-preview--rail .before-result-preview__caption {
  font-size: 0.72rem !important;
  line-height: 1.6 !important;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .sop-example-cta__chips,
body.body-cv .wizard-rail .before-result-preview--rail .sop-example-cta__chips {
  gap: 6px;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .sop-example-cta__chips span,
body.body-cv .wizard-rail .before-result-preview--rail .sop-example-cta__chips span {
  padding: 5px 8px;
  font-size: 0.68rem;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .sop-example-cta__button,
body.body-cv .wizard-rail .before-result-preview--rail .sop-example-cta__button {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .result-preview,
body.body-cv .wizard-rail .before-result-preview--rail .cv-preview {
  padding: 8px !important;
  max-height: 178px;
  overflow: hidden;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .word-scale-preview,
body.body-cv .wizard-rail .before-result-preview--rail .word-scale-preview {
  width: 100% !important;
  margin: 0 !important;
  justify-content: center;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .word-scale-preview {
  --word-scale: 0.13 !important;
}

body.body-cv .wizard-rail .before-result-preview--rail .word-scale-preview {
  --word-scale: 0.21 !important;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .result-preview__paper,
body.body-cv .wizard-rail .before-result-preview--rail .cv-preview__paper {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14) !important;
}

@media (max-width: 1180px) {
  body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .result-preview,
  body.body-cv .wizard-rail .before-result-preview--rail .cv-preview {
    max-height: 150px;
  }
}

/* Writing onboarding polish: keep the rail anchored and the guide inside the viewport. */
body.body-ps:not(.body-sop) .wizard-rail,
body.body-cv .wizard-rail,
body.body-recommendation .wizard-rail {
  min-height: 0;
  height: calc(100vh - 132px);
  max-height: calc(100vh - 132px);
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  align-content: stretch;
  overflow: hidden;
}

body.body-ps:not(.body-sop) .wizard-rail .step-indicator,
body.body-cv .wizard-rail .step-indicator,
body.body-recommendation .wizard-rail .step-indicator {
  flex: 0 0 auto;
  position: static !important;
  top: auto !important;
  align-self: stretch;
  width: 100%;
  padding: 12px !important;
}

body.body-ps:not(.body-sop) .wizard-rail .step-indicator__list,
body.body-cv .wizard-rail .step-indicator__list,
body.body-recommendation .wizard-rail .step-indicator__list {
  gap: 8px;
}

body.body-ps:not(.body-sop) .wizard-rail .step-indicator__button,
body.body-cv .wizard-rail .step-indicator__button,
body.body-recommendation .wizard-rail .step-indicator__button {
  min-height: 50px;
  padding: 10px 12px;
  gap: 12px;
}

body.body-ps:not(.body-sop) .wizard-rail .step-indicator__number,
body.body-cv .wizard-rail .step-indicator__number,
body.body-recommendation .wizard-rail .step-indicator__number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 0.92rem;
}

body.body-ps:not(.body-sop) .wizard-rail .step-indicator__label,
body.body-cv .wizard-rail .step-indicator__label,
body.body-recommendation .wizard-rail .step-indicator__label {
  font-size: 0.95rem;
  line-height: 1.2;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail,
body.body-cv .wizard-rail .before-result-preview--rail,
body.body-recommendation .wizard-rail .before-result-preview--rail {
  margin-top: auto !important;
  padding: 12px !important;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  max-height: 246px;
  overflow: hidden;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .before-result-preview__head,
body.body-cv .wizard-rail .before-result-preview--rail .before-result-preview__head,
body.body-recommendation .wizard-rail .before-result-preview--rail .before-result-preview__head {
  display: grid;
  gap: 6px;
  margin: 0 !important;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .section-tag,
body.body-cv .wizard-rail .before-result-preview--rail .section-tag,
body.body-recommendation .wizard-rail .before-result-preview--rail .section-tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail h3,
body.body-cv .wizard-rail .before-result-preview--rail h3,
body.body-recommendation .wizard-rail .before-result-preview--rail h3 {
  margin: 0;
  font-size: 0.95rem !important;
  line-height: 1.35;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .before-result-preview__caption,
body.body-cv .wizard-rail .before-result-preview--rail .before-result-preview__caption,
body.body-recommendation .wizard-rail .before-result-preview--rail .before-result-preview__caption {
  font-size: 0.72rem !important;
  line-height: 1.6 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .sop-example-cta__chips,
body.body-cv .wizard-rail .before-result-preview--rail .sop-example-cta__chips,
body.body-recommendation .wizard-rail .before-result-preview--rail .sop-example-cta__chips {
  display: none;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .sop-example-cta__button,
body.body-cv .wizard-rail .before-result-preview--rail .sop-example-cta__button,
body.body-recommendation .wizard-rail .before-result-preview--rail .sop-example-cta__button {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail .result-preview,
body.body-cv .wizard-rail .before-result-preview--rail .cv-preview,
body.body-recommendation .wizard-rail .before-result-preview--rail .result-preview {
  padding: 6px !important;
  max-height: 74px;
  overflow: hidden;
}

body.body-recommendation .wizard-rail .before-result-preview--rail .word-scale-preview {
  --word-scale: 0.18 !important;
  width: 100% !important;
  margin: 0 !important;
  justify-content: center;
}

body.body-recommendation .wizard-rail .before-result-preview--rail .result-preview__paper {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14) !important;
}

body.body-cv .wizard-rail .before-result-preview--rail .word-scale-preview {
  --word-scale: 0.19 !important;
}

body.body-cv .wizard-rail .before-result-preview--rail .cv-preview__paper,
body.body-recommendation .wizard-rail .before-result-preview--rail .result-preview__paper {
  transform-origin: top left;
}

body.body-ps .sop-onboarding__dialog,
body.body-cv .sop-onboarding__dialog,
body.body-recommendation .sop-onboarding__dialog {
  width: min(1440px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  overflow: hidden;
}

body.body-ps .sop-onboarding__sample-wrap,
body.body-ps .sop-onboarding__copy,
body.body-cv .sop-onboarding__sample-wrap,
body.body-cv .sop-onboarding__copy,
body.body-recommendation .sop-onboarding__sample-wrap,
body.body-recommendation .sop-onboarding__copy {
  max-height: calc(100dvh - 88px);
  overflow: auto;
}

body.body-ps .sop-onboarding__sample-wrap,
body.body-cv .sop-onboarding__sample-wrap,
body.body-recommendation .sop-onboarding__sample-wrap {
  align-content: center;
}

body.body-ps:not(.body-sop) .sop-onboarding__sample-pages--single {
  width: min(100%, 660px);
}

body.body-ps:not(.body-sop) .sop-onboarding__sample-doc .sop-onboarding__doc-body {
  gap: 8px;
}

body.body-ps:not(.body-sop) .sop-onboarding__sample-doc .sop-onboarding__doc-body p {
  font-size: 0.7rem;
  line-height: 1.34;
  text-align: justify;
  text-align-last: left;
}

body.body-sop .sop-onboarding__sample-doc .sop-onboarding__doc-body {
  gap: 8px;
}

body.body-sop .sop-onboarding__sample-doc .sop-onboarding__doc-body p {
  font-size: 0.635rem;
  line-height: 1.34;
  text-align: justify;
  text-align-last: left;
}

body.body-cv .sop-onboarding__sample-pages--cv-single,
body.body-cv .sop-onboarding__sample-pages--single,
body.body-recommendation .sop-onboarding__sample-pages--single {
  width: min(100%, 540px);
}

body.body-cv .sop-onboarding__sample-doc--cv {
  padding: 34px 34px 30px;
}

.cv-onboarding-resume {
  height: 100%;
  color: #030303;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.65rem;
  line-height: 1.16;
}

.cv-onboarding-resume__header {
  text-align: center;
  margin-bottom: 10px;
}

.cv-onboarding-resume__header h3,
.cv-onboarding-resume__header p {
  margin: 0;
}

.cv-onboarding-resume__header h3 {
  color: #000;
  font-size: 1.55rem;
  line-height: 1.02;
  font-weight: 800;
}

.cv-onboarding-resume__header p {
  color: #000;
  font-size: 0.78rem;
  line-height: 1.14;
}

.cv-onboarding-resume__section {
  margin-top: 6px;
}

.cv-onboarding-resume__section h4 {
  margin: 0 0 4px;
  padding-bottom: 1px;
  border-bottom: 2px solid #000;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.78rem;
  line-height: 1.03;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cv-onboarding-resume__row {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #000;
  font-size: 0.7rem;
  line-height: 1.14;
}

.cv-onboarding-resume__row > :first-child {
  min-width: 0;
}

.cv-onboarding-resume__row > :last-child {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.cv-onboarding-resume__row strong {
  font-weight: 800;
}

.cv-onboarding-resume__row--italic {
  color: #000;
  font-size: 0.68rem;
  font-style: italic;
  line-height: 1.14;
}

.cv-onboarding-resume ul {
  display: grid;
  gap: 3px;
  margin: 4px 0 0;
  padding-left: 18px;
}

.cv-onboarding-resume li {
  color: #000;
  font-size: 0.65rem;
  line-height: 1.17;
  text-align: justify;
}

.cv-onboarding-resume__metric {
  margin-left: 74px;
}

.cv-onboarding-resume__right-date {
  float: right;
  font-weight: 700;
  white-space: nowrap;
}

body.body-recommendation .sop-onboarding__sample-doc--letter {
  display: flex;
  flex-direction: column;
  padding: 48px 54px 52px 64px;
}

body.body-recommendation .sop-onboarding__sample-doc--letter .sop-onboarding__doc-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
}

body.body-recommendation .sop-onboarding__sample-doc--letter .sop-onboarding__doc-body p {
  font-size: 0.68rem;
  line-height: 1.52;
  text-align: justify;
  text-align-last: left;
}

body.body-recommendation .sop-onboarding__sample-doc--letter [data-rl-paragraph="6"] {
  margin-top: auto;
}

@media (max-width: 1120px) {
  body.body-ps .sop-onboarding__dialog,
  body.body-cv .sop-onboarding__dialog,
  body.body-recommendation .sop-onboarding__dialog {
    width: min(820px, calc(100vw - 28px));
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px !important;
    overflow: auto;
  }

  body.body-ps .sop-onboarding__sample-wrap,
  body.body-ps .sop-onboarding__copy,
  body.body-cv .sop-onboarding__sample-wrap,
  body.body-cv .sop-onboarding__copy,
  body.body-recommendation .sop-onboarding__sample-wrap,
  body.body-recommendation .sop-onboarding__copy {
    max-height: none;
  }

  body.body-ps .sop-onboarding__sample-wrap,
  body.body-cv .sop-onboarding__sample-wrap,
  body.body-recommendation .sop-onboarding__sample-wrap {
    max-height: min(52vh, 520px);
  }
}

@media (max-width: 900px) {
  body.body-ps:not(.body-sop) .wizard-rail,
  body.body-cv .wizard-rail,
  body.body-recommendation .wizard-rail {
    height: auto;
    max-height: none;
    position: static !important;
    overflow: visible;
  }

  body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail,
  body.body-cv .wizard-rail .before-result-preview--rail,
  body.body-recommendation .wizard-rail .before-result-preview--rail {
    margin-top: 0 !important;
  }
}

@media (max-width: 640px) {
  body.body-ps .sop-onboarding__dialog,
  body.body-cv .sop-onboarding__dialog,
  body.body-recommendation .sop-onboarding__dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    overflow: auto;
  }

  body.body-ps .sop-onboarding__sample-wrap,
  body.body-cv .sop-onboarding__sample-wrap,
  body.body-recommendation .sop-onboarding__sample-wrap {
    max-height: none;
  }

  body.body-recommendation .sop-onboarding__sample-doc--letter {
    padding: 30px 30px 32px 42px;
  }
}

body.body-ps .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__dialog,
body.body-cv .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__dialog,
body.body-recommendation .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__dialog {
  left: auto;
  right: 32px;
  width: min(440px, calc(100vw - 48px));
  grid-template-columns: 1fr;
  transform: translateY(-50%);
}

body.body-ps .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__sample-wrap,
body.body-cv .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__sample-wrap,
body.body-recommendation .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__sample-wrap {
  display: none;
}

@media (max-width: 980px) {
  body.body-ps .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__dialog,
  body.body-cv .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__dialog,
  body.body-recommendation .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__dialog {
    left: 50%;
    right: auto;
    width: min(560px, calc(100vw - 28px));
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 640px) {
  body.body-ps .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__dialog,
  body.body-cv .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__dialog,
  body.body-recommendation .sop-onboarding.sop-onboarding--page-focus .sop-onboarding__dialog {
    width: calc(100vw - 18px);
  }
}

body.body-ps:not(.body-sop) .wizard-shell--ps {
  width: min(1820px, calc(100vw - 48px)) !important;
}

body.body-ps:not(.body-sop) .wizard-workspace {
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) !important;
  gap: 32px;
  justify-content: stretch !important;
}

body.body-ps:not(.body-sop) .wizard-rail {
  width: 340px !important;
  max-width: 340px !important;
}

body.body-ps:not(.body-sop) .wizard-stage {
  width: 100% !important;
  max-width: none !important;
}

body.body-ps:not(.body-sop) .wizard-rail .before-result-preview--rail {
  display: none !important;
}

body.body-ps:not(.body-sop) .wizard-rail .step-indicator {
  padding: 28px 24px !important;
}

body.body-ps:not(.body-sop) .wizard-rail .step-indicator__list {
  gap: 14px;
}

body.body-ps:not(.body-sop) .wizard-rail .step-indicator__button {
  min-height: 76px;
  padding: 14px 18px;
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

body.body-ps:not(.body-sop) .wizard-rail .step-indicator__number {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
}

body.body-ps:not(.body-sop) #step-1 {
  min-height: min(1180px, calc(100dvh - 154px));
}

body.body-ps:not(.body-sop) #step-1 .step-content {
  min-height: inherit;
  padding: 64px 72px 44px !important;
  align-content: start;
  gap: 54px;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-one-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

body.body-ps:not(.body-sop) #step-1 .step-header {
  max-width: 760px;
}

body.body-ps:not(.body-sop) #step-1 .step-header h2 {
  max-width: none;
  font-size: 2.9rem !important;
  line-height: 1.08;
  letter-spacing: 0;
}

body.body-ps:not(.body-sop) #step-1 .step-header p {
  max-width: 72ch;
  font-size: 1.05rem;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-upload-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 210px;
  min-height: 58px;
  padding: 0 24px;
  border-color: rgba(15, 23, 42, 0.2) !important;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font-weight: 800;
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-upload-button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.1) !important;
}

body.body-ps:not(.body-sop) #step-1 .ps-intro-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px) !important;
  gap: 38px;
  align-items: start;
}

body.body-ps:not(.body-sop) #step-1 .ps-panel--form {
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.body-ps:not(.body-sop) #step-1 .ps-panel__head {
  display: none;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-basic-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "self name"
    "program school"
    "url url";
  column-gap: 38px;
  row-gap: 26px;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-field--self {
  grid-area: self;
  align-self: end;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-field--name {
  grid-area: name;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-field--program {
  grid-area: program;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-field--school {
  grid-area: school;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-field--url {
  grid-area: url;
}

body.body-ps:not(.body-sop) #step-1 .ps-target-toggle {
  min-height: 58px;
  padding: 0 !important;
  background: transparent !important;
}

body.body-ps:not(.body-sop) #step-1 .ps-target-label {
  justify-content: flex-start;
  gap: 24px;
}

body.body-ps:not(.body-sop) #step-1 .ps-target-text,
body.body-ps:not(.body-sop) #step-1 label span {
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 800;
}

body.body-ps:not(.body-sop) #step-1 input,
body.body-ps:not(.body-sop) #step-1 select,
body.body-ps:not(.body-sop) #step-1 textarea {
  min-height: 68px;
  border: 1.5px solid rgba(15, 23, 42, 0.22);
  border-radius: 16px 10px 15px 11px / 10px 15px 11px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 1.05rem;
  box-shadow: none;
}

body.body-ps:not(.body-sop) #step-1 .cv-inline-section-title {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}

body.body-ps:not(.body-sop) #step-1 .ps-transcript-upload {
  grid-template-columns: minmax(220px, 0.32fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

body.body-ps:not(.body-sop) #step-1 .ps-upload-trigger {
  min-height: 58px;
  margin: 0;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.2);
  background: rgba(239, 246, 255, 0.9);
  color: #0f172a;
}

body.body-ps:not(.body-sop) #step-1 .ps-transcript-upload .ghost-button {
  min-height: 58px;
  margin: 0;
  border: 1.5px solid rgba(185, 28, 28, 0.18) !important;
  border-radius: 16px 10px 15px 11px / 10px 15px 11px 16px;
  background: rgba(254, 242, 242, 0.92);
  color: #991b1b;
  box-shadow: none;
}

body.body-ps:not(.body-sop) #step-1 .step-hint {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 12px 16px !important;
  background: rgba(248, 250, 252, 0.92) !important;
  color: #64748b;
}

body.body-ps:not(.body-sop) #step-1 .ps-add-education-row {
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.28);
}

body.body-ps:not(.body-sop) #step-1 .ps-education-card {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(248, 250, 252, 0.72);
}

body.body-ps:not(.body-sop) #step-1 .ps-step-example-card {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 28px;
  min-height: 660px;
  padding: 34px 30px;
  border-color: rgba(15, 23, 42, 0.22) !important;
  background: rgba(248, 251, 255, 0.9);
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-example-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-example-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px 8px 13px 7px / 8px 13px 7px 12px;
  background: #60a5fa;
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-example-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-example-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.78;
}

body.body-ps:not(.body-sop) #step-1 .ps-step-example-card__paper {
  position: relative;
  min-height: 430px;
  padding: 30px 28px;
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 16px 10px 15px 11px / 10px 15px 11px 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

body.body-ps:not(.body-sop) #step-1 .ps-step-example-card__line {
  height: 10px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.62);
}

body.body-ps:not(.body-sop) #step-1 .ps-step-example-card__line--short {
  width: 32%;
  background: rgba(148, 163, 184, 0.26);
}

body.body-ps:not(.body-sop) #step-1 .ps-step-example-card__preview {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 6px;
  background: #6b7280;
  color: white;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 34px rgba(75, 85, 99, 0.28);
  white-space: nowrap;
}

body.body-ps:not(.body-sop) #step-1 .wizard-footer {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 1240px) {
  body.body-ps:not(.body-sop) #step-1 .step-content {
    padding: 44px 36px 34px !important;
  }

  body.body-ps:not(.body-sop) #step-1 .ps-intro-grid {
    grid-template-columns: 1fr !important;
  }

  body.body-ps:not(.body-sop) #step-1 .ps-step-example-card {
    position: static;
    min-height: 420px;
  }
}

@media (max-width: 900px) {
  body.body-ps:not(.body-sop) {
    overflow-x: hidden;
  }

  body.body-ps:not(.body-sop) .wizard-shell--ps {
    width: min(100%, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    overflow-x: hidden;
  }

  body.body-ps:not(.body-sop) .wizard-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 18px !important;
  }

  body.body-ps:not(.body-sop) .wizard-rail,
  body.body-ps:not(.body-sop) .wizard-stage,
  body.body-ps:not(.body-sop) .wizard-step,
  body.body-ps:not(.body-sop) #step-1,
  body.body-ps:not(.body-sop) #step-1 .step-content,
  body.body-ps:not(.body-sop) #step-1 .ps-step-one-hero,
  body.body-ps:not(.body-sop) #step-1 .ps-intro-grid,
  body.body-ps:not(.body-sop) #step-1 .ps-panel--form,
  body.body-ps:not(.body-sop) #step-1 .ps-step-basic-grid,
  body.body-ps:not(.body-sop) #step-1 .ps-step-example-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.body-ps:not(.body-sop) .wizard-rail,
  body.body-ps:not(.body-sop) .wizard-stage {
    position: static !important;
  }

  body.body-ps:not(.body-sop) .wizard-stage {
    padding: 0 !important;
  }

  body.body-ps:not(.body-sop) .wizard-rail .step-indicator {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible;
  }

  body.body-ps:not(.body-sop) .wizard-rail .step-indicator__list {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    grid-template-columns: 1fr !important;
    overflow: visible;
  }

  body.body-ps:not(.body-sop) .wizard-rail .step-indicator__item {
    width: 100%;
    min-width: 0 !important;
  }

  body.body-ps:not(.body-sop) .wizard-rail .step-indicator__button {
    width: 100%;
    min-width: 0 !important;
  }

  body.body-ps:not(.body-sop) #step-1 .ps-step-one-hero {
    flex-direction: column;
  }

  body.body-ps:not(.body-sop) #step-1 .ps-step-upload-button {
    width: 100%;
  }

  body.body-ps:not(.body-sop) #step-1 .ps-step-basic-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "self"
      "name"
      "program"
      "school"
      "url";
  }

  body.body-ps:not(.body-sop) #step-1 .ps-transcript-upload {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.body-ps:not(.body-sop) #step-1 input,
  body.body-ps:not(.body-sop) #step-1 select,
  body.body-ps:not(.body-sop) #step-1 textarea,
  body.body-ps:not(.body-sop) #step-1 button,
  body.body-ps:not(.body-sop) #step-1 label {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 560px) {
  body.body-ps:not(.body-sop) #step-1 .step-content {
    padding: 30px 18px 26px !important;
    gap: 34px;
  }

  body.body-ps:not(.body-sop) #step-1 .step-header h2 {
    font-size: 2.15rem !important;
  }

  body.body-ps:not(.body-sop) #step-1 .ps-step-example-card {
    padding: 24px 18px;
  }
}

body.body-cv .wizard-rail .before-result-preview--rail,
body.body-recommendation .wizard-rail .before-result-preview--rail {
  display: none !important;
}

body.body-cv #cv-step-1 .writing-step-intro-grid,
body.body-recommendation #recommendation-step-1 .writing-step-intro-grid,
body.body-recommendation .recommendation-precheck__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: 38px;
  align-items: start;
}

body.body-cv #cv-step-1 .writing-step-intro-grid__main,
body.body-recommendation #recommendation-step-1 .writing-step-intro-grid__main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

body.body-recommendation #recommendation-example-preview,
body.body-recommendation #recommendation-step-example-preview {
  grid-area: auto !important;
}

body.body-recommendation #recommendation-example-preview.writing-step-example-card,
body.body-recommendation #recommendation-step-example-preview.writing-step-example-card {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
  margin: 0 !important;
}

body.body-recommendation .recommendation-precheck__hero-grid .step-header {
  align-content: start;
  max-width: 680px;
  padding-top: 8px;
}

body.body-recommendation .recommendation-precheck__hero-grid .section-tag {
  color: #2563eb;
}

body.body-recommendation .recommendation-precheck__title {
  max-width: 9ch;
  font-family: var(--font-sans, "Inter", "PingFang SC", "Microsoft YaHei", sans-serif) !important;
  font-size: clamp(3.2rem, 4.6vw, 4.85rem) !important;
  font-weight: 900 !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
}

body.body-recommendation #recommendation-step-1 .step-header h2 {
  font-family: var(--font-sans, "Inter", "PingFang SC", "Microsoft YaHei", sans-serif) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

body.body-recommendation .recommendation-precheck__title-accent {
  color: #2563eb !important;
  font-style: normal !important;
}

body.body-recommendation .recommendation-precheck__quick-note {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 10px;
  padding: 18px 20px !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
  background: rgba(239, 246, 255, 0.82) !important;
}

body.body-recommendation .recommendation-precheck__quick-note span {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

body.body-recommendation .recommendation-precheck__quick-note strong {
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.65;
}

body.body-recommendation .recommendation-precheck__panel--hero-confirm {
  max-width: 620px;
  margin-top: 4px;
  padding: 20px 22px !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

body.body-recommendation .recommendation-precheck__panel--hero-confirm h3 {
  font-family: var(--font-sans, "Inter", "PingFang SC", "Microsoft YaHei", sans-serif) !important;
  font-size: 1.18rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
}

body.body-recommendation .recommendation-precheck__panel--hero-confirm .recommendation-precheck__list {
  gap: 8px;
}

body.body-recommendation .recommendation-precheck__panel--hero-confirm li {
  line-height: 1.55 !important;
}

body.body-sop #step-1 .writing-step-example-card,
body.body-cv #cv-step-1 .writing-step-example-card,
body.body-recommendation .recommendation-precheck__hero-grid .writing-step-example-card,
body.body-recommendation #recommendation-step-1 .writing-step-example-card {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 28px;
  min-height: 660px;
  padding: 34px 30px !important;
  border-color: rgba(15, 23, 42, 0.22) !important;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
  background: rgba(248, 251, 255, 0.9) !important;
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-recommendation .recommendation-precheck__hero-grid .writing-step-example-card {
  min-height: 560px;
}

body.body-sop #step-1 .writing-step-example-card__head,
body.body-cv #cv-step-1 .writing-step-example-card__head,
body.body-recommendation .writing-step-example-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.body-sop #step-1 .writing-step-example-card__icon,
body.body-cv #cv-step-1 .writing-step-example-card__icon,
body.body-recommendation .writing-step-example-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px 8px 13px 7px / 8px 13px 7px 12px;
  background: #60a5fa;
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
}

body.body-sop #step-1 .writing-step-example-card h3,
body.body-cv #cv-step-1 .writing-step-example-card h3,
body.body-recommendation .writing-step-example-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

body.body-sop #step-1 .writing-step-example-card p,
body.body-cv #cv-step-1 .writing-step-example-card p,
body.body-recommendation .writing-step-example-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.78;
}

body.body-sop #step-1 .writing-step-example-card__paper,
body.body-cv #cv-step-1 .writing-step-example-card__paper,
body.body-recommendation .writing-step-example-card__paper {
  position: relative;
  min-height: 430px;
  padding: 30px 28px;
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 16px 10px 15px 11px / 10px 15px 11px 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

body.body-recommendation .recommendation-precheck__hero-grid .writing-step-example-card__paper {
  min-height: 330px;
}

body.body-sop #step-1 .writing-step-example-card__line,
body.body-cv #cv-step-1 .writing-step-example-card__line,
body.body-recommendation .writing-step-example-card__line {
  height: 10px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.62);
}

body.body-sop #step-1 .writing-step-example-card__line--short,
body.body-cv #cv-step-1 .writing-step-example-card__line--short,
body.body-recommendation .writing-step-example-card__line--short {
  width: 32%;
  background: rgba(148, 163, 184, 0.26);
}

body.body-sop #step-1 .writing-step-example-card__preview,
body.body-cv #cv-step-1 .writing-step-example-card__preview,
body.body-recommendation .writing-step-example-card__preview {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 6px;
  background: #6b7280;
  color: white;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 34px rgba(75, 85, 99, 0.28);
  white-space: nowrap;
}

@media (max-width: 1240px) {
  body.body-sop #step-1 .writing-step-example-card,
  body.body-cv #cv-step-1 .writing-step-example-card,
  body.body-recommendation .recommendation-precheck__hero-grid .writing-step-example-card,
  body.body-recommendation #recommendation-step-1 .writing-step-example-card {
    position: static;
    min-height: 420px;
  }

  body.body-cv #cv-step-1 .writing-step-intro-grid,
  body.body-recommendation #recommendation-step-1 .writing-step-intro-grid,
  body.body-recommendation .recommendation-precheck__hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.body-sop #step-1 .writing-step-example-card,
  body.body-cv #cv-step-1 .writing-step-example-card,
  body.body-recommendation .recommendation-precheck__hero-grid .writing-step-example-card,
  body.body-recommendation #recommendation-step-1 .writing-step-example-card {
    padding: 24px 18px !important;
  }
}

/* Unified writing workspace header, matching the SOP sketch navigation. */
body.body-wizard [data-writing-header] {
  --writing-header-width: min(1800px, calc(100vw - clamp(56px, 14vw, 288px)));
  position: sticky !important;
  top: 18px !important;
  z-index: 60 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: var(--writing-header-width) !important;
  min-height: 116px !important;
  height: auto !important;
  margin-top: 18px !important;
  margin-left: calc(50% - 50vw + (100vw - var(--writing-header-width)) / 2) !important;
  padding: 0 28px 0 30px !important;
  border: 1.5px solid #0f172a !important;
  border-radius: 255px 15px 225px / 15px 225px 15px 255px !important;
  background: rgba(254, 252, 232, 0.94) !important;
  box-shadow: 8px 8px 0 rgba(30, 41, 59, 0.1) !important;
  backdrop-filter: blur(12px) !important;
}

body.body-sop .wizard-shell--sop {
  padding-top: 0 !important;
}

body.body-wizard [data-writing-header] .wizard-brand {
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 22px !important;
}

body.body-wizard [data-writing-header] .wizard-brand > div {
  display: flex !important;
  min-height: 52px !important;
  flex-direction: column !important;
  justify-content: center !important;
}

body.body-wizard [data-writing-header] .wizard-brand__badge {
  display: grid !important;
  place-items: center !important;
  width: 68px !important;
  height: 52px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.body-wizard [data-writing-header] .wizard-brand__icon {
  display: none !important;
}

body.body-wizard [data-writing-header] .wizard-brand__badge::before {
  content: "";
  display: block;
  width: 58px;
  height: 36px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg width='100' height='60' viewBox='0 0 100 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,30 C10,10 40,10 60,30 C80,50 90,50 90,30 C90,10 80,10 60,30 C40,50 10,50 10,30 Z' fill='none' stroke='%231E293B' stroke-width='1.5'/%3E%3Ccircle cx='25' cy='25' r='1.5' fill='%231E293B'/%3E%3C/svg%3E");
}

body.body-wizard [data-writing-header] .wizard-brand strong {
  color: #0f172a !important;
  font-size: 2.24rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

body.body-wizard [data-writing-header] .wizard-brand span {
  display: block !important;
  margin-top: 6px !important;
  color: rgba(15, 23, 42, 0.5) !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

body.body-wizard [data-writing-header] .wizard-header__nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  column-gap: 18px !important;
  row-gap: 10px !important;
  flex-wrap: wrap !important;
}

body.body-wizard [data-writing-header] .wizard-header__link {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(15, 23, 42, 0.72) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  transform: none !important;
}

body.body-wizard [data-writing-header] .wizard-header__link:hover {
  color: #0f172a !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.body-wizard [data-writing-header] .wizard-header__user {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

body.body-wizard [data-writing-header] .wizard-header__user .auth-btn {
  white-space: nowrap !important;
}

body.body-wizard [data-writing-header] .user-menu-trigger {
  min-height: 64px !important;
  padding: 6px 16px 6px 8px !important;
  gap: 12px !important;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 20px 14px 22px 12px / 14px 22px 12px 20px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-wizard [data-writing-header] .user-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.1) !important;
}

body.body-wizard [data-writing-header] .user-menu-trigger__avatar {
  width: 50px !important;
  height: 50px !important;
  border: 1.5px solid rgba(15, 23, 42, 0.18) !important;
  box-shadow: inset 0 0 0 3px rgba(15, 23, 42, 0.05) !important;
}

body.body-wizard [data-writing-header] .user-menu-trigger__name {
  max-width: 4em !important;
  color: #0f172a !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
}

@media (max-width: 900px) {
  body.body-wizard [data-writing-header] {
    top: 10px !important;
    width: auto !important;
    min-height: 86px !important;
    margin: 12px 0 0 !important;
    padding: 14px 16px !important;
    border-radius: 24px 14px 20px 12px / 14px 20px 12px 24px !important;
  }
}

@media (max-width: 640px) {
  body.body-wizard [data-writing-header] {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  body.body-wizard [data-writing-header] .wizard-header__nav {
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }

  body.body-wizard [data-writing-header] .wizard-header__link,
  body.body-wizard [data-writing-header] .wizard-header__user {
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap !important;
  }

  body.body-wizard [data-writing-header] .wizard-brand__badge {
    width: 48px !important;
    height: 40px !important;
  }

  body.body-wizard [data-writing-header] .wizard-brand__icon {
    display: none !important;
  }

  body.body-wizard [data-writing-header] .wizard-brand__badge::before {
    width: 42px;
    height: 26px;
  }

  body.body-wizard [data-writing-header] .wizard-brand strong {
    font-size: 1.68rem !important;
  }

  body.body-wizard [data-writing-header] .wizard-brand span {
    font-size: 0.76rem !important;
  }
}

/* Unified writing workspace layout: keep SOP, CV, and RL aligned with the PS canvas. */
body.body-ps,
body.body-cv,
body.body-recommendation {
  --writing-rail-width: 340px;
  --writing-workspace-gap: 32px;
  --writing-stage-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

body.body-ps .wizard-shell--ps,
body.body-sop .wizard-shell--sop,
body.body-cv .wizard-shell--cv,
body.body-recommendation .wizard-shell--recommendation {
  display: block !important;
  width: min(1820px, calc(100vw - 48px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 0 48px !important;
}

body.body-ps .wizard-workspace,
body.body-cv .wizard-workspace,
body.body-recommendation .wizard-workspace {
  display: grid !important;
  grid-template-columns: minmax(300px, var(--writing-rail-width)) minmax(0, 1fr) !important;
  gap: var(--writing-workspace-gap) !important;
  align-items: start !important;
  justify-content: stretch !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 32px 0 0 !important;
}

body.body-ps .wizard-rail,
body.body-cv .wizard-rail,
body.body-recommendation .wizard-rail {
  position: sticky !important;
  top: 112px !important;
  display: block !important;
  grid-template-columns: none !important;
  grid-auto-flow: row !important;
  gap: 0 !important;
  width: var(--writing-rail-width) !important;
  max-width: var(--writing-rail-width) !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body.body-ps .step-indicator,
body.body-cv .step-indicator,
body.body-recommendation .step-indicator,
body.body-ps .wizard-rail .step-indicator,
body.body-cv .wizard-rail .step-indicator,
body.body-recommendation .wizard-rail .step-indicator {
  display: grid !important;
  gap: 0 !important;
  width: 100% !important;
  padding: 28px 24px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: var(--writing-stage-radius) !important;
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.08) !important;
}

body.body-ps .step-indicator__intro,
body.body-ps .step-indicator__summary,
body.body-cv .step-indicator__intro,
body.body-cv .step-indicator__summary,
body.body-recommendation .step-indicator__intro,
body.body-recommendation .step-indicator__summary {
  display: none !important;
}

body.body-ps .step-indicator__list,
body.body-cv .step-indicator__list,
body.body-recommendation .step-indicator__list,
body.body-ps .wizard-rail .step-indicator__list,
body.body-cv .wizard-rail .step-indicator__list,
body.body-recommendation .wizard-rail .step-indicator__list {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  width: 100% !important;
  overflow: visible !important;
  padding: 0 !important;
}

body.body-ps .step-indicator__item,
body.body-cv .step-indicator__item,
body.body-recommendation .step-indicator__item {
  display: block !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body.body-ps .step-indicator__item::after,
body.body-cv .step-indicator__item::after,
body.body-recommendation .step-indicator__item::after {
  display: none !important;
}

body.body-ps .step-indicator__button,
body.body-cv .step-indicator__button,
body.body-recommendation .step-indicator__button,
body.body-ps .wizard-rail .step-indicator__button,
body.body-cv .wizard-rail .step-indicator__button,
body.body-recommendation .wizard-rail .step-indicator__button {
  width: 100% !important;
  min-height: 76px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  padding: 14px 18px !important;
  border: 1.5px solid rgba(148, 163, 184, 0.35) !important;
  border-radius: 120px 10px 110px 10px / 10px 110px 10px 120px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: none !important;
  color: #475569 !important;
  text-align: left !important;
  transform: none !important;
}

body.body-ps .step-indicator__number,
body.body-cv .step-indicator__number,
body.body-recommendation .step-indicator__number,
body.body-ps .wizard-rail .step-indicator__number,
body.body-cv .wizard-rail .step-indicator__number,
body.body-recommendation .wizard-rail .step-indicator__number {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  flex: 0 0 auto !important;
  border: 1.5px solid rgba(148, 163, 184, 0.44) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
}

body.body-ps .step-indicator__copy,
body.body-cv .step-indicator__copy,
body.body-recommendation .step-indicator__copy {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.body-ps .step-indicator__label,
body.body-cv .step-indicator__label,
body.body-recommendation .step-indicator__label,
body.body-ps .wizard-rail .step-indicator__label,
body.body-cv .wizard-rail .step-indicator__label,
body.body-recommendation .wizard-rail .step-indicator__label {
  display: block !important;
  margin: 0 !important;
  color: #475569 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

body.body-ps .step-indicator__caption,
body.body-cv .step-indicator__caption,
body.body-recommendation .step-indicator__caption {
  display: none !important;
}

body.body-ps .step-indicator__item.is-active .step-indicator__button,
body.body-cv .step-indicator__item.is-active .step-indicator__button,
body.body-recommendation .step-indicator__item.is-active .step-indicator__button {
  border-color: #0f172a !important;
  background: #0f172a !important;
}

body.body-ps .step-indicator__item.is-active .step-indicator__number,
body.body-cv .step-indicator__item.is-active .step-indicator__number,
body.body-recommendation .step-indicator__item.is-active .step-indicator__number {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  color: #ffffff !important;
}

body.body-ps .step-indicator__item.is-active .step-indicator__label,
body.body-cv .step-indicator__item.is-active .step-indicator__label,
body.body-recommendation .step-indicator__item.is-active .step-indicator__label {
  color: #ffffff !important;
}

body.body-ps .wizard-stage,
body.body-cv .wizard-stage,
body.body-recommendation .wizard-stage {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 800px !important;
  padding: 36px 64px 40px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: var(--writing-stage-radius) !important;
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.08) !important;
  overflow: visible !important;
}

body.body-ps .wizard-step,
body.body-cv .wizard-step,
body.body-recommendation .wizard-step {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.body-ps .step-content,
body.body-ps .step-content--wide,
body.body-cv .step-content,
body.body-cv .step-content--wide,
body.body-recommendation .step-content,
body.body-recommendation .step-content--wide,
body.body-recommendation .recommendation-precheck {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.body-recommendation .recommendation-precheck {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

@media (max-width: 1200px) {
  body.body-ps,
  body.body-cv,
  body.body-recommendation {
    --writing-rail-width: 300px;
    --writing-workspace-gap: 24px;
  }

  body.body-ps .wizard-stage,
  body.body-cv .wizard-stage,
  body.body-recommendation .wizard-stage {
    padding: 28px 34px 34px !important;
  }
}

@media (max-width: 900px) {
  body.body-ps .wizard-shell--ps,
  body.body-sop .wizard-shell--sop,
  body.body-cv .wizard-shell--cv,
  body.body-recommendation .wizard-shell--recommendation {
    width: min(100%, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    overflow-x: hidden !important;
  }

  body.body-ps .wizard-workspace,
  body.body-cv .wizard-workspace,
  body.body-recommendation .wizard-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-top: 18px !important;
  }

  body.body-ps .wizard-rail,
  body.body-cv .wizard-rail,
  body.body-recommendation .wizard-rail {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.body-ps .wizard-stage,
  body.body-cv .wizard-stage,
  body.body-recommendation .wizard-stage {
    min-height: auto !important;
    padding: 24px 18px 28px !important;
  }
}

.site-bar .site-brand {
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 22px !important;
}

.site-bar .site-brand > div {
  display: flex !important;
  min-height: 52px !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.site-bar .site-brand img {
  display: none !important;
}

.site-bar .site-brand::before {
  content: "";
  display: block !important;
  width: 58px !important;
  height: 36px !important;
  flex: 0 0 58px !important;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg width='100' height='60' viewBox='0 0 100 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,30 C10,10 40,10 60,30 C80,50 90,50 90,30 C90,10 80,10 60,30 C40,50 10,50 10,30 Z' fill='none' stroke='%231E293B' stroke-width='1.5'/%3E%3Ccircle cx='25' cy='25' r='1.5' fill='%231E293B'/%3E%3C/svg%3E") !important;
}

.site-bar .site-brand strong {
  color: #0f172a !important;
  font-size: 2.24rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.site-bar .site-brand span {
  margin-top: 6px !important;
  color: rgba(15, 23, 42, 0.46) !important;
  font-size: 0.96rem !important;
}

@media (max-width: 640px) {
  .site-bar {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .site-bar .site-nav {
    justify-content: flex-end !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .site-bar .site-brand {
    gap: 14px !important;
  }

  .site-bar .site-brand::before {
    width: 42px !important;
    height: 26px !important;
    flex-basis: 42px !important;
  }

  .site-bar .site-brand strong {
    font-size: 1.68rem !important;
  }

  .site-bar .site-brand span {
    font-size: 0.76rem !important;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .site-bar {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .site-bar .site-nav {
    justify-content: flex-end !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }
}

/* Full-site night-mode coverage. Community routes opt out in the shell. */
body.theme-night:not([data-page^="community"]) {
  background:
    radial-gradient(circle at top center, rgba(96, 165, 250, 0.13), transparent 34%),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    #0f172a !important;
  color: #f8fafc !important;
}

body.theme-night:not([data-page^="community"]) .site-bar,
body.theme-night:not([data-page^="community"]) .wizard-header,
body.theme-night:not([data-page^="community"]) .top-nav,
body.theme-night:not([data-page^="community"]) .program-library-header__inner,
body.theme-night:not([data-page^="community"]) .program-library-header {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(226, 232, 240, 0.42) !important;
  box-shadow: 8px 8px 0 rgba(2, 6, 23, 0.42) !important;
  color: #f8fafc !important;
}

body.theme-night:not([data-page^="community"]) .site-brand::before {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='60' viewBox='0 0 100 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,30 C10,10 40,10 60,30 C80,50 90,50 90,30 C90,10 80,10 60,30 C40,50 10,50 10,30 Z' fill='none' stroke='%23F8FAFC' stroke-width='1.5'/%3E%3Ccircle cx='25' cy='25' r='1.5' fill='%23F8FAFC'/%3E%3C/svg%3E") !important;
}

body.theme-night:not([data-page^="community"]) .site-brand strong,
body.theme-night:not([data-page^="community"]) .wizard-brand strong,
body.theme-night:not([data-page^="community"]) .program-library-brand__copy strong,
body.theme-night:not([data-page^="community"]) .top-nav__brand,
body.theme-night:not([data-page^="community"]) .yuyu-logo,
body.theme-night:not([data-page^="community"]) h1,
body.theme-night:not([data-page^="community"]) h2,
body.theme-night:not([data-page^="community"]) h3,
body.theme-night:not([data-page^="community"]) h4,
body.theme-night:not([data-page^="community"]) label,
body.theme-night:not([data-page^="community"]) strong {
  color: #f8fafc !important;
}

body.theme-night:not([data-page^="community"]) .site-brand span,
body.theme-night:not([data-page^="community"]) .wizard-brand span,
body.theme-night:not([data-page^="community"]) .program-library-brand__copy small,
body.theme-night:not([data-page^="community"]) .site-nav a,
body.theme-night:not([data-page^="community"]) .wizard-header__link,
body.theme-night:not([data-page^="community"]) .top-nav__link,
body.theme-night:not([data-page^="community"]) p,
body.theme-night:not([data-page^="community"]) small,
body.theme-night:not([data-page^="community"]) .site-footer,
body.theme-night:not([data-page^="community"]) .icp-link,
body.theme-night:not([data-page^="community"]) .police-link,
body.theme-night:not([data-page^="community"]) .step-header p,
body.theme-night:not([data-page^="community"]) .section-tag,
body.theme-night:not([data-page^="community"]) .program-library-eyebrow {
  color: #cbd5e1 !important;
}

body.theme-night:not([data-page^="community"]) .site-nav a:hover,
body.theme-night:not([data-page^="community"]) .wizard-header__link:hover,
body.theme-night:not([data-page^="community"]) .top-nav__link:hover {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #f8fafc !important;
}

body.theme-night:not([data-page^="community"]) input,
body.theme-night:not([data-page^="community"]) textarea,
body.theme-night:not([data-page^="community"]) select,
body.theme-night:not([data-page^="community"]) .search-pill,
body.theme-night:not([data-page^="community"]) .search-pill--compact {
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(226, 232, 240, 0.26) !important;
  color: #f8fafc !important;
  box-shadow: 3px 3px 0 rgba(2, 6, 23, 0.32) !important;
}

body.theme-night:not([data-page^="community"]) input::placeholder,
body.theme-night:not([data-page^="community"]) textarea::placeholder {
  color: #94a3b8 !important;
}

body.theme-night:not([data-page^="community"]) input:focus,
body.theme-night:not([data-page^="community"]) textarea:focus,
body.theme-night:not([data-page^="community"]) select:focus {
  border-color: rgba(96, 165, 250, 0.76) !important;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18) !important;
}

body.theme-night:not([data-page^="community"]) .sketch-border,
body.theme-night:not([data-page^="community"]) .sketch-border-sm,
body.theme-night:not([data-page^="community"]) .step-indicator,
body.theme-night:not([data-page^="community"]) .wizard-stage,
body.theme-night:not([data-page^="community"]) .wizard-step,
body.theme-night:not([data-page^="community"]) .step-content,
body.theme-night:not([data-page^="community"]) .step-content--wide,
body.theme-night:not([data-page^="community"]) .ps-panel,
body.theme-night:not([data-page^="community"]) .review-summary,
body.theme-night:not([data-page^="community"]) .result-view,
body.theme-night:not([data-page^="community"]) .before-result-preview,
body.theme-night:not([data-page^="community"]) .cv-record-card,
body.theme-night:not([data-page^="community"]) .experience-section,
body.theme-night:not([data-page^="community"]) .recommendation-precheck__panel,
body.theme-night:not([data-page^="community"]) .recommendation-template,
body.theme-night:not([data-page^="community"]) .selection-intro-card,
body.theme-night:not([data-page^="community"]) .selection-content-shell,
body.theme-night:not([data-page^="community"]) .selection-step-indicator,
body.theme-night:not([data-page^="community"]) .wishlist-hero__panel,
body.theme-night:not([data-page^="community"]) .wishlist-stat,
body.theme-night:not([data-page^="community"]) .wishlist-toolbar,
body.theme-night:not([data-page^="community"]) .wishlist-card,
body.theme-night:not([data-page^="community"]) .wishlist-empty,
body.theme-night:not([data-page^="community"]) .wishlist-login,
body.theme-night:not([data-page^="community"]) .program-library-hero__panel,
body.theme-night:not([data-page^="community"]) .program-library-scale,
body.theme-night:not([data-page^="community"]) .program-library-filter-card,
body.theme-night:not([data-page^="community"]) .program-card,
body.theme-night:not([data-page^="community"]) .program-list-row,
body.theme-night:not([data-page^="community"]) .program-empty-state,
body.theme-night:not([data-page^="community"]) .program-modal__panel,
body.theme-night:not([data-page^="community"]) .sample-case-card,
body.theme-night:not([data-page^="community"]) .sample-archive-context {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(226, 232, 240, 0.22) !important;
  box-shadow: 8px 8px 0 rgba(2, 6, 23, 0.38) !important;
  color: #f8fafc !important;
}

body.theme-night:not([data-page^="community"]) .step-indicator__button,
body.theme-night:not([data-page^="community"]) .selection-step-indicator .step-indicator__button,
body.theme-night:not([data-page^="community"]) .soft-button,
body.theme-night:not([data-page^="community"]) .inline-button,
body.theme-night:not([data-page^="community"]) .ghost-button,
body.theme-night:not([data-page^="community"]) .program-button--light,
body.theme-night:not([data-page^="community"]) .text-button {
  background: rgba(30, 41, 59, 0.84) !important;
  border-color: rgba(226, 232, 240, 0.22) !important;
  color: #e2e8f0 !important;
}

body.theme-night:not([data-page^="community"]) .primary-button,
body.theme-night:not([data-page^="community"]) .sketch-button--dark,
body.theme-night:not([data-page^="community"]) .program-button--dark,
body.theme-night:not([data-page^="community"]) .icon-button--dark {
  background: #60a5fa !important;
  border-color: #93c5fd !important;
  color: #0f172a !important;
  box-shadow: 6px 6px 0 rgba(2, 6, 23, 0.42) !important;
}

body.theme-night:not([data-page^="community"]) .step-indicator__item.is-active .step-indicator__button,
body.theme-night:not([data-page^="community"]) .selection-step-indicator .step-indicator__item.is-active .step-indicator__button {
  background: #60a5fa !important;
  border-color: #93c5fd !important;
  color: #0f172a !important;
}

body.theme-night:not([data-page^="community"]) .step-indicator__item.is-active .step-indicator__number,
body.theme-night:not([data-page^="community"]) .selection-step-indicator .step-indicator__item.is-active .step-indicator__number {
  background: rgba(15, 23, 42, 0.18) !important;
  border-color: rgba(15, 23, 42, 0.42) !important;
  color: #0f172a !important;
}

body.theme-night:not([data-page^="community"]) .step-indicator__item.is-active .step-indicator__label,
body.theme-night:not([data-page^="community"]) .selection-step-indicator .step-indicator__item.is-active .step-indicator__label {
  color: #0f172a !important;
}

body.theme-night:not([data-page^="community"]) .step-indicator__number,
body.theme-night:not([data-page^="community"]) .selection-step-indicator .step-indicator__number {
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(226, 232, 240, 0.32) !important;
  color: #e2e8f0 !important;
}

body.theme-night:not([data-page^="community"]) .step-indicator__label,
body.theme-night:not([data-page^="community"]) .selection-step-indicator .step-indicator__label,
body.theme-night:not([data-page^="community"]) .result-view__toolbar,
body.theme-night:not([data-page^="community"]) .wishlist-toolbar__status,
body.theme-night:not([data-page^="community"]) .program-library-hero__copy,
body.theme-night:not([data-page^="community"]) .sample-case-card__program p,
body.theme-night:not([data-page^="community"]) .sample-case-card__title p,
body.theme-night:not([data-page^="community"]) .wishlist-card__note,
body.theme-night:not([data-page^="community"]) .wishlist-card__footer {
  color: #cbd5e1 !important;
}

body.theme-night:not([data-page^="community"]) .result-preview__paper,
body.theme-night:not([data-page^="community"]) .word-paper,
body.theme-night:not([data-page^="community"]) .sop-onboarding__sample-doc {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

body.theme-night:not([data-page^="community"]) .result-preview__paper *,
body.theme-night:not([data-page^="community"]) .word-paper *,
body.theme-night:not([data-page^="community"]) .sop-onboarding__sample-doc * {
  color: #0f172a !important;
}

body.theme-night:not([data-page^="community"]) .auth-modal,
body.theme-night:not([data-page^="community"]) .auth-card,
body.theme-night:not([data-page^="community"]) .sop-onboarding__dialog,
body.theme-night:not([data-page^="community"]) .yuyu-dialog__panel {
  background: rgba(15, 23, 42, 0.96) !important;
  border-color: rgba(226, 232, 240, 0.24) !important;
  color: #f8fafc !important;
}

body.theme-night:not([data-page^="community"]) .legal-table th,
body.theme-night:not([data-page^="community"]) .legal-table td,
body.theme-night:not([data-page^="community"]) table th,
body.theme-night:not([data-page^="community"]) table td {
  border-color: rgba(226, 232, 240, 0.18) !important;
}

/* Night-mode onboarding readability */
body.theme-night:not([data-page^="community"]) .sop-onboarding {
  color: #e5edf8 !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__shade {
  background: rgba(2, 6, 23, 0.76) !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__spotlight {
  border-color: rgba(251, 191, 36, 0.98) !important;
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.74), 0 22px 54px rgba(0, 0, 0, 0.48) !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__dialog {
  background: #07111f !important;
  border-color: rgba(226, 232, 240, 0.3) !important;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.42), 0 34px 96px rgba(0, 0, 0, 0.56) !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__sample-wrap {
  background: rgba(15, 23, 42, 0.66) !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__copy {
  background: rgba(15, 23, 42, 0.96) !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
  color: #e5edf8 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 8px 8px 0 rgba(0, 0, 0, 0.24) !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__eyebrow span {
  color: #60a5fa !important;
  text-shadow: 0 0 18px rgba(96, 165, 250, 0.28);
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__skip {
  background: rgba(226, 232, 240, 0.08) !important;
  border-color: rgba(226, 232, 240, 0.28) !important;
  color: #e2e8f0 !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__skip:hover {
  background: rgba(96, 165, 250, 0.16) !important;
  color: #f8fafc !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__copy h2 {
  color: #f8fafc !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.36);
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__body,
body.theme-night:not([data-page^="community"]) .sop-onboarding__body p,
body.theme-night:not([data-page^="community"]) .sop-onboarding__body ol,
body.theme-night:not([data-page^="community"]) .sop-onboarding__body li {
  color: #cbd5e1 !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__body strong {
  color: #f8fafc !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__controls .ghost-button {
  background: rgba(226, 232, 240, 0.1) !important;
  border-color: rgba(226, 232, 240, 0.28) !important;
  color: #f8fafc !important;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28) !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__controls .ghost-button:disabled {
  background: rgba(148, 163, 184, 0.18) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: rgba(226, 232, 240, 0.52) !important;
  opacity: 1 !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__controls .primary-button {
  background: #60a5fa !important;
  border-color: rgba(191, 219, 254, 0.58) !important;
  color: #06111f !important;
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.72) !important;
}

body.theme-night:not([data-page^="community"]) .sop-onboarding__controls .primary-button:hover {
  background: #93c5fd !important;
}
