
    :root {
      /* Base */
      --bg: #F8FAFC;        /* background */
      --panel: #FFFFFF;     /* cards */
      --ink: #0F172A;       /* text */
      --muted: #475569;     /* secondary text */
      --line: #E5E7EB;      /* borders */
      --radius: 16px;
      --shadow: 0 1px 2px rgba(15,23,42,.06), 0 12px 24px rgba(15,23,42,.06);

      /* Fjord Blue (accent) */
      --accent: #1E3A8A;    /* indigo-800 */
      --accent-2: #3B82F6;  /* blue-500 for states */

      /* ATS Color Palette */
      --ats-dark-brown: #665850;    /* Dark Brown/Taupe */
      --ats-tan: #B89E7A;           /* Tan/Light Brown */
      --ats-peach: #F7C27A;         /* Light Orange/Peach */
      --ats-grey: #C7C2C9;          /* Light Grey/Lavender Grey */
      --ats-terracotta: #D97B4A;    /* Burnt Orange/Terracotta */

      /* Medium color tints */
      --tint: color-mix(in oklab, var(--accent-2) 7%, white);
      --chip: color-mix(in oklab, var(--accent-2) 14%, white);
      
      /* Legacy variables for compatibility */
      --card: var(--panel);
      --accent-weak: var(--chip);
      --accent-light: var(--accent-2);
      --accent-lighter: #93C5FD; /* blue-300 */
      --success: #10b981;
      --warning: #f59e0b;
      --error: #ef4444;
    }

    html,
    body {
      height: 100%;
    }

    body {
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
      color: var(--ink);
      line-height: 1.6;
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      transition: box-shadow 0.2s ease;
    }

    .card:hover {
      box-shadow: 0 4px 6px rgba(2, 6, 23, 0.07), 0 12px 32px rgba(2, 6, 23, 0.12);
    }

    .chip {
      background: var(--chip);
      color: #0B2447;
      border: 1px solid color-mix(in oklab, var(--accent-2) 16%, white);
      padding: .35rem .7rem;
      border-radius: 9999px;
      font-size: .75rem;
      font-weight: 600;
      transition: all 0.2s ease;
    }

    .chip:hover {
      background: color-mix(in oklab, var(--accent-2) 20%, white);
      transform: translateY(-1px);
    }

    .ghost {
      border: 1px dashed var(--line);
    }

    /* Coming Soon Badge */
    .coming-soon-badge {
      position: absolute;
      top: -8px;
      right: -8px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      font-size: 0.625rem;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      box-shadow: 0 2px 4px rgba(102, 126, 234, 0.4);
      animation: pulse-badge 2s ease-in-out infinite;
    }

    @keyframes pulse-badge {
      0%, 100% {
        transform: scale(1);
        opacity: 1;
      }
      50% {
        transform: scale(1.05);
        opacity: 0.9;
      }
    }

    /* Cover letter styling */
    .cover-letter-content {
      font-family: "Times New Roman", "Georgia", serif;
      line-height: 1.6;
    }

    .cover-letter-content .letter-header {
      margin-bottom: 2rem;
    }

    .cover-letter-content .letter-date {
      text-align: right;
      margin-bottom: 1rem;
      font-weight: 500;
    }

    .cover-letter-content .recipient-info {
      margin-bottom: 1.5rem;
      line-height: 1.4;
    }

    .cover-letter-content .salutation {
      margin-bottom: 1rem;
      font-weight: 500;
    }

    .cover-letter-content .letter-body {
      margin-bottom: 1.5rem;
    }

    .cover-letter-content .letter-body p {
      margin-bottom: 1rem;
      text-align: justify;
    }

    .cover-letter-content .letter-body p:last-child {
      margin-bottom: 0;
    }

    .cover-letter-content .closing {
      margin-top: 2rem;
      margin-bottom: 1rem;
    }

    .cover-letter-content .signature {
      margin-top: 3rem;
      margin-bottom: 1rem;
    }

    .cover-letter-content .contact-info {
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid #e2e8f0;
      font-size: 0.875rem;
      color: #64748b;
    }

    .cover-letter-content .contact-info div {
      margin-bottom: 0.25rem;
    }

    .cover-letter-content .contact-info div:last-child {
      margin-bottom: 0;
    }

    /* Enhanced button styles */
    button {
      transition: all 0.2s ease;
      position: relative;
      overflow: hidden;
    }

    button:hover {
      transform: translateY(-1px);
    }

    button:active {
      transform: translateY(0);
    }

    /* Textarea enhancements */
    textarea {
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      resize: vertical;
    }

    textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(30, 58, 138, .1);
    }

    /* Score display enhancement */
    #score {
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* Status indicators */
    .status-pass {
      color: var(--success);
    }

    .status-fail {
      color: var(--error);
    }

    /* Loading animation */
    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.5;
      }
    }

    .loading {
      animation: pulse 2s infinite;
    }

    /* Subtle animations */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

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

    .fade-in {
      animation: fadeInUp 0.5s ease-out;
    }

    /* Enhanced keyword chips */
    .keyword-chip {
      background: linear-gradient(135deg, #fef3c7, #fde68a);
      color: #92400e;
      border: 1px solid #f59e0b;
      padding: 0.25rem 0.75rem;
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 500;
      transition: all 0.2s ease;
    }

    .keyword-chip:hover {
      background: linear-gradient(135deg, #fde68a, #fcd34d);
      transform: scale(1.05);
    }

    /* Loading spinner */
    .spinner {
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      from {
        transform: rotate(0deg);
      }

      to {
        transform: rotate(360deg);
      }
    }

    /* Toast notifications */
    .toast {
      background: white;
      border: 1px solid #e2e8f0;
      border-radius: 1rem;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      padding: 1rem 1.25rem;
      min-width: 320px;
      max-width: 400px;
      transform: translateX(100%);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      backdrop-filter: blur(10px);
    }

    /* Resume HTML Styling */
    .resume-container {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      line-height: 1.4;
      color: #1e293b;
      max-width: 100%;
      overflow: hidden;
      word-wrap: break-word;
    }

    .resume-name {
      font-size: 2rem;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 0.25rem;
      text-align: left;
    }

    .resume-subtitle {
      font-size: 1rem;
      font-weight: 500;
      color: #64748b;
      margin-bottom: 1rem;
      text-align: left;
    }

    .resume-section {
      margin: 1.25rem 0 0.75rem 0;
    }

    .section-title {
      font-size: 1.125rem;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      border-bottom: 1px solid #e2e8f0;
      padding-bottom: 0.25rem;
      text-align: left;
      position: relative;
      padding-left: 1.5rem;
    }

    .section-title::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 4px;
      height: 1.25rem;
      background: var(--accent);
      border-radius: 2px;
    }

    .resume-paragraph {
      font-size: 0.8rem;
      color: #475569;
      margin-bottom: 0.5rem;
      text-align: left;
      line-height: 1.3;
    }

    /* Education section styles */
    .education-degree {
      font-size: 1rem;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 0.25rem;
    }

    .education-details {
      font-size: 0.875rem;
      color: #64748b;
      margin-bottom: 0.5rem;
      font-style: italic;
    }

    .education-content {
      font-size: 0.875rem;
      line-height: 1.5;
      color: #475569;
      margin-bottom: 0.5rem;
    }

    .professional-summary {
      font-size: 0.875rem;
      line-height: 1.6;
      color: #475569;
      margin-bottom: 0.75rem;
      font-style: italic;
    }

    /* Template-specific styles */
    .job-header {
      margin-bottom: 0.5rem;
    }

    .job-title {
      font-size: 1rem;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 0.25rem;
    }

    .job-company {
      font-size: 0.9rem;
      font-weight: 500;
      color: #475569;
      margin-bottom: 0.25rem;
    }

    .job-details {
      font-size: 0.8rem;
      color: #64748b;
      display: flex;
      gap: 1rem;
    }

    .job-location {
      font-style: italic;
    }

    .job-dates {
      font-weight: 500;
    }

    .job-achievements {
      margin-top: 0.5rem;
    }

    .education-entry {
      margin-bottom: 1rem;
    }

    .contact-info {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin-top: 0.5rem;
    }

    .contact-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .contact-label {
      font-weight: 500;
      color: #64748b;
      font-size: 0.8rem;
    }

    .contact-value {
      color: #475569;
      font-size: 0.8rem;
    }

    .contact-info-single {
      font-size: 0.9rem;
      color: #475569;
      margin-top: 0.5rem;
      line-height: 1.4;
    }

    /* Fortune 100/500 Style Resume Structure */
    .fortune-header {
      text-align: center;
      margin-bottom: 2rem;
      border-bottom: 2px solid #e2e8f0;
      padding-bottom: 1rem;
    }

    .fortune-name {
      font-size: 2.5rem;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 0.5rem;
      letter-spacing: -0.025em;
    }

    .fortune-contact {
      font-size: 1rem;
      color: #64748b;
      font-weight: 500;
    }

    .fortune-section {
      margin: 2rem 0;
    }

    .fortune-section-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 1px solid #e2e8f0;
      padding-bottom: 0.5rem;
    }

    .fortune-summary {
      font-size: 1rem;
      line-height: 1.6;
      color: #475569;
      margin-bottom: 1rem;
    }

    .fortune-skills-list {
      display: flex;
      flex-wrap: nowrap;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
      overflow-x: auto;
      padding: 0.4rem 1rem;
      background: linear-gradient(90deg, #1a093f 0%, #2d145e 50%, #2e0859 100%);
      border-radius: 9999px;
      min-height: 2.2rem;
      align-items: center;
      scrollbar-width: thin;
      white-space: nowrap;
      box-shadow: 0 2px 8px 0 rgba(42, 8, 89, 0.08);
    }
    .fortune-skills-list::-webkit-scrollbar {
      height: 6px;
      background: transparent;
    }
    .fortune-skills-list::-webkit-scrollbar-thumb {
      background: #2d145e;
      border-radius: 4px;
    }

    .fortune-skill-item {
      color: #475569;
      font-size: 0.9rem;
      font-weight: 500;
    }

    .fortune-skill-item:not(:last-child)::after {
      content: ', ';
      color: #64748b;
    }

    .fortune-job-entry {
      margin-bottom: 1.5rem;
    }

    .fortune-job-header {
      margin-bottom: 0.75rem;
    }

    .fortune-job-title {
      font-size: 1.125rem;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 0.25rem;
    }

    .fortune-job-company {
      font-size: 1rem;
      font-weight: 500;
      color: #475569;
      margin-bottom: 0.25rem;
    }

    .fortune-job-meta {
      font-size: 0.875rem;
      color: #64748b;
      display: flex;
      gap: 1rem;
    }

    .fortune-job-location {
      font-style: italic;
    }

    .fortune-job-dates {
      font-weight: 500;
    }

    .fortune-job-achievements {
      margin-top: 0.5rem;
    }

    .fortune-bullet-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .fortune-bullet-item {
      position: relative;
      padding-left: 1.5rem;
      margin-bottom: 0.5rem;
      font-size: 0.9rem;
      line-height: 1.5;
      color: #475569;
    }

    .fortune-bullet-item::before {
      content: '•';
      position: absolute;
      left: 0;
      color: var(--accent);
      font-weight: bold;
    }

    .fortune-education-entry {
      margin-bottom: 1rem;
    }

    .fortune-education-degree {
      font-size: 1rem;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 0.25rem;
    }

    .fortune-education-details {
      font-size: 0.875rem;
      color: #64748b;
      font-style: italic;
    }

    .fortune-education-additional {
      margin-top: 0.5rem;
    }

    .fortune-education-info {
      font-size: 0.9rem;
      color: #475569;
      margin-bottom: 0.25rem;
    }

    .resume-summary {
      font-size: 0.95rem;
      color: #1e293b;
      margin-bottom: 1rem;
      text-align: left;
      line-height: 1.7;
      font-weight: 400;
      padding: 0.75rem;
      background: #f8fafc;
      border-left: 3px solid var(--accent);
      border-radius: 0.25rem;
    }

    .resume-text {
      font-size: 0.9rem;
      color: #475569;
      margin-bottom: 0.25rem;
      line-height: 1.3;
      text-align: left;
    }

    .bullet-list {
      list-style: none;
      padding: 0;
      margin: 0.5rem 0;
    }

    .bullet-item {
      position: relative;
      padding-left: 1rem;
      margin-bottom: 0.25rem;
      font-size: 0.9rem;
      color: #475569;
      line-height: 1.3;
      text-align: left;
    }

    .summary-bullet {
      position: relative;
      padding-left: 1rem;
      margin-bottom: 0.5rem;
      font-size: 0.95rem;
      color: #1e293b;
      line-height: 1.6;
      text-align: left;
      font-weight: 400;
    }

    .bullet-item::before {
      content: '•';
      position: absolute;
      left: 0;
      top: 0;
      color: #64748b;
      font-size: 0.8rem;
    }

    .summary-bullet::before {
      content: '•';
      position: absolute;
      left: 0;
      top: 0;
      color: var(--accent);
      font-size: 0.9rem;
      font-weight: bold;
    }

    /* Job task bullets - more indented */
    .job-tasks .bullet-item {
      padding-left: 1.5rem;
      /* More indentation for job tasks */
      margin-left: 1rem;
      /* Additional left margin */
    }

    .job-tasks .bullet-item::before {
      left: 0.5rem;
      /* Adjust bullet position */
    }

    .job-tasks {
      margin-bottom: 0.75rem;
      overflow: hidden;
      word-wrap: break-word;
    }

    /* Skills section styling */
    .skills-section {
      margin: 0.5rem 0;
    }

    .skills-category {
      margin-bottom: 0.25rem;
      display: flex;
      align-items: flex-start;
      line-height: 1.2;
    }

    .skills-category-title {
      font-weight: 700;
      color: #1e293b;
      font-size: 0.95rem;
      margin-right: 0.5rem;
      min-width: fit-content;
      flex-shrink: 0;
    }

    .skills-list {
      display: inline;
      color: #475569;
      font-size: 0.95rem;
      line-height: 1.2;
    }

    .skill-tag {
      display: inline;
      color: #475569;
      font-size: 0.95rem;
      line-height: 1.2;
    }

    /* Legacy skills styling for backward compatibility */
    .skills-item {
      margin-bottom: 0.25rem;
      padding: 0.1rem 0;
      text-align: left;
    }

    .skills-key {
      font-weight: 600;
      color: #1e293b;
      margin-right: 0.5rem;
      font-size: 0.9rem;
    }

    .skills-value {
      color: #475569;
      font-size: 0.9rem;
    }

    .contact-item {
      display: inline-block;
      margin-right: 1.5rem;
      margin-bottom: 0.25rem;
      font-size: 0.9rem;
      color: #475569;
    }

    .contact-label {
      font-weight: 600;
      color: #1e293b;
      margin-right: 0.5rem;
      font-size: 0.9rem;
    }

    .contact-value {
      color: #475569;
      font-size: 0.9rem;
    }

    .contact-container {
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid #e2e8f0;
    }

    /* Job experience styling */
    .job-entry {
      margin-bottom: 1.5rem;
      padding: 0;
      overflow: hidden;
      word-wrap: break-word;
    }

    .job-title {
      font-weight: 600;
      color: #1e293b;
      font-size: 0.95rem;
      margin-bottom: 0.125rem;
    }

    .company-name {
      font-weight: 500;
      color: #64748b;
      font-size: 0.9rem;
      margin-bottom: 0.125rem;
      font-style: italic;
    }

    .job-dates {
      font-size: 0.85rem;
      color: #94a3b8;
      margin-bottom: 0.5rem;
      font-weight: 500;
    }

    .job-description {
      margin-left: 0;
      margin-bottom: 0.75rem;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .resume-name {
        font-size: 2rem;
      }

      .section-title {
        font-size: 1.25rem;
      }

      .resume-paragraph,
      .resume-text,
      .bullet-item {
        font-size: 0.8rem;
      }
    }

    /* Resume Drawer Styles */
    .resume-drawer {
      position: fixed;
      top: 0;
      right: -50%;
      width: 50%;
      height: 100vh;
      background: white;
      box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
      transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1000;
      overflow-y: auto;
    }

    .resume-drawer.open {
      right: 0;
    }

    .resume-drawer-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 999;
    }

    .resume-drawer-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .resume-drawer-header {
      background: linear-gradient(135deg, #f8fafc, #f1f5f9);
      color: #1e293b;
      padding: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 10;
      border-bottom: 1px solid #e2e8f0;
    }

    .resume-drawer-title {
      font-size: 1.25rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: #1e293b;
    }

    .resume-drawer-header-actions {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .resume-drawer-save {
      display: flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.5rem 0.75rem;
      background: var(--accent);
      color: white;
      border: none;
      border-radius: 0.375rem;
      font-size: 0.875rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .resume-drawer-save:hover {
      background: #1e40af;
      transform: translateY(-1px);
    }

    .resume-drawer-save:active {
      transform: translateY(0);
    }

    .resume-drawer-save svg {
      flex-shrink: 0;
      width: 16px;
      height: 16px;
    }

    .resume-drawer-save span {
      white-space: nowrap;
    }

    .resume-drawer-templates {
      display: flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.5rem 0.75rem;
      background: var(--accent-2);
      color: white;
      border: none;
      border-radius: 0.5rem;
      font-size: 0.875rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .resume-drawer-templates:hover {
      background: #2563eb;
      transform: translateY(-1px);
    }

    .resume-drawer-templates:active {
      transform: translateY(0);
    }

    .resume-drawer-templates svg {
      flex-shrink: 0;
      width: 16px;
      height: 16px;
    }

    .resume-drawer-templates span {
      white-space: nowrap;
    }

    .resume-drawer-close {
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      color: #64748b;
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
      margin-left: auto;
    }

    .resume-drawer-close:hover {
      background: #e2e8f0;
      color: #1e293b;
      border-color: #cbd5e1;
    }

    .resume-drawer-content {
      padding: 2rem;
      background: #f8fafc;
      min-height: calc(100vh - 5rem);
    }

    .resume-drawer-actions {
      position: sticky;
      bottom: 0;
      background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
      padding: 1rem 1.5rem;
      border-top: 1px solid #e2e8f0;
      display: flex;
      gap: 0.5rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    /* Button Styles - Matching the minimal design */
    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.9rem 1.1rem;
      border-radius: 12px;
      background: var(--accent);
      color: #fff;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: filter 0.2s ease;
    }

    .btn-primary:hover {
      filter: brightness(0.93);
    }

    .btn-ghost {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1rem;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      font-weight: 500;
      cursor: pointer;
      transition: border-color 0.2s ease;
    }

    .btn-ghost:hover {
      border-color: #CBD5E1;
    }

    .btn-ghost:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .btn-ghost:disabled:hover {
      border-color: var(--line);
    }

    /* Resume Drawer Button Special Styling - Using ATS Brand Colors */
    #resume-drawer-copy {
      background: var(--ats-terracotta);
      color: white;
      border: none;
    }

    #resume-drawer-copy:hover {
      background: color-mix(in oklab, var(--ats-terracotta) 80%, black);
    }

    #resume-drawer-download-latex {
      background: var(--ats-dark-brown);
      color: white;
      border: none;
    }

    #resume-drawer-download-latex:hover {
      background: color-mix(in oklab, var(--ats-dark-brown) 80%, black);
    }

    #resume-drawer-download-docx {
      background: var(--ats-tan);
      color: var(--ats-dark-brown);
      border: none;
    }

    #resume-drawer-download-docx:hover {
      background: color-mix(in oklab, var(--ats-tan) 80%, black);
    }

    #resume-drawer-download-pdf {
      background: var(--ats-peach);
      color: var(--ats-dark-brown);
      border: none;
    }

    #resume-drawer-download-pdf:hover {
      background: color-mix(in oklab, var(--ats-peach) 80%, black);
    }

    #resume-drawer-download {
      background: var(--ats-grey);
      color: var(--ats-dark-brown);
      border: none;
    }

    #resume-drawer-download:hover {
      background: color-mix(in oklab, var(--ats-grey) 80%, black);
    }

    /* Button Icons */
    .btn-primary svg,
    .btn-ghost svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    /* Responsive adjustments */
    @media (max-width: 1024px) {
      .resume-drawer-actions {
        flex-wrap: wrap;
        gap: 0.375rem;
      }
      
      .btn-primary,
      .btn-ghost {
        flex: 1;
        min-width: 120px;
      }
    }

    @media (max-width: 640px) {
      .resume-drawer-actions {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
      }
      
      .btn-primary,
      .btn-ghost {
        width: 100%;
        justify-content: center;
        min-width: auto;
      }
    }

    .resume-drawer .resume-container {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      line-height: 1.4;
      color: #1e293b;
      max-width: 100%;
      overflow: hidden;
      word-wrap: break-word;
      background: white;
      border-radius: 1rem;
      padding: 2rem;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      margin-bottom: 2rem;
    }

    /* Mobile responsive for skills section */
    @media (max-width: 768px) {
      .skills-category {
        flex-direction: column;
        align-items: flex-start;
      }

      .skills-category-title {
        margin-bottom: 0.25rem;
        margin-right: 0;
      }
    }

    @media (max-width: 768px) {
      .resume-drawer {
        width: 100%;
        right: -100%;
      }

      .resume-drawer-content {
        padding: 1rem;
      }

      .resume-drawer .resume-container {
        padding: 1rem;
      }

      .resume-drawer-header {
        padding: 1rem;
      }

      .resume-drawer-title {
        font-size: 1rem;
      }

      .resume-drawer-save span {
        display: none;
      }

      .resume-drawer-save {
        padding: 0.5rem;
      }

      .resume-drawer-templates span {
        display: none;
      }

      .resume-drawer-templates {
        padding: 0.5rem;
      }
    }

    .toast.show {
      transform: translateX(0);
    }

    /* Template Styles - Now loaded dynamically from separate files */

    /* View Resume Button */
    #view-resume-btn {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 0.25rem;
      font-size: 0.75rem;
      padding: 0.375rem 0.75rem;
      background: var(--accent-2);
      color: white;
      border: none;
      border-radius: 0.375rem;
      cursor: pointer;
      transition: all 0.2s;
    }

    #view-resume-btn:hover {
      background: #2563eb;
    }

    #view-resume-btn svg {
      flex-shrink: 0;
      width: 12px;
      height: 12px;
    }

    /* Editable Resume Content Styles */
    .resume-container[contenteditable="true"] {
      cursor: text;
      position: relative;
    }

    .resume-container[contenteditable="true"]:hover {
      border-color: #e2e8f0 !important;
    }

    .resume-container[contenteditable="true"]:focus {
      border-color: var(--accent) !important;
      background-color: #fafafa !important;
      outline: none;
    }

    /* Prevent unwanted formatting in editable content */
    .resume-container[contenteditable="true"] * {
      cursor: inherit;
    }

    /* Style for editable text elements */
    .resume-container[contenteditable="true"] .resume-name,
    .resume-container[contenteditable="true"] .job-title,
    .resume-container[contenteditable="true"] .job-company,
    .resume-container[contenteditable="true"] .education-degree,
    .resume-container[contenteditable="true"] .professional-summary,
    .resume-container[contenteditable="true"] .bullet-item {
      cursor: text;
    }

    /* Prevent line breaks in names */
    .resume-container[contenteditable="true"] .resume-name {
      white-space: nowrap;
      overflow: hidden;
    }

    /* Visual indicator for editable state */
    .resume-container[contenteditable="true"]::before {
      content: "✏️ Editable";
      position: absolute;
      top: -25px;
      right: 0;
      font-size: 0.75rem;
      color: #6b7280;
      background: #f3f4f6;
      padding: 0.25rem 0.5rem;
      border-radius: 0.25rem;
      opacity: 0;
      transition: opacity 0.2s ease;
      pointer-events: none;
    }

    .resume-container[contenteditable="true"]:hover::before {
      opacity: 1;
    }

    .toast.success {
      border-left: 4px solid #10b981;
      background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    }

    .toast.error {
      border-left: 4px solid #ef4444;
      background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    }

    .toast.warning {
      border-left: 4px solid #f59e0b;
      background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    }

    .toast.info {
      border-left: 4px solid var(--accent);
      background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
    }

    /* ATS Analysis Section Styles */
    .ats-status-score {
      color: var(--ats-terracotta);
      text-shadow: 0 2px 4px rgba(217, 123, 74, 0.2);
    }

    .ats-status-label {
      color: var(--ats-dark-brown);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .ats-status-description {
      color: var(--ats-tan);
      font-weight: 500;
    }

    .ats-grade-chip {
      background: var(--ats-peach);
      color: var(--ats-dark-brown);
      border-color: var(--ats-tan);
      font-weight: 700;
      font-size: 0.875rem;
      padding: 0.5rem 1rem;
      box-shadow: 0 2px 8px rgba(247, 194, 122, 0.3);
      border-width: 2px;
    }

    .ats-keyword-chip {
      background: color-mix(in oklab, var(--ats-grey) 25%, white);
      color: var(--ats-dark-brown);
      border-color: color-mix(in oklab, var(--ats-tan) 30%, white);
    }

    .ats-keyword-chip.highlight {
      background: color-mix(in oklab, var(--ats-peach) 30%, white);
      color: var(--ats-dark-brown);
      border-color: color-mix(in oklab, var(--ats-tan) 30%, white);
    }

    .ats-section-header {
      background: transparent;
      border: none;
      box-shadow: none;
    }

    .ats-section-icon {
      background: var(--ats-dark-brown);
      color: white;
    }

    .ats-section-title {
      color: var(--ats-dark-brown);
    }

    .ats-section-description {
      color: var(--ats-tan);
    }

    .ats-section-percentage {
      color: var(--ats-terracotta);
    }

    .ats-check-row {
      background: color-mix(in oklab, var(--ats-peach) 15%, white);
      border: 1px solid color-mix(in oklab, var(--ats-tan) 30%, white);
    }

    .ats-check-icon {
      background: color-mix(in oklab, var(--ats-tan) 30%, white);
      color: var(--ats-dark-brown);
    }

    .ats-check-title {
      color: var(--ats-dark-brown);
    }

    .ats-check-description {
      color: var(--ats-dark-brown);
    }

    .ats-score-chip {
      background: color-mix(in oklab, var(--ats-grey) 25%, white);
      color: var(--ats-dark-brown);
      border-color: color-mix(in oklab, var(--ats-tan) 30%, white);
    }

    .ats-status-text {
      color: var(--ats-dark-brown);
    }

    .ats-summary {
      background: color-mix(in oklab, var(--ats-peach) 20%, white);
    }

    .ats-summary-title {
      color: var(--ats-dark-brown);
    }

    .ats-summary-text {
      color: var(--ats-dark-brown);
    }