/**
 * Manager frontend (Center Court) — Janova design system.
 */

.jsd-app,
dialog.jsd-info-dialog,
dialog.jsd-cred-dialog,
dialog.jsd-confirm-dialog,
dialog.jsd-form-dialog {
	--jsd-ink: #111826;
	--jsd-navy: #031d44;
	--jsd-muted: #64748a;
	--jsd-muted-2: #475568;
	--jsd-line: #cbd5e0;
	--jsd-paper: #f1f5f9;
	--jsd-surface: #ffffff;
	--jsd-action: #5eead4;
	--jsd-action-text: #111826;
	--jsd-accent: #1c448e;
	--jsd-label-bg: #ccfbf1;
	--jsd-label-text: #134e4a;
	--jsd-rose: #e11d48;
	--jsd-rose-bg: #ffe4e6;
	--jsd-radius: 14px;
	--jsd-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

.jsd-app {
	font-family: var(--jsd-font);
	color: var(--jsd-ink);
	max-width: 920px;
	margin: 0 auto;
	padding: 1.5rem 1.25rem 3rem;
	background: var(--jsd-paper);
	border-radius: 24px;
	letter-spacing: -0.01em;
}

.jsd-app__header {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
	margin-bottom: 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--jsd-line);
}

.jsd-app__header-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}

.jsd-app__identity {
	min-width: 0;
}

.jsd-app__header-actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}

.jsd-app__help {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	height: 2.5rem;
	padding: 0 0.75rem 0 0.55rem;
	border-radius: var(--jsd-radius);
	color: var(--jsd-navy);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}

.jsd-app__help:hover {
	background: var(--jsd-surface);
	color: var(--jsd-navy);
}

.jsd-app__help.is-active {
	background: var(--jsd-surface);
	color: var(--jsd-navy);
}

.jsd-app__help-icon {
	display: inline-flex;
	color: var(--jsd-muted);
}

.jsd-app__help:hover .jsd-app__help-icon,
.jsd-app__help.is-active .jsd-app__help-icon {
	color: var(--jsd-navy);
}

.jsd-account-menu {
	position: relative;
}

.jsd-account-menu__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: var(--jsd-radius);
	background: transparent;
	color: var(--jsd-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.jsd-account-menu__toggle:hover,
.jsd-account-menu__toggle[aria-expanded="true"],
.jsd-account-menu__toggle.is-active {
	background: var(--jsd-surface);
	color: var(--jsd-navy);
}

.jsd-account-menu__panel {
	position: absolute;
	top: calc(100% + 0.35rem);
	right: 0;
	z-index: 40;
	min-width: 16.5rem;
	max-width: min(22rem, calc(100vw - 1.5rem));
	padding: 0.35rem;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--jsd-line, #cbd5e0);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.jsd-account-menu__panel[hidden] {
	display: none !important;
}

.jsd-account-menu__profile {
	padding: 0.55rem 0.75rem 0.45rem;
}

.jsd-account-menu__hello {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--jsd-navy);
	letter-spacing: -0.02em;
	line-height: 1.25;
	word-break: break-word;
}

.jsd-account-menu__email {
	margin: 0.2rem 0 0;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--jsd-muted);
	line-height: 1.35;
	word-break: break-word;
}

.jsd-account-menu__item {
	display: block;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	text-align: left;
	text-decoration: none;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--jsd-navy);
	cursor: pointer;
	white-space: nowrap;
}

.jsd-account-menu__item:hover,
.jsd-account-menu__item.is-active {
	background: rgba(3, 29, 68, 0.06);
}

.jsd-account-menu__item--danger {
	color: #991b1b;
}

.jsd-account-menu__sep {
	height: 1px;
	margin: 0.3rem 0.4rem;
	background: var(--jsd-line, #e2e8f0);
}

.jsd-club-hero {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	background: var(--jsd-surface);
	border: 1px solid var(--jsd-line);
	border-radius: var(--jsd-radius);
}

.jsd-club-hero__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--jsd-navy);
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.jsd-club-hero__note {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: var(--jsd-muted);
}

.jsd-club-card {
	margin: 0 0 1rem;
	padding: 1rem 1.1rem;
	background: var(--jsd-surface);
	border: 1px solid var(--jsd-line);
	border-radius: var(--jsd-radius);
}

.jsd-club-card__title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--jsd-navy);
	letter-spacing: -0.02em;
}

.jsd-club-facts {
	margin: 0 0 0.75rem;
	display: grid;
	gap: 0.55rem;
}

.jsd-club-facts__row {
	display: grid;
	grid-template-columns: minmax(8rem, 12rem) 1fr;
	gap: 0.5rem 1rem;
	align-items: baseline;
}

.jsd-club-facts__row dt {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--jsd-muted);
}

.jsd-club-facts__row dd {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--jsd-navy);
	word-break: break-word;
}

.jsd-club-managers {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	gap: 0.55rem;
}

.jsd-club-managers__item {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--jsd-line);
}

.jsd-club-managers__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.jsd-club-managers__name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--jsd-navy);
}

.jsd-club-managers__you {
	font-weight: 500;
	color: var(--jsd-muted);
}

.jsd-club-managers__email {
	font-size: 0.8125rem;
	color: var(--jsd-muted);
	word-break: break-word;
}

.jsd-club-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.jsd-club-link {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem 1.1rem;
	border-radius: var(--jsd-radius);
	border: 1.5px solid var(--jsd-line);
	background: var(--jsd-surface);
	text-decoration: none !important;
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.jsd-club-link:hover {
	border-color: var(--jsd-muted);
	background: #fff;
}

.jsd-club-link__title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--jsd-navy);
}

.jsd-club-link__text {
	font-size: 0.8125rem;
	color: var(--jsd-muted);
	line-height: 1.35;
}

.jsd-app__brand {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-size: 0.8125rem;
	letter-spacing: -0.02em;
	text-transform: none;
	font-weight: 600;
	color: var(--jsd-navy);
}

.jsd-app__brand-logo {
	display: block;
	width: 7.5rem;
	height: auto;
	flex-shrink: 0;
}

.jsd-app__brand-text {
	line-height: 1;
	color: var(--jsd-muted);
	font-weight: 500;
}

.jsd-app__club {
	margin: 0.2rem 0 0;
	font-size: clamp(1.75rem, 3.2vw, 2.125rem);
	line-height: 1.1;
	font-weight: 700;
	color: var(--jsd-navy);
	letter-spacing: -0.03em;
}

.jsd-club-switcher {
	position: relative;
	display: inline-flex;
	max-width: 100%;
}

.jsd-club-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	max-width: 100%;
	margin: 0;
	padding: 0.15rem 0.35rem 0.15rem 0;
	border: 0;
	border-radius: var(--jsd-radius);
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-align: left;
}

.jsd-club-switcher__toggle:hover,
.jsd-club-switcher__toggle[aria-expanded="true"] {
	background: rgba(3, 29, 68, 0.04);
}

.jsd-club-switcher__name {
	margin: 0.2rem 0 0;
}

.jsd-club-switcher__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin-top: 0.35rem;
	color: var(--jsd-muted);
	transition: transform 0.15s ease, color 0.15s ease;
}

.jsd-club-switcher__toggle:hover .jsd-club-switcher__chevron,
.jsd-club-switcher__toggle[aria-expanded="true"] .jsd-club-switcher__chevron {
	color: var(--jsd-navy);
}

.jsd-club-switcher__toggle[aria-expanded="true"] .jsd-club-switcher__chevron {
	transform: rotate(180deg);
}

.jsd-club-switcher__panel {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	z-index: 40;
	min-width: min(18rem, calc(100vw - 1.5rem));
	max-width: min(26rem, calc(100vw - 1.5rem));
	max-height: min(20rem, 50vh);
	overflow-y: auto;
	padding: 0.35rem;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--jsd-line, #cbd5e0);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.jsd-club-switcher__panel[hidden] {
	display: none !important;
}

.jsd-club-switcher__item {
	display: block;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	text-align: left;
	text-decoration: none;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--jsd-navy);
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jsd-club-switcher__item:hover,
.jsd-club-switcher__item.is-active {
	background: rgba(3, 29, 68, 0.06);
}

.jsd-app__nav,
.jsd-nav,
.jsd-tabs {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.3rem;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.jsd-app__nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	flex: 1 1 0;
	min-width: 0;
	min-height: 2.4rem;
	padding: 0.45rem 0.55rem;
	border-radius: var(--jsd-radius);
	border: 1.5px solid var(--jsd-line);
	background: var(--jsd-surface);
	color: var(--jsd-ink);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.2;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jsd-app__nav-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jsd-app__nav-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
}

.jsd-app__nav-link.is-active .jsd-app__nav-badge {
	background: var(--jsd-navy);
	color: #fff;
}

.jsd-app__nav-link:hover {
	border-color: var(--jsd-muted);
	color: var(--jsd-navy);
}

.jsd-app__nav-link.is-active {
	background: var(--jsd-action);
	border-color: var(--jsd-action);
	color: var(--jsd-action-text);
}

.jsd-app__section-title {
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--jsd-navy);
	letter-spacing: -0.02em;
}

.jsd-app__heading {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-width: 0;
	line-height: 1;
}

.jsd-app .jsd-app__heading .jsd-app__section-title {
	margin: 0;
	padding: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--jsd-navy);
	letter-spacing: -0.02em;
}

.jsd-app .jsd-app__heading-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 1.4rem;
	height: 1.4rem;
	flex: 0 0 1.4rem;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--jsd-muted);
	cursor: pointer;
	line-height: 0;
	/* Lift so the circle sits on the visual mid of the caps. */
	position: relative;
	top: -0.08em;
	transition: background 0.15s ease, color 0.15s ease;
}

.jsd-app .jsd-app__heading-info .jsd-icon {
	display: block;
	width: 1.4rem;
	height: 1.4rem;
}

.jsd-app .jsd-app__heading-info:hover {
	background: rgba(3, 29, 68, 0.08);
	color: var(--jsd-navy);
}

.jsd-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1rem;
}

.jsd-filter label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--jsd-muted);
}

.jsd-filter select {
	min-width: 12rem;
	max-width: 100%;
}

.jsd-select {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
}

.jsd-filter .jsd-select {
	min-width: 12rem;
	max-width: 100%;
	width: auto;
}

.jsd-select__native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.jsd-select__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	min-height: 3.25rem;
	padding: 0.85rem 2.75rem 0.85rem 1rem;
	border: 1px solid var(--jsd-line);
	border-radius: var(--jsd-radius);
	background-color: var(--jsd-surface);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23031d44' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 1.05rem;
	color: var(--jsd-ink);
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.25;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	box-shadow: none;
	box-sizing: border-box;
}

.jsd-filter .jsd-select__button {
	min-height: 2.5rem;
	padding: 0.55rem 2.25rem 0.55rem 0.75rem;
	font-size: 0.9375rem;
	background-position: right 0.7rem center;
	background-size: 1rem;
}

.jsd-form-dialog .jsd-select__button,
.jsd-form-dialog .jsd-select--compact .jsd-select__button {
	min-height: 3.15rem;
	padding: 0.75rem 2.5rem 0.75rem 0.85rem;
	font-size: 1.0625rem;
	background-position: right 0.75rem center;
}

.jsd-select--compact .jsd-select__button {
	min-height: 3.25rem;
	padding: 0.85rem 2.25rem 0.85rem 0.85rem;
	font-size: 1.0625rem;
	background-position: right 0.7rem center;
}

.jsd-select__button.is-placeholder {
	color: var(--jsd-muted);
}

.jsd-select__button:focus-visible {
	outline: none;
	border-color: var(--jsd-line);
	box-shadow: 0 0 0 1px var(--jsd-line);
}

.jsd-select.is-open .jsd-select__button {
	border-color: var(--jsd-navy);
}

.jsd-select__panel {
	position: absolute;
	z-index: 80;
	top: calc(100% + 0.3rem);
	left: 0;
	right: auto;
	min-width: 100%;
	width: max-content;
	max-width: min(28rem, calc(100vw - 2rem));
	margin: 0;
	padding: 0.25rem 0;
	list-style: none;
	background: var(--jsd-surface);
	border: 1px solid var(--jsd-line);
	border-radius: var(--jsd-radius);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
	max-height: 16rem;
	overflow: auto;
}

.jsd-select.is-up .jsd-select__panel {
	top: auto;
	bottom: calc(100% + 0.3rem);
}

.jsd-select__option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1rem;
	border-radius: 0;
	color: var(--jsd-navy);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	white-space: nowrap;
	cursor: pointer;
}

.jsd-select__option:hover,
.jsd-select__option:focus {
	background: var(--jsd-paper);
	color: var(--jsd-navy);
}

.jsd-select__option.is-selected {
	background: var(--jsd-label-bg);
	color: var(--jsd-label-text);
}

.jsd-select__option.is-selected::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--jsd-action);
	flex-shrink: 0;
}

.jsd-select__option.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.jsd-form__time .jsd-select {
	flex: 1 1 0;
	min-width: 6.5rem;
}

.jsd-app__note {
	color: var(--jsd-muted);
	margin: 0.5rem 0;
	font-size: 0.9375rem;
}

.jsd-app__note a {
	color: var(--jsd-accent);
	font-weight: 600;
	text-decoration: none;
}

.jsd-app__note a:hover {
	text-decoration: underline;
}

.jsd-app__back {
	margin: 0;
}

.jsd-app__back a {
	color: var(--jsd-muted);
	text-decoration: none;
	font-weight: 500;
}

.jsd-app__back a:hover {
	color: var(--jsd-navy);
}

.jsd-app__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-bottom: 1.25rem;
}

.jsd-app__toolbar-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	line-height: 0;
}

.jsd-section-divider {
	border: 0;
	border-top: 1px solid var(--jsd-line);
	margin: 0 0 1.25rem;
}

.jsd-app__gate {
	padding: 1.5rem 0 2rem;
	display: flex;
	justify-content: center;
}

.jsd-app--gate .jsd-app__gate {
	justify-content: stretch;
}

.jsd-app--gate .jsd-login {
	max-width: 26rem;
	margin: 0 auto;
}

.jsd-app__header--gate {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 0.5rem;
	align-items: center;
}

.jsd-app__header--gate .jsd-app__brand {
	justify-content: center;
	width: 100%;
}

.jsd-app__gate h1,
.jsd-login__title {
	margin: 0 0 0.4rem;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--jsd-navy);
	letter-spacing: -0.03em;
	text-align: center;
}

.jsd-login {
	width: 100%;
	max-width: 26rem;
}

.jsd-login__lead {
	margin: 0 0 1.25rem;
	color: var(--jsd-muted);
	font-size: 0.9375rem;
	line-height: 1.45;
	text-align: center;
}

.jsd-login__form {
	margin: 0 0 1rem;
}

.jsd-login__password {
	position: relative;
	display: block;
	width: 100%;
}

.jsd-login__password input {
	width: 100%;
	padding-right: 3rem;
	box-sizing: border-box;
}

.jsd-login__toggle {
	position: absolute;
	top: 50%;
	right: 0.55rem;
	left: auto;
	bottom: auto;
	z-index: 2;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--jsd-muted);
	cursor: pointer;
	line-height: 0;
}

.jsd-login__toggle:hover {
	color: var(--jsd-navy);
	background: var(--jsd-paper);
}

.jsd-login__toggle .jsd-icon {
	display: block;
}

.jsd-login__submit {
	width: 100%;
	min-height: 3.25rem;
}

.jsd-login__lost {
	margin: 0;
	text-align: center;
	font-size: 0.875rem;
}

.jsd-login__lost a {
	color: var(--jsd-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.jsd-login__lost a:hover {
	color: var(--jsd-navy);
}

/* JanovaSwitch (Flutter: teal active / blueGray inactive) */
.jsd-switch {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	user-select: none;
}

.jsd-switch__label {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--jsd-navy);
	letter-spacing: -0.03em;
}

.jsd-switch__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.jsd-switch__track {
	position: relative;
	flex-shrink: 0;
	width: 3.25rem;
	height: 1.9rem;
	border-radius: 999px;
	background: var(--jsd-line);
	transition: background 0.15s ease;
}

.jsd-switch__track::after {
	content: "";
	position: absolute;
	top: 0.2rem;
	left: 0.2rem;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(17, 24, 38, 0.18);
	transition: transform 0.15s ease;
}

.jsd-switch__input:checked + .jsd-switch__track {
	background: var(--jsd-action);
}

.jsd-switch__input:checked + .jsd-switch__track::after {
	transform: translateX(1.35rem);
}

.jsd-switch__input:focus-visible + .jsd-switch__track {
	box-shadow: 0 0 0 2px var(--jsd-surface), 0 0 0 4px var(--jsd-action);
}

.jsd-match-list {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	background: var(--jsd-surface);
	border: 1px solid var(--jsd-line);
	border-radius: var(--jsd-radius);
	overflow: hidden;
}

.jsd-match-list__item {
	list-style: none !important;
	background: transparent;
	border: 0;
	border-radius: 0;
	border-bottom: 1px solid var(--jsd-line);
	overflow: visible;
	margin: 0 !important;
	padding: 0 !important;
}

.jsd-match-list__item::before,
.jsd-match-list__item::after,
.jsd-match-list__item::marker {
	content: none !important;
	display: none !important;
}

.jsd-match-list__item:last-child {
	border-bottom: 0;
}

.jsd-match-list__link {
	display: flex;
	gap: 1rem;
	align-items: center;
	padding: 0.9rem 1rem;
	text-decoration: none;
	color: inherit;
}

.jsd-match-list__link:hover {
	background: var(--jsd-paper);
}

.jsd-match-list__logos {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-shrink: 0;
}

.jsd-match-list__vs {
	font-size: 0.75rem;
	color: var(--jsd-muted);
	font-weight: 600;
}

.jsd-match-list__when {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--jsd-muted);
	font-weight: 400;
	letter-spacing: -0.015em;
}

.jsd-match-list__title {
	margin: 0.1rem 0;
	font-weight: 600;
	font-size: 1.0625rem;
	color: var(--jsd-ink);
	letter-spacing: -0.025em;
}

.jsd-match-list__meta {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--jsd-muted);
}

.jsd-logo {
	display: inline-flex;
	background: var(--jsd-paper);
	border-radius: 10px;
	overflow: hidden;
}

.jsd-logo--empty {
	display: inline-block;
	background: var(--jsd-line);
	border-radius: 10px;
}

.jsd-logo--slot {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	background: var(--jsd-paper);
	border: 1px dashed var(--jsd-line);
	border-radius: 10px;
}

.jsd-logo-wrap {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
}

.jsd-logo-edit {
	position: absolute;
	top: -0.35rem;
	right: -0.35rem;
	bottom: auto;
	left: auto;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	padding: 0;
	border: 1.5px solid var(--jsd-line);
	border-radius: 999px;
	background: #fff;
	color: var(--jsd-navy);
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
	line-height: 0;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jsd-logo-edit:hover {
	background: var(--jsd-action);
	border-color: var(--jsd-action);
	color: var(--jsd-action-text);
}

.jsd-logo-edit .jsd-icon {
	width: 14px;
	height: 14px;
}

.jsd-match-hero {
	text-align: center;
	margin: 0.5rem 0 1.25rem;
}

.jsd-match-hero__logos {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.jsd-match-hero__title {
	margin: 0.25rem 0 0;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 700;
	color: var(--jsd-navy);
	letter-spacing: -0.03em;
}

.jsd-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.jsd-actions .jsd-success-panel,
.jsd-actions .jsd-error-panel,
.jsd-actions .jsd-info-panel {
	flex: 1 1 100%;
}

.jsd-spielplan-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}

.jsd-bulk-form {
	margin: 0;
}

.jsd-bulk-check {
	display: inline-flex;
	align-items: center;
	gap: 0.1rem;
	position: relative;
}

.jsd-bulk-menu {
	position: relative;
}

.jsd-bulk-menu__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--jsd-muted, #64748b);
	line-height: 0;
	cursor: pointer;
}

.jsd-bulk-menu__toggle .jsd-icon {
	width: 1rem;
	height: 1rem;
	display: block;
}

.jsd-bulk-menu__toggle:hover,
.jsd-bulk-menu__toggle[aria-expanded="true"] {
	background: rgba(3, 29, 68, 0.08);
	color: var(--jsd-navy);
}

.jsd-bulk-menu__panel {
	position: absolute;
	top: calc(100% + 0.25rem);
	left: 0;
	z-index: 30;
	min-width: max-content;
	padding: 0.35rem;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--jsd-line, #cbd5e0);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.jsd-bulk-menu__panel[hidden] {
	display: none !important;
}

.jsd-bulk-menu__item {
	display: block;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	text-align: left;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--jsd-navy);
	cursor: pointer;
	white-space: nowrap;
}

.jsd-bulk-menu__item:hover {
	background: var(--jsd-paper, #f1f5f9);
}

.jsd-bulk-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin: 0 0 0.85rem;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
}

.jsd-bulk-bar[hidden] {
	display: none !important;
}

.jsd-bulk-bar__left {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #9a3412;
}

.jsd-bulk-bar__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	height: 1.5rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: #ea580c;
	color: #fff;
	font-size: 0.8125rem;
}

.jsd-bulk-bar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.jsd-table__check {
	width: 3rem;
	vertical-align: middle;
}

.jsd-table__check input {
	width: 1.1rem;
	height: 1.1rem;
	cursor: pointer;
	accent-color: var(--jsd-navy);
}

@media (max-width: 720px) {
	.jsd-bulk-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.jsd-bulk-bar__actions .jsd-btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

.jsd-ics-panel {
	scroll-margin-top: 1.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--jsd-line, rgba(15, 23, 42, 0.08));
	margin-top: 0.5rem;
}

.jsd-app__note--ok {
	color: #166534;
	background: #dcfce7;
	padding: 0.85rem 1rem;
	border-radius: 12px;
}

.jsd-empty {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.25rem 0 0.5rem;
}

.jsd-empty__text {
	margin: 0;
	color: var(--jsd-muted, #64748b);
	font-size: 1rem;
	line-height: 1.45;
}

.jsd-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.jsd-task-list {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.jsd-task-list__item {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.jsd-task-list__item::before,
.jsd-task-list__item::after,
.jsd-task-list__item::marker {
	content: none !important;
	display: none !important;
}

.jsd-task-list__card {
	position: relative;
	border-radius: 14px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jsd-task-list__card:hover {
	border-color: rgba(15, 23, 42, 0.18);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.jsd-task-list__dismiss,
.jsd-task-list__dismiss[data-jsd-tooltip] {
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
	left: auto;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 50%;
	color: var(--jsd-muted);
	text-decoration: none !important;
	line-height: 0;
	transition: background 0.15s ease, color 0.15s ease;
}

.jsd-task-list__dismiss:hover {
	background: var(--jsd-paper);
	color: var(--jsd-navy);
}

.jsd-task-list__link {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	min-width: 0;
	padding: 1rem 0.45rem 1rem 1.1rem;
	border-radius: 14px;
	text-decoration: none !important;
	color: inherit;
}

.jsd-task-list__main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 1.75rem;
}

.jsd-task-list__meta {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: var(--jsd-muted, #64748b);
}

.jsd-task-list__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--jsd-navy);
	letter-spacing: -0.03em;
	line-height: 1.3;
}

.jsd-task-list__main .jsd-stage-labels {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.1rem;
}

.jsd-task-list__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	flex-shrink: 0;
}

.jsd-task-list__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	padding: 0.4rem 0.85rem;
	border-radius: 10px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	white-space: nowrap;
}

.jsd-task-list__cta--primary {
	background: var(--jsd-action, #5eead4);
	color: var(--jsd-navy, #0f172a);
}

.jsd-task-list__cta--danger {
	background: #fee2e2;
	color: #991b1b;
}

@media (max-width: 640px) {
	.jsd-task-list__link {
		flex-direction: column;
		align-items: stretch;
		padding: 1rem 0.45rem 1rem 1rem;
	}

	.jsd-task-list__main {
		padding-right: 1.75rem;
	}

	.jsd-task-list__aside {
		align-items: stretch;
	}

	.jsd-task-list__cta {
		width: 100%;
		justify-content: center;
	}
}

.jsd-chip {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	white-space: nowrap;
}

.jsd-chip--compact {
	padding: 0.2rem 0.5rem;
	font-size: 0.6875rem;
}

.jsd-chip--ok {
	background: #dcfce7;
	color: #166534;
}

.jsd-chip--open {
	background: #ffedd5;
	color: #9a3412;
}

.jsd-chip--error {
	background: #fee2e2;
	color: #991b1b;
}

.jsd-match-cell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.55rem;
}

.jsd-match-cell__main {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	flex: 1 1 12rem;
}

.jsd-match-cell__title {
	min-width: 0;
	font-weight: 600;
	color: var(--jsd-navy, #0f172a);
}

.jsd-match-cell__league {
	font-size: 0.8125rem;
	line-height: 1.35;
	color: var(--jsd-muted, #64748b);
}

.jsd-stage-labels {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
}

.jsd-stage-label {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.45rem;
	border-radius: 6px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	white-space: nowrap;
}

.jsd-stage-label--ok {
	background: #dcfce7;
	color: #166534;
}

.jsd-stage-label--open {
	background: #ffedd5;
	color: #9a3412;
}

.jsd-stage-label--error {
	background: #fee2e2;
	color: #991b1b;
}

.jsd-stage-label--muted {
	background: #f1f5f9;
	color: #94a3b8;
}

.jsd-stepper {
	margin: 0 0 1.25rem;
	padding: 1.15rem 0.75rem 1.2rem;
	border-radius: 16px;
	background: var(--jsd-navy);
	color: #fff;
}

.jsd-stepper__list {
	list-style: none !important;
	list-style-type: none !important;
	display: flex;
	align-items: flex-start;
	margin: 0 !important;
	padding: 0 !important;
}

.jsd-stepper__step {
	list-style: none !important;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1 1 0;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center;
	gap: 0.55rem;
}

.jsd-stepper__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 1.05rem;
	left: calc(50% + 1.2rem);
	width: calc(100% - 2.4rem);
	height: 2px;
	background: rgba(255, 255, 255, 0.28);
	pointer-events: none;
}

.jsd-stepper__step.is-done:not(:last-child)::after {
	background: var(--jsd-action);
}

.jsd-stepper__marker {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	box-sizing: border-box;
}

.jsd-stepper__label {
	display: block;
	max-width: 6.5rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.45);
}

.jsd-stepper__step.is-done .jsd-stepper__marker {
	border-color: var(--jsd-action);
	background: var(--jsd-action);
	color: var(--jsd-action-text);
}

.jsd-stepper__step.is-done .jsd-stepper__label {
	color: var(--jsd-action);
}

.jsd-stepper__step.is-current .jsd-stepper__marker {
	border-color: var(--jsd-action);
	background: transparent;
	color: var(--jsd-action);
	box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.22);
}

.jsd-stepper__step.is-current .jsd-stepper__label {
	color: var(--jsd-action);
}

.jsd-stepper__step.is-done.is-current .jsd-stepper__marker {
	background: var(--jsd-action);
	color: var(--jsd-action-text);
}

.jsd-stepper__check {
	font-size: 0.95rem;
	line-height: 1;
}

@media (max-width: 520px) {
	.jsd-stepper {
		padding: 1rem 0.4rem 1.05rem;
	}

	.jsd-stepper__marker {
		width: 1.85rem;
		height: 1.85rem;
		font-size: 0.8125rem;
	}

	.jsd-stepper__step:not(:last-child)::after {
		top: 0.9rem;
		left: calc(50% + 1rem);
		width: calc(100% - 2rem);
	}

	.jsd-stepper__label {
		font-size: 0.75rem;
		max-width: 5.25rem;
	}
}

.jsd-success-panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.65rem;
	width: 100%;
	padding: 1rem 1.1rem;
	border-radius: 14px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.jsd-success-panel__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #065f46;
}

.jsd-success-panel__text {
	margin: 0;
	font-size: 0.9375rem;
	color: #047857;
	line-height: 1.4;
}

.jsd-success-panel__steps {
	margin: 0;
	padding: 0 0 0 1.15rem;
	color: #047857;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.jsd-success-panel__steps li {
	margin: 0.2rem 0;
}

.jsd-success-panel__note {
	margin: 0;
	font-size: 0.8125rem;
	color: #047857;
	line-height: 1.4;
	opacity: 0.9;
}

.jsd-success-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.15rem;
}

.jsd-error-panel,
.jsd-info-panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55rem;
	width: 100%;
	padding: 0.95rem 1.05rem;
	border-radius: 14px;
}

.jsd-error-panel {
	background: #fff7ed;
	border: 1px solid #fdba74;
}

.jsd-error-panel__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #9a3412;
}

.jsd-error-panel__text {
	margin: 0;
	font-size: 0.9375rem;
	color: #9a3412;
	line-height: 1.4;
}

.jsd-info-panel {
	background: var(--jsd-paper);
	border: 1px solid var(--jsd-line);
}

.jsd-info-panel__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--jsd-navy);
}

.jsd-info-panel__text {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--jsd-muted);
	line-height: 1.4;
}

.jsd-stream-card__status--warn {
	color: #9a3412;
	font-weight: 600;
}

.jsd-stream-card__error {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
	color: #991b1b;
	line-height: 1.35;
}

.jsd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.875rem 1rem;
	border-radius: var(--jsd-radius);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jsd-btn--primary {
	background: var(--jsd-action);
	color: var(--jsd-action-text);
}

.jsd-btn--primary:hover {
	filter: brightness(0.97);
}

.jsd-btn--accent {
	background: var(--jsd-surface);
	color: var(--jsd-ink);
	border: 1.5px solid var(--jsd-line);
}

.jsd-btn--accent:hover {
	border-color: var(--jsd-muted);
}

.jsd-btn--disabled {
	background: #f3f4f6;
	color: #9ca3af;
	border: 1.5px solid transparent;
	cursor: not-allowed;
	pointer-events: auto;
}

.jsd-btn--ghost {
	background: var(--jsd-surface);
	border: 1.5px solid var(--jsd-line);
	color: var(--jsd-ink);
	text-decoration: none;
}

.jsd-btn--ghost:hover {
	border-color: var(--jsd-muted);
}

.jsd-btn--danger {
	background: var(--jsd-surface);
	border: 1.5px solid var(--jsd-line);
	color: var(--jsd-rose);
	text-decoration: none;
}

.jsd-btn--danger:hover {
	background: var(--jsd-rose-bg);
	border-color: var(--jsd-line);
}

.jsd-stream-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}

.jsd-stream-card {
	background: var(--jsd-surface);
	border: 1px solid var(--jsd-line);
	border-radius: var(--jsd-radius);
	padding: 0;
	overflow: visible;
}

.jsd-stream-card__title {
	display: none;
}

.jsd-stream-card__media {
	position: relative;
	display: block;
	line-height: 0;
}

.jsd-stream-card__body {
	padding: 0.85rem 1rem 0.9rem;
}

.jsd-stream-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0 0 0.75rem;
}

.jsd-stream-card__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.jsd-stream-card__label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--jsd-muted);
	line-height: 1.2;
}

.jsd-stream-card__video-title {
	margin: 0;
	font-weight: 600;
	line-height: 1.35;
	color: var(--jsd-ink);
	letter-spacing: -0.02em;
}

.jsd-stream-card__video-desc {
	margin: 0;
	max-height: 11rem;
	overflow: auto;
	padding: 0.65rem 0.75rem;
	border-radius: var(--jsd-radius);
	background: var(--jsd-paper);
	border: 1px solid var(--jsd-line);
	font-size: 0.9rem;
	line-height: 1.45;
	white-space: pre-wrap;
	color: var(--jsd-ink);
}

.jsd-stream-card__field .jsd-app__note {
	margin: 0;
}

.jsd-stream-card__thumb {
	aspect-ratio: 16 / 9;
	border-radius: var(--jsd-radius) var(--jsd-radius) 0 0;
	overflow: hidden;
	background: var(--jsd-navy);
	margin: 0;
}

.jsd-stream-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jsd-stream-card__thumb--empty {
	width: 100%;
	height: 100%;
	min-height: 120px;
	background: var(--jsd-paper);
}

.jsd-stream-card__actions {
	position: absolute;
	left: 0.5rem;
	right: 0.5rem;
	bottom: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	pointer-events: none;
	z-index: 2;
}

.jsd-stream-card__actions .jsd-stream-card__tools,
.jsd-stream-card__actions .jsd-stream-card__manage {
	pointer-events: auto;
	padding: 0.2rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
	backdrop-filter: blur(6px);
}

.jsd-stream-card__actions .jsd-icon-btn {
	width: 1.85rem;
	height: 1.85rem;
	color: var(--jsd-navy);
}

.jsd-stream-card__actions .jsd-icon-btn:hover {
	background: var(--jsd-paper);
	color: var(--jsd-navy);
}

.jsd-stream-card__actions .jsd-icon-btn--danger:hover {
	background: var(--jsd-rose-bg);
	color: var(--jsd-rose);
}

.jsd-stream-card__status {
	margin: 0.15rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--jsd-ink);
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.jsd-stream-card__status--published {
	color: var(--jsd-label-text);
	background: var(--jsd-label-bg);
	display: inline-flex;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	font-size: 0.8125rem;
}

.jsd-stream-card__status-text {
	font-weight: 500;
	color: var(--jsd-muted);
}

.jsd-stream-card__admin-note {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	color: var(--jsd-muted);
}

.jsd-stream-card__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin: 0.5rem 0 0.25rem;
}

.jsd-stream-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.75rem;
	padding-top: 0.65rem;
	border-top: 1px solid var(--jsd-line);
}

.jsd-stream-card__tools,
.jsd-stream-card__manage {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	line-height: 0;
}

.jsd-stream-card__manage {
	margin-left: auto;
}

.jsd-stream-card__actions .jsd-stream-card__manage {
	margin-left: auto;
}

.jsd-stream-card__admin-link {
	display: inline-flex;
	align-items: center;
	margin: 0 0.15rem 0 0.1rem;
	padding: 0 0.4rem;
	height: 1.85rem;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--jsd-navy);
	text-decoration: none;
	line-height: 1;
}

.jsd-stream-card__admin-link:hover {
	background: var(--jsd-paper);
	color: var(--jsd-navy);
	text-decoration: none;
}

/* Custom tooltips (Janova-style) */
[data-jsd-tooltip] {
	position: relative;
}

[data-jsd-tooltip]::after {
	content: attr(data-jsd-tooltip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 0.45rem);
	transform: translateX(-50%) translateY(0.2rem);
	z-index: 40;
	padding: 0.4rem 0.65rem;
	border-radius: 10px;
	background: var(--jsd-navy, #031d44);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.25;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(3, 29, 68, 0.22);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

[data-jsd-tooltip]::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: calc(100% + 0.15rem);
	transform: translateX(-50%);
	z-index: 41;
	border: 5px solid transparent;
	border-top-color: var(--jsd-navy, #031d44);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

[data-jsd-tooltip]:hover::after,
[data-jsd-tooltip]:focus-visible::after {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

[data-jsd-tooltip]:hover::before,
[data-jsd-tooltip]:focus-visible::before {
	opacity: 1;
}

.jsd-status[data-jsd-tooltip] {
	cursor: default;
}

/* Tooltip-Regel setzt position:relative — absolute Controls wiederherstellen. */
.jsd-app .jsd-login__toggle[data-jsd-tooltip] {
	position: absolute;
	top: 50%;
	right: 0.55rem;
	left: auto;
	bottom: auto;
	transform: translateY(-50%);
}

.jsd-app .jsd-logo-edit[data-jsd-tooltip] {
	position: absolute;
	top: -0.35rem;
	right: -0.35rem;
	left: auto;
	bottom: auto;
	transform: none;
}

.jsd-flash {
	padding: 0.85rem 1rem;
	border-radius: var(--jsd-radius);
	margin-bottom: 1.25rem;
	font-weight: 500;
	font-size: 0.9375rem;
}

.jsd-flash--success {
	background: var(--jsd-label-bg);
	color: var(--jsd-label-text);
}

.jsd-flash--warning {
	background: #fff7ed;
	color: #9a3412;
}

.jsd-flash--error {
	background: var(--jsd-rose-bg);
	color: var(--jsd-rose);
}

.jsd-flash--info {
	background: var(--jsd-paper);
	color: var(--jsd-navy);
}

.jsd-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1.75rem;
}

.jsd-stat {
	position: relative;
	background: var(--jsd-surface);
	border: 1px solid var(--jsd-line);
	border-radius: var(--jsd-radius);
	padding: 0.875rem 1rem;
}

.jsd-stat--alert {
	border-color: #fecaca;
	background: #fff7f7;
}

.jsd-stat__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
}

.jsd-stat__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	height: 1.5rem;
	padding: 0 0.4rem;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

.jsd-stat__hint {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: #b91c1c;
}

a.jsd-stat--link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}

a.jsd-stat--link:hover,
a.jsd-stat--link:focus-visible {
	border-color: var(--jsd-action);
	background: #f0fdfa;
	outline: none;
}

.jsd-stat__value {
	display: block;
	font-size: 2.125rem;
	font-weight: 400;
	line-height: 1;
	color: var(--jsd-ink);
	letter-spacing: 0.02em;
}

.jsd-stat__label {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.9375rem;
	color: var(--jsd-muted);
	font-weight: 400;
	letter-spacing: -0.015em;
}

.jsd-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--jsd-surface);
	border: 1px solid var(--jsd-line);
	border-radius: var(--jsd-radius);
	overflow: visible;
}

.jsd-table th:first-child {
	border-top-left-radius: var(--jsd-radius);
}

.jsd-table th:last-child {
	border-top-right-radius: var(--jsd-radius);
}

.jsd-table tr:last-child td:first-child {
	border-bottom-left-radius: var(--jsd-radius);
}

.jsd-table tr:last-child td:last-child {
	border-bottom-right-radius: var(--jsd-radius);
}

.jsd-table th,
.jsd-table td {
	padding: 0.75rem 0.85rem;
	text-align: left;
	border-bottom: 1px solid var(--jsd-line);
	vertical-align: middle;
}

.jsd-table__center {
	text-align: center;
}

.jsd-table th {
	font-size: 0.75rem;
	text-transform: none;
	letter-spacing: -0.01em;
	font-weight: 500;
	color: var(--jsd-muted);
	background: var(--jsd-paper);
}

.jsd-table tr:last-child td {
	border-bottom: 0;
}

.jsd-table__thumb {
	width: 96px;
	vertical-align: middle;
}

.jsd-table__thumb-img,
.jsd-table__thumb img {
	display: block;
	width: 96px;
	max-width: 96px;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 8px;
	background: var(--jsd-navy);
}

.jsd-table__thumb-empty {
	display: block;
	width: 96px;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	background: var(--jsd-paper);
	border: 1px solid var(--jsd-line);
}

.jsd-yt-cell {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	line-height: 0;
}

.jsd-yt-cell__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit;
}

.jsd-yt-cell__link:hover {
	opacity: 0.85;
	text-decoration: none !important;
}

.jsd-status {
	display: inline-block;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 999px;
	vertical-align: middle;
	cursor: default;
}

.jsd-status--ready {
	background: #22c55e;
}

.jsd-status--planned {
	background: #f59e0b;
}

.jsd-status--error {
	background: var(--jsd-rose);
}

.jsd-copy-btn {
	border: 0 !important;
	background: transparent;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	box-shadow: none !important;
	text-decoration: none !important;
}

.jsd-copy-btn.is-copied {
	color: var(--jsd-label-text);
	background: var(--jsd-label-bg);
}

.jsd-snackbar {
	position: fixed;
	left: 50%;
	bottom: 1.25rem;
	transform: translateX(-50%) translateY(0.5rem);
	z-index: 100000;
	max-width: min(28rem, calc(100vw - 2rem));
	padding: 0.85rem 1.1rem;
	border-radius: 12px;
	background: var(--jsd-label-bg, #ccfbf1);
	color: var(--jsd-label-text, #134e4a);
	font-family: var(--jsd-font, system-ui, sans-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.35;
	box-shadow: 0 8px 24px rgba(17, 24, 38, 0.12);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.jsd-snackbar.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.jsd-snackbar--success {
	background: var(--jsd-label-bg, #ccfbf1);
	color: var(--jsd-label-text, #134e4a);
}

.jsd-snackbar--warning {
	background: #fff7ed;
	color: #9a3412;
}

.jsd-snackbar--error {
	background: var(--jsd-rose-bg, #ffe4e6);
	color: var(--jsd-rose, #e11d48);
}

.jsd-snackbar--info {
	background: var(--jsd-paper, #f1f5f9);
	color: var(--jsd-navy, #031d44);
}

.jsd-row-actions {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem;
	white-space: nowrap;
	line-height: 0;
	border: 0;
}

.jsd-table__actions {
	width: 5.5rem;
	text-align: right;
	vertical-align: middle !important;
}

.jsd-table .jsd-row-actions {
	vertical-align: middle;
}

.jsd-stream-card .jsd-row-actions {
	margin-top: 0.75rem;
	justify-content: flex-start;
}

.jsd-actions .jsd-icon-btn {
	flex: 0 0 auto;
}

.jsd-table__actions-col {
	width: 5.5rem;
}

.jsd-table__row.is-clickable {
	cursor: pointer;
}

.jsd-table__row.is-clickable:hover {
	background: var(--jsd-paper);
}

.jsd-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 0 !important;
	border-radius: 8px;
	color: var(--jsd-muted);
	text-decoration: none !important;
	box-shadow: none !important;
	background: transparent;
	line-height: 0;
	transition: background 0.15s ease, color 0.15s ease;
}

.jsd-app a.jsd-icon-btn,
.jsd-app a.jsd-icon-btn:hover,
.jsd-app a.jsd-icon-btn:focus,
.jsd-app a.jsd-yt-cell__link,
.jsd-app a.jsd-yt-cell__link:hover {
	text-decoration: none !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

.jsd-icon-btn:hover {
	background: var(--jsd-paper);
	color: var(--jsd-navy);
}

.jsd-icon-btn--danger:hover {
	background: var(--jsd-rose-bg);
	color: var(--jsd-rose);
}

.jsd-icon {
	display: block;
	flex-shrink: 0;
}

.jsd-logo img {
	display: block;
	background: var(--jsd-paper);
	border-radius: 10px;
}

.jsd-form {
	background: var(--jsd-surface);
	border: 1px solid var(--jsd-line);
	border-radius: var(--jsd-radius);
	padding: 1rem;
	margin: 1rem 0 1.5rem;
	display: grid;
	gap: 0.85rem;
}

.jsd-form__row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
}

.jsd-form__row--datetime {
	grid-template-columns: minmax(8.5rem, 0.65fr) minmax(13rem, 1.35fr);
	align-items: start;
}

.jsd-form__row--datetime .jsd-form__time {
	max-width: none;
	width: 100%;
	min-height: 3.25rem;
}

.jsd-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.jsd-form__label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-height: 2.5rem;
}

.jsd-form__label-row > label {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.jsd-form__field--away .jsd-form__label-row {
	flex-direction: row-reverse;
}

.jsd-form__field--away .jsd-form__label-row > label {
	text-align: right;
}

.jsd-form__logo {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
}

.jsd-form__logo .jsd-logo-edit {
	width: 1.5rem;
	height: 1.5rem;
	top: -0.25rem;
	right: -0.25rem;
}

.jsd-ac {
	position: relative;
	width: 100%;
}

.jsd-ac__list {
	position: absolute;
	z-index: 30;
	top: calc(100% + 0.25rem);
	left: 0;
	right: 0;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	background: var(--jsd-surface);
	border: 1px solid var(--jsd-line);
	border-radius: var(--jsd-radius);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
	max-height: 14rem;
	overflow: auto;
}

.jsd-ac__item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	cursor: pointer;
}

.jsd-ac__item:hover,
.jsd-ac__item:focus {
	background: var(--jsd-paper);
}

.jsd-ac__logo {
	width: 28px;
	height: 28px;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 6px;
	background: var(--jsd-paper);
}

.jsd-ac__title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--jsd-navy);
	letter-spacing: -0.02em;
}

.jsd-form .jsd-switch {
	width: 100%;
	padding: 0.15rem 0;
}

.jsd-logo-dialog__hint {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
}

.jsd-logo-dialog-form input[readonly] {
	background: var(--jsd-paper);
	color: var(--jsd-muted);
	cursor: default;
}

.jsd-logo-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
}

.jsd-form-dialog .jsd-form {
	gap: 0.65rem;
}

.jsd-form-dialog .jsd-form__row {
	gap: 0.35rem;
}

.jsd-form-dialog .jsd-form input[type="text"],
.jsd-form-dialog .jsd-form input[type="date"],
.jsd-form-dialog .jsd-form select {
	min-height: 3.15rem;
	padding: 0.75rem 0.85rem;
	font-size: 1.0625rem;
	line-height: 1.25;
	box-sizing: border-box;
}

.jsd-form-dialog .jsd-app__note {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
}

@media (max-width: 520px) {
	.jsd-form__row--split,
	.jsd-form__row--datetime {
		grid-template-columns: 1fr;
	}

	.jsd-form__field--away .jsd-form__label-row {
		flex-direction: row;
	}

	.jsd-form__field--away .jsd-form__label-row > label {
		text-align: left;
	}
}

.jsd-form__time {
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
	max-width: 16rem;
}

.jsd-form__time select {
	width: auto !important;
	min-width: 6.5rem;
	flex: 1 1 0;
	max-width: none;
}

.jsd-form__time > span,
.jsd-form__time-sep {
	display: inline-flex;
	align-items: center;
	font-weight: 700;
	color: var(--jsd-navy);
	line-height: 1;
	flex: 0 0 auto;
}

.jsd-form label {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--jsd-navy);
	letter-spacing: -0.03em;
}

.jsd-form input[type="text"],
.jsd-form input[type="email"],
.jsd-form input[type="password"],
.jsd-form input[type="date"],
.jsd-form input[type="file"],
.jsd-form select,
.jsd-form textarea {
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--jsd-line);
	border-radius: var(--jsd-radius);
	font: inherit;
	font-size: 1.0625rem;
	color: var(--jsd-ink);
	background-color: var(--jsd-surface);
	letter-spacing: -0.025em;
	box-shadow: none;
	box-sizing: border-box;
}

.jsd-form select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.75rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23031d44' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 1.05rem;
	cursor: pointer;
}

.jsd-form-dialog .jsd-form select {
	padding-right: 2.5rem;
	background-position: right 0.75rem center;
}

.jsd-form .jsd-login__password input[type="password"],
.jsd-form .jsd-login__password input[type="text"] {
	width: 100%;
	padding: 1rem 3rem 1rem 1rem;
}

.jsd-form input:focus,
.jsd-form select:focus,
.jsd-form textarea:focus {
	outline: none;
	border-color: var(--jsd-line);
	box-shadow: 0 0 0 1px var(--jsd-line);
}

.jsd-form textarea {
	min-height: 140px;
	resize: vertical;
}

.jsd-form__check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	color: var(--jsd-ink);
}

.jsd-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.25rem;
}

.jsd-cred-section__title {
	margin: 1.5rem 0 0.85rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--jsd-muted);
}

.jsd-cred-grid {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.jsd-cred {
	margin: 0 0 1rem;
	padding: 1rem 1.15rem;
	background: var(--jsd-surface);
	border: 1px solid var(--jsd-line);
	border-radius: var(--jsd-radius);
	width: 100%;
	box-sizing: border-box;
}

.jsd-cred-grid .jsd-cred {
	margin: 0;
}

.jsd-cred__head {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 0.75rem;
}

.jsd-cred__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	border-radius: 0.55rem;
	background: rgba(3, 29, 68, 0.06);
	color: var(--jsd-navy);
	overflow: hidden;
}

.jsd-cred__icon-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jsd-cred__title {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--jsd-navy);
	letter-spacing: -0.02em;
}

.jsd-cred__info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	flex-shrink: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--jsd-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.jsd-cred__info:hover {
	background: rgba(3, 29, 68, 0.08);
	color: var(--jsd-navy);
}

.jsd-cred__list {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.jsd-cred__row {
	display: grid;
	grid-template-columns: minmax(7rem, 10rem) 1fr auto;
	gap: 0.5rem 0.75rem;
	align-items: center;
}

.jsd-cred__row dt {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--jsd-muted);
}

.jsd-cred__row dd {
	margin: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.35rem;
	grid-column: 2 / -1;
	min-width: 0;
	word-break: break-word;
	color: var(--jsd-ink);
	font-size: 0.9375rem;
}

.jsd-cred__row dd .jsd-icon-btn {
	flex-shrink: 0;
	margin-left: auto;
}

.jsd-cred__secret {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	letter-spacing: 0.04em;
}

.jsd-cred__notes {
	margin: 0;
	white-space: pre-wrap;
	color: var(--jsd-ink);
	line-height: 1.45;
}

dialog.jsd-info-dialog,
dialog.jsd-cred-dialog,
dialog.jsd-confirm-dialog,
dialog.jsd-form-dialog {
	border: 0 !important;
	padding: 0 !important;
	border-radius: 24px !important;
	max-width: min(28rem, calc(100vw - 2rem));
	width: 100%;
	background: var(--jsd-paper) !important;
	background-color: var(--jsd-paper) !important;
	background-image: none !important;
	color: var(--jsd-muted);
	font-family: var(--jsd-font);
	letter-spacing: -0.01em;
	box-shadow: 0 22px 56px rgba(3, 29, 68, 0.28);
	overflow: hidden;
	opacity: 1 !important;
}

dialog.jsd-form-dialog {
	max-width: min(36rem, calc(100vw - 2rem));
	/* Custom-Selects dürfen aus dem Panel ragen; sichtbare Form kommt vom Panel. */
	overflow: visible !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none;
}

.jsd-info-dialog::backdrop,
.jsd-cred-dialog::backdrop,
.jsd-confirm-dialog::backdrop,
.jsd-form-dialog::backdrop {
	background: rgba(3, 29, 68, 0.55);
}

.jsd-info-dialog__panel,
.jsd-cred-dialog__panel,
.jsd-confirm-dialog__panel,
.jsd-form-dialog__panel {
	padding: 1.5rem 1.5rem 1.35rem;
	border-radius: 24px;
	background: var(--jsd-paper) !important;
	background-color: var(--jsd-paper) !important;
	background-image: none !important;
	opacity: 1;
	max-height: min(90vh, 42rem);
	overflow: auto;
	font-family: var(--jsd-font);
	color: var(--jsd-muted);
	letter-spacing: -0.01em;
}

.jsd-form-dialog__panel {
	overflow: visible;
	max-height: none;
	box-shadow: 0 22px 56px rgba(3, 29, 68, 0.28);
}

.jsd-form-dialog__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.jsd-form-dialog__title {
	margin: 0;
	padding-right: 0.25rem;
	font-family: var(--jsd-font);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--jsd-muted);
	letter-spacing: -0.03em;
	line-height: 1.25;
}

.jsd-form-dialog__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	margin: -0.15rem -0.15rem 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--jsd-muted);
	line-height: 0;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.jsd-form-dialog__close .jsd-icon {
	display: block;
	width: 16px;
	height: 16px;
}

.jsd-form-dialog__close:hover {
	background: rgba(3, 29, 68, 0.06);
	color: var(--jsd-navy);
}

.jsd-info-dialog__title,
.jsd-cred-dialog__title,
.jsd-confirm-dialog__title {
	margin: 0 0 0.75rem;
	font-family: var(--jsd-font);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--jsd-muted);
	letter-spacing: -0.02em;
	text-align: center;
}

.jsd-info-dialog__body,
.jsd-cred-dialog__body,
.jsd-confirm-dialog__body {
	margin: 0 0 1.35rem;
	font-family: var(--jsd-font);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.45;
	color: var(--jsd-muted);
	letter-spacing: -0.01em;
	text-align: center;
}

.jsd-info-dialog__actions,
.jsd-cred-dialog__actions,
.jsd-confirm-dialog__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.65rem;
}

dialog.jsd-info-dialog .jsd-btn.jsd-btn--accent,
dialog.jsd-cred-dialog .jsd-btn.jsd-btn--accent,
.jsd-info-dialog__close.jsd-btn,
.jsd-cred-dialog__close.jsd-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 9.5rem;
	min-height: 3rem;
	padding: 0.875rem 1rem;
	border-radius: var(--jsd-radius);
	border: 1.5px solid var(--jsd-line) !important;
	background: var(--jsd-surface) !important;
	background-image: none !important;
	color: var(--jsd-ink) !important;
	font-family: var(--jsd-font) !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	letter-spacing: -0.03em;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

dialog.jsd-info-dialog .jsd-btn.jsd-btn--accent:hover,
dialog.jsd-cred-dialog .jsd-btn.jsd-btn--accent:hover,
.jsd-info-dialog__close.jsd-btn:hover,
.jsd-cred-dialog__close.jsd-btn:hover {
	border-color: var(--jsd-muted) !important;
	background: var(--jsd-surface) !important;
	color: var(--jsd-ink) !important;
}

@media (max-width: 640px) {
	.jsd-app,
	.jsd-app--gate {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding: 0.85rem 0.65rem 2rem;
		border-radius: 0;
		box-sizing: border-box;
	}

	.jsd-app--gate .jsd-login {
		max-width: none;
		width: 100%;
	}

	.jsd-app--gate .jsd-login__form.jsd-form {
		margin: 0.75rem 0 1rem;
		padding: 0.85rem 0.75rem;
	}

	.jsd-app--gate .jsd-app__gate {
		padding: 0.75rem 0 1.25rem;
	}

	.jsd-app__club {
		font-size: 1.45rem;
	}

	.jsd-app__header {
		align-items: stretch;
		margin-bottom: 1.1rem;
		padding-bottom: 0.9rem;
		gap: 0.75rem;
	}

	.jsd-app__help-label {
		display: none;
	}

	.jsd-app__help {
		width: 2.5rem;
		padding: 0;
		justify-content: center;
	}

	.jsd-cred {
		padding: 0.85rem 0.8rem;
	}

	.jsd-cred__row {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}

	.jsd-club-facts__row {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}

	.jsd-cred__row dd {
		justify-content: space-between;
	}

	.jsd-app__nav,
	.jsd-nav,
	.jsd-tabs {
		width: 100%;
	}

	.jsd-app__nav-link {
		flex: 1 0 auto;
		padding: 0.45rem 0.7rem;
	}

	.jsd-match-list__link {
		flex-direction: column;
		align-items: flex-start;
	}

	.jsd-table {
		display: block;
		overflow-x: auto;
	}

	.jsd-table__thumb,
	.jsd-table__thumb-img,
	.jsd-table__thumb img,
	.jsd-table__thumb-empty {
		width: 80px;
		max-width: 80px;
	}
}
