/**
 * FirstAIResume Application Core Stylesheet (Dark SaaS Theme)
 * Perfectly aligned with Homepage Hero Visual Reference.
 *
 * @package FirstAIResume
 */

.fr-ai-app {
	--fr-ink: #FFFFFF;
	--fr-body: #CBD5E1;
	--fr-muted: #94A3B8;
	--fr-teal: #7357F5;
	--fr-teal-hover: #6366F1;
	--fr-coral: #35C6E8;
	--fr-paper: #0D152C;
	--fr-card: #111A33;
	--fr-card-elevated: #162244;
	--fr-line: rgba(255, 255, 255, 0.08);
	--fr-line-focus: #7357F5;
	color: var(--fr-body);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	background: transparent;
	padding: 56px 20px;
}

.fr-ai-app [hidden] {
	display: none !important;
}

.fr-ai-dot.is-error:before {
	background: #F43F5E;
}

.fr-ai-brand-logo {
	display: block;
	width: 100%;
	max-width: 260px;
	height: auto;
	margin: 0 0 24px;
	filter: drop-shadow(0 2px 8px rgba(115, 87, 245, 0.3));
}

.fr-ai-shell {
	max-width: 1160px;
	margin: 0 auto;
}

.fr-ai-intro {
	max-width: 800px;
	margin-bottom: 40px;
}

.fr-ai-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fr-coral);
	font-weight: 700;
	margin: 0 0 14px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 4px 14px;
	border-radius: 999px;
}

.fr-ai-intro h1,
.fr-ai-intro h2 {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: clamp(32px, 4.5vw, 52px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: #FFFFFF;
	margin: 0 0 18px;
}

.fr-ai-intro > p:last-child {
	color: var(--fr-muted);
	font-size: 1.1rem;
	line-height: 1.68;
	margin: 0;
}

.fr-ai-builder-grid,
.fr-ai-checker-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 410px;
	gap: 32px;
	align-items: start;
}

.fr-ai-card,
.fr-ai-preview-card,
.fr-ai-check-result {
	border: 1px solid var(--fr-line);
	border-radius: 20px;
	background: var(--fr-card);
	padding: 32px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
}

.fr-ai-preview-card {
	position: sticky;
	top: 90px;
	background: #111A33;
}

.fr-ai-preview-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #94A3B8;
	margin-bottom: 14px;
	font-weight: 600;
}

.fr-ai-dot:before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10B981;
	box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
	margin: 0 6px 1px 0;
}

.fr-ai-progress {
	display: flex;
	gap: 8px;
	margin-bottom: 30px;
}

.fr-ai-progress span {
	width: 32px;
	height: 6px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 0;
	transition: background 0.25s ease;
}

.fr-ai-progress span.is-active {
	background: var(--fr-teal);
	box-shadow: 0 0 10px rgba(115, 87, 245, 0.4);
}

.fr-ai-card h2 {
	font-family: inherit;
	font-size: 1.65rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #FFFFFF;
	margin: 6px 0 24px;
}

.fr-ai-card label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: #E2E8F0;
	margin-top: 20px;
}

.fr-ai-card input,
.fr-ai-card textarea,
.fr-ai-card select {
	width: 100%;
	box-sizing: border-box;
	background: #0B132B;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 12px 16px;
	margin-top: 8px;
	font: inherit;
	font-size: 14px;
	line-height: 1.55;
	color: #FFFFFF;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fr-ai-card input::placeholder,
.fr-ai-card textarea::placeholder {
	color: #64748B;
}

.fr-ai-card textarea {
	resize: vertical;
}

.fr-ai-card input:focus,
.fr-ai-card textarea:focus,
.fr-ai-card select:focus {
	outline: none;
	border-color: #7357F5;
	box-shadow: 0 0 0 3px rgba(115, 87, 245, 0.25);
}

.fr-ai-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.fr-ai-help {
	font-size: 13px;
	line-height: 1.6;
	color: #94A3B8;
	margin: -8px 0 16px;
}

.fr-ai-callout {
	display: flex;
	gap: 12px;
	background: rgba(115, 87, 245, 0.12);
	color: #E2E8F0;
	border: 1px solid rgba(115, 87, 245, 0.25);
	padding: 16px;
	border-radius: 14px;
	margin-top: 20px;
	font-size: 13px;
	line-height: 1.55;
}

.fr-ai-callout strong {
	color: #35C6E8;
	white-space: nowrap;
}

.fr-ai-template-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 24px;
	font-size: 13px;
	color: #94A3B8;
}

.fr-ai-template-picker button {
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	padding: 8px 14px;
	color: #E2E8F0;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.fr-ai-template-picker button:hover {
	border-color: var(--fr-teal);
	color: #FFFFFF;
	background: rgba(115, 87, 245, 0.15);
}

.fr-ai-template-picker button.is-selected {
	border-color: var(--fr-teal);
	background: linear-gradient(135deg, #6366F1, #7357F5);
	color: #FFFFFF;
	font-weight: 700;
	box-shadow: 0 2px 10px rgba(115, 87, 245, 0.35);
}

.fr-ai-form-actions {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: 32px;
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.fr-ai-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	padding: 12px 24px;
	background: linear-gradient(135deg, #6366F1 0%, #7357F5 100%);
	color: #FFFFFF !important;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
	transition: all 0.2s ease;
	text-decoration: none !important;
}

.fr-ai-button:hover {
	background: linear-gradient(135deg, #7357F5 0%, #8167F7 100%);
	box-shadow: 0 0 26px rgba(99, 102, 241, 0.6);
	transform: translateY(-1px);
}

.fr-ai-secondary {
	background: rgba(255, 255, 255, 0.08) !important;
	color: #FFFFFF !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	box-shadow: none !important;
}

.fr-ai-secondary:hover {
	background: rgba(255, 255, 255, 0.14) !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
	transform: translateY(-1px);
}

.fr-ai-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.fr-ai-status {
	min-height: 20px;
	color: var(--fr-coral);
	font-size: 13.5px;
	margin-top: 14px;
}

/* ==========================================================================
   Interactive Resume Preview: Kept White Paper For Universal ATS/Print Standard
   ========================================================================== */
.fr-ai-resume-preview {
	min-height: 560px;
	border: 1px solid #E2E8F0;
	background: #FFFFFF;
	color: #101A35;
	padding: 28px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	font-family: Arial, -apple-system, sans-serif;
	border-radius: 8px;
}

.fr-ai-resume-preview header {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	border-bottom: 2px solid var(--fr-teal);
	padding-bottom: 16px;
}

.fr-ai-resume-preview h3 {
	font-size: 22px;
	color: #101A35;
	margin: 0 0 5px;
}

.fr-ai-resume-preview header strong {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--fr-teal);
}

.fr-ai-resume-preview header p {
	font-size: 11px;
	line-height: 1.5;
	text-align: right;
	color: #64748B;
	margin: 0;
}

.fr-ai-resume-preview section {
	margin-top: 22px;
	break-inside: avoid;
}

.fr-ai-resume-preview h4 {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fr-teal);
	border-bottom: 1px solid #E2E8F0;
	padding-bottom: 4px;
	margin: 0 0 8px;
}

.fr-ai-resume-preview section p {
	font-size: 12px;
	line-height: 1.6;
	color: #334155;
	margin: 0;
	white-space: pre-line;
}

.fr-template-modern {
	border-top: 10px solid var(--fr-teal);
}

.fr-template-student {
	font-family: "Georgia", serif;
}

.fr-template-student header {
	border-bottom: 1px solid #CBD5E1;
}

/* ==========================================================================
   ATS Checker Results Panel
   ========================================================================== */
.fr-ai-check-result {
	background: #111A33;
	border: 1px solid var(--fr-line);
	color: #CBD5E1;
	min-height: 100%;
}

.fr-ai-check-result ul {
	padding: 0;
	list-style: none;
	line-height: 2.1;
}

.fr-ai-check-result li:before {
	content: "✓";
	margin-right: 10px;
	color: #35C6E8;
	font-weight: bold;
}

.fr-ai-check-result small {
	display: block;
	color: #94A3B8;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 18px;
	line-height: 1.6;
	margin-top: 26px;
}

.fr-ai-check-result.is-ready {
	background: #111A33;
	color: #CBD5E1;
}

.fr-ai-score {
	display: flex;
	align-items: baseline;
	gap: 10px;
	color: #35C6E8;
	margin-bottom: 16px;
}

.fr-ai-score strong {
	font-family: inherit;
	font-size: 60px;
	font-weight: 800;
	color: #FFFFFF;
	line-height: 1;
}

.fr-ai-score span {
	font-size: 13px;
	color: #94A3B8;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.fr-ai-check-result h2 {
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #FFFFFF;
	margin: 0 0 10px;
}

.fr-ai-check-result p {
	font-size: 14px;
	color: #94A3B8;
	line-height: 1.65;
}

.fr-ai-check-list {
	display: grid;
	gap: 12px;
	margin-top: 24px;
}

.fr-ai-check-list > div {
	border-radius: 14px;
	padding: 14px 16px;
	font-size: 13.5px;
	line-height: 1.55;
}

.fr-ai-check-list .is-good {
	background: rgba(16, 185, 129, 0.12);
	color: #34D399;
	border: 1px solid rgba(16, 185, 129, 0.25);
}

.fr-ai-check-list .needs-work {
	background: rgba(244, 63, 94, 0.12);
	color: #FB7185;
	border: 1px solid rgba(244, 63, 94, 0.25);
}

.fr-ai-check-list span {
	display: block;
	font-size: 12px;
	line-height: 1.5;
	margin-top: 5px;
	color: #CBD5E1;
}

/* ==========================================================================
   AI Writing Assistant & Local Hints
   ========================================================================== */
.fr-ai-local-help {
	border: 1px solid rgba(115, 87, 245, 0.2);
	border-radius: 16px;
	background: rgba(115, 87, 245, 0.08);
	padding: 16px;
	margin-bottom: 24px;
}

.fr-ai-local-help.is-ready {
	background: rgba(16, 185, 129, 0.08);
	border-color: rgba(16, 185, 129, 0.2);
}

.fr-ai-local-help.is-error,
.fr-ai-local-help.is-unsupported {
	background: rgba(244, 63, 94, 0.08);
	border-color: rgba(244, 63, 94, 0.2);
}

.fr-ai-local-help-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #FFFFFF;
}

.fr-ai-local-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #35C6E8;
	display: inline-block;
}

.is-ready .fr-ai-local-dot {
	background: #10B981;
}

.is-error .fr-ai-local-dot,
.is-unsupported .fr-ai-local-dot {
	background: #F43F5E;
}

.fr-ai-local-help > p,
.fr-ai-local-help details {
	font-size: 12.5px;
	line-height: 1.6;
	color: #94A3B8;
	margin: 8px 0 0;
}

.fr-ai-local-progress {
	margin-top: 12px;
}

.fr-ai-local-progress-track {
	height: 6px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.fr-ai-local-progress-track span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 99px;
	background: #35C6E8;
	transition: width 0.2s ease;
}

.fr-ai-local-progress small {
	display: block;
	margin-top: 5px;
	color: #94A3B8;
}

.fr-ai-local-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.fr-ai-local-actions .fr-ai-button {
	padding: 8px 14px;
	font-size: 12px;
}

.fr-ai-section-help {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: -7px;
}

.fr-ai-section-help span {
	font-size: 11.5px;
	color: #94A3B8;
}

.fr-ai-section-help button {
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.06);
	color: #35C6E8;
	padding: 7px 12px;
	font-weight: 700;
	font-size: 11.5px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.fr-ai-section-help button:hover {
	background: rgba(53, 198, 232, 0.15);
	border-color: #35C6E8;
}

.fr-ai-section-help button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.fr-ai-draft {
	border: 1px solid rgba(115, 87, 245, 0.3);
	border-radius: 16px;
	background: rgba(16, 26, 53, 0.9);
	padding: 16px;
	margin-top: 8px;
}

.fr-ai-draft-heading {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: baseline;
}

.fr-ai-draft-heading strong {
	font-size: 13px;
	color: #35C6E8;
}

.fr-ai-draft-heading span {
	font-size: 11.5px;
	color: #94A3B8;
}

.fr-ai-draft-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 14px;
}

.fr-ai-draft-grid > div {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: #0B132B;
	padding: 14px;
}

.fr-ai-draft-grid > div + div {
	border-color: rgba(115, 87, 245, 0.4);
	background: rgba(115, 87, 245, 0.1);
}

.fr-ai-draft-grid small {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94A3B8;
	font-weight: 700;
}

.fr-ai-draft-grid p {
	white-space: pre-line;
	font-size: 13px;
	line-height: 1.6;
	color: #CBD5E1;
	margin: 8px 0 0;
}

.fr-ai-draft-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.fr-ai-draft-actions .fr-ai-button {
	padding: 8px 14px;
	font-size: 12px;
}

/* ==========================================================================
   Repeaters, Custom Sections & Ordering
   ========================================================================== */
.fr-ai-repeat-section,
.fr-ai-custom-section,
.fr-ai-section-manager {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: 28px;
	padding-top: 24px;
}

.fr-ai-repeat-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.fr-ai-repeat-heading h3 {
	font-family: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0;
	color: #FFFFFF;
}

.fr-ai-repeat-heading .fr-ai-help {
	margin: 0;
	font-size: 12px;
}

.fr-ai-entry-card {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	background: #0B132B;
	padding: 18px;
	margin-top: 14px;
}

.fr-ai-entry-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	color: #FFFFFF;
	font-size: 13.5px;
	font-weight: 600;
}

.fr-ai-entry-controls {
	display: flex;
	gap: 4px;
}

.fr-ai-entry-controls button,
.fr-ai-section-row button {
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: #CBD5E1;
	padding: 5px 10px;
	font-size: 11px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.fr-ai-entry-controls button:hover,
.fr-ai-section-row button:hover {
	border-color: var(--fr-teal);
	color: #FFFFFF;
	background: var(--fr-teal);
}

.fr-ai-entry-controls button:disabled,
.fr-ai-section-row button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.fr-ai-entry-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 12px;
}

.fr-ai-entry-card label {
	font-size: 11.5px;
	margin-top: 0;
}

.fr-ai-entry-grid textarea,
.fr-ai-entry-grid input {
	font-size: 13px;
	padding: 10px 12px;
	margin-top: 6px;
}

.fr-ai-entry-grid label:nth-child(4) {
	grid-column: 1 / -1;
}

.fr-ai-section-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: #0B132B;
	padding: 12px 16px;
	margin-top: 8px;
	font-size: 13.5px;
	color: #E2E8F0;
}

.fr-ai-section-row label {
	margin: 0;
	font-weight: 600;
	color: #FFFFFF;
}

.fr-ai-section-row input {
	width: auto;
	margin: 0;
	accent-color: var(--fr-teal);
}

.fr-ai-section-row > div {
	display: flex;
	gap: 4px;
}

.fr-ai-pdf-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: 24px;
	padding-top: 20px;
}

.fr-ai-pdf-actions small {
	font-size: 12px;
	line-height: 1.5;
	color: #94A3B8;
	max-width: 320px;
}

.fr-ai-preview-entry {
	margin-bottom: 10px;
}

.fr-ai-preview-entry strong {
	font-size: 12px;
}

.fr-ai-preview-entry p + p {
	margin-top: 3px;
}

.fr-ai-preview-mark {
	height: 4px;
	width: 56px;
	background: var(--fr-teal);
	margin-top: 28px;
}

/* ==========================================================================
   Saved Resumes Dashboard & Grid
   ========================================================================== */
.fr-ai-saved-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.fr-ai-saved-card {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	background: #111A33;
	padding: 24px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.fr-ai-saved-card h2 {
	font-family: inherit;
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #FFFFFF;
	margin: 4px 0 8px;
}

.fr-ai-saved-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.fr-ai-saved-actions .fr-ai-button {
	font-size: 13px;
	padding: 9px 16px;
	text-decoration: none;
}

.fr-ai-empty {
	text-align: center;
	border: 1px dashed rgba(255, 255, 255, 0.16);
	border-radius: 20px;
	background: #111A33;
	padding: 64px 24px;
}

.fr-ai-empty h2 {
	font-family: inherit;
	font-size: 1.6rem;
	font-weight: 700;
	color: #FFFFFF;
	margin: 0 0 10px;
}

.fr-ai-empty p {
	font-size: 14px;
	color: #94A3B8;
	margin: 0 0 24px;
}

/* ==========================================================================
   Action Groups, Styles & Library
   ========================================================================== */
.fr-ai-action-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 14px;
}

.fr-ai-action-group button {
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: #35C6E8;
	padding: 7px 12px;
	font-weight: 600;
	font-size: 11.5px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.fr-ai-action-group button:hover {
	background: rgba(53, 198, 232, 0.15);
	border-color: #35C6E8;
}

.fr-ai-action-group button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.fr-ai-style-picker {
	display: flex;
	align-items: end;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.fr-ai-style-picker label {
	font-size: 12px;
	margin: 0;
	color: #CBD5E1;
}

.fr-ai-style-picker select {
	min-width: 150px;
	margin-top: 6px;
}

.fr-ai-field-note {
	display: block;
	font-size: 11.5px;
	color: #94A3B8;
	font-weight: 400;
	margin-top: 6px;
}

.fr-ai-library {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	background: #0B132B;
	padding: 16px 18px;
	margin-top: 24px;
}

.fr-ai-library summary {
	font-size: 13.5px;
	font-weight: 700;
	color: #35C6E8;
	cursor: pointer;
}

.fr-ai-library > p {
	font-size: 12px;
	line-height: 1.55;
	color: #94A3B8;
	margin: 8px 0 12px;
}

.fr-ai-library-group {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 14px 0 6px;
}

.fr-ai-library-group h4 {
	font-size: 12.5px;
	color: #FFFFFF;
	margin: 0 0 6px;
}

.fr-ai-library-group p {
	font-size: 12px;
	line-height: 1.6;
	color: #CBD5E1;
	margin: 6px 0 10px;
	white-space: pre-line;
}

.fr-ai-library-group button {
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: #35C6E8;
	padding: 6px 10px;
	font-size: 11px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.fr-ai-library-group button:hover {
	background: rgba(53, 198, 232, 0.15);
	border-color: #35C6E8;
}

.fr-ai-library-buttons {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.fr-ai-preview-photo {
	width: 68px;
	height: 68px;
	flex: 0 0 68px;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid #CBD5E1;
}

.fr-ai-preview-heading {
	flex: 1;
}

/* Templates accents */
.fr-ai-resume-preview {
	--fr-preview-accent: #7357F5;
}

.fr-ai-resume-preview header {
	border-color: var(--fr-preview-accent);
}

.fr-ai-resume-preview header strong,
.fr-ai-resume-preview h4 {
	color: var(--fr-preview-accent);
}

.fr-ai-resume-preview h4 {
	border-color: #E2E8F0;
}

.fr-template-modern {
	border-top: 10px solid var(--fr-preview-accent);
}

.fr-template-executive {
	border-top: 7px double var(--fr-preview-accent);
}

.fr-template-executive header {
	padding-bottom: 22px;
}

.fr-template-developer {
	border-top: 8px solid var(--fr-preview-accent);
	font-family: "Trebuchet MS", Arial, sans-serif;
}

.fr-template-developer h4 {
	letter-spacing: 0.08em;
}

.fr-template-compact {
	padding: 20px;
	font-size: 10px;
}

.fr-template-compact section {
	margin-top: 14px;
}

.fr-template-compact .fr-ai-preview-entry {
	margin-bottom: 5px;
}

/* Landing specific */
.fr-ai-landing {
	line-height: 1.7;
}

.fr-ai-landing h1 {
	font-family: inherit;
	font-size: clamp(34px, 4.8vw, 56px);
	font-weight: 800;
	letter-spacing: -0.035em;
	color: #FFFFFF;
	margin: 0 0 18px;
}

.fr-ai-landing h2 {
	font-family: inherit;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #FFFFFF;
	margin: 36px 0 12px;
}

.fr-ai-landing .fr-ai-landing-lead {
	font-size: 1.15rem;
	max-width: 840px;
	color: #CBD5E1;
	line-height: 1.7;
}

.fr-ai-landing li {
	margin: 8px 0;
	color: #CBD5E1;
}

.fr-ai-landing details {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 16px 0;
}

.fr-ai-landing details summary {
	font-weight: 700;
	color: #FFFFFF;
	cursor: pointer;
}

.fr-ai-landing details p {
	color: #94A3B8;
	margin: 10px 0 0;
}

.fr-ai-app button:focus-visible,
.fr-ai-app a:focus-visible,
.fr-ai-app select:focus-visible,
.fr-ai-app summary:focus-visible {
	outline: 3px solid #35C6E8;
	outline-offset: 3px;
}

/* Responsive adjustments */
@media (max-width: 800px) {
	.fr-ai-builder-grid,
	.fr-ai-checker-grid {
		grid-template-columns: 1fr;
	}
	.fr-ai-preview-card {
		position: static;
	}
	.fr-ai-two-col {
		grid-template-columns: 1fr;
	}
	.fr-ai-card,
	.fr-ai-preview-card,
	.fr-ai-check-result {
		padding: 24px;
	}
	.fr-ai-entry-grid {
		grid-template-columns: 1fr;
	}
	.fr-ai-entry-grid label:nth-child(4) {
		grid-column: auto;
	}
	.fr-ai-saved-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.fr-ai-app {
		padding: 36px 14px;
	}
	.fr-ai-intro h1,
	.fr-ai-intro h2 {
		font-size: 32px;
	}
	.fr-ai-card,
	.fr-ai-preview-card,
	.fr-ai-check-result {
		padding: 20px;
	}
	.fr-ai-form-actions {
		flex-wrap: wrap;
	}
	.fr-ai-form-actions .fr-ai-button {
		flex: 1 1 100%;
	}
	.fr-ai-preview-card {
		overflow: hidden;
	}
	.fr-ai-resume-preview {
		min-height: 0;
		padding: 18px;
	}
	.fr-ai-resume-preview header {
		align-items: flex-start;
		flex-wrap: wrap;
	}
	.fr-ai-resume-preview header p {
		width: 100%;
		text-align: left;
		margin-top: 8px;
	}
	.fr-ai-action-group button {
		font-size: 10.5px;
	}
	.fr-ai-repeat-heading {
		align-items: flex-start;
	}
	.fr-ai-entry-heading {
		align-items: flex-start;
		flex-direction: column;
	}
	.fr-ai-landing .fr-ai-landing-lead {
		font-size: 17px;
	}
	.fr-ai-draft-grid {
		grid-template-columns: 1fr;
	}
	.fr-ai-draft-heading {
		display: block;
	}
	.fr-ai-draft-heading span {
		display: block;
		margin-top: 4px;
	}
}
