/**
 * QuietAdmin – Admin styles
 *
 * Calm, "app-like" look for the client view plus
 * agency tools (Ghost Mode, Magic Login, settings).
 *
 * @package QuietAdmin
 */

:root {
	--qa-accent: #1f9d63;
	--qa-dark: #111827;
	--qa-muted: #6b7280;
	--qa-border: #e5e7eb;
	--qa-bg: #f6f7f9;
	--qa-radius: 12px;
	--qa-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
	--qa-warn: #b3541e;
	--qa-warn-dark: #8a3d12;
	--qa-warn-soft: rgba(179, 84, 30, 0.16);
}

/* ------------------------------------------------------------------ */
/* Dashboard: status card                                              */
/* ------------------------------------------------------------------ */

.qa-card {
	background: #fff;
	border: 1px solid var(--qa-border);
	border-radius: var(--qa-radius);
	box-shadow: var(--qa-shadow);
	padding: 20px 22px;
	margin: 0 0 6px;
}

.qa-status-card {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"light main"
		"actions actions";
	gap: 8px 18px;
	align-items: start;
	border-left: 4px solid var(--qa-accent);
	position: relative;
	overflow: hidden;
}

.qa-status-card::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(600px 120px at 0% 0%, rgba(31, 157, 99, 0.06), transparent 70%);
}

.qa-status-light {
	grid-area: light;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(31, 157, 99, 0.1);
}

.qa-status-main {
	grid-area: main;
}

.qa-dot {
	display: block;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--qa-accent);
	box-shadow: 0 0 0 0 rgba(31, 157, 99, 0.55);
	animation: qa-pulse 2.6s ease-out infinite;
}

@keyframes qa-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(31, 157, 99, 0.5);
	}
	70% {
		box-shadow: 0 0 0 14px rgba(31, 157, 99, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(31, 157, 99, 0);
	}
}

.qa-level-yellow {
	border-left-color: #d97706;
}

.qa-level-yellow .qa-status-light {
	background: rgba(217, 119, 6, 0.12);
}

.qa-level-yellow .qa-dot {
	background: #d97706;
	animation: none;
}

.qa-level-red {
	border-left-color: #dc2626;
}

.qa-level-red .qa-status-light {
	background: rgba(220, 38, 38, 0.1);
}

.qa-level-red .qa-dot {
	background: #dc2626;
	animation: none;
}

/* Neutral: no check has run yet (honest default instead of green). */
.qa-level-unknown {
	border-left-color: #6b7280;
}

.qa-level-unknown .qa-status-light {
	background: rgba(107, 114, 128, 0.12);
}

.qa-level-unknown .qa-dot {
	background: #6b7280;
	animation: none;
}

.qa-status-label {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--qa-dark);
}

.qa-status-message {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
}

.qa-status-meta,
.qa-status-update {
	margin: 10px 0 0;
	font-size: 12.5px;
	color: var(--qa-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}

.qa-status-update .dashicons {
	color: var(--qa-accent);
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.qa-status-meta .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.qa-care {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px dashed var(--qa-border);
}

.qa-care-logo {
	max-width: 132px;
	max-height: 46px;
	width: auto;
	height: auto;
	background: #fff;
	border: 1px solid var(--qa-border);
	border-radius: 8px;
	padding: 6px 8px;
	object-fit: contain;
}

.qa-care-text p {
	margin: 0 0 4px;
	font-size: 13.5px;
	line-height: 1.6;
	color: #374151;
}

.qa-care-agency {
	font-weight: 600;
	color: var(--qa-dark) !important;
}

.qa-care-agency a {
	color: var(--qa-accent);
	text-decoration: none;
}

.qa-status-actions {
	grid-area: actions;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
	position: relative;
	z-index: 1;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.qa-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid var(--qa-border);
	background: #fff;
	color: var(--qa-dark);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.qa-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(17, 24, 39, 0.09);
	color: var(--qa-dark);
}

.qa-button:focus-visible {
	outline: 2px solid var(--qa-accent);
	outline-offset: 2px;
}

.qa-button-primary {
	background: var(--qa-accent);
	border-color: var(--qa-accent);
	color: #fff;
}

.qa-button-primary:hover {
	color: #fff;
	filter: brightness(1.05);
}

.qa-button-block {
	display: flex;
	width: 100%;
	justify-content: center;
}

.qa-button .dashicons {
	font-size: 17px;
	width: 17px;
	height: 17px;
}

/* ------------------------------------------------------------------ */
/* Quick actions                                                       */
/* ------------------------------------------------------------------ */

.qa-actions {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}

.qa-action {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--qa-border);
	border-radius: var(--qa-radius);
	background: #fff;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.qa-action:hover {
	border-color: var(--qa-accent);
	box-shadow: 0 8px 20px rgba(31, 157, 99, 0.1);
	transform: translateY(-1px);
}

.qa-action:focus-visible {
	outline: 2px solid var(--qa-accent);
	outline-offset: 2px;
}

.qa-action-icon {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(31, 157, 99, 0.1);
	color: var(--qa-accent);
	font-size: 20px;
}

.qa-action-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.qa-action-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--qa-dark);
}

.qa-action-desc {
	font-size: 12px;
	color: var(--qa-muted);
	line-height: 1.4;
}

.qa-action-arrow {
	margin-left: auto;
	color: #cbd5e1;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.qa-action-primary {
	border-color: rgba(31, 157, 99, 0.35);
	background: linear-gradient(180deg, #fbfefc, #fff);
}

.qa-empty {
	color: var(--qa-muted);
	font-size: 13px;
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Report and support widget                                           */
/* ------------------------------------------------------------------ */

.qa-report-intro {
	margin: 0 0 12px;
	font-size: 13px;
	color: #374151;
}

.qa-report-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.qa-report-stats li {
	flex: 1 1 90px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 8px;
	background: #f8faf9;
	border: 1px solid #e6ece8;
	border-radius: 10px;
	text-align: center;
}

.qa-report-stats .dashicons {
	color: var(--qa-accent);
}

.qa-report-stats strong {
	font-size: 18px;
	color: var(--qa-dark);
	line-height: 1.2;
}

.qa-report-stats span:not(.dashicons) {
	font-size: 11px;
	color: var(--qa-muted);
	line-height: 1.3;
}

.qa-report-highlights {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.qa-report-highlights li {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.55;
	color: #374151;
	margin: 0 0 6px;
}

.qa-report-highlights .dashicons {
	color: var(--qa-accent);
	font-size: 17px;
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	margin-top: 1px;
}

.qa-report-footer {
	margin: 0;
	padding-top: 10px;
	border-top: 1px dashed var(--qa-border);
	font-size: 12px;
	color: var(--qa-muted);
}

.qa-support-text {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.6;
	color: #374151;
}

.qa-support-hint {
	margin: 0 0 12px;
	font-size: 12.5px;
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	padding: 10px 12px;
}

.qa-support-direct {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.qa-support-direct li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	margin: 0 0 6px;
}

.qa-support-direct .dashicons {
	color: var(--qa-muted);
	font-size: 17px;
	width: 17px;
	height: 17px;
}

/* ------------------------------------------------------------------ */
/* Modal (support form)                                                */
/* ------------------------------------------------------------------ */

body.qa-modal-open {
	overflow: hidden;
}

.qa-modal[hidden] {
	display: none !important;
}

.qa-modal {
	position: fixed;
	inset: 0;
	z-index: 160000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.qa-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
	backdrop-filter: blur(2px);
}

.qa-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 540px;
	max-height: calc(100vh - 60px);
	overflow: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

.qa-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid var(--qa-border);
}

.qa-modal-header h2 {
	margin: 0;
	font-size: 16px;
	color: var(--qa-dark);
}

.qa-modal-close {
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--qa-muted);
	padding: 4px;
	border-radius: 6px;
	line-height: 0;
}

.qa-modal-close:hover {
	color: var(--qa-dark);
	background: #f3f4f6;
}

.qa-modal-body {
	padding: 20px 22px;
}

.qa-field {
	margin: 0 0 14px;
}

.qa-field label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #374151;
	margin: 0 0 5px;
}

.qa-field input[type="text"],
.qa-field select,
.qa-field textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 13.5px;
	color: var(--qa-dark);
	background: #fff;
}

.qa-field textarea {
	resize: vertical;
	min-height: 96px;
}

.qa-field input:focus,
.qa-field select:focus,
.qa-field textarea:focus {
	border-color: var(--qa-accent);
	box-shadow: 0 0 0 1px var(--qa-accent);
	outline: none;
}

.qa-field-inline label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	color: #374151;
}

.qa-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.qa-modal-meta {
	margin: 0 0 14px;
	font-size: 11.5px;
	color: var(--qa-muted);
}

.qa-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 4px;
}

.qa-form-feedback {
	margin: 14px 0 0;
	font-size: 13px;
	min-height: 18px;
}

.qa-form-feedback.is-success {
	color: #15803d;
}

.qa-form-feedback.is-error {
	color: #b91c1c;
}

.qa-modal-phone {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 14px 22px;
	background: #f9fafb;
	border-top: 1px solid var(--qa-border);
	font-size: 12.5px;
	color: var(--qa-muted);
}

.qa-modal-phone .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* ------------------------------------------------------------------ */
/* Banner (Ghost Mode / Magic Login)                                   */
/* ------------------------------------------------------------------ */

.qa-banner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #fff;
	border: 0;
}

.qa-banner .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.qa-banner-ghost {
	background: linear-gradient(90deg, #1e293b, #334155);
}

.qa-banner-impersonation {
	background: linear-gradient(90deg, var(--qa-warn-dark), var(--qa-warn));
}

.qa-banner-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.qa-banner-link {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: underline;
	font-size: 12.5px;
}

.qa-banner-link:hover {
	color: #fff;
}

.qa-banner-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: var(--qa-dark) !important;
	padding: 7px 14px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 12.5px;
	text-decoration: none !important;
}

.qa-kbd {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 5px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	font-size: 10.5px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: #475569;
}

/* Admin bar node */
#wpadminbar .qa-ghost-active > .ab-item {
	background: rgba(31, 157, 99, 0.22);
}

#wpadminbar .qa-impersonation-node > .ab-item {
	background: var(--qa-warn-soft);
}

#wpadminbar li.qa-help-node > .ab-item {
	color: #d1fae5 !important;
}

.qa-ghost-dot,
.qa-impersonate-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #34d399;
	margin-right: 6px;
}

.qa-impersonate-dot {
	background: #e8a87c;
}

.qa-media-field {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	max-width: 680px;
}

.qa-media-field .qa-media-url {
	flex: 1 1 240px;
}

.qa-media-field p {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.qa-media-preview {
	flex-basis: 100%;
}

.qa-media-preview:empty {
	display: none;
}

.qa-media-preview img {
	display: block;
	max-width: 220px;
	height: auto;
	background: #fff;
	border: 1px solid var(--qa-border);
	border-radius: 8px;
	padding: 6px;
}

/* ------------------------------------------------------------------ */
/* Client view: calmed admin area                                      */
/* ------------------------------------------------------------------ */

body.qa-client-mode #wpcontent {
	padding-left: 0;
}

body.qa-client-mode .wrap > h1:first-of-type {
	font-size: 23px;
	font-weight: 600;
}

body.qa-client-mode #dashboard-widgets .postbox {
	border: 1px solid var(--qa-border);
	border-radius: var(--qa-radius);
	box-shadow: var(--qa-shadow);
	background: #fff;
}

body.qa-client-mode #dashboard-widgets .postbox > .postbox-header {
	border-bottom: 1px solid var(--qa-border);
	background: #fff;
	border-radius: var(--qa-radius) var(--qa-radius) 0 0;
}

body.qa-client-mode #dashboard-widgets .postbox > .postbox-header > .hndle {
	font-size: 14px;
	font-weight: 600;
	color: var(--qa-dark);
	padding: 14px 18px;
}

body.qa-client-mode #dashboard-widgets .inside {
	padding: 16px 18px 18px;
	margin: 0;
}

body.qa-client-mode #wpfooter {
	color: #9ca3af;
}

body.qa-client-mode .page-title-action,
body.qa-client-mode .wp-core-ui .button-primary {
	border-radius: 8px;
}

body.qa-minimal-dashboard #dashboard-widgets .meta-box-sortables {
	min-height: 0 !important;
}

/* ------------------------------------------------------------------ */
/* Settings                                                            */
/* ------------------------------------------------------------------ */

.qa-settings-wrap,
.qa-report-wrap,
.qa-clients-wrap {
	max-width: 1100px;
}

.qa-brand-header {
	position: relative;
	margin: 18px 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--qa-border);
	border-radius: var(--qa-radius);
	box-shadow: var(--qa-shadow);
}

.qa-brand-header__image {
	display: block;
	width: 100%;
	height: auto;
}

.qa-brand-header__version {
	position: absolute;
	right: 16px;
	bottom: 16px;
	color: var(--qa-dark);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
	backdrop-filter: blur(4px);
}

.qa-settings-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 23px;
}

.qa-settings-title .dashicons {
	color: var(--qa-accent);
	font-size: 26px;
	width: 26px;
	height: 26px;
}

.qa-version {
	font-size: 11px;
	font-weight: 500;
	color: var(--qa-muted);
	background: #f3f4f6;
	border: 1px solid var(--qa-border);
	border-radius: 999px;
	padding: 3px 9px;
	vertical-align: middle;
}

.qa-tagline {
	margin: 6px 0 18px;
	color: var(--qa-muted);
	font-size: 13px;
	font-style: italic;
}

.qa-status-strip {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--qa-border);
	border-left: 4px solid var(--qa-accent);
	border-radius: var(--qa-radius);
	margin: 0 0 18px;
}

.qa-status-strip .qa-dot {
	width: 12px;
	height: 12px;
	animation: none;
}

.qa-strip-label {
	font-weight: 600;
	color: var(--qa-dark);
	font-size: 14px;
}

.qa-strip-meta {
	color: var(--qa-muted);
	font-size: 12.5px;
}

.qa-strip-tools {
	margin-left: auto;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.qa-tabs {
	margin-bottom: 20px;
}

.qa-settings-form .form-table th {
	width: 230px;
	font-weight: 600;
	color: #374151;
}

.qa-section-desc {
	color: var(--qa-muted);
	font-size: 13px;
	margin: 0 0 12px;
}

.qa-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.qa-color-field {
	max-width: 120px;
}

.qa-color-preview {
	display: inline-block;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	border: 1px solid var(--qa-border);
	vertical-align: middle;
	margin-left: 8px;
}

.qa-action-list {
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 460px;
}

.qa-action-list li {
	margin: 0;
	padding: 7px 10px;
	border: 1px solid var(--qa-border);
	border-radius: 8px;
	background: #fff;
	margin-bottom: 6px;
}

.qa-action-list label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	margin: 0;
}

.qa-action-list .dashicons {
	color: var(--qa-accent);
}

.qa-menu-tree {
	max-width: 640px;
}

.qa-menu-node {
	border: 1px solid var(--qa-border);
	border-radius: 10px;
	background: #fff;
	padding: 10px 14px;
	margin: 0 0 8px;
}

.qa-menu-node > label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	margin: 0;
}

.qa-menu-node code {
	font-size: 11px;
	color: var(--qa-muted);
}

.qa-submenu-list {
	margin: 8px 0 0;
	padding: 0 0 0 26px;
	list-style: none;
	border-left: 1px dashed var(--qa-border);
}

.qa-submenu-list li {
	margin: 0 0 4px;
}

.qa-submenu-list label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: #374151;
}

.qa-custom-actions td input {
	width: 100%;
}

.qa-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 18px 0 24px;
}

.qa-stat-card {
	background: #fff;
	border: 1px solid var(--qa-border);
	border-radius: var(--qa-radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.qa-stat-card .dashicons {
	color: var(--qa-accent);
}

.qa-stat-card strong {
	font-size: 24px;
	line-height: 1.1;
	color: var(--qa-dark);
}

.qa-stat-card span:last-child {
	font-size: 12px;
	color: var(--qa-muted);
}

.qa-report-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 6px;
}

.qa-event-table td,
.qa-client-table td {
	vertical-align: middle;
}

.qa-type {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #374151;
}

.qa-type-maintenance {
	background: #ecfdf5;
	color: #047857;
}

.qa-type-security {
	background: #fef2f2;
	color: #b91c1c;
}

.qa-type-backup {
	background: #eff6ff;
	color: #1d4ed8;
}

.qa-type-support {
	background: #fff7ed;
	color: #c2410c;
}

.qa-type-agency {
	background: #f5f3ff;
	color: #6d28d9;
}

.qa-client-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.qa-avatar {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 6px;
}

.qa-empty-state {
	background: #fff;
	border: 1px dashed var(--qa-border);
	border-radius: var(--qa-radius);
	padding: 22px;
	max-width: 620px;
}

.qa-settings-help {
	margin: 30px 0 20px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--qa-border);
	border-radius: var(--qa-radius);
	max-width: 720px;
}

.qa-settings-help h2 {
	margin-top: 0;
	font-size: 15px;
}

.qa-settings-help ol,
.qa-settings-help ul {
	margin: 0 0 10px;
	padding-left: 20px;
	font-size: 13px;
	line-height: 1.7;
	color: #374151;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media screen and (max-width: 782px) {
	.qa-brand-header {
		margin-right: 10px;
	}

	.qa-brand-header__version {
		right: 10px;
		bottom: 10px;
	}


	.qa-status-card {
		grid-template-columns: 1fr;
		grid-template-areas:
			"light"
			"main"
			"actions";
	}

	.qa-settings-form .form-table th {
		width: auto;
	}

	.qa-status-actions .qa-button {
		width: 100%;
		justify-content: center;
	}

	.qa-banner-actions {
		margin-left: 0;
		width: 100%;
	}
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

	.qa-dot {
		animation: none;
	}

	.qa-action:hover,
	.qa-button:hover {
		transform: none;
	}
}

/* ------------------------------------------------------------------ */
/* 0.9.1 – Settings page polish                                        */
/* ------------------------------------------------------------------ */

.qa-settings-wrap {
	--qa-field-width: 520px;
}

.qa-settings-title {
	font-size: 24px;
	font-weight: 600;
	margin-top: 18px;
	color: var(--qa-dark);
}

.qa-tagline {
	font-style: normal;
	font-size: 13.5px;
	margin: 4px 0 20px;
}

.qa-status-strip {
	box-shadow: var(--qa-shadow);
}

.qa-status-strip .button,
.qa-strip-tools .button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 2px 14px;
	min-height: 32px;
	border-color: var(--qa-border);
	color: var(--qa-dark);
	background: #fff;
	font-weight: 600;
}

.qa-strip-tools .button:hover {
	border-color: var(--qa-accent);
	color: var(--qa-accent);
	background: #fff;
}

.qa-strip-tools .button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	margin: 0;
}

/* Tabs as pills */
.qa-tabs.nav-tab-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	border-bottom: 0;
	padding: 0;
	margin: 0 0 16px;
}

.qa-tabs .nav-tab {
	float: none;
	margin: 0;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: #374151;
	background: #fff;
	border: 1px solid var(--qa-border);
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.qa-tabs .nav-tab:hover,
.qa-tabs .nav-tab:focus {
	color: var(--qa-accent);
	border-color: var(--qa-accent);
	background: #fff;
}

.qa-tabs .nav-tab-active,
.qa-tabs .nav-tab-active:hover,
.qa-tabs .nav-tab-active:focus {
	color: #fff;
	background: var(--qa-accent);
	border-color: var(--qa-accent);
}

/* Form as a card */
.qa-settings-form {
	background: #fff;
	border: 1px solid var(--qa-border);
	border-radius: var(--qa-radius);
	box-shadow: var(--qa-shadow);
	padding: 6px 28px 22px;
}

.qa-settings-form h2 {
	margin: 22px 0 4px;
	font-size: 17px;
	font-weight: 600;
	color: var(--qa-dark);
}

.qa-settings-form .form-table {
	margin-top: 8px;
}

.qa-settings-form .form-table th,
.qa-settings-form .form-table td {
	padding-top: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f3f5;
	vertical-align: top;
}

.qa-settings-form .form-table tr:last-child th,
.qa-settings-form .form-table tr:last-child td {
	border-bottom: 0;
}

.qa-settings-form .form-table th {
	width: 240px;
	padding-right: 24px;
	font-size: 13.5px;
}

.qa-settings-form input[type="text"],
.qa-settings-form input[type="url"],
.qa-settings-form input[type="email"],
.qa-settings-form input[type="number"],
.qa-settings-form select {
	width: 100%;
	max-width: var(--qa-field-width);
	min-height: 38px;
	padding: 4px 11px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 13.5px;
	box-shadow: none;
}

.qa-settings-form textarea {
	width: 100%;
	max-width: 680px;
	padding: 9px 11px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-family: inherit;
	font-size: 13.5px;
	line-height: 1.6;
	box-shadow: none;
}

.qa-settings-form input[type="text"]:focus,
.qa-settings-form input[type="url"]:focus,
.qa-settings-form input[type="email"]:focus,
.qa-settings-form input[type="number"]:focus,
.qa-settings-form select:focus,
.qa-settings-form textarea:focus {
	border-color: var(--qa-accent);
	box-shadow: 0 0 0 1px var(--qa-accent);
	outline: none;
}

.qa-settings-form input[type="checkbox"],
.qa-settings-form input[type="radio"] {
	accent-color: var(--qa-accent);
}

.qa-settings-form .description {
	color: var(--qa-muted);
	font-size: 12.5px;
	line-height: 1.55;
	margin-top: 6px;
}

.qa-settings-form .submit {
	margin: 4px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid #f1f3f5;
}

.qa-settings-form .button-primary {
	background: var(--qa-accent);
	border-color: var(--qa-accent);
	border-radius: 999px;
	padding: 3px 24px;
	min-height: 36px;
	font-weight: 600;
	box-shadow: none;
}

.qa-settings-form .button-primary:hover,
.qa-settings-form .button-primary:focus {
	background: #188552;
	border-color: #188552;
}

/* Pro teaser */
.qa-pro-teaser {
	max-width: 560px;
	padding: 18px 20px;
	background: linear-gradient(180deg, #fbfefc, #fff);
	border: 1px solid rgba(31, 157, 99, 0.3);
	border-left: 4px solid var(--qa-accent);
	border-radius: var(--qa-radius);
}

.qa-pro-teaser p {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--qa-dark);
}

.qa-pro-teaser ul {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.qa-pro-teaser li {
	position: relative;
	margin: 0 0 7px;
	padding-left: 24px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #374151;
}

.qa-pro-teaser li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 6px;
	width: 10px;
	height: 5px;
	border-left: 2px solid var(--qa-accent);
	border-bottom: 2px solid var(--qa-accent);
	transform: rotate(-45deg);
}

.qa-pro-teaser .button {
	border-radius: 999px;
	background: var(--qa-accent);
	border-color: var(--qa-accent);
	color: #fff;
	padding: 3px 18px;
	min-height: 34px;
	font-weight: 600;
}

.qa-pro-teaser .button:hover {
	background: #188552;
	border-color: #188552;
	color: #fff;
}

.qa-pro-notice.notice-info {
	border-left-color: var(--qa-accent);
	border-radius: 0 8px 8px 0;
}

/* Getting-started box */
.qa-settings-help {
	max-width: none;
	box-shadow: var(--qa-shadow);
}

/* Plugin list link */
.qa-get-pro-link:hover {
	color: #188552 !important;
}

@media screen and (max-width: 782px) {

	.qa-settings-form {
		padding: 4px 16px 18px;
	}

	.qa-settings-form .form-table th {
		width: auto;
		padding-bottom: 4px;
		border-bottom: 0;
	}

	.qa-settings-form .form-table td {
		padding-top: 0;
	}
}

/* ------------------------------------------------------------------ */
/* 0.9.1 – Settings layout with sidebar                                */
/* ------------------------------------------------------------------ */

.qa-settings-wrap {
	max-width: 1400px;
}

.qa-settings-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 20px;
	align-items: start;
}

.qa-settings-main {
	min-width: 0;
}

.qa-settings-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.qa-side-card {
	background: #fff;
	border: 1px solid var(--qa-border);
	border-radius: var(--qa-radius);
	box-shadow: var(--qa-shadow);
	padding: 16px 18px 18px;
}

.qa-side-card h2 {
	margin: 0 0 12px;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--qa-dark);
}

.qa-side-card ol,
.qa-side-card ul {
	margin: 0;
	padding-left: 20px;
	font-size: 13px;
	line-height: 1.6;
	color: #374151;
}

.qa-side-card ol li,
.qa-side-card ul li {
	margin: 0 0 8px;
}

.qa-compare {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 16px;
	font-size: 12.5px;
}

.qa-compare thead th {
	padding: 0 0 8px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--qa-muted);
	text-align: center;
	width: 56px;
}

.qa-compare tbody th {
	padding: 7px 8px 7px 0;
	font-weight: 400;
	text-align: left;
	color: #374151;
	border-top: 1px solid #f1f3f5;
}

.qa-compare tbody td {
	padding: 7px 0;
	text-align: center;
	border-top: 1px solid #f1f3f5;
}

.qa-compare .is-yes {
	color: var(--qa-accent);
	font-weight: 700;
}

.qa-compare .is-no {
	color: #9ca3af;
}

.qa-side-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--qa-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.qa-side-button:hover,
.qa-side-button:focus {
	background: #188552;
	color: #fff;
}

.qa-side-status {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 14px;
	margin: 0;
	font-size: 13px;
}

.qa-side-status dt {
	color: var(--qa-muted);
}

.qa-side-status dd {
	margin: 0;
	text-align: right;
	font-weight: 600;
	color: var(--qa-dark);
}

.qa-side-pro {
	background: linear-gradient(180deg, #fbfefc, #fff);
	border-color: rgba(31, 157, 99, 0.3);
	border-left: 4px solid var(--qa-accent);
}

.qa-side-pro ul {
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
}

.qa-side-pro li {
	position: relative;
	padding-left: 22px;
}

.qa-side-pro li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 6px;
	width: 10px;
	height: 5px;
	border-left: 2px solid var(--qa-accent);
	border-bottom: 2px solid var(--qa-accent);
	transform: rotate(-45deg);
}

@media screen and (max-width: 1180px) {

	.qa-settings-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}
