@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');
@import 'tailwindcss.css';
@import 'tw-animate-css.css';

@theme {
  --font-sans: 'DM Sans', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
}

:root {
  --background: 210 27% 96%;
  --foreground: 222 47% 11%;
  --border: 214 26% 88%;
  --input: 214 26% 88%;
  --ring: 221 83% 53%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 221 83% 53%;
  --primary-foreground: 0 0% 100%;
  --secondary: 214 32% 95%;
  --secondary-foreground: 222 47% 20%;
  --muted: 214 25% 93%;
  --muted-foreground: 215 16% 45%;
  --accent: 215 92% 95%;
  --accent-foreground: 221 83% 32%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;
  --radius: 0.85rem;
  --app-font-sans: 'DM Sans', sans-serif;
  --app-font-serif: Georgia, serif;
  --app-font-mono: 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f3f6f8; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  font-family: var(--app-font-sans);
  color: #0f172a;
  background: #f3f6f8;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.app-shell { min-height: 100dvh; background: #f3f6f8; }
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #dce6f1;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}
.brand { display:flex; align-items:center; gap: 13px; min-width: 220px; }
.brand img { width: 166px; height: auto; display:block; }
.brand-note { color:#64748b; font-size:12px; border-left:1px solid #dce6f1; padding-left:13px; white-space:nowrap; }
.top-actions { display:flex; align-items:center; gap:8px; }
.icon-button, .quiet-button, .primary-button, .success-button, .outline-button {
  border: 0; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius: 10px; min-height: 39px; padding: 0 13px; font-weight: 700; font-size: 13px;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.icon-button:hover, .quiet-button:hover, .primary-button:hover, .success-button:hover, .outline-button:hover { transform: translateY(-1px); }
.icon-button { width:39px; padding:0; color:#1e3a8a; background:#eff6ff; }
.quiet-button { color:#1e3a8a; background:#eef3f8; border:1px solid #dce6f1; }
.quiet-button:hover { background:#e3edf8; }
.primary-button { color:white; background:#2563eb; box-shadow:0 5px 16px rgba(37,99,235,.24); }
.primary-button:hover { background:#1d4ed8; box-shadow:0 7px 20px rgba(37,99,235,.3); }
.success-button { color:white; background:#059669; box-shadow:0 5px 16px rgba(5,150,105,.22); }
.success-button:hover { background:#047857; }
.outline-button { color:#2563eb; background:#fff; border:1px solid #bfdbfe; }
.outline-button:hover { background:#eff6ff; }

.workspace { display:grid; grid-template-columns:minmax(390px, 515px) minmax(0,1fr); min-height:calc(100dvh - 72px); }
.editor-pane { background:#fff; border-right:1px solid #dce6f1; padding:24px 28px 38px; overflow-y:auto; }
.preview-pane { min-width:0; padding:24px; position:relative; overflow-y:auto; }
.pane-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:20px; }
.eyebrow { color:#2563eb; text-transform:uppercase; letter-spacing:.13em; font-size:10px; font-weight:800; }
h1,h2,h3,p { margin-top:0; }
.pane-heading h1 { font-family:var(--font-display); font-size:26px; line-height:1.15; letter-spacing:-.04em; margin:6px 0 7px; color:#0f172a; }
.pane-heading p { color:#64748b; font-size:13px; line-height:1.5; margin-bottom:0; }
.save-state { display:flex; align-items:center; gap:6px; color:#059669; font-size:11px; white-space:nowrap; margin-top:5px; }
.save-dot { width:7px; height:7px; border-radius:50%; background:#059669; }

.stepper { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-bottom:22px; padding:10px 14px; border-radius:16px; background:#f8fafc; border:1px solid #e8eef5; overflow:hidden; }
.step { display:flex; align-items:center; gap:8px; color:#94a3b8; background:transparent; border:0; padding:4px 6px; text-align:left; cursor:pointer; flex:0 0 auto; transition:all 0.3s cubic-bezier(0.16, 1, 0.3, 1); border-radius:9999px; }
.step-number { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex:0 0 28px; border:1px solid #d4deea; color:#8290a2; background:white; font-size:12px; font-weight:800; transition:all 0.3s ease; }
.step-label { font-size:12px; font-weight:700; white-space:nowrap; overflow:hidden; max-width:0; opacity:0; transition:max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin 0.3s ease; margin-left:-4px; }
.step.active { color:#1e3a8a; background:#eff6ff; padding-right:14px; flex:0 0 auto; }
.step.active .step-number { color:white; background:#2563eb; border-color:#2563eb; box-shadow:0 4px 12px rgba(37,99,235,.3); }
.step.active .step-label { max-width:140px; opacity:1; margin-left:0; }
.step.done { color:#059669; }
.step.done .step-number { color:#059669; border-color:#a7f3d0; background:#ecfdf5; }

.section-card { border:1px solid #dce6f1; border-radius:16px; padding:18px; margin-bottom:14px; background:#fff; box-shadow:0 1px 2px rgba(15,23,42,.02); animation:rise .28s ease both; }
.section-card.accent-card { background:linear-gradient(135deg,#f5f9ff,#fff); border-color:#bfdbfe; }
.section-title { display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:16px; color:#0f172a; margin-bottom:4px; letter-spacing:-.02em; }
.section-title svg { color:#2563eb; }
.section-help { color:#64748b; font-size:12px; line-height:1.5; margin:0 0 17px 30px; }
.fields { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.field { display:flex; flex-direction:column; gap:6px; min-width:0; }
.field.full { grid-column:1/-1; }
.field label { font-size:11px; font-weight:800; letter-spacing:.01em; color:#334155; }
.field input, .field textarea, .field select {
  width:100%; border:1px solid #d7e1ed; border-radius:10px; padding:10px 11px; color:#0f172a; outline:none; background:#fff; font-size:13px;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height:100px; resize:vertical; line-height:1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.11); }
.field small { color:#94a3b8; font-size:10px; line-height:1.4; }
.input-prefix { display:flex; align-items:center; border:1px solid #d7e1ed; border-radius:10px; overflow:hidden; background:#fff; }
.input-prefix span { color:#64748b; padding-left:10px; font-size:12px; white-space:nowrap; }
.input-prefix input { border:0; border-radius:0; min-width:0; }
.input-prefix:focus-within { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.11); }

.repeat-list { display:grid; gap:10px; margin-bottom:10px; }
.repeat-item { position:relative; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:15px 13px 13px; }
.repeat-item h4 { margin:0 0 12px; font-size:11px; color:#64748b; text-transform:uppercase; letter-spacing:.1em; }
.repeat-item .fields { gap:10px; }
.remove-button { position:absolute; right:10px; top:10px; border:0; width:28px; height:28px; display:grid; place-items:center; border-radius:8px; color:#b42318; background:#fff1f2; }
.remove-button:hover { background:#ffe4e6; }
.add-button { width:100%; min-height:38px; color:#2563eb; border:1px dashed #93c5fd; background:#eff6ff; border-radius:10px; display:flex; align-items:center; justify-content:center; gap:7px; font-weight:800; font-size:12px; }
.add-button:hover { background:#dbeafe; border-style:solid; }
.empty-repeat { border:1px dashed #cbd5e1; border-radius:10px; text-align:center; color:#94a3b8; padding:16px 12px; font-size:12px; margin-bottom:10px; }

.photo-row { display:flex; align-items:center; gap:14px; padding:11px; background:#f8fafc; border-radius:12px; border:1px solid #e2e8f0; }
.avatar-small { width:58px; height:58px; object-fit:cover; border-radius:14px; background:#dbeafe; display:grid; place-items:center; color:#2563eb; font-size:20px; font-weight:800; }
.photo-actions { display:flex; flex-wrap:wrap; gap:8px; }
.file-button { display:inline-flex; align-items:center; gap:7px; border:1px solid #bfdbfe; border-radius:9px; background:#eff6ff; color:#2563eb; padding:8px 10px; font-size:11px; font-weight:800; cursor:pointer; }
.file-button input { display:none; }

.interest-grid { display:flex; flex-wrap:wrap; gap:7px; }
.interest-chip { border:1px solid #dbe4ee; background:white; color:#475569; border-radius:999px; padding:8px 11px; font-size:11px; font-weight:700; }
.interest-chip.selected { border-color:#2563eb; color:#1e3a8a; background:#eff6ff; box-shadow:0 0 0 2px rgba(37,99,235,.08); }
.interest-count { color:#94a3b8; font-size:11px; margin:10px 0 0; }

.publish-banner { padding:15px; border-radius:14px; background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; display:flex; gap:11px; align-items:flex-start; }
.publish-banner svg { flex:0 0 auto; margin-top:2px; }
.publish-banner strong { font-size:13px; display:block; margin-bottom:3px; }
.publish-banner span { display:block; color:#047857; font-size:11px; line-height:1.45; }
.publish-link { margin-top:12px; padding:10px; background:#fff; border:1px solid #bbf7d0; border-radius:9px; display:flex; align-items:center; gap:8px; }
.publish-link code { font-size:11px; color:#065f46; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; }

.nav-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:4px; }
.nav-actions .right-actions { display:flex; gap:8px; }
.mobile-preview-toggle { display:none; }
.preview-head { display:flex; align-items:center; justify-content:space-between; gap:12px; max-width:850px; margin:0 auto 14px; }
.preview-head h2 { font-family:var(--font-display); font-size:15px; margin:0; letter-spacing:-.02em; }
.preview-head span { font-size:11px; color:#64748b; }
.preview-board { display:flex; justify-content:center; padding:10px 10px 50px; }
.resume-paper { width:min(100%, 760px); min-height:1000px; background:#fff; border:1px solid #e0e8f0; box-shadow:0 18px 42px rgba(30,58,138,.13); border-radius:4px; overflow:hidden; }
.resume-top { background:#1e3a8a; color:#fff; display:grid; grid-template-columns:1fr 158px; min-height:205px; }
.resume-identity { padding:33px 34px; display:flex; flex-direction:column; justify-content:center; }
.resume-identity h1 { font-family:var(--font-display); font-size:31px; letter-spacing:-.05em; line-height:1.06; margin:0 0 8px; }
.resume-identity h2 { color:#bfdbfe; font-size:14px; font-weight:600; margin:0 0 19px; }
.resume-contact { display:flex; flex-wrap:wrap; gap:7px 14px; color:#dbeafe; font-size:10px; }
.resume-contact span { display:inline-flex; gap:4px; align-items:center; }
.resume-photo { margin:24px 25px 24px 0; width:133px; height:157px; object-fit:cover; border:4px solid rgba(255,255,255,.22); background:#dbeafe; align-self:center; }
.resume-photo-fallback { display:grid; place-items:center; color:#2563eb; font-size:38px; font-weight:800; }
.resume-body { display:grid; grid-template-columns:1fr 230px; }
.resume-main { padding:29px 31px 35px; }
.resume-side { background:#f7fafc; border-left:1px solid #e7edf3; padding:29px 20px; }
.resume-section { margin-bottom:25px; }
.resume-section h3 { font-family:var(--font-display); color:#1e3a8a; font-size:12px; text-transform:uppercase; letter-spacing:.14em; margin:0 0 10px; padding-bottom:7px; border-bottom:2px solid #dbeafe; }
.resume-section p { color:#334155; font-size:11px; line-height:1.65; margin:0; }
.resume-entry { position:relative; padding-left:15px; margin:0 0 16px; border-left:2px solid #bfdbfe; }
.resume-entry::before { content:''; position:absolute; left:-5px; top:2px; width:8px; height:8px; background:#2563eb; border-radius:50%; }
.resume-entry h4 { color:#0f172a; font-size:12px; margin:0 0 3px; }
.resume-entry .meta { color:#2563eb; font-size:10px; font-weight:700; margin-bottom:5px; }
.resume-entry .desc { color:#475569; font-size:10px; line-height:1.55; margin:0; }
.skill-row { margin-bottom:11px; }
.skill-head { display:flex; justify-content:space-between; gap:7px; font-size:10px; color:#334155; margin-bottom:5px; }
.skill-bar { height:5px; background:#dce6f1; border-radius:9px; overflow:hidden; }
.skill-fill { height:100%; background:#2563eb; border-radius:9px; }
.language { display:flex; align-items:center; justify-content:space-between; gap:5px; margin:0 0 9px; font-size:10px; color:#334155; }
.stars { color:#2563eb; letter-spacing:1px; font-size:10px; }
.tag-list { display:flex; flex-wrap:wrap; gap:5px; }
.resume-tag { background:#dbeafe; color:#1e3a8a; border-radius:4px; padding:5px 7px; font-size:9px; font-weight:700; }
.social-row { display:grid; gap:6px; }
.social-row span { color:#2563eb; font-size:10px; font-weight:700; }
.muted-empty { color:#94a3b8; font-size:10px; font-style:italic; }
.wa-button { display:flex; align-items:center; justify-content:center; gap:6px; background:#059669; color:#fff; border-radius:8px; padding:9px; font-weight:800; font-size:10px; margin-top:7px; }
.resume-footer { color:#94a3b8; border-top:1px solid #e2e8f0; padding-top:10px; font-size:9px; }

.toast { position:fixed; right:25px; bottom:24px; z-index:50; display:flex; align-items:center; gap:9px; max-width:min(360px, calc(100vw - 30px)); background:#0f172a; color:white; border-radius:12px; padding:12px 14px; box-shadow:0 12px 28px rgba(15,23,42,.24); font-size:12px; animation:toast-in .25s ease both; }
.toast.success { background:#065f46; }
.toast.error { background:#991b1b; }
.modal-backdrop { position:fixed; inset:0; z-index:40; background:rgba(15,23,42,.48); display:grid; place-items:center; padding:20px; }
.modal { width:min(100%, 480px); background:#fff; border-radius:18px; padding:24px; box-shadow:0 22px 60px rgba(15,23,42,.27); animation:rise .22s ease both; }
.modal h3 { font-family:var(--font-display); margin-bottom:7px; font-size:19px; letter-spacing:-.03em; }
.modal p { color:#64748b; font-size:13px; line-height:1.5; }
.modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:20px; }

@keyframes rise { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@keyframes toast-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@media print {
  body { background:#fff; }
  .topbar, .editor-pane, .preview-head, .mobile-preview-toggle, .toast { display:none !important; }
  .workspace { display:block; min-height:auto; }
  .preview-pane { padding:0; overflow:visible; }
  .preview-board { padding:0; }
  .resume-paper { width:210mm; min-height:297mm; box-shadow:none; border:0; }
}
@media (max-width: 980px) {
  .topbar { padding:0 16px; }
  .brand-note { display:none; }
  .top-actions .optional-action { display:none; }
  .workspace { grid-template-columns:1fr; }
  .editor-pane { border-right:0; padding:20px 16px 28px; }
  .preview-pane { border-top:1px solid #dce6f1; padding:20px 12px; }
  .mobile-preview-toggle { display:inline-flex; }
  .preview-pane.is-hidden { display:none; }
  .editor-pane.is-hidden { display:none; }
}
@media (max-width: 560px) {
  .topbar { height:64px; }
  .brand img { width:145px; }
  .top-actions { gap:5px; }
  .top-actions .quiet-button span { display:none; }
  .top-actions .quiet-button { padding:0 9px; min-width:39px; }
  .workspace { min-height:calc(100dvh - 64px); }
  .pane-heading h1 { font-size:22px; }
  .fields { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .stepper { padding:8px; }
  .step-label { display:none; }
  .step:not(:last-child)::after { margin:0 5px; }
  .resume-top { grid-template-columns:1fr 94px; min-height:170px; }
  .resume-identity { padding:23px 19px; }
  .resume-identity h1 { font-size:23px; }
  .resume-identity h2 { font-size:11px; margin-bottom:14px; }
  .resume-contact { display:grid; gap:5px; }
  .resume-photo { width:78px; height:100px; margin-right:14px; }
  .resume-body { grid-template-columns:1fr; }
  .resume-side { border-left:0; border-top:1px solid #e7edf3; padding:22px 20px; }
  .resume-main { padding:23px 19px; }
  .nav-actions { align-items:stretch; }
  .nav-actions .right-actions { flex:1; }
  .nav-actions button { flex:1; }
}
/* Ajustes aplicados ao gerador atual para espelhar o modelo visual. */
body.mod-editor {
  font-family: var(--app-font-sans);
  background: #f3f6f8;
}

.editor-container {
  background: #f3f6f8;
}

.form-panel {
  flex: 0 0 45%;
  max-width: 515px;
  padding: 24px 28px 38px;
  background: #fff;
}

.preview-panel {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  background: #f8fafc;
  padding: 24px;
}

.section-card > .section-title {
  margin-bottom: 17px;
}

.section-card > .section-title + div:not(.fields):not(.field):not([id]) {
  padding: 0;
}

#aiRawInput {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
  border: 1px solid #d7e1ed;
  border-radius: 10px;
  padding: 10px 11px;
  color: #0f172a;
  outline: none;
  background: #fff;
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

#aiRawInput:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.11);
}

#container-social,
#container-experiencias,
#container-educacao,
#container-certificados,
#container-habilidades,
#container-idiomas {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.repeat-item {
  padding: 15px 52px 13px 13px;
}

.repeat-item .field input,
.repeat-item .field textarea,
.repeat-item .field select {
  font-size: 13px;
}

.remove-button,
.btn-remove-item {
  right: 10px;
  top: 10px;
  border-radius: 8px;
}

.photo-row {
  margin-top: 0;
}

@media (max-width: 900px) {
  .form-panel {
    flex-basis: auto;
    max-width: none;
    padding: 20px 16px 28px;
  }

  .preview-panel {
    padding: 20px 12px;
  }
}
.publish-ready-card {
  border-color: #bfdbfe;
  background: #fff;
  padding: 18px;
}

.publish-ready-title {
  color: #0f172a;
  margin-bottom: 12px !important;
}

.publish-ready-title i {
  color: #2563eb;
}

.publish-ready-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #86efac;
  border-radius: 12px;
  background: #ecfdf5;
  padding: 15px 16px;
  margin-bottom: 15px;
  color: #047857;
}

.publish-ready-box > i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #059669;
  font-size: 17px;
}

.publish-ready-box strong {
  display: block;
  margin-bottom: 4px;
  color: #065f46;
  font-size: 13px;
  font-weight: 800;
}

.publish-ready-box span {
  display: block;
  color: #047857;
  font-size: 11.5px;
  line-height: 1.5;
}

.publish-ready-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #059669;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(5,150,105,.22);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.publish-ready-button:hover {
  background: #047857;
  box-shadow: 0 7px 20px rgba(5,150,105,.28);
  transform: translateY(-1px);
}
/* Refinamento dos botoes do topo do gerador. */
.editor-header {
  padding: 0 24px;
}

.editor-header .actions-area {
  gap: 8px;
  flex-wrap: nowrap;
}

.editor-header .btn-header {
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0;
  box-shadow: none;
}

.editor-header .btn-header i {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 auto;
}

.editor-header .btn-secondary-custom {
  background: #fff;
  color: #1d4ed8;
  border: 1px solid #d7e1ed;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.editor-header .btn-secondary-custom:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
  box-shadow: 0 6px 16px rgba(37,99,235,.10);
}

.editor-header .btn-success-custom {
  min-width: 218px;
  background: #059669;
  color: #fff;
  border: 1px solid #047857;
  box-shadow: 0 8px 18px rgba(5,150,105,.20);
}

.editor-header .btn-success-custom:hover {
  background: #047857;
  box-shadow: 0 10px 24px rgba(5,150,105,.28);
}

#btn-exemplo {
  min-width: 144px;
}

#btn-exportar-json {
  min-width: 126px;
}

#btn-re-editar {
  min-width: 178px;
}

@media (max-width: 1100px) {
  .editor-header {
    align-items: stretch;
  }

  .editor-header .actions-area {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .editor-header .btn-header {
    flex: 0 0 auto;
  }
}
/* RE-ADDED MODAL STYLES FOR CROP */
.modal-overlay {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.checkout-modal {
    background: white;
    padding: 24px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.crop-modal-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.cropper-container {
    width: 100%;
    max-height: 400px;
}

/* Alinhamento fino do aviso dentro do card de publicacao. */
.publish-ready-box {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: 11px;
  padding: 14px 16px;
}

.publish-ready-box > i {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-size: 16px;
  line-height: 1;
}

.publish-ready-box div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.publish-ready-box strong {
  margin: 0;
  line-height: 1.3;
}

.publish-ready-box span {
  line-height: 1.45;
}
/* Versao limpa do aviso de publicacao, sem icone colado na margem. */
.publish-ready-box {
  display: block;
  padding: 14px 17px;
}

.publish-ready-box > i {
  display: none;
}

.publish-ready-box div {
  display: block;
}

.publish-ready-box strong {
  display: block;
  margin: 0 0 6px;
}
/* Mais respiro interno no aviso de publicacao. */
.publish-ready-box {
  padding: 17px 22px;
}

.publish-ready-box strong,
.publish-ready-box span {
  max-width: 96%;
}

.publish-ready-box span {
  line-height: 1.55;
}
/* Mobile: formulario primeiro e preview do curriculo no fim da pagina. */
@media (max-width: 900px) {
  body.mod-editor {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .editor-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: calc(100dvh - 65px);
    overflow: visible;
  }

  .form-panel {
    order: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #dce6f1;
  }

  .preview-panel {
    order: 2;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 760px;
    overflow: visible;
    border-top: 1px solid #dce6f1;
  }

  #area-curriculo-preview {
    height: auto !important;
    min-height: 760px;
  }
}
/* Mobile: escala responsiva do preview sem alterar o modelo desktop. */
@media (max-width: 900px) {
  .preview-panel {
    overflow: hidden;
  }

  #area-curriculo-preview {
    overflow: hidden;
    align-items: flex-start !important;
  }

  #area-curriculo-preview > div {
    flex: 0 0 1024px;
    transform-origin: top center !important;
  }
}

@media (max-width: 430px) {
  #area-curriculo-preview > div {
    transform: scale(.36) !important;
    margin-bottom: -880px !important;
  }

  .preview-panel,
  #area-curriculo-preview {
    min-height: 560px;
  }
}

@media (min-width: 431px) and (max-width: 520px) {
  #area-curriculo-preview > div {
    transform: scale(.44) !important;
    margin-bottom: -780px !important;
  }

  .preview-panel,
  #area-curriculo-preview {
    min-height: 680px;
  }
}

@media (min-width: 521px) and (max-width: 700px) {
  #area-curriculo-preview > div {
    transform: scale(.55) !important;
    margin-bottom: -620px !important;
  }

  .preview-panel,
  #area-curriculo-preview {
    min-height: 820px;
  }
}
/* Corre??o dos itens din?micos renderizados pelo JS atual. */
.repeat-item .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.repeat-item .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.repeat-item .form-group.full-width {
  grid-column: 1 / -1;
}

.repeat-item .form-group label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #334155;
}

.repeat-item .form-group input,
.repeat-item .form-group textarea,
.repeat-item .form-group select {
  width: 100%;
  border: 1px solid #d7e1ed;
  border-radius: 10px;
  padding: 10px 11px;
  color: #0f172a;
  outline: none;
  background: #fff;
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.repeat-item .form-group input:focus,
.repeat-item .form-group textarea:focus,
.repeat-item .form-group select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.11);
}

.repeat-item .form-group textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .repeat-item .form-grid {
    grid-template-columns: 1fr;
  }
}