/* Resume builder: layout, spacing and type, in the AzenTool style. */
body { background: #fafafa; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
header { border-bottom: 1px solid var(--border); background: rgba(255,255,255,.92); }
.rz-bar { max-width: 1280px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.rz-bar > div:first-child span:last-child { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.rz-page { max-width: 1280px; margin: 0 auto; padding: 32px 24px 72px; }
.rz-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.rz-head p:first-child, .rz-head > div:first-child > p { font-size: 12px; font-weight: 700; letter-spacing: .14em; margin: 0 0 8px; }
.rz-head h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; margin: 0; max-width: 22ch; }
.rz-head > div:last-child { gap: 10px; font-size: 13px; }

.rz-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 24px; align-items: start; }
.rz-left { display: flex; flex-direction: column; gap: 16px; background: transparent; border: 0; box-shadow: none; max-height: none; overflow: visible; }
.rz-step { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px !important; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.rz-step > div:first-child { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.rz-step > div:first-child > span { width: 30px; height: 30px; font-size: 13px; font-weight: 700; flex: none; }
.rz-step h2 { font-size: 16px; line-height: 1.3; font-weight: 600; margin: 0; letter-spacing: -.005em; }
.rz-step > div:first-child p { font-size: 13px; line-height: 1.4; margin: 2px 0 0; color: #71717a; }

.rz-seg { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; height: auto !important; padding: 4px !important; background: #f4f4f5 !important; border-radius: 12px !important; width: 100%; }
.rz-seg-item { height: 40px !important; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px !important; font-size: 14px !important; font-weight: 600 !important; color: #52525b; border: 0 !important; padding: 0 12px !important; }
.rz-seg-item[data-state=active] { background: #fff !important; color: #c2410c !important; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rz-seg-item svg { width: 16px; height: 16px; }

.rz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.rz-fields > div { min-width: 0; }
.rz-fields > .sm\:col-span-2, .rz-fields > div.sm\:col-span-2 { grid-column: span 2; }
.rz-fields label { display: block; font-size: 13px; font-weight: 500; color: #3f3f46; margin-bottom: 6px; line-height: 1.3; }
.rz-fields .space-y-2 > * + * { margin-top: 0; }
.rz-fields input { height: 40px !important; border-radius: 10px !important; font-size: 14px !important; padding: 0 12px !important; background: #fff; }
.rz-fields textarea { border-radius: 10px !important; font-size: 14px !important; line-height: 1.5 !important; padding: 10px 12px !important; min-height: 88px; background: #fff; resize: vertical; }
.rz-fields input:focus-visible, .rz-fields textarea:focus-visible { border-color: #c2410c !important; box-shadow: 0 0 0 3px rgba(194,65,12,.15) !important; outline: none; }

.rz-primary { width: 100%; height: 48px !important; border-radius: 12px !important; font-size: 15px !important; font-weight: 600 !important; background: #c2410c !important; color: #fff !important; box-shadow: none !important; }
.rz-primary:hover:not(:disabled) { background: #9a3412 !important; }
.rz-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.rz-secondary { height: 44px !important; border-radius: 12px !important; font-size: 14px !important; font-weight: 600 !important; border: 1px solid #d4d4d8 !important; background: #fff !important; color: #18181b !important; }
.rz-secondary:hover { border-color: #c2410c !important; color: #c2410c !important; }
.rz-primary svg, .rz-secondary svg { width: 18px; height: 18px; }

.rz-right { position: sticky; top: 84px; max-height: calc(100vh - 108px); overflow: auto; background: #f4f4f5; border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: none; }
.rz-preview-bar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; padding: 0 2px; }
.rz-preview-bar span:first-child { font-size: 13px; font-weight: 600; color: #3f3f46; }
.rz-paper { background: #fff; max-width: 760px; margin: 0 auto; padding: 48px 52px; min-height: 720px; border-radius: 3px; box-shadow: 0 12px 40px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06); }
.rz-paper h2 { font-size: 30px; line-height: 1.1; }
.rz-paper h3 { border-color: #fed7aa; font-size: 12px; }
.rz-paper textarea { font-size: 14.5px !important; line-height: 1.6 !important; border-radius: 4px; }
.rz-paper textarea:hover, .rz-paper textarea:focus { background: #fff7ed !important; }

@media (max-width: 1023px) {
  .rz-grid { grid-template-columns: 1fr; }
  .rz-right { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .rz-page { padding: 20px 16px 56px; }
  .rz-fields { grid-template-columns: 1fr; }
  .rz-fields > .sm\:col-span-2, .rz-fields > div.sm\:col-span-2 { grid-column: auto; }
  .rz-step { padding: 18px !important; }
  .rz-paper { padding: 28px 22px; min-height: 0; }
  .rz-bar { padding: 0 16px; }
}
