/*
 * Silotree in wp-admin: the web app's tokens (apps/web/app/tokens.css), mapped onto WordPress.
 *
 * Scoped to .st-ui so nothing leaks into the rest of the admin. WordPress chrome stays WordPress —
 * the menu, notices, native buttons and form controls keep their behaviour — and the brand arrives
 * as surfaces, type, spacing and the action colour.
 *
 * The brand's own typefaces, shipped in assets/fonts (SIL Open Font License, see the .txt files
 * there): DM Serif Display for headings, DM Sans for text, IBM Plex Mono for labels and figures.
 * Loaded from the plugin's folder, so nothing is fetched from anywhere else; registered under
 * Silotree-only names so they can never replace a font another plugin or the theme declares.
 *
 * Motion follows the brand: nothing bounces, nothing slides in; state changes fade in 180ms, and
 * the loading shimmer stops for anyone who asks for reduced motion.
 */

@font-face {
	font-family: "Silotree Display";
	src: url("fonts/dm-serif-display-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Silotree Sans";
	src: url("fonts/dm-sans-variable.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Silotree Mono";
	src: url("fonts/ibm-plex-mono-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

.st-ui {
	--st-action: #d13d0c;
	--st-action-hover: #b23208;
	--st-bright: #ff591f;
	--st-accent-wash: #fff0e5;
	--st-accent-line: #f2c2ac;
	--st-forest: #18382b;
	--st-on-forest: #f4f1e8;
	--st-on-forest-muted: #c2cbc4;
	--st-paper: #faf8f2;
	--st-raised: #fffefa;
	--st-sunk: #f1eee5;
	--st-note: #f4f1e9;
	--st-ink: #131916;
	--st-body: #2c3830;
	--st-muted: #5e6b63;
	--st-faint: #656c61;
	--st-rule: #e5e1d7;
	--st-rule-strong: #dad5c8;
	--st-moss: #567e62;
	--st-moss-wash: #e5eddf;
	--st-moss-ink: #3b5a45;
	--st-clay: #b43f1c;
	--st-clay-wash: #fbede7;
	--st-clay-ink: #8a3a18;
	--st-clay-line: #e8cdc0;
	--st-amber-wash: #f7ebd3;
	--st-amber-ink: #8a5d12;
	--st-mono: "Silotree Mono", Consolas, Monaco, ui-monospace, SFMono-Regular, monospace;
	--st-display: "Silotree Display", Georgia, "Times New Roman", serif;
	--st-sans: "Silotree Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--st-r-chip: 4px;
	--st-r-control: 8px;
	--st-r-row: 11px;
	--st-r-card: 12px;
	--st-shadow-float: 0 4px 16px rgba(21, 32, 27, 0.1), 0 1px 3px rgba(21, 32, 27, 0.06);
	--st-t: 180ms ease;

	/* The editor's own components pick the brand up from these. */
	--wp-admin-theme-color: #d13d0c;
	--wp-admin-theme-color--rgb: 209, 61, 12;
	--wp-admin-theme-color-darker-10: #b23208;
	--wp-admin-theme-color-darker-10--rgb: 178, 50, 8;
	--wp-admin-theme-color-darker-20: #b23208;
	--wp-admin-theme-color-darker-20--rgb: 178, 50, 8;
	--wp-components-color-accent: #d13d0c;
	--wp-components-color-accent-darker-10: #b23208;
	--wp-components-color-accent-darker-20: #b23208;

	color: var(--st-body);
}
/* Silotree's own screens set their text in the brand face; the editor panels keep the editor's. */
.st-page,
.st-setup { font-family: var(--st-sans); }

/* ------------------------------------------------------------------ page */

.st-page {
	max-width: 1040px;
	margin: 16px 20px 40px 0;
}
.st-page-head {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0 0 6px;
}
.st-page-head h1 {
	font-family: var(--st-display);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.15;
	color: var(--st-ink);
	margin: 0;
	padding: 0;
}
.st-page-head .st-spacer { flex: 1; }
.st-lede {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--st-muted);
	max-width: 680px;
	margin: 0 0 22px;
}
.st-crumb {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	font-size: 12.5px;
	margin: 0 0 10px;
}

/* ------------------------------------------------------------------ type */

.st-label {
	font-family: var(--st-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--st-faint);
	font-weight: 400;
	margin: 0;
}
.st-h2 {
	font-family: var(--st-display);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--st-ink);
	margin: 0;
}
.st-metric {
	font-family: var(--st-mono);
	font-variant-numeric: tabular-nums;
}
.st-muted { color: var(--st-muted); }
.st-small { font-size: 12px; line-height: 1.5; }

/* The words that will become a link, shown the same way everywhere (brand: anchor highlight). */
.st-anchor,
.st-ui mark {
	background: var(--st-accent-wash);
	color: var(--st-ink);
	border-bottom: 2px solid var(--st-bright);
	padding: 0 2px;
	border-radius: 2px 2px 0 0;
}
/* The same words once they are a link. */
.st-anchor-linked {
	/* The darker action shade: the lighter one is 4.3:1 on the wash, under AA. */
	color: var(--st-action-hover);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 2px;
	background: var(--st-accent-wash);
	padding: 0 2px;
}
.st-url {
	font-family: var(--st-mono);
	font-size: 11.5px;
	color: var(--st-muted);
	word-break: break-all;
}

/* ------------------------------------------------------------------ surfaces */

.st-card {
	background: var(--st-raised);
	border: 1px solid var(--st-rule);
	border-radius: var(--st-r-card);
	padding: 18px 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.st-card-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}
.st-card-head .st-spacer { flex: 1; }
.st-card-sunk { background: var(--st-note); }
.st-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}
.st-grid-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.st-stack { display: flex; flex-direction: column; gap: 16px; }

/* Row cards: one item each, never a spreadsheet. */
.st-rows {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.st-row {
	margin: 0;
	background: var(--st-raised);
	border: 1px solid var(--st-rule);
	border-radius: var(--st-r-row);
	padding: 12px 14px;
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	transition: border-color var(--st-t), background var(--st-t);
}
.st-row:hover { border-color: var(--st-rule-strong); }
.st-row-main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.st-row-title { font-size: 13.5px; font-weight: 600; color: var(--st-ink); line-height: 1.35; }
.st-row-title a { color: inherit; text-decoration: none; }
.st-row-title a:hover, .st-row-title a:focus { color: var(--st-action); text-decoration: underline; }
.st-row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.st-row-sentence { font-size: 12.5px; line-height: 1.55; color: var(--st-body); }

/* ------------------------------------------------------------------ chips and meters */

.st-chip {
	display: inline-flex;
	align-items: center;
	font-family: var(--st-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: var(--st-r-chip);
	padding: 2px 6px;
	background: var(--st-sunk);
	color: var(--st-muted);
	white-space: nowrap;
}
.st-chip-problem { background: var(--st-clay-wash); color: var(--st-clay-ink); }
.st-chip-warn { background: var(--st-amber-wash); color: var(--st-amber-ink); }
.st-chip-ok { background: var(--st-moss-wash); color: var(--st-moss-ink); }
.st-chip-source { background: var(--st-accent-wash); color: var(--st-action-hover); }

/* ------------------------------------------------------------------ target keywords (both editors) */

.st-kw { display: flex; flex-direction: column; gap: 9px; }
.st-kw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.st-kw-list li { margin: 0; max-width: 100%; }
.st-kw-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	box-sizing: border-box;
	background: var(--st-sunk);
	border: 1px solid var(--st-rule);
	border-radius: 6px;
	padding: 2px 2px 2px 9px;
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--st-ink);
}
.st-kw-text { overflow-wrap: anywhere; }
.st-kw-source { font-family: var(--st-mono); font-size: 10.5px; letter-spacing: 0.02em; color: var(--st-faint); white-space: nowrap; }
.st-ui .st-kw-remove {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--st-muted);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background var(--st-t), color var(--st-t);
}
.st-ui .st-kw-remove:hover { background: rgba(19, 25, 22, 0.07); color: var(--st-ink); }
.st-ui .st-kw-remove:focus-visible { outline: 2px solid var(--st-action); outline-offset: 0; }
.st-kw-add { display: flex; gap: 6px; align-items: stretch; }
.st-ui .st-kw-add input[type="text"] { flex: 1; min-width: 0; margin: 0; }
.st-kw-error { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--st-clay-ink); }
.st-kw-line { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--st-muted); }
.st-kw-quiet { color: var(--st-faint); }
.st-kw-label { margin: 2px 0 0; font-family: var(--st-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--st-muted); }
.st-ui .st-kw-suggestion {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	max-width: 100%;
	margin: 0;
	padding: 3px 9px;
	border: 1px dashed var(--st-rule-strong);
	border-radius: 6px;
	background: transparent;
	color: var(--st-ink);
	font: inherit;
	font-size: 12.5px;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition: border-color var(--st-t), background var(--st-t);
}
.st-ui .st-kw-suggestion:hover:not(:disabled) { border-color: var(--st-action); background: var(--st-accent-wash); }
.st-ui .st-kw-suggestion:disabled { cursor: default; opacity: 0.55; }
.st-kw-plus { color: var(--st-action); font-weight: 600; }
.st-kw-count { font-family: var(--st-mono); font-size: 10.5px; color: var(--st-muted); white-space: nowrap; }
.st-kw-skeleton { display: inline-block; height: 24px; border-radius: 6px; margin: 0; }

.st-progress {
	height: 4px;
	border-radius: 4px;
	background: var(--st-rule);
	overflow: hidden;
	width: 96px;
}
.st-progress > span { display: block; height: 100%; background: var(--st-moss); border-radius: 4px; }

/* ------------------------------------------------------------------ buttons, inside .st-ui */

.st-ui .button-primary {
	background: var(--st-action);
	border-color: var(--st-action);
	color: #fff;
}
.st-ui .button-primary:hover,
.st-ui .button-primary:focus {
	background: var(--st-action-hover);
	border-color: var(--st-action-hover);
	color: #fff;
}
.st-ui .button-primary:focus { box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--st-action); }
.st-ui .button:not(.button-primary):not(.button-link) {
	color: var(--st-action);
	border-color: var(--st-action);
	background: var(--st-raised);
}
.st-ui .button:not(.button-primary):not(.button-link):hover,
.st-ui .button:not(.button-primary):not(.button-link):focus {
	color: var(--st-action-hover);
	border-color: var(--st-action-hover);
	background: var(--st-accent-wash);
}
.st-ui .button:not(.button-primary):focus { box-shadow: 0 0 0 1px var(--st-action); }
.st-ui .button-link { color: var(--st-action); }
.st-ui .button-link-delete { color: var(--st-clay); }
.st-ui a:not(.button) { color: var(--st-action); }
.st-ui a:not(.button):hover { color: var(--st-action-hover); }
.st-ui .button[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.st-ui .button[disabled],
.st-ui .button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.st-ui :focus-visible { outline: 2px solid var(--st-action); outline-offset: 2px; }

/* ------------------------------------------------------------------ forms */

.st-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.st-field label, .st-field legend { font-size: 13px; font-weight: 600; color: var(--st-ink); padding: 0; }
.st-field .st-help { font-size: 12px; color: var(--st-muted); line-height: 1.45; margin: 0; }
.st-field input[type="text"],
.st-field input[type="url"],
.st-field input[type="number"],
.st-field textarea {
	width: 100%;
	max-width: 100%;
	border-color: var(--st-rule-strong);
	border-radius: var(--st-r-control);
	background: #fff;
	padding: 6px 10px;
}
.st-field input[type="number"] { width: 110px; }
.st-field input:focus,
.st-field textarea:focus {
	border-color: var(--st-action);
	box-shadow: 0 0 0 1px var(--st-action);
	outline: none;
}
.st-field [aria-invalid="true"] { border-color: var(--st-clay); }
.st-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; border: 0; margin: 0; padding: 0; }
.st-checks label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }
.st-scroll { max-height: 190px; overflow: auto; padding: 8px 10px; border: 1px solid var(--st-rule); border-radius: var(--st-r-control); background: #fff; }
.st-form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ states */

.st-empty {
	display: flex;
	gap: 18px;
	align-items: center;
	padding: 6px 0;
}
.st-empty img { width: 112px; height: 112px; flex: none; border-radius: var(--st-r-card); object-fit: cover; }
.st-empty-body { display: flex; flex-direction: column; gap: 6px; }
.st-empty-title { font-family: var(--st-display); font-size: 17px; color: var(--st-ink); margin: 0; }
.st-empty p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--st-muted); max-width: 460px; }

.st-banner {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	border-radius: var(--st-r-row);
	padding: 12px 14px;
	font-size: 13px;
	line-height: 1.5;
	border: 1px solid var(--st-rule);
	background: var(--st-raised);
	margin: 0 0 16px;
}
.st-banner p { margin: 0; }
.st-banner-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-banner strong { color: var(--st-ink); }
.st-banner-success { background: var(--st-moss-wash); border-color: #c9d9c4; }
.st-banner-success strong { color: var(--st-moss-ink); }
.st-banner-error { background: var(--st-clay-wash); border-color: var(--st-clay-line); }
.st-banner-error strong { color: var(--st-clay-ink); }
.st-banner-limit { background: var(--st-accent-wash); border-color: var(--st-accent-line); }
.st-banner-limit strong { color: var(--st-action-hover); }
.st-banner .st-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--st-muted); }
.st-banner-success .st-dot { background: var(--st-moss); }
.st-banner-error .st-dot { background: var(--st-clay); }
.st-banner-limit .st-dot { background: var(--st-bright); }

/* Skeletons: the shape of what is coming, so nothing jumps when it arrives. */
.st-skeleton {
	display: block;
	background: linear-gradient(90deg, var(--st-sunk) 0%, #f7f4ec 50%, var(--st-sunk) 100%);
	background-size: 200% 100%;
	border-radius: 6px;
	animation: st-shimmer 1.4s linear infinite;
}
.st-skeleton-line { height: 10px; margin: 0 0 8px; }
.st-skeleton-line.is-short { width: 55%; }
.st-skeleton-card {
	border: 1px solid var(--st-rule);
	border-radius: var(--st-r-row);
	padding: 12px;
	background: var(--st-raised);
	margin: 0 0 8px;
}
@keyframes st-shimmer {
	from { background-position: 100% 0; }
	to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.st-skeleton { animation: none; }
	.st-ui * { transition: none !important; }
}

.st-fade { animation: st-fade 180ms ease both; }
@keyframes st-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .st-fade { animation: none; } }

.screen-reader-text.st-live { position: absolute; }

/* ------------------------------------------------------------------ the Classic Editor box */

#silotree-classic .inside { margin: 0; padding: 0 12px 12px; }
.st-box { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.st-box .st-row { padding: 10px 11px; gap: 8px; }
.st-box .st-row-title { font-size: 13px; }
.st-box-section { display: flex; flex-direction: column; gap: 8px; }
.st-box details summary { cursor: pointer; font-size: 12.5px; color: var(--st-action); }
.st-meter { display: flex; align-items: center; gap: 8px; }
.st-meter .st-progress { flex: 1; width: auto; position: relative; overflow: visible; }
.st-meter .st-progress i { position: absolute; top: -2px; width: 1px; height: 8px; background: var(--st-clay); }

/* ------------------------------------------------------------------ small screens */

@media (max-width: 960px) {
	.st-grid, .st-grid-even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
	.st-page { margin: 12px 10px 32px 0; }
	.st-page-head h1 { font-size: 22px; }
	.st-card { padding: 14px; }
	.st-empty { flex-direction: column; align-items: flex-start; }
	.st-empty img { width: 88px; height: 88px; }
	.st-row-actions { width: 100%; }
	.st-row-actions .button { min-height: 40px; }
}

/* A banner focused for the reader (after a form result) gets a quiet ring, not the heavy one. */
.st-ui .st-banner[data-st-focus]:focus { outline: none; box-shadow: 0 0 0 2px var(--st-accent-line); }
.st-ui .st-banner[data-st-focus]:focus-visible { outline: none; }

.st-field legend { margin: 0 0 6px; }

/* Buttons and short forms directly inside a card keep their own width. */
.st-card > .button, .st-card > a.button { align-self: flex-start; margin: 0; }
.st-card > p, .st-card > details { margin: 0; }

/* Links on WordPress's grey page background (not on a card) use the darker shade for AA contrast. */
.st-ui .st-crumb a,
.st-ui .st-page > p a,
.st-ui .st-page > .st-muted a { color: var(--st-action-hover); }

/* ---------------------------------------------------------------- help links to silotree.io/docs */
.st-ui .st-help-row {
	margin: 6px 0 14px;
}
.st-ui .st-help {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
	color: var(--st-muted);
	text-decoration: underline;
	text-decoration-color: var(--st-rule-strong);
	text-underline-offset: 3px;
}
.st-ui .st-help:hover,
.st-ui .st-help:focus {
	color: var(--st-action);
	text-decoration-color: var(--st-action);
}
.st-ui .st-help-tag {
	padding: 0 6px;
	font-size: 11px;
	line-height: 1.7;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--st-faint);
	background: var(--st-sunk);
	border-radius: 4px;
}
/* Field hints share the .st-help name with help links; they are plain text, not links. */
.st-ui .st-field .st-help { display: block; text-decoration: none; color: var(--st-muted); }

/* ================================================================== 0.4: overview, prompts, setup */

.st-wordmark {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-family: var(--st-sans);
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--st-ink);
}
.st-overview-head { margin-bottom: 8px; }
.st-h3 {
	font-family: var(--st-sans);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--st-ink);
	margin: 0;
}
.st-eyebrow {
	font-family: var(--st-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0;
}

/* The scan line: what ran on this server, and when. */
.st-scan {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	background: var(--st-raised);
	border: 1px solid var(--st-rule);
	border-radius: var(--st-r-row);
	padding: 12px 16px;
	margin: 0 0 14px;
}
.st-scan-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-moss); flex: none; }
.st-scan.is-running .st-scan-dot { background: var(--st-bright); animation: st-pulse 1.6s ease-in-out infinite; }
@keyframes st-pulse { 50% { opacity: 0.35; } }
.st-scan-body { flex: 1 1 280px; min-width: 0; }
.st-scan-title { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--st-ink); }
.st-scan-text { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--st-muted); }
.st-scan-form { margin: 0; flex: none; }

/* The four figures. */
.st-stats {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--st-rule);
	border: 1px solid var(--st-rule);
	border-radius: var(--st-r-card);
	overflow: hidden;
}
.st-stats li { margin: 0; background: var(--st-raised); min-width: 0; }
.st-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	box-sizing: border-box;
	padding: 14px 16px 15px;
	color: inherit;
	text-decoration: none;
	transition: background var(--st-t);
}
.st-ui a.st-stat { color: inherit; }
.st-ui a.st-stat:hover { background: var(--st-accent-wash); color: inherit; }
.st-ui a.st-stat:focus-visible { outline-offset: -2px; }
.st-stat-label { font-family: var(--st-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-muted); }
.st-stat-value {
	font-family: var(--st-display);
	font-size: 34px;
	line-height: 1.1;
	color: var(--st-ink);
	font-variant-numeric: tabular-nums;
	margin-top: 4px;
}
.st-stat-problem .st-stat-value { color: var(--st-clay); }
.st-stat-warn .st-stat-value { color: var(--st-amber-ink); }
.st-stat-note { font-size: 12px; line-height: 1.4; color: var(--st-muted); }

.st-overview-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

/* Cards whose content runs to the edges (a table, a list). */
.st-card-flush { padding: 0; gap: 0; overflow: hidden; }
.st-card-head-pad { padding: 16px 20px 12px; align-items: center; }
.st-card-flush .st-empty { padding: 4px 20px 20px; }
.st-card-foot {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 20px;
	background: var(--st-note);
	border-top: 1px solid var(--st-rule);
}
.st-card-foot p { flex: 1 1 260px; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--st-body); }
.st-card-quiet { background: transparent; border-style: dashed; border-color: var(--st-rule-strong); padding: 14px 16px; gap: 6px; }
.st-card-quiet p { margin: 0; color: var(--st-muted); }

.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th {
	text-align: left;
	font-family: var(--st-mono);
	font-weight: 400;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--st-muted);
	background: var(--st-sunk);
	padding: 8px 12px;
	border-top: 1px solid var(--st-rule);
	border-bottom: 1px solid var(--st-rule);
}
.st-table th:first-child, .st-table td:first-child { padding-left: 20px; }
.st-table th:last-child, .st-table td:last-child { padding-right: 20px; }
.st-table td { padding: 11px 12px; border-bottom: 1px solid var(--st-sunk); vertical-align: middle; }
.st-table tr:last-child td { border-bottom: 0; }
.st-table tbody tr { transition: background var(--st-t); }
.st-table tbody tr:hover { background: #fdfbf5; }
.st-table td .st-row-title { display: block; font-size: 13px; font-weight: 600; }
.st-table td .st-url { display: block; font-size: 11px; }
.st-table .st-num { text-align: right; font-family: var(--st-mono); font-size: 11.5px; color: var(--st-muted); white-space: nowrap; }
.st-actions-cell { text-align: right; white-space: nowrap; }

.st-rows-flush { gap: 0; }
.st-rows-flush .st-row { border: 0; border-top: 1px solid var(--st-sunk); border-radius: 0; padding: 14px 20px; }
.st-quote { background: var(--st-note); border-radius: 8px; padding: 9px 11px; margin: 2px 0 6px; }
.st-inline-form { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* The forest panel: the one place a screen argues for the account. */
.st-panel-forest {
	background: var(--st-forest);
	color: var(--st-on-forest);
	border-radius: var(--st-r-card);
	padding: 20px 22px 18px;
}
.st-panel-forest .st-eyebrow { color: var(--st-on-forest-muted); }
.st-panel-forest h2 {
	font-family: var(--st-display);
	font-weight: 400;
	font-size: 22px;
	line-height: 1.2;
	color: var(--st-on-forest);
	margin: 8px 0 8px;
}
.st-panel-forest p { color: var(--st-on-forest-muted); font-size: 13px; line-height: 1.55; margin: 0 0 12px; }
.st-panel-note { font-size: 12px !important; margin: 10px 0 0 !important; text-align: center; }
.st-ui .st-panel-forest .button-primary { background: var(--st-bright); border-color: var(--st-bright); color: #131916; font-weight: 600; }
.st-ui .st-panel-forest .button-primary:hover,
.st-ui .st-panel-forest .button-primary:focus { background: #ff7a4a; border-color: #ff7a4a; color: #131916; }
.st-ui .st-panel-forest .button-primary:focus { box-shadow: 0 0 0 2px var(--st-forest), 0 0 0 4px var(--st-bright); }
.st-ui .st-panel-forest :focus-visible { outline-color: var(--st-bright); }
.st-block-button { display: block !important; width: 100%; text-align: center; box-sizing: border-box; margin-top: 6px !important; }

.st-check-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 0; }
.st-check-list li {
	position: relative;
	margin: 0;
	padding: 8px 0 8px 22px;
	font-size: 13px;
	line-height: 1.45;
	border-top: 1px solid var(--st-rule);
}
.st-check-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 13px;
	width: 9px;
	height: 5px;
	border-left: 2px solid var(--st-moss);
	border-bottom: 2px solid var(--st-moss);
	transform: rotate(-45deg);
}
.st-check-list-forest li { border-top-color: rgba(244, 241, 232, 0.14); color: var(--st-on-forest); }
.st-check-list-forest li::before { border-color: var(--st-bright); }

/* Prompts: one per screen, each with its own way out. */
.st-prompt {
	position: relative;
	display: flex;
	gap: 12px;
	border-radius: var(--st-r-card);
	padding: 16px 44px 16px 20px;
	border: 1px solid var(--st-accent-line);
	background: var(--st-accent-wash);
	margin: 16px 0 0;
}
.st-stack > .st-prompt { margin: 0; }
.st-prompt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.st-prompt-eyebrow { margin: 0; font-family: var(--st-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-action-hover); }
.st-prompt-title { margin: 0; font-family: var(--st-display); font-weight: 400; font-size: 19px; line-height: 1.25; color: var(--st-ink); }
.st-prompt-text { margin: 0; font-size: 13px; line-height: 1.55; color: var(--st-body); max-width: 620px; }
.st-prompt-points { list-style: none; margin: 4px 0; padding: 0; }
.st-prompt-points li { margin: 0; padding: 5px 0 5px 16px; position: relative; font-size: 13px; line-height: 1.45; }
.st-prompt-points li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--st-bright); }
.st-prompt-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.st-prompt-note { font-size: 12px; color: var(--st-muted); }
.st-prompt-forest { background: var(--st-forest); border-color: var(--st-forest); color: var(--st-on-forest); }
.st-prompt-forest .st-prompt-eyebrow { color: var(--st-on-forest-muted); }
.st-prompt-forest .st-prompt-title { color: var(--st-on-forest); font-size: 22px; }
.st-prompt-forest .st-prompt-text,
.st-prompt-forest .st-prompt-note { color: var(--st-on-forest-muted); }
.st-prompt-forest .st-prompt-points li { color: var(--st-on-forest); border-top: 1px solid rgba(244, 241, 232, 0.14); }
.st-ui .st-prompt-forest .button-primary { background: var(--st-bright); border-color: var(--st-bright); color: #131916; font-weight: 600; }
.st-ui .st-prompt-forest .button-primary:hover,
.st-ui .st-prompt-forest .button-primary:focus { background: #ff7a4a; border-color: #ff7a4a; color: #131916; }
.st-ui .st-prompt-forest :focus-visible { outline-color: var(--st-bright); }
.st-prompt-dismiss { position: absolute; top: 8px; right: 8px; margin: 0; }

.st-icon-button {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--st-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background var(--st-t), color var(--st-t);
}
.st-icon-button:hover { background: rgba(19, 25, 22, 0.07); color: var(--st-ink); }
.st-icon-button:focus-visible { outline: 2px solid var(--st-action); outline-offset: 1px; }
.st-prompt-forest .st-icon-button { color: var(--st-on-forest-muted); }
.st-prompt-forest .st-icon-button:hover { background: rgba(244, 241, 232, 0.12); color: var(--st-on-forest); }

/* The review request: once, after something worked. */
.st-review {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--st-moss-wash);
	border: 1px solid #c9d9c4;
	border-radius: var(--st-r-card);
	padding: 16px 20px;
	margin: 0 0 16px;
}
.st-review-mark { flex: none; padding-top: 2px; }
.st-review-body { display: flex; flex-direction: column; gap: 6px; }
.st-review h2 { margin: 0; font-family: var(--st-display); font-weight: 400; font-size: 19px; color: var(--st-ink); }
.st-review p { margin: 0; font-size: 13px; line-height: 1.55; max-width: 640px; }
.st-review-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.st-ui .st-review .button-link { color: var(--st-moss-ink); text-decoration: underline; }

/* The setup screen. */
.st-setup { max-width: 760px; margin: 28px auto 48px; padding: 0 20px; }
.st-setup-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.st-setup-step-count { font-family: var(--st-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-muted); }
.st-setup-title { font-family: var(--st-display); font-weight: 400; font-size: 34px; line-height: 1.15; color: var(--st-ink); margin: 0 0 10px; padding: 0; }
.st-setup-lede { font-size: 15px; line-height: 1.55; color: var(--st-muted); margin: 0 0 26px; max-width: 600px; }
.st-setup-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.st-setup-card {
	display: flex;
	gap: 16px;
	margin: 0;
	background: var(--st-raised);
	border: 1px solid var(--st-rule);
	border-radius: 14px;
	padding: 22px 24px;
	box-shadow: 0 1px 2px rgba(21, 32, 27, 0.04);
}
.st-setup-num {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--st-forest);
	color: var(--st-on-forest);
	font-family: var(--st-mono);
	font-size: 12px;
}
.st-setup-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.st-setup-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 0; font-family: var(--st-sans); font-size: 16px; font-weight: 600; color: var(--st-ink); }
.st-setup-card p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.st-setup-card .st-check-list { margin: 0; }
.st-setup-headline { font-family: var(--st-display); font-size: 24px !important; line-height: 1.25 !important; color: var(--st-ink); }
.st-setup-figures { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.st-setup-figures li { margin: 0; background: var(--st-note); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.st-setup-figures strong { font-family: var(--st-mono); font-weight: 400; color: var(--st-ink); margin-right: 4px; }
.st-setup-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px !important; }
.st-ui .st-button-quiet.button { border-color: var(--st-rule-strong) !important; color: var(--st-body) !important; background: transparent !important; }
.st-ui .st-button-quiet.button:hover { border-color: var(--st-muted) !important; color: var(--st-ink) !important; }
.st-setup .button-hero { font-size: 14px; min-height: 44px; line-height: 42px; padding: 0 20px; }
.st-bar { height: 6px; border-radius: 6px; background: var(--st-sunk); overflow: hidden; }
.st-bar > span { display: block; height: 100%; background: var(--st-moss); border-radius: 6px; transition: width 300ms ease; }
.st-setup-result[hidden] { display: none; }
.st-setup-progress[hidden] { display: none; }
.st-setup-progress { display: flex; flex-direction: column; gap: 8px; }

/* The editor's note about the service: quiet, below the local suggestions. */
.st-teaser {
	margin: 12px 16px 4px;
	padding: 12px 12px 14px;
	border: 1px dashed var(--st-accent-line);
	border-radius: 10px;
	background: #fffaf6;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.st-teaser-head { display: flex; gap: 6px; align-items: flex-start; }
.st-teaser-title { flex: 1; margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: #131916; }
.st-teaser-text { margin: 0; font-size: 12px; line-height: 1.5; color: #5e6b63; }
.st-teaser-close { flex: none; margin: -6px -6px 0 0; }
.st-teaser .st-icon-button { width: 28px; height: 28px; margin: -4px -4px 0 0; }
.st-teaser.is-plain { padding: 10px 10px 10px 12px; border-style: solid; border-color: #e5e1d7; background: #fffefa; }
.st-teaser.is-plain .st-teaser-text { flex: 1; }
.st-teaser-cta { align-self: flex-start; text-decoration: none; }
#silotree-classic .st-teaser { margin: 0; }

@media (max-width: 960px) {
	.st-overview-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
	.st-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-stat-value { font-size: 28px; }
	.st-table .st-num { display: none; }
	.st-table .button { min-height: 40px; line-height: 38px; }
	.st-setup { margin-top: 16px; padding: 0 12px 0 0; }
	.st-setup-title { font-size: 27px; }
	.st-setup-card { padding: 18px 16px; gap: 12px; }
	.st-prompt { padding: 14px 44px 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.st-scan.is-running .st-scan-dot { animation: none; }
	.st-bar > span { transition: none; }
}
.st-page-narrow { max-width: 820px; }
/* The wordmark is the app's .brand-lockup: DM Sans, bold, tight. Never the display serif. */
.st-ui .st-wordmark,
.st-ui .st-page-head h1.st-wordmark { font-family: var(--st-sans); font-weight: 700; letter-spacing: -0.055em; }
.st-list-summary { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--st-body); max-width: 680px; }
.st-box > .st-label, .st-box .st-box-section > .st-label { margin-top: 8px; }
.st-setup-hero { display: flex; gap: 24px; align-items: center; }
.st-setup-hero > div { flex: 1; min-width: 0; }
.st-setup-hero img { flex: none; width: 132px; height: 132px; border-radius: 16px; }
@media (max-width: 600px) { .st-setup-hero img { display: none; } }

/* Help links are muted text until hovered; .st-ui a:not(.button) would otherwise win and paint them
   the action colour, which is under 4.5:1 on WordPress's grey page background. */
.st-ui a.st-help { color: var(--st-muted); }
.st-ui a.st-help:hover, .st-ui a.st-help:focus { color: var(--st-action-hover); }
.st-ui .st-help-tag { color: var(--st-muted); }
/* Links on the grey page or on the orange wash use the darker action shade (AA). */
.st-ui .st-card-quiet a:not(.button),
.st-ui .st-prompt-paper a:not(.button),
.st-ui .st-banner-limit a:not(.button) { color: var(--st-action-hover); }
.st-empty-title { font-weight: 400; color: var(--st-ink); }

/* The forest panel's disclosure, folded in so the column carries one argument, not three. */
.st-panel-forest details { margin-top: 14px; border-top: 1px solid rgba(244, 241, 232, 0.14); padding-top: 10px; }
.st-panel-forest summary { cursor: pointer; font-size: 12.5px; color: var(--st-on-forest); }
.st-panel-forest summary:focus-visible { outline: 2px solid var(--st-bright); outline-offset: 2px; }
.st-panel-forest details p { margin: 8px 0 0; font-size: 12.5px; }
/* When the orphan list already carries the call to action, the panel's own button steps back. */
.st-ui .st-panel-forest .button.st-on-forest-quiet {
	background: transparent !important;
	border: 1px solid rgba(244, 241, 232, 0.5) !important;
	color: var(--st-on-forest) !important;
	font-weight: 500;
}
.st-ui .st-panel-forest .button.st-on-forest-quiet:hover,
.st-ui .st-panel-forest .button.st-on-forest-quiet:focus { border-color: var(--st-on-forest) !important; background: rgba(244, 241, 232, 0.08) !important; }

/* Setup: a step that is done says so. */
.st-setup-card.is-done .st-setup-num { background: var(--st-moss); }
.st-setup-card.is-done .st-setup-num::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.st-setup-card.is-done .st-setup-num span { display: none; }

/* The Classic box: each section gets room to breathe. */
#silotree-classic .st-card-head { margin-top: 10px; }
#silotree-classic .st-box > :first-child .st-card-head,
#silotree-classic .st-card-head:first-child { margin-top: 0; }
#silotree-classic .st-teaser { margin-top: 6px; }
@media (max-width: 782px) { .st-setup { padding: 0 12px; } }

/* One real link from the plan, on the forest panel: the offer shown, not described. */
.st-plan-sample { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: rgba(244, 241, 232, 0.08); border: 1px solid rgba(244, 241, 232, 0.16); }
.st-plan-sample figcaption { font-size: 12px; color: var(--st-on-forest-muted); margin: 0 0 6px; }
.st-plan-sample figcaption strong { color: var(--st-on-forest); font-weight: 600; }
.st-plan-sample blockquote { margin: 0; font-size: 13px; line-height: 1.55; color: var(--st-on-forest); }
.st-plan-sample .st-anchor { background: rgba(255, 89, 31, 0.22); color: #fff; border-bottom-color: var(--st-bright); }
/* The Classic box's sections live in the root the script fills, so the spacing goes there. */
#silotree-classic-root { display: flex; flex-direction: column; gap: 14px; }
#silotree-classic-root .st-box-section { gap: 8px; }

/* A scan in progress, on the scan line: the bar and its count under the title. */
.st-scan-progress { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-width: 420px; }
.st-scan-progress .st-progress-text { margin: 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.st-setup-progress .st-progress-text { margin: 0; font-variant-numeric: tabular-nums; }

/*
 * The last scan's figures while a new one runs: still readable (the muted ink is 5.6:1 on the
 * raised surface), visibly not the final word, and labelled as such for every reader.
 */
.st-stats.is-stale .st-stat-value { color: var(--st-muted); }
.st-stats-caption { margin: 0 0 8px; font-size: 12.5px; color: var(--st-muted); }
.st-stale-chip {
	display: inline-block;
	margin-right: 4px;
	padding: 0 5px;
	border: 1px solid var(--st-rule-strong);
	border-radius: var(--st-r-chip);
	font-family: var(--st-mono);
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--st-muted);
	vertical-align: 1px;
}
.st-stale-note { margin: 0 0 2px !important; }

/* ------------------------------------------------------------------ batch actions on a list
 * Only drawn when an add-on offers a batch action (silotree_report_bulk_actions,
 * silotree_broken_bulk_actions); the lists look the same as ever without one. */
.st-bulk-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 10px 20px;
	background: var(--st-sunk);
	border-bottom: 1px solid var(--st-rule);
}
.st-bulk-bar + .st-rows { margin-top: 12px; }
form > .st-bulk-bar:first-of-type { border-radius: var(--st-r-row); border: 1px solid var(--st-rule); }
.st-card-flush form > .st-bulk-bar:first-of-type { border-radius: 0; border-width: 0 0 1px; }
.st-check-cell { width: 28px; }
.st-table td.st-check-cell, .st-table th.st-check-cell { padding-right: 0; }
.st-row-check { margin: 0 2px 0 0; flex: none; }
.st-attention { color: var(--st-clay); font-weight: 600; }

/* ------------------------------------------------------------------ the Silotree Score (connected) */

.st-score { margin: 0 0 16px; }
.st-score-body { display: flex; gap: 24px; align-items: center; }
.st-score-dial {
	position: relative;
	flex: none;
	width: 128px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.st-score-dial svg { width: 128px; height: 128px; display: block; }
.st-score-track { fill: none; stroke: var(--st-sunk); stroke-width: 9; }
.st-score-fill { fill: none; stroke: var(--st-moss); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray 600ms ease; }
.st-score-warn .st-score-fill { stroke: #c4892a; }
.st-score-problem .st-score-fill { stroke: var(--st-clay); }
.st-score-number {
	position: absolute;
	top: 0;
	left: 0;
	width: 128px;
	height: 128px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--st-display);
	font-size: 44px;
	line-height: 1;
	color: var(--st-ink);
	font-variant-numeric: tabular-nums;
}
.st-score-number small { font-family: var(--st-sans); font-size: 12px; color: var(--st-muted); margin: 18px 0 0 2px; }
.st-score-none .st-score-number { color: var(--st-muted); }
.st-score-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.st-score-main p { margin: 0; }
.st-score-eyebrow { font-family: var(--st-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-muted); }
.st-score-verdict { font-family: var(--st-display); font-size: 20px; line-height: 1.25; color: var(--st-ink); max-width: 560px; }
.st-score-main .st-small { max-width: 560px; }
.st-score-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px !important; }

.st-score-parts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: var(--st-rule);
	border: 1px solid var(--st-rule);
	border-radius: var(--st-r-row);
	overflow: hidden;
}
.st-score-parts li { margin: 0; background: var(--st-raised); min-width: 0; }
.st-ui a.st-score-part {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 72px 30px 36px;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	color: inherit;
	text-decoration: none;
	transition: background var(--st-t);
}
.st-ui a.st-score-part:hover { background: var(--st-accent-wash); color: inherit; }
.st-ui a.st-score-part:focus-visible { outline-offset: -2px; }
.st-score-part-name { display: flex; flex-direction: column; gap: 1px; font-size: 13px; font-weight: 600; color: var(--st-ink); }
.st-score-part-about { font-size: 12px; font-weight: 400; color: var(--st-muted); line-height: 1.35; }
.st-score-bar { height: 6px; border-radius: 6px; background: var(--st-sunk); overflow: hidden; }
.st-score-bar > span { display: block; height: 100%; background: var(--st-moss); border-radius: 6px; }
.st-score-part-value { font-family: var(--st-mono); font-size: 12.5px; text-align: right; color: var(--st-ink); font-variant-numeric: tabular-nums; }
.st-score-part-lost { font-family: var(--st-mono); font-size: 12.5px; text-align: right; color: var(--st-clay-ink); font-variant-numeric: tabular-nums; }
.st-score-part.is-unmeasured .st-score-part-value,
.st-score-part.is-unmeasured .st-score-part-lost { color: var(--st-muted); }

@media (max-width: 782px) {
	.st-score-body { flex-direction: column; align-items: flex-start; gap: 14px; }
	.st-score-parts { grid-template-columns: minmax(0, 1fr); }
	.st-ui a.st-score-part { grid-template-columns: minmax(0, 1fr) 40px 28px 30px; gap: 10px; }
	.st-score-actions .button { min-height: 40px; line-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
	.st-score-fill { transition: none; }
}

/* Connected Reports: the screens to work from, in the app (SiloTree_Screen::work_in_app). */
.st-work-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-work-links a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2px 12px;
	padding: 12px 14px;
	border: 1px solid var(--st-rule);
	border-radius: var(--st-r-card);
	color: var(--st-ink);
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.st-work-links a:hover { border-color: var(--st-rule-strong); background: var(--st-note); }
.st-work-links a:focus-visible { outline: 2px solid var(--st-action); outline-offset: 2px; }
.st-work-links strong { grid-column: 1; }
.st-work-links span:not(.st-work-go):not(.screen-reader-text) { grid-column: 1; font-size: 13px; color: var(--st-muted); }
.st-work-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--st-muted); }
@media (prefers-reduced-motion: reduce) { .st-work-links a { transition: none; } }

/* Connected Link fixes: the plugin's own list, folded under the card that opens the app. */
.st-quick-check { margin-top: 16px; }
.st-quick-check > summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--st-ink); }
.st-quick-check > summary:focus-visible { outline: 2px solid var(--st-action); outline-offset: 2px; }
.st-quick-check[open] > summary { margin-bottom: 8px; }
