* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  font-family: var(--font-body);
  color: var(--fg-body);
  min-height: 100vh;
}

#root { min-height: 100vh; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms var(--ease-out),
              background 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out),
              border-color 200ms var(--ease-out),
              color 200ms var(--ease-out);
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn-primary { background: var(--sage-500); color: white; box-shadow: 0 2px 6px rgba(94,122,101,0.25); }
.btn-primary:hover { background: var(--sage-600); }
.btn-primary:focus-visible { box-shadow: var(--shadow-focus), 0 2px 6px rgba(94,122,101,0.25); }
.btn-secondary { background: white; color: var(--sage-600); border-color: var(--sage-300); }
.btn-secondary:hover { background: var(--sage-50); border-color: var(--sage-400); }
.btn-ghost { background: transparent; color: var(--fg-body); }
.btn-ghost:hover { background: var(--gray-100); color: var(--fg-primary); }
.btn-on-sage { background: white; color: var(--sage-600); }
.btn-on-sage:hover { background: var(--sage-50); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-icon { width: 40px; padding: 0; border-radius: 14px; height: 40px; }

.ai-suggestion-chip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--fg-body);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.ai-suggestion-chip:hover { background: var(--sage-50, #f3f6f3); border-color: var(--sage-300, #c9d4cb); }
.ai-suggestion-chip:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.ai-suggestion-plus { color: var(--sage-600, #4f6753); font-weight: 700; flex-shrink: 0; }

.phone-input {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.phone-input .phone-local {
  flex: 1 1 auto;
}
.phone-country {
  position: relative;
  flex: 0 0 auto;
}
.phone-country-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1.5px solid var(--gray-200);
  background: white;
  color: var(--fg-body);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.phone-country-trigger:hover { border-color: var(--gray-300, #d0d0cd); }
.phone-country-trigger:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.phone-country.is-open .phone-country-trigger { border-color: var(--sage-400, #99ad9d); }
.phone-country-flag { font-size: 18px; line-height: 1; }
.phone-country-dial { font-variant-numeric: tabular-nums; }
.phone-country-caret { color: var(--gray-500); font-size: 11px; margin-left: 2px; }
.phone-country-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1200;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.phone-country-search {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  background: white;
  font-size: 14px;
  font-family: var(--font-body);
}
.phone-country-search:focus { outline: none; border-color: var(--sage-400, #99ad9d); }
.phone-country-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}
.phone-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.phone-country-item:hover { background: var(--gray-100); }
.phone-country-item.is-selected { background: var(--sage-50, #f3f6f3); font-weight: 600; }
.phone-country-item .phone-country-dial { color: var(--gray-500); min-width: 48px; }
.phone-country-item .phone-country-name { flex: 1 1 auto; }
.phone-country-empty {
  padding: 14px 10px;
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
}
.phone-country-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: transparent;
}

.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }

.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid var(--gray-200);
  background: white;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-primary);
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  outline: none;
}
.input::placeholder { color: var(--fg-subtle); }
.input:hover { border-color: var(--gray-300); }
.input:focus { border-color: var(--sage-400); box-shadow: var(--shadow-focus); }
.textarea { padding: 14px 16px; min-height: 110px; height: auto; line-height: 1.5; resize: vertical; }

.field-label { font-size: 13px; font-weight: 500; color: var(--fg-primary); display: block; margin-bottom: 6px; }
.field-hint { font-size: 12px; color: var(--fg-muted); margin-top: 6px; }

.card-surface {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  font-family: var(--font-body);
}
.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-sage    { background: var(--sage-100); color: var(--sage-600); }
.badge-success { background: #E4F0E7; color: #33623F; }
.badge-warn    { background: #FAF2DE; color: #7A5C1B; }
.badge-neutral { background: var(--gray-100); color: var(--gray-600); }
.badge-beige   { background: var(--beige-100); color: var(--gray-700); border: 1px solid var(--beige-200); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-500);
}

.marketing { background: var(--beige-100); min-height: 100vh; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.nav-bar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 239, 231, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
.nav-bar.scrolled { border-bottom-color: var(--beige-200); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  border-bottom: none;
}
.nav-links a:hover { color: var(--sage-600); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  width: 540px; height: 540px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(166,197,176,0.45) 0%, rgba(166,197,176,0) 70%);
  top: -120px; right: -160px;
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--gray-700);
  margin: 0;
}
.hero h1 em { font-style: italic; font-weight: 600; color: var(--sage-500); }
.hero .sub {
  font-size: 19px;
  color: var(--gray-600);
  margin: 22px 0 36px;
  line-height: 1.55;
  max-width: 50ch;
}
.hero-ctas { display: flex; gap: 12px; align-items: center; }
.hero-meta { display: flex; gap: 22px; align-items: center; margin-top: 32px; font-size: 13px; color: var(--gray-500); }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--gray-300); }

.hero-preview {
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(-1.2deg);
}
.hero-preview-pill {
  position: absolute; top: -14px; left: 24px;
  background: var(--sage-500); color: white;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-md);
}
.hero-preview .row { height: 8px; background: var(--gray-100); border-radius: 4px; margin-bottom: 8px; }
.hero-preview .row.short { width: 60%; }
.hero-preview .name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--gray-700); margin-bottom: 4px; }
.hero-preview .title { font-size: 12px; color: var(--sage-500); font-weight: 600; margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-preview .section-title { font-size: 11px; font-weight: 700; color: var(--gray-700); margin: 18px 0 10px; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid var(--gray-200); }
.hero-preview .job-row { font-size: 12px; color: var(--gray-700); font-weight: 600; margin-bottom: 2px; display: flex; justify-content: space-between; }
.hero-preview .job-meta { font-size: 11px; color: var(--gray-500); margin-bottom: 8px; }
.hero-floater {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  display: flex; align-items: center; gap: 10px;
}
.hero-floater .check { width: 24px; height: 24px; border-radius: 999px; background: var(--sage-100); display: flex; align-items: center; justify-content: center; color: var(--sage-600); }
.hero-floater.f1 { top: 20px; left: -28px; transform: rotate(-3deg); }
.hero-floater.f2 { bottom: 36px; right: -36px; transform: rotate(2deg); }

.section { padding: 80px 0; }
.section-eyebrow { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 56px; }
.section-eyebrow h2 { font-family: var(--font-display); font-size: 42px; line-height: 1.1; letter-spacing: -0.02em; color: var(--gray-700); font-weight: 700; max-width: 22ch; }
.section-eyebrow p { font-size: 17px; color: var(--gray-500); max-width: 50ch; line-height: 1.55; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 28px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sage-200); }
.feature-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--sage-100); color: var(--sage-600); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--gray-700); margin: 0 0 6px; }
.feature p { font-size: 14px; color: var(--gray-500); line-height: 1.55; margin: 0; }

.steps-band { background: white; border-radius: 32px; padding: 48px; border: 1px solid var(--gray-200); }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.ats-band { background: white; border-radius: 32px; padding: 48px; border: 1px solid var(--gray-200); max-width: 760px; margin: 0 auto; text-align: center; }
.ats-band h2 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; color: var(--gray-700); font-weight: 700; }
.ats-band p { max-width: 60ch; margin-left: auto; margin-right: auto; }
.step-item { display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--sage-400); line-height: 1; letter-spacing: -0.03em; }
.step-item h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--gray-700); margin: 0; }
.step-item p { font-size: 14px; color: var(--gray-500); line-height: 1.5; margin: 0; }

.cta-band {
  background: var(--sage-500);
  color: white;
  border-radius: 32px;
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute;
  width: 360px; height: 360px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  top: -100px; left: -80px;
}
.cta-band::after {
  content: ""; position: absolute;
  width: 280px; height: 280px; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  bottom: -120px; right: -60px;
}
.cta-band h2 { font-family: var(--font-display); font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; color: white; font-weight: 700; margin: 0 0 14px; position: relative; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,0.85); margin: 0 auto 32px; max-width: 50ch; position: relative; }
.cta-band .btn-on-sage { position: relative; }

.site-footer { border-top: 1px solid var(--beige-200); padding: 32px 0; margin-top: 80px; }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; }
.footer-inner img { flex-shrink: 0; }
.footer-inner span { font-size: 13px; line-height: 1.5; color: var(--gray-500); }
@media (max-width: 560px) {
  .site-footer { margin-top: 56px; }
  .footer-inner { flex-direction: column; gap: 10px; }
}

.app-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; background: var(--beige-100); }

.side-rail {
  background: white;
  border-right: 1px solid var(--gray-200);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side-rail .brand { display: flex; align-items: center; gap: 10px; }
.side-rail .brand img { height: 28px; }
.side-rail .save-state { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.side-rail .save-state .check { width: 16px; height: 16px; border-radius: 999px; background: var(--sage-100); color: var(--sage-600); display: flex; align-items: center; justify-content: center; }
.side-rail .save-state svg { width: 10px; height: 10px; stroke-width: 2.5; }

.rail-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 200ms var(--ease-out);
}
.rail-step:hover { background: var(--gray-50); }
.rail-step.active { background: var(--sage-50); }
.rail-step .bub {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--gray-100); border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--gray-500);
  flex-shrink: 0;
}
.rail-step.done .bub { background: var(--sage-400); border-color: var(--sage-400); color: white; }
.rail-step.active .bub { background: white; border-color: var(--sage-400); color: var(--sage-600); box-shadow: 0 0 0 4px rgba(127,163,138,0.18); }
.rail-step .label { font-size: 14px; font-weight: 500; color: var(--gray-600); }
.rail-step.active .label { color: var(--sage-600); font-weight: 600; }
.rail-step.done .label { color: var(--gray-600); }
.rail-step .sub { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
.rail-step .text { display: flex; flex-direction: column; }

.app-main { padding: 40px 56px 140px; overflow-y: auto; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.app-topbar .meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--gray-500); }
.app-topbar .meta .sep { width: 1px; height: 16px; background: var(--gray-200); }

.builder-content { max-width: 720px; margin: 0 auto; }
.builder-content .eyebrow { margin-bottom: 12px; }
.builder-content h1 { font-family: var(--font-display); font-size: 38px; line-height: 1.12; letter-spacing: -0.02em; color: var(--gray-700); font-weight: 700; margin: 0 0 12px; }
.builder-content h1 em { font-style: italic; font-weight: 600; color: var(--sage-500); }
.builder-content .lead { font-size: 17px; color: var(--gray-500); line-height: 1.55; margin: 0 0 36px; max-width: 56ch; }

.form-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 28px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.app-actionbar {
  position: fixed; bottom: 0; left: 280px; right: 0;
  background: rgba(244, 239, 231, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--beige-200);
  padding: 16px 56px;
  display: flex; justify-content: space-between; align-items: center;
}
.app-actionbar .step-of { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.app-actionbar .right { display: flex; gap: 12px; }

.dashboard { display: flex; flex-direction: column; gap: 24px; max-width: 1080px; margin: 0 auto; padding: 8px 0 40px; }
.dashboard .greeting { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.dashboard .greeting h1 { font-family: var(--font-display); font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; color: var(--gray-700); font-weight: 700; margin: 0; }
.dashboard .greeting .sub { font-size: 15px; color: var(--gray-500); margin-top: 6px; }
.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cv-tile {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 18px;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.cv-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--sage-200); }
.cv-tile .thumb {
  aspect-ratio: 1 / 1.18;
  background: var(--beige-50);
  border: 1px solid var(--beige-200);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
.cv-tile .thumb .nm { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--gray-700); }
.cv-tile .thumb .role { font-size: 9px; color: var(--sage-500); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.cv-tile .thumb .ln { height: 3px; border-radius: 2px; background: var(--gray-200); }
.cv-tile .thumb .ln.short { width: 60%; }
.cv-tile .thumb .sect { font-size: 8px; font-weight: 700; color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.cv-tile .name { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.cv-tile .meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.cv-tile .footer-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-100); }

.cv-tile.empty {
  border: 1.5px dashed var(--sage-300);
  background: var(--sage-50);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  min-height: 360px;
}
.cv-tile.empty .plus { width: 56px; height: 56px; border-radius: 999px; background: var(--sage-400); color: white; display: flex; align-items: center; justify-content: center; }
.cv-tile.empty .plus svg { width: 24px; height: 24px; stroke-width: 2.5; }
.cv-tile.empty .label { font-size: 15px; font-weight: 600; color: var(--sage-600); }
.cv-tile.empty .help { font-size: 13px; color: var(--gray-500); }

.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.chip-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  padding: 18px 16px;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  display: flex; flex-direction: column; gap: 8px;
  text-align: left;
}
.chip-card:hover { border-color: var(--sage-300); transform: translateY(-2px); }
.chip-card.active { border-color: var(--sage-400); box-shadow: 0 0 0 4px rgba(127,163,138,0.18); background: var(--sage-50); }
.chip-card .ico { width: 36px; height: 36px; border-radius: 12px; background: var(--sage-100); color: var(--sage-600); display: flex; align-items: center; justify-content: center; }
.chip-card.active .ico { background: var(--sage-400); color: white; }
.chip-card .ttl { font-size: 15px; font-weight: 600; color: var(--gray-700); }
.chip-card .desc { font-size: 12px; color: var(--gray-500); line-height: 1.4; }

.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tmpl {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  position: relative;
}
.tmpl:hover { border-color: var(--sage-300); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tmpl.active { border-color: var(--sage-400); box-shadow: 0 0 0 4px rgba(127,163,138,0.18); }
.tmpl .check {
  position: absolute; top: 12px; right: 12px;
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--sage-500); color: white;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(94,122,101,0.35);
}
.tmpl.active .check { display: flex; }
.tmpl .preview {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: var(--beige-50);
  border: 1px solid var(--beige-200);
  margin-bottom: 12px;
  padding: 14px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.tmpl .preview .nm { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--gray-700); }
.tmpl .preview .role { font-size: 9px; color: var(--sage-500); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.tmpl .preview .ln { height: 3px; border-radius: 2px; background: var(--gray-200); margin-bottom: 4px; }
.tmpl .preview .ln.short { width: 60%; }
.tmpl .preview .sect { font-size: 8px; font-weight: 700; color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.08em; margin: 6px 0 3px; }
.tmpl .meta { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.tmpl .meta .ttl { font-size: 14px; font-weight: 600; color: var(--gray-700); }

.export-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
.export-side .opt {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  margin-bottom: 10px;
}
.export-side .opt:hover { border-color: var(--sage-300); }
.export-side .opt.active { border-color: var(--sage-400); box-shadow: 0 0 0 4px rgba(127,163,138,0.18); }
.export-side .opt .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--sage-100); color: var(--sage-600); display: flex; align-items: center; justify-content: center; }
.export-side .opt .ttl { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.export-side .opt .desc { font-size: 12px; color: var(--gray-500); }
.export-side .opt .meta { flex: 1; }
.export-side .opt .pick { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--gray-300); }
.export-side .opt.active .pick { border-color: var(--sage-400); background: white; box-shadow: inset 0 0 0 4px var(--sage-400); }

.cv-preview-large {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1.414;
  padding: 36px 32px;
  font-size: 11px;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.cv-preview-large .nm { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.cv-preview-large .role { font-size: 11px; color: var(--sage-500); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 6px 0 18px; }
.cv-preview-large .contact { display: flex; gap: 14px; font-size: 10px; color: var(--gray-500); margin-bottom: 18px; }
.cv-preview-large .section-h { font-size: 11px; font-weight: 700; color: var(--gray-700); margin: 14px 0 8px; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1.5px solid var(--gray-700); }
.cv-preview-large .job-line { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.cv-preview-large .job-meta { font-size: 10px; color: var(--gray-500); margin-bottom: 4px; }
.cv-preview-large .job-bullet { font-size: 10px; color: var(--gray-600); margin-left: 12px; line-height: 1.4; }

.success-screen { max-width: 560px; margin: 80px auto; text-align: center; }
.success-screen .confetti-burst {
  width: 96px; height: 96px;
  border-radius: 999px;
  background: var(--sage-100);
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-500);
  position: relative;
}
.success-screen .confetti-burst svg { width: 44px; height: 44px; stroke-width: 2.5; }
.success-screen h1 { font-family: var(--font-display); font-size: 42px; line-height: 1.12; letter-spacing: -0.02em; color: var(--gray-700); font-weight: 700; margin: 0 0 12px; }
.success-screen h1 em { font-style: italic; font-weight: 600; color: var(--sage-500); }
.success-screen p { font-size: 17px; color: var(--gray-500); line-height: 1.5; margin: 0 0 32px; }
.success-screen .actions { display: flex; gap: 12px; justify-content: center; }

.tab-bar { display: flex; gap: 6px; padding: 6px; background: white; border: 1px solid var(--gray-200); border-radius: 999px; }
.tab { padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--gray-500); cursor: pointer; transition: all 200ms var(--ease-out); }
.tab.active { background: var(--sage-100); color: var(--sage-600); font-weight: 600; }
.tab:hover:not(.active) { color: var(--sage-600); }

.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  background: var(--gray-700); color: white;
  padding: 12px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.toast .check { width: 18px; height: 18px; border-radius: 999px; background: var(--sage-400); display: flex; align-items: center; justify-content: center; }
.toast .check svg { width: 10px; height: 10px; stroke: white; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.skill-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--sage-100); color: var(--sage-600);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.skill-pill:hover { background: var(--sage-200); }
.skill-pill .x { width: 14px; height: 14px; opacity: 0.6; }
.skill-suggest {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: white; color: var(--gray-600);
  border: 1.5px dashed var(--gray-200);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.skill-suggest:hover { border-color: var(--sage-300); color: var(--sage-600); background: var(--sage-50); }
.skill-suggest .plus { width: 12px; height: 12px; }

.public-cv {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  color: var(--gray-700, #344738);
}
.public-cv-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 28px;
}
.public-cv-photo {
  width: 92px; height: 92px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.public-cv-contact {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin-top: 10px;
  font-size: 14px; color: var(--gray-500);
}
.public-cv-contact .contact-item { display: inline-flex; align-items: center; gap: 5px; }
.public-cv-contact .contact-item svg { color: var(--sage-500); flex-shrink: 0; }
.public-cv-contact .contact-badges { display: inline-flex; align-items: center; gap: 8px; }
.public-cv-contact .contact-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--sage-50); color: var(--sage-600);
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.public-cv-contact .contact-badge:hover { background: var(--sage-100); color: var(--sage-700); }
.public-cv-section { margin-bottom: 28px; }
.public-cv-section h2 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--sage-500); margin: 0 0 12px;
}
.public-cv-entry { margin-bottom: 16px; }
.public-cv-entry ul { margin: 6px 0 0; padding-left: 18px; }
.public-cv-entry li { margin-bottom: 4px; }
.public-cv-entry-head {
  display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; align-items: baseline;
}
.public-cv-dates { font-size: 13px; color: var(--gray-500); white-space: nowrap; }
.public-cv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.public-cv-tag {
  display: inline-block;
  padding: 4px 12px; border-radius: 999px;
  background: var(--sage-50); color: var(--sage-700);
  font-size: 13px;
}
.public-cv-fab {
  position: fixed; right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 900;
}
.public-cv-fab-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: transform 150ms var(--ease-out);
}
.public-cv-fab-btn:hover { transform: translateY(-2px); }
.public-cv-fab-wa { background: #25D366; }
.public-cv-fab-li { background: #0A66C2; }

@media (max-width: 560px) {
  .public-cv-header { flex-direction: column; text-align: center; align-items: center; }
}
