/* High Talent Calculator styles */

.htc-calculator-wrapper {
	position: relative;
	min-height: 120px;
}

.htc-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 48px 0;
	font-size: 14px;
	color: #0f172a;
}

.htc-spinner {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 3px solid rgba(15, 23, 42, 0.12);
	border-top-color: #0d8bdc;
	animation: htc-spin 0.9s linear infinite;
}

@keyframes htc-spin {
	to {
		transform: rotate(360deg);
	}
}

.htc-error {
	color: #dc2626;
	font-size: 14px;
}

.htc-app {
	font-family: 'Noto Sans SC', 'PingFang SC', 'Segoe UI', Arial, sans-serif;
	color: #0f172a;
	background: #f4f7fb;
	min-height: 100vh;
	position: relative;
}

.htc-app * {
	box-sizing: border-box;
}

.htc-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #ffffff;
	border-bottom: 1px solid rgba(15, 23, 42, 0.05);
	box-shadow: 0 12px 30px -22px rgba(15, 23, 42, 0.65);
}

.htc-header__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.htc-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.htc-brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, #0d8bdc, #38bdf8);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 1px;
}

.htc-brand__title {
	display: block;
	font-size: 18px;
	font-weight: 700;
}

.htc-brand__subtitle {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
}

.htc-field-switcher {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.htc-field-switcher__button {
	border: 1px solid rgba(13, 139, 220, 0.25);
	background: #f1f5f9;
	color: #0f172a;
	border-radius: 999px;
	padding: 8px 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.htc-field-switcher__button:hover {
	border-color: #0d8bdc;
	background: #e0f2fe;
}

.htc-field-switcher__button.is-active {
	background: linear-gradient(135deg, #0d8bdc, #38bdf8);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 8px 20px -16px rgba(13, 139, 220, 0.55);
}

.htc-field-switcher__icon {
	font-size: 16px;
}

.htc-field-switcher__note {
	display: none;
	font-size: 11px;
	opacity: 0.8;
}

@media (min-width: 768px) {
	.htc-field-switcher__note {
		display: block;
	}
}

.htc-main {
	padding: 96px 0 150px;
}

.htc-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

.htc-hero {
	background: linear-gradient(
		135deg,
		rgba(13, 139, 220, 0.08),
		rgba(56, 189, 248, 0.08)
	);
	border: 1px solid rgba(13, 139, 220, 0.15);
	border-radius: 18px;
	padding: 24px;
	margin-bottom: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: 0 16px 44px -30px rgba(13, 139, 220, 0.55);
}

.htc-hero__status {
	display: flex;
	align-items: center;
	gap: 16px;
}

.htc-hero__icon {
	font-size: 30px;
}

.htc-hero__title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 4px;
}

.htc-hero__subtitle {
	font-size: 14px;
	color: #475569;
}

.htc-hero__hint {
	font-size: 13px;
	color: #2563eb;
}

.htc-grid {
	display: grid;
	gap: 24px;
}

@media (min-width: 960px) {
	.htc-grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}
}

.htc-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.htc-card {
	background: #fff;
	border-radius: 18px;
	border: 1px solid rgba(15, 23, 42, 0.05);
	box-shadow: 0 20px 46px -34px rgba(15, 23, 42, 0.7);
	overflow: hidden;
}

.htc-card--highlight {
	border-color: rgba(13, 139, 220, 0.25);
	box-shadow: 0 28px 70px -38px rgba(13, 139, 220, 0.55);
}

.htc-card--success {
	border-color: rgba(22, 163, 74, 0.2);
	background: linear-gradient(
		135deg,
		rgba(16, 185, 129, 0.1),
		rgba(14, 116, 144, 0.05)
	);
}

.htc-card--info {
	border-color: rgba(37, 99, 235, 0.15);
	background: linear-gradient(
		135deg,
		rgba(59, 130, 246, 0.08),
		rgba(59, 130, 246, 0.02)
	);
}

.htc-card--warning {
	border-color: rgba(249, 115, 22, 0.18);
	background: linear-gradient(
		135deg,
		rgba(251, 191, 36, 0.12),
		rgba(253, 230, 138, 0.08)
	);
}

.htc-card__header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 24px 0;
}

.htc-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.htc-card__subtitle {
	margin-top: 4px;
	font-size: 12px;
	color: #64748b;
}

.htc-card__body {
	padding: 20px 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.htc-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 12px;
	background: linear-gradient(135deg, #0d8bdc, #38bdf8);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	box-shadow: 0 10px 24px -16px rgba(13, 139, 220, 0.65);
}

.htc-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
}

.htc-field--grow {
	flex: 1 1 auto;
}

.htc-field--compact {
	flex: 0 0 140px;
}

.htc-field__label {
	display: flex;
	justify-content: space-between;
	font-weight: 600;
	font-size: 14px;
	color: #0f172a;
}

.htc-field__label small {
	font-weight: 400;
	color: #64748b;
}

.htc-field select,
.htc-field input[type='number'],
.htc-field input[type='text'] {
	width: 100%;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 14px;
	background: #f8fafc;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.htc-field select:focus,
.htc-field input:focus {
	outline: none;
	border-color: #0d8bdc;
	box-shadow: 0 0 0 3px rgba(13, 139, 220, 0.18);
	background: #ffffff;
}

.htc-salary-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

@media (max-width: 640px) {
	.htc-field--compact {
		flex: 1 1 140px;
	}
}

.htc-rate-input {
	border: 1px dashed rgba(13, 139, 220, 0.3);
	border-radius: 14px;
	padding: 16px;
	background: rgba(13, 139, 220, 0.05);
}

.htc-rate-input__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 13px;
	color: #0d8bdc;
	margin-bottom: 10px;
}

.htc-rate-input__label small {
	font-weight: 400;
	color: #0f172a;
	opacity: 0.7;
}

.htc-rate-input__controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 14px;
}

.htc-rate-input__controls input {
	max-width: 160px;
	background: #ffffff;
}

.htc-checkbox-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.htc-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid rgba(148, 163, 184, 0.25);
	background: #f8fafc;
	transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.htc-checkbox:hover {
	border-color: #0d8bdc;
	background: #eef5ff;
	transform: translateY(-1px);
}

.htc-checkbox input {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	border-radius: 6px;
	accent-color: #0d8bdc;
}

.htc-checkbox__content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.htc-checkbox__label {
	font-weight: 600;
	font-size: 14px;
}

.htc-checkbox__sublabel {
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
}

.htc-checkbox__hint {
	font-size: 11px;
	color: #f97316;
}

.htc-checkbox--child {
	margin-left: 24px;
	background: #fff9eb;
	border-color: rgba(251, 191, 36, 0.4);
}

.htc-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(135deg, #0d8bdc, #38bdf8);
	padding: 4px 8px;
	border-radius: 999px;
}

.htc-note {
	font-size: 12px;
	color: #475569;
	line-height: 1.5;
}

.htc-hint {
	font-size: 13px;
	border-radius: 12px;
	padding: 12px 14px;
	background: #f8fafc;
	color: #0f172a;
	border: 1px solid rgba(148, 163, 184, 0.25);
}

.htc-hint--warning {
	background: #fff7ed;
	border-color: rgba(251, 146, 60, 0.3);
	color: #c2410c;
}

.htc-hint--warning strong {
	font-weight: 700;
}

.htc-score {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.htc-score__total {
	font-size: 40px;
	font-weight: 800;
	background: linear-gradient(135deg, #0d8bdc, #38bdf8);
	-webkit-background-clip: text;
	color: transparent;
}

.htc-score__label {
	font-size: 12px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.htc-score__warning {
	margin: 0;
	font-size: 12px;
	color: #b45309;
	background: #fff7ed;
	padding: 10px 12px;
	border-radius: 12px;
	width: 100%;
}

.htc-status {
	border-radius: 14px;
	padding: 16px;
	margin: 8px 0 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.htc-status--success {
	background: rgba(16, 185, 129, 0.12);
	color: #047857;
}

.htc-status--warning {
	background: rgba(249, 115, 22, 0.14);
	color: #b45309;
}

.htc-status--info {
	background: rgba(37, 99, 235, 0.14);
	color: #1d4ed8;
}

.htc-status--neutral {
	background: rgba(148, 163, 184, 0.2);
	color: #334155;
}

.htc-status__badge {
	font-weight: 700;
	font-size: 14px;
}

.htc-status__message {
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

.htc-status__action {
	align-self: flex-start;
	border: none;
	background: #0d8bdc;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.htc-status__action:hover {
	background: #0a68a8;
	transform: translateY(-1px);
}

.htc-breakdown {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.htc-breakdown__item {
	background: #f8fafc;
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 12px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.htc-breakdown__label {
	font-size: 12px;
	color: #64748b;
}

.htc-breakdown__value {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.htc-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
	color: #0f172a;
}

.htc-benefits li::before {
	content: '•';
	color: #0d8bdc;
	margin-right: 6px;
}

.htc-benefit-lead {
	margin: 0 0 10px;
	font-size: 13px;
	color: #0f172a;
	line-height: 1.6;
}

.htc-benefit-title {
	font-size: 14px;
	font-weight: 700;
	color: #0d8bdc;
	margin: 6px 0 12px;
}

.htc-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 13px;
}

.htc-links a {
	color: #0d8bdc;
	font-weight: 600;
	text-decoration: none;
}

.htc-links a:hover {
	text-decoration: underline;
}

.htc-summary {
	position: fixed;
	left: 0;
	bottom: 0;
	right: 0;
	background: #ffffff;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 -18px 40px -32px rgba(15, 23, 42, 0.45);
	z-index: 30;
}

.htc-summary__wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.htc-summary__grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
	flex: 1 1 0%;
}

.htc-summary__cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 6px 10px;
	border-radius: 10px;
	background: #f8fafc;
}

.htc-summary__label {
	font-size: 11px;
	color: #64748b;
}

.htc-summary__value {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.htc-summary__total {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 120px;
}

.htc-summary__total-number {
	font-size: 32px;
	font-weight: 800;
	color: #0d8bdc;
}

.htc-summary__total-label {
	font-size: 11px;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.htc-summary__status {
	font-size: 12px;
	color: #0f172a;
	margin-top: 4px;
}

.htc-summary__action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.htc-summary__button {
	border: none;
	background: linear-gradient(135deg, #0d8bdc, #38bdf8);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 12px 28px -18px rgba(13, 139, 220, 0.65);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.htc-summary__button:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px -20px rgba(13, 139, 220, 0.6);
}

.htc-summary__hint {
	font-size: 11px;
	color: #64748b;
}

@media (max-width: 768px) {
	.htc-summary__wrap {
		flex-direction: column;
		align-items: flex-start;
	}

	.htc-summary__total {
		align-items: flex-start;
	}

	.htc-summary__action {
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.htc-summary__wrap {
		padding: 12px 16px;
		gap: 12px;
	}

	.htc-summary__grid {
		display: none;
	}

	.htc-summary__total {
		align-items: flex-start;
	}

	.htc-summary__button {
		width: 100%;
		text-align: center;
	}

	.htc-summary__action {
		width: 100%;
		align-items: stretch;
	}

	.htc-summary__hint {
		text-align: center;
		width: 100%;
	}
}

.htc-modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
}

.htc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.htc-modal__content {
	position: relative;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 40px 80px -38px rgba(15, 23, 42, 0.55);
	max-width: 520px;
	width: 90%;
	max-height: 88vh;
	overflow-y: auto;
}

.htc-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.htc-modal__header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.htc-modal__close {
	border: none;
	background: transparent;
	font-size: 22px;
	color: #475569;
	cursor: pointer;
}

.htc-modal__close:hover {
	color: #0f172a;
}

.htc-modal__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.htc-modal__score {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.htc-modal__score-number {
	font-size: 42px;
	font-weight: 800;
	background: linear-gradient(135deg, #0d8bdc, #38bdf8);
	-webkit-background-clip: text;
	color: transparent;
}

.htc-modal__score-label {
	font-size: 12px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.htc-modal__warning {
	margin: 0;
	font-size: 12px;
	color: #c2410c;
	background: #fff7ed;
	padding: 10px 12px;
	border-radius: 12px;
}

.htc-modal__status {
	border-radius: 12px;
	padding: 16px;
}

.htc-modal__status.htc-status--success {
	background: rgba(16, 185, 129, 0.15);
	color: #047857;
}

.htc-modal__status.htc-status--warning {
	background: rgba(249, 115, 22, 0.16);
	color: #b45309;
}

.htc-modal__status.htc-status--info {
	background: rgba(37, 99, 235, 0.16);
	color: #1d4ed8;
}

.htc-modal__status.htc-status--neutral {
	background: rgba(148, 163, 184, 0.25);
	color: #334155;
}

.htc-modal__grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #f8fafc;
	border-radius: 14px;
	padding: 16px;
}

.htc-modal__row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #0f172a;
}

.htc-modal__note {
	font-size: 12px;
	color: #64748b;
	line-height: 1.6;
}

.htc-alert-layer {
	position: fixed;
	right: 20px;
	bottom: 130px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 40;
	max-width: 280px;
}

.htc-alert {
	border-radius: 14px;
	padding: 14px 16px;
	box-shadow: 0 20px 44px -34px rgba(15, 23, 42, 0.6);
	font-size: 13px;
	line-height: 1.5;
	background: #e0f2fe;
	color: #0c4a6e;
}

.htc-alert strong {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
}

.htc-alert--warning {
	background: #fff7ed;
	color: #b45309;
}

body.htc-modal-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.htc-header__inner {
		padding: 12px 16px;
	}

	.htc-brand__title {
		font-size: 16px;
	}

	.htc-brand__subtitle {
		font-size: 11px;
	}

	.htc-hero {
		padding: 20px;
	}
}