/* ============ SonCV Resume Builder — app chrome ============ */
.soncv-rt { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1e293b; line-height: 1.5; }
.soncv-rt *, .soncv-rt *::before, .soncv-rt *::after { box-sizing: border-box; }

.svb-app { max-width: 1280px; margin: 0 auto; }

/* steps */
.svb-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; overflow-x: auto; }
.svb-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; border: 1px solid transparent; }
.svb-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #cbd5e1; color: #fff; font-size: 12px; }
.svb-steps li.active { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.svb-steps li.active span { background: #2563eb; }
.svb-steps li.done span { background: #16a34a; }

/* main layout */
.svb-main { display: grid; grid-template-columns: 400px 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .svb-main { grid-template-columns: 1fr; } }

/* form */
.svb-form { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; }
.svb-step-body { min-height: 320px; }
.svb-field { display: block; margin-bottom: 14px; }
.svb-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.svb-field input[type="text"], .svb-field input[type="email"], .svb-field input[type="tel"], .svb-field textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; font-family: inherit; color: #0f172a; background: #fff;
}
.svb-field input:focus, .svb-field textarea:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
.svb-field textarea { resize: vertical; }
.svb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.svb-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; align-items: end; }
@media (max-width: 520px) { .svb-grid-2, .svb-grid-3 { grid-template-columns: 1fr; } }
.svb-hint { font-size: 12px; color: #64748b; margin: -6px 0 14px; }
.svb-muted { color: #64748b; }
.svb-subhead { font-size: 14px; margin: 22px 0 10px; color: #0f172a; }
.svb-hr { border: none; border-top: 1px solid #e2e8f0; margin: 20px 0; }
.svb-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; margin-bottom: 14px; background: #f8fafc; }
.svb-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
.svb-link-btn { background: none; border: none; color: #2563eb; cursor: pointer; font-size: 13px; padding: 0; }
.svb-link-btn:hover { text-decoration: underline; }
.svb-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #334155; margin-bottom: 14px; cursor: pointer; }

/* tags */
.svb-tags { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px; }
.svb-tags:focus-within { outline: 2px solid #93c5fd; border-color: #2563eb; }
.svb-tag { display: inline-flex; align-items: center; gap: 6px; background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 13px; font-weight: 600; }
.svb-tag button { border: none; background: #bfdbfe; color: #1e40af; border-radius: 50%; width: 20px; height: 20px; line-height: 1; cursor: pointer; font-size: 14px; }
.svb-tag-input { border: none; outline: none; flex: 1; min-width: 140px; font-size: 14px; padding: 6px; font-family: inherit; }

/* buttons */
.svb-btn { display: inline-block; border: 1px solid transparent; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; text-align: center; }
.svb-btn-primary { background: #2563eb; color: #fff; }
.svb-btn-primary:hover { background: #1d4ed8; }
.svb-btn-secondary { background: #f1f5f9; color: #0f172a; border-color: #e2e8f0; }
.svb-btn-secondary:hover { background: #e2e8f0; }
.svb-btn-ghost { background: transparent; color: #475569; }
.svb-btn-ghost:hover { background: #f1f5f9; }
.svb-btn-lg { padding: 14px 28px; font-size: 16px; }
.svb-danger { color: #dc2626; }
.svb-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.svb-save-status { font-size: 12px; color: #16a34a; }

/* export step */
.svb-export h3 { margin: 0 0 8px; font-size: 20px; }
.svb-export-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.svb-ats-cta { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 18px 20px; margin: 4px 0; }
.svb-ats-cta h4 { margin: 0 0 6px; font-size: 16px; color: #1e3a8a; }
.svb-ats-cta p { margin: 0 0 12px; font-size: 14px; }

/* preview column */
.svb-preview-col { min-width: 0; }
.svb-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.svb-tpls { display: flex; gap: 6px; }
.svb-tpls button { border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer; color: #475569; }
.svb-tpls button.active { background: #0f172a; color: #fff; border-color: #0f172a; }
.svb-accents { display: flex; gap: 8px; align-items: center; }
.svb-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; cursor: pointer; padding: 0; }
.svb-swatch.active { box-shadow: 0 0 0 2px #0f172a; }
.svb-preview { background: #e2e8f0; border-radius: 12px; padding: 28px 20px; }

/* ============ resume templates (screen) ============ */
.rtpl { background: #fff; color: #1e293b; max-width: 800px; margin: 0 auto; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); border-radius: 4px; overflow: hidden; font-size: 13.5px; line-height: 1.55; }
.rtpl h1, .rtpl h2, .rtpl h3, .rtpl p, .rtpl ul { margin: 0; }
.rtpl ul { padding-left: 18px; }
.rtpl li { margin-bottom: 3px; }
.rtpl section { margin-bottom: 16px; }
.rtpl section:last-child { margin-bottom: 0; }
.rtpl-empty { padding: 60px 30px; text-align: center; color: #64748b; }

/* --- Modern: accent sidebar --- */
.rtpl-modern { display: grid; grid-template-columns: 32% 1fr; }
.rtpl-modern > * { min-width: 0; }
.rtpl-modern .rtpl-side { background: var(--accent, #2563eb); color: #fff; padding: 28px 22px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rtpl-modern .rtpl-side h1 { font-size: 24px; line-height: 1.2; margin-bottom: 4px; }
.rtpl-modern .rtpl-side .rtpl-role { font-size: 13px; opacity: .85; margin-bottom: 18px; }
.rtpl-modern .rtpl-side-block { margin-bottom: 20px; }
.rtpl-modern .rtpl-side-block h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; opacity: .75; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 6px; }
.rtpl-modern .rtpl-side-block p, .rtpl-modern .rtpl-side-block li { font-size: 12.5px; overflow-wrap: anywhere; }
.rtpl-modern .rtpl-side-block ul { list-style: none; padding: 0; }
.rtpl-modern .rtpl-side-block li { margin-bottom: 4px; }
.rtpl-modern .rtpl-main { padding: 28px 26px; }
.rtpl-modern .rtpl-main h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent, #2563eb); margin-bottom: 8px; border-bottom: 2px solid var(--accent, #2563eb); padding-bottom: 4px; }
.rtpl-modern .rtpl-job { margin-bottom: 12px; }
.rtpl-modern .rtpl-job-head { display: flex; justify-content: space-between; gap: 4px 10px; margin-bottom: 2px; flex-wrap: wrap; }
.rtpl-modern .rtpl-job-head > * { min-width: 0; }
.rtpl-modern .rtpl-job-head span { color: #475569; }
.rtpl-modern .rtpl-date { font-size: 12px; color: #64748b; white-space: nowrap; }

/* --- Classic: centered serif --- */
.rtpl-classic { padding: 36px 40px; font-family: Georgia, "Times New Roman", serif; }
.rtpl-classic header { text-align: center; margin-bottom: 18px; }
.rtpl-classic h1 { font-size: 28px; letter-spacing: 1px; margin-bottom: 2px; }
.rtpl-classic .rtpl-role { font-style: italic; color: #475569; margin-bottom: 6px; }
.rtpl-classic .rtpl-contact { font-size: 12.5px; color: #475569; }
.rtpl-classic h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; text-align: center; border-top: 1px solid #94a3b8; border-bottom: 1px solid #94a3b8; padding: 6px 0; margin-bottom: 10px; }
.rtpl-classic .rtpl-job { margin-bottom: 10px; }
.rtpl-classic .rtpl-job-head { display: flex; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.rtpl-classic .rtpl-job-head > *, .rtpl-minimal .rtpl-job-head > * { min-width: 0; }
.rtpl-classic .rtpl-date { font-size: 12.5px; color: #475569; white-space: nowrap; }

/* --- Minimal: airy sans --- */
.rtpl-minimal { padding: 36px 40px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.rtpl-minimal header { margin-bottom: 20px; }
.rtpl-minimal h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 2px; }
.rtpl-minimal .rtpl-role { font-size: 15px; color: #475569; margin-bottom: 6px; }
.rtpl-minimal .rtpl-contact { font-size: 12.5px; color: #64748b; }
.rtpl-minimal h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent, #0f172a); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #e2e8f0; }
.rtpl-minimal .rtpl-job { margin-bottom: 12px; }
.rtpl-minimal .rtpl-job-head { display: flex; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.rtpl-minimal .rtpl-job-head > * { min-width: 0; }
.rtpl-minimal .rtpl-company { color: #475569; font-size: 13px; margin-bottom: 2px; }
.rtpl-minimal .rtpl-date { font-size: 12.5px; color: #94a3b8; white-space: nowrap; }
.rtpl-minimal ul { list-style: disc; }

@media (max-width: 640px) {
	.rtpl-modern { grid-template-columns: 1fr; }
	.rtpl-classic, .rtpl-minimal { padding: 24px 20px; }
	.svb-preview { padding: 16px 10px; }
}

/* ============ App-like mobile stepper (replaces the scrolling pills) ============ */
.svb-stepper-mobile { display: none; }
@media (max-width: 640px) {
	.svb-steps { display: none; }
	.svb-stepper-mobile { display: block; margin: 0 0 16px; }
	.svb-stepper-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
	.svb-stepper-count { font-size: 12.5px; font-weight: 700; color: #2563eb; text-transform: uppercase; letter-spacing: .4px; }
	.svb-stepper-name { font-size: 15px; font-weight: 700; color: #0f172a; }
	.svb-stepper-bar { height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
	.svb-stepper-fill { display: block; height: 100%; width: 0; background: #2563eb; border-radius: 999px; transition: width .25s ease; }
	/* app-size tap targets */
	.svb-btn { min-height: 48px; }
	.svb-nav .svb-btn { padding-left: 22px; padding-right: 22px; }
}
