/* ==========================================================================
   Diagnostics readiness
   ========================================================================== */

   .tutorhelper-diagnostics {
	--tutorhelper-orange: #ff6326;
	--tutorhelper-orange-dark: #e84f16;
	--tutorhelper-cream: #f3e7dd;
	--tutorhelper-cream-light: #fff8f3;
	--tutorhelper-dark: #133949;
	--tutorhelper-blue: #328bb8;
	--tutorhelper-sky: #a7d2e7;
	--tutorhelper-white: #ffffff;
	--tutorhelper-alert: #b32d2e;
	--tutorhelper-success: #2f7d4a;
	--tutorhelper-border: rgba(19, 57, 73, 0.16);
	--tutorhelper-border-strong: rgba(19, 57, 73, 0.26);
	--tutorhelper-shadow: 0 10px 28px rgba(19, 57, 73, 0.1);
	--tutorhelper-soft-shadow: 0 6px 18px rgba(19, 57, 73, 0.08);

	max-width: 1200px;
}


.tutorhelper-diagnostics {
	max-width: 1200px;
}

.tutorhelper-diagnostics-readiness {
	overflow: hidden;
	margin: 24px 0 30px;
	border: 2px solid var(--tutorhelper-border);
	border-radius: 18px;
	background: var(--tutorhelper-white);
	box-shadow: var(--tutorhelper-soft-shadow);
}

.tutorhelper-diagnostics-readiness__header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: 2px solid var(--tutorhelper-border);
	background: var(--tutorhelper-cream-light);
}

.tutorhelper-diagnostics-readiness__header h2 {
	margin: 0 0 4px;
	font-size: 20px;
}

.tutorhelper-diagnostics-readiness__header p {
	margin: 0;
	color: #47626d;
}

.tutorhelper-diagnostics-readiness__summary-icon,
.tutorhelper-diagnostics-check__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: 800;
}

.tutorhelper-diagnostics-readiness__summary-icon {
	width: 42px;
	height: 42px;
	font-size: 23px;
}

.tutorhelper-diagnostics-readiness--ready
.tutorhelper-diagnostics-readiness__summary-icon {
	background: #dff4e8;
	color: var(--tutorhelper-success);
}

.tutorhelper-diagnostics-readiness--attention
.tutorhelper-diagnostics-readiness__summary-icon {
	background: #fff2ce;
	color: #8a620d;
}

.tutorhelper-diagnostics-readiness--problem
.tutorhelper-diagnostics-readiness__summary-icon {
	background: #fbeaea;
	color: var(--tutorhelper-alert);
}

.tutorhelper-diagnostics-readiness__checks {
	display: grid;
}

.tutorhelper-diagnostics-check {
	display: grid;
	grid-template-columns:
		auto
		minmax(0, 1fr)
		auto;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--tutorhelper-border);
}

.tutorhelper-diagnostics-check:last-child {
	border-bottom: 0;
}

.tutorhelper-diagnostics-check__icon {
	width: 28px;
	height: 28px;
	font-size: 16px;
}

.tutorhelper-diagnostics-check--ready
.tutorhelper-diagnostics-check__icon {
	background: #dff4e8;
	color: var(--tutorhelper-success);
}

.tutorhelper-diagnostics-check--attention
.tutorhelper-diagnostics-check__icon {
	background: #fff2ce;
	color: #8a620d;
}

.tutorhelper-diagnostics-check--problem
.tutorhelper-diagnostics-check__icon {
	background: #fbeaea;
	color: var(--tutorhelper-alert);
}

.tutorhelper-diagnostics-check__content {
	min-width: 0;
}

.tutorhelper-diagnostics-check__content strong {
	display: block;
	color: var(--tutorhelper-dark);
}

.tutorhelper-diagnostics-check__content p {
	margin: 3px 0 0;
	color: #55717c;
}

@media screen and (max-width: 782px) {
	.tutorhelper-diagnostics-check {
		grid-template-columns:
			auto
			minmax(0, 1fr);
	}

	.tutorhelper-diagnostics-check .button {
		grid-column: 1 / -1;
		width: 100%;
	}

	.tutorhelper-diagnostics-readiness__header {
		align-items: flex-start;
	}
}


/* ==========================================================================
   Diagnostics page
   ========================================================================== */

.tutorhelper-diagnostics > h1 {
	margin-bottom: 6px;
	color: var(--tutorhelper-dark);
	font-size: 30px;
	font-weight: 800;
}

.tutorhelper-diagnostics > h1 + p {
	max-width: 760px;
	margin-top: 0;
	color: #47626d;
	font-size: 15px;
	line-height: 1.5;
}

.tutorhelper-diagnostics .notice {
	margin: 18px 0;
	border-radius: 10px;
}


/* ==========================================================================
   Detailed diagnostics panels
   ========================================================================== */

.tutorhelper-diagnostics-details {
	overflow: hidden;
	margin: 20px 0;
	border: 2px solid var(--tutorhelper-border);
	border-radius: 16px;
	background: var(--tutorhelper-white);
	box-shadow: var(--tutorhelper-soft-shadow);
}

.tutorhelper-diagnostics-details__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 17px 20px;
	background: var(--tutorhelper-cream-light);
	color: var(--tutorhelper-dark);
	cursor: pointer;
	font-size: 16px;
	font-weight: 800;
}

.tutorhelper-diagnostics-details__summary:hover,
.tutorhelper-diagnostics-details__summary:focus-visible {
	background: var(--tutorhelper-cream);
}

.tutorhelper-diagnostics-details__summary small {
	color: #60727c;
	font-size: 12px;
	font-weight: 600;
	text-align: right;
}

.tutorhelper-diagnostics-details__content {
	padding: 20px;
}

.tutorhelper-diagnostics-details__content > :first-child {
	margin-top: 0;
}

.tutorhelper-diagnostics-details__content h2 {
	margin-top: 28px;
	color: var(--tutorhelper-dark);
}

.tutorhelper-diagnostics-details__content h3 {
	margin: 24px 0 8px;
	color: var(--tutorhelper-dark);
}


/* ==========================================================================
   Diagnostic tables
   ========================================================================== */

.tutorhelper-diagnostics .widefat {
	width: 100%;
	max-width: none !important;
	margin-bottom: 18px;
	border: 1px solid var(--tutorhelper-border);
	border-radius: 10px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.tutorhelper-diagnostics .widefat th {
	color: var(--tutorhelper-dark);
	font-weight: 700;
}

.tutorhelper-diagnostics .widefat td,
.tutorhelper-diagnostics .widefat th {
	padding: 10px 12px;
	vertical-align: top;
}

.tutorhelper-diagnostics .widefat code {
	overflow-wrap: anywhere;
	white-space: normal;
}


/* ==========================================================================
   Reports and logs
   ========================================================================== */

.tutorhelper-diagnostics-help {
	max-width: 820px;
	color: #55717c;
	line-height: 1.55;
}

.tutorhelper-diagnostics textarea.code {
	box-sizing: border-box;
	width: 100%;
	max-width: 900px;
	padding: 14px;
	border: 2px solid var(--tutorhelper-border);
	border-radius: 10px;
	background: #f8fafb;
	font-size: 12px;
	line-height: 1.5;
}

.tutorhelper-diagnostics textarea.code:focus {
	border-color: var(--tutorhelper-blue);
	box-shadow: 0 0 0 2px rgba(50, 139, 184, 0.15);
}

.tutorhelper-diagnostics-details__content > p > .button {
	min-height: 36px;
	padding: 4px 15px;
	border: 2px solid var(--tutorhelper-border-strong);
	border-radius: 999px;
	background: var(--tutorhelper-white);
	color: var(--tutorhelper-dark);
	font-weight: 700;
}

.tutorhelper-diagnostics-details__content > p > .button:hover,
.tutorhelper-diagnostics-details__content > p > .button:focus {
	border-color: var(--tutorhelper-orange);
	color: var(--tutorhelper-orange);
}

.tutorhelper-diagnostics-table__label {
	width: 280px;
}


/* ==========================================================================
   Mobile diagnostics
   ========================================================================== */

@media screen and (max-width: 782px) {
	.tutorhelper-diagnostics-details__summary {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}

	.tutorhelper-diagnostics-details__summary small {
		text-align: left;
	}

	.tutorhelper-diagnostics-details__content {
		padding: 15px;
	}

	.tutorhelper-diagnostics .widefat {
		display: block;
		overflow-x: auto;
	}

	.tutorhelper-diagnostics textarea.code {
		min-height: 300px;
	}

	.tutorhelper-diagnostics-table__label {
		width: 190px;
		min-width: 190px;
	}
}
