:root{--ink:#15231f;--muted:#66746e;--paper:#f1eee5;--card:#fffdfa;--green:#28624a;--line:#d9d7cd}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:Inter,ui-sans-serif,system-ui,sans-serif}main{width:min(1240px,calc(100% - 32px));margin:auto;padding:75px 0 110px}.eyebrow{margin:0 0 10px;color:var(--green);font-size:.74rem;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.hero{display:grid;grid-template-columns:1.5fr .6fr;gap:40px;align-items:end;margin:45px 0 55px}.hero h1{margin:0;font:500 clamp(3.4rem,7vw,6.6rem)/.88 Georgia,serif;letter-spacing:-.055em}.hero h1 em{color:var(--green);font-weight:500}.hero>p{margin:0;color:var(--muted);font-size:1.05rem;line-height:1.7}.desk-shell{overflow:hidden;border:1px solid var(--line);border-radius:26px;background:var(--card);box-shadow:0 25px 65px #243c3217}.desk-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px 30px;border-bottom:1px solid var(--line)}.desk-head h2{margin:0;font:500 2rem Georgia,serif}.head-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.sample-preset-select{min-height:2.6rem;padding:0.45rem 0.75rem;border:1px solid var(--line);border-radius:999px;background:#ffffff;color:var(--ink);font-size:0.8rem;font-weight:700;max-width:100%}.privacy-note{display:flex;gap:12px;padding:13px 30px;color:#245640;background:#e5f1e8;font-size:.78rem}.desk-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.9fr)}#resume-editor{padding:28px;border-right:1px solid var(--line)}fieldset{margin:0 0 24px;padding:0;border:0}legend{width:100%;margin-bottom:14px;padding-bottom:8px;border-bottom:1px solid var(--line);font:600 1.2rem Georgia,serif}label{margin-bottom:12px;font-size:.75rem}.entry-card{margin-bottom:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8f7f2}.entry-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.entry-head button{min-height:34px;padding:5px 9px;color:#8d352c;font-size:.7rem}.entry-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.entry-fields label:last-child{grid-column:1/-1}.clear{width:100%;color:#8d352c}.preview-wrap{padding:28px;background:#e8e8e1;min-width:0}.resume-page{min-height:900px;padding:46px;background:white;box-shadow:0 10px 30px #17221d17}.resume-page header{padding-bottom:18px;border-bottom:3px solid var(--ink)}.resume-page header h2{margin:0;font:600 2.35rem Georgia,serif}.resume-page header p{margin:8px 0 0;color:var(--muted);font-size:.78rem}.resume-page section{margin-top:24px}.resume-page h3{margin:0 0 9px;color:var(--green);font-size:.75rem;letter-spacing:.13em;text-transform:uppercase}.resume-page section>p{margin:0;line-height:1.55}.resume-page article{margin:0 0 15px}.resume-page h4{margin:0 0 3px}.resume-page article p{margin:2px 0;color:var(--muted);font-size:.78rem;line-height:1.45}

/* ATS Live Score Widget */
.ats-widget { margin-bottom: 22px; padding: 18px; border-radius: 14px; background: #ffffff; border: 1px solid var(--line); }
.ats-score-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ats-score-title { font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); }
.ats-score-number { font: 700 1.8rem Georgia, serif; color: var(--green); }
.ats-progress-bar { width: 100%; height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin: 6px 0 12px; }
.ats-progress-fill { height: 100%; background: var(--green); transition: width 0.3s ease; }
.ats-rating-tag { font-size: 0.72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.ats-rating-tag.strong { background: #ecfdf5; color: #065f46; }
.ats-rating-tag.moderate { background: #fffbeb; color: #92400e; }
.ats-rating-tag.weak { background: #fef2f2; color: #991b1b; }
.ats-suggestions { margin: 10px 0 0; padding-left: 18px; font-size: 0.74rem; color: var(--muted); line-height: 1.5; }

/* Model Picker & 10 Free-Use Original Resume Themes */
.model-picker-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.model-picker-label { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); }
.model-picker-badge { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #dcfce7; color: #166534; }
.theme-selector { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin-bottom: 18px; }
.theme-btn { min-height: 36px; font-size: 0.72rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: white; color: var(--ink); cursor: pointer; text-align: center; }
.theme-btn.active { background: var(--green); color: white; border-color: var(--green); }

/* 1. Classic Serif (default rules above) */

/* 2. Tech Modern */
.resume-page.theme-tech { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.resume-page.theme-tech header { border-bottom: 2px solid #2563eb; }
.resume-page.theme-tech header h2 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 800; color: #1e293b; letter-spacing: -0.02em; }
.resume-page.theme-tech h3 { color: #2563eb; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }

/* 3. Executive Blue */
.resume-page.theme-executive header { border-bottom: 3px solid #1e3a8a; }
.resume-page.theme-executive header h2 { color: #1e3a8a; }
.resume-page.theme-executive h3 { color: #1e3a8a; border-bottom: 1px solid #bfdbfe; padding-bottom: 4px; }

/* 4. Minimalist Slate */
.resume-page.theme-minimalist { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #18181b; }
.resume-page.theme-minimalist header { border-bottom: 1px solid #d4d4d8; padding-bottom: 14px; }
.resume-page.theme-minimalist header h2 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: 2.05rem; letter-spacing: -0.03em; color: #18181b; }
.resume-page.theme-minimalist h3 { color: #52525b; font-size: 0.7rem; letter-spacing: 0.18em; }

/* 5. Campus Fresher */
.resume-page.theme-campus { font-family: system-ui, -apple-system, sans-serif; }
.resume-page.theme-campus header { background: #f0fdf4; margin: -46px -46px 20px; padding: 28px 46px 20px; border-bottom: 3px solid #16a34a; }
.resume-page.theme-campus header h2 { font-family: system-ui, -apple-system, sans-serif; font-weight: 800; color: #14532d; }
.resume-page.theme-campus h3 { color: #15803d; background: #f0fdf4; display: inline-block; padding: 3px 8px; border-radius: 4px; }

/* 6. Academic CV */
.resume-page.theme-academic { font-family: Georgia, 'Times New Roman', serif; }
.resume-page.theme-academic header { text-align: center; border-bottom: 2px double #334155; }
.resume-page.theme-academic header h2 { font-size: 2.2rem; letter-spacing: 0.01em; color: #0f172a; }
.resume-page.theme-academic h3 { color: #334155; border-bottom: 1px solid #cbd5e1; padding-bottom: 3px; letter-spacing: 0.1em; }

/* 7. Govt & PSU Bio */
.resume-page.theme-psu { font-family: Georgia, Cambria, serif; }
.resume-page.theme-psu header { border: 2px solid #1e293b; padding: 14px 18px; background: #f8fafc; }
.resume-page.theme-psu header h2 { font-size: 1.95rem; text-transform: uppercase; letter-spacing: 0.03em; color: #0f172a; }
.resume-page.theme-psu h3 { background: #e2e8f0; color: #0f172a; padding: 4px 10px; border-left: 4px solid #1e293b; letter-spacing: 0.08em; }

/* 8. Finance Corporate */
.resume-page.theme-finance { font-family: 'Trebuchet MS', Inter, system-ui, sans-serif; }
.resume-page.theme-finance header { border-bottom: 2px solid #0f172a; display: flex; flex-direction: column; gap: 2px; }
.resume-page.theme-finance header h2 { font-family: Georgia, serif; font-size: 2.15rem; text-transform: uppercase; letter-spacing: 0.04em; color: #0f172a; }
.resume-page.theme-finance h3 { color: #0f172a; border-bottom: 1.5px solid #0f172a; padding-bottom: 2px; font-weight: 800; }

/* 9. Clinical Care */
.resume-page.theme-healthcare { font-family: Inter, system-ui, sans-serif; }
.resume-page.theme-healthcare header { border-bottom: 3px solid #0f766e; }
.resume-page.theme-healthcare header h2 { font-family: Inter, system-ui, sans-serif; font-weight: 750; color: #115e59; }
.resume-page.theme-healthcare h3 { color: #0f766e; border-left: 3px solid #14b8a6; padding-left: 8px; }

/* 10. Sales & Operations */
.resume-page.theme-operations { font-family: Inter, system-ui, sans-serif; border-top: 6px solid #c2410c; }
.resume-page.theme-operations header { border-bottom: 1px solid #fed7aa; }
.resume-page.theme-operations header h2 { font-family: Inter, system-ui, sans-serif; font-weight: 850; color: #9a3412; }
.resume-page.theme-operations h3 { color: #c2410c; border-bottom: 1px dashed #fdba74; padding-bottom: 3px; }

/* Keyword Matcher Box */
.keyword-box { margin-top: 14px; padding: 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; }
.keyword-box label { font-size: 0.72rem; font-weight: 700; color: #475569; display: block; margin-bottom: 4px; }
.keyword-box input { width: 100%; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.78rem; }
.keyword-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pill { font-size: 0.68rem; font-weight: 750; padding: 2px 7px; border-radius: 999px; }
.pill.matched { background: #dcfce7; color: #15803d; }
.pill.missing { background: #fee2e2; color: #b91c1c; }

@media(max-width:900px){
  .hero{grid-template-columns:1fr}
  .desk-grid{grid-template-columns:1fr}
  #resume-editor{border-right:0;border-bottom:1px solid var(--line)}
}
@media(max-width:520px){
  main{width:calc(100% - 20px);padding-top:28px}
  .hero h1{font-size:clamp(2.2rem,8vw,3.4rem);line-height:1.02}
  .desk-head{align-items:flex-start;flex-direction:column;padding:18px}
  .head-actions{display:grid;width:100%;grid-template-columns:1fr}
  .privacy-note{padding:13px 18px;flex-direction:column;gap:3px}
  #resume-editor,.preview-wrap{padding:16px}
  .entry-fields{grid-template-columns:1fr}
  .entry-fields label:last-child{grid-column:auto}
  .theme-selector{grid-template-columns:repeat(2,minmax(0,1fr))}
  .theme-btn{min-height:44px}
  .resume-page{min-height:auto;padding:20px;overflow-wrap:anywhere}
  .resume-page.theme-campus header{margin:-20px -20px 16px;padding:18px 20px 14px}
  .resume-page header h2{font-size:1.65rem}
}

@media print {
  .site-header,
  .site-header__inner,
  .tool-back-nav,
  .hero,
  main > .hero,
  .desk-head,
  .privacy-note,
  #resume-editor,
  .ats-widget,
  .model-picker-header,
  .theme-selector,
  #theme-selector,
  .content-section,
  .site-footer,
  .ad-slot,
  .global-demo-notice,
  header:not(.resume-page header),
  nav,
  footer,
  aside {
    display: none !important;
  }

  main,
  .desk-shell,
  .desk-grid,
  .preview-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: white !important;
    box-shadow: none !important;
  }

  #resume-preview,
  .resume-page {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: white !important;
  }
}
