    :root {
      --blue: #126dff;
      --blue-hover: #0a5cdb;
      --blue-dark: #0a5cdb;
      --blue-soft: rgba(18, 109, 255, 0.06);
      --blue-ring: rgba(18, 109, 255, 0.14);
      --purple: #8b5cf6;
      --ink: #0f172a;
      --muted: #64748b;
      --line: #eef2f7;
      --bg: #f8fafc;
      --soft: #f0f6ff;
      --green: #18a058;
      --surface: #ffffff;
      --radius-sm: 10px;
      --radius-md: 14px;
      --radius-lg: 18px;
      --radius-xl: 22px;
      --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 28px rgba(15, 23, 42, 0.05);
      --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
      --shadow-hover: 0 10px 36px rgba(59, 130, 246, 0.18), 0 4px 12px rgba(139, 92, 246, 0.08);
      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
      --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
      --duration-fast: 140ms;
      --duration-normal: 200ms;
      --duration-slow: 280ms;
      --t-fast: 120ms;
      --t-base: 180ms;
      --t-slow: 300ms;
      --ease: cubic-bezier(0.4, 0, 0.2, 1);
      --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      *,
      *::before,
      *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
      }

      :focus-visible {
        transition-duration: 0.02ms !important;
      }

      /* Keep brief press/hover feedback on controls — the global rule makes transitions instant,
         which removes almost all tactile feedback on click. Short transitions are not distracting. */
      .btn,
      .btn::before,
      .btn::after,
      .wizard-step,
      .mode,
      .section-tools button,
      .rich-toolbar button,
      .repeat-actions button,
      .add-line-btn,
      .inline-toggle,
      .tips-btn,
      .skill-chip-remove,
      .work-summary-btn,
      #page-builder .collapse-btn,
      #page-builder .section-remove-btn,
      #page-builder .skills-add-btn,
      .cv-triple-card,
      .wizard-template-card,
      .cv-card,
      .cv-thumb-wrap::after,
      .feature-card,
      .template-card {
        transition-duration: var(--duration-normal, 200ms) !important;
      }
    }

    /* ── Utilities (loading states, motion primitives) ── */
    body.modal-open {
      overflow: hidden;
    }

    .fade-in {
      animation: utilFadeIn var(--duration-normal, 200ms) var(--ease-out) both;
    }

    .slide-up {
      animation: utilSlideUp var(--duration-normal, 200ms) var(--ease-out) both;
    }

    .scale-in {
      animation: utilScaleIn var(--duration-fast, 160ms) var(--ease-out) both;
    }

    @keyframes utilFadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    @keyframes utilSlideUp {
      from {
        opacity: 0;
        transform: translateY(8px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes utilScaleIn {
      from {
        opacity: 0;
        transform: scale(0.96);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .btn.is-loading {
      position: relative;
      pointer-events: none;
      opacity: 0.92;
    }

    .btn.is-loading .btn-inline-spinner {
      display: inline-block;
      width: 1em;
      height: 1em;
      margin-right: 8px;
      border: 2px solid rgba(255, 255, 255, 0.35);
      border-top-color: #fff;
      border-radius: 50%;
      vertical-align: -0.15em;
      animation: btnSpin 0.7s linear infinite;
    }

    .btn.btn-ghost.is-loading .btn-inline-spinner {
      border-color: rgba(18, 109, 255, 0.2);
      border-top-color: var(--blue);
    }

    .btn.is-success {
      pointer-events: none;
    }

    @keyframes btnSpin {
      to {
        transform: rotate(360deg);
      }
    }

    .pdf-export-toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(12px);
      z-index: 3000;
      max-width: min(92vw, 420px);
      padding: 12px 18px;
      border-radius: var(--radius-md);
      background: #0f172a;
      color: #f8fafc;
      font-size: 14px;
      font-weight: 600;
      box-shadow: var(--shadow-card);
      opacity: 0;
      visibility: hidden;
      transition:
        opacity var(--duration-normal) var(--ease-soft),
        transform var(--duration-normal) var(--ease-soft),
        visibility 0s linear var(--duration-normal);
    }

    .pdf-export-toast.is-visible {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
      transition:
        opacity var(--duration-normal) var(--ease-soft),
        transform var(--duration-normal) var(--ease-soft),
        visibility 0s;
    }

    .pdf-export-toast.is-error {
      background: #7f1d1d;
    }

    @keyframes previewTplCrossfade {
      from {
        opacity: 0.65;
        transform: scale(0.992);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    @media (prefers-reduced-motion: no-preference) {
      #cvStage.preview-template-switch .cv-doc {
        animation: previewTplCrossfade 160ms var(--ease-out) both;
      }
    }

    .summary-rich-flash {
      animation: summaryRichIn var(--duration-normal) var(--ease-out) both;
    }

    @keyframes summaryRichIn {
      from {
        opacity: 0.55;
      }

      to {
        opacity: 1;
      }
    }

    .add-section-popover.open {
      animation: popoverSpringIn var(--t-base) var(--ease-spring) both;
    }

    @keyframes popoverSpringIn {
      from {
        opacity: 0;
        transform: scale(0.96) translateY(-4px);
      }

      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    .animate-remove-leave {
      animation: utilFadeOut 160ms var(--ease-soft) both;
    }

    @keyframes utilFadeOut {
      to {
        opacity: 0;
        transform: translateY(-4px);
      }
    }

    .motion-enter {
      opacity: 0;
      transform: translateY(6px);
      transition:
        opacity var(--duration-normal) var(--ease-out),
        transform var(--duration-normal) var(--ease-out);
    }

    .motion-enter.motion-enter-active {
      opacity: 1;
      transform: translateY(0);
    }

    @media (prefers-reduced-motion: reduce) {
      .motion-enter {
        opacity: 1;
        transform: none;
        transition: none;
      }
    }

    /* Keyboard skip link — visible only when focused */
    .skip-link {
      position: absolute;
      top: -100px;
      left: 12px;
      z-index: 10000;
      padding: 10px 16px;
      background: var(--blue);
      color: #fff;
      font-weight: 600;
      font-size: 14px;
      text-decoration: none;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      transition: top 0.18s ease;
    }
    .skip-link:focus {
      top: 12px;
      outline: 2px solid #fff;
      outline-offset: 2px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background:
        linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #f4f7fb 100%);
      color: var(--ink);
      font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
      line-height: 1.55;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    /* ── Builder-only font + resets ── */
    #page-builder {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
      background: linear-gradient(180deg, #fafbfd 0%, #f4f7fb 55%, #f1f5f9 100%);
    }

    /* Tighten header title in builder */
    #page-builder .builder-title-block h1 {
      font-size: 17px;
      font-weight: 600;
      letter-spacing: -.01em;
    }

    #page-builder .builder-title-block p {
      font-weight: 400;
      font-size: 12px;
    }

    /* Builder textarea: override global 700 */
    #page-builder textarea {
      font-weight: 400;
    }

    /* Builder focus ring: use blue instead of legacy purple */
    #page-builder input:focus,
    #page-builder select:focus,
    #page-builder textarea:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(18, 109, 255, 0.1);
    }

    button,
    input,
    textarea {
      font: inherit;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    /* ── TOPBAR ── */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255, 255, 255, 0.82);
      border-bottom: 1px solid rgba(226, 232, 240, 0.85);
      backdrop-filter: blur(20px) saturate(1.2);
      -webkit-backdrop-filter: blur(20px) saturate(1.2);
      animation: topbarDrop 0.55s ease both;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    }

    .topbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      max-width: 1180px;
      margin: 0 auto;
      padding: 16px 22px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      cursor: pointer;
    }

    .brand-logo {
      height: 37px;
      width: auto;
      display: block;
      flex-shrink: 0;
    }

    .ui-icon {
      width: 1.15em;
      height: 1.15em;
      display: inline-block;
      flex: 0 0 auto;
      vertical-align: -0.18em;
      color: currentColor;
    }

    .ui-icon svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    svg.ui-icon {
      width: 1.15em;
      height: 1.15em;
      display: inline-block;
    }

    .kicker .ui-icon,
    .hero-badges .ui-icon,
    .btn .ui-icon,
    .pricing-card .ui-icon {
      width: 16px;
      height: 16px;
    }

    .icon .ui-icon {
      width: 28px;
      height: 28px;
    }

    .section-check .ui-icon,
    .checkmark .ui-icon {
      width: 16px;
      height: 16px;
    }

    .collapse-btn .ui-icon {
      margin-right: 8px;
      color: var(--blue);
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 26px;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: -0.01em;
      color: #64748b;
    }

    .nav a:hover {
      color: var(--blue);
    }

    /* ── MOBILE NAV ── */
    .nav-toggle {
      display: none;
      background: none;
      border: 0;
      padding: 5px;
      cursor: pointer;
      color: var(--ink);
    }

    @media (max-width: 980px) {
      .nav-toggle {
        display: block;
      }

      .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 22px;
        gap: 16px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-soft);
      }

      .nav.open {
        display: flex;
      }
    }

    /* ── BUTTONS ── */
    .btn {
      border: 0;
      border-radius: var(--radius-sm);
      padding: 11px 20px;
      cursor: pointer;
      font-weight: 700;
      font-size: 14px;
      line-height: 1;
      transition:
        background var(--duration-normal) var(--ease-soft),
        color var(--duration-normal) var(--ease-soft),
        border-color var(--duration-normal) var(--ease-soft),
        box-shadow var(--duration-normal) var(--ease-soft),
        transform var(--duration-fast) var(--ease-out);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      max-width: 100%;
    }

    .btn:focus-visible {
      outline: 2px solid var(--blue);
      outline-offset: 2px;
    }

    .btn-primary {
      background: linear-gradient(135deg, #3b82f6 0%, #6366f1 48%, #8b5cf6 100%);
      color: #fff;
      box-shadow: var(--shadow-hover);
      border-radius: var(--radius-md);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 14px 40px rgba(59, 130, 246, 0.22), 0 6px 16px rgba(139, 92, 246, 0.12);
    }

    .btn-ghost {
      border: 1px solid rgba(226, 232, 240, 0.95);
      background: rgba(255, 255, 255, 0.92);
      color: var(--ink);
      border-radius: var(--radius-md);
    }

    .btn-ghost:hover {
      border-color: rgba(59, 130, 246, 0.35);
      color: var(--blue);
      background: #fff;
      box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    }

    .btn-primary:active {
      transform: translateY(0) scale(0.98);
      box-shadow: 0 8px 26px rgba(59, 130, 246, 0.2), 0 3px 12px rgba(139, 92, 246, 0.1);
    }

    .btn-ghost:active {
      transform: translateY(0) scale(0.99);
      box-shadow: 0 1px 8px rgba(15, 23, 42, 0.07);
    }

    /* ── HERO ── */
    .hero {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(ellipse 58% 68% at 4% 10%, rgba(59, 130, 246, 0.09) 0%, transparent 72%),
        radial-gradient(ellipse 50% 62% at 96% 16%, rgba(139, 92, 246, 0.07) 0%, transparent 72%),
        radial-gradient(ellipse 42% 38% at 52% 102%, rgba(59, 130, 246, 0.05) 0%, transparent 100%),
        linear-gradient(180deg, #ffffff 0%, #f5f9ff 52%, #eef4fc 100%);
      border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    }

    /* Subtle dot grid concentrated in the mockup area */
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle, rgba(59, 130, 246, 0.09) 1px, transparent 1px);
      background-size: 26px 26px;
      -webkit-mask-image: radial-gradient(ellipse 65% 80% at 80% 50%, black 0%, transparent 72%);
      mask-image: radial-gradient(ellipse 65% 80% at 80% 50%, black 0%, transparent 72%);
      pointer-events: none;
      z-index: 0;
    }

    /* Background glow blobs */
    .hero-bg {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      z-index: 0;
    }

    .hero-glow {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
    }

    .hero-glow-left {
      width: 460px;
      height: 420px;
      top: -120px;
      left: -120px;
      background: radial-gradient(circle at 45% 45%, rgba(59, 130, 246, 0.14) 0%, transparent 68%);
      filter: blur(52px);
    }

    .hero-glow-right {
      width: 520px;
      height: 480px;
      top: 20px;
      right: -140px;
      background: radial-gradient(circle at 55% 40%, rgba(167, 139, 250, 0.12) 0%, transparent 68%);
      filter: blur(58px);
    }

    .hero-glow-bottom {
      width: 360px;
      height: 220px;
      bottom: -60px;
      right: 8%;
      background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.09) 0%, transparent 72%);
      filter: blur(44px);
    }

    @media (prefers-reduced-motion: no-preference) {
      .hero-glow-left {
        animation: heroGlowDrift 10s var(--ease-soft) infinite alternate;
      }

      .hero-glow-right {
        animation: heroGlowDriftAlt 12s var(--ease-soft) infinite alternate;
      }

      .hero-glow-bottom {
        animation: heroGlowDrift 11s var(--ease-soft) infinite alternate-reverse;
      }
    }

    @keyframes heroGlowDrift {
      from {
        transform: translate(0, 0);
      }

      to {
        transform: translate(5px, -4px);
      }
    }

    @keyframes heroGlowDriftAlt {
      from {
        transform: translate(0, 0);
      }

      to {
        transform: translate(-4px, 5px);
      }
    }

    .hero-inner {
      display: grid;
      grid-template-columns: 1fr 440px;
      align-items: center;
      gap: 52px;
      max-width: 1180px;
      margin: 0 auto;
      padding: 76px 22px 88px;
      position: relative;
      z-index: 1;
    }

    .kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 22px;
      border: 1px solid rgba(191, 219, 254, 0.85);
      border-radius: 999px;
      padding: 8px 15px;
      background: rgba(255, 255, 255, 0.72);
      color: #2563eb;
      font-size: 13px;
      font-weight: 700;
      animation: kickerPulse 2.8s ease-in-out infinite;
    }

    @keyframes kickerPulse {
      0%   { box-shadow: 0 0 0 0 rgba(59,130,246,0); border-color: rgba(191, 219, 254, 0.85); }
      40%  { box-shadow: 0 0 0 4px rgba(59,130,246,0.06), 0 8px 22px rgba(59,130,246,0.08); border-color: #bfdbfe; }
      60%  { box-shadow: 0 0 0 4px rgba(59,130,246,0.06), 0 8px 22px rgba(59,130,246,0.08); border-color: #bfdbfe; }
      100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); border-color: rgba(191, 219, 254, 0.85); }
    }

    .hero h1 {
      font-size: clamp(40px, 5.5vw, 68px);
      line-height: 1.02;
      letter-spacing: -0.035em;
      color: #0f172a;
      margin-bottom: 20px;
    }

    .hero>.hero-inner>div>p {
      font-size: 18px;
      color: var(--muted);
      margin-bottom: 32px;
      line-height: 1.65;
      font-weight: 500;
      max-width: 34em;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    /* ── "Create My CV" attention button ── */
    .hero-cta-btn {
      position: relative;
      overflow: hidden;
      padding: 14px 28px;
      font-size: 15.5px;
      animation: ctaPulse 2.4s ease-in-out infinite;
    }

    .hero-cta-btn svg {
      transition: transform var(--duration-normal) var(--ease-out);
    }

    .hero-cta-btn:hover svg {
      transform: translateX(4px);
    }

    .hero-cta-btn::after {
      content: '';
      position: absolute;
      top: -20%;
      left: 0;
      width: 40%;
      height: 140%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
      transform: translateX(-300%) skewX(-12deg);
      animation: ctaShimmer 3.6s ease-in-out infinite;
      pointer-events: none;
    }

    @keyframes ctaPulse {
      0%   { box-shadow: 0 6px 22px rgba(59, 130, 246, 0.18), 0 2px 8px rgba(139, 92, 246, 0.08); }
      50%  { box-shadow: 0 10px 36px rgba(59, 130, 246, 0.22), 0 4px 14px rgba(139, 92, 246, 0.12); }
      100% { box-shadow: 0 6px 22px rgba(59, 130, 246, 0.18), 0 2px 8px rgba(139, 92, 246, 0.08); }
    }

    @keyframes ctaShimmer {
      0%   { transform: translateX(-300%) skewX(-12deg); }
      32%  { transform: translateX(500%) skewX(-12deg); }
      100% { transform: translateX(500%) skewX(-12deg); }
    }

    .hero-badges {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px 10px;
      margin: 30px 0 0;
      padding: 0;
      list-style: none;
    }

    .hero-badge-chip {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 8px 14px;
      border-radius: 999px;
      background: rgba(248, 250, 252, 0.95);
      border: 1px solid rgba(226, 232, 240, 0.95);
      color: #475569;
      font-size: 13px;
      font-weight: 600;
      line-height: 1;
      cursor: default;
      user-select: none;
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
      animation: chipIn 0.38s ease both;
    }

    .hero-badge-chip svg {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      opacity: 0.7;
    }

    .hero-badge-chip:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
      background: #fff;
      border-color: rgba(191, 219, 254, 0.9);
    }

    /* Hero grid: 4 chips in one row */
    .hero-badges .hero-badge-chip {
      font-size: 12px;
      padding: 7px 10px;
    }

    /* Staggered entry delays — 4 chips */
    .hero-badge-chip:nth-child(1) { animation-delay: 0ms; }
    .hero-badge-chip:nth-child(2) { animation-delay: 65ms; }
    .hero-badge-chip:nth-child(3) { animation-delay: 130ms; }
    .hero-badge-chip:nth-child(4) { animation-delay: 195ms; }

    @keyframes chipIn {
      from { opacity: 0; transform: translateY(5px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── HERO CV CARD SHOWCASE ── */
    .mockup-stack {
      position: relative;
      min-height: 570px;
    }

    /* Base showcase card */
    .sc-card {
      position: absolute;
      width: 254px;
      border-radius: 12px;
      background: #fff;
      padding: 20px 22px;
      overflow: hidden;
      will-change: transform;
    }

    /* ── Card A: Classic Professional — warm golden, back-left ── */
    .sc-card-a {
      left: 0;
      top: 18px;
      z-index: 1;
      transform: rotate(-5deg) scale(0.96);
      opacity: 0.62;
      background: linear-gradient(160deg, #fdf9f2 0%, #fffef9 100%);
      border: 1px solid #d5c9aa;
      border-left: 4px solid #c9a95c;
      box-shadow: 0 8px 32px rgba(15,23,42,0.10);
      animation: cvFloatA 8s ease-in-out infinite;
    }
    .sc-card-a .sc-name    { color: #20201e; }
    .sc-card-a .sc-role    { color: #7a6a50; }
    .sc-card-a .sc-contact { color: #a0927a; }
    .sc-card-a .sc-sep     { background: #d5c9aa; }
    .sc-card-a .sc-sec     { color: #9a793d; }
    .sc-card-a .sc-job     { color: #3a3328; }
    .sc-card-a .sc-job span { color: #9a793d; }
    .sc-card-a .sc-lines div { background: #ede5d4; }
    .sc-card-a .sc-chips span { background: #f7f1e5; color: #7a6245; border-color: #ddd0b8; }

    /* ── Card B: Tech Resume — teal accent, back-right ── */
    .sc-card-b {
      right: 0;
      top: 32px;
      z-index: 2;
      transform: rotate(4.5deg) scale(0.95);
      opacity: 0.60;
      background: #f8fffe;
      border: 1px solid #99e6de;
      border-left: 4px solid #14b8a6;
      box-shadow: 0 8px 32px rgba(15,23,42,0.10);
      animation: cvFloatB 10s ease-in-out 1.5s infinite;
    }
    .sc-card-b .sc-name    { color: #0d3330; }
    .sc-card-b .sc-role    { color: #0f766e; }
    .sc-card-b .sc-contact { color: #5d9994; }
    .sc-card-b .sc-sep     { background: #a7f3d0; }
    .sc-card-b .sc-sec     { color: #0f766e; }
    .sc-card-b .sc-job     { color: #1a3a38; }
    .sc-card-b .sc-job span { color: #0f766e; }
    .sc-card-b .sc-lines div { background: #ccf7f0; }
    .sc-card-b .sc-chips span { background: #f0fdfa; color: #0f766e; border-color: #a7f3d0; }

    /* ── Card C: Minimal Clean — blue, front-center, primary ── */
    .sc-card-c {
      left: 83px;
      top: 68px;
      z-index: 3;
      width: 272px;
      padding-top: 0;
      transform: rotate(-0.5deg);
      opacity: 1;
      background: #fff;
      border: 1px solid rgba(203, 213, 225, 0.85);
      box-shadow:
        0 24px 56px rgba(15, 23, 42, 0.09),
        0 8px 24px rgba(59, 130, 246, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
      animation: cvFloatC 6s ease-in-out 0.8s infinite;
    }
    .sc-topbar {
      height: 5px;
      background: linear-gradient(90deg, #315ef4 0%, #14b8a6 100%);
      margin: 0 -22px 18px;
      border-radius: 12px 12px 0 0;
    }
    .sc-card-c .sc-name    { color: #0f172a; }
    .sc-card-c .sc-role    { color: #315ef4; }
    .sc-card-c .sc-contact { color: #64748b; }
    .sc-sep-c {
      background: linear-gradient(90deg, #315ef4, #14b8a6) !important;
      height: 2px !important;
      opacity: 0.25 !important;
    }
    .sc-card-c .sc-sec     { color: #315ef4; }
    .sc-card-c .sc-job     { color: #1e293b; }
    .sc-card-c .sc-job span { color: #315ef4; opacity: 0.7; }
    .sc-card-c .sc-lines div { background: #dde6fb; }
    .sc-card-c .sc-chips span { background: #eef4ff; color: #315ef4; border-color: #c7d6f8; }

    /* ── Shared showcase card content ── */
    .sc-name {
      font-size: 16.5px;
      font-weight: 800;
      letter-spacing: -0.3px;
      margin-bottom: 3px;
    }

    .sc-role {
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 4px;
    }

    .sc-contact {
      font-size: 10px;
      color: #94a3b8;
      margin-bottom: 10px;
    }

    .sc-sep {
      height: 1px;
      background: #e2e8f0;
      margin: 8px 0 12px;
    }

    .sc-sec {
      font-size: 8.5px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 5px;
    }

    .sc-job {
      font-size: 11px;
      font-weight: 700;
      margin-bottom: 6px;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 2px;
    }

    .sc-job span {
      font-weight: 500;
      font-size: 10px;
      opacity: 0.8;
    }

    .sc-lines {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 12px;
    }

    .sc-lines div {
      height: 7px;
      border-radius: 999px;
      background: #e2e8f0;
    }

    .sc-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 4px;
    }

    .sc-chips span {
      font-size: 9.5px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 999px;
      background: #eef4ff;
      color: #315ef4;
      border: 1px solid #c7d6f8;
    }

    /* ── SECTIONS ── */
    .section {
      max-width: 1180px;
      margin: 0 auto;
      padding: 96px 22px;
    }

    .section-standout {
      background: linear-gradient(180deg, rgba(240, 246, 255, 0.65) 0%, rgba(248, 250, 252, 0.9) 100%);
      border: 1px solid rgba(226, 232, 240, 0.9);
      border-radius: 28px;
      padding: 76px 22px;
      margin: 0 22px;
      box-shadow: var(--shadow-soft);
    }

    .section-standout .feature-card {
      background: #fff;
    }

    .compact-benefit-strip {
      margin-top: 28px;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      border: 1px solid rgba(219, 234, 254, 0.95);
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.72);
      color: #475569;
      font-size: 14px;
      font-weight: 700;
      text-align: center;
    }

    .compact-benefit-strip .ui-icon {
      flex: 0 0 auto;
      color: var(--blue);
    }

    .section.reveal,
    .feature-card.reveal,
    .review-card.reveal,
    .faq-card.reveal,
    .cv-triple-card.reveal,
    .cta-block.reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.65s ease, transform 0.65s ease;
    }

    .section.reveal.in-view,
    .feature-card.reveal.in-view,
    .review-card.reveal.in-view,
    .faq-card.reveal.in-view,
    .cv-triple-card.reveal.in-view,
    .cta-block.reveal.in-view {
      opacity: 1;
      transform: translateY(0);
    }

    .section-head {
      max-width: 700px;
      margin-bottom: 40px;
    }

    .section-head.center {
      margin-left: auto;
      margin-right: auto;
      text-align: center;
    }

    .section h2 {
      font-size: clamp(28px, 3.5vw, 44px);
      line-height: 1.08;
      margin-bottom: 12px;
    }

    .section>p,
    .section-head p {
      color: var(--muted);
      font-size: 16px;
      line-height: 1.65;
    }

    /* Feature grid */
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }

    .feature-card {
      border: 1px solid rgba(226, 232, 240, 0.95);
      border-radius: var(--radius-lg);
      background: rgba(255, 255, 255, 0.94);
      padding: 30px;
      box-shadow: var(--shadow-soft);
      transition:
        transform var(--duration-normal) var(--ease-soft),
        box-shadow var(--duration-normal) var(--ease-soft),
        border-color var(--duration-normal) var(--ease-soft);
    }

    .feature-card:hover {
      transform: translateY(-3px);
      border-color: rgba(191, 219, 254, 0.95);
      box-shadow:
        0 8px 32px rgba(15, 23, 42, 0.06),
        0 2px 8px rgba(59, 130, 246, 0.05);
    }

    .icon {
      display: grid;
      place-items: center;
      width: 44px;
      height: 44px;
      margin-bottom: 16px;
      border-radius: 50%;
      background: var(--soft);
      color: var(--blue);
      font-weight: 900;
      font-size: 17px;
    }

    .feature-card h3 {
      margin: 0 0 8px;
      font-size: 18px;
    }

    .feature-card p {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.65;
    }

    .hired-note {
      margin: 28px 0 10px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-align: center;
    }

    .logos {
      display: grid;
      grid-template-columns: repeat(8, 1fr);
      gap: 8px;
      margin-top: 12px;
    }

    .company {
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.78);
      padding: 9px 12px;
      color: #667085;
      text-align: center;
      font-weight: 800;
      font-size: 12px;
    }

    /* ── CAROUSEL ── */
    .cv-stack-wrap {
      max-width: 400px;
      margin: 0 auto;
    }

    .cv-stack {
      position: relative;
    }

    .cv-stack-back {
      position: absolute;
      inset: 0;
      border-radius: 16px;
      background: #fff;
      border: 2px solid var(--line);
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    .cv-stack-back:nth-child(1) {
      transform: rotate(-2.5deg) translateY(14px);
      z-index: 1;
      opacity: 0.7;
    }

    .cv-stack-back:nth-child(2) {
      transform: rotate(3deg) translateY(22px);
      z-index: 0;
      opacity: 0.45;
    }

    .cv-card {
      position: relative;
      z-index: 2;
      border: 2px solid var(--line);
      border-radius: 16px;
      overflow: hidden;
      background: #fff;
      aspect-ratio: 3/4;
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
      cursor: grab;
      user-select: none;
      touch-action: pan-y;
      transition: box-shadow var(--duration-normal) var(--ease-soft);
    }

    .cv-card:hover {
      box-shadow:
        0 26px 68px rgba(15, 23, 42, 0.19),
        0 14px 42px rgba(59, 130, 246, 0.09);
    }

    .cv-card:active {
      cursor: grabbing;
    }

    .cv-card .cv-thumb-wrap {
      position: absolute;
      inset: 0;
      border-radius: 14px;
      height: 100%;
      width: 100%;
    }

    .cv-card .cv-thumb-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      display: block;
      pointer-events: none;
    }

    .cv-meta {
      text-align: center;
      padding: 24px 0 16px;
    }

    .cv-meta h3 {
      font-size: 22px;
      font-weight: 900;
      margin-bottom: 4px;
    }

    .cv-meta p {
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .swipe-hint {
      text-align: center;
      color: var(--muted);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      margin-top: 12px;
    }

    /* ── DESKTOP 3-UP CAROUSEL ── */
    .cv-desktop-carousel {
      display: flex;
      align-items: center;
      gap: 18px;
      max-width: 1080px;
      margin: 0 auto;
    }

    .cv-triple {
      flex: 1;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
      transition: opacity 0.18s ease;
    }

    .cv-triple.fading {
      opacity: 0;
    }

    .cv-triple-card {
      border-radius: var(--radius-md);
      overflow: hidden;
      background: #fff;
      border: 2px solid var(--line);
      box-shadow: var(--shadow-soft);
      cursor: pointer;
      transition:
        transform var(--duration-normal) var(--ease-soft),
        box-shadow var(--duration-normal) var(--ease-soft),
        border-color var(--duration-normal) var(--ease-soft);
    }

    .cv-triple-card:hover {
      transform: translateY(-3px) scale(1.018);
      border-color: rgba(191, 219, 254, 0.95);
      box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.08),
        0 4px 16px rgba(59, 130, 246, 0.1),
        0 26px 52px rgba(59, 130, 246, 0.07);
    }

    /* Preview thumbnail: glossy hover sheen + soft “floor” shadow (gallery + builder templates + mobile stack) */
    .cv-thumb-wrap {
      position: relative;
      overflow: hidden;
      background: #f8fafc;
      border-radius: calc(var(--radius-md) - 2px) calc(var(--radius-md) - 2px) 0 0;
    }

    .cv-thumb-wrap::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 1;
      opacity: 0;
      transition: opacity var(--duration-normal) var(--ease-soft);
      background:
        linear-gradient(
          155deg,
          transparent 36%,
          rgba(255, 255, 255, 0.42) 50%,
          transparent 62%
        ),
        linear-gradient(to top, rgba(59, 130, 246, 0.13) 0%, transparent 48%);
      mix-blend-mode: soft-light;
    }

    .cv-triple-card:hover .cv-thumb-wrap::after,
    .wizard-template-card:hover .cv-thumb-wrap::after,
    .cv-card:hover .cv-thumb-wrap::after {
      opacity: 1;
    }

    .cv-triple-card .cv-thumb-wrap img {
      width: 100%;
      aspect-ratio: 210/297;
      object-fit: contain;
      object-position: top center;
      display: block;
      background: #fff;
      position: relative;
      z-index: 0;
    }

    @supports (-webkit-box-reflect: below) {
      .cv-thumb-wrap img {
        -webkit-box-reflect: below 3px linear-gradient(to bottom, transparent 58%, rgba(59, 130, 246, 0.09) 85%, transparent 100%);
      }

      .cv-triple-card:hover .cv-thumb-wrap img,
      .wizard-template-card:hover .cv-thumb-wrap img,
      .cv-card:hover .cv-thumb-wrap img {
        -webkit-box-reflect: below 5px linear-gradient(to bottom, transparent 50%, rgba(59, 130, 246, 0.16) 80%, transparent 100%);
      }
    }

    .cv-triple-meta {
      padding: 14px 16px;
      border-top: 1px solid var(--line);
    }

    .cv-triple-meta h4 {
      font-size: 14px;
      font-weight: 800;
      margin-bottom: 3px;
    }

    .cv-triple-meta p {
      font-size: 11px;
      color: var(--muted);
      font-weight: 500;
      margin-bottom: 10px;
      line-height: 1.4;
    }

    .cv-triple-meta .btn {
      width: 100%;
      padding: 9px;
      font-size: 12px;
    }

    .desk-nav {
      flex-shrink: 0;
      padding: 13px 20px;
      border-radius: var(--radius-md);
      border: 2px solid var(--line);
      background: var(--surface);
      color: var(--ink);
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      transition:
        border-color var(--duration-normal) var(--ease-soft),
        color var(--duration-normal) var(--ease-soft),
        background var(--duration-normal) var(--ease-soft),
        box-shadow var(--duration-normal) var(--ease-soft);
      white-space: nowrap;
      box-shadow: var(--shadow-soft);
    }

    .desk-nav:hover:not(:disabled) {
      border-color: var(--blue);
      color: var(--blue);
      background: var(--soft);
      box-shadow: 0 4px 16px rgba(18, 109, 255, 0.12);
    }

    .desk-nav:disabled {
      opacity: 0.28;
      cursor: not-allowed;
    }

    @media (max-width: 767px) {
      .cv-desktop-carousel {
        display: none;
      }
    }

    @media (min-width: 768px) {
      .cv-stack-wrap {
        display: none;
      }
    }

    .cv-modal-bg {
      position: fixed;
      inset: 0;
      z-index: 2000;
      background: rgba(7, 18, 38, 0.42);
      backdrop-filter: blur(8px);
      display: grid;
      place-items: center;
      padding: 20px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.22s ease;
    }

    .cv-modal-bg.open {
      opacity: 1;
      pointer-events: all;
    }

    .cv-modal {
      display: flex;
      max-width: 840px;
      width: 100%;
      max-height: 90vh;
      background: #fff;
      border-radius: 22px;
      overflow: hidden;
      box-shadow: 0 40px 100px rgba(7, 18, 38, 0.38);
      transform: translateY(22px) scale(0.97);
      transition: transform 0.22s ease;
      position: relative;
    }

    .cv-modal-bg.open .cv-modal {
      transform: none;
    }

    .cv-modal-img {
      flex: 1.2;
      background: var(--bg);
      overflow: hidden;
    }

    .cv-modal-img img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: top center;
      display: block;
    }

    .cv-modal-panel {
      width: 290px;
      flex-shrink: 0;
      padding: 36px 28px;
      display: flex;
      flex-direction: column;
      border-left: 1px solid var(--line);
      overflow-y: auto;
    }

    .cv-modal-panel h3 {
      font-size: 19px;
      font-weight: 900;
      margin-bottom: 4px;
    }

    .cv-modal-panel .cv-modal-desc {
      font-size: 12px;
      color: var(--muted);
      font-weight: 500;
      line-height: 1.45;
      margin-bottom: 22px;
    }

    .cv-modal-panel .cv-modal-intro {
      font-size: 13px;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 14px;
    }

    .cv-modal-panel .field-label {
      display: flex;
      flex-direction: column;
      gap: 5px;
      font-size: 12px;
      font-weight: 700;
      color: var(--muted);
      margin-bottom: 11px;
    }

    .cv-modal-panel input {
      padding: 10px 12px;
      border: 1.5px solid var(--line);
      border-radius: 8px;
      font-size: 14px;
      color: var(--ink);
      outline: none;
      transition: border-color 0.18s;
    }

    .cv-modal-panel input:focus {
      border-color: var(--blue);
    }

    .cv-modal-x {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1.5px solid var(--line);
      background: #fff;
      cursor: pointer;
      font-size: 14px;
      color: var(--muted);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.18s;
      z-index: 2;
    }

    .cv-modal-x:hover {
      border-color: var(--ink);
      color: var(--ink);
    }

    @media (max-width: 600px) {
      .cv-modal {
        flex-direction: column;
      }

      .cv-modal-img {
        flex: 0 0 45vh;
      }

      .cv-modal-panel {
        width: 100%;
      }
    }

    /* ── TEMPLATE GRID ── */
    .template-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .template-card {
      border: 2px solid var(--line);
      border-radius: 10px;
      background: #fff;
      padding: 14px;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    }

    .template-card:hover {
      border-color: var(--blue);
      transform: translateY(-4px);
      box-shadow: 0 14px 36px rgba(18, 109, 255, 0.15);
    }

    .template-card.disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }

    .template-card.disabled:hover {
      border-color: var(--line);
      transform: none;
      box-shadow: none;
    }

    .template-page {
      min-height: 220px;
      border: 1px solid #d7e0ec;
      border-radius: 6px;
      padding: 16px;
      background: linear-gradient(180deg, #fff, #f8fbff);
    }

    .template-page strong {
      display: block;
      margin-bottom: 10px;
      color: var(--blue);
      font-size: 16px;
    }

    .tline {
      height: 7px;
      margin: 9px 0;
      border-radius: 999px;
      background: #e7edf6;
    }

    .tline.mid {
      width: 80%;
    }

    .tline.short {
      width: 60%;
    }

    .template-card>p {
      margin: 12px 0 0;
      color: var(--ink);
      font-weight: 700;
      font-size: 13px;
      text-align: center;
    }

    /* ── REVIEWS ── */
    .review-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }

    .review-card {
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      padding: 24px;
      box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    }

    .stars {
      color: #f59e0b;
      font-size: 16px;
      margin-bottom: 10px;
    }

    .review-card h3 {
      font-size: 16px;
      margin-bottom: 6px;
    }

    .review-card p {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    /* ── FAQ ── */
    .faq-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    .faq-card {
      border: 1px solid rgba(226, 232, 240, 0.95);
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.92);
      padding: 26px;
      box-shadow: var(--shadow-soft);
    }

    .faq-card h3 {
      font-size: 16px;
      margin-bottom: 8px;
    }

    .faq-card p {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.65;
    }

    .compact-faq {
      padding-top: 36px;
      padding-bottom: 36px;
      opacity: 0.88;
    }

    .compact-faq .section-head {
      margin-bottom: 18px;
    }

    .compact-faq h2 {
      font-size: clamp(22px, 2.4vw, 30px);
    }

    /* ── CTA ── */
    .cta-block {
      border-radius: var(--radius-xl);
      background: linear-gradient(135deg, #1d4ed8 0%, #6366f1 42%, #a855f7 100%);
      color: #fff;
      padding: 52px 44px;
      text-align: center;
      overflow: hidden;
      box-shadow:
        0 20px 48px rgba(59, 130, 246, 0.18),
        0 8px 24px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }

    .cta-block h2 {
      color: #fff;
      font-size: clamp(28px, 3vw, 40px);
      margin-bottom: 12px;
      letter-spacing: -0.03em;
      font-weight: 900;
    }

    .cta-block p {
      color: rgba(255, 255, 255, 0.85);
      font-size: 17px;
      margin-bottom: 28px;
      font-weight: 500;
      line-height: 1.55;
    }

    .cta-block .btn {
      width: min(100%, 280px);
      min-height: 48px;
      white-space: normal;
      line-height: 1.25;
    }

    @keyframes topbarDrop {
      from {
        transform: translateY(-14px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    @keyframes fadeUp {
      from {
        transform: translateY(18px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    /* Card float animations — each independent period for natural feel */
    @keyframes cvFloatA {
      0%, 100% { transform: rotate(-5deg) scale(0.96) translateY(0); }
      50%       { transform: rotate(-4.6deg) scale(0.96) translateY(-9px); }
    }

    @keyframes cvFloatB {
      0%, 100% { transform: rotate(4.5deg) scale(0.95) translateY(0); }
      50%       { transform: rotate(4.1deg) scale(0.95) translateY(-7px); }
    }

    @keyframes cvFloatC {
      0%, 100% { transform: rotate(-0.5deg) translateY(0); }
      50%       { transform: rotate(-0.5deg) translateY(-12px); }
    }

    /* ── HERO DASHED ARC ── */
    .hero-arc {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
      overflow: visible;
    }

    /* ── AMBIENT GLOW UNDER CARD STACK ── */
    .mockup-glow {
      position: absolute;
      bottom: 110px;
      left: 50%;
      transform: translateX(-50%);
      width: 78%;
      height: 70px;
      background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.14) 0%, transparent 72%);
      filter: blur(26px);
      pointer-events: none;
      z-index: 0;
    }

    /* ── FLOATING INFO CARDS ── */
    .info-card {
      position: absolute;
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.90);
      border: 1px solid rgba(205, 218, 242, 0.90);
      border-radius: 14px;
      padding: 10px 13px;
      width: 166px;
      box-shadow:
        0 4px 18px rgba(15, 23, 42, 0.09),
        0 1px 4px rgba(15, 23, 42, 0.05);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index: 4;
      pointer-events: none;
    }

    .info-card-icon {
      flex: 0 0 34px;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: grid;
      place-items: center;
    }

    .info-icon-blue   { background: linear-gradient(135deg, #eef4ff 0%, #d8e8ff 100%); }
    .info-icon-teal   { background: linear-gradient(135deg, #f0fdfa 0%, #ccf9f2 100%); }
    .info-icon-purple { background: linear-gradient(135deg, #faf0ff 0%, #ead5fd 100%); }

    .info-card-icon svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .info-card-title {
      font-size: 11.5px;
      font-weight: 700;
      color: #0f172a;
      line-height: 1.2;
      margin-bottom: 2px;
    }

    .info-card-desc {
      font-size: 10px;
      color: #94a3b8;
      line-height: 1.3;
      font-weight: 500;
    }

    /* Card positions — staggered heights for depth */
    .info-card-ats {
      bottom: 52px;
      left: -12px;
      animation: infoFloat 5.2s ease-in-out infinite;
    }

    .info-card-preview {
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%);
      animation: infoFloatCenter 5.8s ease-in-out 1.3s infinite;
    }

    .info-card-pdf {
      bottom: 52px;
      right: -12px;
      animation: infoFloat 4.9s ease-in-out 2.6s infinite;
    }

    @keyframes infoFloat {
      0%, 100% { transform: translateY(0px); }
      50%       { transform: translateY(-7px); }
    }

    @keyframes infoFloatCenter {
      0%, 100% { transform: translateX(-50%) translateY(0px); }
      50%       { transform: translateX(-50%) translateY(-7px); }
    }

    /* ── FOOTER ── */
    footer {
      border-top: 1px solid rgba(226, 232, 240, 0.85);
      background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
      padding: 28px 22px;
      text-align: center;
      color: var(--muted);
      font-size: 13px;
    }

    footer a {
      color: inherit;
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition:
        color var(--duration-normal) var(--ease-soft),
        border-color var(--duration-normal) var(--ease-soft);
    }

    footer a:hover {
      color: var(--blue);
      border-bottom-color: rgba(18, 109, 255, 0.35);
    }

    footer a:focus-visible {
      outline: 2px solid var(--blue);
      outline-offset: 2px;
      border-radius: 2px;
    }

    /* ── BUILDER ── */
    #page-builder {
      display: none;
      /* When JS sets display:flex the builder fills the viewport with no page scroll */
      flex-direction: column;
      height: 100vh;
      overflow: hidden;
    }

    .builder-header {
      position: relative; /* was sticky — no longer needed, page doesn't scroll */
      flex-shrink: 0;
      z-index: 100;
      background: rgba(255, 255, 255, 0.78);
      border-bottom: 1px solid rgba(226, 232, 240, 0.85);
      backdrop-filter: blur(18px) saturate(1.15);
      -webkit-backdrop-filter: blur(18px) saturate(1.15);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
    }

    .builder-header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      max-width: 1600px;
      margin: 0 auto;
      padding: 14px 28px 10px;
    }

    .builder-header .brand-logo {
      height: 30px;
    }

    .builder-title-block {
      flex: 1;
      min-width: 0;
      text-align: left;
    }

    .builder-title-block h1 {
      margin: 0;
      color: var(--ink);
      font-size: 22px;
      line-height: 1.15;
    }

    .builder-title-block p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 12px;
      font-weight: 400;
    }

    .builder-title-inline {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .builder-stepbar {
      max-width: 760px;
      margin: 0 auto;
      padding: 0 22px 14px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .builder-wrap {
      display: grid;
      grid-template-columns: 240px minmax(0, 4fr) minmax(320px, 3fr);
      gap: 24px;
      max-width: 1600px;
      margin: 0 auto;
      padding: 16px 28px;
      align-items: stretch;
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }

    /* Editor panel */
    .editor-panel {
      border: 0;
      border-radius: 0;
      background: transparent;
      padding: 0;
      box-shadow: none;
      overflow-y: auto;
      min-height: 0;
      padding-bottom: 32px;
    }

    .template-summary-card {
      display: grid;
      gap: 8px;
      margin-bottom: 22px;
      padding: 16px 18px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: linear-gradient(180deg, #fff, #f7faff);
    }

    .template-summary-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .template-summary-card h3 {
      margin: 0;
      font-size: 17px;
    }

    .template-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      border-radius: 999px;
      background: var(--soft);
      color: var(--blue);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }

    .template-summary-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .template-hint {
      margin: 0 0 18px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .field-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .field-label {
      display: grid;
      gap: 6px;
      margin-bottom: 14px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }

    .field-label.full {
      grid-column: 1 / -1;
    }

    .field-label span small {
      display: block;
      margin-top: 2px;
      color: #98a2b3;
      font-size: 11px;
      font-weight: 600;
      text-transform: none;
      letter-spacing: 0;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
      width: 100%;
      min-height: 56px;
      border: 2px solid #dbe4f0;
      border-radius: 18px;
      padding: 0 18px;
      color: #0f172a;
      outline: none;
      font-size: 15px;
      font-weight: 800;
      line-height: 1.45;
      transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
      background: #fff;
      box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    }

    select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      padding-right: 42px;
      background-image:
        linear-gradient(45deg, transparent 50%, #475569 50%),
        linear-gradient(135deg, #475569 50%, transparent 50%),
        linear-gradient(#ffffff, #ffffff);
      background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px),
        0 0;
      background-size: 6px 6px, 6px 6px, 100% 100%;
      background-repeat: no-repeat;
      cursor: pointer;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 4px rgba(92, 87, 245, 0.12);
    }

    textarea {
      min-height: 136px;
      padding: 16px 18px;
      resize: vertical;
      font-weight: 700;
    }

    .editor-actions {
      display: grid;
      gap: 10px;
      margin-top: 6px;
    }

    /* CV preview */
    .preview-panel {
      display: flex;
      flex-direction: column;
      gap: 16px;
      border: 0;
      background: transparent;
      padding: 0;
      overflow: hidden;
      box-shadow: none;
      position: relative;
      top: unset;
      max-height: none;
      align-self: stretch;
      min-height: 0;
    }

    .preview-panel .cv-doc {
      width: 794px;
      max-width: none;
      flex: 0 0 auto;
      transform-origin: top left;
      /* zoom is set dynamically by fitCvPreview() in app.js;
         negative margin-right/bottom are also set there to compensate
         transform:scale layout footprint, so flex-centering on the wrap works */
    }

    .cv-doc {
      --cv-paper: #ffffff;
      --cv-ink: #1f2937;
      --cv-muted: #667085;
      --cv-accent: #126dff;
      --cv-soft: #eef5ff;
      --cv-border: #d8e2f1;
      --cv-sidebar: #f8fbff;
      --cv-hero: transparent;
      --cv-tag-bg: #f8fafc;
      --cv-tag-ink: #1f2937;
      --cv-divider: #d8e2f1;
      width: min(100%, 820px);
      min-height: 1120px;
      margin: auto;
      background: var(--cv-paper);
      color: var(--cv-ink);
      box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
      overflow: visible;
      box-sizing: border-box;
    }

    .cv-doc *,
    .cv-doc *::before,
    .cv-doc *::after {
      box-sizing: border-box;
    }

    .cv-doc .cv-shell {
      position: relative;
      isolation: isolate;
      background: var(--cv-paper);
    }

    .cv-doc .cv-shell>* {
      position: relative;
      z-index: 1;
    }

    .cv-main,
    .cv-sidebar,
    .cv-head {
      min-width: 0;
    }

    .cv-doc.font-serif {
      font-family: Georgia, "Times New Roman", serif;
    }

    .cv-doc.font-mono {
      font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
    }

    .cv-doc.font-soft {
      font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    }

    .cv-doc.font-editorial {
      font-family: Georgia, "Times New Roman", serif;
    }

    .cv-doc.layout-split .cv-shell {
      display: grid;
      grid-template-columns: 270px minmax(0, 1fr);
      min-height: 1120px;
    }

    .cv-doc.layout-split .cv-sidebar {
      background: var(--cv-sidebar);
      padding: 42px 28px;
      border-right: 1px solid var(--cv-border);
    }

    .cv-doc.layout-split .cv-main {
      padding: 46px 42px 54px;
      min-width: 0;
    }

    .cv-doc.layout-band .cv-shell,
    .cv-doc.layout-editorial .cv-shell,
    .cv-doc.layout-frame .cv-shell {
      padding: 52px;
    }

    .cv-doc.layout-band .cv-hero {
      margin: -52px -52px 28px;
      padding: 48px 52px 30px;
      background: var(--cv-hero);
    }

    .cv-doc.layout-band .cv-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
      gap: 32px;
    }

    .cv-doc.layout-editorial .cv-name {
      font-size: 54px;
      line-height: 0.92;
      letter-spacing: 0;
    }

    .cv-doc.layout-editorial .cv-role {
      text-transform: uppercase;
      letter-spacing: 1.4px;
    }

    .cv-doc.layout-frame .cv-shell {
      border: 14px solid var(--cv-soft);
      min-height: 1120px;
    }

    .cv-doc.layout-frame .cv-head {
      border-bottom: 3px solid var(--cv-accent);
      padding-bottom: 18px;
      margin-bottom: 22px;
    }

    .cv-doc.layout-frame .cv-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
      gap: 30px;
    }

    .cv-doc.layout-minimal, .cv-doc.layout-compact .cv-shell {
      padding: 58px 62px;
      min-height: 1120px;
      border: 1px solid var(--cv-border);
      box-shadow: none;
    }

    .cv-doc.layout-minimal, .cv-doc.layout-compact .cv-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 20px;
      border-bottom: 1px solid var(--cv-divider);
      padding-bottom: 18px;
      margin-bottom: 24px;
    }

    .cv-doc.layout-minimal, .cv-doc.layout-compact .cv-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
      gap: 28px;
    }

    .cv-doc.layout-structured .cv-shell {
      display: grid;
      grid-template-columns: 255px minmax(0, 1fr);
      min-height: 1120px;
      border: 1px solid var(--cv-border);
    }

    .cv-doc.layout-structured .cv-sidebar {
      background: var(--cv-sidebar);
      padding: 92px 30px 44px;
      border-right: 1px solid var(--cv-border);
    }

    .cv-doc.layout-structured .cv-main {
      padding: 34px 34px 46px;
      min-width: 0;
    }

    .cv-doc.layout-profile-rail .cv-shell {
      display: grid;
      grid-template-columns: 235px minmax(0, 1fr);
      min-height: 1120px;
      border: 1px solid var(--cv-border);
      background: var(--cv-paper);
    }

    .cv-doc.layout-profile-rail .cv-sidebar {
      background: var(--cv-sidebar);
      color: #fff;
      padding: 34px 26px 42px;
    }

    .cv-doc.layout-profile-rail .cv-main {
      padding: 34px 34px 42px;
      min-width: 0;
    }

    .cv-name {
      margin: 0;
      color: var(--cv-accent);
      font-size: 40px;
      line-height: 1;
      overflow-wrap: anywhere;
      word-break: break-word;
      max-width: 100%;
    }

    .cv-role {
      margin: 8px 0 0;
      font-size: 17px;
      font-weight: 700;
      color: var(--cv-ink);
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .cv-identity {
      display: flex;
      align-items: flex-start;
      gap: 18px;
      min-width: 0;
    }

    .cv-identity-copy {
      min-width: 0;
      flex: 1 1 auto;
    }

    .cv-avatar {
      width: 84px;
      height: 84px;
      flex: 0 0 84px;
      border-radius: 999px;
      overflow: hidden;
      border: 2px solid color-mix(in srgb, var(--cv-accent) 28%, white);
      background: var(--cv-soft);
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    }

    .cv-avatar img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .cv-contact {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      margin-top: 16px;
      color: var(--cv-muted);
      font-size: 13px;
    }

    .cv-contact span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      max-width: 100%;
      min-width: 0;
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .cv-contact strong {
      color: var(--cv-ink);
      font-weight: 700;
      flex: 0 0 auto;
    }

    .cv-contact-link {
      font-weight: 500;
    }

    .cv-contact-link a {
      color: var(--cv-accent);
      text-decoration: underline;
      text-underline-offset: 2px;
      font-weight: 500;
    }

    .cv-doc.layout-split .cv-contact {
      display: grid;
      gap: 9px;
    }

    .cv-doc.layout-split .cv-contact span {
      display: grid;
      grid-template-columns: max-content minmax(0, 1fr);
      align-items: start;
      gap: 6px;
      line-height: 1.45;
    }

    .cv-doc.layout-split .cv-identity,
    .cv-doc.layout-structured .cv-identity,
    .cv-doc.layout-profile-rail .cv-identity {
      flex-direction: column;
      align-items: flex-start;
    }

    .cv-doc.layout-split .cv-avatar,
    .cv-doc.layout-structured .cv-avatar,
    .cv-doc.layout-profile-rail .cv-avatar {
      width: 96px;
      height: 96px;
      flex-basis: 96px;
    }

    .cv-section {
      margin-top: 24px;
    }

    .cv-section:first-child {
      margin-top: 0;
    }

    .cv-section-title {
      margin: 0 0 10px;
      color: var(--cv-accent);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1px;
      overflow-wrap: anywhere;
    }

    .cv-doc.layout-editorial .cv-section-title,
    .cv-doc.layout-minimal, .cv-doc.layout-compact .cv-section-title {
      letter-spacing: 1.6px;
    }

    .cv-copy {
      margin: 0;
      line-height: 1.7;
      color: var(--cv-ink);
      font-size: 14px;
      white-space: pre-line;
      overflow-wrap: anywhere;
    }

    .cv-doc.layout-split .cv-copy,
    .cv-doc.layout-band .cv-copy,
    .cv-doc.layout-frame .cv-copy,
    .cv-doc.layout-minimal, .cv-doc.layout-compact .cv-copy {
      color: var(--cv-ink);
    }

    .cv-item {
      margin-bottom: 18px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--cv-divider);
    }

    /* Placeholder content — visible but clearly example data */
    .cv-placeholder,
    .cv-item.cv-placeholder {
      opacity: 0.38;
      pointer-events: none;
      user-select: none;
    }

    .cv-item:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: 0;
    }

    .cv-item-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 6px;
      min-width: 0;
    }

    .cv-item-title {
      font-size: 16px;
      font-weight: 800;
      color: var(--cv-ink);
      overflow-wrap: anywhere;
      min-width: 0;
    }

    .cv-item-meta {
      color: var(--cv-muted);
      font-size: 12px;
      text-align: right;
      white-space: normal;
      overflow-wrap: anywhere;
      max-width: 45%;
    }

    .cv-item-sub {
      margin: 0 0 8px;
      color: var(--cv-muted);
      font-size: 13px;
      font-weight: 700;
    }

    .cv-bullets {
      margin: 0;
      padding-left: 18px;
      color: var(--cv-ink);
      font-size: 14px;
      line-height: 1.65;
      overflow-wrap: anywhere;
    }

    .cv-bullets li+li {
      margin-top: 4px;
    }

    .cv-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .cv-tags span {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 5px 12px;
      border: 1px solid var(--cv-border);
      border-radius: 999px;
      background: var(--cv-tag-bg);
      color: var(--cv-tag-ink);
      font-size: 12px;
      font-weight: 700;
      line-height: 1.35;
      max-width: 100%;
      overflow-wrap: anywhere;
      text-align: left;
    }

    .cv-list {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
      color: var(--cv-ink);
      font-size: 14px;
    }

    .cv-list li {
      padding-left: 14px;
      position: relative;
      line-height: 1.55;
      overflow-wrap: anywhere;
    }

    .cv-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 8px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--cv-accent);
    }

    .cv-side-stack {
      display: grid;
      gap: 22px;
    }

    .cv-sidebar .cv-section-title {
      margin-bottom: 12px;
    }


    .cv-doc.layout-ats .cv-shell {
      padding: 62px;
      min-height: 1120px;
    }

    .cv-doc.layout-ats .cv-item {
      border-bottom: 0;
      margin-bottom: 12px;
    }

    .cv-doc.layout-ats .cv-section-title {
      border-bottom: 2px solid #000;
      padding-bottom: 4px;
      margin-bottom: 14px;
      font-size: 14px;
      color: #000;
    }

    /* ───── ATS Clean layout ───── */
    .cv-doc.layout-ats-clean .cv-shell {
      padding: 0;
      min-height: 1120px;
    }

    .cv-doc.layout-ats-clean .cv-head {
      padding: 44px 56px 0;
    }

    .cv-doc.layout-ats-clean .cv-identity {
      display: block;
    }

    .cv-doc.ats-clean .cv-name,
    .cv-doc.layout-ats-clean .cv-name {
      font-size: 36px;
      font-weight: 800;
      color: var(--cv-ink);
      letter-spacing: -0.4px;
      line-height: 1.1;
      margin: 0;
    }

    .cv-doc.ats-clean .cv-role,
    .cv-doc.layout-ats-clean .cv-role {
      font-size: 14px;
      font-weight: 600;
      color: var(--cv-accent);
      margin: 6px 0 0;
      letter-spacing: 0;
      text-transform: none;
    }

    .cv-doc.layout-ats-clean .cv-contact {
      margin-top: 12px;
      padding-bottom: 16px;
      border-bottom: 2px solid var(--cv-accent);
      font-size: 12px;
      color: var(--cv-muted);
      gap: 4px 16px;
    }

    .cv-doc.layout-ats-clean .cv-contact strong {
      display: none;
    }

    .cv-doc.layout-ats-clean .cv-main {
      padding: 4px 56px 56px;
    }

    .cv-doc.layout-ats-clean .cv-section {
      margin-top: 20px;
    }

    .cv-doc.layout-ats-clean .cv-section-title {
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--cv-accent);
      border-bottom: 1px solid var(--cv-border);
      padding-bottom: 5px;
      margin-bottom: 12px;
    }

    .cv-doc.layout-ats-clean .cv-item {
      border-bottom: 0;
      margin-bottom: 14px;
      padding-bottom: 0;
    }

    .cv-doc.layout-ats-clean .cv-item-title {
      color: var(--cv-ink);
      font-size: 14px;
      font-weight: 700;
    }

    .cv-doc.layout-ats-clean .cv-item-sub {
      color: var(--cv-accent);
      font-size: 12px;
      font-weight: 600;
    }

    .cv-doc.layout-ats-clean .cv-item-meta {
      font-size: 11px;
      color: var(--cv-muted);
    }

    .cv-doc.layout-ats-clean .cv-tags span {
      background: transparent;
      border: 1px solid var(--cv-border);
      color: var(--cv-accent);
      border-radius: 4px;
      font-weight: 600;
      font-size: 11px;
      padding: 4px 10px;
      min-height: 26px;
    }

    .cv-doc.layout-ats-clean .cv-copy {
      font-size: 13px;
      color: var(--cv-ink);
      line-height: 1.6;
    }

    .cv-doc.layout-ats-clean .cv-bullets {
      font-size: 13px;
      line-height: 1.6;
      color: var(--cv-ink);
    }

    .cv-doc.layout-ats-clean .cv-list {
      font-size: 13px;
    }

    .cv-doc.layout-ats-clean .cv-list li::before {
      background: var(--cv-accent);
    }

    /* ───── ATS accent colour picker ───── */
    .ats-color-picker {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 14px 0 0;
      padding: 12px 16px;
      background: var(--c-surface-raised, #f8fafc);
      border-radius: 10px;
      border: 1px solid var(--c-border, #e5e9f0);
    }

    .ats-color-picker[hidden] {
      display: none;
    }

    .ats-color-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--c-text-2, #64748b);
      white-space: nowrap;
      margin: 0;
    }

    .ats-color-swatches {
      display: flex;
      gap: 8px;
    }

    .ats-swatch {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--swatch-color);
      border: 2px solid transparent;
      cursor: pointer;
      outline: none;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
      flex: 0 0 22px;
    }

    .ats-swatch:hover {
      transform: scale(1.18);
    }

    .ats-swatch.selected {
      box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--swatch-color);
    }

    /* Template identities */
    .cv-doc.minimal-clean .cv-shell {
      padding: 68px 70px;
      border: 1px solid var(--cv-border);
      box-shadow: none;
    }

    .cv-doc.minimal-clean .cv-head {
      display: block;
      border-bottom: 1px solid var(--cv-divider);
      padding-bottom: 22px;
      margin-bottom: 30px;
    }

    .cv-doc.minimal-clean .cv-name {
      color: var(--cv-ink);
      font-size: 42px;
      font-weight: 800;
      overflow-wrap: anywhere;
    }

    .cv-doc.minimal-clean .cv-contact {
      padding-top: 4px;
      gap: 7px 12px;
    }

    .cv-doc.minimal-clean .cv-contact span {
      max-width: 48%;
    }

    .cv-doc.minimal-clean .cv-section {
      margin-top: 30px;
    }

    .cv-doc.minimal-clean .cv-section-title {
      color: var(--cv-muted);
      border-bottom: 1px solid var(--cv-divider);
      padding-bottom: 8px;
      letter-spacing: 1.8px;
    }

    .cv-doc.classic-pro .cv-shell {
      padding: 54px 58px;
      border: 2px solid var(--cv-ink);
    }

    .cv-doc.classic-pro .cv-head {
      text-align: center;
      border-bottom: 3px double var(--cv-ink);
      padding-bottom: 18px;
      margin-bottom: 24px;
    }

    .cv-doc.classic-pro .cv-name {
      color: var(--cv-ink);
      font-size: 38px;
      text-transform: uppercase;
    }

    .cv-doc.classic-pro .cv-role {
      color: var(--cv-muted);
      font-size: 14px;
      text-transform: uppercase;
    }

    .cv-doc.classic-pro .cv-contact {
      justify-content: center;
    }

    .cv-doc.classic-pro .cv-section-title {
      border-top: 2px solid var(--cv-ink);
      border-bottom: 1px solid var(--cv-border);
      color: var(--cv-ink);
      padding: 7px 0 6px;
    }

    .cv-doc.modern-sidebar .cv-shell {
      grid-template-columns: 280px minmax(0, 1fr);
    }

    .cv-doc.modern-sidebar .cv-sidebar {
      background: var(--cv-sidebar);
      border-right: 4px solid var(--cv-accent);
    }

    .cv-doc.modern-sidebar .cv-name {
      color: var(--cv-ink);
      font-size: 34px;
    }

    .cv-doc.modern-sidebar .cv-sidebar .cv-section {
      margin-top: 26px;
    }

    .cv-doc.modern-sidebar .cv-tags span {
      border-radius: 6px;
      background: #fff;
    }

    .cv-doc.executive-prime .cv-shell {
      padding: 56px 60px;
      border-top: 12px solid var(--cv-accent);
      background: linear-gradient(180deg, var(--cv-soft) 0, var(--cv-paper) 155px);
    }

    .cv-doc.executive-prime .cv-head {
      max-width: 680px;
      margin-bottom: 34px;
    }

    .cv-doc.executive-prime .cv-name {
      color: var(--cv-ink);
      font-size: 58px;
      line-height: 0.95;
    }

    .cv-doc.executive-prime .cv-role {
      color: var(--cv-accent);
      font-size: 18px;
      text-transform: uppercase;
    }

    .cv-doc.executive-prime .cv-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.8fr);
      gap: 36px;
    }

    .cv-doc.executive-prime .cv-section-title {
      color: var(--cv-ink);
      font-size: 12px;
      border-bottom: 2px solid var(--cv-accent);
      padding-bottom: 7px;
    }

    .cv-doc.ats-optimized {
      box-shadow: none;
    }

    .cv-doc.ats-optimized .cv-shell {
      padding: 62px;
      color: #111;
    }

    .cv-doc.ats-optimized .cv-name {
      color: #111;
      font-size: 32px;
    }

    .cv-doc.ats-optimized .cv-role {
      color: #111;
      font-size: 14px;
    }

    .cv-doc.ats-optimized .cv-tags span {
      border: 0;
      border-radius: 0;
      background: transparent;
      padding: 0;
      min-height: 0;
    }

    .cv-doc.tech-resume .cv-shell {
      padding: 42px;
      background: linear-gradient(90deg, var(--cv-soft) 0 14px, var(--cv-paper) 14px);
    }

    .cv-doc.tech-resume .cv-hero {
      padding: 22px 24px;
      border: 1px solid var(--cv-border);
      background: var(--cv-soft);
      margin-bottom: 22px;
    }

    .cv-doc.tech-resume .cv-name {
      color: var(--cv-ink);
      font-size: 40px;
      font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    }

    .cv-doc.tech-resume .cv-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.85fr);
      gap: 26px;
    }

    .cv-doc.tech-resume .cv-tags span {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      border-radius: 4px;
      background: var(--cv-ink);
      border-color: var(--cv-ink);
      color: #fff;
      min-height: 28px;
    }

    .cv-doc.tech-resume .cv-section-title {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      color: var(--cv-accent);
    }

    .cv-doc.creative-portfolio .cv-shell {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 250px;
      min-height: 1120px;
    }

    .cv-doc.creative-portfolio .cv-main {
      padding: 44px 42px 50px;
    }

    .cv-doc.creative-portfolio .cv-sidebar {
      padding: 44px 28px;
      background: var(--cv-sidebar);
      border-left: 1px solid var(--cv-border);
    }

    .cv-doc.creative-portfolio .cv-head {
      padding: 40px 42px 26px;
      background: var(--cv-soft);
      border-bottom: 6px solid var(--cv-accent);
    }

    .cv-doc.creative-portfolio .cv-name {
      color: var(--cv-ink);
      font-size: 50px;
      line-height: 0.98;
    }

    .cv-doc.creative-portfolio .cv-main>.cv-section:first-child .cv-section-title,
    .cv-doc.creative-portfolio .cv-main>.cv-section:nth-child(2) .cv-section-title {
      color: var(--cv-accent);
      font-size: 13px;
    }

    .cv-doc.creative-portfolio .cv-item {
      border-bottom-style: dashed;
    }

    .cv-doc.bold-contemporary {
      background: var(--cv-ink);
    }

    .cv-doc.bold-contemporary .cv-shell {
      padding: 0;
      background: var(--cv-paper);
    }

    .cv-doc.bold-contemporary .cv-hero {
      padding: 54px 58px 38px;
      background: var(--cv-ink);
      color: #fff;
    }

    .cv-doc.bold-contemporary .cv-hero .cv-name,
    .cv-doc.bold-contemporary .cv-hero .cv-role,
    .cv-doc.bold-contemporary .cv-hero .cv-contact,
    .cv-doc.bold-contemporary .cv-hero .cv-contact strong {
      color: #fff;
    }

    .cv-doc.bold-contemporary .cv-name {
      font-size: 60px;
      line-height: 0.94;
    }

    .cv-doc.bold-contemporary .cv-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.85fr);
      gap: 32px;
      padding: 38px 48px 52px;
    }

    .cv-doc.bold-contemporary .cv-section-title {
      display: inline-flex;
      padding: 5px 9px;
      background: var(--cv-accent);
      color: #fff;
      border-radius: 3px;
      letter-spacing: 1px;
    }

    .cv-doc.bold-contemporary .cv-tags span {
      border-radius: 3px;
      background: var(--cv-soft);
      border-color: var(--cv-soft);
    }

    .cv-doc.editorial-elegant .cv-shell {
      padding: 62px 66px;
      border-left: 10px solid var(--cv-soft);
    }

    .cv-doc.editorial-elegant .cv-head {
      border-bottom: 1px solid var(--cv-border);
      padding-bottom: 24px;
      margin-bottom: 30px;
    }

    .cv-doc.editorial-elegant .cv-name {
      color: var(--cv-ink);
      font-size: 56px;
      font-weight: 400;
      line-height: 1.02;
    }

    .cv-doc.editorial-elegant .cv-role {
      color: var(--cv-accent);
      font-size: 15px;
      font-style: italic;
      font-weight: 400;
    }

    .cv-doc.editorial-elegant .cv-main {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(210px, 0.55fr);
      gap: 36px;
    }

    .cv-doc.editorial-elegant .cv-section-title {
      color: var(--cv-ink);
      font-size: 12px;
      font-weight: 400;
      text-transform: none;
      border-bottom: 1px solid var(--cv-border);
      padding-bottom: 8px;
    }

    /* Visual inspiration pass: decorative, editable, PDF-safe HTML/CSS only. */
    .cv-doc.minimal-clean .cv-shell,
    .cv-doc.classic-pro .cv-shell,
    .cv-doc.modern-sidebar .cv-shell,
    .cv-doc.executive-prime .cv-shell,
    .cv-doc.tech-resume .cv-shell,
    .cv-doc.creative-portfolio .cv-shell,
    .cv-doc.bold-contemporary .cv-shell,
    .cv-doc.editorial-elegant .cv-shell {
      overflow: hidden;
    }

    .cv-doc.minimal-clean .cv-shell::before,
    .cv-doc.classic-pro .cv-shell::before,
    .cv-doc.modern-sidebar .cv-shell::before,
    .cv-doc.executive-prime .cv-shell::before,
    .cv-doc.tech-resume .cv-shell::before,
    .cv-doc.creative-portfolio .cv-shell::before,
    .cv-doc.bold-contemporary .cv-shell::before,
    .cv-doc.editorial-elegant .cv-shell::before,
    .cv-doc.tech-resume .cv-shell::after,
    .cv-doc.creative-portfolio .cv-shell::after,
    .cv-doc.editorial-elegant .cv-shell::after {
      content: "";
      position: absolute;
      pointer-events: none;
      z-index: 0;
    }

    .cv-doc.minimal-clean .cv-shell {
      background:
        linear-gradient(90deg, rgba(107, 127, 103, 0.1) 0 7px, transparent 7px),
        linear-gradient(180deg, #fff 0, #fff 100%);
    }

    .cv-doc.minimal-clean .cv-shell::before {
      right: -62px;
      top: -62px;
      width: 190px;
      height: 190px;
      border: 1px solid rgba(107, 127, 103, 0.18);
      border-radius: 50%;
      background:
        radial-gradient(circle at 44% 42%, rgba(107, 127, 103, 0.08) 0 42%, transparent 43%),
        repeating-linear-gradient(135deg, transparent 0 14px, rgba(107, 127, 103, 0.08) 15px 16px);
    }

    .cv-doc.minimal-clean .cv-role {
      color: var(--cv-accent);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-size: 13px;
    }

    .cv-doc.minimal-clean .cv-copy,
    .cv-doc.minimal-clean .cv-bullets {
      line-height: 1.82;
    }

    .cv-doc.minimal-clean .cv-main {
      display: grid;
      gap: 0;
    }

    .cv-doc.minimal-clean .cv-tags span {
      border-radius: 6px;
      min-height: 28px;
      padding: 5px 13px;
      background: color-mix(in srgb, var(--cv-accent) 14%, white);
      border-color: color-mix(in srgb, var(--cv-accent) 24%, white);
      color: var(--cv-ink);
    }

    .cv-doc.classic-pro .cv-shell {
      border: 0;
      background:
        linear-gradient(90deg, #20201e 0 236px, transparent 236px),
        radial-gradient(circle at 96% 4%, rgba(154, 121, 61, 0.14), transparent 180px),
        var(--cv-paper);
      padding: 0;
      display: grid;
      grid-template-columns: 236px minmax(0, 1fr);
      min-height: 1120px;
    }

    .cv-doc.classic-pro .cv-shell::before {
      left: 36px;
      bottom: 42px;
      width: 150px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--cv-accent), transparent);
      box-shadow: 0 -690px 0 rgba(154, 121, 61, 0.55);
    }

    .cv-doc.classic-pro .cv-head {
      grid-column: 1 / -1;
      text-align: center;
      background:
        linear-gradient(135deg, #20201e 0 0),
        #20201e;
      border: 0;
      border-bottom: 2px solid var(--cv-accent);
      padding: 54px 54px 34px 280px;
      margin: 0;
      color: #fff7df;
    }

    .cv-doc.classic-pro .cv-head::before {
      content: "";
      position: absolute;
      left: 70px;
      top: 38px;
      width: 116px;
      height: 116px;
      border: 2px solid var(--cv-accent);
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
        #2a2a28;
    }

    .cv-doc.classic-pro .cv-avatar {
      position: absolute;
      left: 70px;
      top: 38px;
      width: 116px;
      height: 116px;
      border-radius: 0;
      border: 2px solid var(--cv-accent);
      background: #2a2a28;
      box-shadow: none;
      z-index: 2;
    }

    .cv-doc.classic-pro .cv-avatar img {
      filter: saturate(0.92) contrast(1.04);
    }

    .cv-doc.classic-pro .cv-name {
      color: #f3dca9;
      font-size: 45px;
      font-weight: 500;
      letter-spacing: 0.07em;
    }

    .cv-doc.classic-pro .cv-role,
    .cv-doc.classic-pro .cv-contact,
    .cv-doc.classic-pro .cv-contact strong {
      color: #fff7df;
    }

    .cv-doc.classic-pro .cv-main {
      grid-column: 2;
      padding: 38px 48px 54px;
      min-width: 0;
    }

    .cv-doc.classic-pro .cv-section-title {
      border: 0;
      color: var(--cv-ink);
      font-size: 18px;
      font-weight: 500;
      letter-spacing: 0.16em;
      padding-bottom: 10px;
      background: linear-gradient(var(--cv-accent), var(--cv-accent)) left bottom / 100% 1px no-repeat;
    }

    .cv-doc.modern-sidebar .cv-sidebar {
      background:
        radial-gradient(circle at 72% 52px, rgba(255, 255, 255, 0.34) 0 34px, transparent 35px),
        linear-gradient(160deg, rgba(255, 255, 255, 0.15), transparent 45%),
        var(--cv-sidebar);
      color: #fff;
      border-right: 3px solid #d8c7a5;
      padding: 38px 24px 34px;
    }

    .cv-doc.modern-sidebar .cv-sidebar .cv-name,
    .cv-doc.modern-sidebar .cv-sidebar .cv-role,
    .cv-doc.modern-sidebar .cv-sidebar .cv-section-title,
    .cv-doc.modern-sidebar .cv-sidebar .cv-contact,
    .cv-doc.modern-sidebar .cv-sidebar .cv-contact strong,
    .cv-doc.modern-sidebar .cv-sidebar .cv-list,
    .cv-doc.modern-sidebar .cv-sidebar .cv-copy {
      color: #fffdf8;
    }

    .cv-doc.modern-sidebar .cv-shell::before {
      left: 18px;
      bottom: 18px;
      width: 190px;
      height: 150px;
      opacity: 0.28;
      background:
        radial-gradient(ellipse at 32% 80%, transparent 0 45px, #fff 46px 47px, transparent 48px),
        radial-gradient(ellipse at 70% 38%, transparent 0 38px, #fff 39px 40px, transparent 41px),
        linear-gradient(35deg, transparent 0 47%, #fff 48% 49%, transparent 50%);
    }

    .cv-doc.modern-sidebar .cv-main {
      background:
        radial-gradient(circle at 100% 0%, rgba(111, 127, 95, 0.12), transparent 190px),
        var(--cv-paper);
      padding: 34px 34px 42px;
    }

    .cv-doc.modern-sidebar .cv-sidebar .cv-name {
      font-size: 25px;
      line-height: 1.04;
      margin-bottom: 6px;
      max-width: 100%;
    }

    .cv-doc.modern-sidebar .cv-sidebar .cv-role {
      font-size: 11px;
      letter-spacing: 0.14em;
      line-height: 1.35;
    }

    .cv-doc.modern-sidebar .cv-sidebar .cv-identity {
      display: grid;
      gap: 14px;
    }

    .cv-doc.modern-sidebar .cv-sidebar .cv-avatar {
      width: 92px;
      height: 92px;
      flex-basis: 92px;
      border: 2px solid rgba(255, 253, 248, 0.78);
      background: rgba(255, 253, 248, 0.3);
      box-shadow: none;
    }

    .cv-doc.modern-sidebar .cv-sidebar .cv-contact,
    .cv-doc.modern-sidebar .cv-sidebar .cv-copy,
    .cv-doc.modern-sidebar .cv-sidebar .cv-list {
      font-size: 11.5px;
      line-height: 1.55;
    }

    .cv-doc.modern-sidebar .cv-sidebar .cv-contact {
      gap: 7px;
    }

    .cv-doc.modern-sidebar .cv-sidebar .cv-contact span {
      display: block;
      max-width: 100%;
      line-height: 1.45;
    }

    .cv-doc.modern-sidebar .cv-section-title {
      font-size: 11px;
      letter-spacing: 0.16em;
    }

    .cv-doc.modern-sidebar .cv-tags span {
      border: 0;
      color: #33402e;
      background: rgba(255, 255, 255, 0.82);
      min-height: 0;
      padding: 6px 9px;
      font-size: 11px;
    }

    .cv-doc.executive-prime .cv-shell {
      border-top: 0;
      background:
        linear-gradient(180deg, #1c1c1c 0 250px, var(--cv-paper) 250px),
        var(--cv-paper);
      padding: 0;
    }

    .cv-doc.executive-prime .cv-shell::before {
      right: -44px;
      top: -54px;
      width: 250px;
      height: 250px;
      opacity: 0.28;
      background:
        radial-gradient(circle at 50% 50%, transparent 0 62px, rgba(198, 155, 80, 0.7) 63px 64px, transparent 65px),
        repeating-radial-gradient(circle at 50% 50%, transparent 0 18px, rgba(198, 155, 80, 0.22) 19px 20px);
    }

    .cv-doc.executive-prime .cv-head {
      max-width: none;
      min-height: 208px;
      padding: 46px 48px 28px;
      margin: 0;
      text-align: center;
      color: #fff7df;
    }

    .cv-doc.executive-prime .cv-name {
      color: #f4dba3;
      font-size: 42px;
      font-weight: 500;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      line-height: 1.02;
      max-width: 760px;
      margin-inline: auto;
    }

    .cv-doc.executive-prime .cv-role,
    .cv-doc.executive-prime .cv-contact,
    .cv-doc.executive-prime .cv-contact strong {
      color: #fff7df;
    }

    .cv-doc.executive-prime .cv-role {
      font-size: 13px;
      letter-spacing: 0.18em;
    }

    .cv-doc.executive-prime .cv-contact {
      justify-content: center;
      gap: 8px 16px;
      font-size: 11.5px;
      max-width: 720px;
      margin-inline: auto;
    }

    .cv-doc.executive-prime .cv-grid {
      padding: 34px 42px 46px;
      gap: 28px;
    }

    .cv-doc.executive-prime .cv-section-title {
      font-family: Georgia, "Times New Roman", serif;
      font-size: 18px;
      font-weight: 500;
      letter-spacing: 0.12em;
      color: var(--cv-ink);
      border-bottom: 1px solid var(--cv-accent);
    }

    .cv-doc.ats-optimized .cv-shell {
      background: #fff;
      border: 0;
    }

    .cv-doc.ats-optimized .cv-head {
      border-bottom: 2px solid #111;
      padding-bottom: 14px;
      margin-bottom: 22px;
    }

    .cv-doc.ats-optimized .cv-section {
      margin-top: 20px;
    }

    .cv-doc.ats-optimized .cv-copy,
    .cv-doc.ats-optimized .cv-bullets,
    .cv-doc.ats-optimized .cv-list {
      font-size: 13.5px;
      line-height: 1.58;
    }

    .cv-doc.tech-resume {
      --cv-ink: #0b1930;
    }

    .cv-doc.tech-resume .cv-shell {
      padding: 0;
      background:
        linear-gradient(90deg, #06162b 0 232px, #f8fbff 232px);
      display: grid;
      grid-template-columns: 232px minmax(0, 1fr);
      min-height: 1120px;
    }

    .cv-doc.tech-resume .cv-shell::before {
      left: 0;
      top: 0;
      width: 232px;
      height: 100%;
      background:
        linear-gradient(90deg, transparent 0 90%, rgba(25, 146, 255, 0.36) 91% 92%, transparent 93%),
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(25, 146, 255, 0.2) 19px 20px),
        repeating-linear-gradient(0deg, transparent 0 32px, rgba(25, 146, 255, 0.08) 33px 34px);
      opacity: 0.55;
    }

    .cv-doc.tech-resume .cv-shell::after {
      right: -72px;
      top: -80px;
      width: 300px;
      height: 260px;
      background:
        linear-gradient(135deg, transparent 0 54%, rgba(25, 146, 255, 0.18) 55% 56%, transparent 57%),
        radial-gradient(circle at 42% 45%, rgba(25, 146, 255, 0.18), transparent 120px);
    }

    .cv-doc.tech-resume .cv-hero {
      grid-column: 1 / -1;
      margin: 0;
      padding: 36px 38px 24px 264px;
      min-height: 174px;
      color: #fff;
      border: 0;
      border-bottom: 1px solid rgba(25, 146, 255, 0.55);
      background:
        radial-gradient(circle at 110px 92px, rgba(25, 146, 255, 0.28), transparent 78px),
        linear-gradient(135deg, #06162b, #0b2b50);
    }

    .cv-doc.tech-resume .cv-hero::before {
      content: "";
      position: absolute;
      left: 64px;
      top: 40px;
      width: 92px;
      height: 92px;
      border: 2px solid var(--cv-accent);
      border-radius: 22px;
      box-shadow: 0 0 0 10px rgba(25, 146, 255, 0.08);
      transform: rotate(45deg);
    }

    .cv-doc.tech-resume .cv-hero .cv-name,
    .cv-doc.tech-resume .cv-hero .cv-role,
    .cv-doc.tech-resume .cv-hero .cv-contact,
    .cv-doc.tech-resume .cv-hero .cv-contact strong {
      color: #f7fbff;
    }

    .cv-doc.tech-resume .cv-hero .cv-name {
      text-transform: uppercase;
      letter-spacing: 0.02em;
      font-size: 34px;
      line-height: 1.04;
    }

    .cv-doc.tech-resume .cv-shell>.cv-section,
    .cv-doc.tech-resume .cv-sidebar {
      grid-column: 1;
      color: #e8f4ff;
      padding-left: 24px;
      padding-right: 18px;
    }

    .cv-doc.tech-resume>.cv-shell>.cv-section .cv-section-title,
    .cv-doc.tech-resume .cv-sidebar .cv-section-title,
    .cv-doc.tech-resume .cv-sidebar .cv-copy,
    .cv-doc.tech-resume .cv-sidebar .cv-list,
    .cv-doc.tech-resume .cv-sidebar .cv-item-title,
    .cv-doc.tech-resume .cv-sidebar .cv-bullets {
      color: #e8f4ff;
    }

    .cv-doc.tech-resume .cv-grid {
      grid-column: 2;
      grid-row: 2 / span 2;
      display: contents;
    }

    .cv-doc.tech-resume .cv-main {
      grid-column: 2;
      grid-row: 2 / span 8;
      padding: 28px 28px 36px;
      min-width: 0;
    }

    .cv-doc.tech-resume .cv-sidebar {
      grid-row: 3;
      align-self: start;
      padding-bottom: 30px;
    }

    .cv-doc.tech-resume .cv-main .cv-section {
      background: #fff;
      border: 1px solid rgba(25, 146, 255, 0.2);
      border-radius: 16px;
      padding: 18px 20px;
      box-shadow: 0 12px 26px rgba(6, 22, 43, 0.07);
    }

    .cv-doc.tech-resume .cv-tags span {
      border-radius: 5px;
      box-shadow: inset 0 -3px 0 rgba(25, 146, 255, 0.42);
      min-height: 0;
      padding: 6px 8px;
      font-size: 11px;
    }

    .cv-doc.creative-portfolio .cv-shell {
      background:
        radial-gradient(circle at 8% 3%, rgba(124, 144, 214, 0.28), transparent 160px),
        radial-gradient(circle at 96% 2%, rgba(255, 143, 120, 0.24), transparent 150px),
        radial-gradient(circle at 0% 100%, rgba(155, 122, 199, 0.18), transparent 190px),
        radial-gradient(circle at 100% 100%, rgba(115, 150, 221, 0.18), transparent 160px),
        var(--cv-paper);
      grid-template-columns: minmax(0, 1fr) 235px;
    }

    .cv-doc.creative-portfolio .cv-shell::before {
      left: -70px;
      top: -70px;
      width: 270px;
      height: 270px;
      border-radius: 50%;
      background:
        radial-gradient(circle, rgba(124, 144, 214, 0.25), transparent 72%),
        repeating-radial-gradient(circle, transparent 0 12px, rgba(255, 255, 255, 0.35) 13px 14px);
      filter: blur(1px);
    }

    .cv-doc.creative-portfolio .cv-shell::after {
      right: -80px;
      bottom: -80px;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(125, 154, 221, 0.23), transparent 70%);
    }

    .cv-doc.creative-portfolio .cv-head {
      text-align: center;
      background: transparent;
      border-bottom: 1px solid rgba(32, 39, 68, 0.18);
      padding: 42px 34px 22px;
    }

    .cv-doc.creative-portfolio .cv-name {
      color: #121a40;
      font-size: 46px;
      font-style: italic;
      font-weight: 400;
      letter-spacing: -0.03em;
      text-transform: none;
      line-height: 1.02;
    }

    .cv-doc.creative-portfolio .cv-role {
      letter-spacing: 0.26em;
      text-transform: uppercase;
      color: #2a3155;
      font-size: 11px;
    }

    .cv-doc.creative-portfolio .cv-sidebar {
      background: rgba(255, 255, 255, 0.5);
      border-left: 1px solid rgba(32, 39, 68, 0.14);
      backdrop-filter: blur(2px);
      padding: 34px 20px;
    }

    .cv-doc.creative-portfolio .cv-section-title {
      color: #202744;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 15px;
      letter-spacing: 0.2em;
    }

    .cv-doc.creative-portfolio .cv-section-title::after {
      content: "";
      display: block;
      width: 58px;
      height: 5px;
      margin-top: 5px;
      border-radius: 999px;
      background: rgba(155, 122, 199, 0.52);
    }

    .cv-doc.creative-portfolio .cv-tags span {
      border: 0;
      background: rgba(255, 255, 255, 0.7);
      box-shadow: 0 1px 0 rgba(32, 39, 68, 0.08);
    }

    .cv-doc.bold-contemporary .cv-shell {
      background:
        linear-gradient(135deg, #07363d 0 18%, transparent 18.2%),
        linear-gradient(315deg, #07363d 0 11%, transparent 11.2%),
        var(--cv-paper);
    }

    .cv-doc.bold-contemporary .cv-hero {
      background:
        linear-gradient(145deg, #10373d 0 77%, transparent 77.2%),
        linear-gradient(135deg, rgba(255, 102, 85, 0.88) 0 12%, transparent 12.2%),
        #07363d;
      padding: 36px 44px 42px;
    }

    .cv-doc.bold-contemporary .cv-hero::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: -1px;
      width: 180px;
      height: 76px;
      background: linear-gradient(135deg, transparent 49%, #fff 50%);
    }

    .cv-doc.bold-contemporary .cv-name {
      text-transform: uppercase;
      letter-spacing: -0.02em;
      font-size: 42px;
      line-height: 1.02;
    }

    .cv-doc.bold-contemporary .cv-role {
      color: #ff6655 !important;
      letter-spacing: 0.13em;
      text-transform: uppercase;
      font-size: 12px;
    }

    .cv-doc.bold-contemporary .cv-grid {
      padding: 18px 30px 36px;
      gap: 24px;
    }

    .cv-doc.bold-contemporary .cv-main .cv-section {
      padding: 22px 0;
      border-bottom: 1px solid rgba(7, 54, 61, 0.14);
    }

    .cv-doc.bold-contemporary .cv-sidebar {
      background: #e9fbf9;
      padding: 18px;
      border-radius: 14px;
      align-self: start;
    }

    .cv-doc.editorial-elegant .cv-shell {
      border-left: 0;
      background:
        radial-gradient(circle at 4% 0%, rgba(184, 95, 61, 0.13), transparent 150px),
        radial-gradient(circle at 98% 8%, rgba(95, 110, 76, 0.16), transparent 145px),
        linear-gradient(90deg, #cf6d43 0 78px, transparent 78px),
        var(--cv-paper);
      padding: 50px 46px 52px 96px;
    }

    .cv-doc.editorial-elegant .cv-shell::before {
      left: 0;
      top: 0;
      width: 56px;
      height: 100%;
      background:
        repeating-linear-gradient(45deg, rgba(255, 248, 236, 0.45) 0 3px, transparent 4px 13px),
        repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 248, 236, 0.45) 23px 24px);
      opacity: 0.75;
    }

    .cv-doc.editorial-elegant .cv-shell::after {
      right: 34px;
      top: 34px;
      width: 160px;
      height: 190px;
      opacity: 0.34;
      background:
        radial-gradient(ellipse at 58% 32%, transparent 0 34px, #667153 35px 36px, transparent 37px),
        radial-gradient(ellipse at 36% 60%, transparent 0 30px, #667153 31px 32px, transparent 33px),
        linear-gradient(115deg, transparent 0 49%, #667153 50% 51%, transparent 52%);
    }

    .cv-doc.editorial-elegant .cv-head {
      text-align: center;
      border-bottom: 1px solid rgba(184, 95, 61, 0.32);
    }

    .cv-doc.editorial-elegant .cv-name {
      font-size: 46px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      line-height: 1.03;
    }

    .cv-doc.editorial-elegant .cv-role {
      font-size: 17px;
      color: var(--cv-accent);
      text-transform: none;
      letter-spacing: 0.02em;
    }

    .cv-doc.editorial-elegant .cv-section-title {
      color: var(--cv-accent);
      text-transform: uppercase;
      letter-spacing: 0.22em;
      font-size: 14px;
      border-bottom-color: rgba(184, 95, 61, 0.36);
    }

    .cv-doc.modern-blue .cv-shell {
      padding: 0;
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      min-height: 1120px;
      background:
        linear-gradient(135deg, #103b73 0 220px, transparent 220px),
        var(--cv-paper);
      overflow: hidden;
    }

    .cv-doc.modern-blue .cv-shell::before {
      left: 0;
      top: 0;
      width: 220px;
      height: 100%;
      background:
        radial-gradient(circle at 42px 52px, rgba(255, 255, 255, 0.22) 0 58px, transparent 60px),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px),
        linear-gradient(180deg, #0f4c86, #0a254c);
    }

    .cv-doc.modern-blue .cv-head {
      grid-column: 1 / -1;
      padding: 38px 34px 26px 252px;
      min-height: 158px;
      background:
        linear-gradient(145deg, #0a254c 0 77%, #f6f9ff 77.2%),
        var(--cv-paper);
      color: #fff;
      margin: 0;
    }

    .cv-doc.modern-blue .cv-name {
      color: #fff;
      font-size: 30px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      line-height: 1.03;
      max-width: 460px;
    }

    .cv-doc.modern-blue .cv-role,
    .cv-doc.modern-blue .cv-contact,
    .cv-doc.modern-blue .cv-contact strong {
      color: #e8f4ff;
    }

    .cv-doc.modern-blue .cv-role {
      font-size: 11px;
      letter-spacing: 0.14em;
      max-width: 440px;
    }

    .cv-doc.modern-blue .cv-contact {
      gap: 6px 14px;
      font-size: 11px;
      max-width: 470px;
    }

    .cv-doc.modern-blue .cv-main {
      grid-column: 2;
      padding: 28px 28px 36px;
      min-width: 0;
    }

    .cv-doc.modern-blue .cv-section-title {
      color: var(--cv-accent);
      font-size: 15px;
      letter-spacing: 0.14em;
      border-bottom: 1px solid rgba(37, 99, 235, 0.25);
      padding-bottom: 8px;
    }

    .cv-doc.executive-serif .cv-shell {
      padding: 58px 62px;
      min-height: 1120px;
      background:
        radial-gradient(circle at 92% 6%, rgba(126, 87, 37, 0.12), transparent 175px),
        linear-gradient(90deg, #211f1d 0 12px, transparent 12px),
        #fffaf0;
      border: 1px solid #d7bd83;
      overflow: hidden;
    }

    .cv-doc.executive-serif .cv-head {
      text-align: center;
      padding-bottom: 20px;
      margin-bottom: 22px;
      border-bottom: 1px solid #b7924b;
    }

    .cv-doc.executive-serif .cv-name {
      color: #3b2b18;
      font-size: 34px;
      font-weight: 400;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      line-height: 1.04;
      max-width: 640px;
      margin-inline: auto;
    }

    .cv-doc.executive-serif .cv-role {
      color: #9a6a28;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-size: 11px;
      line-height: 1.35;
      max-width: 540px;
      margin-inline: auto;
    }

    .cv-doc.executive-serif .cv-contact {
      justify-content: center;
      gap: 8px 16px;
      font-size: 11px;
      max-width: 720px;
      margin-inline: auto;
    }

    .cv-doc.executive-serif .cv-section-title {
      color: #3b2b18;
      font-size: 17px;
      font-weight: 400;
      letter-spacing: 0.16em;
      border-bottom: 1px solid #b7924b;
      padding-bottom: 8px;
    }

    .cv-doc.creative-sidebar .cv-shell {
      display: grid;
      grid-template-columns: 265px minmax(0, 1fr);
      min-height: 1120px;
      overflow: hidden;
      background:
        radial-gradient(circle at 95% 8%, rgba(236, 72, 153, 0.1), transparent 170px),
        var(--cv-paper);
    }

    .cv-doc.creative-sidebar .cv-sidebar {
      padding: 48px 30px;
      background:
        linear-gradient(180deg, rgba(236, 72, 153, 0.12), transparent 55%),
        #fff1f8;
      border-right: 1px dashed rgba(219, 39, 119, 0.28);
    }

    .cv-doc.creative-sidebar .cv-main {
      padding: 48px 42px 54px;
      min-width: 0;
    }

    .cv-doc.creative-sidebar .cv-name {
      color: #2b1430;
      font-size: 28px;
      line-height: 1.04;
    }

    .cv-doc.creative-sidebar .cv-role {
      color: #db2777;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      font-size: 11px;
    }

    .cv-doc.creative-sidebar .cv-tags span {
      border: 0;
      background: #fff;
      color: #7a2550;
      box-shadow: 0 1px 0 rgba(219, 39, 119, 0.12);
      min-height: 0;
      padding: 6px 9px;
      font-size: 11px;
    }

    .cv-doc.simple-ats .cv-shell {
      padding: 58px 62px;
      min-height: 1120px;
      background: #fff;
      box-shadow: none;
    }

    .cv-doc.simple-ats .cv-head {
      border-bottom: 2px solid #111;
      padding-bottom: 14px;
      margin-bottom: 22px;
    }

    .cv-doc.simple-ats .cv-name {
      color: #111;
      font-size: 34px;
      text-transform: none;
      letter-spacing: 0;
    }

    .cv-doc.simple-ats .cv-section-title {
      color: #111;
      font-size: 13px;
      letter-spacing: 0.08em;
      border-bottom: 1px solid #111;
      padding-bottom: 5px;
    }

    .cv-doc.simple-ats .cv-tags span {
      border: 0;
      background: transparent;
      padding: 0;
      min-height: 0;
      color: #111;
    }

    .cv-doc.elegant-serif .cv-shell {
      padding: 62px 66px;
      min-height: 1120px;
      background:
        radial-gradient(circle at 100% 0%, rgba(124, 45, 18, 0.1), transparent 170px),
        linear-gradient(90deg, rgba(124, 45, 18, 0.08) 0 8px, transparent 8px),
        #fffaf5;
      overflow: hidden;
    }

    .cv-doc.elegant-serif .cv-head {
      border-bottom: 1px solid #d7b9a9;
      padding-bottom: 22px;
      margin-bottom: 30px;
    }

    .cv-doc.elegant-serif .cv-name {
      color: #3b2118;
      font-size: 52px;
      font-weight: 400;
      letter-spacing: 0.02em;
    }

    .cv-doc.elegant-serif .cv-role {
      color: #9a4f32;
      font-style: italic;
      font-weight: 400;
      font-size: 18px;
    }

    .cv-doc.elegant-serif .cv-section-title {
      color: #9a4f32;
      font-size: 14px;
      letter-spacing: 0.18em;
      border-bottom: 1px solid #d7b9a9;
      padding-bottom: 7px;
    }

    .cv-doc.elegant-serif .cv-main {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 220px;
      gap: 32px;
    }

    .cv-doc.compact-pro .cv-shell {
      padding: 38px 44px;
      min-height: 1120px;
      background:
        linear-gradient(180deg, #eef2f7 0 120px, #fff 120px),
        #fff;
      border-top: 8px solid #334155;
    }

    .cv-doc.compact-pro .cv-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
      gap: 22px;
      align-items: end;
      margin-bottom: 22px;
      padding-bottom: 18px;
      border-bottom: 1px solid #cbd5e1;
    }

    .cv-doc.compact-pro .cv-name {
      color: #111827;
      font-size: 39px;
      line-height: 0.95;
    }

    .cv-doc.compact-pro .cv-contact {
      justify-content: flex-end;
      text-align: right;
      font-size: 12px;
    }

    .cv-doc.compact-pro .cv-section {
      margin-top: 18px;
    }

    .cv-doc.compact-pro .cv-section-title {
      color: #334155;
      font-size: 11px;
      padding: 6px 8px;
      background: #eef2f7;
      border-left: 4px solid #334155;
    }

    .cv-doc.compact-pro .cv-copy,
    .cv-doc.compact-pro .cv-bullets,
    .cv-doc.compact-pro .cv-list {
      font-size: 13px;
      line-height: 1.52;
    }


    .cv-doc.dark-surface {
      box-shadow: 0 16px 42px rgba(7, 18, 38, 0.24);
    }

    .cv-doc.dark-surface .cv-name,
    .cv-doc.dark-surface .cv-role,
    .cv-doc.dark-surface .cv-item-title,
    .cv-doc.dark-surface .cv-copy,
    .cv-doc.dark-surface .cv-list,
    .cv-doc.dark-surface .cv-bullets {
      color: var(--cv-ink);
    }

    .cv-doc.dark-surface .cv-tags span {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.14);
    }

    /* ── SMART WIZARD BUILDER ── */
    .smart-builder {
      display: grid;
      gap: 14px;
    }

    .builder-stepbar,
    .smart-progress-card,
    .wizard-actions {
      display: none !important;
    }

    .builder-sidebar {
      position: relative;
      top: unset;
      display: grid;
      gap: 14px;
      align-self: stretch;
      overflow-y: auto;
      align-content: start;
    }

    .sidebar-card,
    .preview-card {
      background: rgba(255, 255, 255, 0.95);
      border: 1px solid rgba(226, 232, 240, 0.9);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-soft);
    }

    .sidebar-card {
      padding: 14px;
      position: relative;
      background: rgba(255, 255, 255, 0.72);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-color: rgba(226, 232, 240, 0.95);
    }

    /* Hide "Added sections" label when no optional sections have been added */
    .sidebar-optional-divider[data-has-items="false"] {
      display: none;
    }

    .sidebar-section-label {
      margin: 0 0 10px;
      color: #64748b;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .12em;
    }

    .sidebar-nav {
      display: grid;
      gap: 3px;
      position: relative;
    }

    /* Guided flow: vertical rail for main builder steps */
    .sidebar-nav.sidebar-nav--stepper::before {
      content: "";
      position: absolute;
      left: 18px;
      top: 16px;
      bottom: 44px;
      width: 2px;
      border-radius: 2px;
      background: linear-gradient(180deg, rgba(59, 130, 246, 0.28), rgba(148, 163, 184, 0.35));
      pointer-events: none;
      z-index: 0;
    }

    .sidebar-nav.sidebar-nav--stepper .sidebar-item {
      z-index: 1;
    }

    .sidebar-item--locked {
      opacity: 0.68;
      cursor: not-allowed;
      color: #64748b;
    }

    .sidebar-item--locked .sidebar-item-index {
      background: #f1f5f9;
      color: #94a3b8;
    }

    .sidebar-item--locked .sidebar-item-status .sidebar-lock-icon {
      width: 13px;
      height: 13px;
      color: #94a3b8;
      opacity: 0.85;
    }

    .sidebar-item--locked:hover {
      background: rgba(248, 250, 252, 0.85);
      border-color: transparent;
    }

    .sidebar-item {
      width: 100%;
      min-height: 38px;
      display: grid;
      grid-template-columns: 28px minmax(0, 1fr) 20px;
      align-items: center;
      gap: 8px;
      padding: 5px 8px;
      border: 1px solid transparent;
      border-radius: 8px;
      background: transparent;
      color: #475569;
      text-align: left;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: .18s ease;
      position: relative;
      z-index: 1;
    }

    .sidebar-item:hover {
      background: #f8fbff;
      border-color: #dbe4f0;
      color: #0f172a;
    }

    .sidebar-item.active {
      background: #f0f5ff;
      border-color: #dae3ff;
      color: var(--blue);
      box-shadow: inset 3px 0 0 0 var(--blue);
    }

    .sidebar-item.done .sidebar-item-status {
      color: #16a34a;
    }

    .sidebar-item-index {
      width: 20px;
      height: 20px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: #edf2f8;
      color: #6080aa;
      font-size: 10.5px;
      font-weight: 600;
      flex-shrink: 0;
    }

    .sidebar-item.active .sidebar-item-index {
      background: var(--blue);
      color: #fff;
    }

    .sidebar-item.done .sidebar-item-index {
      background: #dcfce7;
      color: #16a34a;
    }

    .sidebar-item-title {
      min-width: 0;
      overflow-wrap: anywhere;
    }

    .sidebar-item-status {
      display: grid;
      place-items: center;
      font-size: 12px;
      color: #cbd5e1;
    }

    .sidebar-remove {
      min-height: 28px;
      width: 28px;
      border: 1px solid #e2e8f0;
      border-radius: 999px;
      background: #fff;
      color: #94a3b8;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: .18s ease;
    }

    .sidebar-remove:hover {
      color: #dc2626;
      border-color: #fecaca;
      background: #fff5f5;
    }

    .sidebar-item-templates {
      margin-top: 6px;
      border-top: 1px solid #eef2f7;
      padding-top: 9px;
    }

    .sidebar-item-templates .sidebar-item-index {
      background: #f3e8ff;
      color: #7c3aed;
      font-size: 10px;
    }

    .sidebar-item-templates.active .sidebar-item-index {
      background: #7c3aed;
      color: #fff;
    }

    .sidebar-optional-divider {
      margin: 6px 0 0;
      padding-top: 10px;
      border-top: 1px solid #eef2f7;
    }

    .add-section-popover {
      display: none;
      margin-top: 8px;
      padding: 10px;
      border: 1px solid #dbe4f0;
      border-radius: 10px;
      background: #fff;
      box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    }

    .add-section-popover.open {
      display: grid;
      gap: 8px;
    }

    .add-section-popover button {
      width: 100%;
      min-height: 38px;
      border: 1px solid #e8edf5;
      border-radius: 8px;
      background: #fff;
      color: #334155;
      text-align: left;
      padding: 0 12px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
    }

    .add-section-popover button[disabled] {
      opacity: .45;
      cursor: not-allowed;
    }

    .editor-utility-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 0 14px;
      margin-bottom: 0;
      background: transparent;
      border: none;
      border-radius: 0;
      box-shadow: none;
      border-bottom: 1px solid #eef2f7;
    }

    .editor-utility-bar h2 {
      margin: 0;
      color: #0f172a;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.2;
    }

    .editor-utility-bar p {
      margin: 3px 0 0;
      color: #64748b;
      font-size: 13px;
      font-weight: 400;
    }

    .editor-utility-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .editor-section-group {
      display: grid;
      gap: 8px;
    }

    /* Personal-details step: tighter card padding so the whole step
       fits in less vertical space without losing breathing room. */
    .personal-subpanel.wizard-card {
      padding: 10px 14px;
    }

    .personal-subpanel + .personal-subpanel,
    .editor-surface[data-editor-section="personal"] + .smart-section[data-editor-section="personal"] {
      margin-top: 0;
    }

    [data-editor-section="personal"].smart-section .smart-section-head {
      padding: 8px 14px;
    }

    [data-editor-section="personal"].smart-section .smart-section-body {
      padding: 0 14px 10px;
    }

    [data-editor-section="personal"].smart-section .section-hint {
      font-size: 12px;
      margin-bottom: 5px;
    }

    [data-editor-section="personal"] .rich-block {
      margin-top: 4px;
    }

    .editor-surface {
      display: none;
      animation: fadeUp var(--t-slow, 300ms) var(--ease-spring, cubic-bezier(0.16, 1, 0.3, 1)) both;
    }

    .editor-surface.active {
      display: block;
    }

    /* Work + Education — softer panel reveal than global `.editor-surface` fadeUp (builder navigation / sidebar) */
    @keyframes history-editor-panel-in {
      from {
        opacity: 0;
        transform: translateY(8px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (prefers-reduced-motion: no-preference) {
      #sectionStack article.smart-section.editor-surface[data-section="work"],
      #sectionStack article.smart-section.editor-surface[data-section="education"] {
        animation: none;
      }

      #sectionStack article.smart-section.editor-surface[data-section="work"].active,
      #sectionStack article.smart-section.editor-surface[data-section="education"].active {
        animation: history-editor-panel-in 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
      }
    }

    /* hide redundant card titles — utility-bar already shows section title/hint */
    .editor-surface .wizard-card-head {
      display: none;
    }

    /* Personal step shows compact internal group titles
       (Basic profile / Contact details) — bring the heads back small. */
    .personal-subpanel .wizard-card-head {
      display: flex;
      padding-bottom: 6px;
      margin-bottom: 8px;
      border-bottom: 1px solid #eef2f7;
    }

    .personal-subpanel .wizard-card-head h3 {
      font-size: 13px;
      font-weight: 600;
      letter-spacing: .02em;
      color: #0f172a;
    }

    .personal-subpanel .wizard-card-head .section-check {
      width: 22px;
      height: 22px;
    }

    /* Personal step: Basic ↔ Contact accordion */
    .personal-basic-summary {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 10px;
      border-radius: 10px;
      border: 1px solid transparent;
      background: #f8fafc;
      outline: none;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      pointer-events: none;
      transform: translateY(-4px);
    }

    .personal-basic-summary:focus-visible {
      box-shadow: 0 0 0 2px #fff, 0 0 0 4px #94a3b8;
    }

    .personal-basic-summary .section-check {
      width: 22px;
      height: 22px;
      flex-shrink: 0;
    }

    [data-personal-subsection="basic"].is-collapsed .personal-basic-summary {
      max-height: 72px;
      opacity: 1;
      padding: 8px 10px;
      border-color: #e8ecf2;
      pointer-events: auto;
      transform: translateY(0);
    }

    [data-personal-subsection="basic"].is-collapsed .personal-basic-head {
      max-height: 0;
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom-color: transparent;
      opacity: 0;
      overflow: hidden;
      pointer-events: none;
    }

    [data-personal-subsection="basic"].is-collapsed .personal-basic-body {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      pointer-events: none;
      transform: translateY(-6px);
    }

    .personal-basic-head,
    .personal-contact-head {
      max-height: 42px;
      opacity: 1;
      overflow: hidden;
    }

    .personal-basic-body {
      max-height: 420px;
      opacity: 1;
      overflow: hidden;
      transform: translateY(0);
    }

    .personal-contact-body {
      max-height: 840px;
      opacity: 1;
      overflow: hidden;
      transform: translateY(0);
    }

    .personal-basic-summary-main {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .personal-basic-summary-name {
      font-size: 13px;
      font-weight: 600;
      color: #0f172a;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .personal-basic-summary-role {
      font-size: 12px;
      color: #64748b;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .personal-summary-edit-btn {
      flex-shrink: 0;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .02em;
      color: #334155;
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 7px;
      cursor: pointer;
    }

    .personal-summary-edit-btn:hover {
      border-color: #cbd5e1;
      background: #f1f5f9;
    }

    .personal-contact-summary {
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 10px;
      margin: 0;
      border-radius: 10px;
      border: 1px solid transparent;
      background: #f8fafc;
      font: inherit;
      cursor: pointer;
      text-align: left;
      color: inherit;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      pointer-events: none;
      transform: translateY(-4px);
    }

    .personal-contact-summary:hover {
      border-color: #dce3ec;
      background: #f1f5f9;
    }

    [data-personal-subsection="contact"].is-collapsed .personal-contact-summary {
      max-height: 72px;
      opacity: 1;
      padding: 8px 10px;
      border-color: #e8ecf2;
      pointer-events: auto;
      transform: translateY(0);
    }

    [data-personal-subsection="contact"].is-collapsed .personal-contact-head {
      max-height: 0;
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom-color: transparent;
      opacity: 0;
      overflow: hidden;
      pointer-events: none;
    }

    [data-personal-subsection="contact"].is-collapsed .personal-contact-body {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      pointer-events: none;
      transform: translateY(-6px);
    }

    .personal-contact-summary-label {
      font-size: 13px;
      font-weight: 600;
      color: #0f172a;
    }

    .personal-contact-summary-main {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .personal-contact-summary-details {
      font-size: 12px;
      color: #64748b;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .personal-summary-edit-btn-label {
      font-size: 11px;
      font-weight: 600;
      color: #475569;
      padding: 4px 10px;
      border: 1px solid #e2e8f0;
      border-radius: 7px;
      background: #fff;
    }

    @media (prefers-reduced-motion: no-preference) {
      .personal-basic-head,
      .personal-contact-head,
      .personal-basic-summary,
      .personal-contact-summary,
      .personal-basic-body,
      .personal-contact-body {
        transition:
          max-height 260ms cubic-bezier(.22, .61, .36, 1),
          opacity 180ms ease,
          transform 260ms cubic-bezier(.22, .61, .36, 1),
          margin-bottom 260ms cubic-bezier(.22, .61, .36, 1),
          padding 260ms cubic-bezier(.22, .61, .36, 1),
          border-color 180ms ease;
      }

      .personal-subpanel {
        transition:
          box-shadow 180ms ease,
          border-color 180ms ease;
      }

      [data-personal-subsection="contact"].is-open {
        border-color: #dbeafe;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
      }
    }

    .editor-section-card {
      padding: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
    }

    .preview-card {
      padding: 10px 14px;
    }

    /* Compact template header that replaces the old CV-readiness card */
    .preview-template-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .preview-template-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .preview-template-info small {
      color: #94a3b8;
      font-size: 10.5px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .1em;
    }

    .preview-template-info strong {
      color: #0f172a;
      font-size: 14px;
      font-weight: 600;
      line-height: 1.25;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /* Compact "Change template" button inside preview card */
    .preview-card .btn {
      min-height: auto;
      padding: 6px 12px;
      font-size: 12px;
      font-weight: 500;
      border-radius: 8px;
      flex: 0 0 auto;
    }

    .preview-action-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 14px;
    }

    .preview-paper-wrap {
      background: #3a4254;
      border-radius: 14px;
      padding: 10px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 18px rgba(15, 23, 42, 0.08);
      overflow: hidden;
      position: relative;
      flex: 1;
      min-height: 0;
      display: flex;
      justify-content: center;
      align-items: flex-start;
    }

    .cv-stage {
      flex: 0 0 auto;
      position: relative;
    }

    .preview-panel .cv-stage .cv-doc {
      transform-origin: top left;
    }

    .builder-mobile-preview-toggle {
      display: none;
    }

    /* ── Wizard action buttons ── */
    .btn-sample {
      min-height: 34px;
      padding: 0 14px;
      border-radius: 8px;
      background: #f0f5ff;
      border: 1px solid #dae3ff;
      color: var(--blue);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: .18s ease;
      white-space: nowrap;
    }

    .btn-sample:hover {
      background: #dbeafe;
      border-color: #93c5fd;
    }

    .btn-start-over {
      font-size: 12.5px;
      font-weight: 400;
      color: #94a3b8;
      border-color: transparent;
    }

    .btn-start-over:hover {
      color: #64748b;
      background: #f1f5f9;
      border-color: #e2e8f0;
    }

    /* ── Continue / Next section row ── */
    .editor-continue-row {
      display: flex;
      justify-content: flex-end;
      padding-top: 18px;
      padding-bottom: 4px;
    }

    .btn-continue {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 22px;
      border-radius: 10px;
      background: var(--blue);
      border: none;
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: .18s ease;
    }

    .btn-continue:hover {
      background: #2451d1;
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(49, 94, 244, 0.28);
    }

    .btn-continue .ui-icon {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .summary-sample-row,
    .skill-suggestion-row,
    .custom-skill-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 12px;
    }

    /* Summary sample row lives inside rich-block, below the editor */
    [data-summary-helper] {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 5px;
      padding: 7px 10px;
      border-top: 1px solid #edf2f7;
      background: #fafbfd;
      margin-bottom: 0;
    }

    /* "Examples:" label */
    .summary-helper-label {
      font-size: 11px;
      font-weight: 600;
      color: #94a3b8;
      letter-spacing: .03em;
      margin-right: 2px;
      flex-shrink: 0;
    }

    /* Role chips — visible by default */
    [data-summary-helper] [data-summary-sample] {
      min-height: 24px;
      padding: 0 9px;
      border: 1px solid #dbe4f0;
      border-radius: 999px;
      background: #fff;
      color: #334155;
      font-size: 11.5px;
      font-weight: 500;
      cursor: pointer;
      transition: background .12s, border-color .12s, color .12s;
    }

    [data-summary-helper] [data-summary-sample]:hover {
      background: #eef4ff;
      border-color: #bfcfed;
      color: var(--blue);
    }

    /* Label and chips hidden when previewing */
    [data-summary-helper].is-previewing .summary-helper-label,
    [data-summary-helper].is-previewing [data-summary-sample] {
      display: none;
    }

    /* Action buttons — hidden by default */
    [data-summary-helper] [data-summary-refresh],
    [data-summary-helper] [data-summary-apply],
    [data-summary-helper] [data-summary-cancel] {
      display: none;
    }

    /* Action buttons — visible when previewing */
    [data-summary-helper].is-previewing [data-summary-refresh],
    [data-summary-helper].is-previewing [data-summary-apply],
    [data-summary-helper].is-previewing [data-summary-cancel] {
      display: inline-flex;
      align-items: center;
      min-height: 26px;
      padding: 0 10px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
    }

    [data-summary-helper].is-previewing [data-summary-apply] {
      background: var(--blue);
      color: #fff;
      border: 1px solid var(--blue);
    }

    [data-summary-helper].is-previewing [data-summary-apply]:hover {
      opacity: .88;
    }

    [data-summary-helper].is-previewing [data-summary-refresh] {
      background: #fff;
      color: #475569;
      border: 1px solid #dde4f0;
    }

    [data-summary-helper].is-previewing [data-summary-refresh]:hover {
      background: #f1f5fb;
    }

    [data-summary-helper].is-previewing [data-summary-cancel] {
      background: transparent;
      color: #94a3b8;
      border: none;
      padding: 0 6px;
    }

    [data-summary-helper].is-previewing [data-summary-cancel]:hover {
      color: #475569;
    }

    .skills-chip-input-block {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 12px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
    }

    .skills-tips,
    .section-tips {
      margin: 0 0 10px;
      padding: 8px 10px;
      border: 1px solid rgba(15, 23, 42, 0.07);
      border-radius: 10px;
      background: rgba(248, 250, 252, 0.72);
      color: rgba(71, 85, 105, 0.78);
      font-size: 12px;
      line-height: 1.45;
    }

    .skills-tips summary,
    .section-tips summary {
      cursor: pointer;
      color: rgba(51, 65, 85, 0.86);
      font-weight: 650;
      user-select: none;
      list-style: none;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .skills-tips summary::-webkit-details-marker,
    .section-tips summary::-webkit-details-marker { display: none; }
    .skills-tips summary::before,
    .section-tips summary::before {
      content: "";
      display: inline-block;
      width: 0; height: 0;
      border-left: 4px solid currentColor;
      border-top: 3px solid transparent;
      border-bottom: 3px solid transparent;
      transition: transform var(--t-fast, 150ms) var(--ease, ease-out);
    }
    .skills-tips[open] summary::before,
    .section-tips[open] summary::before { transform: rotate(90deg); }

    .skills-tips ol,
    .section-tips ol {
      margin: 8px 0 0 18px;
      padding: 0;
    }

    .skills-tips li + li,
    .section-tips li + li {
      margin-top: 4px;
    }

    .skills-field-label {
      margin: 0 0 7px;
      color: rgba(71, 85, 105, 0.72);
      font-size: 11px;
      font-weight: 650;
      letter-spacing: 0.045em;
      text-transform: uppercase;
    }

    .skills-chip-input-block .skills-field-label {
      margin-bottom: -2px;
    }

    .skills-field-label[hidden] {
      display: none;
    }

    .skills-empty-state {
      display: flex;
      flex-direction: column;
      gap: 3px;
      padding: 8px 10px;
      border-radius: 10px;
      background: rgba(248, 250, 252, 0.9);
      color: rgba(15, 23, 42, 0.58);
      font-size: 12.5px;
      line-height: 1.4;
    }

    .skills-empty-state strong {
      color: rgba(15, 23, 42, 0.82);
      font-size: 13px;
      font-weight: 650;
    }

    .skills-empty-state[hidden] {
      display: none;
    }

    .skills-added-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .skills-added-chips:empty {
      display: none;
    }

    .skill-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 30px;
      padding: 0 8px 0 11px;
      border-radius: 999px;
      border: 1px solid rgba(37, 99, 235, 0.18);
      background: rgba(239, 246, 255, 0.78);
      color: rgba(30, 58, 138, 0.9);
      font-size: 12.5px;
      font-weight: 550;
      line-height: 1;
    }

    .skill-chip-name {
      max-width: 180px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .skill-chip-level {
      min-height: 22px;
      max-width: 108px;
      padding: 0 6px 0 7px;
      border: 1px solid rgba(37, 99, 235, 0.18);
      border-radius: 6px;
      background-color: rgba(255, 255, 255, 0.9);
      color: rgba(30, 58, 138, 0.82);
      font-size: 11.5px;
      font-weight: 500;
      cursor: pointer;
      outline: none;
    }

    .skill-chip-level:focus-visible {
      border-color: rgba(37, 99, 235, 0.4);
      box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    }

    .skill-chip-level-empty {
      border-style: solid;
      border-color: transparent;
      color: rgba(100, 116, 139, 0.55);
      background: rgba(148, 163, 184, 0.1);
      font-size: 11px;
      font-weight: 400;
      letter-spacing: 0.01em;
    }

    .skill-chip-level-empty:hover,
    .skill-chip-level-empty:focus-visible {
      border-color: rgba(37, 99, 235, 0.2);
      color: rgba(37, 99, 235, 0.75);
      background: rgba(239, 246, 255, 0.7);
    }

    @keyframes skill-chip-enter {
      from {
        opacity: 0;
        transform: scale(0.96);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    @media (prefers-reduced-motion: no-preference) {
      .skill-chip.skill-chip-enter {
        animation: skill-chip-enter 180ms ease-out both;
      }
    }

    .skill-chip-remove {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: rgba(30, 58, 138, 0.62);
      font: inherit;
      font-size: 15px;
      line-height: 1;
      cursor: pointer;
    }

    .skill-chip-remove:hover {
      background: rgba(37, 99, 235, 0.1);
      color: #1d4ed8;
    }

    .skill-chip-remove:focus-visible {
      outline: 2px solid rgba(37, 99, 235, 0.45);
      outline-offset: 2px;
    }

    .custom-skill-row {
      align-items: stretch;
      gap: 8px;
      margin-bottom: 0;
    }

    .custom-skill-row input {
      flex: 1 1 220px;
      min-height: 46px;
      margin: 0;
      border: 1px solid #dbe4f0;
      border-radius: 10px;
      padding: 0 14px;
      font-size: 14px;
      font-weight: 400;
      color: #0f172a;
      background: #fff;
      box-shadow: none;
    }

    .custom-skill-row input::placeholder {
      color: #9aa3b2;
      font-weight: 400;
    }

    .skills-add-btn {
      flex: 0 0 auto;
      min-height: 42px;
      padding: 0 16px;
      border-radius: 10px;
      border: 1px solid rgba(37, 99, 235, 0.18);
      background: rgba(248, 251, 255, 0.98);
      color: var(--blue);
      font-size: 13px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
    }

    .skills-add-btn:hover {
      background: #eef4ff;
      border-color: rgba(37, 99, 235, 0.28);
    }

    .skill-suggestions-panel {
      margin-bottom: 10px;
    }

    .skill-suggestions-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }

    .skill-suggestions-header .skills-field-label {
      margin: 0;
      flex-shrink: 0;
    }

    input.skill-cat-search {
      flex: 1 1 120px;
      min-width: 0;
      height: 28px;
      min-height: 28px;
      max-height: 28px;
      padding: 0 10px;
      border: 1px solid rgba(15, 23, 42, 0.12);
      border-radius: 7px;
      background: rgba(248, 250, 252, 0.9);
      color: #0f172a;
      font-size: 12px;
      font-weight: 400;
      font-family: inherit;
      box-shadow: none;
      outline: none;
      box-sizing: border-box;
    }

    input.skill-cat-search::placeholder {
      color: #9aa3b2;
    }

    input.skill-cat-search:focus {
      border-color: rgba(37, 99, 235, 0.32);
      background: #fff;
      box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
    }

    .skill-cat-tabs {
      display: flex;
      gap: 5px;
      overflow-x: auto;
      scrollbar-width: none;
      margin-bottom: 9px;
      padding-bottom: 1px;
    }

    .skill-cat-tabs::-webkit-scrollbar {
      display: none;
    }

    .skill-cat-tab {
      flex-shrink: 0;
      height: 26px;
      padding: 0 10px;
      border: 1px solid rgba(15, 23, 42, 0.1);
      border-radius: 6px;
      background: rgba(248, 250, 252, 0.8);
      color: rgba(51, 65, 85, 0.78);
      font-size: 12px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      white-space: nowrap;
      transition: background-color 0.12s, border-color 0.12s, color 0.12s;
    }

    .skill-cat-tab:hover {
      background: #eef4ff;
      border-color: rgba(37, 99, 235, 0.2);
      color: var(--blue);
    }

    .skill-cat-tab.active {
      background: rgba(37, 99, 235, 0.09);
      border-color: rgba(37, 99, 235, 0.3);
      color: var(--blue);
      font-weight: 600;
    }

    .skill-suggestion-row {
      margin-bottom: 0;
      gap: 6px;
    }

    .skill-suggestions-more {
      flex-shrink: 0;
      height: 28px;
      padding: 0 11px;
      border: 1px dashed rgba(15, 23, 42, 0.18);
      border-radius: 999px;
      background: transparent;
      color: rgba(71, 85, 105, 0.7);
      font-size: 12px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
    }

    .skill-suggestions-more:hover {
      border-color: rgba(37, 99, 235, 0.3);
      color: var(--blue);
      background: rgba(239, 246, 255, 0.5);
    }

    .skill-suggestion-chip {
      min-height: 30px;
      padding: 0 11px;
      border: 1px solid rgba(15, 23, 42, 0.09);
      border-radius: 999px;
      color: rgba(51, 65, 85, 0.88);
      background: rgba(248, 250, 252, 0.9);
      font-size: 12.5px;
      font-weight: 500;
      cursor: pointer;
      transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
    }

    .skill-suggestion-chip:hover {
      background: #eef4ff;
      border-color: rgba(37, 99, 235, 0.2);
      color: var(--blue);
    }

    .skill-suggestion-chip.is-added {
      opacity: 0.44;
      cursor: default;
      pointer-events: none;
    }

    .skill-suggestion-chip:disabled {
      opacity: 0.44;
      cursor: default;
    }

    @media (prefers-reduced-motion: reduce) {
      .skill-chip.skill-chip-enter {
        animation: none !important;
      }
    }

    .skills-storage-list {
      display: none !important;
    }

    .export-warning-backdrop {
      position: fixed;
      inset: 0;
      display: grid;
      place-items: center;
      padding: 20px;
      background: rgba(15, 23, 42, .45);
      z-index: 2000;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition:
        opacity var(--duration-normal) var(--ease-soft),
        visibility 0s linear var(--duration-normal);
    }

    .export-warning-backdrop.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition:
        opacity var(--duration-normal) var(--ease-soft),
        visibility 0s;
    }

    .export-warning-modal {
      width: min(100%, 440px);
      background: var(--surface);
      border: 1px solid #dbe4f0;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card);
      padding: 20px;
      transform: scale(0.98);
      opacity: 0;
      transition:
        transform var(--duration-normal) var(--ease-out),
        opacity var(--duration-normal) var(--ease-out);
    }

    .export-warning-backdrop.open .export-warning-modal {
      transform: scale(1);
      opacity: 1;
    }

    @media (prefers-reduced-motion: reduce) {
      .export-warning-modal {
        transform: none;
      }

      .export-warning-backdrop.open .export-warning-modal {
        transform: none;
      }
    }

    .export-warning-modal h3 {
      margin: 0 0 8px;
      color: #0f172a;
      font-size: 22px;
    }

    .export-warning-modal p,
    .export-warning-modal li {
      color: #64748b;
      font-weight: 700;
      line-height: 1.45;
    }

    .export-warning-modal ul {
      margin: 12px 0 0;
      padding-left: 20px;
    }

    .export-warning-actions {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      flex-wrap: wrap;
      margin-top: 18px;
    }

    .access-modal {
      width: min(100%, 900px);
      padding: 0;
      overflow: hidden;
    }

    .access-modal-shell {
      display: grid;
      grid-template-columns: 1.08fr .92fr;
      gap: 0;
      background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    }

    .access-copy {
      padding: 28px;
    }

    .access-copy h3 {
      font-size: clamp(26px, 4vw, 38px);
      letter-spacing: -.04em;
      margin-bottom: 10px;
    }

    .access-copy p {
      max-width: 520px;
      margin: 0;
    }

    .access-benefits-title {
      display: block;
      margin-top: 24px;
      color: #0f172a;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .access-benefit-list {
      display: grid;
      gap: 10px;
      margin: 14px 0 0;
      padding: 0;
      list-style: none;
    }

    .access-benefit-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: #334155;
      font-size: 14px;
      font-weight: 800;
      line-height: 1.35;
    }

    .access-benefit-list li::before {
      content: "";
      flex: 0 0 auto;
      width: 18px;
      height: 18px;
      margin-top: 1px;
      border-radius: 999px;
      background: #e8f0ff;
      box-shadow: inset 0 0 0 5px #315ef4;
    }

    .access-checkout {
      padding: 24px;
      background: #fff;
      border-left: 1px solid #dbe4f0;
    }

    .access-modal--honest .access-modal-shell--single {
      grid-template-columns: 1fr;
      max-width: 560px;
      margin: 0 auto;
    }

    .access-modal--honest .access-copy {
      padding: 28px 28px 20px;
    }

    .access-placeholder-panel {
      margin-top: 20px;
      padding: 14px 16px;
      border-radius: var(--radius-md);
      border: 1px dashed #cbd5e1;
      background: #f8fafc;
    }

    .access-placeholder-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 800;
      color: #64748b;
      margin: 0 0 6px;
    }

    .access-placeholder-text {
      font-size: 13px;
      color: #475569;
      margin: 0;
      line-height: 1.5;
      font-weight: 600;
    }

    .access-actions--inline {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 22px;
      justify-content: flex-end;
    }

    .pricing-beta-card {
      transition:
        box-shadow var(--duration-normal) var(--ease-soft),
        border-color var(--duration-normal) var(--ease-soft);
    }

    .pricing-beta-card:hover {
      border-color: rgba(18, 109, 255, 0.22);
      box-shadow: var(--shadow-soft);
    }

    .access-price-card {
      border: 1px solid #dbe4f0;
      border-radius: 18px;
      padding: 18px;
      background: #f8fbff;
      box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    }

    .access-price-row {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      padding-bottom: 14px;
      border-bottom: 1px solid #dbe4f0;
    }

    .access-price-label {
      color: #64748b;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .access-price {
      color: #0f172a;
      font-size: 42px;
      font-weight: 950;
      letter-spacing: -.05em;
      line-height: 1;
    }

    .access-renewal {
      color: #64748b;
      font-size: 13px;
      font-weight: 800;
      text-align: right;
    }

    .access-payment-title {
      margin: 16px 0 10px;
      color: #0f172a;
      font-size: 15px;
      font-weight: 900;
    }

    .access-field-stack {
      display: grid;
      gap: 10px;
    }

    .access-field-stack input {
      width: 100%;
      min-height: 48px;
      padding: 0 14px;
      border: 1px solid #dbe4f0;
      border-radius: 12px;
      background: #ffffff;
      color: #94a3b8;
      font: inherit;
      font-weight: 800;
    }

    .access-field-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .access-note {
      margin: 12px 0 0;
      color: #64748b;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.45;
    }

    .access-actions {
      display: grid;
      grid-template-columns: .8fr 1.2fr;
      gap: 10px;
      margin-top: 16px;
    }

    .access-disclaimer {
      padding: 14px 28px 24px;
      background: #fff;
      color: #64748b;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.45;
      border-top: 1px solid #dbe4f0;
    }

    @media (max-width: 760px) {
      .access-modal-shell {
        grid-template-columns: 1fr;
      }

      .access-checkout {
        border-left: 0;
        border-top: 1px solid #dbe4f0;
      }

      .access-actions,
      .access-field-row {
        grid-template-columns: 1fr;
      }
    }

    .smart-progress-card,
    .wizard-card {
      background: #ffffff;
      border: 1px solid #eaeff7;
      border-radius: 10px;
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
    }

    .smart-progress-card {
      padding: 16px 18px;
      position: relative;
      top: auto;
      z-index: 5;
    }

    .smart-progress-top,
    .wizard-card-head,
    .smart-section-head,
    .repeat-actions,
    .wizard-actions,
    .rich-footer,
    .mode-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .smart-progress-card h2,
    .wizard-card h3 {
      margin: 0;
      color: var(--ink);
    }

    .smart-progress-card p {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 13px;
      font-weight: 400;
    }

    .save-indicator {
      opacity: 0;
      transform: translateY(-4px);
      color: #16a34a;
      background: #ecfdf5;
      border: 1px solid #bbf7d0;
      border-radius: 999px;
      padding: 5px 10px;
      font-size: 12px;
      font-weight: 500;
      transition: 0.2s ease;
    }

    .save-indicator.show {
      opacity: 1;
      transform: translateY(0);
    }

    .smart-progress-track {
      height: 8px;
      margin: 16px 0;
      border-radius: 999px;
      background: #eef2ff;
      overflow: hidden;
    }

    .smart-progress-track span {
      display: block;
      width: 0%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #315ef4, #7c3aed);
      transition: width 0.25s ease;
    }

    .wizard-steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }

    .smart-progress-card .wizard-steps {
      display: none;
    }

    .wizard-step,
    .mode,
    .section-tools button,
    .rich-toolbar button,
    .repeat-actions button,
    .add-line-btn,
    .inline-toggle,
    .tips-btn {
      min-height: 36px;
      border: 1px solid var(--line);
      background: #fff;
      color: #475569;
      border-radius: 8px;
      font-weight: 500;
      cursor: pointer;
      transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform var(--duration-fast, 140ms) var(--ease-out);
    }

    .wizard-step {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 8px 10px;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    .wizard-step span {
      width: 24px;
      height: 24px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: #eef2ff;
      color: var(--blue);
      font-size: 12px;
    }

    .wizard-step.active,
    .mode.active {
      border-color: var(--blue);
      color: var(--blue);
      background: #eef4ff;
    }

    .wizard-step:active:not(:disabled),
    .mode:active:not(:disabled),
    .section-tools button:active:not(:disabled),
    .repeat-actions button:active:not(:disabled),
    .add-line-btn:active:not(:disabled),
    .inline-toggle:active:not(:disabled),
    .tips-btn:active:not(:disabled) {
      transform: scale(0.97);
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07);
    }

    .wizard-panel {
      display: none;
      animation: fadeUp var(--duration-slow, 280ms) var(--ease-spring, cubic-bezier(0.16, 1, 0.3, 1)) both;
    }

    .wizard-panel.active {
      display: block;
    }

    @media (prefers-reduced-motion: reduce) {
      .wizard-panel {
        animation: none;
      }
    }

    .wizard-card {
      padding: 18px;
    }

    .wizard-card-head {
      padding-bottom: 14px;
      margin-bottom: 18px;
      border-bottom: 1px solid #eef2f7;
    }

    .eyebrow {
      margin: 0 0 5px;
      color: var(--blue);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-weight: 600;
    }

    .section-check {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: #16a34a;
      background: #ecfdf5;
      font-weight: 600;
      font-size: 13px;
    }

    .photo-upload {
      min-height: 56px;
      margin-bottom: 14px;
      border: 1px dashed #d0d9ea;
      border-radius: 10px;
      background: #f8fafc;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      cursor: pointer;
    }

    /* Compact variant used in the Personal-details step */
    .photo-upload-compact {
      min-height: 40px;
      margin-bottom: 7px;
      padding: 5px 10px;
      gap: 8px;
    }

    .photo-upload:hover {
      border-color: #93afd4;
      background: #f1f6fd;
    }

    .photo-upload input {
      display: none;
    }

    .photo-preview {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      background: #eef2ff;
      color: var(--blue);
      font-size: 20px;
      overflow: hidden;
    }

    .photo-upload-compact .photo-preview {
      width: 28px;
      height: 28px;
      font-size: 16px;
    }

    .photo-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .photo-upload-text {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .photo-upload strong {
      display: block;
      color: var(--ink);
      font-size: 13px;
      font-weight: 600;
    }

    .photo-upload-compact strong {
      font-size: 12.5px;
    }

    .photo-upload small {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: 11.5px;
      font-weight: 400;
    }

    .photo-upload-compact small {
      margin-top: 0;
      font-size: 11px;
    }

    .smart-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      /* Keep paired columns top-aligned — avoids stretching one cell when a sibling shows .field-error */
      align-items: start;
    }

    .smart-builder .field-label input,
    .smart-builder .field-label select,
    .smart-builder .mini-repeat input,
    .smart-builder .mini-repeat select,
    .smart-builder .extra-section-row select {
      box-sizing: border-box;
      min-height: 46px;
      height: 46px;
      max-height: 46px;
      line-height: 1.25;
      border-width: 1px;
      border-color: #dbe4f0;
      border-radius: 10px;
      padding: 0 14px;
      font-size: 14px;
      font-weight: 450;
      color: #0f172a;
      box-shadow: none;
    }

    .smart-builder .field-label input::placeholder,
    .smart-builder .mini-repeat input::placeholder {
      color: #9aa3b2;
      font-weight: 400;
    }

    .smart-builder .field-label select,
    .smart-builder .mini-repeat select,
    .smart-builder .extra-section-row select {
      background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 11px) calc(50% - 3px),
        0 0;
      background-size: 7px 7px, 7px 7px, 100% 100%;
    }

    .smart-builder .field-label textarea,
    .smart-builder .rich-editor.plain {
      border-width: 1px;
      border-color: #dbe4f0;
      border-radius: 10px;
      padding: 12px 14px;
    }

    .smart-grid .full,
    .field-label.full {
      grid-column: 1 / -1;
    }

    /* Builder-scoped field label: lighter than the global landing-page style */
    .smart-builder .field-label {
      font-size: 11.5px;
      font-weight: 500;
      letter-spacing: 0.3px;
      gap: 5px;
      margin-bottom: 12px;
      align-content: start;
    }

    /* Personal-details step: balanced inputs and row gaps */
    .personal-subpanel .smart-grid {
      gap: 8px;
    }

    .editor-surface[data-editor-section="personal"] .smart-builder .field-label,
    .smart-builder .editor-surface[data-editor-section="personal"] .field-label,
    .personal-subpanel .smart-builder .field-label,
    .smart-builder .personal-subpanel .field-label {
      margin-bottom: 2px;
      gap: 4px;
    }

    .smart-builder .editor-surface[data-editor-section="personal"] .field-label input,
    .smart-builder .editor-surface[data-editor-section="personal"] .field-label select,
    .smart-builder .personal-subpanel .field-label input,
    .smart-builder .personal-subpanel .field-label select {
      min-height: 40px !important;
      height: 40px;
      max-height: 40px;
      padding: 0 12px;
      font-size: 13.5px;
      line-height: 1.25;
    }

    /* Secondary fields (address, postal code, linkedin, website, language)
       are visually de-emphasised — muted label + slightly softer input */
    .smart-builder .field-soft {
      color: #94a3b8;
      font-size: 10.5px;
      font-weight: 500;
    }

    .smart-builder .field-soft input,
    .smart-builder .field-soft select {
      min-height: 36px !important;
      padding: 0 11px !important;
      font-size: 13px !important;
      background-color: #fafbfd;
      border-color: #e6ecf4 !important;
    }

    .smart-builder .field-soft input::placeholder {
      color: #b0b8c4;
    }

    .phone-field {
      grid-column: 1 / -1;
    }

    .phone-field>span,
    .date-pair {
      display: grid;
      grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
      gap: 8px;
    }

    .field-error {
      display: block;
      min-height: 0;
      margin-top: 2px;
      color: #dc2626;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0;
      text-transform: none;
    }

    .field-error:empty {
      display: none;
    }

    /* Date-range error spans the full grid row */
    .smart-grid .date-range-error {
      grid-column: 1 / -1;
      margin-top: 0;
      margin-bottom: 2px;
    }

    .date-pair.invalid select {
      border-color: #dc2626;
      background: #fff7f7;
    }

    .hidden {
      display: none !important;
    }

    .inline-toggle {
      width: 100%;
      margin: 14px 0;
      color: var(--blue);
      background: #f8fbff;
    }

    .section-stack {
      display: grid;
      gap: 8px;
    }

    .smart-section {
      border: 1px solid #eaeff7;
      border-radius: 10px;
      background: #fff;
      overflow: hidden;
    }

    .smart-section-head {
      padding: 10px 14px;
      background: #fff;
      border-bottom: 1px solid transparent;
    }

    .smart-section.open .smart-section-head {
      border-bottom-color: var(--line);
    }

    .collapse-btn {
      min-height: 38px;
      border: 0;
      background: transparent;
      color: var(--ink);
      font-size: 14px;
      font-weight: 600;
      text-align: left;
      cursor: pointer;
    }

    .section-tools {
      display: none;
      gap: 6px;
    }

    .smart-section.open .section-tools {
      display: flex;
    }

    .section-tools .section-remove-btn {
      width: auto;
      min-width: 58px;
      padding: 0 8px;
      font-size: 11px;
      font-weight: 600;
    }

    .section-tools .section-remove-btn::before {
      content: none !important;
      display: none !important;
      box-shadow: none !important;
      border: 0 !important;
    }

    .section-tools button {
      width: 36px;
      min-height: 34px;
      padding: 0;
      position: relative;
      display: inline-grid;
      place-items: center;
    }

    .section-tools button[data-move]::before {
      content: "";
      width: 9px;
      height: 9px;
      border-top: 2px solid currentColor;
      border-left: 2px solid currentColor;
    }

    .section-tools button[data-move="up"]::before {
      transform: translateY(3px) rotate(45deg);
    }

    .section-tools button[data-move="down"]::before {
      transform: translateY(-3px) rotate(225deg);
    }

    .section-tools button:not([data-move])::before {
      content: "";
      width: 15px;
      height: 15px;
      border: 2px solid currentColor;
      border-radius: 50%;
      box-shadow: 0 -6px 0 -4px currentColor, 0 6px 0 -4px currentColor, 6px 0 0 -4px currentColor, -6px 0 0 -4px currentColor;
    }

    .smart-section-body {
      display: block;
      max-height: 0;
      padding: 0 14px;
      opacity: 0;
      overflow: hidden;
      pointer-events: none;
      transform: translateY(-6px);
    }

    .smart-section.open .smart-section-body {
      max-height: 2400px;
      padding: 14px;
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .repeat-card {
      border: 1px solid #e2e8f2;
      border-radius: 12px;
      background: #fff;
      padding: 14px 14px 12px;
      margin-bottom: 10px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    }

    .repeat-card .smart-grid {
      gap: 8px;
      align-items: start;
    }

    .repeat-card .field-label {
      margin-bottom: 0;
      gap: 4px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.3px;
      color: #64748b;
      text-transform: none;
    }

    /* Compact inputs inside repeat cards — identical to personal-details */
    .repeat-card .field-label input,
    .repeat-card .field-label select {
      box-sizing: border-box;
      min-height: 40px;
      height: 40px;
      max-height: 40px;
      line-height: 1.25;
      font-size: 13.5px;
      font-weight: 450;
      padding: 0 12px;
      border-radius: 10px;
      border: 1px solid #dbe4f0;
      color: #0f172a;
      background: #fff;
    }

    .repeat-card .field-label input::placeholder {
      color: #9aa3b2;
      font-weight: 400;
    }

    .repeat-card .check-line {
      min-height: 36px;
      font-size: 13px;
      font-weight: 450;
      color: #475569;
      gap: 8px;
    }

    .section-hint {
      margin: 0 0 12px;
      color: #64748b;
      font-size: 12px;
      line-height: 1.55;
      font-weight: 400;
    }

    .sample-actions {
      display: none; /* removed — replaced by toolbar actions */
    }

    .optional-sections-card {
      border: 1px dashed #cbd5e1;
      border-radius: 12px;
      background: #f8fbff;
      padding: 16px;
    }

    .optional-sections-card h4 {
      margin: 0 0 6px;
      color: var(--ink);
      font-size: 15px;
    }

    .optional-sections-card p {
      margin: 0 0 12px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .optional-section-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .rich-block {
      margin-top: 8px;
      border: 1px solid #e2e8f2;
      border-radius: 10px;
      background: #fff;
      overflow: hidden;
    }

    /* Inside a repeat-card the rich-block is flush — no extra margin */
    .repeat-card .rich-block {
      margin-top: 8px;
      border-color: #dde4f0;
    }

    .rich-toolbar {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 2px;
      padding: 6px 8px;
      border-bottom: 1px solid #edf2f7;
      background: #f8fafc;
    }

    .rich-toolbar button {
      min-height: 28px;
      min-width: 30px;
      padding: 0 7px;
      border-radius: 5px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 600;
      color: #475569;
      background: transparent;
      border: none;
      transition:
        background 0.12s ease,
        color 0.12s ease,
        transform var(--duration-fast, 140ms) var(--ease-out);
    }

    .rich-toolbar button:hover {
      background: #eef4ff;
      color: var(--blue);
    }

    .rich-toolbar button:active {
      transform: scale(0.9);
      background: rgba(37, 99, 235, 0.16);
      color: var(--blue);
    }

    .rich-toolbar-sep {
      display: inline-block;
      width: 1px;
      height: 16px;
      background: #dde4f0;
      margin: 0 4px;
      flex-shrink: 0;
    }

    .rich-toolbar button .tool-icon {
      display: inline-block;
      font-size: 13px;
      font-weight: 800;
      line-height: 1;
    }

    .rich-toolbar button[data-command="italic"] .tool-icon {
      font-style: italic;
    }

    .rich-toolbar button[data-command="underline"] .tool-icon {
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .rich-editor {
      min-height: 110px;
      padding: 11px 13px;
      color: #111827;
      font-size: 13.5px;
      line-height: 1.65;
      outline: none;
      overflow-wrap: anywhere;
    }

    /* Repeat-card editor: slightly shorter */
    .repeat-card .rich-editor {
      min-height: 96px;
      padding: 10px 12px;
      font-size: 13.5px;
    }

    /* Personal-step rich editor is shorter and slightly tighter */
    [data-editor-section="personal"] .rich-editor {
      min-height: 92px;
      padding: 10px 12px;
      font-size: 13.5px;
      line-height: 1.55;
    }

    .rich-editor:empty::before,
    .rich-editor.is-empty:not(:focus-within)::before {
      content: attr(data-placeholder);
      color: #98a2b3;
      font-weight: 600;
      pointer-events: none;
    }

    /* Once the editor has real DOM nodes/text, never paint the CSS placeholder — avoids it
       appearing inline before user content when .is-empty was stale (preview has no ::before). */
    .rich-editor:not(:empty)::before {
      content: none !important;
    }

    .rich-editor.plain {
      border: 1px solid #dbe4f0;
      border-radius: 10px;
      background: #fff;
    }

    .cv-richtext ul,
    .cv-richtext ol {
      margin: 0.35em 0 0.35em 1.2em;
      padding: 0;
    }

    .cv-richtext p {
      margin: 0.25em 0;
    }

    /* Item body from wizard editor — plain paragraphs, no extra list indent */
    .cv-item-body {
      margin-top: 4px;
    }

    .cv-item-body p,
    .cv-item-body div {
      margin: 0.2em 0;
    }

    /* ── AI Generate bar ─────────────────────────────────────────────── */
    /* Summary editor card */
    .summary-editor-card {
      padding: 0;
      overflow: hidden;
    }

    .summary-ai-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 16px;
      background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(124, 58, 237, 0.05) 100%);
      border-bottom: 1px solid rgba(79, 70, 229, 0.12);
    }

    .summary-ai-left {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      flex: 1;
    }

    .summary-ai-text {
      display: flex;
      flex-direction: column;
      gap: 1px;
      min-width: 0;
    }

    .summary-ai-icon {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      color: #6d28d9;
    }

    .summary-ai-label {
      font-size: 13px;
      font-weight: 600;
      color: #3730a3;
      line-height: 1.3;
    }

    .summary-ai-desc {
      font-size: 11.5px;
      color: rgba(71, 85, 105, 0.55);
      line-height: 1.3;
    }

    .ai-generate-status {
      display: block;
      padding: 6px 16px 8px;
      font-size: 12px;
      font-weight: 500;
      color: #16a34a;
    }

    .ai-generate-status.is-error {
      color: #dc2626;
    }

    .summary-editor-card .rich-block {
      border: none;
      border-radius: 0;
      margin: 0;
    }

    .summary-editor-card .rich-toolbar {
      border-top: none;
      border-radius: 0;
    }

    /* AI button */
    .ai-generate-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 34px;
      padding: 0 14px;
      border: none;
      border-radius: 8px;
      background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: opacity 0.15s, transform 0.1s;
      white-space: nowrap;
    }

    .ai-generate-btn:hover { opacity: 0.88; }
    .ai-generate-btn:active { transform: scale(0.97); }
    .ai-generate-btn:disabled { opacity: 0.7; cursor: default; }
    .ai-generate-btn.is-loading {
      opacity: 0.92;
      cursor: progress;
    }

    .ai-spinner {
      display: inline-block;
      width: 12px;
      height: 12px;
      border: 1.8px solid rgba(255, 255, 255, 0.35);
      border-top-color: #fff;
      border-radius: 50%;
      animation: ai-spin 0.7s linear infinite;
    }

    @keyframes ai-spin {
      to { transform: rotate(360deg); }
    }

    @media (prefers-reduced-motion: reduce) {
      .ai-spinner { animation-duration: 1.5s; }
    }

    /* ──────────────────────────────────────────────────────────────────── */

    .rich-footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding: 5px 10px;
      border-top: 1px solid #edf2f7;
      background: #fafbfd;
      color: #94a3b8;
      font-size: 11px;
      font-weight: 400;
    }

    [data-editor-section="personal"] .rich-footer,
    [data-section="summary"] .rich-footer {
      padding: 4px 10px;
      font-size: 11px;
      border-top: none;
      background: #fafbfd;
    }

    .tips-btn {
      min-height: 32px;
      padding: 0 12px;
      color: var(--blue);
      background: #eef4ff;
      border-color: #dbe7ff;
    }

    .tips-box {
      margin-top: 10px;
      padding: 12px;
      border-radius: 10px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      color: #475569;
      font-size: 13px;
      line-height: 1.55;
    }

    .repeat-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 10px;
    }

    .repeat-actions button {
      min-height: 34px;
      padding: 0 14px;
      font-size: 12.5px;
      font-weight: 600;
      border-radius: 8px;
      border: 1px solid #e2e8f0;
      cursor: pointer;
      transition: background .12s, color .12s;
    }

    .repeat-actions [data-save-card] {
      background: var(--blue, #2563eb);
      color: #fff;
      border-color: var(--blue, #2563eb);
    }

    .repeat-actions [data-save-card]:hover {
      background: #1d4ed8;
      border-color: #1d4ed8;
    }

    .repeat-actions [data-delete-card] {
      background: #fff;
      color: #94a3b8;
      border-color: #e8edf5;
    }

    .repeat-actions [data-delete-card]:hover {
      background: #fff7f7;
      color: #dc2626;
      border-color: #fee2e2;
    }

    .add-line-btn {
      width: 100%;
      color: var(--blue);
      background: #f8fbff;
    }

    .check-line {
      display: flex;
      align-items: center;
      gap: 9px;
      min-height: 40px;
      color: var(--ink);
      font-weight: 450;
    }

    .mode-row {
      align-items: stretch;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .mode-row .mode {
      padding: 0 12px;
    }

    .mode-row select {
      min-height: 38px;
      margin-left: auto;
    }

    .mini-repeat-list {
      display: grid;
      gap: 9px;
    }

    .mini-repeat {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.7fr) 40px;
      gap: 8px;
      align-items: stretch;
    }

    .mini-repeat[data-repeat="hobby"] {
      grid-template-columns: minmax(0, 1fr) 40px;
    }

    .language-repeat-list {
      gap: 9px;
    }

    .language-input-block {
      margin-top: 10px;
    }

    .mini-repeat.language-repeat {
      grid-template-columns: minmax(0, 1fr) minmax(138px, 0.6fr) 40px;
      align-items: center;
    }

    .mini-repeat.language-repeat input,
    .mini-repeat.language-repeat select {
      height: 46px;
      min-height: 46px;
      max-height: 46px;
      border: 1px solid #dbe4f0;
      border-radius: 10px;
      padding: 0 14px;
      font-size: 14px;
      font-weight: 400;
      color: #0f172a;
      background: #fff;
      box-shadow: none;
      box-sizing: border-box;
      outline: none;
    }

    .mini-repeat.language-repeat input::placeholder {
      color: #9aa3b2;
      font-weight: 400;
    }

    .language-add-btn {
      align-self: flex-start;
    }

    .mini-repeat input,
    .mini-repeat select,
    .extra-section-row select {
      min-height: 40px;
      font-weight: 450;
    }

    /* Work experience: empty-state-first flow (chooser hides editor until "+ Add") */
    #workItems.work-awaiting-first-entry .work-section-hint,
    #workItems.work-awaiting-first-entry .work-editor-card,
    #workItems.work-awaiting-first-entry [data-add="work"],
    #workItems.work-awaiting-first-entry #workSummaryList {
      display: none !important;
    }

    #workItems:not(.work-awaiting-first-entry) .work-first-step {
      display: none;
    }

    #workItems.work-is-skipped .work-first-step {
      display: none;
    }

    .work-first-step,
    .edu-first-step {
      margin: 0 0 12px;
    }

    /* Compact empty chooser — Work + Education (same pattern) */
    .history-empty-block {
      padding: 12px 14px;
      border-radius: 10px;
      border: 1px solid rgba(15, 23, 42, 0.065);
      background: rgba(248, 250, 252, 0.92);
    }

    .history-empty-title {
      display: block;
      font-size: 13px;
      font-weight: 650;
      color: rgba(15, 23, 42, 0.86);
      letter-spacing: -0.012em;
    }

    .history-empty-text {
      margin: 6px 0 0;
      max-width: 40rem;
      font-size: 12.5px;
      line-height: 1.45;
      color: rgba(15, 23, 42, 0.54);
    }

    .history-empty-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      margin-top: 12px;
    }

    .history-empty-actions .add-line-btn,
    .history-empty-btn-primary {
      width: auto;
      min-height: 40px;
      padding: 0 16px;
      margin: 0;
    }

    /* Subtle primary "+ Add …" — Work + Education only */
    #workItems .history-empty-actions .history-empty-btn-primary.add-line-btn,
    #workItems [data-add="work"].add-line-btn,
    #educationItems .history-empty-actions .history-empty-btn-primary.add-line-btn,
    #educationItems [data-add="education"].add-line-btn {
      background: rgba(248, 250, 252, 0.98);
      border: 1px solid rgba(15, 23, 42, 0.09);
      color: rgba(51, 65, 85, 0.88);
      font-weight: 500;
      box-shadow: none;
    }

    #workItems .history-empty-actions .history-empty-btn-primary.add-line-btn:hover,
    #workItems [data-add="work"].add-line-btn:hover,
    #educationItems .history-empty-actions .history-empty-btn-primary.add-line-btn:hover,
    #educationItems [data-add="education"].add-line-btn:hover {
      background: #fff;
      border-color: rgba(37, 99, 235, 0.22);
      color: rgba(30, 58, 138, 0.86);
    }

    #workItems .history-sample-row {
      margin-top: 8px;
    }

    #workItems .history-sample-bullets-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 0 12px;
      margin: 0;
      border-radius: 8px;
      border: 1px solid rgba(15, 23, 42, 0.1);
      background: rgba(255, 255, 255, 0.85);
      color: rgba(71, 85, 105, 0.92);
      font-size: 12.5px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
    }

    #workItems .history-sample-bullets-btn:hover {
      background: rgba(248, 250, 252, 0.95);
      border-color: rgba(15, 23, 42, 0.14);
      color: rgba(15, 23, 42, 0.82);
    }

    #workItems .history-sample-bullets-btn:focus-visible {
      outline: 2px solid rgba(37, 99, 235, 0.35);
      outline-offset: 2px;
    }

    .history-empty-btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 32px;
      padding: 0 10px;
      margin: 0;
      border-radius: 8px;
      border: 1px solid transparent;
      background: transparent;
      color: rgba(100, 116, 139, 0.72);
      font-size: 11.5px;
      font-weight: 400;
      font-family: inherit;
      cursor: pointer;
      transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
    }

    .history-empty-btn-secondary:hover {
      background: rgba(248, 250, 252, 0.65);
      border-color: rgba(15, 23, 42, 0.06);
      color: rgba(71, 85, 105, 0.82);
    }

    .history-empty-btn-secondary:focus-visible {
      outline: 2px solid rgba(37, 99, 235, 0.45);
      outline-offset: 2px;
    }

    /* Quiet skip link — below editor until first meaningful saved entry */
    .work-skip-quiet {
      padding: 0;
      border: 0;
      background: none;
      font: inherit;
      font-size: 13px;
      font-weight: 500;
      color: rgba(37, 99, 235, 0.88);
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 3px;
      text-align: left;
    }

    .work-skip-quiet:hover {
      color: #1d4ed8;
    }

    .work-skip-quiet:focus-visible {
      outline: 2px solid rgba(37, 99, 235, 0.45);
      outline-offset: 2px;
      border-radius: 4px;
    }

    #workItems .work-skip-below-editor {
      display: none;
    }

    #workItems.work-show-skip-under-editor .work-skip-below-editor.work-skip-quiet {
      display: block;
      margin-top: 6px;
      margin-bottom: 0;
      padding: 0;
      font-size: 10.5px;
      font-weight: 400;
      letter-spacing: 0.02em;
      color: rgba(100, 116, 139, 0.62);
      text-decoration: underline;
      text-underline-offset: 2px;
      text-decoration-color: rgba(148, 163, 184, 0.35);
      opacity: 1;
    }

    #workItems.work-show-skip-under-editor .work-skip-below-editor.work-skip-quiet:hover {
      color: rgba(71, 85, 105, 0.78);
      text-decoration-color: rgba(148, 163, 184, 0.48);
    }

    /* Education — empty-state-first + skip flow (mirrors Work experience) */
    #educationItems.edu-awaiting-first-entry .edu-section-hint,
    #educationItems.edu-awaiting-first-entry .education-editor-card,
    #educationItems.edu-awaiting-first-entry [data-add="education"],
    #educationItems.edu-awaiting-first-entry #educationSummaryList {
      display: none !important;
    }

    #educationItems:not(.edu-awaiting-first-entry) .edu-first-step {
      display: none;
    }

    #educationItems.edu-is-skipped .edu-first-step {
      display: none;
    }

    #educationItems .edu-skip-below-editor {
      display: none;
    }

    #educationItems.edu-show-skip-under-editor .edu-skip-below-editor.work-skip-quiet {
      display: block;
      margin-top: 6px;
      margin-bottom: 0;
      padding: 0;
      font-size: 10.5px;
      font-weight: 400;
      letter-spacing: 0.02em;
      color: rgba(100, 116, 139, 0.62);
      text-decoration: underline;
      text-underline-offset: 2px;
      text-decoration-color: rgba(148, 163, 184, 0.35);
      opacity: 1;
    }

    #educationItems.edu-show-skip-under-editor .edu-skip-below-editor.work-skip-quiet:hover {
      color: rgba(71, 85, 105, 0.78);
      text-decoration-color: rgba(148, 163, 184, 0.48);
    }

    #educationItems .work-skipped-panel {
      display: none;
      margin: 0 0 12px;
    }

    #educationItems.edu-is-skipped .edu-section-hint,
    #educationItems.edu-is-skipped .work-summary-list,
    #educationItems.edu-is-skipped .education-editor-card,
    #educationItems.edu-is-skipped [data-add="education"],
    #educationItems.edu-is-skipped .edu-first-step,
    #educationItems.edu-is-skipped .edu-skip-below-editor {
      display: none !important;
    }

    #educationItems.edu-is-skipped .work-skipped-panel {
      display: block;
    }

    .work-skip-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin: 0 0 10px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid rgba(37, 99, 235, 0.22);
      background: #fff;
      color: rgba(37, 56, 135, 0.82);
      font-size: 12.5px;
      font-weight: 550;
      cursor: pointer;
      transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
    }

    .work-skip-btn:hover {
      background: #f8fafc;
      border-color: rgba(37, 99, 235, 0.35);
      color: #1e3a8a;
    }

    .work-skip-btn:focus-visible {
      outline: 2px solid rgba(37, 99, 235, 0.45);
      outline-offset: 2px;
    }

    .work-skip-btn.is-active {
      background: rgba(37, 99, 235, 0.08);
      border-color: rgba(37, 99, 235, 0.35);
      color: #1d4ed8;
      box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.06);
    }

    #workItems .work-skipped-panel {
      display: none;
      margin: 0 0 12px;
    }

    #workItems.work-is-skipped .work-section-hint,
    #workItems.work-is-skipped .work-summary-list,
    #workItems.work-is-skipped .work-editor-card,
    #workItems.work-is-skipped [data-add="work"],
    #workItems.work-is-skipped .work-first-step,
    #workItems.work-is-skipped .work-skip-below-editor {
      display: none !important;
    }

    #workItems.work-is-skipped .work-skipped-panel {
      display: block;
    }

    .work-skipped-card {
      padding: 14px 16px;
      border-radius: 12px;
      border: 1px solid rgba(22, 163, 74, 0.25);
      background: linear-gradient(165deg, #f0fdf4 0%, #ecfdf5 55%, #f8fafc 100%);
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    #workItems .work-skipped-card,
    #educationItems .work-skipped-card {
      padding: 10px 12px;
      border-radius: 10px;
    }

    .work-skipped-title {
      display: block;
      font-size: 14px;
      font-weight: 650;
      color: rgba(21, 128, 61, 0.95);
      letter-spacing: -0.015em;
    }

    #workItems .work-skipped-title,
    #educationItems .work-skipped-title {
      font-size: 13px;
      letter-spacing: -0.01em;
    }

    .work-skipped-message {
      margin: 8px 0 0;
      font-size: 13px;
      line-height: 1.5;
      color: rgba(15, 23, 42, 0.62);
    }

    #workItems .work-skipped-message,
    #educationItems .work-skipped-message {
      margin-top: 4px;
      font-size: 12.5px;
      line-height: 1.4;
      color: rgba(15, 23, 42, 0.55);
    }

    .work-skipped-resume-btn {
      margin: 0;
      text-decoration: none;
      font-family: inherit;
    }

    #workItems .work-skipped-resume-btn.history-skipped-resume-btn,
    #educationItems .work-skipped-resume-btn.history-skipped-resume-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: auto;
      margin-top: 10px;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 8px;
      border: 1px solid rgba(15, 23, 42, 0.11);
      background: rgba(255, 255, 255, 0.72);
      color: rgba(15, 23, 42, 0.72);
      font-size: 12.5px;
      font-weight: 500;
      cursor: pointer;
      box-shadow: none;
      transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
    }

    #workItems .work-skipped-resume-btn.history-skipped-resume-btn:hover,
    #educationItems .work-skipped-resume-btn.history-skipped-resume-btn:hover {
      background: #fff;
      border-color: rgba(15, 23, 42, 0.16);
      color: rgba(15, 23, 42, 0.84);
    }

    .work-skipped-resume-btn:focus-visible {
      outline: 2px solid rgba(37, 99, 235, 0.45);
      outline-offset: 2px;
    }

    .work-autosave-status {
      min-height: 16px;
      margin: 8px 2px 0;
      color: rgba(15, 23, 42, 0.45);
      font-size: 11.5px;
      line-height: 1.3;
      opacity: 0.78;
      text-align: right;
    }

    .work-autosave-status.is-visible {
      color: #16a34a;
    }

    /* Work experience description — lighter editor chrome */
    #workItems .work-editor-card .rich-block {
      margin-top: 10px;
      border-radius: 12px;
      border: 1px solid rgba(15, 23, 42, 0.06);
      overflow: hidden;
      background: #fff;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
    }

    #workItems .work-editor-card .rich-toolbar {
      padding: 5px 8px;
      gap: 1px;
      background: #f9fafb;
      border-bottom: 1px solid rgba(15, 23, 42, 0.055);
    }

    #workItems .work-editor-card .rich-toolbar button {
      min-height: 26px;
      min-width: 28px;
      padding: 0 6px;
      font-size: 12.5px;
      font-weight: 500;
      color: #64748b;
      border-radius: 6px;
    }

    #workItems .work-editor-card .rich-toolbar button:hover {
      background: rgba(37, 99, 235, 0.06);
      color: #2563eb;
    }

    #workItems .work-editor-card .rich-toolbar-sep {
      height: 14px;
      margin: 0 3px;
      opacity: 0.65;
    }

    #workItems .work-editor-card .rich-editor {
      min-height: 104px;
      padding: 14px 16px;
      font-size: 13px;
      line-height: 1.62;
      background: #fcfcfd;
      color: rgba(15, 23, 42, 0.86);
    }

    #workItems .work-editor-card .rich-editor:empty::before,
    #workItems .work-editor-card .rich-editor.is-empty:not(:focus-within)::before {
      color: rgba(100, 116, 139, 0.48);
      font-weight: 400;
    }

    #educationItems .education-editor-card .rich-block {
      margin-top: 10px;
      border-radius: 12px;
      border: 1px solid rgba(15, 23, 42, 0.06);
      overflow: hidden;
      background: #fff;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
    }

    #educationItems .education-editor-card .rich-toolbar {
      padding: 5px 8px;
      gap: 1px;
      background: #f9fafb;
      border-bottom: 1px solid rgba(15, 23, 42, 0.055);
    }

    #educationItems .education-editor-card .rich-toolbar button {
      min-height: 26px;
      min-width: 28px;
      padding: 0 6px;
      font-size: 12.5px;
      font-weight: 500;
      color: #64748b;
      border-radius: 6px;
    }

    #educationItems .education-editor-card .rich-toolbar button:hover {
      background: rgba(37, 99, 235, 0.06);
      color: #2563eb;
    }

    #educationItems .education-editor-card .rich-toolbar-sep {
      height: 14px;
      margin: 0 3px;
      opacity: 0.65;
    }

    #educationItems .education-editor-card .rich-editor {
      min-height: 104px;
      padding: 14px 16px;
      font-size: 13px;
      line-height: 1.62;
      background: #fcfcfd;
      color: rgba(15, 23, 42, 0.86);
    }

    #educationItems .education-editor-card .rich-editor:empty::before,
    #educationItems .education-editor-card .rich-editor.is-empty:not(:focus-within)::before {
      color: rgba(100, 116, 139, 0.48);
      font-weight: 400;
    }

    .work-summary-list {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin: 0 0 12px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 12px;
      overflow: hidden;
      background: #fff;
    }

    .work-summary-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px;
      padding-left: 9px;
      border-bottom: 1px solid rgba(15, 23, 42, 0.06);
      border-left: 3px solid transparent;
      font-size: 13px;
      box-shadow: inset 0 0 0 1px transparent;
      cursor: pointer;
      transition:
        background-color 220ms ease,
        border-left-color 220ms ease,
        box-shadow 220ms ease;
    }

    .work-summary-row .work-summary-btn-delete {
      cursor: pointer;
    }

    .work-summary-row:last-child {
      border-bottom: none;
    }

    .work-summary-row:not(.is-active):hover {
      background-color: rgba(15, 23, 42, 0.04);
      border-left-color: rgba(59, 130, 246, 0.35);
      box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
    }

    .work-summary-row.is-active {
      background-color: rgba(37, 99, 235, 0.10);
      border-left-color: #2563eb;
      box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.28), 0 6px 16px rgba(37, 99, 235, 0.08);
    }

    .work-summary-main {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
      flex: 1;
      border-radius: 6px;
    }

    #workSummaryList .work-summary-main:focus-visible,
    #educationSummaryList .work-summary-main:focus-visible {
      outline: 2px solid rgba(37, 99, 235, 0.45);
      outline-offset: 2px;
    }

    .work-summary-title {
      font-weight: 600;
      color: rgba(15, 23, 42, 0.92);
      word-break: break-word;
    }

    .work-summary-dates {
      font-size: 12px;
      color: rgba(15, 23, 42, 0.5);
    }

    .work-summary-meta {
      font-size: 12px;
      color: rgba(15, 23, 42, 0.62);
    }

    .work-summary-actions {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }

    .work-summary-btn {
      width: 32px;
      height: 32px;
      padding: 0;
      border-radius: 8px;
      border: 1px solid rgba(15, 23, 42, 0.1);
      background: rgba(255, 255, 255, 0.95);
      color: rgba(15, 23, 42, 0.65);
      font-size: 15px;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .work-summary-btn:hover {
      border-color: rgba(59, 130, 246, 0.35);
      color: #2563eb;
      background: #fff;
    }

    @media (prefers-reduced-motion: no-preference) {
      .smart-section {
        transition:
          border-color 180ms ease,
          box-shadow 180ms ease,
          background-color 180ms ease;
      }

      .smart-section-body {
        transition:
          max-height 280ms cubic-bezier(.22, .61, .36, 1),
          padding 280ms cubic-bezier(.22, .61, .36, 1),
          opacity 180ms ease,
          transform 280ms cubic-bezier(.22, .61, .36, 1);
      }

      .smart-section.open {
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
      }

      .work-summary-list {
        transition:
          border-color 180ms ease,
          box-shadow 180ms ease,
          opacity 180ms ease,
          transform 220ms cubic-bezier(.22, .61, .36, 1);
      }

      .work-summary-row {
        transition:
          background-color 220ms ease,
          border-left-color 220ms ease,
          box-shadow 220ms ease,
          opacity 180ms ease,
          transform 220ms cubic-bezier(.22, .61, .36, 1);
      }

      .work-summary-row.is-active {
        transform: translateX(2px);
      }

      .repeat-card {
        transition:
          border-color 180ms ease,
          box-shadow 180ms ease,
          opacity 180ms ease,
          transform 220ms cubic-bezier(.22, .61, .36, 1);
      }
    }

    /* Work / Education editor: subtle enter when switching rows or adding (triggered via `.editor-enter-playing`) */
    @keyframes appliora-editor-reveal {
      from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes history-summary-row-enter {
      0% {
        opacity: 0;
        transform: translateY(14px);
        background-color: rgba(59, 130, 246, 0.13);
        box-shadow:
          inset 0 0 0 1px rgba(59, 130, 246, 0.26),
          0 10px 24px rgba(59, 130, 246, 0.13);
      }

      24% {
        opacity: 1;
        transform: translateY(0);
        background-color: rgba(59, 130, 246, 0.12);
        box-shadow:
          inset 0 0 0 1px rgba(59, 130, 246, 0.22),
          0 8px 20px rgba(59, 130, 246, 0.11);
      }

      100% {
        opacity: 1;
        transform: translateY(0);
        background-color: transparent;
        box-shadow: inset 0 0 0 1px transparent;
      }
    }

    @keyframes history-skipped-card-in {
      0% {
        opacity: 0;
        transform: translateY(12px);
        box-shadow: 0 0 0 rgba(22, 163, 74, 0);
      }

      45% {
        opacity: 1;
        transform: translateY(0);
        box-shadow:
          0 0 0 3px rgba(22, 163, 74, 0.08),
          0 10px 26px rgba(22, 163, 74, 0.12);
      }

      100% {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
      }
    }

    @media (prefers-reduced-motion: no-preference) {
      #workItems .work-editor-card.editor-enter-playing,
      #educationItems .education-editor-card.editor-enter-playing {
        transform-origin: top center;
        animation: appliora-editor-reveal 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
      }

      #workSummaryList .work-summary-row.history-summary-row-enter,
      #educationSummaryList .work-summary-row.history-summary-row-enter {
        animation: history-summary-row-enter 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
      }

      #workItems.work-is-skipped .work-skipped-panel .work-skipped-card,
      #educationItems.edu-is-skipped .work-skipped-panel .work-skipped-card {
        animation: history-skipped-card-in 760ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
      }

      /* Hover motion — Work + Education scoped controls */
      #workSummaryList .work-summary-row,
      #educationSummaryList .work-summary-row {
        transition:
          background-color 200ms ease,
          border-left-color 200ms ease,
          box-shadow 200ms ease,
          transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
      }

      #workSummaryList .work-summary-row:not(.is-active):hover,
      #educationSummaryList .work-summary-row:not(.is-active):hover {
        transform: translateY(-1px);
      }

      #workSummaryList .work-summary-btn,
      #educationSummaryList .work-summary-btn {
        transition:
          background-color 160ms ease,
          border-color 160ms ease,
          color 160ms ease,
          transform 160ms ease,
          box-shadow 160ms ease;
      }

      #workSummaryList .work-summary-btn:hover,
      #educationSummaryList .work-summary-btn:hover {
        transform: translateY(-1px);
      }

      #workItems .history-empty-btn-primary,
      #workItems .history-empty-btn-secondary,
      #workItems [data-add="work"],
      #workItems .history-sample-bullets-btn,
      #workItems .work-skipped-resume-btn.history-skipped-resume-btn,
      #educationItems .history-empty-btn-primary,
      #educationItems .history-empty-btn-secondary,
      #educationItems [data-add="education"],
      #educationItems .work-skipped-resume-btn.history-skipped-resume-btn {
        transition:
          background-color 160ms ease,
          border-color 160ms ease,
          color 160ms ease,
          transform 160ms ease,
          box-shadow 160ms ease,
          opacity 160ms ease;
      }

      #workItems .history-empty-btn-primary:hover,
      #workItems .history-empty-btn-secondary:hover,
      #workItems [data-add="work"]:hover,
      #workItems .history-sample-bullets-btn:hover,
      #educationItems .history-empty-btn-primary:hover,
      #educationItems .history-empty-btn-secondary:hover,
      #educationItems [data-add="education"]:hover {
        transform: translateY(-1px);
      }

      #workItems .work-skip-below-editor.work-skip-quiet,
      #educationItems .edu-skip-below-editor.work-skip-quiet {
        transition:
          color 160ms ease,
          opacity 160ms ease,
          text-decoration-color 160ms ease;
      }

      #workItems .history-empty-btn-primary:active,
      #workItems [data-add="work"]:active,
      #educationItems .history-empty-btn-primary:active,
      #educationItems [data-add="education"]:active {
        transform: scale(0.98);
      }
    }

    /* Save chip feedback (Work + Education only) */
    @media (prefers-reduced-motion: no-preference) {
      #workItems .repeat-actions [data-save-card],
      #educationItems .repeat-actions [data-save-card] {
        transition:
          background-color 200ms ease,
          border-color 200ms ease,
          color 200ms ease,
          transform 200ms ease,
          box-shadow 200ms ease;
      }

      #workItems .repeat-actions [data-save-card]:active,
      #educationItems .repeat-actions [data-save-card]:active {
        transform: scale(0.98);
      }
    }

    #workItems .repeat-actions [data-save-card].repeat-save-feedback,
    #educationItems .repeat-actions [data-save-card].repeat-save-feedback {
      background: #059669;
      border-color: #047857;
      color: #fff;
      box-shadow: 0 1px 8px rgba(5, 150, 105, 0.35);
    }

    #workItems .repeat-actions [data-save-card].repeat-save-feedback:hover,
    #educationItems .repeat-actions [data-save-card].repeat-save-feedback:hover {
      background: #047857;
      border-color: #065f46;
      color: #fff;
    }

    @media (prefers-reduced-motion: reduce) {
      #workItems .work-editor-card.editor-enter-playing,
      #educationItems .education-editor-card.editor-enter-playing {
        animation: none !important;
      }

      #workSummaryList .work-summary-row.history-summary-row-enter,
      #educationSummaryList .work-summary-row.history-summary-row-enter {
        animation: none !important;
      }

      #workItems.work-is-skipped .work-skipped-panel .work-skipped-card,
      #educationItems.edu-is-skipped .work-skipped-panel .work-skipped-card {
        animation: none !important;
      }

      #sectionStack article.smart-section.editor-surface[data-section="work"].active,
      #sectionStack article.smart-section.editor-surface[data-section="education"].active {
        animation: none !important;
      }

      .smart-section,
      .smart-section-body,
      .work-summary-list,
      .work-summary-row,
      .repeat-card {
        transition: none !important;
      }

      #workItems .repeat-actions [data-save-card],
      #educationItems .repeat-actions [data-save-card] {
        transition: none !important;
      }

      #workSummaryList .work-summary-row,
      #educationSummaryList .work-summary-row,
      #workSummaryList .work-summary-btn,
      #educationSummaryList .work-summary-btn,
      #workItems .history-empty-btn-primary,
      #workItems .history-empty-btn-secondary,
      #workItems [data-add="work"],
      #workItems .history-sample-bullets-btn,
      #workItems .work-skipped-resume-btn.history-skipped-resume-btn,
      #educationItems .history-empty-btn-primary,
      #educationItems .history-empty-btn-secondary,
      #educationItems [data-add="education"],
      #educationItems .work-skipped-resume-btn.history-skipped-resume-btn,
      #workItems .work-skip-below-editor.work-skip-quiet,
      #educationItems .edu-skip-below-editor.work-skip-quiet {
        transition: none !important;
      }
    }

    #workItems .date-pair,
    #educationItems .date-pair,
    #courseItems .date-pair {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
    }

    #workItems .date-pair select,
    #educationItems .date-pair select,
    #courseItems .date-pair select {
      min-height: 40px;
      font-size: 13px;
      padding: 0 8px 0 10px;
    }

    .mini-repeat button {
      min-height: 40px;
      border: 1px solid #fee2e2;
      border-radius: 8px;
      color: #dc2626;
      background: #fff7f7;
      font-size: 16px;
      cursor: pointer;
    }

    .extra-section-row {
      margin-top: 16px;
    }

    .header-action-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    /* Builder header buttons: slightly smaller and lighter than landing CTAs */
    .header-action-row .btn {
      padding: 9px 18px;
      font-size: 13.5px;
      font-weight: 600;
      border-radius: 8px;
      white-space: nowrap;
    }

    .header-action-row .btn-primary {
      box-shadow: 0 4px 14px rgba(18, 109, 255, 0.22);
    }

    .header-action-row .btn-ghost {
      color: #475569;
      font-weight: 500;
    }

    /* Cover letter CTA — builder header: secondary, AI-accent, rare shimmer (no competing pulse) */
    .cover-header-cta-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      vertical-align: middle;
    }

    /* Rare light sweep — brief pass early each 12s cycle, idle between (not constant) */
    .header-action-row .btn-cover-secondary::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 42%,
        rgba(255, 255, 255, 0.38) 50%,
        transparent 58%,
        transparent 100%
      );
      background-size: 200% 100%;
      opacity: 0;
      animation: cover-btn-shimmer-pass 12s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    }

    @keyframes cover-btn-shimmer-pass {
      0%,
      7.5% {
        transform: translateX(-70%);
        opacity: 0;
      }
      8.5% {
        opacity: 0.55;
      }
      10.5% {
        transform: translateX(70%);
        opacity: 0;
      }
      11%,
      100% {
        transform: translateX(70%);
        opacity: 0;
      }
    }

    /* Cover letter — secondary accent (weaker than Export PDF primary) */
    .header-action-row .btn-cover-secondary {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #2563eb;
      font-weight: 600;
      background:
        linear-gradient(145deg, rgba(18, 109, 255, 0.11) 0%, rgba(99, 102, 241, 0.07) 100%);
      border: 1px solid rgba(79, 109, 245, 0.32);
      box-shadow: none;
      outline: none;
      transition:
        background 180ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
        color 180ms ease,
        box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    .header-action-row .btn-cover-secondary .cover-btn-icon,
    .header-action-row .btn-cover-secondary .cover-btn-label {
      position: relative;
      z-index: 1;
    }

    .header-action-row .btn-cover-secondary .cover-btn-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .header-action-row .btn-cover-secondary .cover-btn-mark {
      display: block;
      transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    .header-action-row .btn-cover-secondary .cover-btn-spark-line,
    .header-action-row .btn-cover-secondary .cover-btn-spark-dot {
      transition: opacity 200ms ease;
    }

    .header-action-row .btn-cover-secondary:hover {
      color: var(--blue-hover, #1d4ed8);
      background:
        linear-gradient(145deg, rgba(18, 109, 255, 0.16) 0%, rgba(99, 102, 241, 0.1) 100%);
      border-color: rgba(59, 130, 246, 0.48);
      box-shadow:
        0 6px 18px rgba(37, 99, 235, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.45) inset;
      transform: translateY(-2px);
    }

    .header-action-row .btn-cover-secondary:hover .cover-btn-mark {
      transform: translateY(-1px);
    }

    .header-action-row .btn-cover-secondary:hover .cover-btn-spark-dot {
      opacity: 0.38;
    }

    .header-action-row .btn-cover-secondary:hover .cover-btn-spark-line {
      opacity: 0.85;
    }

    .header-action-row .btn-cover-secondary:active {
      transform: translateY(0) scale(0.98);
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
    }

    .header-action-row .btn-cover-secondary:focus-visible:active {
      transform: translateY(0) scale(0.98);
      box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 0 0 4px rgba(37, 99, 235, 0.38),
        0 2px 10px rgba(37, 99, 235, 0.14);
    }

    .header-action-row .btn-cover-secondary:active .cover-btn-mark {
      transform: translateY(0);
    }

    .header-action-row .btn-cover-secondary:focus {
      outline: none;
    }

    .header-action-row .btn-cover-secondary:focus-visible {
      outline: none;
      box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 0 0 4px rgba(37, 99, 235, 0.38);
    }

    .header-action-row .btn-cover-secondary:focus-visible:hover {
      box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 0 0 4px rgba(37, 99, 235, 0.38),
        0 6px 18px rgba(37, 99, 235, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.45) inset;
    }

    @media (prefers-reduced-motion: reduce) {
      .header-action-row .btn-cover-secondary::before {
        animation: none;
        opacity: 0;
      }

      .header-action-row .btn-cover-secondary {
        transition:
          background 180ms ease,
          border-color 180ms ease,
          color 180ms ease,
          box-shadow 200ms ease;
      }

      .header-action-row .btn-cover-secondary,
      .header-action-row .btn-cover-secondary:hover,
      .header-action-row .btn-cover-secondary:active,
      .header-action-row .btn-cover-secondary:focus-visible:active {
        transform: none;
      }

      .header-action-row .btn-cover-secondary:hover .cover-btn-mark,
      .header-action-row .btn-cover-secondary:active .cover-btn-mark {
        transform: none;
      }

      .header-action-row .btn-cover-secondary .cover-btn-mark,
      .header-action-row .btn-cover-secondary .cover-btn-spark-line,
      .header-action-row .btn-cover-secondary .cover-btn-spark-dot {
        transition: none;
      }
    }

    .extra-section-row select {
      width: 100%;
    }

    .wizard-template-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 16px;
    }

    .wizard-template-card {
      position: relative;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: #fff;
      cursor: pointer;
      text-align: left;
      transition: 0.18s ease;
      scroll-margin-top: 150px;
    }

    .wizard-template-card:hover {
      border-color: var(--blue);
      box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.08),
        0 3px 14px rgba(59, 130, 246, 0.1),
        0 22px 48px rgba(59, 130, 246, 0.07);
    }

    .wizard-template-card.selected {
      border: 2px solid var(--blue);
    }

    .wizard-template-card .cv-thumb-wrap {
      border-radius: 7px 7px 0 0;
      background: #f8fafc;
    }

    .wizard-template-card img {
      width: 100%;
      height: 210px;
      object-fit: contain;
      object-position: center;
      background: #f8fafc;
      display: block;
    }

    .wizard-template-card strong {
      display: block;
      padding: 10px 12px 2px;
      color: var(--ink);
      font-size: 13px;
    }

    .wizard-template-card small {
      display: block;
      padding: 0 12px 12px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
    }

    .template-note {
      display: block;
      padding: 0 12px 12px;
      color: #475569;
      font-size: 11px;
      line-height: 1.45;
      font-weight: 700;
    }

    .template-badge {
      position: absolute;
      left: 10px;
      top: 10px;
      z-index: 2;
      padding: 5px 8px;
      border-radius: 999px;
      background: #111827;
      color: #fff;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .wizard-template-card .checkmark {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 28px;
      height: 28px;
      border-radius: 999px;
      display: none;
      place-items: center;
      background: var(--blue);
      color: #fff;
      font-weight: 900;
    }

    .wizard-template-card.selected .checkmark {
      display: grid;
    }

    .full-action {
      width: 100%;
      margin-top: 16px;
      min-height: 48px;
    }

    .wizard-actions {
      position: sticky;
      bottom: 0;
      padding: 14px;
      background: rgba(249, 250, 251, 0.92);
      backdrop-filter: blur(12px);
      border: 1px solid var(--line);
      border-radius: 12px;
      z-index: 8;
    }

    .wizard-actions .btn {
      min-height: 48px;
      flex: 1;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 980px) {
      .nav {
        display: none;
      }

      .topbar-inner {
        padding: 10px 16px;
      }

      .topbar-inner .btn-primary {
        padding: 8px 14px;
        font-size: 13px;
      }

      .hero-inner,
      .feature-grid,
      .review-grid {
        grid-template-columns: 1fr;
      }

      .section-standout {
        padding: 48px 18px;
        margin: 0 14px;
        border-radius: 18px;
      }

      .hero-badges {
        gap: 7px 8px;
        margin-top: 22px;
        grid-template-columns: repeat(4, 1fr);
      }

      .hero-badge-chip {
        font-size: 11.5px;
        padding: 5px 10px;
      }

      .mockup-stack {
        min-height: 480px;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
      }

      /* Simplify decorative elements on tablet */
      .info-card { width: 148px; padding: 8px 11px; gap: 8px; }
      .info-card-icon { width: 30px; height: 30px; flex: 0 0 30px; }
      .info-card-ats  { left: -5px; bottom: 45px; }
      .info-card-pdf  { right: -5px; bottom: 45px; }

      .hero-glow-left  { width: 340px; height: 300px; }
      .hero-glow-right { width: 380px; height: 360px; }

      .sc-card   { width: 220px; }
      .sc-card-c { width: 240px; left: 70px; }

      .template-grid,
      .faq-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .logos {
        grid-template-columns: repeat(4, 1fr);
      }

      .builder-wrap {
        grid-template-columns: 1fr;
      }

      .builder-title-block {
        display: block;
      }

      .builder-header-inner,
      .builder-title-inline {
        align-items: flex-start;
      }

      .builder-header-inner {
        flex-direction: column;
        padding: 12px 16px;
      }

      .header-action-row,
      .editor-utility-actions {
        width: 100%;
        justify-content: flex-start;
      }

      .builder-sidebar {
        position: static;
        top: auto;
      }

      .sidebar-card {
        overflow: auto;
      }

      .sidebar-nav {
        grid-auto-flow: column;
        grid-auto-columns: minmax(180px, 1fr);
        overflow-x: auto;
        padding-bottom: 4px;
      }

      .sidebar-optional-divider {
        margin-top: 12px;
      }

      .editor-utility-bar {
        flex-direction: column;
        align-items: flex-start;
      }

      .editor-continue-row {
        justify-content: stretch;
      }

      .btn-continue {
        width: 100%;
        justify-content: center;
      }

      .preview-panel {
        display: none;
        position: static;
        max-height: none;
      }

      #page-builder.preview-open .preview-panel {
        display: grid;
      }

      .builder-mobile-preview-toggle {
        display: inline-flex;
      }

      .field-grid {
        grid-template-columns: 1fr;
      }

      .smart-grid,
      .mini-repeat,
      .phone-field>span,
      .date-pair,
      .optional-section-actions {
        grid-template-columns: 1fr;
      }

      .preview-paper-wrap {
        max-height: none;
      }

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

      .cv-doc.layout-split .cv-shell,
      .cv-doc.creative-portfolio .cv-shell,
      .cv-doc.modern-blue .cv-shell,
      .cv-doc.creative-sidebar .cv-shell,
      .cv-doc.compact-pro .cv-head,
      .cv-doc.layout-structured .cv-shell,
      .cv-doc.layout-profile-rail .cv-shell,
      .cv-doc.layout-band .cv-grid,
      .cv-doc.executive-prime .cv-grid,
      .cv-doc.tech-resume .cv-grid,
      .cv-doc.bold-contemporary .cv-grid,
      .cv-doc.editorial-elegant .cv-main,
      .cv-doc.layout-frame .cv-grid,
      .cv-doc.layout-minimal, .cv-doc.layout-compact .cv-grid {
        grid-template-columns: 1fr;
      }

      .cv-doc.layout-split .cv-main,
      .cv-doc.creative-portfolio .cv-main,
      .cv-doc.creative-portfolio .cv-sidebar,
      .cv-doc.modern-blue .cv-head,
      .cv-doc.modern-blue .cv-main,
      .cv-doc.executive-serif .cv-shell,
      .cv-doc.creative-sidebar .cv-main,
      .cv-doc.creative-sidebar .cv-sidebar,
      .cv-doc.simple-ats .cv-shell,
      .cv-doc.elegant-serif .cv-shell,
      .cv-doc.compact-pro .cv-shell,
      .cv-doc.classic-pro .cv-shell,
      .cv-doc.ats-optimized .cv-shell,
      .cv-doc.layout-structured .cv-main,
      .cv-doc.layout-profile-rail .cv-main,
      .cv-doc.layout-band .cv-shell,
      .cv-doc.executive-prime .cv-shell,
      .cv-doc.tech-resume .cv-shell,
      .cv-doc.editorial-elegant .cv-shell,
      .cv-doc.layout-editorial .cv-shell,
      .cv-doc.layout-frame .cv-shell,
      .cv-doc.layout-minimal, .cv-doc.layout-compact .cv-shell {
        padding: 32px;
      }

      .cv-doc.layout-split .cv-sidebar,
      .cv-doc.creative-portfolio .cv-sidebar,
      .cv-doc.layout-structured .cv-sidebar,
      .cv-doc.layout-profile-rail .cv-sidebar {
        padding: 32px;
        border-right: 0;
        border-left: 0;
        border-bottom: 1px solid var(--cv-border);
      }

      .cv-doc.layout-band .cv-hero,
      .cv-doc.bold-contemporary .cv-hero {
        margin: -32px -32px 24px;
        padding: 32px 32px 24px;
      }

      .cv-doc.layout-minimal, .cv-doc.layout-compact .cv-head {
        display: block;
      }

      .cv-doc.modern-blue .cv-head,
      .cv-doc.modern-blue .cv-main {
        grid-column: 1;
      }

      .cv-doc.modern-blue .cv-head {
        background: #0a254c;
      }
    }

    @media (max-width: 620px) {

      .hero-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
      }

      .topbar-inner,
      .builder-header-inner {
        padding: 10px 14px;
      }

      .builder-header-inner {
        flex-wrap: wrap;
      }

      .builder-stepbar {
        padding: 0 14px 10px;
        gap: 6px;
      }

      .builder-stepbar .wizard-step {
        font-size: 12px;
        padding: 7px 6px;
      }

      .builder-stepbar .wizard-step span {
        display: none;
      }

      .brand-logo {
        height: 30px;
      }

      .hero-inner,
      .section,
      .builder-wrap {
        padding-left: 14px;
        padding-right: 14px;
      }

      /* Mobile: hide back cards, center the main card */
      .sc-card-a,
      .sc-card-b  { display: none; }

      /* Hide decorative elements on mobile */
      .info-card,
      .hero-arc,
      .mockup-glow { display: none; }

      .hero::before { opacity: 0.35; }
      .hero-glow-right { opacity: 0.5; }

      .mockup-stack {
        min-height: 380px;
      }

      .sc-card-c {
        left: 50%;
        margin-left: -136px;
        top: 16px;
        width: 272px;
        animation: cvFloatC 6s ease-in-out 0.8s infinite;
      }

      .template-grid,
      .faq-grid {
        grid-template-columns: 1fr;
      }

      .logos {
        grid-template-columns: repeat(2, 1fr);
      }

      .wizard-steps,
      .smart-grid,
      .wizard-template-grid,
      .mini-repeat,
      .optional-section-actions {
        grid-template-columns: 1fr;
      }

      .smart-progress-card {
        position: static;
      }

      .phone-field>span,
      .date-pair {
        grid-template-columns: 88px minmax(0, 1fr);
      }

      .wizard-card {
        padding: 18px;
      }

      .wizard-actions {
        display: grid;
      }

      .wizard-template-card img {
        height: 260px;
      }

      .preview-panel {
        padding: 14px;
      }

      .header-action-row {
        width: 100%;
        justify-content: stretch;
      }

      .header-action-row .btn {
        flex: 1 1 0;
      }

      .cv-doc {
        min-height: auto;
      }

      .cv-name {
        font-size: 32px;
      }

      .cv-doc.layout-split .cv-main,
      .cv-doc.layout-split .cv-sidebar,
      .cv-doc.creative-portfolio .cv-main,
      .cv-doc.creative-portfolio .cv-sidebar,
      .cv-doc.modern-blue .cv-head,
      .cv-doc.modern-blue .cv-main,
      .cv-doc.executive-serif .cv-shell,
      .cv-doc.creative-sidebar .cv-main,
      .cv-doc.creative-sidebar .cv-sidebar,
      .cv-doc.simple-ats .cv-shell,
      .cv-doc.elegant-serif .cv-shell,
      .cv-doc.compact-pro .cv-shell,
      .cv-doc.classic-pro .cv-shell,
      .cv-doc.ats-optimized .cv-shell,
      .cv-doc.layout-structured .cv-main,
      .cv-doc.layout-structured .cv-sidebar,
      .cv-doc.layout-profile-rail .cv-main,
      .cv-doc.layout-profile-rail .cv-sidebar,
      .cv-doc.layout-band .cv-shell,
      .cv-doc.executive-prime .cv-shell,
      .cv-doc.tech-resume .cv-shell,
      .cv-doc.bold-contemporary .cv-grid,
      .cv-doc.editorial-elegant .cv-shell,
      .cv-doc.layout-editorial .cv-shell,
      .cv-doc.layout-frame .cv-shell,
      .cv-doc.layout-minimal, .cv-doc.layout-compact .cv-shell {
        padding: 24px 20px;
      }

      .cv-doc.layout-band .cv-hero,
      .cv-doc.bold-contemporary .cv-hero {
        margin: -24px -20px 20px;
        padding: 24px 20px 20px;
      }

      .cv-item-head {
        display: block;
      }

      .cv-item-meta {
        margin-top: 4px;
        text-align: left;
      }

      .cta-block {
        padding: 42px 18px;
        border-radius: 18px;
      }

      .cta-block .btn {
        width: 100%;
        max-width: 260px;
        padding-left: 16px;
        padding-right: 16px;
      }

      .hero-actions .btn {
        width: 100%;
      }
    }

    @media (max-width: 1199px) {
      /* Restore page-scroll layout on tablet/mobile */
      #page-builder {
        height: auto !important;
        overflow: visible !important;
      }

      .builder-wrap {
        grid-template-columns: 1fr;
        flex: none;
        overflow: visible;
        min-height: unset;
        align-items: start;
      }

      .editor-panel {
        overflow-y: visible;
        padding-bottom: 0;
      }

      .builder-sidebar {
        overflow-y: visible;
        position: sticky;
        top: 72px;
        align-self: start;
      }

      .preview-panel {
        position: static;
        max-height: none;
        flex-direction: column;
        overflow: visible;
        align-self: auto;
      }

      .preview-panel .cv-doc {
        width: min(100%, 820px);
        max-width: 100%;
        zoom: 1;
      }

      .preview-paper-wrap {
        overflow: auto;
        flex: none;
        min-height: unset;
      }
    }

    @media (min-width: 768px) and (max-width: 1199px) {
      .builder-wrap {
        grid-template-columns: 220px minmax(0, 1fr);
        max-width: 100%;
        padding: 20px 20px;
        gap: 20px;
      }

      .builder-header-inner {
        flex-direction: row;
        align-items: center;
        max-width: 100%;
        padding: 12px 20px 8px;
      }

      .builder-title-block {
        display: flex;
      }

      .builder-header-inner,
      .builder-title-inline {
        align-items: center;
      }

      .header-action-row,
      .editor-utility-actions {
        width: auto;
        justify-content: flex-end;
      }

      .builder-sidebar {
        position: sticky;
        top: 104px;
      }

      .sidebar-nav {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        overflow-x: visible;
      }

      .builder-mobile-preview-toggle {
        display: inline-flex;
      }

      .preview-panel {
        display: none;
        position: static;
        max-height: none;
      }

      #page-builder.preview-open .preview-panel {
        display: grid;
        grid-column: 1 / -1;
      }
    }

    /* ═══════════════════════════════════════════════════════════════════
       UNIFIED ANIMATION SYSTEM (tokens live in global :root at top of file)
    ═══════════════════════════════════════════════════════════════════ */

    /* ── All interactive buttons: consistent transition + press feel ── */
    #page-builder button,
    #page-builder [role="button"],
    #page-builder .collapse-btn,
    #page-builder .add-line-btn,
    #page-builder .work-skip-quiet,
    #page-builder .history-empty-btn-primary,
    #page-builder .history-empty-btn-secondary,
    #page-builder .history-skipped-resume-btn,
    #page-builder .work-skipped-resume-btn,
    #page-builder .ai-generate-btn,
    #page-builder .skill-suggestion-chip,
    #page-builder .skill-chip-remove,
    #page-builder .skills-add-btn,
    #page-builder .skill-suggestions-more,
    #page-builder .personal-summary-edit-btn,
    #page-builder .photo-upload,
    #page-builder .btn-sample,
    #page-builder .btn-continue,
    #page-builder .section-remove-btn,
    #page-builder [data-move],
    #page-builder [data-save-card],
    #page-builder [data-delete-card],
    #page-builder .rich-toolbar button,
    #page-builder .sidebar-item {
      transition:
        background var(--t-base) var(--ease),
        color       var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease),
        box-shadow  var(--t-base) var(--ease),
        opacity     var(--t-base) var(--ease),
        transform   var(--t-fast) var(--ease);
    }

    /* ── Press animation: every clickable button scales slightly ── */
    #page-builder button:not(:disabled):active,
    #page-builder [role="button"]:active,
    #page-builder .skill-suggestion-chip:active,
    #page-builder .collapse-btn:active {
      transform: scale(0.97);
    }

    /* Lighter press for small controls */
    #page-builder .skill-chip-remove:active,
    #page-builder [data-move]:active,
    #page-builder .section-remove-btn:active,
    #page-builder .rich-toolbar button:active {
      transform: scale(0.94);
    }

    /* ── Hover: collapse/section head ── */
    #page-builder .collapse-btn {
      border-radius: 8px;
      padding: 2px 6px 2px 2px;
    }
    #page-builder .collapse-btn:hover {
      color: var(--blue);
      background: var(--blue-soft);
    }

    /* ── Hover: personal edit button ── */
    #page-builder .personal-summary-edit-btn {
      transition:
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease),
        transform var(--t-fast) var(--ease);
    }

    /* ── Hover: skills add button ── */
    #page-builder .skills-add-btn {
      transition:
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        transform var(--t-fast) var(--ease);
    }
    #page-builder .skills-add-btn:hover {
      box-shadow: 0 2px 8px var(--blue-ring);
      transform: translateY(-1px);
    }
    #page-builder .skills-add-btn:active {
      transform: translateY(0) scale(0.97);
    }

    /* ── Hover: skill chip remove × ── */
    #page-builder .skill-chip-remove {
      transition:
        background var(--t-fast) var(--ease),
        color var(--t-fast) var(--ease),
        transform var(--t-fast) var(--ease);
    }

    /* ── Photo upload hover ── */
    #page-builder .photo-upload {
      transition:
        border-color var(--t-base) var(--ease),
        background var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        transform var(--t-fast) var(--ease);
    }

    /* ── Inputs & selects: smooth focus ring ── */
    #page-builder input,
    #page-builder select,
    #page-builder textarea {
      transition:
        border-color var(--t-base) var(--ease),
        box-shadow   var(--t-base) var(--ease),
        background   var(--t-base) var(--ease);
    }

    /* ── Rich editor toolbar: icon buttons ── */
    #page-builder .rich-toolbar button {
      border-radius: 5px;
    }
    #page-builder .rich-toolbar button:hover {
      background: var(--blue-soft);
      color: var(--blue);
    }

    /* ── Sidebar items ── */
    #page-builder .sidebar-item {
      transition:
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        transform var(--t-fast) var(--ease);
    }
    #page-builder .sidebar-item:hover {
      transform: translateX(2px);
    }
    #page-builder .sidebar-item.sidebar-item--locked:hover {
      transform: none;
    }
    #page-builder .sidebar-item.active {
      transform: none;
      box-shadow: inset 3px 0 0 0 var(--blue);
    }

    @media (prefers-reduced-motion: no-preference) {
      #page-builder .sidebar-item.done .sidebar-item-status {
        animation: sidebarCheckPop 380ms var(--ease-spring) both;
      }
    }

    @keyframes sidebarCheckPop {
      from {
        transform: scale(0.88);
        opacity: 0.65;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    #page-builder .sidebar-item.sidebar-item--locked:focus-visible {
      outline: 2px solid rgba(59, 130, 246, 0.45);
      outline-offset: 2px;
    }

    /* ── Work/Education summary cards: hover lift ── */
    #page-builder .work-summary-row {
      transition:
        background   var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease),
        box-shadow   var(--t-base) var(--ease),
        transform    var(--t-fast) var(--ease);
    }
    #page-builder .work-summary-row:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px var(--blue-soft);
    }

    /* ── Smart sections: gentle entrance ── */
    #page-builder .smart-section {
      transition:
        box-shadow var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
    }

    /* ── Section tools (move up/down, remove) ── */
    #page-builder .section-tools button,
    #page-builder [data-move] {
      transition:
        background var(--t-fast) var(--ease),
        color var(--t-fast) var(--ease),
        opacity var(--t-fast) var(--ease),
        transform var(--t-fast) var(--ease);
    }

    /* ── Skill category tabs ── */
    #page-builder .skill-cat-tab {
      transition:
        background var(--t-fast) var(--ease),
        color var(--t-fast) var(--ease),
        border-color var(--t-fast) var(--ease),
        transform var(--t-fast) var(--ease);
    }
    #page-builder .skill-cat-tab:hover {
      transform: translateY(-1px);
    }
    #page-builder .skill-cat-tab.active {
      transform: none;
    }

    /* ── Suggested skill chips ── */
    #page-builder .skill-suggestion-chip {
      transition:
        background   var(--t-fast) var(--ease),
        color        var(--t-fast) var(--ease),
        border-color var(--t-fast) var(--ease),
        box-shadow   var(--t-fast) var(--ease),
        transform    var(--t-fast) var(--ease);
    }
    #page-builder .skill-suggestion-chip:not([disabled]):hover {
      transform: translateY(-1px);
      box-shadow: 0 3px 8px var(--blue-ring);
    }

    /* ── AI generate button ── */
    #page-builder .ai-generate-btn {
      transition:
        opacity   var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        transform var(--t-fast) var(--ease);
    }
    #page-builder .ai-generate-btn:hover:not(:disabled) {
      opacity: 1;
      box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
      transform: translateY(-1px);
    }
    #page-builder .ai-generate-btn:active:not(:disabled) {
      transform: translateY(0) scale(0.97);
      box-shadow: none;
    }

    /* ── Language rows ── */
    #page-builder .mini-repeat.language-repeat {
      transition:
        background var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease);
    }
    #page-builder .mini-repeat.language-repeat:hover {
      background: rgba(248, 250, 252, 0.9);
    }

    /* ── Template cards ── */
    #page-builder .wizard-template-card {
      transition:
        border-color var(--t-base) var(--ease),
        box-shadow   var(--t-base) var(--ease),
        transform    var(--t-base) var(--ease);
    }
    #page-builder .wizard-template-card:hover {
      transform: translateY(-2px);
      box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.08),
        0 4px 14px rgba(59, 130, 246, 0.09),
        0 24px 48px rgba(59, 130, 246, 0.06);
    }
    #page-builder .wizard-template-card:active {
      transform: translateY(0) scale(0.99);
    }

    /* ── Save indicator feedback ── */
    #page-builder .save-indicator {
      transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
    }

    /* ═══════════════════════════════════════════════════════════════════
       COVER LETTER MODAL
    ═══════════════════════════════════════════════════════════════════ */

    .cover-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(4px);
      z-index: 9998;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: auth-fade var(--t-base, 200ms) var(--ease, ease-out) both;
    }
    .cover-backdrop[hidden] { display: none !important; }

    .cover-modal {
      position: relative;
      background: #fff;
      border-radius: 16px;
      width: 100%;
      max-width: 920px;
      max-height: 92vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
      animation: auth-pop var(--t-slow, 300ms) var(--ease-spring, cubic-bezier(0.16, 1, 0.3, 1)) both;
      overflow: hidden;
    }

    .cover-header {
      padding: 24px 28px 16px;
      border-bottom: 1px solid var(--line);
    }
    .cover-title {
      font-size: 20px;
      font-weight: 700;
      color: var(--ink);
      margin: 0 0 4px;
    }
    .cover-sub {
      font-size: 13.5px;
      color: var(--muted);
      margin: 0;
    }

    .cover-body {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      flex: 1;
      min-height: 0;
    }

    .cover-form {
      padding: 20px 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      border-right: 1px solid var(--line);
      overflow-y: auto;
    }

    .cover-field { display: flex; flex-direction: column; gap: 4px; }
    .cover-modal input,
    .cover-modal select,
    .cover-modal textarea {
      font-weight: 400 !important;
    }
    .cover-modal input::placeholder,
    .cover-modal textarea::placeholder {
      font-weight: 400 !important;
      color: var(--muted) !important;
      opacity: 1;
    }
    .cover-field span {
      font-size: 12.5px;
      font-weight: 600;
      color: var(--ink);
    }
    .cover-field span small {
      font-weight: 400;
      color: var(--muted);
      font-size: 11.5px;
      margin-left: 4px;
    }
    .cover-field input,
    .cover-field select,
    .cover-field textarea {
      padding: 9px 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      font-size: 13.5px;
      font-family: inherit;
      font-weight: 400;
      background: #fff;
      transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
      min-height: auto;
      max-height: none;
    }
    .cover-field textarea {
      resize: vertical;
      min-height: 100px;
      line-height: 1.5;
    }

    /* Tone — native select styled as clear dropdown with chevron */
    .cover-field-tone select.cover-tone-select,
    .cover-field select.cover-tone-select {
      appearance: none;
      -webkit-appearance: none;
      cursor: pointer;
      padding-right: 38px;
      background-color: #fff;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      background-size: 12px 12px;
    }
    .cover-field-tone select.cover-tone-select:hover,
    .cover-field select.cover-tone-select:hover {
      border-color: rgba(15, 23, 42, 0.14);
    }

    .cover-field input:focus,
    .cover-field select:focus,
    .cover-field textarea:focus {
      outline: none;
      border-color: var(--blue);
      box-shadow: 0 0 0 3px var(--blue-ring, rgba(37, 99, 235, 0.15));
    }

    .cover-generate-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 11px 16px;
      background: var(--blue);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 13.5px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 4px;
      transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    }
    .cover-generate-btn:hover { background: var(--blue-hover, #1d5fd6); }
    .cover-generate-btn:active { transform: scale(0.98); }
    .cover-generate-btn:disabled { opacity: 0.7; cursor: not-allowed; }

    .cover-status {
      font-size: 12.5px;
      margin: 0;
      padding: 8px 10px;
      border-radius: 6px;
      background: var(--blue-soft);
      color: var(--blue);
    }
    .cover-status[data-error] {
      background: rgba(220, 38, 38, 0.08);
      color: #dc2626;
    }

    .cover-output {
      display: flex;
      flex-direction: column;
      min-height: 0;
    }
    .cover-output-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 20px;
      border-bottom: 1px solid var(--line);
      background: #fafbfc;
      flex-shrink: 0;
      min-height: 48px;
    }
    .cover-output-toolbar.has-result-actions {
      padding: 11px 18px;
    }
    .cover-output-label {
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--muted);
      flex-shrink: 0;
    }
    .cover-output-actions {
      display: flex;
      gap: 5px;
      align-items: center;
      flex-shrink: 0;
    }
    .cover-output-actions[hidden] {
      display: none !important;
    }
    .cover-action-btn {
      padding: 5px 11px;
      background: #fff;
      border: 1px solid rgba(15, 23, 42, 0.12);
      border-radius: 7px;
      font-size: 11.5px;
      font-weight: 600;
      letter-spacing: 0.01em;
      color: var(--ink);
      cursor: pointer;
      line-height: 1.25;
      transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
    }
    .cover-action-btn:hover:not(:disabled) {
      background: var(--blue-soft);
      border-color: rgba(18, 109, 255, 0.35);
      color: var(--blue);
    }
    .cover-action-btn:disabled { opacity: 0.45; cursor: not-allowed; }

    .cover-result-area {
      position: relative;
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      padding: 12px 14px 16px;
      background: #f4f6f9;
    }

    .cover-result-area.has-letter-content {
      background: #eef1f6;
    }

    .cover-result-area.has-letter-content .cover-result {
      border: 1px solid rgba(15, 23, 42, 0.1);
      border-radius: 12px;
      background: #fff;
      box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
      padding: 22px 26px;
      min-height: 280px;
      line-height: 1.65;
    }

    .cover-result-empty {
      position: absolute;
      inset: 0;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 28px 24px;
      text-align: center;
      pointer-events: none;
      transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    .cover-result-empty.is-hidden {
      opacity: 0;
      visibility: hidden;
    }

    .cover-result-empty-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--ink);
      letter-spacing: -0.01em;
    }

    .cover-result-empty-icon {
      color: rgba(100, 116, 139, 0.45);
      margin-bottom: 6px;
      line-height: 0;
    }

    .cover-result-empty-text {
      margin: 0;
      max-width: 22rem;
      font-size: 13px;
      line-height: 1.55;
      color: var(--muted);
    }

    @media (prefers-reduced-motion: reduce) {
      .cover-result-empty { transition: none; }
    }

    .cover-result {
      flex: 1;
      width: 100%;
      min-height: 260px;
      padding: 18px 22px;
      border: none;
      resize: vertical;
      font-family: inherit;
      font-size: 14px;
      line-height: 1.6;
      color: var(--ink);
      outline: none;
      background: transparent;
      position: relative;
      z-index: 2;
      border-radius: 0;
    }
    .cover-result::placeholder {
      color: var(--muted);
    }

    @media (max-width: 760px) {
      .cover-body { grid-template-columns: 1fr; }
      .cover-form { border-right: none; border-bottom: 1px solid var(--line); }
      .cover-output { min-height: unset; }
      .cover-result { min-height: 240px; }
      .cover-result-area { min-height: 240px; }
    }

    /* ═══════════════════════════════════════════════════════════════════
       AUTH MODAL (Login / Register skeleton — backend pending)
    ═══════════════════════════════════════════════════════════════════ */

    .auth-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(4px);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: auth-fade var(--t-base, 200ms) var(--ease, ease-out) both;
    }
    .auth-backdrop[hidden] { display: none !important; }

    @keyframes auth-fade {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .auth-modal {
      position: relative;
      background: #fff;
      border-radius: 16px;
      width: 100%;
      max-width: 440px;
      padding: 32px;
      box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
      animation: auth-pop var(--t-slow, 300ms) var(--ease-spring, cubic-bezier(0.16, 1, 0.3, 1)) both;
    }

    @keyframes auth-pop {
      from { opacity: 0; transform: translateY(20px) scale(0.96); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .auth-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: transparent;
      border: none;
      font-size: 22px;
      color: var(--muted);
      cursor: pointer;
      transition: background var(--t-fast) var(--ease);
      line-height: 1;
    }
    .auth-close:hover { background: var(--blue-soft); color: var(--blue); }

    .auth-tabs {
      display: flex;
      gap: 4px;
      background: #f5f6f9;
      border-radius: 10px;
      padding: 4px;
      margin-bottom: 20px;
    }
    .auth-tab {
      flex: 1;
      padding: 9px 12px;
      background: transparent;
      border: none;
      border-radius: 7px;
      font-size: 13.5px;
      font-weight: 500;
      color: var(--muted);
      cursor: pointer;
      transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
    }
    .auth-tab.is-active {
      background: #fff;
      color: var(--ink);
      font-weight: 600;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    }

    .auth-title {
      font-size: 22px;
      font-weight: 700;
      color: var(--ink);
      margin: 0 0 6px;
    }
    .auth-sub {
      font-size: 14px;
      color: var(--muted);
      margin: 0 0 20px;
    }

    .auth-form { display: flex; flex-direction: column; gap: 12px; }

    .auth-field { display: flex; flex-direction: column; gap: 4px; }
    .auth-field[hidden] { display: none !important; }
    .auth-field span { font-size: 12.5px; font-weight: 500; color: var(--ink); }
    .auth-modal input,
    .auth-modal select,
    .auth-modal textarea {
      font-weight: 400 !important;
    }
    .auth-modal input::placeholder,
    .auth-modal textarea::placeholder {
      font-weight: 400 !important;
      color: var(--muted) !important;
      opacity: 1;
    }
    .auth-field input {
      padding: 11px 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      font-size: 14px;
      font-family: inherit;
      font-weight: 400;
      transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
      background: #fff;
      min-height: auto;
      max-height: none;
    }
    .auth-field input:focus {
      outline: none;
      border-color: var(--blue);
      box-shadow: 0 0 0 3px var(--blue-ring, rgba(37, 99, 235, 0.15));
    }

    .auth-error {
      font-size: 12.5px;
      color: #dc2626;
      margin: 0;
      padding: 8px 10px;
      background: rgba(220, 38, 38, 0.08);
      border-radius: 6px;
    }

    .auth-submit {
      margin-top: 4px;
      padding: 12px;
      background: var(--blue);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    }
    .auth-submit:hover { background: var(--blue-hover, #1d5fd6); }
    .auth-submit:active { transform: scale(0.98); }

    .auth-google {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 11px;
      background: #fff;
      color: var(--ink);
      border: 1px solid var(--line);
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background var(--t-fast) var(--ease);
    }
    .auth-google:hover { background: #f8f9fc; }

    .auth-terms {
      font-size: 11.5px;
      color: var(--muted);
      text-align: center;
      margin: 4px 0 0;
      line-height: 1.5;
    }
    .auth-terms a { color: var(--blue); text-decoration: none; }
    .auth-terms a:hover { text-decoration: underline; }

    /* Account chip (when logged in) */
    .account-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px 6px 6px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: #fff;
      cursor: pointer;
      font-size: 13px;
      font-weight: 500;
      transition: background var(--t-fast) var(--ease);
    }
    .account-chip:hover { background: var(--blue-soft); }
    .account-avatar {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--blue);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 600;
    }

    /* ═══════════════════════════════════════════════════════════════════
       MY CVs HUB (multi-CV dropdown in builder header)
    ═══════════════════════════════════════════════════════════════════ */

    .cv-hub-wrap {
      position: relative;
    }

    .cv-hub-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      max-width: 220px;
    }
    .cv-hub-btn span {
      max-width: 130px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .cv-hub-btn[aria-expanded="true"] {
      background: var(--blue-soft);
      border-color: var(--blue);
      color: var(--blue);
    }

    .cv-hub-menu {
      position: fixed;
      top: 70px;
      left: 12px;
      right: 12px;
      min-width: auto;
      max-width: none;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 12px;
      box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
      padding: 8px;
      z-index: 100;
      animation: cv-hub-fade var(--t-base, 180ms) var(--ease-spring, cubic-bezier(0.16, 1, 0.3, 1)) both;
    }
    @media (min-width: 900px) {
      .cv-hub-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: auto;
        right: 0;
        min-width: 280px;
        max-width: 340px;
      }
    }

    @keyframes cv-hub-fade {
      from { opacity: 0; transform: translateY(-6px) scale(0.98); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .cv-hub-menu-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 10px 8px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 6px;
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .cv-hub-new-btn {
      background: none;
      border: none;
      color: var(--blue);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 6px;
      transition: background var(--t-fast) var(--ease);
      text-transform: none;
      letter-spacing: 0;
    }
    .cv-hub-new-btn:hover { background: var(--blue-soft); }

    .cv-hub-list {
      list-style: none;
      margin: 0;
      padding: 0;
      max-height: 320px;
      overflow-y: auto;
    }

    .cv-hub-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 10px;
      border-radius: 8px;
      cursor: pointer;
      transition: background var(--t-fast) var(--ease);
    }
    .cv-hub-item:hover { background: var(--blue-soft); }
    .cv-hub-item.is-active {
      background: var(--blue-soft);
    }
    .cv-hub-item.is-active .cv-hub-item-name {
      color: var(--blue);
      font-weight: 600;
    }

    .cv-hub-item-icon {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      background: var(--blue-soft);
      color: var(--blue);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .cv-hub-item-body {
      flex: 1;
      min-width: 0;
    }
    .cv-hub-item-name {
      font-size: 13.5px;
      font-weight: 500;
      color: var(--ink);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.3;
    }
    .cv-hub-item-meta {
      font-size: 11.5px;
      color: var(--muted);
      margin-top: 2px;
    }

    .cv-hub-menu-foot {
      display: flex;
      gap: 4px;
      border-top: 1px solid var(--line);
      margin-top: 6px;
      padding-top: 6px;
    }

    .cv-hub-action {
      flex: 1;
      background: none;
      border: none;
      padding: 8px;
      font-size: 12.5px;
      font-weight: 500;
      color: var(--ink);
      border-radius: 6px;
      cursor: pointer;
      transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
    }
    .cv-hub-action:hover { background: var(--blue-soft); color: var(--blue); }
    .cv-hub-action-danger:hover { background: rgba(220, 38, 38, 0.08); color: #dc2626; }

    /* ═══════════════════════════════════════════════════════════════════
       REDUCED MOTION: disable all decorative motion
    ═══════════════════════════════════════════════════════════════════ */

    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }
    }

    .pdf-export-root {
      position: fixed;
      left: -10000px;
      top: 0;
      width: 794px;
      min-height: 1123px;
      background: #fff;
      pointer-events: none;
      z-index: -1;
    }

    .cv-doc.pdf-export-doc {
      width: 794px !important;
      max-width: none !important;
      min-height: 1123px;
      margin: 0 !important;
      box-shadow: none !important;
      border-radius: 0 !important;
      zoom: 1 !important;
      transform: none !important;
      overflow: visible !important;
    }

    .cv-doc.pdf-export-doc .cv-section,
    .cv-doc.pdf-export-doc .cv-item,
    .cv-doc.pdf-export-doc .cv-head {
      break-inside: avoid;
      page-break-inside: avoid;
    }

    .cv-doc.pdf-export-doc.layout-split .cv-shell {
      grid-template-columns: 270px minmax(0, 1fr) !important;
    }

    .cv-doc.pdf-export-doc.creative-portfolio .cv-shell {
      grid-template-columns: minmax(0, 1fr) 250px !important;
    }

    .cv-doc.pdf-export-doc.executive-prime .cv-grid {
      grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.8fr) !important;
    }

    .cv-doc.pdf-export-doc.tech-resume .cv-grid,
    .cv-doc.pdf-export-doc.bold-contemporary .cv-grid {
      grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.85fr) !important;
    }

    .cv-doc.pdf-export-doc.editorial-elegant .cv-main {
      grid-template-columns: minmax(0, 1fr) 220px !important;
    }

    /* Bold Contemporary: prevent dark outer wrapper from bleeding into PDF */
    .cv-doc.pdf-export-doc.bold-contemporary {
      background: var(--cv-paper) !important;
    }

    /* Creative Portfolio: prevent long URLs/email from overflowing narrow sidebar */
    .cv-doc.pdf-export-doc.creative-portfolio .cv-sidebar {
      overflow-wrap: break-word;
      word-break: break-word;
    }

    /* Elegant Serif: stable two-column cv-main in PDF */
    .cv-doc.pdf-export-doc.elegant-serif .cv-main {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) 220px !important;
      gap: 32px;
    }

    /* Creative Sidebar: neutralize gradient in PDF for cleaner output */
    .cv-doc.pdf-export-doc.creative-sidebar .cv-sidebar {
      background: #fff1f8;
    }

    /* ── PRINT ── */
    @media print {

      .builder-header,
      .editor-panel,
      #page-landing {
        display: none !important;
      }

      body,
      #page-builder,
      .builder-wrap,
      .preview-panel,
      .cv-doc {
        display: block !important;
        margin: 0;
        padding: 0;
        background: #fff;
        border: 0;
        box-shadow: none;
      }

      .cv-doc {
        width: 210mm !important;
        min-height: 297mm;
        box-shadow: none !important;
        zoom: 1 !important;
        transform: none !important;
        transform-origin: unset !important;
      }
    }

    /* ── Legal pages (Privacy Policy, etc.) ── */
    .legal-shell {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background: var(--bg);
    }

    .legal-shell .topbar {
      animation: none;
    }

    .legal-page {
      flex: 1;
      max-width: 720px;
      margin: 0 auto;
      padding: 40px 22px 72px;
      width: 100%;
      color: var(--ink);
      font-size: 15px;
      line-height: 1.65;
    }

    .legal-page h1 {
      font-size: clamp(28px, 4vw, 38px);
      font-weight: 900;
      letter-spacing: -0.03em;
      margin: 0 0 8px;
      color: #061225;
    }

    .legal-page .legal-effective {
      margin: 0 0 28px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
    }

    .legal-page h2 {
      font-size: 17px;
      font-weight: 800;
      margin: 32px 0 12px;
      color: #0f172a;
      letter-spacing: -0.02em;
    }

    .legal-page h3 {
      font-size: 15px;
      font-weight: 700;
      margin: 20px 0 8px;
      color: #334155;
    }

    .legal-page p {
      margin: 0 0 14px;
      color: #334155;
    }

    .legal-page ul {
      margin: 0 0 16px;
      padding-left: 22px;
      color: #334155;
    }

    .legal-page li {
      margin-bottom: 8px;
    }

    .legal-page li:last-child {
      margin-bottom: 0;
    }

    .legal-page strong {
      color: var(--ink);
      font-weight: 700;
    }

    .legal-footer-bar {
      border-top: 1px solid var(--line);
      padding: 24px 22px;
      text-align: center;
      font-size: 13px;
      color: var(--muted);
      background: #fff;
    }

    .legal-footer-bar a {
      color: var(--blue);
      font-weight: 700;
    }

    .legal-top-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
      margin-left: auto;
    }

    .legal-page a {
      color: var(--blue);
      font-weight: 600;
      text-underline-offset: 2px;
    }

    .legal-page a:hover {
      text-decoration: underline;
    }
