/**
 * AI Slop Checker — admin styles.
 */

/* ------------------------------------------------------------- Meta box */

.aisc-panel .aisc-actions {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}

.aisc-panel .aisc-hint {
	margin: 0 0 10px;
	font-size: 12px;
	color: #646970;
}

.aisc-status {
	min-height: 18px;
	font-size: 12px;
	color: #646970;
}

.aisc-status-error {
	color: #b32d2e;
	font-weight: 600;
}

.aisc-stamp {
	margin: 10px 0 0;
	font-size: 11px;
	color: #8c8f94;
}

/* --------------------------------------------------------------- Score */

.aisc-score {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: 4px;
	border-left: 4px solid #dcdcde;
	background: #f6f7f7;
	margin-bottom: 12px;
}

.aisc-score-num {
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.aisc-score-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 12px;
}

.aisc-score-meta em {
	color: #646970;
	font-style: normal;
	line-height: 1.4;
}

.aisc-level-high {
	border-left-color: #d63638;
	background: #fcf0f1;
}

.aisc-level-high .aisc-score-num {
	color: #d63638;
}

.aisc-level-medium {
	border-left-color: #dba617;
	background: #fcf9e8;
}

.aisc-level-medium .aisc-score-num {
	color: #bd8600;
}

.aisc-level-low {
	border-left-color: #72aee6;
	background: #f0f6fc;
}

.aisc-level-low .aisc-score-num {
	color: #2271b1;
}

.aisc-level-clean {
	border-left-color: #00a32a;
	background: #edfaef;
}

.aisc-level-clean .aisc-score-num {
	color: #00a32a;
}

/* ------------------------------------------------------------ Findings */

.aisc-group {
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f1;
}

.aisc-group:last-child {
	border-bottom: 0;
}

.aisc-group h4 {
	margin: 0 0 2px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #1d2327;
}

.aisc-count {
	display: inline-block;
	min-width: 16px;
	padding: 0 5px;
	border-radius: 8px;
	background: #d63638;
	color: #fff;
	font-size: 10px;
	line-height: 16px;
	text-align: center;
}

.aisc-group-style .aisc-count,
.aisc-group-formatting .aisc-count {
	background: #8c8f94;
}

.aisc-group-desc {
	margin: 0 0 6px;
	font-size: 11px;
	color: #787c82;
	line-height: 1.4;
}

.aisc-findings {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aisc-findings li {
	margin: 0 0 8px;
	padding: 6px 8px;
	background: #fff;
	border: 1px solid #f0f0f1;
	border-radius: 3px;
	font-size: 12px;
}

.aisc-match {
	display: inline-block;
	padding: 1px 4px;
	background: #fcf0f1;
	color: #b32d2e;
	border-radius: 2px;
	font-size: 11px;
}

.aisc-tail-flag {
	display: inline-block;
	padding: 1px 5px;
	border-radius: 8px;
	background: #d63638;
	color: #fff;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.aisc-quote-flag {
	display: inline-block;
	padding: 1px 5px;
	border-radius: 8px;
	background: #dcdcde;
	color: #50575e;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	cursor: help;
}

.aisc-context {
	display: block;
	margin-top: 4px;
	color: #50575e;
	font-style: italic;
	line-height: 1.4;
}

.aisc-pos {
	display: block;
	margin-top: 3px;
	color: #8c8f94;
	font-size: 10px;
}

.aisc-empty {
	padding: 8px;
	color: #00a32a;
	font-size: 12px;
}

/* ------------------------------------------------------------- Verdicts */

.aisc-verify-summary {
	margin-bottom: 6px;
	font-size: 13px;
}

.aisc-bad {
	color: #d63638;
}

.aisc-tally {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 12px;
}

.aisc-tally-item {
	padding: 2px 7px;
	border-radius: 10px;
	font-size: 11px;
	background: #f0f0f1;
	color: #50575e;
}

.aisc-tally-item.aisc-v-inaccurate {
	background: #fcf0f1;
	color: #b32d2e;
}

.aisc-tally-item.aisc-v-outdated {
	background: #fcf9e8;
	color: #a06c00;
}

.aisc-tally-item.aisc-v-accurate {
	background: #edfaef;
	color: #007017;
}

.aisc-claim {
	margin-bottom: 10px;
	padding: 8px;
	border-left: 3px solid #dcdcde;
	background: #f6f7f7;
	border-radius: 0 3px 3px 0;
	font-size: 12px;
}

.aisc-claim.aisc-v-inaccurate {
	border-left-color: #d63638;
	background: #fcf0f1;
}

.aisc-claim.aisc-v-outdated {
	border-left-color: #dba617;
	background: #fcf9e8;
}

.aisc-claim.aisc-v-accurate {
	border-left-color: #00a32a;
	background: #f6faf7;
}

.aisc-claim-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.aisc-verdict {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 10px;
	letter-spacing: 0.5px;
}

.aisc-conf {
	color: #787c82;
	font-size: 11px;
}

.aisc-head-right {
	display: flex;
	align-items: center;
	gap: 6px;
}

.aisc-consensus {
	padding: 1px 6px;
	border-radius: 8px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.aisc-consensus.aisc-agree {
	background: #edfaef;
	color: #007017;
}

.aisc-consensus.aisc-disagree {
	background: #fcf9e8;
	color: #a06c00;
	cursor: help;
}

.aisc-disputed-count {
	color: #a06c00;
}

.aisc-claim blockquote {
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	color: #1d2327;
	line-height: 1.45;
}

.aisc-correction {
	margin: 0 0 4px;
	padding: 5px 6px;
	background: #fff;
	border-radius: 3px;
	line-height: 1.45;
}

.aisc-reasoning {
	margin: 0 0 4px;
	color: #50575e;
	line-height: 1.45;
}

.aisc-sources,
.aisc-freshness {
	margin: 4px 0 0;
	font-size: 11px;
	color: #646970;
}

.aisc-google {
	margin-top: 6px;
	font-size: 11px;
}

.aisc-google ul {
	margin: 2px 0 0 14px;
	list-style: disc;
}

.aisc-api-error {
	padding: 6px 8px;
	background: #fcf0f1;
	border-left: 3px solid #d63638;
	color: #b32d2e;
	font-size: 11px;
}

/* --------------------------------------------------------- List column */

.column-aisc {
	width: 60px;
	text-align: center;
}

.aisc-pill {
	display: inline-block;
	min-width: 26px;
	padding: 2px 7px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	background: #f0f0f1;
	color: #50575e;
}

.aisc-pill-high {
	background: #d63638;
	color: #fff;
}

.aisc-pill-medium {
	background: #dba617;
	color: #1d2327;
}

.aisc-pill-low {
	background: #dbeafe;
	color: #2271b1;
}

.aisc-pill-clean {
	background: #edfaef;
	color: #007017;
}

.aisc-pill-none {
	background: transparent;
	color: #c3c4c7;
}

/* ------------------------------------------------------- Editor flag */

.aisc-flag {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-bottom: 12px;
	padding: 9px 10px;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	border-radius: 0 3px 3px 0;
	font-size: 12px;
	line-height: 1.45;
}

.aisc-flag strong {
	color: #b32d2e;
	font-size: 13px;
}

.aisc-flag span {
	color: #50575e;
}

.aisc-flag-medium {
	border-left-color: #dba617;
	background: #fcf9e8;
}

.aisc-flag-medium strong {
	color: #a06c00;
}

.aisc-stale {
	color: #a06c00;
}

.aisc-flag-dismissed {
	border-left-color: #8c8f94;
	background: #f6f7f7;
}

.aisc-flag-dismissed strong {
	color: #50575e;
}

.aisc-dismiss {
	align-self: flex-start;
	margin-top: 4px;
	padding: 0;
	color: #2271b1;
	font-size: 11px;
	text-decoration: underline;
	cursor: pointer;
}

.aisc-jump {
	padding: 0;
	margin-left: 6px;
	color: #2271b1;
	font-size: 10px;
	text-decoration: underline;
	cursor: pointer;
}

/* Brief highlight on the block we jumped to. */
.aisc-jump-target {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
	transition: outline-color 1.2s ease;
}

@media ( prefers-reduced-motion: reduce ) {
	.aisc-jump-target {
		transition: none;
	}
}

.aisc-notice.notice p {
	line-height: 1.6;
}

/* ---------------------------------------------------------- Page shell */

.aisc-wrap .aisc-tabs {
	margin-bottom: 18px;
}

.aisc-card {
	max-width: 1100px;
	margin: 0 0 20px;
	padding: 4px 20px 16px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.aisc-card h2 {
	margin-top: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f0f0f1;
	font-size: 15px;
}

.aisc-total {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 10px;
	background: #f0f0f1;
	color: #50575e;
	font-size: 12px;
	font-weight: 400;
}

.aisc-radio {
	display: block;
	margin-bottom: 6px;
}

/* ---------------------------------------------- Setup instructions */

.aisc-howto {
	max-width: 720px;
	margin: 12px 0 4px;
	padding: 12px 16px;
	background: #f6f7f7;
	border-left: 4px solid #72aee6;
	border-radius: 0 4px 4px 0;
}

.aisc-howto-title {
	margin: 0 0 6px;
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
}

.aisc-howto-title:not( :first-child ) {
	margin-top: 14px;
}

.aisc-howto ol {
	margin: 0 0 4px 20px;
	padding: 0;
}

.aisc-howto li {
	margin-bottom: 4px;
	font-size: 13px;
	line-height: 1.5;
	color: #50575e;
}

.aisc-howto-note {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #646970;
}

.aisc-warn {
	color: #a06c00;
	font-weight: 600;
}

/* Reference scale under the flag-threshold field. */

.aisc-scale {
	max-width: 640px;
	margin: 10px 0;
	padding: 10px 12px;
	background: #f6f7f7;
	border-radius: 4px;
	list-style: none;
}

.aisc-scale li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 7px;
	color: #50575e;
	font-size: 13px;
	line-height: 1.5;
}

.aisc-scale li:last-child {
	margin-bottom: 0;
}

.aisc-scale-num {
	flex: 0 0 62px;
	padding: 1px 4px;
	border-radius: 3px;
	font-weight: 600;
	font-size: 12px;
	text-align: center;
}

.aisc-scale-clean {
	background: #edfaef;
	color: #007017;
}

.aisc-scale-low {
	background: #f0f6fc;
	color: #2271b1;
}

.aisc-scale-medium {
	background: #fcf9e8;
	color: #a06c00;
}

.aisc-scale-high {
	background: #fcf0f1;
	color: #b32d2e;
}

.aisc-danger {
	color: #b32d2e;
	text-decoration: underline;
}

/* ------------------------------------------------------------ Progress */

.aisc-progress-wrap.hidden {
	display: none;
}

.aisc-progress {
	height: 20px;
	margin: 12px 0 6px;
	background: #f0f0f1;
	border-radius: 10px;
	overflow: hidden;
}

.aisc-progress-bar {
	height: 100%;
	width: 0;
	background: #2271b1;
	border-radius: 10px;
	transition: width 0.4s ease;
}

.aisc-progress-bar.is-running {
	background-image: linear-gradient(
		45deg,
		rgba( 255, 255, 255, 0.2 ) 25%,
		transparent 25%,
		transparent 50%,
		rgba( 255, 255, 255, 0.2 ) 50%,
		rgba( 255, 255, 255, 0.2 ) 75%,
		transparent 75%,
		transparent
	);
	background-size: 28px 28px;
	animation: aisc-stripes 1s linear infinite;
}

@keyframes aisc-stripes {
	from {
		background-position: 28px 0;
	}
	to {
		background-position: 0 0;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.aisc-progress-bar {
		transition: none;
	}
	.aisc-progress-bar.is-running {
		animation: none;
	}
}

.aisc-progress-text {
	margin: 0;
	font-weight: 600;
}

.aisc-leave-note {
	margin: 2px 0 12px;
	color: #646970;
	font-size: 12px;
	font-style: italic;
}

.aisc-scan-options {
	margin: 14px 0 8px;
}

.aisc-scan-options .description {
	margin-left: 6px;
}

.aisc-scan-buttons {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ------------------------------------------------------ Flagged table */

.aisc-table .aisc-col-score {
	width: 70px;
	text-align: center;
}

/* ------------------------------------------- Fact-check tally in a row */

.aisc-fact {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.5;
}

.aisc-fact.is-clean {
	color: #1a7f37;
}

.aisc-fact.is-problem {
	color: #a4331f;
	font-weight: 600;
}

.aisc-fact.is-none {
	color: #787c82;
}

.aisc-fact a {
	margin-left: 4px;
}

.aisc-table .aisc-col-date {
	width: 150px;
}

.aisc-date-published,
.aisc-date-revised {
	display: block;
	font-size: 12px;
	line-height: 1.6;
	white-space: nowrap;
}

.aisc-date-published {
	color: #3c434a;
}

.aisc-date-revised {
	color: #787c82;
}

.aisc-table .aisc-col-links {
	width: 130px;
}

.aisc-table .aisc-col-links .button {
	margin-right: 4px;
}

.aisc-post-meta {
	display: block;
	margin-top: 2px;
	color: #787c82;
	font-size: 11px;
	text-transform: capitalize;
}

.aisc-why {
	margin: 6px 0 0;
	color: #50575e;
	font-size: 12px;
	line-height: 1.5;
}

/* The verbatim match, so a flag can be judged without opening the post. */

.aisc-example {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin: 5px 0 0;
	font-size: 12px;
}

.aisc-example-label {
	color: #787c82;
	text-transform: uppercase;
	font-size: 10px;
	letter-spacing: 0.4px;
}

.aisc-example-text {
	padding: 1px 6px;
	background: #fcf0f1;
	color: #b32d2e;
	border-radius: 3px;
	quotes: '“' '”';
	font-style: italic;
}

.aisc-example-where {
	color: #8c8f94;
	font-size: 11px;
}

.aisc-flag-example {
	display: block;
	margin-top: 4px;
	padding: 3px 7px;
	background: #fff;
	border-radius: 3px;
	quotes: '“' '”';
	color: #b32d2e;
	font-style: italic;
	font-size: 12px;
	line-height: 1.4;
}

.aisc-empty-state {
	padding: 14px 0;
	color: #646970;
}

/* ------------------------------------------------------- Pagination */

.aisc-pagination {
	/* Count above the links, not beside them. Inline, "of 106" butts straight
	   up against the "1" page link and reads as "1061". */
	display: block;
	margin: 14px 0;
}

.aisc-pagination-count {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #50575e;
}

.aisc-pagination-links {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.aisc-pagination-links .page-numbers {
	display: inline-block;
	min-width: 34px;
	padding: 7px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	color: #2271b1;
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.aisc-pagination-links .page-numbers:hover {
	background: #f0f0f1;
	border-color: #8c8f94;
}

.aisc-pagination-links .page-numbers.current {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	font-weight: 600;
}

.aisc-pagination-links .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	padding-left: 4px;
	padding-right: 4px;
	min-width: 0;
}

.aisc-pagination-links .prev,
.aisc-pagination-links .next {
	font-weight: 600;
}

/* ------------------------------------------------------- Row recheck */

.aisc-row.is-checking {
	opacity: 0.6;
}

.aisc-row.is-cleared {
	background: #f6faf7 !important;
}

.aisc-row.is-cleared .aisc-why,
.aisc-row.is-cleared .aisc-example {
	opacity: 0.55;
}

.aisc-recheck-note {
	margin: 6px 0 0;
	font-size: 12px;
	font-weight: 600;
}

.aisc-recheck-note.is-clear {
	color: #007017;
}

.aisc-recheck-note.is-still {
	color: #a06c00;
}

.aisc-col-links .aisc-recheck {
	margin-top: 4px;
}

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

.aisc-settings h2 {
	margin-top: 16px;
}
