.tp-ytm-page.container { max-width: 980px; margin-inline: auto; }
.tp-ytm-page .tp-ytm-header { margin: 0 auto 16px; max-width: 720px; }
.tp-ytm-page .tp-ytm-tagline { margin: 8px 0 0; }
.tp-ytm-page .tp-ytm-copy { margin: 24px auto 0; max-width: 880px; padding-inline: 12px; }

.tp-ytm {
	--ytm-ink: #15272b;
	--ytm-muted: #475e63;
	--ytm-line: #d6e4e5;
	--ytm-paper: #fff;
	--ytm-accent: #08666e;
	--ytm-red: #b42318;
	--ytm-soft: #e7f5f4;
	--ytm-background: #f4f8f9;
	color: var(--ytm-ink);
	font-family: Montserrat, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	margin-inline: auto;
	max-width: 880px;
}

.tp-ytm *, .tp-ytm *::before, .tp-ytm *::after { box-sizing: border-box; }
.tp-ytm [hidden] { display: none !important; }
.tp-ytm :is(h2, h3) { color: var(--ytm-ink); font-weight: 700; letter-spacing: -.025em; line-height: 1.18; margin: 0; }
.tp-ytm p { color: var(--ytm-muted); line-height: 1.45; margin: 0; }
.tp-ytm :where(:focus-visible) { outline: 2px solid var(--ytm-accent); outline-offset: 3px; }
.tp-ytm :where([tabindex="-1"]) { scroll-margin-top: 88px; }

.tp-ytm .tp-ytm-app { background: var(--ytm-background); border-radius: 12px; padding: clamp(10px, 3vw, 24px); }
.tp-ytm .tp-ytm-stage { color: var(--ytm-accent); font-size: 12px; font-weight: 700; margin: 0 0 6px; }
.tp-ytm .tp-ytm-panel h2, .tp-ytm .tp-ytm-report h2 { font-size: clamp(21px, 3vw, 27px); margin: 0 0 8px; }
.tp-ytm .tp-ytm-panel {
	background: var(--ytm-paper);
	border: 1px solid var(--ytm-line);
	border-radius: 12px;
	margin-inline: auto;
	max-width: 650px;
	padding: clamp(15px, 3vw, 25px);
}

.tp-ytm .tp-ytm-choices, .tp-ytm .tp-ytm-formats { display: grid; gap: 8px; margin: 14px 0; }
.tp-ytm .tp-ytm-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-ytm .tp-ytm-choices button, .tp-ytm .tp-ytm-formats button {
	/* The theme marks its global button background and border as !important. */
	background: var(--ytm-paper) !important;
	border: 1px solid var(--ytm-line) !important;
	border-radius: 8px;
	color: var(--ytm-ink);
	cursor: pointer;
	font: inherit;
	height: auto;
	margin: 0;
	min-height: 44px;
	padding: 10px 12px;
	text-align: left;
	text-transform: none;
	white-space: normal;
}

.tp-ytm .tp-ytm-choices button { align-items: center; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
.tp-ytm .tp-ytm-choices button:hover, .tp-ytm .tp-ytm-formats button:hover { background: var(--ytm-soft) !important; border-color: var(--ytm-accent) !important; }
.tp-ytm .tp-ytm-choices small { color: var(--ytm-muted); display: block; font-size: 12px; margin-top: 2px; }

.tp-ytm .tp-ytm-fields { display: grid; gap: 14px; margin-top: 16px; }
.tp-ytm .tp-ytm-field { display: grid; gap: 5px; min-width: 0; }
.tp-ytm .tp-ytm-field label, .tp-ytm .tp-ytm-copy-fallback label { color: var(--ytm-ink); font-weight: 700; }
.tp-ytm .tp-ytm-help { font-size: 13px; margin: 0; }
.tp-ytm .tp-ytm-field select, .tp-ytm .tp-ytm-copy-fallback textarea {
	background: var(--ytm-paper);
	border: 1px solid #90a5a9;
	border-radius: 7px;
	color: var(--ytm-ink);
	font: 400 16px/1.4 Montserrat, Arial, sans-serif;
	margin: 0;
	max-width: 100%;
	min-height: 44px;
	min-width: 0;
	padding: 8px 10px;
	width: 100%;
}

.tp-ytm .tp-ytm-field select { appearance: auto; }

.tp-ytm .tp-ytm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-ytm .tp-ytm-form-actions { justify-content: space-between; margin-top: 18px; }
.tp-ytm .button.tp-ytm-action {
	align-items: center;
	color: #fff;
	display: inline-flex;
	font: 700 14px/1.3 Montserrat, Arial, sans-serif;
	height: auto;
	justify-content: center;
	margin: 0;
	min-height: 44px;
	padding: 9px 13px;
	text-align: center;
	text-decoration: none;
	white-space: normal;
}

.tp-ytm .button.tp-ytm-action:hover { color: #fff; }
.tp-ytm .tp-ytm-action:disabled { cursor: wait; opacity: .7; }

.tp-ytm .tp-ytm-report-header { margin-bottom: 13px; }
.tp-ytm .tp-ytm-report-actions { justify-content: center; padding-block: 20px; }
.tp-ytm .tp-ytm-overview {
	--ytm-overview-color: var(--ytm-accent);
	background: var(--ytm-soft);
	border-radius: 7px;
	margin-bottom: 12px;
	padding: 2px 14px 12px;
}
.tp-ytm .tp-ytm-overview[data-severity="priority"] { --ytm-overview-color: #983c28; background: #fcebe6; }
.tp-ytm .tp-ytm-overview[data-severity="review"] { --ytm-overview-color: #854511; background: #fff1e4; }
.tp-ytm .tp-ytm-overview h3 { color: var(--ytm-overview-color); font-size: 19px; }
.tp-ytm .tp-ytm-overview .tp-ytm-overview-counts { color: var(--ytm-overview-color); font-weight: 700; margin-bottom: 5px; }
.tp-ytm .tp-ytm-overview .tp-ytm-overview-next { color: var(--ytm-ink); display: flex; flex-wrap: wrap; gap: 2px 8px; }
.tp-ytm .tp-ytm-findings { align-items: start; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-ytm .tp-ytm-finding {
	background: var(--ytm-paper);
	border: 1px solid var(--ytm-line);
	border-radius: 9px;
	min-width: 0;
	padding: 14px;
}

.tp-ytm .tp-ytm-finding:only-child { grid-column: 1 / -1; }

@media (min-width: 681px) {
	.tp-ytm .tp-ytm-findings[data-packed] { grid-auto-rows: 1px; row-gap: 0; }
	.tp-ytm .tp-ytm-findings[data-packed] > .tp-ytm-finding {
		grid-column: var(--ytm-finding-column);
		grid-row: var(--ytm-finding-row);
	}
}

.tp-ytm .tp-ytm-finding h3 { font-size: 18px; margin: 0 0 6px; }
.tp-ytm .tp-ytm-report h3 { padding-block: 10px; }
.tp-ytm .tp-ytm-finding-tag { background: var(--ytm-soft); border-radius: 4px; color: var(--ytm-accent); display: inline-block; font-size: 12px; font-weight: 700; margin: 0 0 6px; padding: 2px 7px; }
.tp-ytm .tp-ytm-finding-tag[data-severity="priority"] { background: var(--ytm-red); color: #fff; }
.tp-ytm .tp-ytm-finding-tag[data-severity="review"] { background: #fff1e4; color: #854511; }
.tp-ytm .tp-ytm-policy-links { display: flex; flex-wrap: wrap; font-size: 13px; gap: 5px 13px; margin-top: 8px; }
.tp-ytm .tp-ytm-resources { border-top: 1px solid var(--ytm-line); display: grid; font-size: 13px; gap: 8px; margin-top: 11px; padding-top: 9px; }
.tp-ytm .tp-ytm-resources p { margin: 2px 0 0; }
.tp-ytm .tp-ytm-tool-recommendation { background: #f2f2f2; border-radius: 5px; padding: 12px; }
.tp-ytm .tp-ytm-content-recommendation { padding: 12px; }
.tp-ytm .tp-ytm-content-recommendation p { color: #fff; }
.tp-ytm .tp-ytm-content-recommendation a { color: #b5eeee; text-decoration: underline; }
.tp-ytm .tp-ytm-content-recommendation a:focus-visible { outline-color: #89e0e3; }
.tp-ytm .tp-ytm-membership { margin-top: 12px; padding: 30px clamp(15px, 4vw, 27px) 35px; }
.tp-ytm .tp-ytm-membership h3 { color: #fff; font-size: clamp(21px, 4vw, 27px); }
.tp-ytm .tp-ytm-membership p { color: #c8eded; margin-inline: auto; max-width: 540px; }
.tp-ytm .tp-ytm-membership .lp-header-button {
	align-items: center;
	background-color: #be3439;
	color: #fff;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	margin-top: 13px;
	min-height: 44px;
	padding: 9px 14px;
	text-decoration: none;
}
.tp-ytm .tp-ytm-membership .lp-header-button:hover { background-color: #eea541; color: #1c2430; }
.tp-ytm .tp-ytm-membership .lp-header-button:focus-visible { outline-color: #89e0e3; }
.tp-ytm .tp-ytm-copy-fallback { margin-top: 12px; }
.tp-ytm .tp-ytm-copy-fallback textarea { margin-top: 5px; }
.tp-ytm .tp-ytm-status { margin: 0; }
.tp-ytm .tp-ytm-status:not(:empty) { margin-top: 8px; }
.tp-ytm .tp-ytm-status.tp-ytm-status-error { color: var(--ytm-red); font-weight: 700; text-align: center; }
.tp-ytm .tp-ytm-app:has([data-overlay]:not([hidden])) .tp-ytm-status { clip-path: inset(50%); position: absolute; }

.tp-ytm .tp-ytm-overlay {
	background: rgba(17, 17, 17, .6);
	display: grid;
	inset: 0;
	padding: 16px;
	place-items: center;
	position: fixed;
	z-index: 100001;
}

.tp-ytm .tp-ytm-loading {
	background: var(--ytm-paper);
	border-radius: 6px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, .22);
	color: #111;
	min-width: min(260px, 100%);
	padding: 24px 28px;
	text-align: center;
}

.tp-ytm .tp-ytm-loading .fa-cog { font-size: 30px; margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .tp-ytm .tp-ytm-loading .fa-spin { animation: none; } }

@media (max-width: 680px) {
	.tp-ytm .tp-ytm-findings { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 580px) {
	.tp-ytm .tp-ytm-membership .lp-header-button { width: 100%; }
}
