/* ==========================================================================
   Static Push: admin app
   ========================================================================== */

/* Inter (variable, self-hosted, SIL Open Font License, see fonts/OFL.txt) */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- WordPress chrome ---------- */

.toplevel_page_static-push #wpcontent { padding-left: 0; }
.toplevel_page_static-push #wpbody-content { padding-bottom: 0; }
.toplevel_page_static-push #wpfooter { display: none; }
.toplevel_page_static-push .notice:not(.cfsp-notice),
.toplevel_page_static-push .update-nag { margin: 16px 32px 0 272px; }

/* ---------- Tokens ---------- */

.cfsp-app {
	--sp-ink: #364058;
	--sp-ink-2: #4a546c;
	--sp-muted: #6e7689;
	--sp-faint: #a0a6b4;
	--sp-line: #e3e6ec;
	--sp-line-2: #eef0f4;
	--sp-bg: #f5f6f8;
	--sp-panel: #ffffff;
	--sp-accent: #21b68e;
	--sp-accent-600: #1c9c7a;
	--sp-accent-700: #167d62;
	--sp-accent-50: #eaf8f3;
	--sp-accent-100: #c9eee1;
	--sp-ok: #059669;
	--sp-ok-bg: #ecfdf5;
	--sp-warn: #b45309;
	--sp-warn-bg: #fffbeb;
	--sp-err: #dc2626;
	--sp-err-bg: #fef2f2;
	--sp-info: #0369a1;
	--sp-info-bg: #f0f9ff;
	--sp-brand: #364058;
	--sp-radius: 0;          /* containers: square */
	--sp-radius-sm: 6px;     /* form controls only: inputs, buttons, toggles, checkboxes */
	--sp-shadow: none;
	--sp-shadow-lg: 0 12px 32px rgba(54, 64, 88, .16);

	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
	min-height: calc(100vh - 32px);
	background: var(--sp-bg);
	color: var(--sp-ink);
	font-size: 14px;
	line-height: 1.55;
}

.cfsp-app, .cfsp-app input, .cfsp-app select, .cfsp-app textarea, .cfsp-app button,
.cfsp-app h1, .cfsp-app h2, .cfsp-app h3, .cfsp-toast, .cfsp-modal {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-feature-settings: "cv11", "ss01";
}
.cfsp-app { -webkit-font-smoothing: antialiased; }
.cfsp-app *, .cfsp-app *::before, .cfsp-app *::after { box-sizing: border-box; }
.cfsp-app [hidden] { display: none !important; }
.cfsp-app a { color: var(--sp-accent-600); }
.cfsp-app a:hover { color: var(--sp-accent-700); }
.cfsp-app code { background: #eef0f4; color: var(--sp-ink-2); padding: 1px 6px; border-radius: 0; font-size: 12.5px; }

/* ---------- Navigation rail ---------- */

.cfsp-side {
	position: sticky; top: 32px; height: calc(100vh - 32px); overflow-y: auto;
	display: flex; flex-direction: column;
	background: #fff; color: var(--sp-ink-2); border-right: 1px solid var(--sp-line);
	padding: 20px 14px 16px;
}
.cfsp-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.cfsp-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.cfsp-brand-text strong { color: var(--sp-brand); font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.cfsp-brand-text span { color: var(--sp-muted); font-size: 12px; }

.cfsp-nav { display: flex; flex-direction: column; gap: 1px; }
.cfsp-nav-group { color: var(--sp-faint); font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; padding: 14px 10px 5px; }
.cfsp-nav-group:first-child { padding-top: 4px; }
.cfsp-app .cfsp-nav a {
	position: relative; display: flex; align-items: center; gap: 11px;
	padding: 7px 10px; border-radius: 8px;
	color: var(--sp-ink-2); text-decoration: none; font-weight: 400;
	transition: background .12s, color .12s;
}
.cfsp-nav a .dashicons { font-size: 18px; width: 18px; height: 18px; color: var(--sp-faint); transition: color .12s; }
.cfsp-app .cfsp-nav a:hover { background: var(--sp-bg); color: var(--sp-brand); }
.cfsp-nav a:hover .dashicons { color: var(--sp-brand); }
.cfsp-nav a:focus { outline: 0; box-shadow: none; }
.cfsp-nav a:focus-visible { box-shadow: inset 0 0 0 2px var(--sp-accent); }
.cfsp-app .cfsp-nav a.is-active { background: var(--sp-accent-50); color: var(--sp-accent-700); font-weight: 400; }
.cfsp-nav a.is-active .dashicons { color: var(--sp-accent); }

/* Donate */
.cfsp-donate { margin: 18px 0 0; border-radius: 8px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #cdeee2; background: #effaf6; color: #14684f; font-size: 12.5px; line-height: 1.35; }
.cfsp-donate > svg { flex: none; transform-origin: 50% 80%; animation: cfsp-wiggle 4s ease-in-out infinite; }
@keyframes cfsp-wiggle { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .cfsp-donate > svg { animation: none; } }
.cfsp-donate > span { flex: 1; min-width: 0; }
.cfsp-app .cfsp-donate a { color: #14684f; font-weight: 650; text-decoration: none; }
.cfsp-app .cfsp-donate a:hover { color: var(--sp-brand); }

.cfsp-side-foot { margin-top: auto; padding: 16px 10px 0; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; font-size: 12px; color: var(--sp-faint); }
.cfsp-app .cfsp-side-foot a { color: var(--sp-muted); text-decoration: none; }
.cfsp-app .cfsp-side-foot a:hover { color: var(--sp-accent-700); }
.cfsp-donate + .cfsp-side-foot { margin-top: 0; }
.cfsp-side-spacer { flex: 1; }

/* ---------- Header ---------- */

.cfsp-main { min-width: 0; }
.cfsp-topbar {
	position: sticky; top: 32px; z-index: 30;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
	padding: 18px 36px; background: rgba(245, 246, 248, .92); backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--sp-line);
}
.cfsp-topbar h1 { margin: 0; padding: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; color: var(--sp-ink); }
.cfsp-topbar-title { flex: 1 1 260px; min-width: 0; }
.cfsp-topbar-title p { margin: 2px 0 0; color: var(--sp-muted); font-size: 13px; }
.cfsp-topbar-actions { display: flex; align-items: center; gap: 10px; flex: none; }
/* Status pill, Cancel and Push share one height. */
.cfsp-topbar-actions .cfsp-pill, .cfsp-topbar-actions .cfsp-btn { height: 38px; min-height: 38px; box-sizing: border-box; }

.cfsp-pill {
	display: inline-flex; align-items: center; gap: 8px; max-width: 300px;
	padding: 0 16px; border-radius: 999px; background: var(--sp-panel); border: 1px solid var(--sp-line);
	font-size: 12.5px; font-weight: 500; color: var(--sp-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cfsp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-faint); flex: none; }
.cfsp-pill.is-running { border-color: var(--sp-accent-100); background: var(--sp-accent-50); color: var(--sp-accent-700); }
.cfsp-pill.is-running .cfsp-dot { background: var(--sp-accent); box-shadow: 0 0 0 0 rgba(33, 182, 142, .5); animation: cfsp-ping 1.4s infinite; }
.cfsp-pill.is-ok .cfsp-dot { background: var(--sp-ok); }
.cfsp-pill.is-failed { border-color: #fecaca; background: var(--sp-err-bg); color: var(--sp-err); }
.cfsp-pill.is-failed .cfsp-dot { background: var(--sp-err); }
.cfsp-pill.is-pending { border-color: #fde68a; background: var(--sp-warn-bg); color: var(--sp-warn); }
.cfsp-pill.is-pending .cfsp-dot { background: #f59e0b; }
@keyframes cfsp-ping { 70% { box-shadow: 0 0 0 7px rgba(33, 182, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(33, 182, 142, 0); } }

.cfsp-pushmenu { position: relative; }
.cfsp-btn-push { padding-right: 10px; }
.cfsp-caret { margin-left: 2px; opacity: .8; }
.cfsp-menu {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 300px;
	background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: var(--sp-radius);
	box-shadow: var(--sp-shadow-lg); padding: 6px;
}
.cfsp-menu button {
	display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left;
	border: 0; background: none; padding: 10px 12px; border-radius: 0; cursor: pointer; color: var(--sp-ink);
}
.cfsp-menu button:hover, .cfsp-menu button:focus { background: var(--sp-accent-50); outline: 0; }
.cfsp-menu .dashicons { color: var(--sp-accent); margin-top: 1px; }
.cfsp-menu strong { display: block; font-size: 13.5px; font-weight: 600; }
.cfsp-menu small { display: block; color: var(--sp-muted); font-size: 12px; margin-top: 1px; }

.cfsp-content { padding: 28px 36px 120px; max-width: 1000px; }

/* ---------- Panels ---------- */

.cfsp-card {
	background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: var(--sp-radius);
	box-shadow: var(--sp-shadow); margin-bottom: 20px; overflow: hidden;
}
.cfsp-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 4px; }
.cfsp-card-head h2 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--sp-ink); }
.cfsp-card-head .cfsp-desc { margin: 4px 0 0; color: var(--sp-muted); font-size: 13px; max-width: 70ch; }
.cfsp-card-body { padding: 8px 24px 20px; }
.cfsp-card-body.cfsp-flush { padding: 12px 0 0; }
.cfsp-card-body > .cfsp-desc { margin: 4px 0 12px; color: var(--sp-muted); }
.cfsp-head-tools { display: flex; align-items: center; gap: 12px; flex: none; }

/* ---------- Setting rows ---------- */

.cfsp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 44%); gap: 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--sp-line-2); }
.cfsp-card-body > .cfsp-row:first-child { border-top: 0; }
.cfsp-row-toggle, .cfsp-row-narrow { grid-template-columns: minmax(0, 1fr) auto; }
.cfsp-row-narrow .cfsp-row-control { width: 180px; }
.cfsp-row-stack { grid-template-columns: 1fr; gap: 10px; }
.cfsp-row-title { display: block; font-weight: 600; font-size: 14px; color: var(--sp-ink); cursor: default; }
.cfsp-row-toggle .cfsp-row-title { cursor: pointer; }
.cfsp-help { margin: 3px 0 0; color: var(--sp-muted); font-size: 13px; }
.cfsp-warn-text { margin: 6px 0 0; color: var(--sp-warn); font-size: 12.5px; display: flex; gap: 5px; align-items: flex-start; }
.cfsp-warn-text .dashicons { font-size: 15px; width: 15px; height: 15px; margin-top: 2px; }
.cfsp-row-control { min-width: 0; }
.cfsp-row-toggle .cfsp-row-control { display: flex; justify-content: flex-end; }

/* Generic fields in custom markup. */
.cfsp-field { padding: 14px 0; }
.cfsp-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--sp-ink); }

.cfsp-app .cfsp-input {
	width: 100%; max-width: 100%; min-height: 40px; padding: 8px 12px;
	border: 1px solid #cbd5e1; border-radius: var(--sp-radius-sm); background: #fff;
	font-size: 14px; line-height: 1.4; color: var(--sp-ink); box-shadow: 0 1px 1px rgba(54, 64, 88, .03);
	transition: border-color .12s, box-shadow .12s;
}
.cfsp-app select.cfsp-input { padding-right: 32px; }
.cfsp-app .cfsp-input:hover { border-color: #94a3b8; }
.cfsp-app .cfsp-input:focus { border-color: var(--sp-accent); box-shadow: 0 0 0 3px rgba(33, 182, 142, .18); outline: 0; }
.cfsp-app .cfsp-input:disabled { background: #f8fafc; color: var(--sp-muted); }
.cfsp-app textarea.cfsp-code { font-family: "JetBrains Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; }
.cfsp-affix { display: flex; align-items: stretch; }
.cfsp-affix span { display: flex; align-items: center; padding: 0 10px; background: #f8fafc; border: 1px solid #cbd5e1; color: var(--sp-muted); font-size: 13px; }
.cfsp-affix span:first-child { border-right: 0; border-radius: var(--sp-radius-sm) 0 0 var(--sp-radius-sm); }
.cfsp-affix span:last-child { border-left: 0; border-radius: 0 var(--sp-radius-sm) var(--sp-radius-sm) 0; }
.cfsp-app .cfsp-affix .cfsp-input { flex: 1; min-width: 0; border-radius: 0; }
.cfsp-app .cfsp-affix .cfsp-input:first-child { border-radius: var(--sp-radius-sm) 0 0 var(--sp-radius-sm); }
.cfsp-app .cfsp-affix span:first-child + .cfsp-input:last-child { border-radius: 0 var(--sp-radius-sm) var(--sp-radius-sm) 0; }

.cfsp-grid-2 { display: block; }
.cfsp-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cfsp-app .cfsp-inline .cfsp-input { flex: 1; min-width: 220px; width: auto; }
.cfsp-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0; }
.cfsp-subfields { margin-left: 18px; padding-left: 18px; border-left: 2px solid var(--sp-accent-100); }
.cfsp-check { display: inline-flex; align-items: center; gap: 6px; }
.cfsp-mt { margin-top: 16px; }

/* ---------- Switch ---------- */

.cfsp-switch { position: relative; display: inline-flex; flex: none; }
.cfsp-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.cfsp-slider { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #cbd5e1; transition: background .15s; }
.cfsp-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(54, 64, 88, .25); transition: transform .18s cubic-bezier(.3, 1.4, .6, 1); }
.cfsp-switch input:checked + .cfsp-slider { background: var(--sp-accent); }
.cfsp-switch input:checked + .cfsp-slider::after { transform: translateX(18px); }
.cfsp-switch input:focus-visible + .cfsp-slider { box-shadow: 0 0 0 3px rgba(33, 182, 142, .3); }
.cfsp-switch input:hover + .cfsp-slider { filter: brightness(.96); }

/* ---------- Tags ---------- */

.cfsp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; min-height: 48px; border: 1px dashed #cbd5e1; border-radius: var(--sp-radius-sm); background: #fbfcfd; }
.cfsp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 11px; border-radius: var(--sp-radius-sm); background: var(--sp-accent-50); border: 1px solid var(--sp-accent-100); color: var(--sp-accent-700); font-size: 13px; font-weight: 500; }
.cfsp-tag button { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 0; border-radius: 4px; background: transparent; color: var(--sp-accent-600); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.cfsp-tag button:hover { background: var(--sp-accent-100); color: var(--sp-accent-700); }
.cfsp-app .cfsp-tags select { min-height: 30px; padding: 2px 28px 2px 10px; border: 1px solid transparent; border-radius: var(--sp-radius-sm); background-color: transparent; color: var(--sp-accent-600); font-size: 13px; font-weight: 500; box-shadow: none; max-width: 200px; cursor: pointer; }
.cfsp-app .cfsp-tags select:hover { background-color: #fff; border-color: var(--sp-line); }

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

.cfsp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	min-height: 38px; padding: 7px 15px; border-radius: var(--sp-radius-sm); cursor: pointer;
	border: 1px solid #cbd5e1; background: #fff; color: var(--sp-ink);
	font-size: 13.5px; font-weight: 600; text-decoration: none; line-height: 1.2;
	box-shadow: 0 1px 1px rgba(54, 64, 88, .04); transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.cfsp-app a.cfsp-btn { color: var(--sp-ink); }
.cfsp-btn:hover { border-color: #94a3b8; background: #f8fafc; }
.cfsp-btn:focus { outline: 0; }
.cfsp-btn:focus-visible { box-shadow: 0 0 0 3px rgba(33, 182, 142, .3); }
.cfsp-btn:disabled, .cfsp-btn.is-busy { opacity: .55; cursor: default; }
.cfsp-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }
.cfsp-btn-primary, .cfsp-app a.cfsp-btn-primary { background: var(--sp-accent); border-color: var(--sp-accent); color: #fff; box-shadow: 0 1px 2px rgba(33, 182, 142, .3); }
.cfsp-btn-primary:hover, .cfsp-app a.cfsp-btn-primary:hover { background: var(--sp-accent-600); border-color: var(--sp-accent-600); color: #fff; }
.cfsp-btn-dark { background: var(--sp-brand); border-color: var(--sp-brand); color: #fff; }
.cfsp-btn-dark:hover { background: #2b3347; border-color: #2b3347; color: #fff; }
.cfsp-btn-danger { color: var(--sp-err); border-color: #fecaca; }
.cfsp-btn-danger:hover { background: var(--sp-err); border-color: var(--sp-err); color: #fff; }
.cfsp-btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--sp-ink-2); }
.cfsp-btn-ghost:hover { background: #e9edf2; border-color: transparent; }
.cfsp-btn-ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .2); color: #e2e8f0; box-shadow: none; }
.cfsp-btn-ghost-dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff; }
.cfsp-btn-block { width: 100%; }
#cfsp-push.is-busy { opacity: .8; }
#cfsp-push.is-busy svg:first-child { animation: cfsp-rise 1.1s ease-in-out infinite; }
@keyframes cfsp-rise { 50% { transform: translateY(-2px); } }
@keyframes cfsp-spin { to { transform: rotate(360deg); } }
.cfsp-link { border: 0; background: none; padding: 0; color: var(--sp-accent-600); cursor: pointer; font-size: 13px; font-weight: 600; }
.cfsp-link:hover { color: var(--sp-accent-700); text-decoration: underline; }
.cfsp-link-danger { color: var(--sp-err); }
.cfsp-file-btn { position: relative; }

/* ---------- Callouts & badges ---------- */

.cfsp-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 0; margin: 12px 0; font-size: 13px; border: 1px solid; }
.cfsp-notice > .dashicons { flex: none; font-size: 18px; width: 18px; height: 18px; margin-top: 1px; }
.cfsp-notice-tip { background: var(--sp-accent-50); border-color: var(--sp-accent-100); color: #155c48; }
.cfsp-notice-tip > .dashicons { color: var(--sp-accent); }
.cfsp-notice-info { background: var(--sp-info-bg); border-color: #bae6fd; color: #0c4a6e; }
.cfsp-notice-info > .dashicons { color: var(--sp-info); }
.cfsp-notice-warn { background: var(--sp-warn-bg); border-color: #fde68a; color: #78350f; }
.cfsp-notice-warn > .dashicons { color: #d97706; }
.cfsp-notice-error { background: var(--sp-err-bg); border-color: #fecaca; color: #7f1d1d; }
.cfsp-notice-error > .dashicons { color: var(--sp-err); }
.cfsp-content > .cfsp-notice { margin: 0 0 20px; }

.cfsp-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 1.6; }
.cfsp-badge-ok { background: var(--sp-ok-bg); color: var(--sp-ok); }
.cfsp-badge-warn { background: var(--sp-warn-bg); color: var(--sp-warn); }
.cfsp-badge-err { background: var(--sp-err-bg); color: var(--sp-err); }
.cfsp-badge-info { background: var(--sp-info-bg); color: var(--sp-info); }
.cfsp-badge-muted { background: #f1f5f9; color: var(--sp-muted); }
.cfsp-badge-run { background: var(--sp-accent-50); color: var(--sp-accent-700); }
.cfsp-muted { color: var(--sp-muted); }

/* ---------- Dashboard ---------- */

.cfsp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.cfsp-stat { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px 18px; background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); }
.cfsp-stat::before { content: ""; position: absolute; left: 18px; top: 0; width: 28px; height: 3px; border-radius: 0; background: var(--sp-accent); }
.cfsp-stat-label { font-size: 12px; font-weight: 500; color: var(--sp-muted); }
.cfsp-stat strong { font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfsp-stat small { color: var(--sp-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfsp-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 16px; }
.cfsp-card .cfsp-stat { box-shadow: none; background: #fbfcfd; }

.cfsp-status { line-height: 1.7; min-height: 3em; padding-top: 6px; }
.cfsp-progress { height: 10px; background: #eef0f4; border-radius: 0; overflow: hidden; margin: 12px 0; }
#cfsp-bar, #cfsp-media-bar { height: 100%; width: 0; border-radius: 0; background: linear-gradient(90deg, #21b68e, #1c9c7a); transition: width .4s ease; }
#cfsp-media-bar { background: linear-gradient(90deg, #f59e0b, #f97316); }
#cfsp-bar.is-failed { background: var(--sp-err); }
#cfsp-bar.is-done { background: var(--sp-ok); }
.cfsp-pending { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--sp-muted); }

.cfsp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cfsp-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--sp-muted); padding: 10px 24px; background: #f8fafc; border-top: 1px solid var(--sp-line-2); border-bottom: 1px solid var(--sp-line-2); }
.cfsp-table td { padding: 12px 24px; border-bottom: 1px solid var(--sp-line-2); vertical-align: top; }
.cfsp-table tr:last-child td { border-bottom: 0; }
.cfsp-table tbody tr:hover td { background: #fbfcfd; }
.cfsp-table td.cfsp-details { max-width: 340px; overflow-wrap: anywhere; }
.cfsp-kv th { width: 180px; background: none; border-top: 0; color: var(--sp-ink); padding-left: 0; }
.cfsp-kv td { padding-left: 0; }
.cfsp-kv code { word-break: break-all; }

.cfsp-log { margin: 0; padding: 4px 0 8px; list-style: none; max-height: 440px; overflow: auto; font: 12.5px/1.6 "JetBrains Mono", Menlo, Consolas, monospace; }
.cfsp-log li { position: relative; margin: 0; padding: 6px 24px 6px 44px; word-break: break-word; color: var(--sp-ink-2); }
.cfsp-log li::before { content: ""; position: absolute; left: 26px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.cfsp-log li::after { content: ""; position: absolute; left: 29px; top: 22px; bottom: -6px; width: 1px; background: var(--sp-line); }
.cfsp-log li:last-child::after { display: none; }
.cfsp-log li.cfsp-log-error { color: var(--sp-err); }
.cfsp-log li.cfsp-log-error::before { background: var(--sp-err); }
.cfsp-log time { color: var(--sp-faint); margin-right: 10px; }
.cfsp-log.is-errors li:not(.cfsp-log-error) { display: none; }

.cfsp-seg { display: inline-flex; padding: 3px; gap: 2px; background: #eef2f6; border-radius: var(--sp-radius-sm); }
.cfsp-seg button { border: 0; background: transparent; padding: 4px 12px; border-radius: 6px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--sp-muted); }
.cfsp-seg button.is-active { background: #fff; color: var(--sp-ink); box-shadow: var(--sp-shadow); }

/* ---------- Health check ---------- */

.cfsp-diag-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 4px; }
.cfsp-diag-meta { color: var(--sp-muted); font-size: 12.5px; }
.cfsp-diag-group h3 { font-size: 12px; font-weight: 600; color: var(--sp-muted); letter-spacing: .05em; text-transform: uppercase; margin: 22px 0 6px; }
.cfsp-diag { display: grid; grid-template-columns: 26px 230px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--sp-line-2); align-items: start; }
.cfsp-diag .dashicons { font-size: 19px; }
.cfsp-diag.is-ok .dashicons { color: var(--sp-ok); }
.cfsp-diag.is-warn .dashicons { color: #f59e0b; }
.cfsp-diag.is-fail .dashicons { color: var(--sp-err); }
.cfsp-diag.is-info .dashicons { color: #38bdf8; }
.cfsp-diag strong { font-weight: 600; }
.cfsp-diag span:last-child { color: var(--sp-muted); overflow-wrap: anywhere; }

/* ---------- Choice cards ---------- */

.cfsp-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 10px 0 6px; }
.cfsp-choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cfsp-choice { position: relative; cursor: pointer; }
.cfsp-choice input { position: absolute; opacity: 0; }
.cfsp-choice-body { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); background: #fff; transition: border-color .12s, box-shadow .12s, background .12s; }
.cfsp-choice-body .dashicons { width: 36px; height: 36px; font-size: 20px; line-height: 36px; text-align: center; border-radius: 8px; background: #eef0f4; color: var(--sp-muted); margin-bottom: 6px; }
.cfsp-choice-body strong { font-size: 14px; }
.cfsp-choice-body small { color: var(--sp-muted); font-size: 12.5px; line-height: 1.45; }
.cfsp-choice-body::after { content: ""; position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; }
.cfsp-choice:hover .cfsp-choice-body { border-color: #94a3b8; }
.cfsp-choice input:checked + .cfsp-choice-body { border-color: var(--sp-accent); box-shadow: 0 0 0 3px rgba(33, 182, 142, .14); background: var(--sp-accent-50); }
.cfsp-choice input:checked + .cfsp-choice-body .dashicons { background: var(--sp-accent); color: #fff; }
.cfsp-choice input:checked + .cfsp-choice-body::after { border-color: var(--sp-accent); background: radial-gradient(circle, var(--sp-accent) 45%, #fff 50%); }
.cfsp-choice input:focus-visible + .cfsp-choice-body { box-shadow: 0 0 0 3px rgba(33, 182, 142, .3); }

/* ---------- GitHub ---------- */

.cfsp-gh-account { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); background: #fbfcfd; }
.cfsp-gh-account img { border-radius: 50%; }
.cfsp-gh-account div { display: flex; flex-direction: column; line-height: 1.35; }
.cfsp-gh-account .cfsp-link { margin-left: auto; }
.cfsp-gh-new { margin-top: 10px; }
.cfsp-device { margin-top: 12px; padding: 16px 18px; border: 1px solid var(--sp-accent-100); border-radius: var(--sp-radius); background: var(--sp-accent-50); max-width: 560px; }
.cfsp-device p { margin: 6px 0; }
.cfsp-app .cfsp-device-code { display: inline-block; font-size: 24px; font-weight: 700; letter-spacing: 4px; padding: 8px 16px; background: #fff; color: var(--sp-ink); border: 1px dashed var(--sp-accent); border-radius: 0; user-select: all; }
.cfsp-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid #cbd5e1; border-top-color: var(--sp-accent); border-radius: 50%; animation: cfsp-spin .8s linear infinite; vertical-align: -1px; margin-right: 4px; }

/* ---------- Plugins (integrations) ---------- */

.cfsp-integrations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 10px 0 4px; }
.cfsp-integration { border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 14px 16px; background: #fff; }
.cfsp-integration.is-active { border-color: #a7f3d0; background: #fbfefd; }
.cfsp-integration-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cfsp-integration p { color: var(--sp-muted); font-size: 13px; margin: 6px 0 4px; }
.cfsp-integration .cfsp-row { padding: 10px 0 0; border-top: 1px solid var(--sp-line-2); margin-top: 8px; }

/* ---------- Media ---------- */

.cfsp-details { margin: 4px 0 8px; border-top: 1px solid var(--sp-line-2); padding-top: 12px; }
.cfsp-details summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--sp-accent-600); }
.cfsp-details[open] summary { margin-bottom: 4px; }
.cfsp-steps { margin: 8px 0 4px 20px; padding: 0; }
.cfsp-steps li { margin-bottom: 10px; padding-left: 4px; }
.cfsp-steps li::marker { color: var(--sp-accent); font-weight: 700; }
.cfsp-skip-preview { padding: 0 0 14px; align-items: flex-start; }
.cfsp-skip-preview .cfsp-help { flex: 1; min-width: 240px; margin: 8px 0 0; line-height: 1.7; }

/* ---------- Misc ---------- */

.cfsp-pre { background: #364058; color: #e3e6ec; padding: 16px; border-radius: 0; max-height: 420px; overflow: auto; font-size: 12px; margin-top: 16px; }

.cfsp-savebar {
	position: fixed; left: calc(160px + 248px + 36px); right: 36px; bottom: 20px; z-index: 100;
	max-width: 928px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 10px 10px 10px 18px; border-radius: 0; background: #364058; color: #e3e6ec;
	box-shadow: 0 18px 40px rgba(54, 64, 88, .3); animation: cfsp-up .2s ease-out;
}
.folded .cfsp-savebar { left: calc(36px + 248px + 36px); }
.cfsp-savebar-text { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cfsp-savebar-text .dashicons { color: var(--sp-accent); }
.cfsp-savebar-actions { display: inline-flex; gap: 8px; }
@keyframes cfsp-up { from { transform: translateY(12px); opacity: 0; } }

.cfsp-toasts { position: fixed; right: 24px; bottom: 24px; z-index: 100000; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; transition: bottom .2s ease-out; }
/* Above the unsaved-changes bar while it is showing. */
#cfsp-dirty:not([hidden]) ~ .cfsp-toasts { bottom: 92px; }
.cfsp-toast { display: flex; align-items: center; gap: 10px; background: #fff; color: #364058; padding: 12px 16px 12px 14px; border-radius: 0; border: 1px solid #e2e8f0; border-left: 4px solid #64748b; box-shadow: 0 10px 28px rgba(54, 64, 88, .14); max-width: 420px; font-size: 13.5px; font-weight: 500; animation: cfsp-in .2s ease-out; }
.cfsp-toast.is-error { border-left-color: #dc2626; }
.cfsp-toast.is-ok { border-left-color: var(--sp-accent); }
@keyframes cfsp-in { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Dialog ---------- */

.cfsp-modal-backdrop { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(54, 64, 88, .5); backdrop-filter: blur(2px); animation: cfsp-fade .15s ease-out; }
.cfsp-modal { width: 100%; max-width: 440px; background: #fff; color: #364058; border-radius: 0; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); animation: cfsp-pop .18s ease-out; outline: 0; overflow: hidden; }
.cfsp-modal-body { padding: 24px 24px 6px; display: flex; gap: 16px; }
.cfsp-modal-icon { flex: none; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #eaf8f3; color: #21b68e; }
.cfsp-modal-icon .dashicons { font-size: 22px; width: 22px; height: 22px; }
.cfsp-modal.is-danger .cfsp-modal-icon { background: #fef2f2; color: #dc2626; }
.cfsp-modal h2 { margin: 2px 0 6px; font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.cfsp-modal p { margin: 0; color: #475569; font-size: 14px; line-height: 1.55; }
.cfsp-modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 20px 24px; margin-top: 14px; background: #f8fafc; border-top: 1px solid #eef2f6; }
.cfsp-modal .cfsp-btn { min-width: 92px; }
.cfsp-modal.is-danger .cfsp-btn-primary { background: #dc2626; border-color: #dc2626; box-shadow: none; }
.cfsp-modal.is-danger .cfsp-btn-primary:hover { background: #b91c1c; border-color: #b91c1c; }
.cfsp-modal.cfsp-modal-wide { max-width: 560px; }
.cfsp-modal-main { flex: 1; min-width: 0; }
.cfsp-modal-main p { margin-bottom: 12px; }
.cfsp-modal-main textarea { display: block; width: 100%; margin-bottom: 8px; }
@keyframes cfsp-fade { from { opacity: 0; } }
@keyframes cfsp-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

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

@media (max-width: 1180px) {
	.cfsp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cfsp-integrations { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
	.cfsp-savebar { left: calc(36px + 248px + 20px); right: 20px; }
}
@media (max-width: 782px) {
	.cfsp-app { grid-template-columns: 1fr; }
	.cfsp-side { position: static; height: auto; padding: 14px; }
	.cfsp-brand { padding-bottom: 12px; }
	.cfsp-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
	.cfsp-nav-group, .cfsp-side-foot { display: none; }
	.cfsp-app .cfsp-nav a { white-space: nowrap; }
	.cfsp-topbar { position: static; flex-wrap: wrap; padding: 14px 16px; }
	.cfsp-content { padding: 16px 16px 120px; }
	.cfsp-row, .cfsp-row-narrow { grid-template-columns: 1fr; gap: 10px; }
	.cfsp-row-toggle { grid-template-columns: minmax(0, 1fr) auto; }
	.cfsp-row-narrow .cfsp-row-control { width: 100%; }
	.cfsp-choices, .cfsp-choices-2, .cfsp-stats-3 { grid-template-columns: 1fr; }
	.cfsp-diag { grid-template-columns: 26px minmax(0, 1fr); }
	.cfsp-diag span:last-child { grid-column: 2; }
	.cfsp-savebar { left: 12px; right: 12px; bottom: 12px; }
	.cfsp-toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
	#cfsp-dirty:not([hidden]) ~ .cfsp-toasts { bottom: 84px; }
	.cfsp-toast { max-width: none; }
	.cfsp-menu { right: auto; left: 0; }
	.toplevel_page_static-push .notice:not(.cfsp-notice) { margin: 12px 16px 0; }
}
.cfsp-related-list { margin: 6px 0 0 20px; padding: 0; }
.cfsp-related-list li { margin: 2px 0; }
