/* SkillHost Resume Builder v1 */

.sh-resume-ai-panel{background:linear-gradient(135deg,#f8fbff,#fff);border:1px solid #bfdbfe;border-radius:14px;padding:17px 18px;margin-bottom:16px}
.sh-resume-ai-head{display:flex;justify-content:space-between;align-items:center;gap:15px}
.sh-resume-ai-head>div{display:flex;align-items:center;gap:10px}
.sh-resume-ai-head strong{display:block;font-size:14px;color:#111827}
.sh-resume-ai-head small{display:block;color:#64748b;font-size:11px;margin-top:2px}
.sh-ai-badge{background:#2563eb;color:#fff;border-radius:6px;padding:4px 7px;font-size:10px;font-weight:900}
.sh-resume-ai-btn,.sh-ai-action{border:1px solid #bfdbfe;background:#fff;color:#1d4ed8;border-radius:7px;padding:8px 10px;font-size:11px;font-weight:800;cursor:pointer}
.sh-resume-ai-btn{background:#2563eb;color:#fff;border-color:#2563eb}
.sh-resume-ai-btn:disabled,.sh-ai-action:disabled{opacity:.55;cursor:not-allowed}
.sh-ai-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.sh-ai-result{margin-top:13px;border:1px solid #dbeafe;background:#fff;border-radius:9px;padding:13px;font-size:12px;color:#334155}
.sh-ai-result[hidden]{display:none}
.sh-ai-result.is-loading{display:flex;align-items:center;gap:8px}
.sh-ai-spinner{width:14px;height:14px;border:2px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;animation:sh-ai-spin .7s linear infinite}
@keyframes sh-ai-spin{to{transform:rotate(360deg)}}
.sh-ai-result-text{line-height:1.65}
.sh-ai-result-actions{display:flex;gap:7px;margin-top:10px}
.sh-ai-copy,.sh-ai-apply{border:0;border-radius:6px;padding:7px 10px;font-size:11px;font-weight:800;cursor:pointer}
.sh-ai-copy{background:#e2e8f0;color:#334155}
.sh-ai-apply{background:#2563eb;color:#fff}
.sh-score-row{display:flex;justify-content:space-between;align-items:center;gap:15px}
.sh-score-row span{display:block;font-size:11px;color:#64748b}
.sh-score-row strong{display:block;font-size:25px;color:#111827;margin-top:2px}
.sh-score-circle{width:52px;height:52px;border-radius:50%;background:conic-gradient(#2563eb var(--score),#e2e8f0 0);display:grid;place-items:center;position:relative}
.sh-score-circle:after{content:"";position:absolute;width:40px;height:40px;border-radius:50%;background:#fff}
.sh-score-circle b{position:relative;z-index:1;font-size:12px;color:#1d4ed8}
.sh-check-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}
.sh-check{padding:7px 8px;border-radius:6px;background:#f8fafc;font-size:11px}
.sh-check span{font-weight:900;margin-right:6px}
.sh-check.ok{color:#166534}
.sh-check.bad{color:#b91c1c}
.sh-ai-match{margin-top:11px;padding-top:10px;border-top:1px solid #e2e8f0}
.sh-ai-match strong{font-size:11px;color:#111827}
.sh-ai-match p{margin:4px 0 0;line-height:1.5;font-size:11px}
.sh-ai-warning strong{color:#b45309}
.sh-ai-list{margin:6px 0 0 18px;padding:0;font-size:11px;line-height:1.6}
.sh-ai-help{font-size:12px;color:#64748b;margin:-5px 0 12px}
.sh-job-match-actions{margin-top:10px}

.sh-resume-app{max-width:1500px;margin:30px auto;padding:0 20px;color:#172033;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.sh-resume-topbar{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px;padding:28px;border-radius:18px;background:#0f172a;color:#fff}
.sh-resume-kicker{font-size:11px;font-weight:800;letter-spacing:.14em;color:#93c5fd}
.sh-resume-topbar h1{margin:6px 0;font-size:32px;line-height:1.1;color:#fff}
.sh-resume-topbar p{margin:0;color:#cbd5e1}
.sh-resume-actions{display:flex;gap:10px;flex-shrink:0}
.sh-resume-btn{border:0;border-radius:9px;padding:12px 18px;font-weight:800;cursor:pointer}
.sh-resume-btn-light{background:#fff;color:#0f172a}
.sh-resume-btn-primary{background:#2563eb;color:#fff}
.sh-resume-layout{display:grid;grid-template-columns:minmax(420px,1fr) minmax(560px,760px);gap:24px;align-items:start}
.sh-resume-editor{min-width:0}
.sh-resume-progress{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:15px 17px;margin-bottom:16px}
.sh-resume-progress>div:first-child{display:flex;justify-content:space-between;font-size:13px;margin-bottom:9px}
.sh-resume-progress-track{height:7px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.sh-resume-progress-track span{display:block;height:100%;width:0;background:#2563eb;border-radius:999px;transition:width .25s}
.sh-resume-panel{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:20px;margin-bottom:16px}
.sh-resume-panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:17px}
.sh-resume-panel-head>div{display:flex;align-items:center;gap:10px}
.sh-resume-panel-head span{font-size:11px;font-weight:900;color:#2563eb}
.sh-resume-panel h2{font-size:17px;margin:0;color:#111827}
.sh-resume-panel small{color:#64748b}
.sh-add-btn,.sh-remove-btn{border:0;background:none;color:#2563eb;font-weight:800;cursor:pointer;font-size:12px}
.sh-remove-btn{color:#dc2626}
.sh-resume-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.sh-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#475569}
.sh-field-full{grid-column:1/-1}
.sh-field input,.sh-field textarea,.sh-resume-textarea{width:100%;box-sizing:border-box;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#111827;padding:11px 12px;font:inherit;font-weight:500;outline:none}
.sh-field input:focus,.sh-field textarea:focus,.sh-resume-textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.sh-resume-textarea{resize:vertical;min-height:85px}
.sh-repeat-card{border:1px solid #e2e8f0;border-radius:11px;padding:15px;margin-bottom:12px;background:#f8fafc}
.sh-repeat-head{display:flex;justify-content:space-between;margin-bottom:13px}
.sh-empty-editor{border:1px dashed #cbd5e1;border-radius:9px;padding:20px;text-align:center;color:#64748b;font-size:13px}
.sh-resume-preview-wrap{position:sticky;top:20px;min-width:0}
.sh-resume-preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#fff;border:1px solid #e2e8f0;border-radius:12px 12px 0 0;padding:12px 14px}
.sh-resume-preview-toolbar>div:first-child{display:flex;align-items:center;gap:9px}
.sh-resume-preview-toolbar strong{font-size:13px}
.sh-resume-preview-toolbar span{font-size:11px;color:#64748b}
.sh-template-switcher{display:flex;gap:4px}
.sh-template-switcher button{border:1px solid #dbe3ef;background:#fff;border-radius:6px;padding:6px 9px;font-size:11px;font-weight:800;cursor:pointer;color:#475569}
.sh-template-switcher button.active{background:#2563eb;border-color:#2563eb;color:#fff}
.sh-resume-paper{background:#fff;width:100%;max-width:760px;min-height:1050px;margin:0 auto;padding:54px 58px;box-sizing:border-box;box-shadow:0 15px 45px rgba(15,23,42,.12);color:#172033}
.sh-paper-header{border-bottom:2px solid #172033;padding-bottom:17px;margin-bottom:24px}
.sh-paper-header h1{font-size:31px;line-height:1.05;margin:0 0 5px;color:#111827}
.sh-paper-header h2{font-size:15px;font-weight:600;margin:0 0 12px;color:#475569}
.sh-paper-contact{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:9px;color:#475569}
.sh-paper-contact span:not(:last-child):after{content:"•";margin-left:14px;color:#94a3b8}
.sh-paper-section{margin-bottom:21px}
.sh-paper-section h3{font-size:11px;letter-spacing:.12em;text-transform:uppercase;margin:0 0 9px;color:#111827}
.sh-paper-section>p{font-size:10px;line-height:1.55;margin:0;color:#334155}
.sh-paper-item{margin-bottom:13px}
.sh-paper-item:last-child{margin-bottom:0}
.sh-paper-row{display:flex;justify-content:space-between;gap:15px;font-size:10.5px}
.sh-paper-row strong{color:#111827}
.sh-paper-row span{color:#64748b;font-size:9px;text-align:right}
.sh-paper-sub{font-size:9.5px;color:#475569;margin-top:3px}
.sh-paper-item p{font-size:9.5px;line-height:1.5;margin:5px 0 0;color:#334155}
.sh-skill-chips{display:flex;flex-wrap:wrap;gap:5px}
.sh-skill-chips span{font-size:9px;padding:4px 7px;border:1px solid #cbd5e1;border-radius:4px;color:#334155}
.sh-empty-preview{color:#94a3b8!important;font-style:italic!important}
.sh-resume-paper[data-template="modern"]{border-top:8px solid #2563eb}
.sh-resume-paper[data-template="modern"] .sh-paper-header{border-bottom:1px solid #cbd5e1}
.sh-resume-paper[data-template="modern"] .sh-paper-header h1{color:#2563eb}
.sh-resume-paper[data-template="modern"] .sh-paper-section h3{color:#2563eb}
.sh-resume-paper[data-template="minimal"]{padding:62px 68px}
.sh-resume-paper[data-template="minimal"] .sh-paper-header{border:0;margin-bottom:30px;padding:0}
.sh-resume-paper[data-template="minimal"] .sh-paper-header h1{font-size:35px;font-weight:500}
.sh-resume-paper[data-template="minimal"] .sh-paper-section h3{font-weight:500;letter-spacing:.06em}

.sh-photo-field{grid-column:1/-1}
.sh-photo-upload{display:flex;align-items:center;gap:14px}
.sh-photo-upload input[type=file]{display:block;padding:8px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;max-width:100%}
.sh-photo-upload small{display:block;color:#64748b;font-size:11px;font-weight:500;margin-top:5px}
.sh-photo-preview{width:72px;height:72px;border-radius:50%;border:1px dashed #94a3b8;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 72px;color:#94a3b8;font-size:11px}
.sh-photo-preview img{width:100%;height:100%;object-fit:cover}
.sh-remove-photo{border:0;background:none;padding:5px 0;color:#dc2626;font-size:11px;font-weight:700;cursor:pointer}
.sh-paper-photo{display:none;position:absolute;right:0;top:0;width:78px;height:78px;border-radius:50%;overflow:hidden}
.sh-paper-photo img{width:100%;height:100%;object-fit:cover}
.sh-paper-header{position:relative}
.sh-resume-paper[data-template="modern"] .sh-paper-photo{border-radius:10px}
.sh-resume-paper[data-template="minimal"] .sh-paper-photo{width:72px;height:72px}


/* Executive Split template — inspired by a classic two-column professional CV */
.sh-resume-paper[data-template="split"]{
	display:grid;
	grid-template-columns:35% 65%;
	grid-template-rows:auto auto auto auto auto auto;
	grid-template-areas:
		"header summary"
		"skills experience"
		"skills education"
		"skills projects"
		"skills certifications"
		"skills achievements";
	padding:0;
	min-height:1050px;
	background:linear-gradient(to right,#050505 0,#050505 35%,#fff 35%,#fff 100%);
	overflow:hidden;
	-webkit-print-color-adjust:exact!important;
	print-color-adjust:exact!important;
}
.sh-resume-paper[data-template="split"] .sh-paper-header{
	grid-area:header;
	background:#050505!important;
	color:#fff;
	border:0;
	margin:0;
	padding:34px 28px 28px;
	min-height:0;
	box-sizing:border-box;
	position:relative;
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	-webkit-print-color-adjust:exact!important;
	print-color-adjust:exact!important;
}
.sh-resume-paper[data-template="split"] .sh-paper-header h1{
	color:#fff;
	font-family:Georgia,"Times New Roman",serif;
	font-size:29px;
	line-height:1.05;
	margin:88px 0 12px;
	font-weight:700;
}
.sh-resume-paper[data-template="split"] .sh-paper-header h2{
	color:#fff;
	font-family:Georgia,"Times New Roman",serif;
	font-size:11px;
	font-weight:400;
	margin:0 0 14px;
}
.sh-resume-paper[data-template="split"] .sh-paper-contact{
	color:#fff;
	display:block;
	font-family:Georgia,"Times New Roman",serif;
	font-size:8.5px;
	line-height:1.8;
}
.sh-resume-paper[data-template="split"] .sh-paper-contact span{
	display:block;
}
.sh-resume-paper[data-template="split"] .sh-paper-contact span:after{
	content:""!important;
	margin:0!important;
}
.sh-resume-paper[data-template="split"] .sh-paper-photo{
	display:block!important;
	position:absolute;
	left:28px;
	top:28px;
	right:auto;
	width:70px;
	height:70px;
	border-radius:50%;
	border:3px solid #050505;
	overflow:hidden;
	background:#fff;
}
.sh-resume-paper[data-template="split"] .sh-paper-photo:empty{
	display:none!important;
}
.sh-resume-paper[data-template="split"] .sh-paper-photo img{
	width:100%;
	height:100%;
	object-fit:cover;
}
.sh-resume-paper[data-template="split"] .sh-paper-section{
	margin:0;
	padding:25px 38px 5px;
	box-sizing:border-box;
	background:#fff;
	align-self:start;
}
.sh-resume-paper[data-template="split"] [data-preview-section="summary"]{
	grid-area:summary;
	padding-top:38px;
}
.sh-resume-paper[data-template="split"] [data-preview-section="experience"]{grid-area:experience}
.sh-resume-paper[data-template="split"] [data-preview-section="education"]{grid-area:education}
.sh-resume-paper[data-template="split"] [data-preview-section="skills"]{
	grid-area:skills;
	background:#050505!important;
	color:#fff;
	padding:28px;
	min-height:100%;
	align-self:stretch;
	-webkit-print-color-adjust:exact!important;
	print-color-adjust:exact!important;
}
.sh-resume-paper[data-template="split"] [data-preview-section="projects"]{grid-area:projects}
.sh-resume-paper[data-template="split"] [data-preview-section="certifications"]{grid-area:certifications}
.sh-resume-paper[data-template="split"] [data-preview-section="achievements"]{grid-area:achievements}
.sh-resume-paper[data-template="split"] .sh-paper-section h3{
	font-family:Georgia,"Times New Roman",serif;
	font-size:11px;
	letter-spacing:.02em;
	text-transform:none;
	padding-bottom:7px;
	border-bottom:1px solid #111;
	margin-bottom:11px;
}
.sh-resume-paper[data-template="split"] [data-preview-section="skills"] h3{
	color:#fff;
	border-color:#fff;
	font-size:15px;
	font-weight:700;
}
.sh-resume-paper[data-template="split"] .sh-paper-section>p,
.sh-resume-paper[data-template="split"] .sh-paper-item p{
	font-family:Georgia,"Times New Roman",serif;
	font-size:9.5px;
	line-height:1.45;
}
.sh-resume-paper[data-template="split"] .sh-paper-row{
	font-family:Georgia,"Times New Roman",serif;
}
.sh-resume-paper[data-template="split"] .sh-paper-row strong{font-size:10.5px}
.sh-resume-paper[data-template="split"] .sh-paper-row span{font-size:8.5px}
.sh-resume-paper[data-template="split"] .sh-paper-sub{
	font-family:Georgia,"Times New Roman",serif;
	font-size:9px;
	font-style:italic;
}
.sh-resume-paper[data-template="split"] .sh-skill-chips{display:block}
.sh-resume-paper[data-template="split"] .sh-skill-chips span{
	display:list-item;
	list-style-type:disc;
	margin-left:16px;
	padding:0;
	border:0;
	border-radius:0;
	color:#fff;
	font-family:Georgia,"Times New Roman",serif;
	font-size:9px;
	line-height:1.65;
}
.sh-resume-paper[data-template="split"] .sh-empty-preview{color:#cbd5e1!important}

@media(max-width:1100px){.sh-resume-layout{grid-template-columns:1fr}.sh-resume-preview-wrap{position:static}.sh-resume-paper{max-width:760px}}
@media(max-width:650px){.sh-resume-app{padding:0 10px}.sh-resume-topbar{align-items:stretch;flex-direction:column;padding:20px}.sh-resume-actions{width:100%}.sh-resume-actions button{flex:1}.sh-resume-grid{grid-template-columns:1fr}.sh-field-full{grid-column:auto}.sh-resume-preview-toolbar{align-items:flex-start;flex-direction:column}.sh-resume-paper{padding:35px 28px;min-height:900px}.sh-paper-row{flex-direction:column;gap:3px}.sh-paper-row span{text-align:left}}
@media print{
	html,body{background:#fff!important}
	body *{visibility:hidden!important}
	.sh-resume-app,.sh-resume-app *{visibility:visible!important}
	.sh-resume-app{display:block!important;position:absolute!important;left:0!important;top:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important}
	.sh-resume-topbar,.sh-resume-editor,.sh-resume-preview-toolbar{display:none!important}
	.sh-resume-layout{display:block!important}
	.sh-resume-preview-wrap{position:static!important;display:block!important}
	.sh-resume-paper{
		display:block!important;
		visibility:visible!important;
		box-shadow:none!important;
		width:210mm!important;
		max-width:none!important;
		min-height:297mm!important;
		margin:0!important;
		padding:18mm 17mm!important;
		-webkit-print-color-adjust:exact!important;
		print-color-adjust:exact!important;
	}
	.sh-resume-paper *{visibility:visible!important}

	/* Keep the Executive Split grid in print; display:block here would destroy the sidebar. */
	.sh-resume-paper[data-template="split"]{
		display:grid!important;
		grid-template-columns:35% 65%!important;
		grid-template-rows:auto auto auto auto auto auto!important;
		grid-template-areas:
			"header summary"
			"skills experience"
			"skills education"
			"skills projects"
			"skills certifications"
			"skills achievements"!important;
		padding:0!important;
		background:linear-gradient(to right,#050505 0,#050505 35%,#fff 35%,#fff 100%)!important;
		-webkit-print-color-adjust:exact!important;
		print-color-adjust:exact!important;
	}
	.sh-resume-paper[data-template="split"] .sh-paper-header{
		display:flex!important;
		background:#050505!important;
		-webkit-print-color-adjust:exact!important;
		print-color-adjust:exact!important;
	}
	.sh-resume-paper[data-template="split"] [data-preview-section="skills"]{
		display:block!important;
		background:#050505!important;
		-webkit-print-color-adjust:exact!important;
		print-color-adjust:exact!important;
	}
	.sh-resume-paper[data-template="split"] .sh-paper-section{background:#fff!important}
	.sh-paper-header{display:block!important}
	.sh-resume-paper[data-template="split"] .sh-paper-header h1{color:#fff!important}
	.sh-resume-paper[data-template="split"] .sh-paper-header h2,
	.sh-resume-paper[data-template="split"] .sh-paper-contact{color:#fff!important}
	.sh-resume-paper[data-template="split"] [data-preview-section="skills"] h3,
	.sh-resume-paper[data-template="split"] [data-preview-section="skills"] .sh-skill-chips span{color:#fff!important}
	@page{size:A4;margin:0}
}