/*
 * ShowHub admin app in "Broadcast" (docs/redesign/WORDPRESS-PLUGIN-BRIEF.md): paper ground, ink
 * text, flat panels separated by rules, signal red for the one primary action per view, cobalt for
 * synced/live/connected, blush for stickers. One typeface, Archivo, bundled locally.
 * Everything is scoped under .showhub-app so the rest of wp-admin is untouched.
 */

/* Scrollbars (generated from packages/shared/styles/scrollbar.css: `pnpm scrollbar:sync`).
   Its colors are recolored to ink below, so the generated file stays untouched. */
@import "./scrollbar.css";

/* Archivo variable (wght 100-900, wdth 62-125), SIL Open Font License: fonts/OFL-Archivo.txt.
   Latin always; Latin Extended only downloads when a page uses those characters. */
@font-face {
	font-family: "ShowHub Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url(./fonts/archivo-latin-wdth-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;
}

@font-face {
	font-family: "ShowHub Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url(./fonts/archivo-latin-ext-wdth-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;
}

/* Paper behind the app (the PHP removes #wpcontent padding so the app is full-bleed). */
body.toplevel_page_showhub,
body.toplevel_page_showhub #wpwrap,
body.toplevel_page_showhub #wpcontent,
body.toplevel_page_showhub #wpbody-content {
	background: #f1e9e7;
}

body.toplevel_page_showhub.showhub-theme-dark,
body.toplevel_page_showhub.showhub-theme-dark #wpwrap,
body.toplevel_page_showhub.showhub-theme-dark #wpcontent,
body.toplevel_page_showhub.showhub-theme-dark #wpbody-content {
	background: #272626;
}

.showhub-app {
	/* Palette */
	--sh-ink: #022139;
	--sh-ink-rgb: 2 33 57;
	--sh-ink-2: #0a2f4d;
	--sh-paper: #f1e9e7;
	--sh-paper-2: #e7dcd9;
	--sh-paper-3: #d6c9c5;
	--sh-panel: #fbf8f7;
	--sh-field: #fffcfb;
	--sh-signal: #a80000;
	/* Text on the signal red: white in both themes (ink on #a80000 is about 2:1). */
	--sh-on-signal: #ffffff;
	--sh-cobalt: #4f6fae;
	--sh-blush: #f2d082;
	--sh-highlight: #f2d082;
	--sh-amber: #b26a00;
	--sh-amber-text: #8a5200;
	--sh-red: #b42d0a;

	/* Text and rules */
	--sh-text: var(--sh-ink);
	--sh-text-dim: #3d5468;
	--sh-text-faint: #5f7080;
	--sh-line: rgb(var(--sh-ink-rgb) / 0.14);
	--sh-line-soft: rgb(var(--sh-ink-rgb) / 0.08);
	--sh-line-strong: rgb(var(--sh-ink-rgb) / 0.42);

	/* Tints */
	--sh-cobalt-soft: rgb(103 136 197 / 0.14);
	--sh-signal-soft: rgb(168 0 0 / 0.1);
	--sh-amber-soft: rgb(178 106 0 / 0.1);
	--sh-red-soft: rgb(180 45 10 / 0.08);

	/* Type */
	--sh-font: "ShowHub Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--sh-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

	/* Motion */
	--sh-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--sh-fast: 0.15s;
	--sh-med: 0.25s;

	/* Scrollbar, recolored to ink (overrides the generated scrollbar.css tokens). */
	--sh-scroll-thumb-top: rgb(var(--sh-ink-rgb) / 0.3);
	--sh-scroll-thumb-bottom: rgb(var(--sh-ink-rgb) / 0.3);
	--sh-scroll-hover-top: rgb(var(--sh-ink-rgb) / 0.52);
	--sh-scroll-hover-bottom: rgb(var(--sh-ink-rgb) / 0.52);
	--sh-scroll-active-top: var(--sh-ink);
	--sh-scroll-active-bottom: var(--sh-ink);
	--sh-scroll-bevel: transparent;
	--sh-scroll-rail: rgb(var(--sh-ink-rgb) / 0.1);
	--sh-scroll-solid: rgb(var(--sh-ink-rgb) / 0.38);

	box-sizing: border-box;
	min-height: calc(100vh - 32px);
	background: var(--sh-paper);
	color: var(--sh-text);
	color-scheme: light;
	font-family: var(--sh-font);
	font-size: 14px;
	line-height: 1.55;
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
}

/* ---- Neutralize wp-admin defaults inside the app ---- */

.showhub-app *,
.showhub-app *::before,
.showhub-app *::after {
	box-sizing: border-box;
}

.showhub-app h1,
.showhub-app h2,
.showhub-app h3,
.showhub-app h4,
.showhub-app p,
.showhub-app ul,
.showhub-app ol,
.showhub-app li,
.showhub-app dl,
.showhub-app dd,
.showhub-app figure {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
}

.showhub-app ul,
.showhub-app ol {
	list-style: none;
}

.showhub-app a {
	color: var(--sh-cobalt);
	text-decoration: none;
	box-shadow: none;
}

.showhub-app a:hover {
	color: var(--sh-ink);
}

.showhub-app a:focus,
.showhub-app button:focus {
	box-shadow: none;
	outline: none;
}

.showhub-app a:focus-visible,
.showhub-app button:focus-visible,
.showhub-app input:focus-visible,
.showhub-app select:focus-visible,
.showhub-app textarea:focus-visible,
.showhub-app [tabindex]:focus-visible {
	outline: 2px solid var(--sh-cobalt);
	outline-offset: 2px;
}

.showhub-app button {
	font-family: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.showhub-app code,
.showhub-app kbd {
	font-family: var(--sh-mono);
	font-size: 12px;
	background: var(--sh-paper-2);
	color: var(--sh-ink);
	border-radius: 4px;
	padding: 2px 6px;
}

.showhub-app svg {
	flex-shrink: 0;
}

.showhub-app ::selection {
	background: var(--sh-signal);
	color: var(--sh-on-signal);
}

/* ---- Type roles ---- */

/* Poster headline: condensed and heavy. */
.showhub-app .sh-display {
	font-stretch: 68%;
	font-weight: 800;
	font-size: clamp(40px, 6vw, 72px);
	line-height: 0.92;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

/* Page title: semi-condensed. */
.showhub-app .sh-title {
	font-stretch: 84%;
	font-weight: 700;
	font-size: 34px;
	line-height: 1.02;
	letter-spacing: -0.008em;
	text-wrap: balance;
}

/* Section heading. */
.showhub-app .sh-h3 {
	font-stretch: 84%;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.15;
	color: var(--sh-text);
}

/* Liner-notes credit line: expanded small caps. */
.showhub-app .sh-kicker {
	font-stretch: 118%;
	font-weight: 600;
	font-size: 11px;
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sh-text-dim);
}

.showhub-app .sh-desc {
	margin-top: 8px;
	max-width: 68ch;
	font-size: 15px;
	color: var(--sh-text-dim);
}

.showhub-app .sh-muted {
	color: var(--sh-text-dim);
}

.showhub-app .sh-faint {
	color: var(--sh-text-faint);
	font-size: 12.5px;
}

.showhub-app .sh-mono {
	font-family: var(--sh-mono);
	font-size: 12.5px;
}

.showhub-app .sh-num {
	font-variant-numeric: tabular-nums;
}

.showhub-app .sh-cobalt {
	color: var(--sh-cobalt);
}

.showhub-app .sh-help {
	font-size: 13px;
	line-height: 1.5;
	color: var(--sh-text-dim);
}

.showhub-app .sh-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--sh-text);
}

.showhub-app .sh-link-quiet {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--sh-cobalt);
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1.5px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size var(--sh-med) var(--sh-ease), color var(--sh-fast) ease;
}

.showhub-app .sh-link-quiet:hover,
.showhub-app .sh-link-quiet:focus-visible {
	color: var(--sh-cobalt);
	background-size: 100% 1.5px;
}

.showhub-app .sh-ext {
	font-weight: 500;
	transition: transform var(--sh-fast) ease;
}

.showhub-app a:hover .sh-ext,
.showhub-app button:hover .sh-ext {
	transform: translate(2px, -1px);
}

/* ---- Layout ---- */

.showhub-app .sh-main {
	max-width: 1240px;
	margin: 0 auto;
	padding: 32px 32px 72px;
}

.showhub-app .sh-page {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.showhub-app .sh-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	padding-bottom: 20px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--sh-line);
}

.showhub-app .sh-page-head .sh-kicker {
	margin-bottom: 10px;
}

.showhub-app .sh-page-head-text {
	min-width: 0;
}

.showhub-app .sh-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	min-width: 0;
}

.showhub-app .sh-row-nowrap {
	flex-wrap: nowrap;
}

.showhub-app .sh-row-end {
	justify-content: flex-end;
}

.showhub-app .sh-row-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	min-width: 0;
}

.showhub-app .sh-stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.showhub-app .sh-stack-sm {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.showhub-app .sh-grid {
	display: grid;
	gap: 16px;
}

.showhub-app .sh-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showhub-app .sh-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showhub-app .sh-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.showhub-app .sh-grid-end {
	align-items: end;
}

.showhub-app .sh-split {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.showhub-app .sh-with-nav {
	display: grid;
	grid-template-columns: 196px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.showhub-app .sh-band-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	flex-wrap: wrap;
	padding-top: 12px;
	border-top: 1px solid var(--sh-line);
}

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

.showhub-app .sh-card {
	background: var(--sh-panel);
	border: 1px solid var(--sh-line);
	border-radius: 8px;
	padding: 20px;
	min-width: 0;
}

.showhub-app .sh-card-flush {
	padding: 0;
	overflow: hidden;
}

.showhub-app .sh-card-pad {
	padding: 18px 20px;
}

.showhub-app .sh-section {
	padding: 0;
	scroll-margin-top: 48px;
}

.showhub-app .sh-section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px 16px;
	flex-wrap: wrap;
	padding: 18px 20px;
}

.showhub-app .sh-section-title {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.showhub-app .sh-section-icon {
	margin-top: 2px;
	color: var(--sh-text-faint);
}

.showhub-app .sh-section-sub {
	margin-top: 4px;
	font-size: 13px;
	color: var(--sh-text-dim);
}

.showhub-app .sh-section-body {
	padding: 4px 20px 20px;
}

.showhub-app .sh-section-danger {
	border-color: rgb(180 45 10 / 0.45);
	border-left: 4px solid var(--sh-red);
	background: var(--sh-panel);
	margin-top: 24px;
}

.showhub-app .sh-section-danger .sh-section-icon,
.showhub-app .sh-section-danger .sh-h3 {
	color: var(--sh-red);
}

/* ---- Buttons: signal (one per view), ink, outline, ghost, danger ---- */

.showhub-app .sh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 6px;
	border: 1.5px solid transparent;
	font-family: var(--sh-font);
	font-weight: 650;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--sh-fast) ease, color var(--sh-fast) ease, border-color var(--sh-fast) ease, transform 0.1s ease;
}

.showhub-app .sh-btn:active:not(:disabled) {
	transform: translateY(1px) scale(0.985);
}

.showhub-app .sh-btn:focus-visible {
	outline-offset: 3px;
}

.showhub-app .sh-btn-primary {
	background: var(--sh-signal);
	color: var(--sh-on-signal);
}

.showhub-app .sh-btn-primary:hover:not(:disabled) {
	background: var(--sh-ink);
	color: var(--sh-paper);
}

.showhub-app .sh-btn-ink {
	background: var(--sh-ink);
	color: var(--sh-paper);
}

.showhub-app .sh-btn-ink:hover:not(:disabled) {
	background: var(--sh-signal);
	color: var(--sh-on-signal);
}

.showhub-app .sh-btn-outline {
	background: transparent;
	border-color: var(--sh-line-strong);
	color: var(--sh-ink);
}

.showhub-app .sh-btn-outline:hover:not(:disabled) {
	border-color: var(--sh-ink);
	background: var(--sh-paper-2);
	color: var(--sh-ink);
}

.showhub-app .sh-btn-ghost {
	background: transparent;
	color: var(--sh-text-dim);
}

.showhub-app .sh-btn-ghost:hover:not(:disabled) {
	background: var(--sh-paper-2);
	color: var(--sh-ink);
}

.showhub-app .sh-btn-danger {
	background: transparent;
	border-color: rgb(180 45 10 / 0.6);
	color: var(--sh-red);
}

.showhub-app .sh-btn-danger:hover:not(:disabled) {
	background: var(--sh-red-soft);
	border-color: var(--sh-red);
	color: var(--sh-red);
}

.showhub-app .sh-btn-danger-solid {
	background: var(--sh-red);
	color: var(--sh-paper);
}

.showhub-app .sh-btn-danger-solid:hover:not(:disabled) {
	background: var(--sh-ink);
	color: var(--sh-paper);
}

.showhub-app .sh-btn:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.showhub-app .sh-btn.is-settled {
	opacity: 1;
}

.showhub-app .sh-btn-ink.is-settled,
.showhub-app .sh-btn-primary.is-settled {
	background: var(--sh-panel);
	border-color: var(--sh-cobalt);
	color: var(--sh-cobalt);
}

.showhub-app .sh-btn.is-settled .sh-settle-check {
	color: var(--sh-cobalt);
}

.showhub-app .sh-btn-sm {
	min-height: 34px;
	padding: 0 12px;
	font-size: 13px;
}

.showhub-app .sh-btn-lg {
	min-height: 52px;
	padding: 0 24px;
	font-size: 16px;
}

.showhub-app .sh-btn .sh-arrow {
	transition: transform 0.18s ease;
}

.showhub-app .sh-btn:hover .sh-arrow {
	transform: translateX(3px);
}

/* ---- Chips, stickers, dots ---- */

.showhub-app .sh-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 22px;
	padding: 2px 9px;
	border-radius: 999px;
	border: 1px solid var(--sh-line);
	background: var(--sh-paper-2);
	color: var(--sh-text-dim);
	font-stretch: 112%;
	font-size: 10.5px;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.showhub-app .sh-pill-cobalt {
	background: var(--sh-cobalt-soft);
	border-color: rgb(42 64 216 / 0.25);
	color: var(--sh-cobalt);
}

.showhub-app .sh-pill-blush {
	background: var(--sh-blush);
	border-color: transparent;
	color: var(--sh-ink);
}

.showhub-app .sh-pill-red {
	background: var(--sh-red-soft);
	border-color: rgb(180 45 10 / 0.25);
	color: var(--sh-red);
}

.showhub-app .sh-pill-amber {
	background: var(--sh-amber-soft);
	border-color: rgb(178 106 0 / 0.3);
	color: var(--sh-amber-text);
}

.showhub-app .sh-pill .sh-dot {
	width: 6px;
	height: 6px;
	background: currentColor;
}

/* A printed sticker: blush, a little off-square. Plans and upgrade prompts. */
.showhub-app .sh-sticker,
.showhub-app a.sh-pill-upgrade {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px;
	border-radius: 4px;
	border: 0;
	background: var(--sh-blush);
	color: var(--sh-ink);
	font-stretch: 112%;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	transform: rotate(-1.5deg);
	transition: transform var(--sh-fast) ease, background-color var(--sh-fast) ease;
}

.showhub-app a.sh-pill-upgrade {
	text-decoration: none;
}

.showhub-app a.sh-pill-upgrade:hover,
.showhub-app a.sh-pill-upgrade:focus-visible {
	background: var(--sh-ink);
	color: var(--sh-paper);
	transform: rotate(0deg);
}

.showhub-app .sh-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--sh-paper-3);
	flex-shrink: 0;
}

/* The on-air light. */
.showhub-app .sh-live-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--sh-signal);
	box-shadow: 0 0 0 3px rgb(255 79 31 / 0.22);
	animation: sh-on-air 2.4s ease-in-out infinite;
}

@keyframes sh-on-air {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.45;
	}
}

/* ---- Top bar: an ink bar like the ShowHub dashboard's, paper text, signal on hover ---- */

.showhub-app .sh-topbar {
	--sh-on-ink: rgb(239 235 227 / 0.86);
	--sh-on-ink-dim: rgb(239 235 227 / 0.62);
	--sh-on-ink-line: rgb(239 235 227 / 0.18);
	--sh-on-ink-line-strong: rgb(239 235 227 / 0.55);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	min-height: 56px;
	padding: 8px 32px;
	background: var(--sh-ink);
	color: var(--sh-paper);
}

.showhub-app .sh-topbar-left,
.showhub-app .sh-topbar-right {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.showhub-app .sh-topbar-right {
	flex-shrink: 0;
	gap: 8px;
}

.showhub-app .sh-topbar a:focus-visible,
.showhub-app .sh-topbar button:focus-visible {
	outline: 2px solid var(--sh-blush);
	outline-offset: 2px;
}

.showhub-app .sh-topbar-brand {
	display: inline-flex;
	padding-right: 14px;
	border-right: 1px solid rgb(239 235 227 / 0.2);
	color: var(--sh-paper);
}

.showhub-app .sh-topbar-brand:hover {
	color: var(--sh-paper);
}

.showhub-app .sh-brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--sh-ink);
}

.showhub-app .sh-topbar .sh-brand {
	color: var(--sh-paper);
}

/* The ShowHub logo (components/ui.js). Same colors and hover as the dashboard's
   packages/shared/styles/showhub-logo.css: on the ink top bar the screen turns white and the
   play button takes the bar's color; on hover the tab peeks out and the play button presses. */
.showhub-app .shl {
	display: block;
	flex-shrink: 0;
	overflow: visible;
}

.showhub-app .shl .shl-ink {
	fill: var(--shl-ink, #231f20);
}

.showhub-app .shl .shl-blue {
	fill: var(--shl-blue, #0077f0);
}

.showhub-app .shl .shl-play {
	fill: var(--shl-play, #ffffff);
}

.showhub-app .sh-topbar {
	--shl-ink: #ffffff;
	--shl-play: var(--sh-ink);
}

/* Dark theme: the page ground goes dark and the top bar goes light, so the colors swap places. */
.showhub-app[data-theme="dark"] {
	--shl-ink: #ffffff;
	--shl-play: var(--sh-paper);
}

.showhub-app[data-theme="dark"] .sh-topbar {
	--shl-ink: #231f20;
	--shl-play: #ffffff;
}

.showhub-app .shl .shl-tab,
.showhub-app .shl .shl-play,
.showhub-app .shl .shl-screen {
	transform-box: fill-box;
	transform-origin: center;
}

.showhub-app a:is(:hover, :focus-visible) .shl-hover .shl-tab,
.showhub-app .shl-hover:hover .shl-tab {
	animation: shl-tab-peek 0.7s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.showhub-app a:is(:hover, :focus-visible) .shl-hover .shl-play,
.showhub-app .shl-hover:hover .shl-play {
	animation: shl-play-press 0.55s cubic-bezier(0.3, 0.7, 0.3, 1);
}

@keyframes shl-tab-peek {
	0% { transform: translateX(0); }
	35% { transform: translateX(18px); }
	62% { transform: translateX(-4px); }
	82% { transform: translateX(3px); }
	100% { transform: translateX(0); }
}

@keyframes shl-play-press {
	0% { transform: scale(1); }
	30% { transform: scale(0.78); }
	65% { transform: scale(1.16); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.showhub-app .shl * {
		animation: none !important;
	}
}

/* Square controls on the ink bar (search, bell, dashboard link). */
.showhub-app .sh-topbar-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 36px;
	min-width: 36px;
	padding: 0 10px;
	border-radius: 6px;
	border: 1px solid var(--sh-on-ink-line);
	background: transparent;
	color: var(--sh-on-ink);
	font-size: 13px;
	font-weight: 550;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color var(--sh-fast) ease, color var(--sh-fast) ease, background-color var(--sh-fast) ease;
}

.showhub-app .sh-topbar-btn:hover,
.showhub-app .sh-topbar-btn[aria-expanded="true"] {
	border-color: var(--sh-on-ink-line-strong);
	background: rgb(239 235 227 / 0.06);
	color: var(--sh-paper);
}

.showhub-app .sh-topbar-btn kbd {
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid rgb(239 235 227 / 0.22);
	background: transparent;
	color: var(--sh-on-ink-dim);
	font-family: var(--sh-font);
	font-size: 10px;
	font-weight: 650;
	line-height: 1;
}

.showhub-app .sh-search-btn {
	justify-content: flex-start;
	min-width: 180px;
}

.showhub-app .sh-search-btn-text {
	color: var(--sh-on-ink-dim);
}

.showhub-app .sh-search-btn kbd {
	margin-left: auto;
}

.showhub-app .sh-bell {
	padding: 0;
}

.showhub-app .sh-bell-count {
	position: absolute;
	top: -6px;
	right: -6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--sh-signal);
	box-shadow: 0 0 0 2px var(--sh-ink);
	color: var(--sh-on-signal);
	font-size: 10px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.showhub-app .sh-show-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	max-width: 340px;
	min-height: 40px;
	padding: 3px 10px 3px 3px;
	border-radius: 6px;
	border: 1px solid var(--sh-on-ink-line);
	background: transparent;
	color: var(--sh-paper);
	text-align: left;
	transition: border-color var(--sh-fast) ease, background-color var(--sh-fast) ease;
}

.showhub-app .sh-show-chip:hover:not(:disabled) {
	border-color: var(--sh-on-ink-line-strong);
	background: rgb(239 235 227 / 0.06);
}

.showhub-app .sh-show-chip:disabled {
	opacity: 0.6;
	cursor: progress;
}

/* One show on the account: a label, not a switcher. */
.showhub-app .sh-show-chip.is-static {
	border-color: transparent;
}

.showhub-app .sh-show-chip-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

.showhub-app .sh-show-chip-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 650;
	font-size: 13.5px;
}

.showhub-app .sh-show-chip-hint {
	font-size: 11.5px;
	color: var(--sh-on-ink-dim);
}

.showhub-app .sh-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 4px;
	object-fit: cover;
	background: var(--sh-paper-3);
	color: var(--sh-ink);
	font-stretch: 84%;
	font-size: 15px;
	font-weight: 800;
	flex-shrink: 0;
}

.showhub-app .sh-topbar .sh-avatar {
	width: 30px;
	height: 30px;
	background: var(--sh-blush);
	font-size: 13px;
}

.showhub-app .sh-avatar-ink {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--sh-ink);
	color: var(--sh-paper);
	font-size: 13px;
}

.showhub-app .sh-topbar .sh-avatar-ink {
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--sh-blush);
	color: var(--sh-ink);
	font-size: 12px;
}

.showhub-app .sh-sync {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--sh-on-ink-dim);
	white-space: nowrap;
}

.showhub-app .sh-sync.is-cobalt .sh-dot {
	background: #8f9cff;
}

.showhub-app .sh-sync.is-red {
	color: #ff9c80;
}

.showhub-app .sh-sync.is-red .sh-dot {
	background: var(--sh-signal);
}

.showhub-app .sh-sync.is-faint .sh-dot {
	background: transparent;
	border: 1.5px solid var(--sh-on-ink-line-strong);
}

.showhub-app .sh-sync.is-live {
	color: var(--sh-paper);
	font-weight: 600;
}

.showhub-app .sh-sync.is-live .sh-dot {
	background: var(--sh-signal);
	box-shadow: 0 0 0 3px rgb(255 79 31 / 0.3);
	animation: sh-on-air 2.4s ease-in-out infinite;
}

/* The plan, as the dashboard shows it: a small blush pill. */
.showhub-app .sh-topbar .sh-plan-sticker {
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 650;
	letter-spacing: 0.14em;
	transform: none;
}

/* Account menu */
.showhub-app .sh-account {
	position: relative;
}

.showhub-app .sh-account-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 8px 0 4px;
	border-radius: 999px;
	border: 1px solid var(--sh-on-ink-line);
	background: transparent;
	color: var(--sh-paper);
	font-size: 13px;
	font-weight: 600;
	transition: border-color var(--sh-fast) ease, background-color var(--sh-fast) ease;
}

.showhub-app .sh-account-btn:hover,
.showhub-app .sh-account-btn[aria-expanded="true"] {
	border-color: var(--sh-on-ink-line-strong);
	background: rgb(239 235 227 / 0.06);
}

.showhub-app .sh-account-btn > svg {
	transition: transform var(--sh-med) var(--sh-ease);
}

.showhub-app .sh-account-btn[aria-expanded="true"] > svg {
	transform: rotate(180deg);
}

.showhub-app .sh-account-name {
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.showhub-app .sh-account-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 50;
	width: 288px;
	max-width: calc(100vw - 32px);
	background: var(--sh-panel);
	border: 1px solid var(--sh-ink);
	border-radius: 8px;
	overflow: hidden;
	transform-origin: top right;
	animation: sh-drop var(--sh-med) var(--sh-ease) both;
}

.showhub-app .sh-account-who {
	padding: 14px 16px 12px;
	border-bottom: 1px solid var(--sh-line);
}

.showhub-app .sh-account-who-name {
	margin-top: 6px;
	font-weight: 650;
	overflow-wrap: anywhere;
}

.showhub-app .sh-account-items li + li {
	border-top: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-account-items a,
.showhub-app .sh-account-items button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	padding: 0 16px;
	color: var(--sh-ink);
	font-size: 13.5px;
	font-weight: 550;
	text-align: left;
	transition: background-color var(--sh-fast) ease;
}

.showhub-app .sh-account-items a .sh-ext {
	margin-left: auto;
	color: var(--sh-text-faint);
}

.showhub-app .sh-account-items a:hover,
.showhub-app .sh-account-items button:hover:not(:disabled) {
	background: var(--sh-paper-2);
	color: var(--sh-ink);
}

.showhub-app .sh-account-items button:disabled {
	opacity: 0.5;
}

.showhub-app .sh-account-signout {
	border-top: 1px solid var(--sh-line) !important;
}

.showhub-app .sh-account-signout button,
.showhub-app .sh-account-signout button:hover {
	color: var(--sh-red);
}

.showhub-app .sh-account-confirm {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px 16px 16px;
	font-size: 13px;
	color: var(--sh-text-dim);
	animation: sh-rise var(--sh-med) var(--sh-ease) both;
}

/* Bell and search: paper panels hung under the ink bar, like the account menu. */
.showhub-app .sh-pop {
	position: relative;
}

.showhub-app .sh-pop-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 50;
	width: 360px;
	max-width: calc(100vw - 32px);
	background: var(--sh-panel);
	border: 1px solid var(--sh-ink);
	border-radius: 8px;
	color: var(--sh-ink);
	overflow: hidden;
	transform-origin: top right;
	animation: sh-drop var(--sh-med) var(--sh-ease) both;
}

.showhub-app .sh-pop-head {
	padding: 12px 16px;
	border-bottom: 1px solid var(--sh-line);
}

.showhub-app .sh-pop-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	border-top: 1px solid var(--sh-line);
	color: var(--sh-cobalt);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.showhub-app .sh-pop-foot:hover {
	background: var(--sh-paper-2);
	color: var(--sh-cobalt);
}

.showhub-app .sh-bell-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 28px 20px;
	text-align: center;
	font-size: 13px;
}

.showhub-app .sh-bell-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 6px;
	border-radius: 999px;
	background: var(--sh-cobalt-soft);
	color: var(--sh-cobalt);
}

.showhub-app .sh-bell-list {
	max-height: 380px;
	overflow-y: auto;
}

.showhub-app .sh-bell-list li + li {
	border-top: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-bell-item {
	display: flex;
	gap: 12px;
	width: 100%;
	padding: 12px 16px;
	color: var(--sh-ink);
	text-align: left;
}

.showhub-app button.sh-bell-item:hover {
	background: var(--sh-paper-2);
}

.showhub-app .sh-bell-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-top: 1px;
	border-radius: 6px;
	border: 1px solid var(--sh-line);
	color: var(--sh-red);
	flex-shrink: 0;
}

.showhub-app .sh-bell-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.showhub-app .sh-bell-meta {
	font-size: 10.5px;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sh-text-faint);
}

.showhub-app .sh-bell-message {
	font-size: 13px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.showhub-app .sh-search-panel {
	width: 420px;
}

.showhub-app .sh-search-field {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	border-bottom: 1px solid var(--sh-line);
	color: var(--sh-text-faint);
}

.showhub-app .sh-search-field input[type="search"] {
	flex: 1;
	min-height: 48px;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	color: var(--sh-ink);
	font-size: 14.5px;
}

.showhub-app .sh-search-field input[type="search"]:focus {
	outline: none;
	box-shadow: none;
}

.showhub-app .sh-search-hint {
	margin: 0;
	padding: 16px;
	font-size: 13px;
}

.showhub-app .sh-search-list {
	max-height: 360px;
	overflow-y: auto;
	padding: 6px;
}

.showhub-app .sh-search-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--sh-ink);
	text-align: left;
	font-size: 13.5px;
}

.showhub-app .sh-search-item.is-active {
	background: var(--sh-paper-2);
}

.showhub-app .sh-search-item-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
}

.showhub-app .sh-search-item-where {
	flex-shrink: 0;
	font-size: 12px;
}

/* A short list of what a plan adds: signal ticks, no bullets. */
.showhub-app .sh-ol {
	display: grid;
	gap: 6px;
	margin: 0;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.45;
}

.showhub-app .sh-ticks {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.showhub-app .sh-ticks li {
	position: relative;
	padding-left: 22px;
	font-size: 14px;
	line-height: 1.45;
}

.showhub-app .sh-ticks li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 2px;
	width: 10px;
	height: 5px;
	border-left: 2px solid var(--sh-signal);
	border-bottom: 2px solid var(--sh-signal);
	transform: rotate(-45deg);
}

/* ---- Main tabs: one signal bar slides under the active tab ---- */

.showhub-app .sh-tabs {
	position: relative;
	display: flex;
	gap: 4px;
	padding: 0 32px;
	border-bottom: 1px solid var(--sh-line);
	background: var(--sh-paper);
	overflow-x: auto;
	scrollbar-width: none;
}

.showhub-app .sh-tabs::-webkit-scrollbar {
	display: none;
}

.showhub-app .sh-tab {
	position: relative;
	min-height: 46px;
	padding: 0 14px;
	color: var(--sh-text-dim);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: color var(--sh-fast) ease;
}

.showhub-app .sh-tab:hover {
	color: var(--sh-ink);
}

.showhub-app .sh-tab.is-active {
	color: var(--sh-ink);
}

.showhub-app .sh-tab:focus-visible {
	outline-offset: -4px;
}

.showhub-app .sh-tab-indicator {
	position: absolute;
	bottom: -1px;
	height: 3px;
	background: var(--sh-signal);
	pointer-events: none;
	transition: left var(--sh-med) var(--sh-ease), width var(--sh-med) var(--sh-ease);
}

/* ---- Section side nav ---- */

.showhub-app .sh-side-nav {
	position: sticky;
	top: 48px;
	display: flex;
	flex-direction: column;
	padding-left: 2px;
	border-left: 1px solid var(--sh-line);
}

.showhub-app .sh-side-indicator {
	position: absolute;
	left: -1px;
	width: 3px;
	background: var(--sh-signal);
	pointer-events: none;
	transition: top var(--sh-med) var(--sh-ease), height var(--sh-med) var(--sh-ease);
}

.showhub-app .sh-side-link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
	padding: 0 12px;
	color: var(--sh-text-dim);
	font-size: 13.5px;
	font-weight: 550;
	text-align: left;
	transition: color var(--sh-fast) ease, transform var(--sh-med) var(--sh-ease);
}

.showhub-app .sh-side-link:hover {
	color: var(--sh-ink);
	transform: translateX(3px);
}

.showhub-app .sh-side-link.is-active {
	color: var(--sh-ink);
	font-weight: 650;
}

.showhub-app .sh-side-link-icon {
	color: var(--sh-text-faint);
}

.showhub-app .sh-side-link.is-active .sh-side-link-icon {
	color: var(--sh-ink);
}

.showhub-app .sh-side-link.is-danger,
.showhub-app .sh-side-link.is-danger .sh-side-link-icon {
	color: var(--sh-red);
}

/* ---- Forms ---- */

.showhub-app .sh-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.showhub-app .sh-input,
.showhub-app input.sh-input,
.showhub-app select.sh-input,
.showhub-app textarea.sh-input {
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid rgb(var(--sh-ink-rgb) / 0.28);
	border-radius: 6px;
	background-color: var(--sh-field);
	color: var(--sh-ink);
	font-family: var(--sh-font);
	font-size: 14px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color var(--sh-fast) ease, box-shadow var(--sh-fast) ease;
}

.showhub-app select.sh-input {
	max-width: none;
	padding-right: 34px;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2310241d' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
	cursor: pointer;
}

.showhub-app textarea.sh-input {
	resize: vertical;
}

.showhub-app .sh-input::placeholder {
	color: #7c8781;
}

.showhub-app .sh-input:hover:not(:disabled) {
	border-color: var(--sh-line-strong);
}

.showhub-app .sh-input:focus,
.showhub-app .sh-input:focus-visible {
	border-color: var(--sh-cobalt);
	box-shadow: 0 0 0 3px rgb(42 64 216 / 0.2);
	outline: none;
}

.showhub-app .sh-input:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.showhub-app .sh-input-mono {
	font-family: var(--sh-mono);
	font-size: 13px;
}

.showhub-app .sh-search {
	position: relative;
}

.showhub-app .sh-search .sh-input {
	min-height: 44px;
	padding-left: 38px;
	background-color: var(--sh-panel);
}

.showhub-app .sh-search-icon {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--sh-text-faint);
	pointer-events: none;
}

.showhub-app .sh-color {
	display: flex;
	gap: 8px;
	align-items: center;
}

.showhub-app input[type="color"].sh-swatch {
	width: 40px;
	height: 40px;
	padding: 3px;
	border: 1px solid rgb(var(--sh-ink-rgb) / 0.28);
	border-radius: 6px;
	background: var(--sh-field);
	cursor: pointer;
	flex-shrink: 0;
}

/* Switch: cobalt when on, the knob slides. */
.showhub-app .sh-switch {
	position: relative;
	width: 40px;
	height: 24px;
	border-radius: 999px;
	background: var(--sh-paper-3);
	border: 1px solid rgb(var(--sh-ink-rgb) / 0.2);
	flex-shrink: 0;
	transition: background-color var(--sh-med) ease, border-color var(--sh-med) ease;
}

.showhub-app .sh-switch::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: var(--sh-panel);
	box-shadow: 0 0 0 1px rgb(var(--sh-ink-rgb) / 0.12);
	transition: transform var(--sh-med) var(--sh-ease);
}

.showhub-app .sh-switch[aria-checked="true"] {
	background: var(--sh-cobalt);
	border-color: var(--sh-cobalt);
}

.showhub-app .sh-switch[aria-checked="true"]::after {
	transform: translateX(16px);
}

.showhub-app .sh-switch:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.showhub-app .sh-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	flex-wrap: wrap;
	padding: 14px 0;
	border-top: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-toggle-row:first-child {
	border-top: 0;
	padding-top: 4px;
}

.showhub-app .sh-toggle-text {
	flex: 1 1 260px;
	min-width: 0;
}

.showhub-app .sh-toggle-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	color: var(--sh-ink);
}

.showhub-app .sh-toggle-text .sh-help {
	margin-top: 2px;
}

/* Segmented control: an ink block slides to the chosen option. */
.showhub-app .sh-seg {
	position: relative;
	display: inline-flex;
	flex-wrap: wrap;
	padding: 3px;
	border-radius: 6px;
	background: var(--sh-paper-2);
	border: 1px solid var(--sh-line);
	isolation: isolate;
}

.showhub-app .sh-seg-indicator {
	position: absolute;
	top: 3px;
	bottom: 3px;
	z-index: -1;
	border-radius: 4px;
	background: var(--sh-ink);
	pointer-events: none;
	transition: left var(--sh-med) var(--sh-ease), width var(--sh-med) var(--sh-ease);
}

.showhub-app .sh-seg button {
	min-height: 32px;
	padding: 0 12px;
	border-radius: 4px;
	color: var(--sh-text-dim);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: color var(--sh-med) ease, background-color var(--sh-fast) ease;
}

.showhub-app .sh-seg button:hover {
	color: var(--sh-ink);
}

.showhub-app .sh-seg button[aria-checked="true"] {
	background: var(--sh-ink);
	color: var(--sh-paper);
}

.showhub-app .sh-seg.has-indicator button[aria-checked="true"] {
	background: transparent;
}

.showhub-app .sh-seg button:focus-visible {
	outline-offset: 1px;
}

/* Code panel: ink, mono, with copy that settles into "Copied". */
.showhub-app .sh-code {
	display: flex;
	align-items: stretch;
	min-height: 44px;
	border-radius: 6px;
	background: var(--sh-ink);
	overflow: hidden;
}

.showhub-app .sh-code-text,
.showhub-app input.sh-code-text,
.showhub-app textarea.sh-code-text {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--sh-paper);
	font-family: var(--sh-mono);
	font-size: 13px;
	line-height: 1.5;
	box-shadow: none;
	resize: none;
}

.showhub-app .sh-code-text:focus,
.showhub-app .sh-code-text:focus-visible {
	outline: none;
	box-shadow: none;
	border: 0;
}

.showhub-app .sh-code:focus-within {
	outline: 2px solid var(--sh-cobalt);
	outline-offset: 2px;
}

.showhub-app .sh-code-text::selection {
	background: var(--sh-blush);
	color: var(--sh-ink);
}

.showhub-app .sh-code-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 92px;
	justify-content: center;
	padding: 0 14px;
	border-left: 1px solid rgb(239 235 227 / 0.16) !important;
	color: var(--sh-paper) !important;
	font-size: 13px;
	font-weight: 650;
	transition: background-color var(--sh-fast) ease, color var(--sh-fast) ease;
}

.showhub-app .sh-code-copy:hover {
	background: var(--sh-ink-2) !important;
}

.showhub-app .sh-code-copy:focus-visible {
	outline: 2px solid var(--sh-blush);
	outline-offset: -3px;
}

.showhub-app .sh-code.is-copied .sh-code-copy {
	background: var(--sh-blush) !important;
	color: var(--sh-ink) !important;
}

/* ---- Stats ---- */

.showhub-app .sh-stat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px;
}

.showhub-app .sh-stat .sh-kicker {
	gap: 6px;
}

.showhub-app .sh-stat-line {
	align-items: baseline;
	overflow: hidden;
}

.showhub-app .sh-stat-value {
	font-stretch: 72%;
	font-weight: 800;
	font-size: 38px;
	line-height: 1;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

.showhub-app .sh-delta {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--sh-paper-2);
	color: var(--sh-text-dim);
	font-size: 12px;
	font-weight: 650;
}

.showhub-app .sh-delta.is-up {
	background: var(--sh-cobalt-soft);
	color: var(--sh-cobalt);
}

.showhub-app .sh-delta.is-down {
	background: var(--sh-red-soft);
	color: var(--sh-red);
}

/* "Live on this site" facts: ruled rows. */
.showhub-app .sh-facts {
	margin-top: 10px;
}

.showhub-app .sh-fact {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 16px;
	min-height: 48px;
	padding: 8px 0;
	border-top: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-fact:first-child {
	border-top: 0;
}

.showhub-app .sh-fact dt,
.showhub-app .sh-facts dt {
	font-stretch: 118%;
	font-weight: 600;
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sh-text-dim);
}

.showhub-app .sh-fact-value {
	min-width: 0;
	overflow-wrap: anywhere;
}

.showhub-app .sh-fact-value .sh-link-quiet {
	font-weight: 550;
}

.showhub-app .sh-fact-figure {
	font-stretch: 80%;
	font-weight: 750;
	font-size: 20px;
	line-height: 1;
}

.showhub-app .sh-fact-aside {
	justify-self: end;
	text-align: right;
}

.showhub-app .sh-facts-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
	margin: 0;
}

.showhub-app .sh-facts-2 .sh-fact {
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	border-top: 0;
	padding: 0;
	min-height: 0;
}

.showhub-app .sh-sync-every {
	margin-top: 10px;
}

.showhub-app .sh-sync-error,
.showhub-app .sh-reconnect {
	margin-top: 14px;
}

.showhub-app .sh-reconnect {
	margin: 0 0 24px;
}

/* ---- Tables and tracklists: ruled rows, a signal bar slides in on hover ---- */

.showhub-app .sh-table-wrap {
	overflow-x: auto;
}

.showhub-app table.sh-table {
	width: 100%;
	border-collapse: collapse;
	background: transparent;
	border: 0;
}

.showhub-app .sh-table th {
	padding: 10px 16px;
	border-bottom: 1px solid var(--sh-line);
	background: var(--sh-paper);
	color: var(--sh-text-dim);
	font-stretch: 118%;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: left;
	white-space: nowrap;
}

.showhub-app .sh-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--sh-line-soft);
	vertical-align: middle;
	color: var(--sh-ink);
}

.showhub-app .sh-table tbody tr:last-child td {
	border-bottom: 0;
}

.showhub-app .sh-table .is-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.showhub-app .sh-table tbody td:first-child {
	box-shadow: inset 0 0 0 0 var(--sh-signal);
	transition: box-shadow var(--sh-med) var(--sh-ease);
}

.showhub-app .sh-table tbody tr {
	transition: background-color var(--sh-fast) ease;
}

.showhub-app .sh-table tbody tr:hover,
.showhub-app .sh-table tbody tr:focus-within {
	background: rgb(229 223 211 / 0.45);
}

.showhub-app .sh-table tbody tr:hover td:first-child,
.showhub-app .sh-table tbody tr:focus-within td:first-child {
	box-shadow: inset 3px 0 0 0 var(--sh-signal);
}

.showhub-app .sh-path {
	overflow-wrap: anywhere;
}

.showhub-app .sh-ep {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.showhub-app .sh-ep-text {
	min-width: 0;
	transition: transform var(--sh-med) var(--sh-ease);
}

.showhub-app .sh-row-hover:hover .sh-ep-text {
	transform: translateX(4px);
}

.showhub-app .sh-thumb {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 4px;
	object-fit: cover;
	background: var(--sh-paper-3);
	flex-shrink: 0;
}

.showhub-app .sh-ep-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 420px;
	font-weight: 650;
	font-size: 14.5px;
}

.showhub-app .sh-ep-chips {
	gap: 6px;
	margin-top: 4px;
}

.showhub-app .sh-copy-id {
	color: var(--sh-text-dim);
	white-space: nowrap;
}

.showhub-app .sh-copy-id:hover {
	color: var(--sh-ink);
}

.showhub-app .sh-copy-id .sh-settle-check {
	color: var(--sh-cobalt);
}

.showhub-app .sh-premium-form {
	padding: 6px 0 4px;
}

.showhub-app .sh-premium-actions {
	padding-bottom: 22px;
}

.showhub-app .sh-list-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
	padding: 10px 20px;
	border-top: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-tracklist .sh-list-item:first-child,
.showhub-app .sh-section-body .sh-list-item:first-child {
	border-top: 1px solid var(--sh-line);
}

.showhub-app .sh-section-body .sh-list-item {
	padding: 10px 0;
}

.showhub-app .sh-row-hover::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--sh-signal);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform var(--sh-med) var(--sh-ease);
}

.showhub-app .sh-row-hover:hover::before,
.showhub-app .sh-row-hover:focus-within::before {
	transform: scaleY(1);
}

/* ---- Notices ---- */

.showhub-app .sh-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--sh-line);
	border-left: 4px solid var(--sh-ink);
	border-radius: 6px;
	background: var(--sh-panel);
	color: var(--sh-ink);
	font-size: 13.5px;
	animation: sh-rise var(--sh-med) var(--sh-ease) both;
}

.showhub-app .sh-banner > svg {
	margin-top: 2px;
}

.showhub-app .sh-banner > .sh-banner-text {
	flex: 1;
	min-width: 0;
	align-self: center;
}

.showhub-app .sh-banner > .sh-btn {
	margin: -4px 0;
}

.showhub-app .sh-banner-info {
	border-left-color: var(--sh-cobalt);
}

.showhub-app .sh-banner-info > svg,
.showhub-app .sh-banner-success > svg {
	color: var(--sh-cobalt);
}

.showhub-app .sh-banner-success {
	border-left-color: var(--sh-cobalt);
	background: rgb(42 64 216 / 0.05);
}

.showhub-app .sh-banner-warning {
	border-left-color: var(--sh-amber);
	background: rgb(178 106 0 / 0.06);
}

.showhub-app .sh-banner-warning > svg {
	color: var(--sh-amber);
}

.showhub-app .sh-banner-error {
	border-left-color: var(--sh-red);
	background: rgb(180 45 10 / 0.05);
}

.showhub-app .sh-banner-error > svg {
	color: var(--sh-red);
}

.showhub-app .sh-inline-msg {
	font-size: 13px;
	color: var(--sh-text-dim);
}

.showhub-app .sh-inline-msg.is-error {
	color: var(--sh-red);
}

.showhub-app .sh-inline-msg.is-success {
	color: var(--sh-cobalt);
	font-weight: 600;
}

.showhub-app .sh-confirm {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid rgb(180 45 10 / 0.4);
	border-radius: 6px;
	background: rgb(180 45 10 / 0.05);
	font-weight: 600;
}

.showhub-app .sh-gate {
	padding: 4px 0;
}

/* Theme embeds (Publish): one card per embed the site theme draws, each with the engine's live frame. */
.showhub-app .sh-embed-card {
	display: grid;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--sh-line);
	border-radius: 8px;
	background: var(--sh-panel);
}

.showhub-app .sh-embed-card-head .sh-help {
	margin-top: 4px;
	max-width: 70ch;
}

.showhub-app .sh-embed-card-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.showhub-app .sh-embed-preview {
	position: relative;
	max-height: 560px;
	overflow: auto;
	border: 1px solid var(--sh-line);
	border-radius: 6px;
	background: var(--sh-field);
}

.showhub-app .sh-embed-preview iframe {
	display: block;
	width: 100%;
	height: 180px;
	border: 0;
}

.showhub-app .sh-embed-preview.is-loading {
	background: linear-gradient(90deg, var(--sh-field) 0%, var(--sh-line-soft) 50%, var(--sh-field) 100%) 0 0 / 200% 100%;
	animation: sh-embed-shimmer 1.4s linear infinite;
}

.showhub-app .sh-embed-preview.is-loading iframe {
	opacity: 0;
}

.showhub-app .sh-embed-preview.is-failed {
	padding: 20px 16px;
}

@keyframes sh-embed-shimmer {
	to {
		background-position: -200% 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.showhub-app .sh-embed-preview.is-loading {
		animation: none;
	}
}

.showhub-app .sh-embed-card-use {
	display: grid;
	gap: 6px;
}

.showhub-app .sh-embed-locked ul {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.showhub-app .sh-embed-locked li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	margin: 0;
	padding: 8px 0;
	border-top: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-embed-locked-name {
	font-weight: 600;
}

.showhub-app .sh-empty {
	padding: 28px 24px;
	border: 1px solid var(--sh-line);
	border-left: 4px solid var(--sh-signal);
	border-radius: 8px;
	background: var(--sh-panel);
}

.showhub-app .sh-empty h2 {
	font-stretch: 72%;
	font-weight: 800;
	font-size: 30px;
	line-height: 1;
}

.showhub-app .sh-empty p {
	margin-top: 8px;
	max-width: 60ch;
	color: var(--sh-text-dim);
}

.showhub-app .sh-empty-action {
	margin-top: 16px;
}

/* Toasts: panel with an ink rule; the check settles. */
.showhub-app .sh-toasts {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(380px, calc(100vw - 32px));
}

.showhub-app .sh-toast {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 12px 12px 14px;
	border: 1px solid var(--sh-ink);
	border-left: 4px solid var(--sh-cobalt);
	border-radius: 6px;
	background: var(--sh-panel);
	color: var(--sh-ink);
	font-size: 13.5px;
	animation: sh-toast-in var(--sh-med) var(--sh-ease) both;
}

.showhub-app .sh-toast > svg {
	margin-top: 2px;
}

.showhub-app .sh-toast-text {
	flex: 1;
	min-width: 0;
}

.showhub-app .sh-toast-success > svg {
	color: var(--sh-cobalt);
}

.showhub-app .sh-toast-error {
	border-left-color: var(--sh-red);
}

.showhub-app .sh-toast-error > svg {
	color: var(--sh-red);
}

.showhub-app .sh-toast button {
	display: inline-flex;
	padding: 2px;
	border-radius: 4px;
	color: var(--sh-text-faint);
}

.showhub-app .sh-toast button:hover {
	color: var(--sh-ink);
}

/* ---- Progress, skeleton, spinner ---- */

.showhub-app .sh-progress {
	height: 8px;
	border-radius: 999px;
	background: var(--sh-paper-3);
	overflow: hidden;
}

.showhub-app .sh-progress > span {
	display: block;
	height: 100%;
	background: var(--sh-cobalt);
	transition: width 0.3s var(--sh-ease);
}

.showhub-app .sh-skeleton {
	border-radius: 8px;
	background: var(--sh-paper-2);
	animation: sh-breathe 1.4s ease-in-out infinite;
}

.showhub-app .sh-spin {
	animation: sh-spin 0.8s linear infinite;
}

/* ---- Connect screen ---- */

.showhub-app .sh-connect {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	max-width: 1160px;
	margin: 0 auto;
	padding: 72px 40px 56px;
	animation: sh-rise 0.3s var(--sh-ease) both;
}

.showhub-app .sh-connect-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}

.showhub-app .sh-connect-brand .sh-kicker {
	padding-left: 14px;
	border-left: 1px solid var(--sh-line-strong);
}

.showhub-app .sh-connect-text {
	margin-top: 20px;
	max-width: 46ch;
	font-size: 17px;
	line-height: 1.6;
	color: var(--sh-text-dim);
}

.showhub-app .sh-connect-error {
	margin-top: 20px;
	max-width: 520px;
}

.showhub-app .sh-connect-action {
	display: flex;
	align-items: center;
	gap: 12px 18px;
	flex-wrap: wrap;
	margin-top: 28px;
}

.showhub-app .sh-connect-next {
	padding: 24px;
	border: 1px solid var(--sh-ink);
	border-radius: 10px;
	background: var(--sh-panel);
}

.showhub-app .sh-connect-steps {
	margin-top: 8px;
}

.showhub-app .sh-connect-steps li {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid var(--sh-line);
}

.showhub-app .sh-connect-steps li:first-child {
	border-top: 0;
}

.showhub-app .sh-connect-step-title {
	font-stretch: 84%;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.2;
}

.showhub-app .sh-connect-steps .sh-help {
	margin-top: 4px;
}

.showhub-app .sh-connect-note {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--sh-line);
	font-size: 12.5px;
	color: var(--sh-text-faint);
}

.showhub-app .sh-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	border: 1.5px solid var(--sh-ink);
	background: var(--sh-panel);
	color: var(--sh-ink);
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
	transition: background-color var(--sh-med) ease, color var(--sh-med) ease, border-color var(--sh-med) ease;
}

/* ---- Design: embed styles and preview ---- */

.showhub-app .sh-embed-styles {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.showhub-app .sh-embed-style {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	margin: 0;
	padding: 8px 10px;
	border-radius: 6px;
	border: 1px solid transparent;
	transition: border-color var(--sh-fast) ease, background-color var(--sh-fast) ease;
}

.showhub-app .sh-embed-style.is-selected {
	border-color: var(--sh-line);
	background: var(--sh-paper-2);
}

.showhub-app .sh-embed-style-name {
	padding: 0;
	border: 0;
	background: none;
	color: var(--sh-ink);
	font: inherit;
	font-size: 13.5px;
	font-weight: 650;
	text-align: left;
}

.showhub-app button.sh-embed-style-name {
	cursor: pointer;
}

.showhub-app button.sh-embed-style-name:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.showhub-app .sh-preview {
	display: block;
	width: 100%;
	height: 560px;
	border: 1px solid var(--sh-line);
	border-radius: 6px;
	background: #fff;
}

/* ---- Publish: bulk converter backlog ---- */

.showhub-app .sh-backlog {
	border: 1px solid var(--sh-line);
	border-radius: 8px;
	overflow: hidden;
}

.showhub-app .sh-backlog-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--sh-line);
	background: var(--sh-paper-2);
}

.showhub-app .sh-backlog-search {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	max-width: 280px;
	color: var(--sh-text-faint);
}

.showhub-app .sh-backlog-search .sh-input {
	min-height: 32px;
}

.showhub-app .sh-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.showhub-app .sh-check input[type="checkbox"] {
	margin: 0;
}

.showhub-app .sh-backlog-list {
	max-height: 320px;
	margin: 0;
	padding: 0;
	overflow: auto;
	list-style: none;
}

.showhub-app .sh-backlog-list li {
	margin: 0;
	border-bottom: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-backlog-list li:last-child {
	border-bottom: 0;
}

.showhub-app .sh-backlog-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 12px;
}

.showhub-app .sh-backlog-row:hover {
	background: var(--sh-paper-2);
}

.showhub-app .sh-backlog-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.showhub-app .sh-backlog-empty {
	padding: 12px;
}

/* ---- Publish: structured data comparison ---- */

.showhub-app .sh-schema-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
	transition: opacity var(--sh-fast) ease;
}

.showhub-app .sh-schema-grid.is-loading {
	opacity: 0.5;
}

.showhub-app .sh-schema-col {
	display: grid;
	gap: 12px;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--sh-line);
	border-radius: 8px;
}

.showhub-app .sh-schema-col.is-in-use {
	border-color: var(--sh-ink);
}

.showhub-app .sh-schema-col-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.showhub-app .sh-schema-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--sh-text-faint);
}

.showhub-app .sh-schema-facts li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.showhub-app .sh-schema-facts li.is-ok {
	color: var(--sh-text);
}

.showhub-app .sh-code {
	max-height: 320px;
	margin: 0;
	padding: 12px;
	overflow: auto;
	border-radius: 6px;
	background: var(--sh-paper-2);
	color: var(--sh-ink);
	font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	white-space: pre;
}

.showhub-app .sh-code-input,
.showhub-app textarea.sh-input.sh-code-input {
	height: 340px;
	min-height: 340px;
	padding: 12px;
	resize: vertical;
	font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	white-space: pre;
}

@media (max-width: 960px) {
	.showhub-app .sh-schema-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- Design: embeds on your site ---- */

.showhub-app .sh-embed-uses {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.showhub-app .sh-embed-uses li {
	margin: 0;
}

.showhub-app .sh-embed-use {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--sh-line-soft);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color var(--sh-fast) ease, background-color var(--sh-fast) ease;
}

.showhub-app .sh-embed-use:hover,
.showhub-app .sh-embed-use:focus-visible {
	border-color: var(--sh-line);
	background: var(--sh-paper-2);
}

.showhub-app .sh-embed-use.is-selected {
	border-color: var(--sh-ink);
}

.showhub-app .sh-embed-use-text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.showhub-app .sh-embed-use-text .sh-faint {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.showhub-app .sh-embed-use-name {
	color: var(--sh-ink);
	font-size: 13.5px;
	font-weight: 650;
}

.showhub-app .sh-embed-use-meta {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 10px;
	color: var(--sh-text-dim);
}

.showhub-app .sh-subhead {
	margin: 0;
	color: var(--sh-ink);
	font-size: 13px;
	font-weight: 700;
}

.showhub-app .sh-places {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-place {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-place-text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.showhub-app .sh-place-title {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.showhub-app .sh-icon-link {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	color: var(--sh-text-dim);
}

.showhub-app .sh-icon-link:hover,
.showhub-app .sh-icon-link:focus-visible {
	background: var(--sh-line-soft);
	color: var(--sh-ink);
}

.showhub-app .sh-embed-modal {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.showhub-app .sh-embed-modal-preview .sh-preview {
	height: 520px;
}

@media (max-width: 960px) {
	.showhub-app .sh-embed-modal {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- Modal ---- */

.showhub-app .sh-modal-overlay {
	position: fixed;
	inset: 0;
	/* Above the WordPress admin bar and menu. */
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: rgb(var(--sh-ink-rgb) / 0.55);
}

.showhub-app .sh-modal {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	max-height: 100%;
	border: 1px solid var(--sh-ink);
	border-radius: 12px;
	background: var(--sh-paper);
	color: var(--sh-text);
	outline: none;
}

.showhub-app .sh-modal-lg {
	max-width: 1080px;
}

.showhub-app .sh-modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px 12px;
	border-bottom: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-modal-title {
	margin: 0 0 2px;
	color: var(--sh-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

.showhub-app .sh-modal-close {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--sh-text-dim);
	cursor: pointer;
}

.showhub-app .sh-modal-close:hover,
.showhub-app .sh-modal-close:focus-visible {
	background: var(--sh-line-soft);
	color: var(--sh-text);
}

.showhub-app .sh-modal-body {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: 18px 20px;
}

.showhub-app .sh-modal-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	padding: 12px 20px;
	border-top: 1px solid var(--sh-line-soft);
}

@media (max-width: 782px) {
	.showhub-app .sh-modal-overlay {
		padding: 0;
	}

	.showhub-app .sh-modal {
		height: 100%;
		border: 0;
		border-radius: 0;
	}
}

/* ---- Wizard ---- */

.showhub-app .sh-steps {
	position: relative;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 8px;
	padding-bottom: 14px;
}

.showhub-app .sh-steps::before,
.showhub-app .sh-steps::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	border-radius: 2px;
}

.showhub-app .sh-steps::before {
	right: 0;
	background: var(--sh-paper-3);
}

.showhub-app .sh-steps::after {
	width: calc((100% - 0px) * (0.18 + 0.82 * var(--sh-step-progress, 0)));
	background: var(--sh-cobalt);
	transition: width 0.3s var(--sh-ease);
}

.showhub-app .sh-step {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--sh-text-faint);
	font-size: 14px;
	font-weight: 600;
}

.showhub-app .sh-step.is-active {
	color: var(--sh-ink);
}

.showhub-app .sh-step .sh-step-num {
	border-color: var(--sh-line-strong);
	color: var(--sh-text-faint);
}

.showhub-app .sh-step.is-active .sh-step-num {
	background: var(--sh-ink);
	border-color: var(--sh-ink);
	color: var(--sh-paper);
}

.showhub-app .sh-step.is-done .sh-step-num {
	background: var(--sh-cobalt);
	border-color: var(--sh-cobalt);
	color: var(--sh-panel);
}

.showhub-app .sh-wizard-foot {
	padding-top: 16px;
	border-top: 1px solid var(--sh-line);
}

.showhub-app .sh-source {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border-radius: 8px;
	border: 1px solid var(--sh-line);
	background: var(--sh-panel);
}

.showhub-app .sh-source-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-stretch: 84%;
	font-weight: 700;
	font-size: 16px;
}

.showhub-app .sh-platform-links {
	margin-top: 16px;
}

.showhub-app .sh-platform-links .is-connected {
	border-color: var(--sh-cobalt);
}

/* ---- Checklist ---- */

.showhub-app .sh-checklist {
	margin-top: 10px;
}

.showhub-app .sh-checklist li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px 0;
	border-top: 1px solid var(--sh-line-soft);
	font-size: 13.5px;
	color: var(--sh-ink);
}

.showhub-app .sh-checklist li:first-child {
	border-top: 0;
}

.showhub-app .sh-checklist li > svg {
	color: var(--sh-text-faint);
}

.showhub-app .sh-checklist-label {
	flex: 1;
	min-width: 0;
}

.showhub-app .sh-checklist li.is-done {
	color: var(--sh-text-faint);
}

.showhub-app .sh-checklist li.is-done .sh-checklist-label {
	text-decoration: line-through;
	text-decoration-color: var(--sh-line-strong);
}

.showhub-app .sh-checklist li.is-done > svg {
	color: var(--sh-cobalt);
}

/* ---- Chart: cobalt line, flat tint, one signal marker ---- */

.showhub-app .sh-chart-head {
	margin-bottom: 16px;
}

.showhub-app .sh-chart {
	display: grid;
	margin-top: 32px;
	grid-template-columns: 44px minmax(0, 1fr);
	grid-template-rows: 240px 24px;
	column-gap: 8px;
}

.showhub-app .sh-chart-y {
	position: relative;
	grid-row: 1;
	grid-column: 1;
}

.showhub-app .sh-chart-y span {
	position: absolute;
	right: 0;
	transform: translateY(-50%);
	font-size: 11px;
	color: var(--sh-text-faint);
}

.showhub-app .sh-chart-plot {
	position: relative;
	grid-row: 1;
	grid-column: 2;
	border-bottom: 1px solid var(--sh-line-strong);
}

.showhub-app .sh-chart-plot svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	animation: sh-wipe 0.3s var(--sh-ease) both;
}

.showhub-app .sh-chart-grid {
	stroke: var(--sh-paper-3);
	stroke-width: 1;
}

.showhub-app .sh-chart-area {
	fill: var(--sh-cobalt);
	fill-opacity: 0.08;
}

.showhub-app .sh-chart-line {
	fill: none;
	stroke: var(--sh-cobalt);
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.showhub-app .sh-chart-peak {
	position: absolute;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 999px;
	background: var(--sh-signal);
	box-shadow: 0 0 0 3px var(--sh-panel);
	animation: sh-pop 0.3s var(--sh-ease) 0.15s both;
}

.showhub-app .sh-chart-peak-label {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	padding: 2px 7px;
	border-radius: 4px;
	background: var(--sh-ink);
	color: var(--sh-paper);
	font-size: 11.5px;
	font-weight: 650;
	white-space: nowrap;
}

.showhub-app .sh-chart-x {
	position: relative;
	grid-row: 2;
	grid-column: 2;
}

.showhub-app .sh-chart-x span {
	position: absolute;
	top: 6px;
	transform: translateX(-50%);
	font-size: 11px;
	color: var(--sh-text-faint);
	white-space: nowrap;
}

.showhub-app .sh-chart-x span:first-child {
	transform: none;
}

.showhub-app .sh-chart-empty {
	padding: 48px 0;
	text-align: center;
}

/* ---- Error boundary ---- */

.showhub-app .sh-crash {
	max-width: 640px;
	margin: 64px auto;
	padding: 32px;
	border-left: 4px solid var(--sh-red);
}

.showhub-app .sh-crash .sh-title {
	margin-top: 8px;
}

.showhub-app .sh-crash-actions {
	margin-top: 20px;
}

.showhub-app .sh-crash pre {
	margin-top: 16px;
	padding: 12px;
	border-radius: 6px;
	background: var(--sh-ink);
	color: var(--sh-paper);
	font-family: var(--sh-mono);
	font-size: 12px;
	white-space: pre-wrap;
	overflow: auto;
	max-height: 200px;
}

/* ---- Movement (all ≤ 0.3s; switched off under reduced motion below) ---- */

/* Screen changes: a short rise. */
.showhub-app .sh-page {
	animation: sh-rise 0.28s var(--sh-ease) both;
}

/* Panels that open: printed in from the top. */
.showhub-app .sh-open {
	animation: sh-print 0.28s var(--sh-ease) both;
}

/* Figures that change settle into place. */
.showhub-app .sh-settle {
	animation: sh-settle 0.3s var(--sh-ease) both;
}

.showhub-app .sh-settle-check {
	animation: sh-pop 0.3s var(--sh-ease) both;
}

@keyframes sh-rise {

	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes sh-print {

	from {
		clip-path: inset(0 0 100% 0);
		transform: translateY(-4px);
	}

	to {
		clip-path: inset(0 0 0 0);
		transform: none;
	}
}

@keyframes sh-wipe {

	from {
		clip-path: inset(0 100% 0 0);
	}

	to {
		clip-path: inset(0 0 0 0);
	}
}

@keyframes sh-settle {

	0% {
		opacity: 0;
		transform: translateY(60%);
	}

	70% {
		opacity: 1;
		transform: translateY(-4%);
	}

	100% {
		transform: none;
	}
}

@keyframes sh-pop {

	0% {
		transform: scale(0.5);
		opacity: 0;
	}

	70% {
		transform: scale(1.12);
		opacity: 1;
	}

	100% {
		transform: none;
	}
}

@keyframes sh-drop {

	from {
		opacity: 0;
		transform: translateY(-6px);
		clip-path: inset(0 0 100% 0);
	}

	to {
		opacity: 1;
		transform: none;
		clip-path: inset(0 0 0 0);
	}
}

@keyframes sh-toast-in {

	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes sh-breathe {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.55;
	}
}

@keyframes sh-spin {

	to {
		transform: rotate(360deg);
	}
}

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

@media (max-width: 1100px) {

	.showhub-app .sh-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.showhub-app .sh-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.showhub-app .sh-with-nav {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	/* The section list becomes a scrollable row of chips above the panels. */
	.showhub-app .sh-side-nav {
		position: static;
		flex-direction: row;
		gap: 6px;
		padding: 0 0 4px;
		border-left: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.showhub-app .sh-side-nav::-webkit-scrollbar {
		display: none;
	}

	.showhub-app .sh-side-indicator {
		display: none;
	}

	.showhub-app .sh-side-link {
		flex-shrink: 0;
		min-height: 36px;
		border: 1px solid var(--sh-line);
		border-radius: 999px;
		background: var(--sh-panel);
	}

	.showhub-app .sh-side-link:hover {
		transform: none;
		border-color: var(--sh-ink);
	}

	.showhub-app .sh-side-link.is-active {
		background: var(--sh-ink);
		border-color: var(--sh-ink);
		color: var(--sh-paper);
	}

	.showhub-app .sh-side-link.is-active .sh-side-link-icon {
		color: var(--sh-paper);
	}

	/* Narrower top bar: search becomes an icon and the sync status just its dot (its text is the tooltip). */
	.showhub-app .sh-search-btn {
		min-width: 36px;
		padding: 0;
		justify-content: center;
	}

	.showhub-app .sh-show-chip-hint {
		display: none;
	}

	/* Screen readers still get the words. */
	.showhub-app .sh-topbar .sh-sync-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.showhub-app .sh-hide-md {
		display: none;
	}
}

/* wp-admin's own mobile breakpoint. */
@media (max-width: 782px) {

	.showhub-app {
		min-height: calc(100vh - 46px);
		font-size: 15px;
	}

	.showhub-app .sh-main {
		padding: 20px 16px 72px;
	}

	/* Two rows: brand, search, bell and account on top; the show picker and sync status below. */
	.showhub-app .sh-topbar {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto auto auto;
		grid-template-areas:
			"brand . search bell account"
			"chip chip chip chip sync";
		gap: 10px 8px;
		padding: 10px 16px 12px;
	}

	.showhub-app .sh-pop-search {
		grid-area: search;
	}

	.showhub-app .sh-pop-bell {
		grid-area: bell;
	}

	/* The second row has room for the sync status again. */
	.showhub-app .sh-topbar .sh-sync-text {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip-path: none;
	}

	.showhub-app .sh-topbar .sh-plan-sticker {
		display: none;
	}

	.showhub-app .sh-pop-panel {
		position: fixed;
		top: 104px;
		right: 16px;
		left: 16px;
		width: auto;
		max-width: none;
	}

	.showhub-app .sh-topbar-left,
	.showhub-app .sh-topbar-right {
		display: contents;
	}

	.showhub-app .sh-topbar-brand {
		grid-area: brand;
		align-self: center;
		border-right: 0;
		padding-right: 0;
	}

	.showhub-app .sh-sync {
		grid-area: sync;
	}

	.showhub-app .sh-account {
		grid-area: account;
	}

	.showhub-app .sh-show-chip {
		grid-area: chip;
		max-width: none;
	}

	.showhub-app .sh-show-chip > svg {
		margin-left: auto;
	}

	.showhub-app .sh-tabs {
		padding: 0 8px;
	}

	.showhub-app .sh-tab {
		min-height: 48px;
	}

	.showhub-app .sh-hide-sm {
		display: none;
	}

	.showhub-app .sh-grid-2,
	.showhub-app .sh-grid-3,
	.showhub-app .sh-facts-2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.showhub-app .sh-facts-2 {
		gap: 14px;
	}

	.showhub-app .sh-title {
		font-size: 28px;
	}

	.showhub-app .sh-btn {
		min-height: 44px;
	}

	.showhub-app .sh-btn-sm {
		min-height: 40px;
	}

	.showhub-app .sh-seg button {
		min-height: 38px;
	}

	.showhub-app .sh-section-head {
		padding: 16px;
	}

	.showhub-app .sh-section-body {
		padding: 4px 16px 16px;
	}

	.showhub-app .sh-card {
		padding: 16px;
	}

	.showhub-app .sh-card-flush {
		padding: 0;
	}

	.showhub-app .sh-card-pad,
	.showhub-app .sh-list-item {
		padding-left: 16px;
		padding-right: 16px;
	}

	.showhub-app .sh-fact {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.showhub-app .sh-fact dt {
		grid-column: 1 / -1;
	}

	.showhub-app .sh-connect {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		min-height: 0;
		padding: 32px 16px 56px;
	}

	.showhub-app .sh-connect-action .sh-btn {
		width: 100%;
	}

	.showhub-app .sh-steps {
		gap: 4px;
	}

	.showhub-app .sh-step {
		font-size: 13px;
		gap: 6px;
	}

	.showhub-app .sh-premium-actions {
		padding-bottom: 0;
	}

	.showhub-app .sh-ep-title {
		max-width: none;
		white-space: normal;
	}

	.showhub-app .sh-toasts {
		right: 16px;
		bottom: 16px;
	}

	.showhub-app .sh-preview {
		height: 480px;
	}
}

@media (max-width: 480px) {

	.showhub-app .sh-grid-4 {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 10px;
	}

	.showhub-app .sh-stat-value {
		font-size: 30px;
	}

	/* Keep the words for screen readers; the dot carries it visually. */
	.showhub-app .sh-sync-text,
	.showhub-app .sh-topbar .sh-sync-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.showhub-app .sh-code {
		flex-direction: column;
	}

	.showhub-app .sh-code-copy {
		min-height: 40px;
		border-left: 0 !important;
		border-top: 1px solid rgb(239 235 227 / 0.16) !important;
	}
}

@media (prefers-reduced-motion: reduce) {

	.showhub-app *,
	.showhub-app *::before,
	.showhub-app *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0s !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---- Dark theme (lib/theme.js sets data-theme on the app root) ---- */

.showhub-app[data-theme="dark"] {
	--sh-ink: #83a7c3;
	--sh-ink-rgb: 131 167 195;
	--sh-ink-2: #97b6ce;
	--sh-paper: #272626;
	--sh-paper-2: #323131;
	--sh-paper-3: #3a3939;
	--sh-panel: #2d2c2c;
	--sh-field: #1d1c1c;
	--sh-signal: #a80000;
	--sh-cobalt: #ffffff;
	--sh-blush: #ffc800;
	--sh-highlight: #ffc800;
	--sh-amber: #ffc800;
	--sh-amber-text: #ffc800;
	--sh-red: #ff6b6b;
	--sh-text-dim: #6f8ca3;
	--sh-text-faint: #5f7485;
	--sh-cobalt-soft: rgb(255 255 255 / 0.1);
	--sh-signal-soft: rgb(168 0 0 / 0.22);
	--sh-amber-soft: rgb(255 200 0 / 0.12);
	--sh-red-soft: rgb(255 107 107 / 0.12);
	color-scheme: dark;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation: none;
	mix-blend-mode: normal;
}

.showhub-app .sh-theme-menu {
	position: relative;
	flex-shrink: 0;
}

.showhub-app .sh-theme-menu-trigger {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--sh-line);
	background: var(--sh-panel);
	color: var(--sh-text);
	cursor: pointer;
	transition: border-color var(--sh-fast) ease, transform var(--sh-fast) ease;
}

.showhub-app .sh-theme-menu-trigger:hover,
.showhub-app .sh-theme-menu-trigger[aria-expanded="true"] {
	border-color: var(--sh-line-strong);
}

.showhub-app .sh-theme-menu-trigger:active {
	transform: scale(0.9);
}

.showhub-app .sh-theme-menu-trigger:focus-visible {
	outline: 2px solid var(--sh-cobalt);
	outline-offset: 2px;
}

.showhub-app .sh-theme-menu-trigger svg {
	animation: sh-theme-icon-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showhub-app .sh-theme-menu-list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 100;
	display: grid;
	gap: 2px;
	min-width: 156px;
	padding: 5px;
	border-radius: 12px;
	border: 1px solid var(--sh-line);
	background: var(--sh-panel);
	box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.45);
	transform-origin: top right;
	animation: sh-theme-menu-in 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.showhub-app .sh-theme-menu-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 34px;
	margin: 0;
	padding: 0 10px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--sh-text-dim);
	font: inherit;
	font-size: 13.5px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: background-color var(--sh-fast) ease, color var(--sh-fast) ease;
}

.showhub-app .sh-theme-menu-option:hover,
.showhub-app .sh-theme-menu-option:focus-visible {
	outline: none;
	color: var(--sh-text);
	background: rgb(var(--sh-ink-rgb) / 0.07);
}

.showhub-app .sh-theme-menu-option[aria-checked="true"] {
	color: #1d1c1c;
	background: var(--sh-highlight);
}

.showhub-app .sh-theme-menu-check {
	margin-left: auto;
}

/* Small screens and touch: bigger, roomier targets. */
@media (max-width: 782px), (pointer: coarse) {
	.showhub-app .sh-theme-menu-trigger {
		width: 44px;
		height: 44px;
	}

	.showhub-app .sh-theme-menu-list {
		gap: 6px;
		min-width: 200px;
		padding: 8px;
		border-radius: 14px;
	}

	.showhub-app .sh-theme-menu-option {
		min-height: 48px;
		gap: 14px;
		padding: 0 14px;
		border-radius: 10px;
		font-size: 16px;
	}

	.showhub-app .sh-theme-menu-option svg {
		width: 18px;
		height: 18px;
	}
}

@keyframes sh-theme-menu-in {
	0% {
		opacity: 0;
		transform: translateY(-4px) scale(0.96);
	}
	100% {
		opacity: 1;
		transform: none;
	}
}

@keyframes sh-theme-icon-pop {
	0% {
		transform: rotate(-90deg) scale(0.4);
	}
	100% {
		transform: rotate(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.showhub-app .sh-theme-menu-trigger svg,
	.showhub-app .sh-theme-menu-list {
		animation: none;
	}
}

/* ---- Episodes: toolbar, list or grid, bulk bar, episode panel ---- */
/* Same layout as the dashboard's episode list. */

.showhub-app .sh-ep-toolbar {
	padding: 10px;
}

.showhub-app .sh-ep-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.showhub-app .sh-ep-search {
	flex: 1 1 240px;
	min-width: 0;
}

.showhub-app .sh-ep-tools .sh-input,
.showhub-app .sh-ep-search .sh-input {
	min-height: 36px;
	font-size: 13px;
}

.showhub-app .sh-ep-search .sh-input {
	background-color: var(--sh-field);
}

.showhub-app select.sh-input.sh-ep-select {
	width: auto;
	flex: 0 0 auto;
}

.showhub-app .sh-ep-more.is-on {
	border-color: var(--sh-ink);
}

.showhub-app .sh-ep-views {
	display: inline-flex;
	padding: 2px;
	border: 1px solid var(--sh-line);
	border-radius: 6px;
}

.showhub-app .sh-ep-views button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 30px;
	border-radius: 4px;
	color: var(--sh-text-dim);
	transition:
		background-color var(--sh-fast) ease,
		color var(--sh-fast) ease;
}

.showhub-app .sh-ep-views button:hover {
	color: var(--sh-ink);
}

.showhub-app .sh-ep-views button[aria-pressed="true"] {
	background: var(--sh-ink);
	color: var(--sh-paper);
}

.showhub-app .sh-ep-more-panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-ep-label {
	display: block;
	margin-bottom: 6px;
	color: var(--sh-text-dim);
	font-stretch: 118%;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.showhub-app .sh-ep-range {
	color: var(--sh-ink);
	letter-spacing: 0;
	text-transform: none;
	font-variant-numeric: tabular-nums;
}

.showhub-app .sh-ep-dates .sh-input {
	min-width: 0;
	flex: 1 1 0;
}

.showhub-app .sh-range {
	display: block;
	width: 100%;
	margin: 4px 0;
	accent-color: var(--sh-cobalt);
}

.showhub-app .sh-ep-showing {
	gap: 12px;
	margin-top: 8px;
	padding: 0 4px;
}

/* Bulk bar: shows when episodes are ticked, sticks under the admin bar. */
.showhub-app .sh-ep-bulk {
	position: sticky;
	top: 40px;
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid var(--sh-ink);
	border-radius: 8px;
	background: var(--sh-panel);
	font-size: 13px;
	animation: sh-ep-drop var(--sh-med) var(--sh-ease);
}

.showhub-app .sh-ep-bulk-gap {
	flex: 1;
}

@keyframes sh-ep-drop {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

/* List rows share one grid with the header. */
.showhub-app .sh-ep-row {
	--sh-ep-cols: auto 56px minmax(0, 1fr) 120px 140px 110px 64px 64px;
	display: grid;
	grid-template-columns: var(--sh-ep-cols);
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	border-bottom: 1px solid var(--sh-line-soft);
	font-size: 13px;
	box-shadow: inset 0 0 0 0 var(--sh-signal);
	transition:
		background-color var(--sh-fast) ease,
		box-shadow var(--sh-med) var(--sh-ease);
}

.showhub-app .sh-ep-row:last-child {
	border-bottom: 0;
}

.showhub-app .sh-ep-row:not(.sh-ep-head) {
	cursor: pointer;
	outline: none;
}

.showhub-app .sh-ep-row:not(.sh-ep-head):hover,
.showhub-app .sh-ep-row:not(.sh-ep-head):focus-visible {
	background: rgb(var(--sh-ink-rgb) / 0.04);
	box-shadow: inset 3px 0 0 0 var(--sh-signal);
}

.showhub-app .sh-ep-row.is-selected {
	background: var(--sh-cobalt-soft);
}

.showhub-app .sh-ep-head {
	padding-top: 9px;
	padding-bottom: 9px;
	border-bottom-color: var(--sh-line);
	background: var(--sh-paper);
	color: var(--sh-text-dim);
	font-stretch: 118%;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.showhub-app .sh-ep-row .is-num {
	text-align: right;
}

.showhub-app .sh-ep-col-switch {
	display: flex;
	justify-content: flex-end;
}

.showhub-app .sh-ep-check {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.showhub-app .sh-ep-check input[type="checkbox"] {
	margin: 0;
	accent-color: var(--sh-ink);
}

.showhub-app .sh-ep-thumb {
	display: block;
	width: 56px;
	height: 40px;
	border: 1px solid var(--sh-line-soft);
	border-radius: 4px;
	object-fit: cover;
	background: var(--sh-paper-2);
}

.showhub-app .sh-ep-main {
	min-width: 0;
}

.showhub-app .sh-ep-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 650;
	font-size: 13.5px;
	color: var(--sh-ink);
}

.showhub-app .sh-ep-row.is-hidden .sh-ep-name {
	color: var(--sh-text-faint);
}

.showhub-app .sh-ep-sub {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11.5px;
	color: var(--sh-text-faint);
}

.showhub-app .sh-ep-mobile-meta {
	display: none;
}

.showhub-app .sh-ep-len {
	font-weight: 600;
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

.showhub-app .sh-ep-col-date {
	font-size: 12px;
}

.showhub-app .sh-ep-pills {
	gap: 4px;
	flex-wrap: nowrap;
}

.showhub-app .sh-ep-source {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	font-size: 12px;
	color: var(--sh-text-dim);
	white-space: nowrap;
}

.showhub-app .sh-ep-source-dot {
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	border-radius: 2px;
	background: var(--sh-text-faint);
}

/* A merged episode: one chip per source, a toggle for its copies, and the copies as quieter rows under it. */
.showhub-app .sh-ep-sources {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	min-width: 0;
}

.showhub-app .sh-ep-copies-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 2px;
	font-size: 11.5px;
}

.showhub-app .sh-ep-copies-chevron {
	transition: transform var(--sh-fast) ease;
}

.showhub-app .sh-ep-copies-chevron.is-open {
	transform: rotate(180deg);
}

.showhub-app .sh-ep-row.is-copy {
	background: var(--sh-paper);
}

.showhub-app .sh-ep-row.is-copy .sh-ep-thumb {
	opacity: 0.7;
}

.showhub-app .sh-ep-row.is-copy .sh-ep-name {
	font-weight: 500;
	color: var(--sh-text-dim);
}

.showhub-app .sh-ep-merge {
	gap: 8px;
}

.showhub-app .sh-ep-merge .sh-btn {
	gap: 6px;
}

.showhub-app .sh-ep-merge-mode {
	font-size: 12px;
	white-space: nowrap;
}

/* Platform colors, as on the dashboard's source icons. */
.showhub-app .sh-ep-source.is-youtube .sh-ep-source-dot {
	background: #f00;
}

.showhub-app .sh-ep-source.is-rss .sh-ep-source-dot {
	background: #fa9b39;
}

.showhub-app .sh-ep-source.is-spotify .sh-ep-source-dot {
	background: #1db954;
}

.showhub-app .sh-ep-source.is-tiktok .sh-ep-source-dot {
	background: #25f4ee;
}

.showhub-app .sh-ep-source.is-twitch .sh-ep-source-dot {
	background: #9146ff;
}

.showhub-app .sh-ep-source.is-kick .sh-ep-source-dot {
	background: #53fc18;
}

.showhub-app .sh-ep-source.is-instagram .sh-ep-source-dot {
	background: #e4405f;
}

.showhub-app .sh-ep-source.is-soundcloud .sh-ep-source-dot {
	background: #f50;
}

.showhub-app .sh-ep-source.is-x .sh-ep-source-dot {
	background: var(--sh-ink);
}

/* Grid view. */
.showhub-app .sh-ep-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.showhub-app .sh-ep-card {
	overflow: hidden;
	border: 1px solid var(--sh-line);
	border-radius: 8px;
	background: var(--sh-panel);
	cursor: pointer;
	outline: none;
	transition:
		border-color var(--sh-fast) ease,
		transform var(--sh-med) var(--sh-ease);
}

.showhub-app .sh-ep-card:hover,
.showhub-app .sh-ep-card:focus-visible {
	border-color: var(--sh-ink);
	transform: translateY(-2px);
}

.showhub-app .sh-ep-card.is-selected {
	border-color: var(--sh-cobalt);
	box-shadow: 0 0 0 1px var(--sh-cobalt);
}

.showhub-app .sh-ep-card-art {
	position: relative;
	border-bottom: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-ep-thumb.is-card {
	width: 100%;
	height: 144px;
	border: 0;
	border-radius: 0;
}

.showhub-app .sh-ep-card.is-hidden .sh-ep-thumb.is-card {
	opacity: 0.55;
}

.showhub-app .sh-ep-card-art .sh-ep-check {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 4px;
	border-radius: 4px;
	background: var(--sh-panel);
}

.showhub-app .sh-ep-card-body {
	display: grid;
	gap: 8px;
	padding: 12px;
}

.showhub-app .sh-ep-card-title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-weight: 650;
	font-size: 13.5px;
	line-height: 1.35;
	color: var(--sh-ink);
}

.showhub-app .sh-ep-card-meta {
	gap: 8px;
}

/* Episode panel: slides in from the right, under the wp-admin bar. */
.showhub-app .sh-sheet-layer {
	position: fixed;
	inset: 32px 0 0 0;
	z-index: 99990;
	display: flex;
	justify-content: flex-end;
}

.showhub-app .sh-sheet-scrim {
	position: absolute;
	inset: 0;
	width: 100%;
	border: 0;
	background: rgb(2 33 57 / 0.32);
	cursor: default;
	animation: sh-sheet-fade var(--sh-med) ease;
}

.showhub-app .sh-sheet {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(560px, 100%);
	height: 100%;
	border-left: 1px solid var(--sh-line);
	background: var(--sh-panel);
	box-shadow: -16px 0 40px rgb(2 33 57 / 0.16);
	animation: sh-sheet-in 0.32s var(--sh-ease);
}

@keyframes sh-sheet-in {
	from {
		transform: translateX(32px);
		opacity: 0;
	}
}

@keyframes sh-sheet-fade {
	from {
		opacity: 0;
	}
}

.showhub-app .sh-sheet-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--sh-line);
}

.showhub-app .sh-ep-thumb.is-sheet {
	width: 80px;
	height: 52px;
	flex-shrink: 0;
}

.showhub-app .sh-sheet-title {
	flex: 1;
	min-width: 0;
}

.showhub-app .sh-sheet-title h2 {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	margin-top: 4px;
	font-stretch: 108%;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--sh-ink);
}

.showhub-app .sh-sheet-meta {
	gap: 10px;
	margin-top: 8px;
}

.showhub-app .sh-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 6px;
	color: var(--sh-text-dim);
	transition:
		background-color var(--sh-fast) ease,
		color var(--sh-fast) ease;
}

.showhub-app .sh-icon-btn:hover {
	background: var(--sh-paper-2);
	color: var(--sh-ink);
}

.showhub-app .sh-sheet-body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 20px;
}

/* The episode panel's facts: cells stretch to fill each row, so a short last row leaves no empty cell.
   Scoped to the panel: the Overview's facts list (.sh-fact rows) has its own layout. */
.showhub-app .sh-sheet-body .sh-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--sh-line);
	border-radius: 6px;
	background: var(--sh-line);
}

.showhub-app .sh-sheet-body .sh-facts > div {
	flex: 1 1 140px;
	padding: 10px 12px;
	background: var(--sh-panel);
}

.showhub-app .sh-sheet-body .sh-facts dt {
	color: var(--sh-text-dim);
	font-stretch: 118%;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.showhub-app .sh-sheet-body .sh-facts dd {
	margin: 2px 0 0;
	font-weight: 600;
	font-size: 13.5px;
	color: var(--sh-ink);
}

.showhub-app .sh-sheet-desc {
	margin-top: 16px;
	font-size: 13.5px;
	color: var(--sh-text-dim);
	white-space: pre-line;
}

.showhub-app .sh-sheet-section {
	margin-top: 18px;
	padding-top: 6px;
	border-top: 1px solid var(--sh-line);
}

.showhub-app .sh-sheet-section .sh-toggle-row:first-child {
	padding-top: 14px;
}

.showhub-app .sh-sheet .sh-premium-actions {
	margin-top: 12px;
	padding-bottom: 8px;
}

.showhub-app .sh-sheet-links {
	gap: 18px;
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--sh-line-soft);
}

.showhub-app .sh-sheet-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	flex-wrap: wrap;
	padding: 14px 20px;
	border-top: 1px solid var(--sh-line);
	background: var(--sh-paper);
}

.showhub-app .sh-sheet-foot .sh-help {
	flex: 1 1 220px;
}

.showhub-app[data-theme="dark"] .sh-sheet-scrim {
	background: rgb(0 0 0 / 0.5);
}

@media (max-width: 1100px) {

	.showhub-app .sh-ep-row {
		--sh-ep-cols: auto 56px minmax(0, 1fr) 140px 64px 64px;
	}

	.showhub-app .sh-ep-row .sh-ep-col-source,
	.showhub-app .sh-ep-row .sh-ep-col-date {
		display: none;
	}
}

@media (max-width: 782px) {

	.showhub-app .sh-sheet-layer {
		top: 46px;
	}

	.showhub-app .sh-ep-more-panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.showhub-app .sh-ep-bulk {
		top: 54px;
	}

	.showhub-app .sh-ep-head {
		display: none;
	}

	/* Rows fold to checkbox, art, title (with status and date), switch. */
	.showhub-app .sh-ep-row {
		--sh-ep-cols: auto 48px minmax(0, 1fr) auto;
		gap: 10px;
		padding: 10px 12px;
	}

	.showhub-app .sh-ep-row .sh-ep-col-status,
	.showhub-app .sh-ep-row .is-num {
		display: none;
	}

	.showhub-app .sh-ep-mobile-meta {
		display: flex;
		gap: 8px;
		margin-top: 4px;
	}

	.showhub-app .sh-ep-sub {
		display: none;
	}
}

@media (max-width: 480px) {

	.showhub-app .sh-ep-tools .sh-ep-select {
		flex: 1 1 40%;
	}

	.showhub-app .sh-sheet .sh-grid-2 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {

	.showhub-app .sh-sheet,
	.showhub-app .sh-sheet-scrim,
	.showhub-app .sh-ep-bulk {
		animation: none;
	}

	.showhub-app .sh-ep-card:hover,
	.showhub-app .sh-ep-card:focus-visible {
		transform: none;
	}
}

/* ---- Theme studio (Design): controls from ShowHub, preview from ShowHub's theme engine ---- */

.showhub-app .sh-st {
	display: grid;
	grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.5fr);
	gap: 24px;
	align-items: start;
}

.showhub-app .sh-st-controls {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.showhub-app .sh-st-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--sh-line);
}

.showhub-app .sh-st-block:first-child {
	padding-top: 0;
	border-top: 0;
}

.showhub-app .sh-st-h {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--sh-text);
}

.showhub-app .sh-st-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.showhub-app .sh-st-chip {
	padding: 4px 10px;
	border: 1px solid var(--sh-line-strong);
	border-radius: 6px;
	background: var(--sh-field);
	color: var(--sh-text-dim);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.showhub-app .sh-st-chip[aria-pressed="true"] {
	border-color: var(--sh-ink);
	background: var(--sh-ink);
	color: var(--sh-paper);
}

.showhub-app .sh-st-themes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
	max-height: 340px;
	margin: 0;
	padding: 2px;
	overflow-y: auto;
	list-style: none;
}

.showhub-app .sh-st-theme {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	height: 100%;
	padding: 10px;
	border: 1px solid var(--sh-line);
	border-radius: 8px;
	background: var(--sh-field);
	color: var(--sh-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.showhub-app .sh-st-theme:hover {
	border-color: var(--sh-line-strong);
}

.showhub-app .sh-st-theme.is-selected {
	border-color: var(--sh-ink);
	box-shadow: inset 0 0 0 1px var(--sh-ink);
}

.showhub-app .sh-st-theme-name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 13px;
}

.showhub-app .sh-st-theme-for {
	color: var(--sh-text-dim);
	font-size: 12px;
	line-height: 1.4;
}

.showhub-app .sh-st-theme-lock {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--sh-text-faint);
	font-size: 11px;
}

.showhub-app .sh-st-toggle {
	padding: 0;
	border: 0;
}

.showhub-app .sh-st-swatch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px 5px 6px;
	border: 1px solid var(--sh-line-strong);
	border-radius: 6px;
	background: var(--sh-field);
	color: var(--sh-text);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.showhub-app .sh-st-swatch::before {
	content: "";
	width: 18px;
	height: 18px;
	border-radius: 4px;
	background: var(--sw, #8c2f39);
}

.showhub-app .sh-st-swatch[aria-pressed="true"] {
	border-color: var(--sh-ink);
	box-shadow: inset 0 0 0 1px var(--sh-ink);
}

.showhub-app .sh-st-sections {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.showhub-app .sh-st-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 8px;
	border: 1px solid var(--sh-line-soft);
	border-radius: 6px;
	background: var(--sh-field);
}

.showhub-app .sh-st-section.is-off .sh-st-section-name {
	color: var(--sh-text-faint);
	text-decoration: line-through;
}

.showhub-app .sh-st-section-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-size: 13px;
}

.showhub-app .sh-st-section-text .sh-faint {
	font-size: 11px;
}

.showhub-app .sh-st-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid var(--sh-line);
}

.showhub-app .sh-st-actions .sh-help {
	flex-basis: 100%;
	margin: 0;
}

.showhub-app .sh-st-stage {
	position: sticky;
	top: 48px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.showhub-app .sh-st-stage-head {
	flex-wrap: wrap;
	gap: 10px;
}

.showhub-app .sh-st-ep {
	max-width: 280px;
}

.showhub-app .sh-st-plan-note {
	margin: 0;
	padding: 8px 10px;
	border-left: 3px solid var(--sh-cobalt);
	background: var(--sh-cobalt-soft);
	color: var(--sh-text);
	font-size: 12px;
}

.showhub-app .sh-st-preview {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--sh-line-strong);
	border-radius: 8px;
	background: #fff;
}

.showhub-app .sh-st-preview iframe {
	display: block;
	width: 100%;
	height: 640px;
	border: 0;
}

.showhub-app .sh-st-preview.is-loading iframe {
	opacity: 0.4;
}

.showhub-app .sh-st-preview-note {
	margin: 0;
	padding: 10px 12px;
	border-bottom: 1px solid var(--sh-line);
	background: var(--sh-paper);
}

@media (max-width: 1100px) {
	.showhub-app .sh-st {
		grid-template-columns: minmax(0, 1fr);
	}

	.showhub-app .sh-st-stage {
		position: static;
	}

	.showhub-app .sh-st-preview iframe {
		height: 520px;
	}
}


/* ---- Settings → Plans (the table ShowHub sends) and Overview's one-line highlight ---- */

.showhub-app .sh-plans-wrap {
	overflow-x: auto;
}

.showhub-app .sh-plans {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.showhub-app .sh-plans th,
.showhub-app .sh-plans td {
	padding: 9px 10px;
	border-bottom: 1px solid var(--sh-line-soft);
	text-align: center;
	vertical-align: middle;
}

.showhub-app .sh-plans thead th {
	border-bottom: 1px solid var(--sh-line-strong);
	font-weight: 700;
	white-space: nowrap;
}

.showhub-app .sh-plans tbody th {
	font-weight: 500;
	text-align: left;
}

.showhub-app .sh-plans .is-current {
	background: var(--sh-cobalt-soft);
}

.showhub-app .sh-plans-yours {
	display: block;
	color: var(--sh-text-dim);
	font-size: 11px;
	font-weight: 500;
}

.showhub-app .sh-plans-note {
	display: block;
	margin-top: 2px;
	color: var(--sh-text-faint);
	font-size: 11.5px;
	font-weight: 400;
}

.showhub-app .sh-highlight {
	margin: 0;
	padding: 10px 12px;
	border-left: 3px solid var(--sh-ink);
	background: var(--sh-panel);
	font-size: 13px;
}
