/* AdMindra MCP — Tools → AdMindra MCP only (enqueued on that screen).
   AdMindra's look inside wp-admin: one dark primary, round cards, chips for
   state, nothing that moves the page when it gets focus. */
.admindra-mcp {
	--adm-text: #0a1020;
	--adm-muted: #5b6475;
	--adm-line: rgba(15, 23, 42, 0.1);
	--adm-soft: #f3f5fa;
	--adm-panel: #fff;
	--adm-brand: #0b0f19;
	--adm-brand-text: #fff;
	--adm-accent: #2563eb;
	--adm-accent-soft: #eff4ff;
	--adm-good: #13763a;
	--adm-good-soft: #eefbf2;
	--adm-warn: #a64a08;
	--adm-warn-soft: #fff7ed;
	max-width: 1180px;
	color: var(--adm-text);
	font-size: 14px;
}
.admindra-mcp a { color: var(--adm-accent); }
.admindra-mcp h2 { font-size: 17px; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--adm-text); }
.admindra-mcp h3 { font-size: 13px; margin: 18px 0 6px; color: var(--adm-text); }

.admindra-mcp .adm-head {
	background: var(--adm-panel);
	border: 1px solid var(--adm-line);
	border-radius: 18px;
	padding: 22px 24px;
	margin: 18px 0 16px;
	box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}
.admindra-mcp .adm-head-brand { display: flex; align-items: center; gap: 12px; }
.admindra-mcp .adm-head-brand img { height: 28px; width: auto; display: block; }
.admindra-mcp .adm-pill {
	border: 1px solid var(--adm-line);
	background: var(--adm-soft);
	color: var(--adm-muted);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
}
.admindra-mcp .adm-lede { font-size: 15px; line-height: 1.5; color: var(--adm-muted); margin: 12px 0 14px; max-width: 760px; }
.admindra-mcp .adm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.admindra-mcp .adm-chip {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 5px 11px;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid transparent;
}
.admindra-mcp .adm-chip.is-good { background: var(--adm-good-soft); color: var(--adm-good); }
.admindra-mcp .adm-chip.is-warn { background: var(--adm-warn-soft); color: var(--adm-warn); }
.admindra-mcp .adm-chip.is-accent { background: var(--adm-accent-soft); color: var(--adm-accent); }
.admindra-mcp .adm-chip.is-quiet { background: var(--adm-soft); color: var(--adm-muted); border-color: var(--adm-line); }
.admindra-mcp .adm-note { margin: 12px 0 0; color: var(--adm-warn); }

.admindra-mcp .adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admindra-mcp .adm-card {
	background: var(--adm-panel);
	border: 1px solid var(--adm-line);
	border-radius: 18px;
	padding: 20px 22px;
	min-width: 0;
}
.admindra-mcp .adm-wide { grid-column: 1 / -1; }
.admindra-mcp .adm-sub { color: var(--adm-muted); margin: 0 0 14px; line-height: 1.5; }
.admindra-mcp .adm-fine { color: var(--adm-muted); font-size: 12px; line-height: 1.5; margin: 14px 0 0; }

.admindra-mcp .adm-copy label { display: block; font-size: 12px; font-weight: 700; color: var(--adm-muted); margin-bottom: 6px; }
.admindra-mcp .adm-copy > div { display: flex; gap: 8px; }
.admindra-mcp .adm-copy input {
	flex: 1;
	min-width: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	border: 1px solid var(--adm-line);
	border-radius: 10px;
	background: var(--adm-soft);
	padding: 8px 10px;
	color: var(--adm-text);
}

.admindra-mcp .adm-clients { margin-top: 14px; border-top: 1px solid var(--adm-line); }
.admindra-mcp .adm-clients details { border-bottom: 1px solid var(--adm-line); padding: 10px 0; }
.admindra-mcp .adm-clients summary { cursor: pointer; font-weight: 700; }
.admindra-mcp .adm-clients ol { margin: 8px 0 0 18px; color: var(--adm-muted); }
.admindra-mcp .adm-clients .adm-copy { margin-top: 10px; }

.admindra-mcp .adm-list { margin: 10px 0 16px; }
.admindra-mcp .adm-list li { position: relative; padding-left: 24px; margin: 0 0 8px; line-height: 1.45; }
.admindra-mcp .adm-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.admindra-mcp .adm-list li.is-on::before { content: "✓"; color: var(--adm-good); }
.admindra-mcp .adm-list li.is-off { color: var(--adm-muted); }
.admindra-mcp .adm-list li.is-off::before { content: "○"; color: var(--adm-muted); }

.admindra-mcp .adm-switch-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--adm-soft);
	border: 1px solid var(--adm-line);
	border-radius: 14px;
	padding: 12px 14px;
}
.admindra-mcp .adm-switch-row span { display: block; color: var(--adm-muted); font-size: 12px; margin-top: 2px; }
.admindra-mcp .adm-toggle {
	flex: none;
	position: relative;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	border: 0;
	background: #c3c8d4;
	cursor: pointer;
	transition: background 0.15s;
}
.admindra-mcp .adm-toggle::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s;
}
.admindra-mcp .adm-toggle.is-on { background: var(--adm-brand); }
.admindra-mcp .adm-toggle.is-on::after { transform: translateX(20px); }
.admindra-mcp .adm-toggle:focus-visible,
.admindra-mcp .adm-btn:focus-visible { outline: 2px solid var(--adm-accent); outline-offset: 2px; }

.admindra-mcp .adm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--adm-brand);
	background: var(--adm-brand);
	color: var(--adm-brand-text);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.admindra-mcp .adm-btn:hover { opacity: 0.9; color: var(--adm-brand-text); }
.admindra-mcp .adm-btn.is-quiet { background: var(--adm-panel); color: var(--adm-text); border-color: var(--adm-line); }
.admindra-mcp .adm-btn.is-quiet:hover { background: var(--adm-soft); color: var(--adm-text); }

.admindra-mcp .adm-addon { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; }
.admindra-mcp .adm-addon p { color: var(--adm-muted); line-height: 1.55; max-width: 720px; }
.admindra-mcp .adm-kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--adm-accent); margin-bottom: 6px; }
.admindra-mcp .adm-steps { counter-reset: adm-step; list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.admindra-mcp .adm-steps li { counter-increment: adm-step; position: relative; padding-left: 32px; min-height: 22px; line-height: 22px; margin: 0; }
.admindra-mcp .adm-steps li::before {
	content: counter(adm-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--adm-brand);
	color: var(--adm-brand-text);
	font-size: 12px;
	font-weight: 800;
	display: grid;
	place-items: center;
}
.admindra-mcp .adm-actions form { margin: 0; }
.admindra-mcp .adm-pair { margin-top: 14px; max-width: 520px; }
.admindra-mcp .adm-pair input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.admindra-mcp .adm-actions { display: flex; gap: 8px; flex: none; }

.admindra-mcp .adm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.admindra-mcp .adm-tile {
	display: block;
	border: 1px solid var(--adm-line);
	border-radius: 14px;
	padding: 14px 16px;
	text-decoration: none;
	color: var(--adm-text);
	background: var(--adm-soft);
	transition: border-color 0.15s, background 0.15s;
}
.admindra-mcp .adm-tile:hover { border-color: var(--adm-accent); background: var(--adm-panel); color: var(--adm-text); }
.admindra-mcp .adm-tile strong { display: block; font-size: 14px; }
.admindra-mcp .adm-tile span { display: block; color: var(--adm-muted); font-size: 12px; margin-top: 4px; line-height: 1.45; }

.admindra-mcp .adm-advanced { margin-top: 16px; }
.admindra-mcp .adm-advanced summary { cursor: pointer; list-style: none; }
.admindra-mcp .adm-advanced summary h2 { display: inline; }
.admindra-mcp .adm-advanced summary::after { content: " +"; color: var(--adm-muted); font-weight: 700; }
.admindra-mcp .adm-advanced[open] summary::after { content: " −"; }
.admindra-mcp .adm-inline-form { display: flex; gap: 8px; }
.admindra-mcp .adm-inline-form input { flex: 1; min-width: 0; border-radius: 10px; }

/* The add-on's own part, drawn into the wide card. */
.admindra-mcp .adm-wide .widefat { border-radius: 12px; overflow: hidden; border-color: var(--adm-line); }
.admindra-mcp .adm-wide .button { border-radius: 999px; }
.admindra-mcp .adm-wide .button-primary { background: var(--adm-brand); border-color: var(--adm-brand); }

.admindra-mcp .adm-foot { color: var(--adm-muted); font-size: 12px; margin: 22px 0 10px; }
.admindra-mcp .adm-foot p { margin: 4px 0; }

@media (max-width: 960px) {
	.admindra-mcp .adm-grid { grid-template-columns: 1fr; }
	.admindra-mcp .adm-addon { flex-direction: column; align-items: stretch; }
	.admindra-mcp .adm-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.admindra-mcp .adm-toggle,
	.admindra-mcp .adm-toggle::after,
	.admindra-mcp .adm-tile { transition: none; }
}
