/**
 * 4WP SEO Helper admin — aligned with 4WP Drive / Weather / Notifications shell.
 */

.forwp-seo-admin-shell {
	max-width: 1100px;
}

.forwp-seo-admin-shell h1.forwp-seo-admin-heading {
	align-items: center;
	display: flex;
	font-size: 1.6rem;
	font-weight: 600;
	gap: 10px;
	margin-bottom: 0.25rem;
}

.forwp-seo-admin-heading__icon {
	align-items: center;
	color: var(--wp-admin-theme-color, #3858e9);
	display: inline-flex;
	flex-shrink: 0;
	justify-content: center;
	line-height: 0;
}

.forwp-seo-admin-heading__icon svg {
	display: block;
}

.forwp-seo-admin-heading__text {
	align-items: baseline;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

.forwp-seo-admin-heading__version {
	color: #646970;
	font-size: 0.65em;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.forwp-seo-admin-lead {
	color: #646970;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 16px;
	max-width: 72ch;
}

.forwp-seo-admin-app {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.forwp-seo-admin-app .forwp-seo-tab-panel .components-tab-panel__tabs {
	align-items: stretch;
	background: #fafafa;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
}

.forwp-seo-admin-app .forwp-seo-tab-panel .components-tab-panel__tabs .forwp-seo-tab {
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 0;
	box-shadow: none;
	font-weight: 500;
	height: auto;
	margin: 0 !important;
	min-height: 0;
	padding: 10px 14px;
}

.forwp-seo-admin-app .forwp-seo-tab-panel .components-tab-panel__tabs .forwp-seo-tab.is-active {
	background: #fff;
	border-color: #e0e0e0 #e0e0e0 #fff;
	margin-bottom: -1px !important;
	position: relative;
	z-index: 1;
}

.forwp-seo-admin-app .forwp-seo-tab-panel .components-tab-panel__tab-content {
	padding: 18px 20px 24px;
}

.forwp-seo-intro-card {
	background: #fafafa;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	margin-bottom: 16px;
	padding: 16px 20px;
}

.forwp-seo-intro-card__title {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 8px;
}

.forwp-seo-intro-card__text {
	color: #2c3338;
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 12px;
	max-width: 72ch;
}

.forwp-seo-intro-card__text:last-child {
	margin-bottom: 0;
}

.forwp-seo-intro-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.forwp-seo-admin-section-title {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 12px;
}

.forwp-seo-admin-muted {
	color: #646970;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 16px;
	max-width: 72ch;
}

.forwp-seo-setup-steps {
	color: #50575e;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 16px;
	max-width: 72ch;
	padding-left: 1.25em;
}

.forwp-seo-setup-steps li {
	margin: 0 0 6px;
}

.forwp-seo-setup-steps li:last-child {
	margin-bottom: 0;
}

.forwp-seo-status-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	margin-bottom: 8px;
}

.forwp-seo-status-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 14px 16px;
}

.forwp-seo-status-card__head {
	align-items: flex-start;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-bottom: 8px;
}

.forwp-seo-status-card__title {
	font-size: 14px;
	font-weight: 600;
	margin: 0;
}

.forwp-seo-status-card__desc {
	color: #50575e;
	font-size: 13px;
	line-height: 1.45;
	margin: 0;
}

.forwp-seo-status-card__meta {
	border-top: 1px solid #f0f0f1;
	color: #646970;
	font-size: 12px;
	margin-top: 10px;
	padding-top: 8px;
}

.forwp-seo-badge {
	border-radius: 999px;
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 3px 8px;
	text-transform: uppercase;
	white-space: nowrap;
}

.forwp-seo-badge--live {
	background: #edfaef;
	color: #1e4620;
}

.forwp-seo-badge--off {
	background: #f0f0f1;
	color: #50575e;
}

.forwp-seo-badge--warn {
	background: #fff8e5;
	color: #856404;
}

.forwp-seo-badge--soon {
	background: #f0f0f1;
	color: #50575e;
}

.forwp-seo-panel--soon {
	margin-top: 16px;
}

.forwp-seo-soon-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.forwp-seo-soon-list li {
	align-items: center;
	display: flex;
	gap: 10px;
	margin: 0 0 8px;
}

.forwp-seo-panel {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 16px;
	padding: 18px 20px;
}

.forwp-seo-panel--nested {
	background: #fcfcfc;
	border-color: #ececec;
}

.forwp-seo-panel h2,
.forwp-seo-panel h3 {
	font-size: 0.95rem;
	margin: 0 0 10px;
}

.forwp-seo-panel .form-table th {
	font-size: 13px;
	padding: 8px 10px 8px 0;
	width: 160px;
}

.forwp-seo-panel .form-table td {
	font-size: 13px;
	padding: 8px 0;
}

.forwp-seo-panel .description {
	font-size: 12px;
}

.forwp-seo-panel.is-inactive .forwp-seo-oauth-inline {
	opacity: 0.55;
}

.forwp-seo-oauth-inline {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.forwp-seo-oauth-inline input.large-text {
	flex: 1 1 220px;
	min-width: 0;
}

.forwp-seo-oauth-inline__btns {
	align-items: center;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}

.forwp-seo-row-two {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin-bottom: 16px;
}

@media (max-width: 782px) {
	.forwp-seo-row-two {
		grid-template-columns: 1fr;
	}
}

.forwp-seo-inline-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
}

.forwp-seo-gsc-access-callout {
	border-left: 4px solid #dba617;
	margin-bottom: 16px;
}

.forwp-seo-inline-actions .forwp-seo-inline-form {
	display: inline-flex;
	margin: 0;
}

.forwp-seo-code {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	display: inline-block;
	font-size: 12px;
	max-width: 100%;
	overflow-x: auto;
	padding: 4px 8px;
	word-break: break-all;
}

.forwp-seo-code-block {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	font-size: 13px;
	margin: 8px 0 0;
	overflow-x: auto;
	padding: 12px 14px;
}

.forwp-seo-ref-table {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	border-collapse: separate;
	border-spacing: 0;
	margin-top: 12px;
	overflow: hidden;
	width: 100%;
}

.forwp-seo-ref-table th,
.forwp-seo-ref-table td {
	border-bottom: 1px solid #f0f0f1;
	font-size: 13px;
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.forwp-seo-ref-table tr:last-child th,
.forwp-seo-ref-table tr:last-child td {
	border-bottom: none;
}

.forwp-seo-ref-table th {
	background: #fafafa;
	font-weight: 600;
	width: 28%;
}

.forwp-seo-ref-table code {
	font-size: 12px;
}

.forwp-seo-connection-line {
	color: #50575e;
	font-size: 13px;
	margin: 0 0 8px;
	min-height: 1.4em;
}

.forwp-seo-connection-line--ok {
	color: #1e4620;
	font-weight: 500;
}

.forwp-seo-connection-line--warn {
	color: #856404;
}

.forwp-seo-toggle-row {
	align-items: center;
	display: flex;
	gap: 8px;
	margin: 0 0 10px;
}

.forwp-seo-toggle-row:last-child {
	margin-bottom: 0;
}

.forwp-seo-toggle-row .forwp-seo-admin-muted {
	margin: 4px 0 0;
}

.forwp-seo-priority-labels {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 12px 0 4px;
	max-width: 480px;
}

.forwp-seo-priority-labels__row {
	align-items: center;
	display: grid;
	gap: 10px;
	grid-template-columns: 36px 1fr;
}

.forwp-seo-priority-labels__key {
	color: #1d2327;
	font-weight: 600;
}

.forwp-seo-form-actions {
	margin-top: 16px;
}

.forwp-seo-exclude-types {
	display: grid;
	gap: 8px 24px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	margin: 12px 0 4px;
}

.forwp-seo-exclude-types__item {
	align-items: center;
	display: flex;
	gap: 8px;
}

.forwp-seo-exclude-types__item code {
	font-size: 11px;
	margin-left: 4px;
}
}

.forwp-seo-accordion {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.forwp-seo-accordion__item {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	overflow: hidden;
}

.forwp-seo-accordion__summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	list-style: none;
	padding: 14px 16px;
	user-select: none;
}

.forwp-seo-accordion__summary::-webkit-details-marker {
	display: none;
}

.forwp-seo-accordion__summary::before {
	color: #50575e;
	content: "▸";
	display: inline-block;
	flex-shrink: 0;
	font-size: 12px;
	line-height: 1;
	margin-right: 4px;
	transition: transform 0.15s ease;
}

.forwp-seo-accordion__item[open] > .forwp-seo-accordion__summary::before {
	transform: rotate(90deg);
}

.forwp-seo-accordion__title {
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
}

.forwp-seo-accordion__hint {
	color: #646970;
	font-size: 12px;
	font-weight: 400;
}

.forwp-seo-accordion__panel {
	border-top: 1px solid #f0f0f1;
	padding: 14px 16px 16px;
}

.forwp-seo-admin-shell .notice {
	margin: 12px 0;
}

.forwp-seo-gsc-shell {
	max-width: 1200px;
}

.forwp-seo-gsc-app {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.forwp-seo-gsc-layout.forwp-seo-tab-panel--vertical {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	min-height: 420px;
}

.forwp-seo-gsc-sidebar.components-tab-panel__tabs {
	align-items: stretch;
	background: #f8f9fa;
	border-bottom: none;
	border-right: 1px solid #e0e0e0;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0;
	margin: 0;
	padding: 8px 0;
}

.forwp-seo-gsc-sidebar .forwp-seo-gsc-tab {
	border: none;
	border-left: 3px solid transparent;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-weight: 500;
	height: auto;
	justify-content: flex-start;
	margin: 0 !important;
	min-height: 0;
	padding: 10px 16px;
	text-align: left;
	width: 100%;
}

.forwp-seo-gsc-sidebar .forwp-seo-gsc-tab.is-active {
	background: #fff;
	border-left-color: var(--wp-admin-theme-color, #3858e9);
	border-right: 1px solid #fff;
	color: var(--wp-admin-theme-color, #3858e9);
	font-weight: 600;
	margin-right: -1px !important;
	position: relative;
	z-index: 1;
}

.forwp-seo-gsc-content .components-tab-panel__tab-content {
	padding: 18px 20px 24px;
}

@media (max-width: 782px) {
	.forwp-seo-gsc-layout.forwp-seo-tab-panel--vertical {
		grid-template-columns: 1fr;
	}

	.forwp-seo-gsc-sidebar.components-tab-panel__tabs {
		border-bottom: 1px solid #e0e0e0;
		border-right: none;
		flex-direction: row;
		flex-wrap: wrap;
		padding: 0;
	}

	.forwp-seo-gsc-sidebar .forwp-seo-gsc-tab {
		border-bottom: 1px solid #e0e0e0;
		border-left: none;
		flex: 1 1 auto;
	}

	.forwp-seo-gsc-sidebar .forwp-seo-gsc-tab.is-active {
		border-bottom-color: #fff;
		border-left: none;
		border-top: 2px solid var(--wp-admin-theme-color, #3858e9);
		margin-right: 0 !important;
	}
}

.forwp-seo-admin-shell--wide {
	max-width: 1280px;
}

.forwp-seo-dash-legend,
.forwp-seo-dash-list {
	margin: 8px 0 0;
	padding-left: 1.2em;
}

.forwp-seo-dash-legend li,
.forwp-seo-dash-list li {
	margin: 0 0 6px;
}

.forwp-seo-dash-list li {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: disc;
}

.forwp-seo-dash-post-title {
	font-size: 1.2rem;
	margin: 0 0 16px;
}

.forwp-seo-dash-check {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	margin-bottom: 16px;
}

.forwp-seo-dash-check__item {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	display: flex;
	gap: 10px;
	padding: 12px 14px;
}

.forwp-seo-dash-check__item.is-done {
	border-color: #c6e1c6;
}

.forwp-seo-dash-check__mark {
	color: #646970;
	font-size: 16px;
	line-height: 1.3;
}

.forwp-seo-dash-check__item.is-done .forwp-seo-dash-check__mark {
	color: #1e7e34;
}

.forwp-seo-dash-check__item p {
	margin: 4px 0 0;
}

.forwp-seo-dash-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}

.forwp-seo-dash-timeline li {
	border-top: 1px solid #f0f0f1;
	margin: 0;
	padding: 12px 0;
}

.forwp-seo-dash-timeline li:first-child {
	border-top: none;
	padding-top: 0;
}

.forwp-seo-dash-timeline__head {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
}

.forwp-seo-dash-timeline__head .forwp-seo-badge {
	background: #f0f0f1;
	color: #2c3338;
}

.forwp-seo-dash-snap,
.forwp-seo-dash-delta {
	color: #50575e;
	font-size: 13px;
	line-height: 1.45;
	margin: 6px 0 0;
}

.forwp-seo-dash-delta {
	color: #1e7e34;
}

.forwp-seo-admin-shell--wide .forwp-seo-status-card__title {
	font-size: 1.75rem;
	font-weight: 650;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.forwp-seo-status-card.is-alert {
	background: #fcf0f1;
	border-color: #e2a2a7;
}

.forwp-seo-status-card.is-alert .forwp-seo-status-card__title {
	color: #8a2424;
}

.forwp-seo-status-card.is-warn {
	background: #fff8e5;
	border-color: #e2c36d;
}

.forwp-seo-status-card.is-ok {
	background: #edfaef;
	border-color: #b8e0bf;
}

.forwp-seo-status-card.is-up {
	border-color: #b8e0bf;
}

.forwp-seo-dash-split {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	margin: 16px 0;
}

.forwp-seo-dash-weak {
	margin-top: 8px;
}

.forwp-seo-dash-weak tr.is-weak td {
	background: #fcf0f1;
}

.forwp-seo-dash-score.is-weak {
	color: #8a2424;
	font-weight: 650;
}

.forwp-seo-dash-more {
	margin: 10px 0 0;
}

.forwp-seo-dash-legend li.is-warn strong {
	color: #8a2424;
}

@media (max-width: 960px) {
	.forwp-seo-dash-split {
		grid-template-columns: 1fr;
	}
}
