:root {
	--ihts-ink: #172033;
	--ihts-muted: #64748b;
	--ihts-line: #dbe2ea;
	--ihts-soft: #f7f9fc;
	--ihts-green: #22a447;
	--ihts-yellow: #e3aa08;
	--ihts-gray: #8591a3;
	--ihts-red: #c43d4b;
	--ihts-accent: #e86f19;
}

.ihts-profile-summary {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: clamp(18px, 2.2vw, 30px);
	margin: 8px 0 18px;
	padding: 5px 0 7px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ihts-ink);
}

.ihts-standing-actions {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: clamp(18px, 2vw, 26px);
	min-width: 0;
	white-space: nowrap;
}

.ihts-status-button {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	border-radius: 10px;
	outline: none !important;
	box-shadow: none;
	white-space: nowrap;
}

.ihts-status-button:focus {
	outline: none !important;
	box-shadow: none;
}

.ihts-status-button:focus-visible,
.ihts-report-link:focus-visible {
	outline: none !important;
	border-radius: 10px;
	box-shadow: 0 0 0 3px rgba(232, 111, 25, 0.28) !important;
}

.ihts-status-dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	border: 1px solid rgba(15, 23, 42, 0.15);
	border-radius: 50%;
	background: var(--ihts-gray);
	box-shadow: 0 0 0 4px rgba(133, 145, 163, 0.13);
}

.ihts-status-button--green .ihts-status-dot,
.ihts-status-dot--green {
	background: var(--ihts-green);
	box-shadow: 0 0 0 4px rgba(34, 164, 71, 0.13);
}

.ihts-status-button--yellow .ihts-status-dot,
.ihts-status-dot--yellow {
	background: var(--ihts-yellow);
	box-shadow: 0 0 0 4px rgba(227, 170, 8, 0.14);
}

.ihts-status-button--red .ihts-status-dot,
.ihts-status-dot--red {
	background: var(--ihts-red);
	box-shadow: 0 0 0 4px rgba(196, 61, 75, 0.13);
}

.ihts-status-button--gray .ihts-status-dot,
.ihts-status-dot--gray {
	background: var(--ihts-gray);
}

.ihts-eyebrow {
	display: block;
	margin-bottom: 2px;
	color: var(--ihts-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ihts-status-label,
.ihts-experience strong {
	display: inline;
	color: var(--ihts-ink);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.25;
}

.ihts-identity-verified {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	color: #187a45;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.25;
	white-space: nowrap;
}

.ihts-identity-check {
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
}

.ihts-info-icon {
	display: inline-grid;
	place-items: center;
	width: 17px;
	height: 17px;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: var(--ihts-muted);
	font-family: inherit;
	font-size: 11px;
	font-style: italic;
	font-weight: 700;
}

.ihts-experience {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	min-width: max-content;
	padding: 0;
	white-space: nowrap;
}

.ihts-experience .ihts-eyebrow {
	display: inline;
	margin: 0;
	color: var(--ihts-ink);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.ihts-experience strong {
	display: inline;
	font-size: 14px;
	font-weight: 400;
}

.ihts-report-link {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #9a4510;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-align: right;
	text-decoration: underline;
	text-decoration-color: rgba(154, 69, 16, 0.35);
	text-underline-offset: 3px;
	white-space: nowrap;
}

.ihts-profile-summary--compact {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px 12px;
	margin: 7px 0 0;
	padding: 4px 0 0;
}

.ihts-modal[hidden] {
	display: none;
}

.ihts-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}

.ihts-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.58);
	backdrop-filter: blur(3px);
}

.ihts-modal__panel {
	position: relative;
	width: min(100%, 560px);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 28px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
	color: var(--ihts-ink);
}

.ihts-modal__panel h2 {
	margin: 0 34px 10px 0;
	font-size: clamp(22px, 4vw, 28px);
}

.ihts-modal__panel p {
	color: #455269;
	line-height: 1.55;
}

.ihts-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ihts-soft);
	color: var(--ihts-ink);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.ihts-status-key {
	display: grid;
	gap: 15px;
	margin: 22px 0;
	padding: 0;
	list-style: none;
}

.ihts-status-key li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	line-height: 1.45;
}

.ihts-status-key .ihts-status-dot {
	margin-top: 3px;
}

.ihts-modal__note {
	margin: 18px 0 0;
	padding: 13px 14px;
	border-radius: 10px;
	background: #f4f7fb;
	font-size: 13px;
}

.ihts-modal-open {
	overflow: hidden;
}

.ihts-report-page {
	width: min(100%, 780px);
	margin: 20px auto 50px;
	color: var(--ihts-ink);
}

.ihts-report-header {
	margin-bottom: 24px;
}

.ihts-report-header h1 {
	margin: 4px 0 8px;
	font-size: clamp(28px, 5vw, 42px);
	line-height: 1.1;
}

.ihts-report-header p:last-child {
	color: var(--ihts-muted);
}

.ihts-form {
	display: grid;
	gap: 17px;
	padding: clamp(18px, 4vw, 30px);
	border: 1px solid var(--ihts-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.ihts-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.ihts-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.ihts-form label > span:first-child {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 700;
}

.ihts-form input[type="text"],
.ihts-form input[type="email"],
.ihts-form input[type="tel"],
.ihts-form input[type="date"],
.ihts-form input[type="file"],
.ihts-form textarea {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 9px;
	background: #fff;
	color: var(--ihts-ink);
	font: inherit;
}

.ihts-form input[type="text"],
.ihts-form input[type="email"],
.ihts-form input[type="tel"],
.ihts-form input[type="date"],
.ihts-form textarea {
	padding: 11px 12px;
}

.ihts-form input:focus,
.ihts-form textarea:focus {
	border-color: #4f7fbd;
	outline: 3px solid rgba(79, 127, 189, 0.14);
}

.ihts-evidence {
	padding: 17px;
	border: 1px solid #f1d792;
	border-radius: 12px;
	background: #fffaf0;
}

.ihts-evidence h2 {
	margin: 0 0 7px;
	font-size: 18px;
}

.ihts-evidence > p {
	margin: 0 0 13px;
	color: #665321;
	font-size: 13px;
	line-height: 1.5;
}

.ihts-upload-list {
	display: grid;
	gap: 6px;
	margin-top: 10px;
}

.ihts-upload-count {
	margin-top: 10px;
	color: #455269;
	font-size: 13px;
	font-weight: 700;
}

.ihts-upload-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.82);
	font-size: 12px;
}

.ihts-upload-item span {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ihts-upload-item strong {
	flex: 0 0 auto;
}

.ihts-upload-remove {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #8a2e39;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ihts-upload-remove:focus-visible {
	outline: 3px solid rgba(79, 127, 189, 0.22);
	outline-offset: 2px;
}

.ihts-evidence-unavailable {
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff;
	color: #7a4c00 !important;
}

.ihts-checkbox {
	display: flex !important;
	align-items: flex-start;
	gap: 9px;
}

.ihts-checkbox input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.ihts-checkbox span {
	margin: 0 !important;
	font-weight: 500 !important;
	line-height: 1.45;
}

.ihts-consequences,
.ihts-disclaimer {
	margin-top: 14px;
	padding: 12px 13px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.82);
	font-size: 12px;
	line-height: 1.5;
}

.ihts-consequences p {
	margin: 4px 0 0;
}

.ihts-disclaimer {
	margin: 0;
	background: var(--ihts-soft);
	color: #536078;
}

.ihts-submit {
	justify-self: start;
	min-height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 9px;
	background: var(--ihts-accent);
	color: #fff;
	font: inherit;
	font-weight: 750;
	cursor: pointer;
}

.ihts-submit:hover {
	background: #cd5b0c;
}

.ihts-submit:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.ihts-submit.is-busy {
	cursor: wait;
}

.ihts-form-message {
	min-height: 1px;
	font-size: 14px;
	font-weight: 650;
}

.ihts-form-message--error {
	padding: 11px 12px;
	border-radius: 8px;
	background: #fff1f2;
	color: #a61b2b;
}

.ihts-form-message--success {
	padding: 11px 12px;
	border-radius: 8px;
	background: #edf9f0;
	color: #176b31;
}

.ihts-report-page.is-submitted .ihts-report-header {
	display: none;
}

.ihts-form[hidden] {
	display: none;
}

.ihts-submission-success {
	display: grid;
	min-height: min(56vh, 480px);
	place-content: center;
	gap: 12px;
	padding: clamp(28px, 7vw, 64px);
	border: 1px solid #a9dbb7;
	border-radius: 18px;
	background: #edf9f0;
	box-shadow: 0 14px 42px rgba(23, 107, 49, 0.12);
	color: #174f29;
	text-align: center;
}

.ihts-submission-success[hidden] {
	display: none;
}

.ihts-submission-success h2 {
	margin: 0;
	font-size: clamp(28px, 6vw, 44px);
	line-height: 1.12;
}

.ihts-submission-success p {
	max-width: 620px;
	margin: 0 auto;
	font-size: clamp(16px, 2.5vw, 19px);
	line-height: 1.6;
}

.ihts-submission-success:focus {
	outline: 3px solid rgba(23, 107, 49, 0.22);
	outline-offset: 4px;
}

.ihts-handyman-dashboard {
	width: min(100%, 920px);
	margin: 20px auto 50px;
	color: var(--ihts-ink);
}

.ihts-dashboard-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
	padding: 22px;
	border: 1px solid var(--ihts-line);
	border-radius: 16px;
	background: #fff;
}

.ihts-dashboard-header h1,
.ihts-dashboard-header h2 {
	margin: 3px 0 7px;
}

.ihts-dashboard-header p {
	margin: 0;
	color: var(--ihts-muted);
}

.ihts-dashboard-current {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 12px;
	border-radius: 999px;
	background: var(--ihts-soft);
	white-space: nowrap;
}

.ihts-dashboard-empty,
.ihts-handyman-case {
	padding: 22px;
	border: 1px solid var(--ihts-line);
	border-radius: 16px;
	background: #fff;
}

.ihts-case-list {
	display: grid;
	gap: 16px;
}

.ihts-handyman-case > header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ihts-line);
}

.ihts-handyman-case h2 {
	margin: 2px 0 0;
	font-size: 20px;
}

.ihts-handyman-case time {
	color: var(--ihts-muted);
	font-size: 13px;
}

.ihts-case-statement,
.ihts-existing-response,
.ihts-case-decision {
	margin-top: 15px;
	line-height: 1.55;
}

.ihts-existing-response,
.ihts-case-decision {
	padding: 13px 14px;
	border-radius: 10px;
	background: var(--ihts-soft);
}

.ihts-existing-response p,
.ihts-case-decision p {
	margin: 5px 0 0;
}

.ihts-case-evidence {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 9px;
	margin-top: 15px;
}

.ihts-case-evidence a {
	display: block;
	overflow: hidden;
	border-radius: 9px;
	background: var(--ihts-soft);
}

.ihts-case-evidence img {
	display: block;
	width: 100%;
	height: 130px;
	object-fit: cover;
}

.ihts-handyman-case form {
	display: grid;
	gap: 12px;
	margin-top: 17px;
}

.ihts-handyman-case textarea {
	box-sizing: border-box;
	width: 100%;
	margin-top: 6px;
	padding: 11px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 9px;
	font: inherit;
}

@media (max-width: 680px) {
	.ihts-profile-summary {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
		padding-block: 3px 6px;
	}

	.ihts-standing-actions {
		justify-content: space-between;
		gap: 14px;
		width: 100%;
	}

	.ihts-profile-summary--compact .ihts-standing-actions {
		justify-content: flex-start;
	}

	.ihts-identity-verified,
	.ihts-experience {
		min-height: 30px;
	}

	.ihts-form-row {
		grid-template-columns: 1fr;
	}

	.ihts-upload-item {
		flex-wrap: wrap;
	}

	.ihts-dashboard-header {
		display: grid;
	}

	.ihts-modal {
		align-items: center;
		padding: 12px;
	}

	.ihts-modal__panel {
		width: min(100%, 420px);
		max-height: 72vh;
		padding: 18px 16px;
		border-radius: 16px;
	}

	.ihts-modal__panel h2 {
		margin-right: 32px;
		font-size: 20px;
		line-height: 1.2;
	}

	.ihts-modal__panel p {
		font-size: 13px;
		line-height: 1.45;
	}

	.ihts-modal__close {
		top: 8px;
		right: 8px;
		width: 32px;
		height: 32px;
		font-size: 22px;
	}

	.ihts-status-key {
		gap: 10px;
		margin: 14px 0;
	}

	.ihts-status-key li {
		gap: 10px;
		font-size: 13px;
		line-height: 1.35;
	}

	.ihts-modal__note {
		margin-top: 12px;
		padding: 10px;
		font-size: 12px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.ihts-profile-summary *,
	.ihts-modal *,
	.ihts-report-page *,
	.ihts-handyman-dashboard * {
		scroll-behavior: auto !important;
	}
}
