/* Techtruthin Core — tool UI. Loaded only on pages that contain a tool. */

/* ---------- Tool page header ---------- */
.tt-tool-hero {
	background: var(--tt-bg-tint);
	border-bottom: 1px solid var(--tt-border);
	padding: clamp(20px, 3vw, 32px) 0 clamp(32px, 5vw, 56px);
}
.tt-tool-hero h1 {
	font-size: clamp(30px, 2.4vw + 16px, 48px);
	margin: 0 0 12px;
}
.tt-tool-hero__lead {
	font-size: clamp(16px, 0.4vw + 14px, 18px);
	max-width: 44em;
	margin: 0 0 10px;
}
.tt-breadcrumbs ol {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	font-size: 14px;
	color: var(--tt-muted);
}
.tt-breadcrumbs li {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.tt-breadcrumbs li + li::before {
	content: "\203A";
	color: var(--tt-border-strong);
}
.tt-breadcrumbs a {
	color: var(--tt-text);
	text-decoration: none;
}
.tt-breadcrumbs a:hover {
	color: var(--tt-blue);
	text-decoration: underline;
}
.tt-breadcrumbs [aria-current] {
	color: var(--tt-navy);
	font-weight: 500;
}
.tt-byline {
	font-size: 14px;
	color: var(--tt-muted);
	margin: 0 0 clamp(20px, 3vw, 28px);
}
.tt-byline a {
	color: var(--tt-text);
}

/* ---------- Tool card ---------- */
.tt-tool {
	background: #fff;
	border: 1px solid var(--tt-border);
	border-radius: 18px;
	box-shadow: var(--tt-shadow);
	padding: clamp(16px, 3vw, 28px);
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 32px);
	align-items: start;
}
@media (max-width: 900px) {
	.tt-tool {
		grid-template-columns: minmax(0, 1fr);
	}
}
.tt-tool .tt-form__row {
	margin: 0;
}
.tt-tool__label {
	display: block;
	font-weight: 600;
	color: var(--tt-navy);
	font-size: 15px;
	margin: 0 0 10px;
	padding: 0;
}
.tt-hint {
	display: block;
	font-size: 13px;
	color: var(--tt-muted);
	line-height: 1.45;
}
.tt-optional {
	font-weight: 400;
	color: var(--tt-muted);
}
.tt-tool .tt-field input[type="color"] {
	padding: 4px;
	height: 48px;
	cursor: pointer;
}

/* Segmented choice (radio pills) */
.tt-seg {
	border: 0;
	margin: 0 0 18px;
	padding: 0;
	min-width: 0;
}
.tt-seg__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tt-seg__opt {
	position: relative;
	margin: 0;
}
.tt-seg__opt input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.tt-seg__opt span {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--tt-border-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--tt-navy);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	user-select: none;
	transition:
		background 0.15s,
		border-color 0.15s;
}
.tt-seg__opt span:hover {
	border-color: var(--tt-navy);
}
.tt-seg__opt input:checked + span {
	background: var(--tt-blue);
	border-color: var(--tt-blue);
	color: #fff;
}
.tt-seg__opt input:focus-visible + span {
	outline: 3px solid var(--tt-blue-bright);
	outline-offset: 2px;
}

/* Input with a button or select attached */
.tt-input-group {
	display: flex;
	align-items: stretch;
}
.tt-input-group input {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	flex: 1 1 auto;
	min-width: 0;
}
.tt-input-group select,
.tt-input-group__btn {
	flex: 0 0 auto;
	width: auto;
	min-height: 48px;
	border: 1px solid var(--tt-border-strong);
	border-left: 0;
	border-radius: 0 10px 10px 0;
	background: var(--tt-bg-tint);
	color: var(--tt-navy);
	font: 600 15px/1 var(--tt-font);
	padding: 0 14px;
	cursor: pointer;
}
.tt-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	align-self: end;
	font-weight: 500;
	color: var(--tt-navy);
	cursor: pointer;
}
.tt-check input {
	width: 20px;
	height: 20px;
	accent-color: var(--tt-blue);
}

/* ---------- QR specifics ---------- */
.tt-qr__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
.tt-qr__panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.tt-qr__panel[hidden] {
	display: none;
}
.tt-qr__options {
	border: 1px solid var(--tt-border);
	border-radius: 12px;
	padding: 0 16px;
}
.tt-qr__options > summary {
	cursor: pointer;
	min-height: 48px;
	display: flex;
	align-items: center;
	font-weight: 600;
	color: var(--tt-navy);
	font-size: 15px;
}
.tt-qr__options[open] {
	padding-bottom: 16px;
}
.tt-qr__options-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
	gap: 14px;
	margin-bottom: 10px;
}
.tt-qr__result {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	background: var(--tt-bg-tint);
	border: 1px solid var(--tt-border);
	border-radius: 14px;
	padding: clamp(16px, 2.5vw, 24px);
	min-width: 0;
}
.tt-qr__preview {
	width: 100%;
	max-width: 260px;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--tt-border);
	border-radius: 12px;
	padding: 10px;
	box-sizing: border-box;
}
.tt-qr__preview svg {
	width: 100%;
	height: auto;
	display: block;
}
.tt-qr__empty {
	margin: 0;
	padding: 12px;
	text-align: center;
	font-size: 14px;
	color: var(--tt-muted);
}
.tt-qr__status {
	margin: 0;
	font-size: 13px;
	color: var(--tt-muted);
	text-align: center;
	min-height: 1.3em;
}
.tt-qr__warning {
	margin: 0;
	font-size: 14px;
	color: var(--tt-error);
	background: #fdecea;
	border: 1px solid #f5c2bc;
	border-radius: 10px;
	padding: 10px 12px;
	width: 100%;
	box-sizing: border-box;
}
.tt-qr__warning[hidden] {
	display: none;
}
.tt-qr__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
}
.tt-qr__actions .tt-btn {
	flex: 1 1 140px;
	min-height: 44px;
	font-size: 15px;
	padding: 0 12px;
}
.tt-qr__actions .tt-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}
.tt-qr__actions .tt-btn[hidden] {
	display: none;
}
.tt-qr__tip {
	margin: 0;
	font-size: 13px;
	color: var(--tt-muted);
	text-align: center;
}
.tt-qr__print {
	width: 100%;
	border-top: 1px solid var(--tt-border);
	padding-top: 14px;
}
.tt-qr__print .tt-tool__label {
	font-size: 14px;
	margin-bottom: 8px;
}
.tt-qr__print input {
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	padding: 8px 12px;
	font: 16px/1.4 var(--tt-font);
	color: var(--tt-navy);
	background: #fff;
	border: 1px solid var(--tt-border-strong);
	border-radius: 10px 0 0 10px;
}
.tt-qr__print select {
	min-height: 44px;
}
.tt-qr__sign {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-top: 1px solid var(--tt-border);
	padding-top: 14px;
}
.tt-qr__sign[hidden] {
	display: none;
}
.tt-qr__sign .tt-tool__label {
	font-size: 14px;
	margin: 0;
}
.tt-qr__sign .tt-check {
	min-height: 40px;
	font-size: 15px;
}
.tt-qr__sign .tt-btn {
	min-height: 44px;
	font-size: 15px;
}
.tt-qr__print-out {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--tt-navy);
}

/* ---------- Hashtag generator ---------- */
.tt-ht__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
.tt-ht__form .tt-seg {
	margin: 0;
}
.tt-ht__groups {
	display: flex;
	flex-direction: column;
	gap: 14px;
	border-top: 1px solid var(--tt-border);
	padding-top: 16px;
}
.tt-ht__group-title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tt-muted);
}
.tt-ht__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tt-ht__chip {
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid var(--tt-border-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--tt-navy);
	font: 500 14px/1 var(--tt-font);
	cursor: pointer;
	transition:
		background 0.15s,
		border-color 0.15s;
}
.tt-ht__chip:hover {
	border-color: var(--tt-navy);
}
.tt-ht__chip[aria-pressed="true"] {
	background: var(--tt-blue-tint);
	border-color: var(--tt-blue);
	color: var(--tt-blue-ink);
	font-weight: 600;
}
.tt-ht__chip[aria-pressed="true"]::before {
	content: "\2713\00a0";
}
.tt-ht__empty {
	margin: 0;
	font-size: 14px;
	color: var(--tt-muted);
}
.tt-ht__result {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--tt-bg-tint);
	border: 1px solid var(--tt-border);
	border-radius: 14px;
	padding: clamp(16px, 2.5vw, 24px);
	min-width: 0;
}
.tt-ht__result-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}
.tt-ht__result-head .tt-tool__label {
	margin: 0;
}
.tt-ht__count {
	font-size: 13px;
	color: var(--tt-muted);
}
.tt-ht__output {
	width: 100%;
	min-height: 120px;
	box-sizing: border-box;
	padding: 12px 14px;
	font: 15px/1.6 var(--tt-font);
	color: var(--tt-navy);
	background: #fff;
	border: 1px solid var(--tt-border-strong);
	border-radius: 10px;
	resize: vertical;
}
.tt-ht__output:focus {
	border-color: var(--tt-blue);
	outline: 3px solid var(--tt-blue-tint);
}
.tt-ht__copy-status {
	margin: 0;
	min-height: 1.3em;
	font-size: 14px;
	color: var(--tt-success);
	font-weight: 500;
}
.tt-ht__checks {
	border-top: 1px solid var(--tt-border);
	padding-top: 12px;
}
.tt-ht__checks .tt-tool__label {
	font-size: 14px;
	margin-bottom: 8px;
}
.tt-check-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tt-check-item {
	position: relative;
	margin: 0;
	padding-left: 26px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tt-text);
}
.tt-check-item::before {
	position: absolute;
	left: 0;
	top: 0;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}
.tt-check-item--ok::before {
	content: "\2713";
	background: var(--tt-success);
}
.tt-check-item--info::before {
	content: "i";
	background: var(--tt-blue);
}
.tt-check-item--warn::before {
	content: "!";
	background: #b45309;
}
.tt-check-item--error::before {
	content: "\00d7";
	background: var(--tt-error);
}
.tt-check-item--warn {
	color: #7a3e07;
}
.tt-check-item--error {
	color: var(--tt-error);
	font-weight: 600;
}

/* ---------- AI prompt generator ---------- */
.tt-pg {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 900px) {
	.tt-pg {
		grid-template-columns: minmax(0, 1fr);
	}
}
.tt-pg__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.tt-pg__step {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tt-muted);
}
.tt-pg__step:first-child {
	margin-top: 0;
}
.tt-pg__extras {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.tt-pg__result {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--tt-bg-tint);
	border: 1px solid var(--tt-border);
	border-radius: 14px;
	padding: clamp(16px, 2.5vw, 24px);
	min-width: 0;
}
.tt-pg__result .tt-hint {
	margin: -4px 0 0;
}
.tt-pg__meter {
	background: #fff;
	border: 1px solid var(--tt-border);
	border-radius: 12px;
	padding: 12px 14px;
}
.tt-pg__meter .tt-tool__label {
	margin-bottom: 8px;
	font-size: 14px;
}
.tt-pg__meter meter {
	width: 100%;
	height: 12px;
}
.tt-pg__meter-label--strong {
	color: var(--tt-success);
}
.tt-pg__meter-label--good {
	color: var(--tt-blue-ink);
}
.tt-pg__meter-label--weak {
	color: #b45309;
}
.tt-pg__tips {
	margin: 10px 0 0;
	padding-left: 1.2em;
	font-size: 14px;
	color: var(--tt-text);
}
.tt-pg__tips li {
	margin: 0 0 4px;
}
.tt-pg__output {
	width: 100%;
	min-height: 260px;
	box-sizing: border-box;
	padding: 12px 14px;
	font:
		14px/1.6 ui-monospace,
		SFMono-Regular,
		Consolas,
		monospace;
	color: var(--tt-navy);
	background: #fff;
	border: 1px solid var(--tt-border-strong);
	border-radius: 10px;
	resize: vertical;
}
.tt-pg__output:focus {
	border-color: var(--tt-blue);
	outline: 3px solid var(--tt-blue-tint);
}

/* ---------- Currency converter ---------- */
.tt-cc__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
.tt-cc__form .tt-cc__amount {
	font-size: 22px;
	font-weight: 600;
	min-height: 56px;
}
.tt-cc__pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: end;
	gap: 10px;
}
.tt-cc__swap {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--tt-border-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--tt-navy);
	cursor: pointer;
	transition:
		background 0.15s,
		transform 0.2s;
}
.tt-cc__swap:hover {
	background: var(--tt-bg-tint);
	transform: rotate(180deg);
}
@media (max-width: 480px) {
	.tt-cc__pair {
		grid-template-columns: minmax(0, 1fr);
	}
	.tt-cc__swap {
		justify-self: center;
		transform: rotate(90deg);
	}
	.tt-cc__swap:hover {
		transform: rotate(270deg);
	}
}
.tt-cc__form input[type="date"] {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.tt-cc__result {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--tt-bg-tint);
	border: 1px solid var(--tt-border);
	border-radius: 14px;
	padding: clamp(16px, 2.5vw, 24px);
	min-width: 0;
}
.tt-cc__big {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-family: var(--tt-font-head);
	color: var(--tt-navy);
	font-size: 18px;
	font-weight: 700;
}
.tt-cc__from {
	font-size: 15px;
	font-weight: 600;
	color: var(--tt-muted);
	font-family: var(--tt-font);
}
.tt-cc__to {
	font-size: clamp(28px, 2vw + 18px, 38px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	word-break: break-word;
}
.tt-cc__rate {
	margin: 0;
	font-size: 14px;
	color: var(--tt-text);
}
.tt-cc__margin {
	background: #fff;
	border: 1px solid var(--tt-border);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.55;
}
.tt-cc__margin p {
	margin: 0 0 6px;
}
.tt-cc__margin p:last-child {
	margin: 0;
}
.tt-cc__meta {
	margin: 0;
	font-size: 13px;
	color: var(--tt-muted);
}
.tt-cc__meta a {
	color: var(--tt-text);
}
.tt-cc__table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
}
.tt-cc__table caption {
	text-align: left;
	font-weight: 600;
	color: var(--tt-navy);
	font-size: 14px;
	padding: 4px 0 8px;
}
.tt-cc__table th,
.tt-cc__table td {
	border: 1px solid var(--tt-border);
	padding: 8px 12px;
	text-align: right;
}
.tt-cc__table th {
	background: var(--tt-bg-tint);
	color: var(--tt-navy);
}
.tt-cc__table td:first-child,
.tt-cc__table th:first-child {
	text-align: left;
}

/* ---------- Shared layout for the newer tools ---------- */
.tt-pw__form,
.tt-mt__form,
.tt-age__form,
.tt-ytm__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.tt-pw__result,
.tt-mt__result,
.tt-age__result,
.tt-ytm__result {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: clamp(16px, 2.5vw, 24px);
	background: var(--tt-bg-tint);
	border: 1px solid var(--tt-border);
	border-radius: 14px;
}

.tt-pw__types,
.tt-mt__options,
.tt-gr__modes {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.tt-pw__types .tt-check,
.tt-mt__options .tt-check,
.tt-gr__modes .tt-check {
	min-height: 40px;
}

.tt-tool input[type="range"] {
	width: 100%;
	min-height: 32px;
	padding: 0;
	border: 0;
	accent-color: var(--tt-blue);
}

/* ---------- Password generator ---------- */
.tt-pw__panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tt-pw__panel[hidden] {
	display: none;
}

.tt-pw__output {
	width: 100%;
	min-height: 56px;
	padding: 12px 14px;
	background: #fff;
	color: var(--tt-navy);
	font:
		600 18px/1.4 ui-monospace,
		SFMono-Regular,
		Consolas,
		monospace;
	letter-spacing: 0.02em;
	border: 1px solid var(--tt-border-strong);
	border-radius: 10px;
}

.tt-pw__output:focus {
	border-color: var(--tt-blue);
	outline: 3px solid var(--tt-blue-tint);
}

.tt-pw__strength {
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--tt-border);
	border-radius: 12px;
}

.tt-pw__strength .tt-tool__label {
	margin-bottom: 8px;
	font-size: 14px;
}

.tt-pw__strength meter {
	width: 100%;
	height: 12px;
}

.tt-pw__strength .tt-hint {
	margin: 4px 0 0;
}

.tt-pw__rating--weak {
	color: var(--tt-error);
}

.tt-pw__rating--fair {
	color: #b45309;
}

.tt-pw__rating--strong,
.tt-pw__rating--very-strong {
	color: var(--tt-success);
}

/* ---------- Meta tags generator ---------- */
.tt-mt__count {
	font-size: 13px;
	line-height: 1.45;
}

.tt-mt__count--ok {
	color: var(--tt-success);
}

.tt-mt__count--warn {
	color: #7a3e07;
}

.tt-mt__count--info {
	color: var(--tt-muted);
}

.tt-mt__preview {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--tt-border);
	border-radius: 12px;
	font-family: Arial, sans-serif;
}

.tt-mt__preview-site {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.tt-mt__preview-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--tt-blue-tint);
	color: var(--tt-blue-ink);
	font-size: 13px;
	font-weight: 700;
	border-radius: 999px;
}

.tt-mt__preview-name,
.tt-mt__preview-url {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.tt-mt__preview-name {
	color: #202124;
	font-size: 14px;
}

.tt-mt__preview-url {
	color: #4d5156;
	font-size: 12px;
}

.tt-mt__preview .tt-mt__preview-title {
	margin: 6px 0 0;
	color: #1a0dab;
	font-size: 20px;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.tt-mt__preview .tt-mt__preview-description {
	margin: 0;
	color: #4d5156;
	font-size: 14px;
	line-height: 1.58;
	overflow-wrap: anywhere;
}

.tt-mt__output {
	width: 100%;
	min-height: 200px;
	padding: 12px 14px;
	background: #fff;
	color: var(--tt-navy);
	font:
		13px/1.6 ui-monospace,
		SFMono-Regular,
		Consolas,
		monospace;
	white-space: pre;
	border: 1px solid var(--tt-border-strong);
	border-radius: 10px;
	resize: vertical;
}

/* ---------- Age calculator and YouTube Monetization Checker ---------- */
.tt-age .tt-age__big,
.tt-ytm .tt-ytm__big {
	margin: 0;
	color: var(--tt-navy);
	font-family: var(--tt-font-head);
	font-size: clamp(24px, 1.6vw + 16px, 32px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.tt-age__details {
	display: flex;
	flex-direction: column;
	margin: 0;
	background: #fff;
	border: 1px solid var(--tt-border);
	border-radius: 12px;
}

.tt-age__details > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 10px 14px;
	font-size: 14px;
}

.tt-age__details > div + div {
	border-top: 1px solid var(--tt-border);
}

.tt-age__details dt {
	color: var(--tt-muted);
}

.tt-age__details dd {
	margin: 0;
	color: var(--tt-navy);
	font-weight: 600;
	text-align: right;
}

/* ---------- WhatsApp link generator ---------- */
.tt-wa__form,
.tt-wa__phone {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.tt-wa__phone[hidden] {
	display: none;
}

.tt-wa__result,
.tt-utm__result {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: clamp(16px, 2.5vw, 24px);
	background: var(--tt-bg-tint);
	border: 1px solid var(--tt-border);
	border-radius: 14px;
}

.tt-wa__result > .tt-tool__label,
.tt-wa__result > .tt-hint,
.tt-utm__result > .tt-tool__label,
.tt-utm__result > .tt-hint,
.tt-utm__result > .tt-check-list,
.tt-utm__result > .tt-utm__channel {
	align-self: stretch;
	margin: 0;
}

.tt-wa__output,
.tt-utm__output {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	background: #fff;
	color: var(--tt-navy);
	font:
		500 15px/1.4 ui-monospace,
		SFMono-Regular,
		Consolas,
		monospace;
	border: 1px solid var(--tt-border-strong);
	border-radius: 10px;
}

.tt-wa__output:focus,
.tt-utm__output:focus {
	border-color: var(--tt-blue);
	outline: 3px solid var(--tt-blue-tint);
}

.tt-wa .tt-qr__actions a.tt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tt-wa .tt-qr__actions a.tt-btn[hidden] {
	display: none;
}

/* ---------- UTM builder (shares the WhatsApp result panel above) ---------- */
.tt-utm__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.tt-utm__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 16px;
}

.tt-utm__output {
	resize: vertical;
	word-break: break-all;
}

.tt-utm__channel {
	font-weight: 600;
	color: var(--tt-navy);
}

.tt-utm__channel:empty {
	display: none;
}

/* ---------- YouTube timestamp and chapter generator ---------- */
.tt-yc__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.tt-yc__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 16px;
}

.tt-yc__result {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: clamp(16px, 2.5vw, 24px);
	background: var(--tt-bg-tint);
	border: 1px solid var(--tt-border);
	border-radius: 14px;
}

.tt-yc__result > .tt-tool__label {
	margin: 8px 0 0;
}

.tt-yc__result > .tt-tool__label:first-child {
	margin-top: 0;
}

.tt-yc__output {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	background: #fff;
	color: var(--tt-navy);
	font:
		500 15px/1.5 ui-monospace,
		SFMono-Regular,
		Consolas,
		monospace;
	border: 1px solid var(--tt-border-strong);
	border-radius: 10px;
	resize: vertical;
}

.tt-yc__output:focus {
	border-color: var(--tt-blue);
	outline: 3px solid var(--tt-blue-tint);
}

.tt-yc__links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.tt-yc__links[hidden] {
	display: none;
}

.tt-yc__links a {
	word-break: break-all;
}

/* ---------- Social media character counter ---------- */
.tt-cc__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.tt-cc__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
	gap: 8px;
	margin: 0;
}

.tt-cc__stat {
	padding: 8px 12px;
	background: var(--tt-bg-tint);
	border: 1px solid var(--tt-border);
	border-radius: 10px;
}

.tt-cc__stat dt {
	color: var(--tt-muted);
	font-size: 13px;
}

.tt-cc__stat dd {
	margin: 0;
	color: var(--tt-navy);
	font-size: 20px;
	font-weight: 700;
}

.tt-cc__result {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: clamp(16px, 2.5vw, 24px);
	background: var(--tt-bg-tint);
	border: 1px solid var(--tt-border);
	border-radius: 14px;
}

.tt-cc__result > .tt-tool__label {
	margin: 0;
}

.tt-cc__platforms {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-cc__platform-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
	margin: 0 0 6px;
	font-size: 14px;
}

.tt-cc__bar {
	display: block;
	height: 8px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--tt-border);
	border-radius: 999px;
}

.tt-cc__fill {
	display: block;
	height: 100%;
	background: var(--tt-success);
}

.tt-cc__platform--near .tt-cc__fill {
	background: #b45309;
}

.tt-cc__platform--near .tt-cc__platform-head span {
	color: #7a3e07;
}

.tt-cc__platform--over .tt-cc__fill {
	background: var(--tt-error);
}

.tt-cc__platform--over .tt-cc__platform-head span {
	color: var(--tt-error);
	font-weight: 600;
}

/* ---------- Social media image resizer ---------- */
.tt-ir__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.tt-ir__form .tt-seg {
	margin: 0;
}

.tt-ir__pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
}

.tt-ir__pair[hidden],
.tt-ir__form [hidden] {
	display: none;
}

.tt-ir__result {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: clamp(16px, 2.5vw, 24px);
	background: var(--tt-bg-tint);
	border: 1px solid var(--tt-border);
	border-radius: 14px;
}

.tt-ir__result > .tt-tool__label {
	margin: 0;
}

.tt-ir__preview {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 420px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--tt-border);
	border-radius: 8px;
}

.tt-ir__preview[hidden] {
	display: none;
}

/* ---------- Tool page body ---------- */
.tt-tool-body {
	padding: clamp(36px, 5vw, 64px) 0;
}
.tt-tool-body .tt-container {
	max-width: calc(820px + 2 * var(--tt-gutter));
}
.tt-tool-body h2 {
	margin: clamp(32px, 4vw, 48px) 0 14px;
}
.tt-tool-body h2:first-child {
	margin-top: 0;
}
.tt-tool-body p,
.tt-tool-body ul {
	margin: 0 0 1em;
}
.tt-tool-body ul:not(.tt-promises) {
	padding-left: 1.3em;
}
.tt-tool-body li {
	margin-bottom: 0.45em;
}
.tt-tool-body ol.tt-steps {
	margin: 0 0 1em;
}
.tt-tool-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	margin: 0 0 1.4em;
	display: block;
	overflow-x: auto;
}
.tt-tool-body th,
.tt-tool-body td {
	border: 1px solid var(--tt-border);
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
}
.tt-tool-body th {
	background: var(--tt-bg-tint);
	color: var(--tt-navy);
}
.tt-tool-body .tt-faq > p {
	margin: 0 0 16px;
}

/* Checkboxes in single-column option lists line up on the left. */
.tt-pw__panel > .tt-check,
.tt-pw__types .tt-check,
.tt-mt__options .tt-check,
.tt-gr__modes .tt-check {
	align-self: flex-start;
}

/* ---------- Google review link and QR (shares the WhatsApp result panel) ---------- */
.tt-gr [data-gr-panel][hidden] {
	display: none;
}

.tt-gr .tt-btn--block {
	align-self: stretch;
}

.tt-gr__messages {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-self: stretch;
	padding-top: 14px;
	border-top: 1px solid var(--tt-border);
}

.tt-gr__messages .tt-tool__label {
	margin: 8px 0 0;
	font-size: 14px;
}

.tt-gr__messages textarea {
	width: 100%;
	font: 15px/1.5 var(--tt-font);
	background: #fff;
	resize: vertical;
}

.tt-gr__messages .tt-btn {
	align-self: flex-start;
}

/* ---------- Loan and EMI calculator (shares the age calculator's result panel) ---------- */
.tt-loan .tt-age__big {
	margin: 0;
	color: var(--tt-navy);
	font-family: var(--tt-font-head);
	font-size: clamp(24px, 1.6vw + 16px, 32px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.tt-loan__schedule {
	grid-column: 1 / -1;
	min-width: 0;
}

.tt-loan__schedule-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 10px;
}

.tt-loan__schedule-head .tt-tool__label {
	margin: 0;
}

.tt-loan__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	font-size: 14px;
	cursor: pointer;
}

.tt-loan__scroll {
	max-height: 420px;
	overflow: auto;
	border: 1px solid var(--tt-border);
	border-radius: 12px;
}

.tt-loan__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.tt-loan__table th,
.tt-loan__table td {
	padding: 8px 12px;
	text-align: right;
	white-space: nowrap;
}

.tt-loan__table th:first-child,
.tt-loan__table td:first-child {
	text-align: left;
}

.tt-loan__table thead th {
	position: sticky;
	top: 0;
	background: var(--tt-bg-tint);
	color: var(--tt-navy);
	font-weight: 600;
}

.tt-loan__table tbody tr + tr td {
	border-top: 1px solid var(--tt-border);
}

/* ---------- YouTube tag counter ---------- */
.tt-ytt__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-ytt__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: #fff;
	border: 1px solid var(--tt-border);
	border-radius: 999px;
	font-size: 14px;
	overflow-wrap: anywhere;
}

.tt-ytt__cost {
	color: var(--tt-muted);
	font-size: 12px;
}

.tt-ytt__tag--dropped {
	border-color: var(--tt-error);
	text-decoration: line-through;
}
