.resume-studio,
.resume-studio * { box-sizing: border-box; }

.resume-studio [hidden] { display: none !important; }

.resume-studio {
  --resume-green: #123f33;
  --resume-green-soft: #e7efeb;
  --resume-gold: #bd8a35;
  --resume-ink: #172720;
  --resume-paper: #fffdfa;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--resume-ink);
  background: #eeece6;
}

.resume-studio.open { display: grid; }

.resume-studio-head {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto 42px;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  background: var(--resume-paper);
  border-bottom: 1px solid #d9d8d1;
  box-shadow: 0 5px 18px rgba(20, 40, 32, .035);
  position: relative;
  z-index: 5;
}

.resume-studio-heading h1 { margin: 0; font: 27px/1.08 Georgia, serif; }
.resume-studio-heading .eyebrow { margin: 0 0 4px; }
.resume-studio-heading > span { display: block; margin-top: 5px; color: #6f7c75; font-size: 11px; }

.resume-studio-head > button {
  width: 40px;
  height: 40px;
  border: 1px solid #d8d9d3;
  border-radius: 50%;
  background: #f4f3ee;
  color: var(--resume-green);
  font-size: 24px;
  cursor: pointer;
}

.resume-workflow-nav {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid #d8ddd9;
  border-radius: 10px;
  background: #f4f5f1;
}

.resume-workflow-nav button {
  min-height: 42px;
  padding: 8px 15px;
  border: 0;
  border-radius: 7px;
  color: #65736c;
  background: transparent;
  font: 700 11px/1.2 Arial, sans-serif;
  cursor: pointer;
}

.resume-workflow-nav button span { margin-right: 7px; color: #a57a34; font-size: 9px; letter-spacing: .08em; }
.resume-workflow-nav button.active { color: #fff; background: var(--resume-green); box-shadow: 0 5px 14px rgba(18, 63, 51, .15); }
.resume-workflow-nav button.active span { color: #e6c57c; }

/* Readiness screen */
.resume-readiness-screen {
  min-height: 0;
  overflow: auto;
  padding: clamp(24px, 4vh, 48px) clamp(20px, 5vw, 80px) 28px;
  background:
    radial-gradient(circle at 87% 12%, rgba(189, 138, 53, .1), transparent 25%),
    linear-gradient(135deg, #f1f1eb 0%, #f8f5ee 100%);
}

.resume-readiness-hero {
  max-width: 1240px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: clamp(26px, 4vw, 48px);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(5, 48, 39, .98), rgba(36, 91, 73, .94)),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(255, 255, 255, .035) 56px);
  box-shadow: 0 22px 50px rgba(20, 55, 44, .16);
  position: relative;
}

.resume-readiness-hero .eyebrow { color: #e2b75c; }
.resume-readiness-hero h2 { max-width: 700px; margin: 8px 0 10px; font: clamp(34px, 4vw, 54px)/.98 Georgia, serif; }
.resume-readiness-hero p:last-child { max-width: 780px; margin: 0; color: #dce8e3; font-size: 14px; line-height: 1.6; }

.resume-readiness-score {
  --resume-score: 0deg;
  width: 126px;
  height: 126px;
  flex: 0 0 126px;
  display: grid;
  place-content: center;
  position: relative;
  border-radius: 50%;
  text-align: center;
  background: conic-gradient(#e1b65b var(--resume-score), rgba(255, 255, 255, .15) 0);
}

.resume-readiness-score::before { content: ""; position: absolute; inset: 8px; border-radius: inherit; background: #17483b; }
.resume-readiness-score strong,
.resume-readiness-score span { position: relative; z-index: 1; }
.resume-readiness-score strong { font: 30px/1 Georgia, serif; }
.resume-readiness-score span { margin-top: 5px; color: #cddbd5; font: 700 9px/1 Arial, sans-serif; text-transform: uppercase; letter-spacing: .14em; }
.resume-readiness-score.is-ready { background: conic-gradient(#65ad88 var(--resume-score), rgba(255, 255, 255, .15) 0); }

.resume-readiness-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .7fr);
  gap: 22px;
  align-items: start;
}

.resume-readiness-card {
  border: 1px solid #d9ddd7;
  border-top: 4px solid var(--resume-gold);
  border-radius: 14px;
  background: var(--resume-paper);
  box-shadow: 0 15px 34px rgba(30, 50, 42, .07);
}

.resume-missing-card { padding: 24px; }
.resume-missing-card > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid #e1e1da; }
.resume-missing-card h3,
.resume-readiness-explainer h3 { margin: 4px 0 0; font: 25px/1.12 Georgia, serif; }
.resume-missing-card > header > span { padding: 7px 10px; border-radius: 20px; color: var(--resume-green); background: #edf3ef; font: 700 10px Arial, sans-serif; white-space: nowrap; }
.resume-card-intro { margin: 14px 0 10px; color: #6d7772; font-size: 12px; line-height: 1.5; }

.resume-missing-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.resume-missing-list > button {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid #dfe2de;
  border-radius: 9px;
  text-align: left;
  color: var(--resume-ink);
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.resume-missing-list > button:hover,
.resume-missing-list > button:focus-visible { border-color: #6d9a89; box-shadow: 0 7px 18px rgba(18, 63, 51, .09); transform: translateY(-1px); }
.resume-missing-list > button > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--resume-green); font-size: 16px; }
.resume-missing-list strong { display: block; font-size: 11px; }
.resume-missing-list small { display: block; margin-top: 3px; color: #77817c; font-size: 9px; line-height: 1.35; }
.resume-missing-list em { padding: 4px 6px; border-radius: 4px; font: normal 700 7px Arial, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.resume-check-essential { color: #8a3f35; background: #f8e9e5; }
.resume-check-recommended { color: #755217; background: #f7efd9; }
.resume-check-enhancement,
.resume-check-optional { color: #45645a; background: #eaf1ed; }

.resume-readiness-warning,
.resume-readiness-complete { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 9px; }
.resume-readiness-warning { color: #793b32; background: #f9e9e5; }
.resume-readiness-complete { color: #17483b; background: #e8f3ed; }
.resume-readiness-warning > span,
.resume-readiness-complete > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: currentColor; font: 700 12px Arial, sans-serif; }
.resume-readiness-warning p { margin: 0; font-size: 10px; line-height: 1.45; }
.resume-readiness-complete strong,
.resume-readiness-complete small { display: block; }
.resume-readiness-complete small { margin-top: 3px; font-size: 9px; color: #60726a; }

.resume-readiness-explainer { padding: 26px; }
.resume-readiness-explainer > ul { margin: 22px 0; padding: 0; list-style: none; }
.resume-readiness-explainer li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid #e4e2da; }
.resume-readiness-explainer li > span { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border: 1px solid #d9b86e; border-radius: 50%; color: #8c6525; font: 700 10px Arial, sans-serif; }
.resume-readiness-explainer li strong,
.resume-readiness-explainer li small { display: block; }
.resume-readiness-explainer li strong { font-size: 11px; }
.resume-readiness-explainer li small { margin-top: 4px; color: #748078; font-size: 9px; line-height: 1.4; }
.resume-readiness-note { padding: 14px; border-left: 3px solid var(--resume-green); background: #edf2ef; }
.resume-readiness-note strong,
.resume-readiness-note span { display: block; }
.resume-readiness-note strong { font-size: 10px; }
.resume-readiness-note span { margin-top: 3px; color: #69776f; font-size: 9px; }

.resume-readiness-actions {
  max-width: 1240px;
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.resume-readiness-actions > span { margin-right: auto; color: #64726a; font-size: 11px; }

/* Studio controls */
.resume-studio-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 0; }
.resume-template-panel { min-height: 0; overflow: auto; background: #fbfaf6; border-right: 1px solid #d9d8d1; }
.resume-readiness-summary {
  width: calc(100% - 24px);
  margin: 12px;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #cad8d1;
  border-radius: 9px;
  text-align: left;
  color: var(--resume-green);
  background: #ebf2ee;
  cursor: pointer;
}
.resume-readiness-summary > span { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--resume-green); font: 15px Georgia, serif; }
.resume-readiness-summary strong,
.resume-readiness-summary small { display: block; }
.resume-readiness-summary strong { font-size: 10px; }
.resume-readiness-summary small { margin-top: 2px; color: #718078; font-size: 8px; }
.resume-readiness-summary b { font-size: 18px; }

.resume-contact-controls { margin: 0 12px 10px; padding: 10px 11px 11px; border: 1px solid #dfe2de; border-radius: 8px; }
.resume-contact-controls legend { padding: 0 5px; color: #80602a; font: 700 8px Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.resume-contact-controls label { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; margin: 0 5px 0 0; padding: 0 4px; border-radius: 5px; color: #46584f; font: 600 9px Arial, sans-serif; cursor: pointer; }
.resume-contact-controls label:hover { background: #edf3ef; }
.resume-contact-controls input { width: 16px; height: 16px; margin: 0; accent-color: var(--resume-green); }
.resume-contact-controls label.is-unavailable { opacity: .35; text-decoration: line-through; }

.template-panel-title { padding: 8px 16px 10px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.template-panel-title strong { font: 15px Georgia, serif; }
.template-panel-title small { color: #7b847f; font-size: 8px; }
.resume-template-list { padding: 0 12px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.resume-template-card { min-width: 0; padding: 8px; border: 1px solid #dadbd5; border-radius: 7px; text-align: left; background: #fff; cursor: pointer; transition: .18s; }
.resume-template-card:hover { transform: translateY(-1px); box-shadow: 0 6px 15px rgba(20, 45, 36, .08); }
.resume-template-card.active { border-color: #1f6650; box-shadow: 0 0 0 2px rgba(31, 102, 80, .12); }
.template-thumb { height: 76px; margin-bottom: 7px; padding: 8px; position: relative; overflow: hidden; border: 1px solid #e7e6e1; background: #fafafa; }
.template-thumb::before { content: ""; display: block; width: 58%; height: 7px; margin-bottom: 6px; background: var(--tc, #194b3d); }
.template-thumb::after { content: ""; display: block; height: 42px; opacity: .85; background: repeating-linear-gradient(#cfd2cf 0 2px, transparent 2px 7px); }
.resume-template-card strong { display: block; font: 10px Georgia, serif; }
.resume-template-card small { display: block; min-height: 18px; margin-top: 2px; color: #87908b; font-size: 7px; line-height: 1.25; }
.resume-template-card:nth-child(2) .template-thumb { border-left: 15px solid #153f33; }
.resume-template-card:nth-child(3) .template-thumb::before { width: 100%; height: 14px; }
.resume-template-card:nth-child(4) .template-thumb { background: linear-gradient(90deg, #24485b 0 35%, #fafafa 35%); }
.resume-template-card:nth-child(5) .template-thumb { border-top: 10px solid #222; }
.resume-template-card:nth-child(6) .template-thumb::before { background: #7b2438; }
.resume-template-card:nth-child(7) .template-thumb { border-right: 20px solid #e1e4ea; }
.resume-template-card:nth-child(8) .template-thumb::before { margin-inline: auto; }
.resume-template-card:nth-child(9) .template-thumb { border-bottom: 10px solid #455d50; }
.resume-template-card:nth-child(10) .template-thumb { border-top: 3px solid #141414; }

.resume-preview-stage { min-width: 0; min-height: 0; display: grid; grid-template-rows: 46px minmax(0, 1fr); }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; color: #65716b; background: #e7e5df; border-bottom: 1px solid #d4d2cc; font-size: 9px; }
.preview-toolbar > span { display: flex; align-items: center; gap: 7px; }
.preview-toolbar i { width: 7px; height: 7px; border-radius: 50%; background: #3f9875; }
.preview-toolbar > span::after { content: "Ctrl + wheel to zoom"; margin-left: 3px; padding-left: 9px; border-left: 1px solid #c8cbc7; color: #8a938e; font-size: 8px; }
.preview-controls,
.zoom-controls { display: flex; align-items: center; }
.preview-controls { gap: 18px; }
.zoom-controls { gap: 8px; }
.preview-toolbar button { width: 44px; height: 44px; border: 1px solid #cacac4; border-radius: 6px; background: #fff; cursor: pointer; }
.preview-toolbar strong { min-width: 36px; text-align: center; }
.photo-toggle { display: flex; align-items: center; gap: 7px; color: #43534b; font-size: 9px; white-space: nowrap; cursor: pointer; }
.photo-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.photo-toggle > span { width: 30px; height: 17px; position: relative; border-radius: 20px; background: #b9c0bc; transition: .18s; }
.photo-toggle > span::after { content: ""; width: 13px; height: 13px; position: absolute; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .18s; }
.photo-toggle input:checked + span { background: #1f6650; }
.photo-toggle input:checked + span::after { transform: translateX(13px); }
.photo-toggle.disabled { opacity: .45; cursor: not-allowed; }

.resume-preview-scroll { min-height: 0; overflow: auto; padding: 24px; display: flex; justify-content: center; align-items: flex-start; contain: paint; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.resume-preview-scroll > #resumePreview { position: relative; flex: 0 0 auto; transform-origin: top center; margin-bottom: 24px; }
.resume-studio-footer { min-height: 68px; display: flex; align-items: center; gap: 10px; padding: 10px 25px; position: relative; z-index: 4; background: var(--resume-paper); border-top: 1px solid #d9d8d1; box-shadow: 0 -5px 18px rgba(20, 40, 32, .05); }
.resume-studio-footer > div { display: flex; flex-direction: column; margin-right: auto; }
.resume-studio-footer > div strong { font: 15px Georgia, serif; }
.resume-studio-footer > div span { margin-top: 3px; color: #78847e; font-size: 9px; }
.resume-studio-footer .outline-btn { margin: 0; }
.resume-studio-footer button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }

/* Exact, measured A4 document */
.resume-document,
.resume-document * { box-sizing: border-box; }
.resume-document { width: 794px; display: flex; flex-direction: column; gap: 24px; color: #242b27; }
.resume-page {
  --accent: #153f33;
  --page-x: 58px;
  --page-top: 52px;
  width: 794px;
  height: 1123px;
  flex: 0 0 1123px;
  overflow: hidden;
  padding: var(--page-top) var(--page-x) 38px;
  color: #242b27;
  background: #fff;
  box-shadow: 0 15px 45px rgba(21, 42, 34, .14);
  font: 12px/1.45 Arial, sans-serif;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.resume-page-inner { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.resume-header { min-width: 0; padding-bottom: 16px; border-bottom: 2px solid var(--accent); }
.resume-header h1 { margin: 0; overflow-wrap: anywhere; font-size: 31px; line-height: 1; letter-spacing: 1.2px; text-transform: uppercase; }
.resume-title { margin: 7px 0 4px; color: var(--accent); font-size: 12px; font-weight: 700; }
.resume-subline { margin-bottom: 5px; color: #46554e; font-size: 10.5px; }
.resume-contact { display: flex; flex-wrap: wrap; gap: 4px 11px; color: #5f6b65; font-size: 10px; }
.resume-contact span,
.resume-contact a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; color: inherit; text-decoration: none; }
.resume-contact > :not(:last-child)::after { content: " ·"; margin-left: 8px; color: #a3aaa6; }
.resume-contact b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.resume-has-photo .resume-header,
.resume-header:has(.resume-photo) { display: flex; align-items: center; gap: 18px; }
.resume-identity { min-width: 0; flex: 1; }
.resume-photo { width: 70px; height: 70px; flex: 0 0 70px; object-fit: cover; object-position: center top; padding: 3px; border: 1px solid #d5dad6; border-radius: 5px; background: #fff; }
.resume-header-continuation { padding-bottom: 10px; }
.resume-header-continuation h1 { font-size: 18px; }
.resume-header-continuation .resume-title { margin: 3px 0 0; font-size: 9.5px; font-weight: 400; }

.resume-layout { min-height: 0; height: 100%; display: grid; grid-template-columns: minmax(0, 1.78fr) minmax(180px, .82fr); gap: 27px; align-items: stretch; }
.resume-main,
.resume-side { min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
.resume-side { padding-left: 18px; border-left: 1px solid #d9ddd9; }
.resume-page-single-column .resume-layout,
.resume-page-main-only .resume-layout,
.resume-page-side-only .resume-layout { grid-template-columns: minmax(0, 1fr); }
.resume-page-single-column .resume-side,
.resume-page-main-only .resume-side { display: none; }
.resume-page-side-only .resume-main { display: none; }
.resume-page-side-only .resume-side { padding-left: 0; border-left: 0; }
.resume-section { margin-top: 18px; }
.resume-section h2 { margin: 0 0 8px; padding: 4px 7px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #fff; background: var(--accent); font-size: 11px; line-height: 1.2; letter-spacing: .09em; text-transform: uppercase; }
.resume-section h2 small { opacity: .75; font-size: 7px; font-weight: 400; letter-spacing: .08em; }
.resume-section-body > * + * { margin-top: 8px; }
.resume-copy { margin: 0; overflow-wrap: anywhere; }
.resume-summary-copy { line-height: 1.55; }
.resume-record { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; overflow-wrap: anywhere; }
.resume-record-date { color: #6f7873; font-size: 10px; }
.resume-record-content h3 { margin: 0; font-size: 12px; line-height: 1.25; }
.resume-record-content h3 small { color: #747e78; font-size: 8px; font-weight: 400; }
.resume-record-content strong,
.resume-record-content > span { display: block; }
.resume-record-content strong { margin-top: 1px; color: #33483f; font-size: 10.5px; }
.resume-record-content > span { margin-top: 1px; color: #717a75; font-size: 9.5px; }
.resume-record-content p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.resume-record-continuation { padding-top: 2px; }
.resume-list-item { display: grid; grid-template-columns: 7px minmax(0, 1fr); gap: 6px; align-items: start; }
.resume-list-item > span { width: 4px; height: 4px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.resume-list-item p { margin: 0; overflow-wrap: anywhere; }
.resume-list-item-continuation > span { opacity: 0; }
.resume-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.resume-skills span { max-width: 100%; padding: 3px 6px; overflow-wrap: anywhere; border-radius: 3px; background: #eef1ef; font-size: 9.5px; }
.resume-page-footer { min-height: 18px; padding-top: 8px; display: flex; align-items: end; justify-content: space-between; gap: 12px; color: #78817d; border-top: 1px solid #e1e3e0; font-size: 8.5px; letter-spacing: .04em; }
.resume-unit-oversize { font-size: .96em; overflow-wrap: anywhere; }

/* Content density never shrinks below a readable print floor. */
.resume-density-sparse { --page-x: 64px; --page-top: 59px; font-size: 13px; }
.resume-density-sparse .resume-layout { grid-template-columns: minmax(0, 1.65fr) minmax(190px, .82fr); gap: 34px; }
.resume-density-sparse .resume-section { margin-top: 25px; }
.resume-density-sparse .resume-section-body > * + * { margin-top: 11px; }
.resume-density-sparse .resume-summary-copy { line-height: 1.65; }
.resume-density-dense { --page-x: 48px; --page-top: 43px; font-size: 11.5px; }
.resume-density-dense .resume-layout { grid-template-columns: minmax(0, 1.85fr) minmax(170px, .76fr); gap: 22px; }
.resume-density-dense .resume-section { margin-top: 12px; }
.resume-density-dense .resume-section h2 { margin-bottom: 6px; padding-block: 3px; font-size: 10px; }
.resume-density-dense .resume-section-body > * + * { margin-top: 5px; }
.resume-density-dense .resume-record { grid-template-columns: 78px minmax(0, 1fr); gap: 9px; }
.resume-density-dense .resume-record-content p { margin-top: 2px; line-height: 1.38; }
.resume-density-dense .resume-skills { gap: 3px; }
.resume-density-dense .resume-skills span { padding: 2px 5px; font-size: 9px; }

/* Multi-page-safe professional templates. */
.template-executive { --accent: #153f33; }
.template-executive .resume-header { margin: calc(var(--page-top) * -1) calc(var(--page-x) * -1) 0; padding: var(--page-top) var(--page-x) 25px; color: #fff; background: var(--accent); border: 0; }
.template-executive .resume-header .resume-title,
.template-executive .resume-header .resume-subline,
.template-executive .resume-header .resume-contact { color: #e1ece7; }
.template-executive .resume-header-continuation { padding-bottom: 16px; }
.template-executive .resume-side { padding: 0 13px 0 18px; background: #eef3f0; }

.template-modern { --accent: #a65345; }
.template-modern .resume-header { text-align: center; border-bottom-width: 3px; }
.template-modern .resume-contact { justify-content: center; }
.template-modern .resume-header:has(.resume-photo) { justify-content: center; text-align: left; }
.template-modern .resume-section h2 { padding: 0 0 5px; color: var(--accent); background: transparent; border-bottom: 2px solid var(--accent); }

.template-sidebar { --accent: #24485b; }
.template-sidebar .resume-side { margin-top: 14px; padding: 14px 14px 10px; color: #fff; background: var(--accent); border: 0; }
.template-sidebar .resume-side .resume-section:first-child { margin-top: 0; }
.template-sidebar .resume-side .resume-section h2 { padding-inline: 0; color: #fff; background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.template-sidebar .resume-side .resume-skills span { color: #18352d; background: #f2f6f4; }
.template-sidebar .resume-side .resume-list-item > span { background: #d5e6de; }

.template-minimal { --accent: #222; font-family: Arial, sans-serif; }
.template-minimal .resume-header { border-bottom-width: 1px; }
.template-minimal .resume-section h2 { padding: 0 0 3px; color: #222; background: transparent; font-size: 9px; letter-spacing: .18em; }

.template-heritage { --accent: #7b2438; font-family: Georgia, serif; border-top: 9px solid var(--accent); }
.template-heritage .resume-header h1 { font-weight: 400; text-transform: none; }
.template-heritage .resume-section h2 { padding: 0 0 4px; color: var(--accent); background: transparent; border-bottom: 1px solid #c9a9b1; }

.template-academic { --accent: #343f56; font-family: Georgia, serif; }
.template-academic .resume-header { text-align: center; }
.template-academic .resume-contact { justify-content: center; }
.template-academic .resume-header:has(.resume-photo) { justify-content: center; text-align: left; }
.template-academic .resume-section h2 { padding: 0 0 3px; color: #222; background: transparent; border-bottom: 1px solid #343f56; }
.template-academic .resume-record { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.template-academic .resume-record-date { grid-row: 1; }

.template-counsel { --accent: #173f35; border-top: 18px solid var(--accent); }
.template-counsel .resume-header h1 { font-family: Georgia, serif; font-weight: 400; text-transform: none; }
.template-counsel .resume-section h2 { padding: 0 0 4px; color: var(--accent); background: transparent; border-bottom: 3px double var(--accent); }

.template-compact { --accent: #455d50; }
.template-compact .resume-section { margin-top: 11px; }
.template-compact .resume-section-body > * + * { margin-top: 5px; }
.template-compact .resume-record { grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
.template-compact .resume-section h2 { padding: 3px 6px; }

.template-editorial { --accent: #141414; }
.template-editorial .resume-header { border-bottom: 5px solid #111; }
.template-editorial .resume-header h1 { font: 38px/.98 Georgia, serif; letter-spacing: -.6px; text-transform: none; }
.template-editorial .resume-section h2 { padding: 0; color: #111; background: transparent; font: 15px/1.15 Georgia, serif; letter-spacing: 0; text-transform: none; }

.resume-full-preview { position: fixed; inset: 0; z-index: 120; overflow: auto; padding: 66px 35px 35px; display: flex; justify-content: center; align-items: flex-start; background: #3b3e3c; }
.resume-full-document-shell { position: relative; flex: 0 0 auto; }
.resume-full-preview .resume-document { width: 794px; }
.resume-full-preview .resume-page { box-shadow: 0 20px 80px #222; }
.resume-full-toolbar { height: 48px; position: fixed; z-index: 121; inset: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 20px; color: #fff; background: rgba(18, 28, 24, .94); }
.resume-full-toolbar span { margin-right: auto; font: 11px Arial, sans-serif; }
.resume-full-toolbar button { min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 7px; color: #fff; background: transparent; font: 700 10px Arial, sans-serif; cursor: pointer; }
.resume-full-toolbar strong { min-width: 42px; text-align: center; font: 700 10px Arial, sans-serif; }
.resume-full-close { width: 44px; padding: 0 !important; border-radius: 50% !important; font-size: 22px !important; }

.resume-print-body { margin: 0; background: #fff; }
.resume-print-body .resume-document { gap: 0; }
.resume-print-body .resume-page { margin: 0; box-shadow: none; }

@media (max-width: 900px) {
  .resume-studio-head { grid-template-columns: minmax(0, 1fr) 40px; gap: 12px; padding: 11px 14px 9px; }
  .resume-studio-heading h1 { font-size: 20px; }
  .resume-studio-heading > span { display: none; }
  .resume-workflow-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .resume-workflow-nav button { flex: 1; }
  .resume-studio-head > button { grid-column: 2; grid-row: 1; }
  .resume-readiness-screen { padding: 16px 14px calc(20px + env(safe-area-inset-bottom)); }
  .resume-readiness-hero { padding: 24px; gap: 18px; }
  .resume-readiness-hero h2 { font-size: 38px; }
  .resume-readiness-score { width: 105px; height: 105px; flex-basis: 105px; }
  .resume-readiness-grid { grid-template-columns: 1fr; }
  .resume-readiness-actions { position: sticky; bottom: 0; z-index: 4; padding: 10px; border: 1px solid #d8d9d3; border-radius: 10px; background: rgba(255, 253, 250, .96); box-shadow: 0 -8px 24px rgba(20, 45, 36, .08); }
  .resume-readiness-actions > span { display: none; }
  .resume-readiness-actions button { flex: 1; }
  .resume-studio-body { grid-template-columns: 1fr; grid-template-rows: 180px minmax(0, 1fr); }
  .resume-template-panel { overflow-x: auto; overflow-y: hidden; border: 0; border-bottom: 1px solid #d9d8d1; }
  .resume-readiness-summary { width: 210px; height: 58px; margin: 9px 10px 4px; float: left; }
  .resume-contact-controls { min-width: 330px; height: 64px; margin: 6px 10px 4px 0; padding: 7px 8px; float: left; white-space: nowrap; }
  .resume-contact-controls label { min-height: 32px; gap: 3px; margin-right: 2px; padding-inline: 2px; }
  .template-panel-title { clear: both; padding: 4px 10px; }
  .resume-template-list { display: flex; overflow-x: auto; padding: 0 10px 9px; }
  .resume-template-card { min-width: 112px; }
  .template-thumb { height: 43px; }
  .resume-preview-scroll { padding: 14px; justify-content: flex-start; }
  .preview-toolbar { padding: 0 10px; }
  .preview-toolbar > span::after { display: none; }
  .preview-controls { gap: 7px; }
  .photo-toggle { font-size: 0; }
  .photo-toggle > span { display: block; }
  .resume-studio-footer { padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); }
  .resume-studio-footer > div span { display: none; }
}

@media (max-width: 600px) {
  .resume-studio-head { min-height: 96px; }
  .resume-studio-heading h1 { max-width: 250px; font-size: 18px; }
  .resume-workflow-nav button { min-height: 37px; padding: 6px 8px; font-size: 9px; }
  .resume-readiness-hero { grid-template-columns: 1fr; }
  .resume-readiness-hero h2 { font-size: 34px; }
  .resume-readiness-hero p:last-child { font-size: 12px; }
  .resume-readiness-score { width: 82px; height: 82px; position: relative; opacity: 1; right: auto; top: auto; }
  .resume-readiness-score strong { font-size: 24px; }
  .resume-missing-card,
  .resume-readiness-explainer { padding: 18px; }
  .resume-missing-card h3,
  .resume-readiness-explainer h3 { font-size: 21px; }
  .resume-missing-list { grid-template-columns: 1fr; }
  .resume-missing-list > button { grid-template-columns: 28px minmax(0, 1fr); }
  .resume-missing-list em { grid-column: 2; justify-self: start; }
  .resume-readiness-actions { display: grid; grid-template-columns: 1fr; }
  .resume-readiness-actions button { width: 100%; }
  .resume-studio-body { grid-template-rows: 210px minmax(0, 1fr); }
  .resume-readiness-summary { width: 190px; }
  .resume-contact-controls { min-width: 310px; }
  .resume-studio-footer > div { display: none; }
  .resume-studio-footer button { min-width: 0; flex: 1; padding-inline: 9px; font-size: 9px; }
  .resume-full-preview { padding: 58px 10px 20px; justify-content: center; overflow-x: hidden; }
  .resume-full-toolbar { gap: 5px; padding-inline: 8px; }
  .resume-full-toolbar > span { display: none; }
  .resume-full-toolbar button { padding-inline: 8px; }
}

@media print {
  html,
  body,
  .resume-print-body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  .resume-print-body .resume-document { width: 210mm !important; display: block !important; gap: 0 !important; transform: none !important; }
  .resume-page {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
    break-after: page;
    page-break-after: always;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
  .resume-page:last-child { break-after: auto; page-break-after: auto; }
  .resume-studio-head,
  .resume-template-panel,
  .preview-toolbar,
  .resume-studio-footer { display: none !important; }
  @page { size: A4; margin: 0; }
}
