.ti-hltha-wrap {
	max-width: 780px;
	margin: 0 auto;
	font-size: 15px;
	color: #2c2c2c;
}

.ti-hltha-form-area {
	display: block;
}

.ti-hltha-form {
	width: 100%;
}

.ti-hltha-progress {
	margin-bottom: 18px;
}

.ti-hltha-progress-label {
	font-size: 13px;
	color: #555;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ti-hltha-fullscreen-toggle {
	background: #fff;
	border: 1px solid #bbb;
	border-radius: 4px;
	padding: 4px 10px;
	font-size: 12px;
	cursor: pointer;
	white-space: nowrap;
}

.ti-hltha-unit-toggle {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: #444;
	margin-bottom: 8px;
}

.ti-hltha-unit-toggle label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 400;
}

.ti-hltha-wrap.ti-hltha-fullscreen-active {
	background: #fff;
	max-width: 100%;
	height: 100vh;
	overflow-y: auto;
	padding: 40px 24px;
	box-sizing: border-box;
}

.ti-hltha-wrap.ti-hltha-fullscreen-active .ti-hltha-form-area {
	max-width: 900px;
	margin: 0 auto;
}

.ti-hltha-wrap.ti-hltha-fullscreen-active .ti-hltha-question label {
	font-size: 19px;
}

.ti-hltha-wrap.ti-hltha-fullscreen-active .ti-hltha-progress-label {
	font-size: 15px;
}

.ti-hltha-progress-bar {
	height: 6px;
	border-radius: 3px;
	background: #e2e2e2;
	overflow: hidden;
}

.ti-hltha-progress-fill {
	height: 100%;
	background: #2c2c2c;
	transition: width 0.25s ease;
}

.ti-hltha-nav {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ti-hltha-nav-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.ti-hltha-btn-sec-prev,
.ti-hltha-btn-sec-next,
.ti-hltha-btn-q-prev,
.ti-hltha-btn-q-next {
	background: #fff;
	border: 1px solid #bbb;
	border-radius: 4px;
	padding: 8px 16px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	flex: 1 1 0;
	text-align: center;
}

.ti-hltha-btn-sec-prev,
.ti-hltha-btn-sec-next {
	color: #666;
	font-size: 15px;
}

.ti-hltha-btn-q-next {
	background: #2c2c2c;
	color: #fff;
	border-color: #2c2c2c;
}

.ti-hltha-btn-sec-prev:disabled,
.ti-hltha-btn-sec-next:disabled,
.ti-hltha-btn-q-prev:disabled,
.ti-hltha-btn-q-next:disabled {
	opacity: 0.35;
	cursor: default;
}

.ti-hltha-section {
	border: none;
	padding: 0;
	margin: 0;
}

.ti-hltha-section-active .ti-hltha-question {
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	padding: 18px 20px 10px;
	background: #fafafa;
}

.ti-hltha-subfields {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.ti-hltha-sublabel {
	font-size: 13px;
	color: #444;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ti-hltha-input-small {
	width: 80px;
	padding: 5px 7px;
	border: 1px solid #bbb;
	border-radius: 4px;
}

.ti-hltha-optional-note {
	font-size: 12px;
	color: #888;
	margin: 4px 0 0;
}

.ti-hltha-inline-next {
	display: inline-block;
	margin-top: 14px;
	background: #2c2c2c;
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 8px 18px;
	font-size: 13px;
	cursor: pointer;
}

.ti-hltha-inline-next:hover {
	background: #444;
}

/* ---- Summary: full-width, below the nav, grouped into color-coded domain columns ---- */

.ti-hltha-summary {
	margin-top: 28px;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #fbfbfb;
	padding: 18px 20px;
}

.ti-hltha-summary-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.ti-hltha-summary-header h3 {
	margin: 0;
	font-size: 15px;
	letter-spacing: 0.2px;
}

.ti-hltha-reset-btn {
	background: none;
	border: 1px solid #ccc;
	color: #888;
	border-radius: 4px;
	padding: 5px 12px;
	font-size: 12px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ti-hltha-reset-btn:hover {
	background: #fdecec;
	color: #b3261e;
	border-color: #e8b4b0;
}

.ti-hltha-summary-empty {
	color: #888;
	font-style: italic;
	margin: 0;
}

.ti-hltha-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 16px;
}

.ti-hltha-summary-column {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-top: 3px solid #999;
	border-radius: 6px;
	padding: 10px 12px;
}

.ti-hltha-summary-column[data-domain="clinical"] {
	border-top-color: #3f7d5c;
}

.ti-hltha-summary-column[data-domain="mental_health"] {
	border-top-color: #6b5ca5;
}

.ti-hltha-summary-column[data-domain="socioeconomic"] {
	border-top-color: #b8862f;
}

.ti-hltha-summary-column[data-domain="environmental"] {
	border-top-color: #3a7ca5;
}

.ti-hltha-summary-col-title {
	margin: 0 0 8px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #777;
	font-weight: 600;
}

.ti-hltha-summary-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ti-hltha-summary-list li {
	display: flex;
	flex-direction: column;
	padding: 7px 8px;
	margin-bottom: 4px;
	border-radius: 5px;
	background: #f6f6f6;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.ti-hltha-summary-list li:hover,
.ti-hltha-summary-list li:focus {
	background: #eaeaea;
	outline: none;
	transform: translateX(1px);
}

.ti-hltha-summary-hint {
	font-size: 11px;
	color: #999;
	margin: 12px 0 0;
	font-style: italic;
}

.ti-hltha-summary-q {
	color: #888;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.ti-hltha-summary-a {
	font-weight: 600;
	color: #1a1a1a;
	font-size: 13.5px;
}

.ti-hltha-field {
	margin-bottom: 16px;
}

.ti-hltha-field label {
	display: block;
	font-weight: 500;
	margin-bottom: 6px;
}

.ti-hltha-field select {
	width: 100%;
	max-width: 420px;
	padding: 6px 8px;
	border: 1px solid #bbb;
	border-radius: 4px;
	background: #fff;
}

.ti-hltha-info-icon {
	position: relative;
	display: inline-flex;
	vertical-align: middle;
	margin-left: 6px;
	outline: none;
}

.ti-hltha-info-icon-glyph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #d8d8d8;
	color: #555;
	font-size: 11px;
	font-style: italic;
	font-weight: 700;
	font-family: Georgia, serif;
	cursor: help;
	transition: background 0.15s ease, color 0.15s ease;
}

.ti-hltha-info-icon:hover .ti-hltha-info-icon-glyph,
.ti-hltha-info-icon:focus .ti-hltha-info-icon-glyph,
.ti-hltha-info-icon:focus-within .ti-hltha-info-icon-glyph {
	background: #2c2c2c;
	color: #fff;
}

.ti-hltha-info-tooltip {
	position: absolute;
	left: 0;
	top: 24px;
	z-index: 20;
	width: 260px;
	background: #2c2c2c;
	color: #f2f2f2;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 12.5px;
	line-height: 1.5;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	pointer-events: none;
}

.ti-hltha-info-icon:hover .ti-hltha-info-tooltip,
.ti-hltha-info-icon:focus .ti-hltha-info-tooltip,
.ti-hltha-info-icon:focus-within .ti-hltha-info-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.ti-hltha-info-help {
	display: block;
	margin-bottom: 6px;
}

.ti-hltha-info-tooltip a {
	color: #cfe8dc;
	text-decoration: underline;
	font-size: 12px;
}

.ti-hltha-submit {
	background: #2c2c2c;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 22px;
	font-size: 15px;
	cursor: pointer;
	margin-top: 4px;
}

.ti-hltha-submit:hover {
	background: #444;
}

.ti-hltha-guest-notice {
	font-size: 13px;
	color: #a15c00;
	margin-top: 10px;
}

.ti-hltha-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	display: none;
	align-items: stretch;
	justify-content: stretch;
}

.ti-hltha-overlay-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
}

.ti-hltha-overlay-panel {
	position: relative;
	background: #fff;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	overflow-y: auto;
	padding: 32px 20px 40px;
	box-sizing: border-box;
	border-radius: 0;
	box-shadow: none;
}

.ti-hltha-overlay-panel > #ti-hltha-result {
	max-width: 640px;
	margin: 0 auto;
}

.ti-hltha-overlay-close {
	position: fixed;
	top: 16px;
	right: 16px;
	background: #f2f2f2;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 15px;
	color: #555;
	cursor: pointer;
	line-height: 1;
	z-index: 1;
}

.ti-hltha-overlay-close:hover {
	background: #e4e4e4;
}

/* ---- Confirm dialog: separate, always-centered popup (not scroll-dependent) ---- */

.ti-hltha-confirm-dialog {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.ti-hltha-confirm-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(20, 20, 20, 0.55);
}

.ti-hltha-confirm-box {
	position: relative;
	background: #fff;
	border-radius: 10px;
	max-width: 380px;
	width: 100%;
	padding: 24px 22px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
	text-align: center;
}

.ti-hltha-confirm-box p {
	font-size: 14px;
	color: #333;
	margin: 0 0 16px;
	line-height: 1.5;
}

.ti-hltha-dismiss-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ti-hltha-dismiss-edit,
.ti-hltha-dismiss-restart,
.ti-hltha-dismiss-save {
	border-radius: 5px;
	padding: 10px 18px;
	font-size: 13.5px;
	cursor: pointer;
	width: 100%;
}

.ti-hltha-dismiss-edit {
	background: #2c2c2c;
	color: #fff;
	border: none;
}

.ti-hltha-dismiss-restart {
	background: #fff;
	border: 1px solid #ccc;
	color: #555;
}

.ti-hltha-dismiss-save {
	background: #fff;
	border: 1px solid #3f7d5c;
	color: #3f7d5c;
}

.ti-hltha-toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.ti-hltha-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #ccc;
	background: #fff;
	color: #444;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ti-hltha-icon-btn:hover {
	background: #2c2c2c;
	color: #fff;
	border-color: #2c2c2c;
}

.ti-hltha-share-group {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f2f5f4;
	border: 1px solid #d8e2df;
	border-radius: 20px;
	padding: 4px 6px 4px 12px;
}

.ti-hltha-share-group-standalone {
	background: #fafafa;
	border-color: #e0e0e0;
}

.ti-hltha-share-group-label {
	font-size: 11.5px;
	color: #4a6b60;
	font-weight: 600;
	white-space: nowrap;
}

.ti-hltha-share-group .ti-hltha-share-days {
	border: none;
	background: #fff;
	border-radius: 12px;
	padding: 4px 8px;
	font-size: 12px;
}

.ti-hltha-share-group .ti-hltha-icon-btn {
	width: 28px;
	height: 28px;
}

.ti-hltha-result-headline {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 18px;
}

.ti-hltha-gauge {
	width: 110px;
	height: 110px;
	flex-shrink: 0;
}

.ti-hltha-result-headline-text {
	flex: 1;
}

.ti-hltha-level-label {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
}

.ti-hltha-level-sub {
	font-size: 14px;
	color: #666;
	margin-top: 2px;
}

.ti-hltha-bars {
	margin: 16px 0;
}

.ti-hltha-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.ti-hltha-bar-label {
	flex: 0 0 150px;
	font-size: 12.5px;
	color: #444;
}

.ti-hltha-bar-track {
	flex: 1;
	height: 10px;
	background: #ececec;
	border-radius: 5px;
	overflow: hidden;
}

.ti-hltha-bar-fill {
	height: 100%;
	border-radius: 5px;
	transition: width 0.4s ease;
}

.ti-hltha-bar-fill-typical {
	background: repeating-linear-gradient(45deg, #999, #999 4px, #bbb 4px, #bbb 8px);
}

.ti-hltha-bar-value {
	flex: 0 0 30px;
	text-align: right;
	font-size: 12px;
	color: #555;
}

.ti-hltha-disclaimer {
	font-size: 12px;
	color: #777;
	margin-top: 18px;
	font-style: italic;
}

.ti-hltha-history-table {
	width: 100%;
	border-collapse: collapse;
}

.ti-hltha-history-table th,
.ti-hltha-history-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #e2e2e2;
}

.ti-hltha-notice {
	color: #555;
	font-style: italic;
}

.ti-hltha-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	flex-wrap: wrap;
	gap: 10px;
}

.ti-hltha-top-bar-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ti-hltha-lang-toggle {
	font-size: 13px;
}

.ti-hltha-lang-toggle a {
	color: #777;
	text-decoration: none;
	padding: 2px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	margin-left: 4px;
}

.ti-hltha-lang-toggle a.active {
	background: #2c2c2c;
	color: #fff;
	border-color: #2c2c2c;
}

.ti-hltha-zip-control {
	font-size: 13px;
}

.ti-hltha-zip-edit,
.ti-hltha-zip-saved {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ti-hltha-zip-control-input {
	width: 80px;
	padding: 5px 7px;
	border: 1px solid #bbb;
	border-radius: 4px;
	font-size: 13px;
}

.ti-hltha-zip-control-save,
.ti-hltha-zip-control-change {
	background: #2c2c2c;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 5px 12px;
	font-size: 12px;
	cursor: pointer;
}

.ti-hltha-zip-saved-value {
	font-weight: 600;
	color: #3a4a45;
	background: #eef2f2;
	border: 1px solid #d8e2df;
	border-radius: 4px;
	padding: 5px 10px;
}

.ti-hltha-zip-control-change {
	background: #fff;
	color: #555;
	border: 1px solid #ccc;
}

.ti-hltha-zip-lockable.ti-hltha-locked {
	pointer-events: none;
	background: #f0f0f0;
	color: #777;
	border-color: #ddd;
}

.ti-hltha-zip-lock-note {
	font-size: 11.5px;
	color: #6b7d78;
	margin: 6px 0 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ti-hltha-zip-override-btn {
	background: none;
	border: 1px solid #ccc;
	color: #777;
	border-radius: 3px;
	padding: 2px 8px;
	font-size: 11px;
	cursor: pointer;
}

.ti-hltha-aqi-status {
	color: #444;
}

.ti-hltha-recommendations {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #d8d8d8;
}

.ti-hltha-recommendations h4 {
	margin: 0 0 12px;
	font-size: 14px;
}

.ti-hltha-rec-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ti-hltha-rec-card {
	display: flex;
	gap: 12px;
	background: #fafafa;
	border: 1px solid #e6e6e6;
	border-left: 4px solid #999;
	border-radius: 6px;
	padding: 12px 14px;
}

.ti-hltha-rec-num {
	flex: 0 0 22px;
	height: 22px;
	border-radius: 50%;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ti-hltha-rec-body {
	flex: 1;
	min-width: 0;
}

.ti-hltha-rec-label {
	font-weight: 700;
	font-size: 13.5px;
	color: #1a1a1a;
	margin-bottom: 4px;
}

.ti-hltha-rec-text {
	font-size: 13px;
	line-height: 1.5;
	color: #444;
	margin: 0 0 6px;
}

.ti-hltha-rec-link {
	font-size: 12px;
	color: #555;
	text-decoration: none;
	border-bottom: 1px solid #ccc;
}

.ti-hltha-rec-link:hover {
	color: #2c2c2c;
	border-bottom-color: #2c2c2c;
}

.ti-hltha-share-box,
.ti-hltha-share-result {
	margin-top: 10px;
}

.ti-hltha-share-input {
	width: 260px;
	padding: 6px 8px;
	border: 1px solid #bbb;
	border-radius: 4px;
	font-size: 12px;
}

.ti-hltha-copy-btn,
.ti-hltha-share-row-btn {
	background: #fff;
	border: 1px solid #bbb;
	border-radius: 4px;
	padding: 7px 14px;
	font-size: 13px;
	cursor: pointer;
}

.ti-hltha-share-row-btn {
	border-radius: 50%;
	width: 30px;
	height: 30px;
	padding: 0;
}

.ti-hltha-share-expiry {
	font-size: 12px;
	color: #777;
	margin-top: 6px;
}

.ti-hltha-compare-section {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #d8d8d8;
}

.ti-hltha-compare-section h4 {
	margin: 0 0 8px;
	font-size: 14px;
}

.ti-hltha-compare-controls {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.ti-hltha-compare-zip {
	width: 100px;
}

.ti-hltha-compare-btn {
	background: #2c2c2c;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 7px 16px;
	font-size: 13px;
	cursor: pointer;
}

.ti-hltha-compare-overall {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 14px;
	font-size: 13px;
}

.ti-hltha-legend-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	margin-right: 4px;
	vertical-align: middle;
}

.ti-hltha-legend-you {
	background: #2c2c2c;
}

.ti-hltha-legend-typical {
	background: repeating-linear-gradient(45deg, #999, #999 2px, #bbb 2px, #bbb 4px);
}

.ti-hltha-compare-legend {
	font-size: 12px;
	color: #555;
	margin-bottom: 10px;
}

.ti-hltha-compare-bar-group {
	margin-bottom: 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid #f0f0f0;
}

.ti-hltha-bar-tag {
	flex: 0 0 16px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: #999;
	border-radius: 3px;
	text-align: center;
	line-height: 16px;
	height: 16px;
}

.ti-hltha-tag-you {
	background: #2c2c2c;
}

.ti-hltha-tag-typical {
	background: #999;
}

.ti-hltha-bar-row-na {
	color: #999;
	font-size: 12px;
}

.ti-hltha-compare-na {
	font-style: italic;
}

.ti-hltha-compare-error {
	color: #a15c00;
	font-size: 13px;
}

.ti-hltha-compare-breakdown {
	font-size: 12px;
	color: #555;
	margin-bottom: 10px;
}

.ti-hltha-compare-breakdown summary {
	cursor: pointer;
	color: #444;
}

.ti-hltha-compare-note {
	font-size: 11px;
	color: #888;
	font-style: italic;
}

.ti-hltha-print-only {
	display: none;
}

@media print {
	body * {
		visibility: hidden;
	}
	.ti-hltha-print-only,
	.ti-hltha-print-only * {
		visibility: visible;
	}
	.ti-hltha-print-only {
		display: block;
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
	}
}
