.tw-serp-preview-tool {
	width: 100%;
	background: #f5f5f3;
	color: #111111;
	padding: 96px 30px 110px;
}

.tw-serp-preview-tool-inner {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
}


/* =========================================================
   TOOL HEADER
   ========================================================= */

.tw-serp-preview-tool-header {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
	gap: 80px;
	align-items: end;
	padding-bottom: 46px;
	border-bottom: 1px solid rgba(17, 17, 17, 0.14);
}

.tw-serp-preview-tool-eyebrow,
.tw-serp-section-eyebrow {
	margin: 0 0 16px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #777777;
}

.tw-serp-preview-tool-header h2 {
	margin: 0;
	max-width: 760px;
	font-size: clamp(42px, 5vw, 68px);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.045em;
	color: #111111;
}

.tw-serp-preview-tool-intro {
	margin: 0;
	max-width: 470px;
	font-size: 16px;
	line-height: 1.75;
	color: #5f5f5f;
}


/* =========================================================
   URL ANALYSIS BAR
   ========================================================= */

.tw-serp-analysis-bar {
	margin-top: 32px;
	padding: 30px;
	background: #111111;
	color: #ffffff;
}

.tw-serp-analysis-field label {
	display: block;
	margin-bottom: 12px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #a8a8a8;
}

.tw-serp-analysis-input {
	display: flex;
	align-items: stretch;
	gap: 12px;
}

.tw-serp-analysis-input input {
	flex: 1;
	min-width: 0;
	height: 58px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid #3b3b3b;
	border-radius: 0;
	outline: none;
	background: #1a1a1a;
	color: #ffffff;
	font-size: 15px;
	box-shadow: none;
}

.tw-serp-analysis-input input::placeholder {
	color: #777777;
}

.tw-serp-analysis-input input:focus {
	border-color: #777777;
	background: #1d1d1d;
	box-shadow: none;
}

.tw-serp-analyze-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-width: 175px;
	padding: 0 24px;
	border: 1px solid #ffffff;
	border-radius: 0;
	background: #ffffff;
	color: #111111;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.tw-serp-analyze-btn:hover {
	background: #dcdcdc;
	border-color: #dcdcdc;
	color: #111111;
}

.tw-serp-analyze-btn span {
	font-size: 18px;
	line-height: 1;
}

.tw-serp-analysis-help {
	margin: 11px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #858585;
}


/* =========================================================
   ANALYSIS RESULT
   ========================================================= */

.tw-serp-analysis-result {
	margin-top: 32px;
}

.tw-serp-analysis-result[hidden] {
	display: none;
}


/* =========================================================
   SCORE PANEL
   ========================================================= */

.tw-serp-score-panel {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	align-items: center;
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.12);
}

.tw-serp-score-main {
	display: flex;
	align-items: baseline;
	gap: 5px;
	min-height: 150px;
	padding: 28px 30px;
	background: #111111;
	color: #ffffff;
}

.tw-serp-score-label {
	margin-right: auto;
	align-self: flex-start;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.13em;
	color: #999999;
}

.tw-serp-score-main strong {
	font-size: 52px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
}

.tw-serp-score-out-of {
	font-size: 14px;
	color: #777777;
}

.tw-serp-score-copy {
	padding: 28px 34px;
}

.tw-serp-score-copy strong {
	display: block;
	margin-bottom: 7px;
	font-size: 18px;
	font-weight: 600;
	color: #111111;
}

.tw-serp-score-copy p {
	margin: 0;
	max-width: 650px;
	font-size: 14px;
	line-height: 1.65;
	color: #666666;
}


/* =========================================================
   STATUS STRIP
   ========================================================= */

.tw-serp-status-strip {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	margin-top: 1px;
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.12);
	border-top: 0;
}

.tw-serp-status-item {
	min-height: 88px;
	padding: 19px 20px;
	border-right: 1px solid rgba(17, 17, 17, 0.10);
}

.tw-serp-status-item:last-child {
	border-right: 0;
}

.tw-serp-status-item span {
	display: block;
	margin-bottom: 9px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: #8a8a8a;
}

.tw-serp-status-item strong {
	font-size: 13px;
	font-weight: 600;
	color: #333333;
}


/* =========================================================
   MAIN WORKSPACE
   ========================================================= */

.tw-serp-workspace {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	margin-top: 42px;
	border: 1px solid rgba(17, 17, 17, 0.12);
	background: #ffffff;
}


/* =========================================================
   PAGE DATA PANEL
   ========================================================= */

.tw-serp-page-data {
	padding: 34px;
	background: #eeeeec;
	border-right: 1px solid rgba(17, 17, 17, 0.12);
}

.tw-serp-panel-heading {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 34px;
}

.tw-serp-panel-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	background: #111111;
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
}

.tw-serp-panel-heading strong {
	display: block;
	margin-bottom: 5px;
	font-size: 16px;
	font-weight: 600;
}

.tw-serp-panel-heading p {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: #777777;
}


/* =========================================================
   EDIT FIELDS
   ========================================================= */

.tw-serp-edit-field {
	margin-bottom: 25px;
}

.tw-serp-edit-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 9px;
}

.tw-serp-edit-label-row label {
	margin: 0;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #555555;
}

.tw-serp-edit-label-row > span {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #999999;
}

.tw-serp-edit-field input,
.tw-serp-edit-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	border: 1px solid rgba(17, 17, 17, 0.16);
	border-radius: 0;
	background: #ffffff;
	color: #111111;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.55;
	box-shadow: none;
	outline: none;
}

.tw-serp-edit-field input {
	height: 49px;
	padding: 0 14px;
}

.tw-serp-edit-field textarea {
	min-height: 90px;
	padding: 12px 14px;
	resize: vertical;
}

.tw-serp-edit-field input:focus,
.tw-serp-edit-field textarea:focus {
	border-color: #555555;
	box-shadow: none;
}

.tw-serp-edit-field input::placeholder,
.tw-serp-edit-field textarea::placeholder {
	color: #aaa;
}

.tw-serp-field-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: 7px;
}

.tw-serp-field-status span {
	font-size: 10px;
	line-height: 1.4;
	color: #888888;
}

.tw-serp-field-status span:first-child {
	font-weight: 600;
	color: #555555;
}


/* =========================================================
   CLEAR BUTTON
   ========================================================= */

.tw-serp-edit-actions {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.tw-serp-clear-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid rgba(17, 17, 17, 0.25);
	border-radius: 0;
	background: transparent;
	color: #333333;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	cursor: pointer;
}

.tw-serp-clear-btn:hover {
	background: #111111;
	border-color: #111111;
	color: #ffffff;
}


/* =========================================================
   SERP PREVIEW PANEL
   ========================================================= */

.tw-serp-preview-panel {
	padding: 34px;
	background: #111111;
	color: #ffffff;
}

.tw-serp-preview-panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 25px;
	margin-bottom: 30px;
}

.tw-serp-preview-result-eyebrow {
	margin: 0 0 8px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: #858585;
}

.tw-serp-preview-panel-header h3 {
	margin: 0;
	font-size: 25px;
	font-weight: 500;
	line-height: 1.15;
	color: #ffffff;
}


/* =========================================================
   DEVICE SWITCH
   ========================================================= */

.tw-serp-device-switch {
	display: inline-flex;
	border: 1px solid #3a3a3a;
}

.tw-serp-device-switch button {
	min-height: 34px;
	padding: 0 13px;
	border: 0;
	border-right: 1px solid #3a3a3a;
	border-radius: 0;
	background: transparent;
	color: #777777;
	font-size: 10px;
	font-weight: 700;
	cursor: pointer;
}

.tw-serp-device-switch button:last-child {
	border-right: 0;
}

.tw-serp-device-switch button:hover,
.tw-serp-device-switch button.is-active {
	background: #ffffff;
	color: #111111;
}


/* =========================================================
   PREVIEW STAGE
   ========================================================= */

.tw-serp-preview-stage {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 360px;
	padding: 48px 30px;
	background: #f8f8f8;
	overflow: hidden;
	transition: padding 0.2s ease;
}

.tw-serp-preview-stage.is-mobile {
	padding-left: 20px;
	padding-right: 20px;
}

.tw-serp-preview-stage.is-mobile .tw-serp-result {
	width: 100%;
	max-width: 340px;
}


/* =========================================================
   GOOGLE-STYLE RESULT
   ========================================================= */

.tw-serp-result {
	width: 100%;
	max-width: 640px;
	padding: 8px 0;
	color: #202124;
	font-family: Arial, Helvetica, sans-serif;
}

.tw-serp-result-site {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.tw-serp-result-favicon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #eeeeee;
	color: #555555;
	font-size: 13px;
	font-weight: 700;
}

.tw-serp-result-site-info {
	min-width: 0;
}

.tw-serp-result-site-info strong {
	display: block;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.25;
	color: #202124;
}

.tw-serp-result-site-info span {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.3;
	color: #5f6368;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tw-serp-result h4 {
	margin: 4px 0 5px;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.25;
	color: #1a0dab;
}

.tw-serp-result p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #4d5156;
}


/* =========================================================
   PREVIEW NOTE
   ========================================================= */

.tw-serp-preview-note {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-top: 25px;
	padding-top: 22px;
	border-top: 1px solid #2f2f2f;
}

.tw-serp-preview-note > span {
	font-size: 10px;
	font-weight: 700;
	color: #777777;
}

.tw-serp-preview-note strong {
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #dddddd;
}

.tw-serp-preview-note p {
	margin: 0;
	max-width: 550px;
	font-size: 11px;
	line-height: 1.55;
	color: #777777;
}


/* =========================================================
   OPTIMIZATION SIGNALS
   ========================================================= */

.tw-serp-optimization {
	margin-top: 56px;
}

.tw-serp-optimization-header,
.tw-serp-suggestions-header,
.tw-serp-variants-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
	gap: 50px;
	align-items: end;
	margin-bottom: 24px;
}

.tw-serp-optimization-header h3,
.tw-serp-suggestions-header h3,
.tw-serp-variants-header h3 {
	margin: 0;
	font-size: clamp(30px, 3.2vw, 44px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.035em;
}

.tw-serp-optimization-header > p,
.tw-serp-suggestions-header > p,
.tw-serp-variants-header > p {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: #707070;
}

.tw-serp-signal-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: rgba(17, 17, 17, 0.12);
	border: 1px solid rgba(17, 17, 17, 0.12);
}

.tw-serp-signal-card {
	min-height: 205px;
	padding: 24px;
	background: #ffffff;
}

.tw-serp-signal-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 35px;
}

.tw-serp-signal-top span {
	font-size: 10px;
	font-weight: 700;
	color: #999999;
}

.tw-serp-signal-top strong {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.09em;
	color: #666666;
}

.tw-serp-signal-card h4 {
	margin: 0 0 9px;
	font-size: 17px;
	font-weight: 600;
}

.tw-serp-signal-card p {
	margin: 0;
	font-size: 12px;
	line-height: 1.65;
	color: #727272;
}


/* =========================================================
   SUGGESTIONS
   ========================================================= */

.tw-serp-suggestions {
	margin-top: 64px;
}

.tw-serp-suggestions-list {
	display: grid;
	gap: 1px;
	background: rgba(17, 17, 17, 0.12);
	border: 1px solid rgba(17, 17, 17, 0.12);
}

.tw-serp-suggestion-empty {
	padding: 25px;
	background: #ffffff;
	font-size: 13px;
	color: #777777;
}

.tw-serp-suggestion-card {
	display: grid;
	grid-template-columns: 45px minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 23px 25px;
	background: #ffffff;
}

.tw-serp-suggestion-number {
	font-size: 10px;
	font-weight: 700;
	color: #999999;
}

.tw-serp-suggestion-card strong {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: 600;
}

.tw-serp-suggestion-card p {
	margin: 0;
	font-size: 12px;
	line-height: 1.55;
	color: #707070;
}

.tw-serp-suggestion-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 15px;
	border: 1px solid #222222;
	background: transparent;
	color: #111111;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.tw-serp-suggestion-action:hover {
	background: #111111;
	color: #ffffff;
}


/* =========================================================
   VARIANTS
   ========================================================= */

.tw-serp-variants {
	margin-top: 64px;
}

.tw-serp-variant-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.tw-serp-variant-card {
	display: block;
	width: 100%;
	min-height: 135px;
	padding: 20px;
	border: 1px solid rgba(17, 17, 17, 0.13);
	border-radius: 0;
	background: #ffffff;
	text-align: left;
	cursor: pointer;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.tw-serp-variant-card:hover {
	border-color: #111111;
	transform: translateY(-2px);
}

.tw-serp-variant-card.is-active {
	background: #111111;
	border-color: #111111;
	color: #ffffff;
}

.tw-serp-variant-card span {
	display: block;
	margin-bottom: 25px;
	font-size: 10px;
	font-weight: 700;
	color: #999999;
}

.tw-serp-variant-card strong {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
}

.tw-serp-variant-card small {
	display: block;
	font-size: 11px;
	line-height: 1.45;
	color: #777777;
}

.tw-serp-variant-card.is-active small {
	color: #999999;
}


/* =========================================================
   LOADING / STATES
   ========================================================= */

.tw-serp-preview-tool.is-loading .tw-serp-analyze-btn {
	pointer-events: none;
	opacity: 0.65;
}

.tw-serp-preview-tool.is-loading .tw-serp-analyze-btn span {
	opacity: 0.5;
}

.tw-serp-preview-tool .is-good {
	color: #333333 !important;
}

.tw-serp-preview-tool .is-warning {
	color: #666666 !important;
}

.tw-serp-preview-tool .is-error {
	color: #111111 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

	.tw-serp-preview-tool {
		padding-top: 78px;
		padding-bottom: 90px;
	}

	.tw-serp-preview-tool-header {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.tw-serp-preview-tool-intro {
		max-width: 700px;
	}

	.tw-serp-score-panel {
		grid-template-columns: 220px minmax(0, 1fr);
	}

	.tw-serp-status-strip {
		grid-template-columns: repeat(3, 1fr);
	}

	.tw-serp-status-item:nth-child(3) {
		border-right: 0;
	}

	.tw-serp-status-item:nth-child(-n + 3) {
		border-bottom: 1px solid rgba(17, 17, 17, 0.10);
	}

	.tw-serp-workspace {
		grid-template-columns: 1fr;
	}

	.tw-serp-page-data {
		border-right: 0;
		border-bottom: 1px solid rgba(17, 17, 17, 0.12);
	}

	.tw-serp-signal-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tw-serp-variant-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.tw-serp-preview-tool {
		padding: 62px 20px 75px;
	}

	.tw-serp-preview-tool-header {
		padding-bottom: 32px;
	}

	.tw-serp-preview-tool-header h2 {
		font-size: clamp(38px, 11vw, 52px);
	}

	.tw-serp-preview-tool-intro {
		font-size: 14px;
		line-height: 1.65;
	}

	.tw-serp-analysis-bar {
		margin-top: 24px;
		padding: 22px;
	}

	.tw-serp-analysis-input {
		flex-direction: column;
	}

	.tw-serp-analysis-input input {
		height: 52px;
	}

	.tw-serp-analyze-btn {
		width: 100%;
		min-height: 50px;
	}

	.tw-serp-score-panel {
		grid-template-columns: 1fr;
	}

	.tw-serp-score-main {
		min-height: 125px;
		padding: 24px;
	}

	.tw-serp-score-main strong {
		font-size: 45px;
	}

	.tw-serp-score-copy {
		padding: 22px;
	}

	.tw-serp-status-strip {
		grid-template-columns: 1fr 1fr;
	}

	.tw-serp-status-item {
		border-right: 1px solid rgba(17, 17, 17, 0.10);
		border-bottom: 1px solid rgba(17, 17, 17, 0.10);
	}

	.tw-serp-status-item:nth-child(2n) {
		border-right: 0;
	}

	.tw-serp-status-item:last-child {
		grid-column: 1 / -1;
		border-right: 0;
	}

	.tw-serp-page-data,
	.tw-serp-preview-panel {
		padding: 24px 20px;
	}

	.tw-serp-preview-panel-header {
		flex-direction: column;
		gap: 18px;
	}

	.tw-serp-device-switch {
		align-self: flex-start;
	}

	.tw-serp-preview-stage {
		min-height: 330px;
		padding: 38px 18px;
	}

	.tw-serp-result {
		max-width: 100%;
	}

	.tw-serp-result h4 {
		font-size: 18px;
	}

	.tw-serp-result p {
		font-size: 13px;
	}

	.tw-serp-optimization-header,
	.tw-serp-suggestions-header,
	.tw-serp-variants-header {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.tw-serp-signal-grid {
		grid-template-columns: 1fr;
	}

	.tw-serp-signal-card {
		min-height: auto;
	}

	.tw-serp-signal-top {
		margin-bottom: 25px;
	}

	.tw-serp-suggestion-card {
		grid-template-columns: 30px minmax(0, 1fr);
		gap: 14px;
	}

	.tw-serp-suggestion-action {
		grid-column: 2;
		justify-self: start;
	}

	.tw-serp-variant-grid {
		grid-template-columns: 1fr;
	}

	.tw-serp-variant-card {
		min-height: 115px;
	}
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

	.tw-serp-status-strip {
		grid-template-columns: 1fr;
	}

	.tw-serp-status-item,
	.tw-serp-status-item:nth-child(2n),
	.tw-serp-status-item:last-child {
		grid-column: auto;
		border-right: 0;
		border-bottom: 1px solid rgba(17, 17, 17, 0.10);
	}

	.tw-serp-status-item:last-child {
		border-bottom: 0;
	}

	.tw-serp-field-status {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.tw-serp-preview-stage.is-mobile .tw-serp-result {
		max-width: 100%;
	}
}