
:root {
	--panda-portal-bg: #f0f2f7;
	--panda-portal-card: #ffffff;
	--panda-portal-text: #182033;
	--panda-portal-muted: #697386;
	--panda-portal-pink: #d63384;
	--panda-portal-pink-dark: #9f215d;
	--panda-portal-navy: #20263a;
}

.panda-login-shell,
.panda-panel-shell {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 24px;
}

.panda-login-shell {
	display: grid;
	place-items: center;
	min-height: 70vh;
}

.panda-login-card {
	width: min(460px, 100%);
	padding: 38px;
	border: 1px solid rgba(24,32,51,.08);
	border-radius: 26px;
	background: var(--panda-portal-card);
	box-shadow: 0 24px 60px rgba(32,38,58,.12);
}

.panda-login-brand,
.panda-panel-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	background: #fde7f2;
	color: var(--panda-portal-pink-dark);
	font-weight: 800;
}

.panda-login-card h1,
.panda-panel-header h1 {
	margin: 20px 0 8px;
	color: var(--panda-portal-text);
	font-size: clamp(32px, 5vw, 48px);
}

.panda-login-card > p,
.panda-panel-header p {
	color: var(--panda-portal-muted);
}

.panda-login-form {
	display: grid;
	gap: 18px;
	margin-top: 26px;
}

.panda-login-form label > span {
	display: block;
	margin-bottom: 7px;
	color: var(--panda-portal-text);
	font-weight: 700;
}

.panda-login-form input[type="text"],
.panda-login-form input[type="password"] {
	width: 100%;
	min-height: 50px;
	padding: 11px 14px;
	border: 1px solid #ccd3df;
	border-radius: 12px;
	font-size: 16px;
}

.panda-login-form input:focus {
	border-color: var(--panda-portal-pink);
	box-shadow: 0 0 0 3px rgba(214,51,132,.12);
	outline: none;
}

.panda-login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
}

.panda-login-remember span {
	margin: 0 !important;
	font-weight: 500 !important;
}

.panda-login-form button,
.panda-panel-project-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(
		135deg,
		var(--panda-portal-pink),
		var(--panda-portal-pink-dark)
	);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.panda-login-error,
.panda-portal-message,
.panda-portal-admin-link {
	margin: 20px auto;
	padding: 15px 18px;
	border-radius: 12px;
	background: #fff3cd;
	color: #5d4500;
}

.panda-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 38px;
	padding: 30px;
	border-radius: 24px;
	background: linear-gradient(135deg, #20263a 0%, #2c3248 55%, #70214f 100%);
	color: #fff;
}

.panda-panel-header h1 {
	color: #fff;
}

.panda-panel-header p {
	color: rgba(255,255,255,.72);
}

.panda-panel-logout {
	padding: 10px 15px;
	border: 1px solid rgba(255,255,255,.24);
	border-radius: 12px;
	color: #fff;
	text-decoration: none;
}

.panda-panel-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.panda-panel-section-heading h2 {
	margin: 0;
	color: var(--panda-portal-text);
}

.panda-panel-section-heading span {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	border-radius: 999px;
	background: #fde7f2;
	color: var(--panda-portal-pink-dark);
	font-weight: 800;
}

.panda-panel-projects {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 24px;
}

.panda-panel-project-card {
	overflow: hidden;
	border: 1px solid rgba(24,32,51,.08);
	border-radius: 22px;
	background: var(--panda-portal-card);
	box-shadow: 0 16px 38px rgba(32,38,58,.09);
}

.panda-panel-project-poster {
	display: block;
	aspect-ratio: 2 / 3;
	background: #e9edf4;
}

.panda-panel-project-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.panda-panel-project-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-size: 58px;
}

.panda-panel-project-body {
	padding: 20px;
}

.panda-panel-project-status {
	display: inline-flex;
	padding: 6px 10px;
	border-radius: 999px;
	background: #fde7f2;
	color: var(--panda-portal-pink-dark);
	font-size: 12px;
	font-weight: 800;
}

.panda-panel-project-body h3 {
	margin: 13px 0 8px;
	color: var(--panda-portal-text);
	font-size: 21px;
}

.panda-panel-project-body p {
	color: var(--panda-portal-muted);
}

.panda-panel-project-open {
	width: 100%;
	margin-top: 8px;
}

.panda-panel-empty {
	grid-column: 1 / -1;
	display: grid;
	place-items: center;
	padding: 56px 24px;
	border: 1px dashed #cbd2de;
	border-radius: 20px;
	background: #fff;
	color: var(--panda-portal-muted);
	text-align: center;
}

.panda-panel-empty > span {
	font-size: 46px;
}

.panda-panel-empty strong {
	margin-top: 10px;
	color: var(--panda-portal-text);
	font-size: 18px;
}

@media (max-width: 700px) {
	.panda-panel-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.panda-login-card {
		padding: 28px 22px;
	}
}


/* Panda Team 1.0.1 */
.panda-panel-alert {
	margin-bottom: 22px;
	padding: 15px 18px;
	border: 1px solid #f0b7d2;
	border-radius: 14px;
	background: #fff1f7;
	color: #8b1d50;
	font-weight: 700;
}


/* Panda Team 1.1 — panel pojedynczego projektu */
.panda-project-panel {
	max-width: 1200px;
	margin: 0 auto;
	padding: 50px 24px;
}

.panda-project-back {
	display: inline-flex;
	margin-bottom: 18px;
	color: var(--panda-portal-pink-dark);
	font-weight: 700;
	text-decoration: none;
}

.panda-project-hero {
	display: grid;
	grid-template-columns: minmax(220px, 300px) 1fr;
	gap: 34px;
	align-items: center;
	padding: 30px;
	border-radius: 26px;
	background: linear-gradient(135deg, #20263a 0%, #2c3248 55%, #70214f 100%);
	color: #fff;
}

.panda-project-hero__poster {
	overflow: hidden;
	aspect-ratio: 2 / 3;
	border-radius: 20px;
	background: rgba(255,255,255,.08);
	box-shadow: 0 18px 40px rgba(0,0,0,.24);
}

.panda-project-hero__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.panda-project-hero__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-size: 58px;
}

.panda-project-hero__content h1 {
	margin: 16px 0 10px;
	color: #fff;
	font-size: clamp(34px, 5vw, 54px);
}

.panda-project-description {
	color: rgba(255,255,255,.74);
	line-height: 1.65;
}

.panda-project-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 16px;
}

.panda-project-meta span {
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,.1);
}

.panda-project-progress {
	height: 10px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
}

.panda-project-progress > div {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #ff6eae, #f6b1d0);
}

.panda-project-progress-label {
	display: block;
	margin-top: 9px;
}

.panda-project-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 34px 0 18px;
}

.panda-project-section-heading h2 {
	margin: 0;
	color: var(--panda-portal-text);
	font-size: 30px;
}

.panda-project-section-heading span {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	border-radius: 999px;
	background: #fde7f2;
	color: var(--panda-portal-pink-dark);
	font-weight: 800;
}

.panda-project-episodes {
	display: grid;
	gap: 12px;
}

.panda-project-episode {
	display: grid;
	grid-template-columns: 54px minmax(200px, 1fr) minmax(140px, .65fr) minmax(140px, .65fr) minmax(130px, auto);
	gap: 18px;
	align-items: center;
	padding: 18px;
	border: 1px solid rgba(24,32,51,.08);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(32,38,58,.06);
}

.panda-project-episode__number {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: #20263a;
	color: #fff;
	font-weight: 800;
}

.panda-project-episode__main {
	display: flex;
	align-items: center;
	gap: 12px;
}

.panda-project-episode small {
	display: block;
	margin-bottom: 4px;
	color: var(--panda-portal-muted);
}

.panda-project-episode__status {
	padding: 5px 9px;
	border-radius: 999px;
	background: #edf0f5;
	color: #445066;
	font-size: 12px;
	font-weight: 800;
}

.panda-project-episode__status--translation {
	background: #e8efff;
	color: #315ca8;
}

.panda-project-episode__status--proofreading {
	background: #fff3d7;
	color: #896108;
}

.panda-project-episode__status--finished {
	background: #ddf6e8;
	color: #277548;
}

.panda-project-episode__status--paused {
	background: #f0e6ff;
	color: #68449a;
}

@media (max-width: 760px) {
	.panda-project-hero {
		grid-template-columns: 1fr;
	}

	.panda-project-hero__poster {
		max-width: 300px;
	}

	.panda-project-episode {
		grid-template-columns: 46px 1fr;
	}

	.panda-project-episode > div:nth-child(3),
	.panda-project-episode > div:nth-child(4) {
		grid-column: 2;
	}
}


/* Panda Team 1.2 — przejmowanie odcinka */
.panda-project-action-message {
	margin-bottom: 18px;
	padding: 14px 18px;
	border-radius: 14px;
	font-weight: 700;
}

.panda-project-action-message--success {
	border: 1px solid #a7dfbf;
	background: #e7f8ee;
	color: #23643f;
}

.panda-project-action-message--error {
	border: 1px solid #f0b7c5;
	background: #fff0f4;
	color: #8b2944;
}

.panda-project-episode__action {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.panda-project-episode__action form {
	margin: 0;
}

.panda-project-claim-button {
	min-height: 42px;
	padding: 0 15px;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(
		135deg,
		var(--panda-portal-pink),
		var(--panda-portal-pink-dark)
	);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(214,51,132,.18);
}

.panda-project-claim-button:hover {
	transform: translateY(-1px);
}

.panda-project-your-episode,
.panda-project-episode-locked {
	display: inline-flex;
	padding: 7px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}

.panda-project-your-episode {
	background: #e8efff;
	color: #315ca8;
}

.panda-project-episode-locked {
	background: #edf0f5;
	color: #697386;
}

@media (max-width: 960px) {
	.panda-project-episode {
		grid-template-columns: 46px 1fr;
	}

	.panda-project-episode > div:nth-child(3),
	.panda-project-episode > div:nth-child(4),
	.panda-project-episode > div:nth-child(5) {
		grid-column: 2;
	}

	.panda-project-episode__action {
		justify-content: flex-start;
	}
}


/* Panda Team 1.3 — przekazanie do korekty */
.panda-project-submit-button,
.panda-project-proofreading-button {
	min-height: 42px;
	padding: 0 15px;
	border: 0;
	border-radius: 11px;
	color: #fff;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(32,38,58,.14);
}

.panda-project-submit-button {
	background: linear-gradient(135deg, #4361ee, #3150c7);
}

.panda-project-proofreading-button {
	background: linear-gradient(135deg, #d99b18, #a86f00);
}


/* Panda Team 1.4 — ukończenie korekty */
.panda-project-proofreading-actions {
	display: grid;
	gap: 8px;
	justify-items: end;
}

.panda-project-proofreading-actions form {
	margin: 0;
}

.panda-project-complete-button {
	min-height: 42px;
	padding: 0 15px;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(135deg, #2ca766, #197a47);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(44,167,102,.18);
}

.panda-project-complete-button:hover {
	transform: translateY(-1px);
}

.panda-project-completed-label {
	display: inline-flex;
	padding: 7px 11px;
	border-radius: 999px;
	background: #ddf6e8;
	color: #277548;
	font-size: 12px;
	font-weight: 800;
}

@media (max-width: 960px) {
	.panda-project-proofreading-actions {
		justify-items: start;
	}
}



/* Panda Team 1.5 — nowa strona logowania */
.panda-login-page {
	--login-bg: #f5f7fb;
	--login-surface: rgba(255, 255, 255, .88);
	--login-surface-strong: #ffffff;
	--login-text: #182033;
	--login-muted: #6d7688;
	--login-border: rgba(24, 32, 51, .10);
	--login-input: #ffffff;
	--login-accent: #d63384;
	--login-accent-dark: #9f215d;
	--login-shadow: 0 30px 80px rgba(34, 42, 66, .14);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 100vh;
	margin: -1px calc(50% - 50vw);
	padding: 54px 24px;
	background:
		radial-gradient(circle at 10% 15%, rgba(214, 51, 132, .12), transparent 28%),
		radial-gradient(circle at 90% 80%, rgba(92, 77, 180, .16), transparent 30%),
		var(--login-bg);
	color: var(--login-text);
	transition: background .25s ease, color .25s ease;
}

.panda-login-page[data-theme="dark"] {
	--login-bg: #0f1320;
	--login-surface: rgba(24, 30, 48, .88);
	--login-surface-strong: #181e30;
	--login-text: #f7f8fc;
	--login-muted: #aeb7c9;
	--login-border: rgba(255, 255, 255, .09);
	--login-input: #101522;
	--login-accent: #ff69ad;
	--login-accent-dark: #b52b70;
	--login-shadow: 0 34px 90px rgba(0, 0, 0, .38);
	background:
		radial-gradient(circle at 10% 15%, rgba(255, 105, 173, .13), transparent 28%),
		radial-gradient(circle at 90% 80%, rgba(103, 86, 210, .20), transparent 30%),
		var(--login-bg);
}

.panda-login-orb {
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(4px);
	opacity: .65;
	animation: pandaLoginFloat 10s ease-in-out infinite;
}

.panda-login-orb--one {
	top: 8%;
	left: 6%;
	width: 170px;
	height: 170px;
	background: linear-gradient(135deg, rgba(214,51,132,.30), rgba(255,255,255,.06));
}

.panda-login-orb--two {
	right: 4%;
	bottom: 4%;
	width: 230px;
	height: 230px;
	background: linear-gradient(135deg, rgba(88,74,196,.30), rgba(214,51,132,.08));
	animation-delay: -4s;
}

@keyframes pandaLoginFloat {
	0%, 100% { transform: translateY(0) translateX(0); }
	50% { transform: translateY(-16px) translateX(10px); }
}

.panda-login-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
	gap: 70px;
	align-items: center;
	width: min(1180px, 100%);
	min-height: calc(100vh - 108px);
	margin: 0 auto;
}

.panda-login-intro {
	padding: 28px 0;
}

.panda-login-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--login-border);
	border-radius: 999px;
	background: rgba(255,255,255,.10);
	color: var(--login-text);
	font-weight: 800;
	backdrop-filter: blur(12px);
}

.panda-login-brand__icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
}

.panda-login-intro h1 {
	max-width: 720px;
	margin: 26px 0 18px;
	color: var(--login-text);
	font-size: clamp(48px, 7vw, 84px);
	line-height: .98;
	letter-spacing: -.045em;
}

.panda-login-intro > p {
	max-width: 680px;
	margin: 0;
	color: var(--login-muted);
	font-size: 19px;
	line-height: 1.65;
}

.panda-login-feature-list {
	display: grid;
	gap: 12px;
	margin-top: 30px;
}

.panda-login-feature-list > div {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--login-text);
	font-weight: 650;
}

.panda-login-feature-list span {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(214, 51, 132, .12);
	color: var(--login-accent);
}

.panda-login-card-wrap {
	width: 100%;
}

.panda-login-topbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 14px;
}

.panda-login-theme-switch {
	display: inline-flex;
	padding: 5px;
	border: 1px solid var(--login-border);
	border-radius: 14px;
	background: var(--login-surface);
	box-shadow: 0 10px 24px rgba(24,32,51,.06);
	backdrop-filter: blur(16px);
}

.panda-login-theme-switch button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--login-muted);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.panda-login-theme-switch button[aria-pressed="true"] {
	background: var(--login-surface-strong);
	color: var(--login-text);
	box-shadow: 0 4px 14px rgba(24,32,51,.08);
}

.panda-login-card {
	padding: 34px;
	border: 1px solid var(--login-border);
	border-radius: 28px;
	background: var(--login-surface);
	box-shadow: var(--login-shadow);
	backdrop-filter: blur(20px);
}

.panda-login-card__header h2 {
	margin: 14px 0 6px;
	color: var(--login-text);
	font-size: 34px;
	letter-spacing: -.02em;
}

.panda-login-card__header p {
	margin: 0;
	color: var(--login-muted);
}

.panda-login-card__badge {
	display: inline-flex;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(214, 51, 132, .12);
	color: var(--login-accent);
	font-size: 12px;
	font-weight: 800;
}

.panda-login-form {
	display: grid;
	gap: 18px;
	margin-top: 26px;
}

.panda-login-form > label > span {
	display: block;
	margin-bottom: 8px;
	color: var(--login-text);
	font-weight: 750;
}

.panda-login-input {
	display: grid;
	grid-template-columns: 34px 1fr auto;
	align-items: center;
	min-height: 54px;
	padding: 0 12px;
	border: 1px solid var(--login-border);
	border-radius: 14px;
	background: var(--login-input);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.panda-login-input:focus-within {
	border-color: var(--login-accent);
	box-shadow: 0 0 0 4px rgba(214,51,132,.12);
	transform: translateY(-1px);
}

.panda-login-input__icon {
	opacity: .8;
}

.panda-login-input input {
	width: 100%;
	min-height: 52px;
	padding: 0 4px;
	border: 0 !important;
	background: transparent !important;
	color: var(--login-text) !important;
	font-size: 16px;
	box-shadow: none !important;
	outline: none !important;
}

.panda-login-input input::placeholder {
	color: var(--login-muted);
	opacity: .72;
}

.panda-login-password-toggle {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	cursor: pointer;
}

.panda-login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.panda-login-options a {
	color: var(--login-accent);
	font-weight: 700;
	text-decoration: none;
}

.panda-login-remember {
	display: flex !important;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: var(--login-text);
}

.panda-login-remember input {
	width: 18px;
	height: 18px;
	accent-color: var(--login-accent);
}

.panda-login-remember span {
	margin: 0 !important;
	font-weight: 650 !important;
}

.panda-login-submit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 54px;
	padding: 0 18px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--login-accent), var(--login-accent-dark));
	color: #fff;
	font-size: 16px;
	font-weight: 850;
	cursor: pointer;
	box-shadow: 0 14px 28px rgba(214,51,132,.22);
	transition: transform .2s ease, box-shadow .2s ease;
}

.panda-login-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 34px rgba(214,51,132,.28);
}

.panda-login-error {
	margin-top: 20px;
	padding: 13px 15px;
	border: 1px solid rgba(224, 73, 115, .30);
	border-radius: 12px;
	background: rgba(224, 73, 115, .10);
	color: #b12650;
	font-weight: 700;
}

.panda-login-card__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--login-border);
	color: var(--login-muted);
	text-align: center;
}

@media (max-width: 940px) {
	.panda-login-layout {
		grid-template-columns: 1fr;
		gap: 32px;
		min-height: auto;
	}

	.panda-login-intro {
		text-align: center;
	}

	.panda-login-intro h1,
	.panda-login-intro > p {
		margin-left: auto;
		margin-right: auto;
	}

	.panda-login-feature-list {
		justify-items: center;
	}

	.panda-login-card-wrap {
		max-width: 560px;
		margin: 0 auto;
	}
}

@media (max-width: 620px) {
	.panda-login-page {
		padding: 24px 14px;
	}

	.panda-login-intro h1 {
		font-size: 46px;
	}

	.panda-login-intro > p {
		font-size: 17px;
	}

	.panda-login-card {
		padding: 24px 18px;
		border-radius: 22px;
	}

	.panda-login-options {
		align-items: flex-start;
		flex-direction: column;
	}

	.panda-login-theme-switch span {
		display: none;
	}
}


/* Panda Team 1.5.1 — dopracowany układ logowania */
.panda-login-page {
	width: 100vw;
	max-width: none;
	left: 50%;
	margin-left: -50vw;
	margin-right: 0;
	padding: 36px 28px;
	overflow: hidden;
}

.panda-login-layout {
	grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
	gap: 54px;
	width: min(1180px, calc(100vw - 56px));
	min-height: calc(100vh - 72px);
}

.panda-login-intro {
	min-width: 0;
	padding: 20px 0;
}

.panda-login-intro h1 {
	max-width: 680px;
	margin: 22px 0 18px;
	font-size: clamp(42px, 5.8vw, 68px);
	line-height: .98;
	letter-spacing: -.04em;
	text-wrap: balance;
}

.panda-login-intro > p {
	max-width: 620px;
	font-size: 18px;
	line-height: 1.6;
}

.panda-login-card-wrap {
	align-self: center;
}

.panda-login-card {
	padding: 32px;
	border-radius: 26px;
}

.panda-login-topbar {
	margin-bottom: 12px;
}

.panda-login-theme-switch {
	padding: 4px;
	border-radius: 13px;
}

.panda-login-theme-switch button {
	padding: 8px 11px;
}

.panda-login-brand {
	padding: 8px 12px;
}

.panda-login-brand__icon {
	width: 28px;
	height: 28px;
}

.panda-login-feature-list {
	margin-top: 24px;
}

.panda-login-card__header h2 {
	font-size: 32px;
}

.panda-login-form {
	gap: 16px;
	margin-top: 22px;
}

.panda-login-input {
	min-height: 52px;
}

.panda-login-submit {
	min-height: 52px;
}

@media (max-width: 1050px) {
	.panda-login-layout {
		grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
		gap: 34px;
	}

	.panda-login-intro h1 {
		font-size: clamp(40px, 5.4vw, 58px);
	}
}

@media (max-width: 900px) {
	.panda-login-page {
		padding: 28px 18px;
	}

	.panda-login-layout {
		grid-template-columns: 1fr;
		gap: 24px;
		width: min(620px, calc(100vw - 36px));
		min-height: auto;
	}

	.panda-login-intro {
		padding: 10px 0 0;
		text-align: center;
	}

	.panda-login-intro h1 {
		margin: 18px auto 12px;
		font-size: clamp(38px, 8vw, 54px);
	}

	.panda-login-intro > p {
		margin-inline: auto;
	}

	.panda-login-feature-list {
		display: none;
	}

	.panda-login-card-wrap {
		max-width: 520px;
		margin-inline: auto;
	}

	.panda-login-topbar {
		justify-content: center;
	}
}

@media (max-width: 560px) {
	.panda-login-page {
		padding: 20px 12px;
	}

	.panda-login-layout {
		width: min(100%, calc(100vw - 24px));
	}

	.panda-login-intro h1 {
		font-size: 40px;
		line-height: 1.02;
	}

	.panda-login-intro > p {
		font-size: 16px;
	}

	.panda-login-card {
		padding: 22px 16px;
		border-radius: 20px;
	}

	.panda-login-card__header h2 {
		font-size: 28px;
	}

	.panda-login-theme-switch {
		width: 100%;
	}

	.panda-login-theme-switch button {
		flex: 1;
		justify-content: center;
	}

	.panda-login-theme-switch span {
		display: inline;
	}
}


/* Panda Team 1.5.2 — prosty, elegancki ekran logowania */
.panda-login-page--simple {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	width: 100vw;
	min-height: 100vh;
	margin: 0;
	padding: 28px;
	overflow: auto;
	background:
		radial-gradient(circle at 15% 20%, rgba(214,51,132,.18), transparent 34%),
		radial-gradient(circle at 85% 80%, rgba(92,77,180,.20), transparent 34%),
		#f4f6fb;
}

.panda-login-page--simple[data-theme="dark"] {
	background:
		radial-gradient(circle at 15% 20%, rgba(255,105,173,.14), transparent 34%),
		radial-gradient(circle at 85% 80%, rgba(103,86,210,.22), transparent 34%),
		#0f1320;
}

.panda-login-bg {
	position: fixed;
	border-radius: 50%;
	filter: blur(16px);
	pointer-events: none;
	opacity: .55;
}

.panda-login-bg--one {
	top: -90px;
	left: -70px;
	width: 280px;
	height: 280px;
	background: rgba(214,51,132,.28);
}

.panda-login-bg--two {
	right: -100px;
	bottom: -100px;
	width: 340px;
	height: 340px;
	background: rgba(92,77,180,.28);
}

.panda-login-simple-wrap {
	position: relative;
	z-index: 2;
	width: min(480px, 100%);
}

.panda-login-simple-card {
	padding: 34px;
	border: 1px solid var(--login-border);
	border-radius: 28px;
	background: var(--login-surface);
	box-shadow: 0 32px 90px rgba(24,32,51,.18);
	backdrop-filter: blur(22px);
}

.panda-login-page--simple[data-theme="dark"] .panda-login-simple-card {
	box-shadow: 0 34px 100px rgba(0,0,0,.46);
}

.panda-login-simple-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 34px;
}

.panda-login-simple-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--login-text);
	font-size: 18px;
	font-weight: 850;
}

.panda-login-simple-brand > span {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(24,32,51,.08);
}

.panda-login-simple-heading {
	margin-bottom: 24px;
}

.panda-login-simple-heading h1 {
	margin: 0 0 8px;
	color: var(--login-text);
	font-size: clamp(34px, 6vw, 44px);
	line-height: 1.08;
	letter-spacing: -.035em;
}

.panda-login-simple-heading p {
	margin: 0;
	color: var(--login-muted);
	font-size: 16px;
}

.panda-login-form--simple {
	margin-top: 0;
}

.panda-login-simple-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--login-border);
	color: var(--login-muted);
	font-size: 12px;
}

.panda-login-page--simple .panda-login-theme-switch {
	flex-shrink: 0;
}

.panda-login-page--simple .panda-login-theme-switch button {
	width: 40px;
	height: 38px;
	padding: 0;
	justify-content: center;
}

@media (max-width: 560px) {
	.panda-login-page--simple {
		align-items: start;
		padding: 18px 12px;
	}

	.panda-login-simple-wrap {
		margin-top: 18px;
	}

	.panda-login-simple-card {
		padding: 24px 18px;
		border-radius: 22px;
	}

	.panda-login-simple-top {
		margin-bottom: 26px;
	}

	.panda-login-options {
		gap: 12px;
	}

	.panda-login-options a {
		font-size: 13px;
	}
}


/* Panda Team 1.5.3 — odzyskiwanie hasła */
.panda-login-password-note {
	margin: -4px 0 0;
	color: var(--login-muted);
	font-size: 12px;
	line-height: 1.45;
}

.panda-login-success {
	margin: 0 0 20px;
	padding: 13px 15px;
	border: 1px solid rgba(44, 167, 102, .28);
	border-radius: 12px;
	background: rgba(44, 167, 102, .11);
	color: #237548;
	font-weight: 700;
}

.panda-login-simple-footer a {
	color: var(--login-accent);
	font-weight: 750;
	text-decoration: none;
}


/* Panda Team 1.5.4 — wspólny motyw w całym portalu */
html,
body,
.panda-panel-shell,
.panda-project-panel,
.panda-login-page {
	transition:
		background-color .25s ease,
		color .25s ease,
		border-color .25s ease;
}

.panda-app-theme-switch {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	max-width: 1200px;
	margin: 0 auto 16px;
}

.panda-app-theme-switch button {
	padding: 8px 12px;
	border: 1px solid rgba(24,32,51,.10);
	border-radius: 11px;
	background: #fff;
	color: #526071;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.panda-app-theme-switch button[aria-pressed="true"] {
	border-color: rgba(214,51,132,.28);
	background: #fde7f2;
	color: #9f215d;
}

body[data-panda-theme="dark"] {
	background: #0f1320;
	color: #f6f7fb;
}

body[data-panda-theme="dark"] .site,
body[data-panda-theme="dark"] .site-content,
body[data-panda-theme="dark"] main {
	background: #0f1320;
}

[data-panda-theme="dark"] .panda-panel-shell,
[data-panda-theme="dark"] .panda-project-panel {
	color: #f6f7fb;
}

[data-panda-theme="dark"] .panda-panel-section-heading h2,
[data-panda-theme="dark"] .panda-project-section-heading h2,
[data-panda-theme="dark"] .panda-panel-project-body h3 {
	color: #f6f7fb;
}

[data-panda-theme="dark"] .panda-panel-project-card,
[data-panda-theme="dark"] .panda-project-episode,
[data-panda-theme="dark"] .panda-panel-empty,
[data-panda-theme="dark"] .panda-portal-message,
[data-panda-theme="dark"] .panda-portal-admin-link {
	border-color: rgba(255,255,255,.08);
	background: #181e30;
	color: #f6f7fb;
	box-shadow: 0 16px 38px rgba(0,0,0,.28);
}

[data-panda-theme="dark"] .panda-panel-project-body p,
[data-panda-theme="dark"] .panda-project-episode small,
[data-panda-theme="dark"] .panda-panel-empty,
[data-panda-theme="dark"] .panda-project-description {
	color: #aeb7c9;
}

[data-panda-theme="dark"] .panda-project-episode__number {
	background: #2b334d;
}

[data-panda-theme="dark"] .panda-app-theme-switch button {
	border-color: rgba(255,255,255,.09);
	background: #181e30;
	color: #aeb7c9;
}

[data-panda-theme="dark"] .panda-app-theme-switch button[aria-pressed="true"] {
	background: rgba(255,105,173,.14);
	color: #ff8fc0;
}

[data-panda-theme="dark"] .panda-panel-project-status,
[data-panda-theme="dark"] .panda-panel-section-heading span,
[data-panda-theme="dark"] .panda-project-section-heading span {
	background: rgba(255,105,173,.14);
	color: #ff8fc0;
}

[data-panda-theme="dark"] .panda-project-episode__status {
	background: #252d43;
	color: #c7cfdd;
}

[data-panda-theme="dark"] .panda-project-episode__status--translation {
	background: rgba(76,113,255,.16);
	color: #98b2ff;
}

[data-panda-theme="dark"] .panda-project-episode__status--proofreading {
	background: rgba(217,155,24,.15);
	color: #f0c764;
}

[data-panda-theme="dark"] .panda-project-episode__status--finished,
[data-panda-theme="dark"] .panda-project-completed-label {
	background: rgba(44,167,102,.16);
	color: #76d6a1;
}

[data-panda-theme="dark"] .panda-project-back,
[data-panda-theme="dark"] .panda-panel-project-open {
	color: #ff8fc0;
}

@media (max-width: 560px) {
	.panda-app-theme-switch {
		justify-content: center;
	}
}


/* Panda Team 1.6 — dashboard użytkownika */
.panda-dashboard {
	max-width: 1280px;
}

.panda-dashboard-header {
	margin-bottom: 24px;
}

.panda-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 26px;
}

.panda-dashboard-stat {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	border: 1px solid rgba(24,32,51,.08);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(32,38,58,.06);
}

.panda-dashboard-stat > span {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: #fde7f2;
	font-size: 21px;
}

.panda-dashboard-stat small {
	display: block;
	margin-bottom: 3px;
	color: var(--panda-portal-muted);
}

.panda-dashboard-stat strong {
	color: var(--panda-portal-text);
	font-size: 26px;
	line-height: 1;
}

.panda-dashboard-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
	gap: 26px;
	align-items: start;
}

.panda-dashboard-section {
	min-width: 0;
}

.panda-dashboard-task-groups {
	display: grid;
	gap: 18px;
}

.panda-dashboard-task-group {
	padding: 20px;
	border: 1px solid rgba(24,32,51,.08);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(32,38,58,.06);
}

.panda-dashboard-task-group__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.panda-dashboard-task-group__heading h3 {
	margin: 0;
	color: var(--panda-portal-text);
	font-size: 19px;
}

.panda-dashboard-task-group__heading span {
	display: grid;
	place-items: center;
	min-width: 30px;
	height: 30px;
	border-radius: 999px;
	background: #eef1f6;
	color: #596477;
	font-weight: 800;
}

.panda-dashboard-task-list {
	display: grid;
	gap: 10px;
}

.panda-dashboard-task {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 13px;
	border: 1px solid rgba(24,32,51,.07);
	border-radius: 14px;
	background: #fafbfd;
}

.panda-dashboard-task__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #fff;
}

.panda-dashboard-task__content {
	min-width: 0;
}

.panda-dashboard-task__content strong,
.panda-dashboard-task__content span {
	display: block;
}

.panda-dashboard-task__content strong {
	overflow: hidden;
	color: var(--panda-portal-text);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.panda-dashboard-task__content span {
	margin-top: 3px;
	color: var(--panda-portal-muted);
	font-size: 13px;
}

.panda-dashboard-task > a {
	padding: 8px 11px;
	border-radius: 10px;
	background: #fde7f2;
	color: #9f215d;
	font-weight: 800;
	text-decoration: none;
}

.panda-dashboard-empty-small {
	padding: 16px;
	border: 1px dashed #d5dbe5;
	border-radius: 13px;
	color: var(--panda-portal-muted);
	text-align: center;
}

.panda-panel-projects--compact {
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

[data-panda-theme="dark"] .panda-dashboard-stat,
[data-panda-theme="dark"] .panda-dashboard-task-group,
[data-panda-theme="dark"] .panda-dashboard-task {
	border-color: rgba(255,255,255,.08);
	background: #181e30;
	box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

[data-panda-theme="dark"] .panda-dashboard-stat > span,
[data-panda-theme="dark"] .panda-dashboard-task__icon,
[data-panda-theme="dark"] .panda-dashboard-task-group__heading span {
	background: #252d43;
}

[data-panda-theme="dark"] .panda-dashboard-stat strong,
[data-panda-theme="dark"] .panda-dashboard-task-group__heading h3,
[data-panda-theme="dark"] .panda-dashboard-task__content strong {
	color: #f6f7fb;
}

[data-panda-theme="dark"] .panda-dashboard-task > a {
	background: rgba(255,105,173,.14);
	color: #ff8fc0;
}

[data-panda-theme="dark"] .panda-dashboard-empty-small {
	border-color: rgba(255,255,255,.10);
	color: #aeb7c9;
}

@media (max-width: 1050px) {
	.panda-dashboard-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.panda-dashboard-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.panda-dashboard-stats {
		grid-template-columns: 1fr;
	}

	.panda-dashboard-task {
		grid-template-columns: 42px minmax(0, 1fr);
	}

	.panda-dashboard-task > a {
		grid-column: 2;
		justify-self: start;
	}
}


/* Panda Team 1.6.1 — dopracowanie dashboardu */
.panda-dashboard-grid {
	grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
	grid-template-areas:
		"tasks projects"
		"activity projects";
}

.panda-dashboard-section--tasks {
	grid-area: tasks;
}

.panda-dashboard-activity {
	grid-area: activity;
}

.panda-dashboard-projects-section {
	grid-area: projects;
}

.panda-dashboard-all-clear {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px;
	border: 1px dashed #d3d9e4;
	border-radius: 18px;
	background: rgba(255,255,255,.55);
}

.panda-dashboard-all-clear > span {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
	border-radius: 15px;
	background: #fde7f2;
	font-size: 23px;
}

.panda-dashboard-all-clear strong,
.panda-dashboard-all-clear p {
	display: block;
}

.panda-dashboard-all-clear strong {
	color: var(--panda-portal-text);
	font-size: 17px;
}

.panda-dashboard-all-clear p {
	margin: 4px 0 0;
	color: var(--panda-portal-muted);
}

.panda-dashboard-activity-list {
	display: grid;
	gap: 10px;
}

.panda-dashboard-activity-item {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 14px 16px;
	border: 1px solid rgba(24,32,51,.07);
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(32,38,58,.05);
}

.panda-dashboard-activity-item__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 12px;
	background: #f5f7fb;
}

.panda-dashboard-activity-item strong,
.panda-dashboard-activity-item span {
	display: block;
}

.panda-dashboard-activity-item strong {
	color: var(--panda-portal-text);
}

.panda-dashboard-activity-item span {
	margin-top: 3px;
	color: var(--panda-portal-muted);
	font-size: 13px;
}

.panda-panel-projects--compact {
	grid-template-columns: 1fr;
}

.panda-dashboard-project-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0;
	color: var(--panda-portal-muted);
	font-size: 13px;
}

.panda-dashboard-project-progress {
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: #e9edf4;
}

.panda-dashboard-project-progress > div {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #d63384, #f29bc4);
}

.panda-dashboard-project-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 14px;
}

.panda-dashboard-project-footer > strong {
	color: var(--panda-portal-text);
	font-size: 18px;
}

.panda-dashboard-project-footer .panda-panel-project-open {
	width: auto;
	min-height: 40px;
	margin: 0;
	padding-inline: 14px;
}

[data-panda-theme="dark"] .panda-dashboard-all-clear,
[data-panda-theme="dark"] .panda-dashboard-activity-item {
	border-color: rgba(255,255,255,.08);
	background: #181e30;
	box-shadow: 0 10px 24px rgba(0,0,0,.24);
}

[data-panda-theme="dark"] .panda-dashboard-all-clear > span,
[data-panda-theme="dark"] .panda-dashboard-activity-item__icon {
	background: #252d43;
}

[data-panda-theme="dark"] .panda-dashboard-all-clear strong,
[data-panda-theme="dark"] .panda-dashboard-activity-item strong,
[data-panda-theme="dark"] .panda-dashboard-project-footer > strong {
	color: #f6f7fb;
}

[data-panda-theme="dark"] .panda-dashboard-project-progress {
	background: #293149;
}

@media (max-width: 1050px) {
	.panda-dashboard-grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"tasks"
			"activity"
			"projects";
	}

	.panda-panel-projects--compact {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	}
}


/* Panda Team 2.0 — nowy dashboard */
.panda-v2-dashboard {
	--v2-bg: #f4f6fb;
	--v2-card: #ffffff;
	--v2-card-soft: #f8f9fc;
	--v2-text: #182033;
	--v2-muted: #748095;
	--v2-border: rgba(24, 32, 51, .08);
	--v2-accent: #d63384;
	--v2-accent-soft: #fde7f2;
	--v2-shadow: 0 18px 45px rgba(32, 38, 58, .08);
	max-width: 1280px;
	margin: 0 auto;
	padding: 34px 24px 70px;
	color: var(--v2-text);
}

[data-panda-theme="dark"] .panda-v2-dashboard {
	--v2-bg: #0f1320;
	--v2-card: #181e30;
	--v2-card-soft: #131928;
	--v2-text: #f6f7fb;
	--v2-muted: #aeb7c9;
	--v2-border: rgba(255, 255, 255, .08);
	--v2-accent: #ff69ad;
	--v2-accent-soft: rgba(255, 105, 173, .14);
	--v2-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

body:has(.panda-v2-dashboard) {
	background: var(--v2-bg, #f4f6fb);
}

.panda-v2-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 20px;
}

.panda-v2-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 850;
}

.panda-v2-brand > span {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 13px;
	background: var(--v2-card);
	box-shadow: var(--v2-shadow);
}

.panda-v2-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.panda-v2-toolbar .panda-app-theme-switch {
	margin: 0;
}

.panda-v2-logout {
	padding: 9px 13px;
	border: 1px solid var(--v2-border);
	border-radius: 11px;
	background: var(--v2-card);
	color: var(--v2-text);
	font-weight: 750;
	text-decoration: none;
}

.panda-v2-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 20px;
	padding: 34px;
	border-radius: 26px;
	background:
		linear-gradient(135deg, #20263a 0%, #30364f 54%, #70214f 100%);
	color: #fff;
	box-shadow: 0 24px 60px rgba(32,38,58,.18);
}

.panda-v2-kicker,
.panda-v2-section__eyebrow {
	display: inline-flex;
	margin-bottom: 7px;
	color: #f4a7ca;
	font-size: 12px;
	font-weight: 850;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.panda-v2-hero h1 {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1;
	letter-spacing: -.035em;
}

.panda-v2-hero p {
	margin: 0;
	color: rgba(255,255,255,.72);
	font-size: 17px;
}

.panda-v2-hero__badge {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 180px;
	padding: 16px 18px;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 18px;
	background: rgba(255,255,255,.08);
	backdrop-filter: blur(12px);
}

.panda-v2-hero__badge > span {
	font-size: 28px;
}

.panda-v2-hero__badge small,
.panda-v2-hero__badge strong {
	display: block;
}

.panda-v2-hero__badge small {
	color: rgba(255,255,255,.66);
}

.panda-v2-hero__badge strong {
	margin-top: 2px;
	font-size: 28px;
	line-height: 1;
}

.panda-v2-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 30px;
}

.panda-v2-stats article {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 17px;
	border: 1px solid var(--v2-border);
	border-radius: 18px;
	background: var(--v2-card);
	box-shadow: var(--v2-shadow);
}

.panda-v2-stats article > span {
	display: grid;
	place-items: center;
	width: 45px;
	height: 45px;
	flex: 0 0 45px;
	border-radius: 14px;
	background: var(--v2-accent-soft);
	font-size: 21px;
}

.panda-v2-stats strong,
.panda-v2-stats small {
	display: block;
}

.panda-v2-stats strong {
	color: var(--v2-text);
	font-size: 27px;
	line-height: 1;
}

.panda-v2-stats small {
	margin-top: 4px;
	color: var(--v2-muted);
}

.panda-v2-section {
	margin-top: 30px;
}

.panda-v2-section__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
}

.panda-v2-section__heading h2 {
	margin: 0;
	color: var(--v2-text);
	font-size: 30px;
	letter-spacing: -.02em;
}

.panda-v2-count {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding-inline: 10px;
	border-radius: 999px;
	background: var(--v2-accent-soft);
	color: var(--v2-accent);
	font-weight: 850;
}

.panda-v2-task-list {
	display: grid;
	gap: 10px;
}

.panda-v2-task {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto auto;
	gap: 14px;
	align-items: center;
	padding: 15px;
	border: 1px solid var(--v2-border);
	border-radius: 16px;
	background: var(--v2-card);
	box-shadow: var(--v2-shadow);
}

.panda-v2-task__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--v2-card-soft);
	font-size: 20px;
}

.panda-v2-task__body span,
.panda-v2-task__body strong {
	display: block;
}

.panda-v2-task__body span {
	color: var(--v2-muted);
	font-size: 13px;
}

.panda-v2-task__body strong {
	margin-top: 3px;
	color: var(--v2-text);
	font-size: 16px;
}

.panda-v2-task__status {
	padding: 7px 10px;
	border-radius: 999px;
	background: #e8efff;
	color: #315ca8;
	font-size: 12px;
	font-weight: 850;
}

.panda-v2-task--proofreading .panda-v2-task__status {
	background: #fff3d7;
	color: #896108;
}

.panda-v2-task > a {
	padding: 9px 12px;
	border-radius: 10px;
	background: var(--v2-accent-soft);
	color: var(--v2-accent);
	font-weight: 850;
	text-decoration: none;
}

.panda-v2-project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

.panda-v2-project-card {
	overflow: hidden;
	border: 1px solid var(--v2-border);
	border-radius: 20px;
	background: var(--v2-card);
	box-shadow: var(--v2-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}

.panda-v2-project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 48px rgba(32,38,58,.13);
}

.panda-v2-project-card__poster {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--v2-card-soft);
}

.panda-v2-project-card__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.panda-v2-project-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-size: 54px;
}

.panda-v2-project-card__status {
	position: absolute;
	left: 14px;
	bottom: 14px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(15,19,32,.76);
	color: #fff;
	font-size: 12px;
	font-weight: 850;
	backdrop-filter: blur(10px);
}

.panda-v2-project-card__body {
	padding: 17px;
}

.panda-v2-project-card__body h3 {
	margin: 0 0 12px;
	color: var(--v2-text);
	font-size: 18px;
}

.panda-v2-project-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--v2-muted);
	font-size: 13px;
}

.panda-v2-project-card__meta strong {
	color: var(--v2-text);
}

.panda-v2-progress {
	height: 8px;
	margin: 12px 0 14px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--v2-card-soft);
}

.panda-v2-progress > div {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--v2-accent), #f29bc4);
}

.panda-v2-project-card__body > a {
	display: inline-flex;
	color: var(--v2-accent);
	font-weight: 850;
	text-decoration: none;
}

.panda-v2-timeline {
	display: grid;
	gap: 10px;
}

.panda-v2-timeline__item {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 14px 16px;
	border: 1px solid var(--v2-border);
	border-radius: 15px;
	background: var(--v2-card);
	box-shadow: var(--v2-shadow);
}

.panda-v2-timeline__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 12px;
	background: var(--v2-card-soft);
}

.panda-v2-timeline__item strong,
.panda-v2-timeline__item span {
	display: block;
}

.panda-v2-timeline__item strong {
	color: var(--v2-text);
}

.panda-v2-timeline__item span {
	margin-top: 3px;
	color: var(--v2-muted);
	font-size: 13px;
}

.panda-v2-empty {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px;
	border: 1px dashed var(--v2-border);
	border-radius: 18px;
	background: var(--v2-card);
}

.panda-v2-empty > span {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
	border-radius: 15px;
	background: var(--v2-accent-soft);
	font-size: 23px;
}

.panda-v2-empty strong,
.panda-v2-empty p {
	display: block;
}

.panda-v2-empty strong {
	color: var(--v2-text);
}

.panda-v2-empty p {
	margin: 4px 0 0;
	color: var(--v2-muted);
}

@media (max-width: 900px) {
	.panda-v2-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.panda-v2-hero {
		align-items: flex-start;
		flex-direction: column;
	}

	.panda-v2-hero__badge {
		min-width: 0;
	}
}

@media (max-width: 620px) {
	.panda-v2-dashboard {
		padding: 20px 14px 50px;
	}

	.panda-v2-toolbar {
		align-items: flex-start;
	}

	.panda-v2-toolbar__actions {
		align-items: flex-end;
		flex-direction: column;
	}

	.panda-v2-hero {
		padding: 24px 20px;
	}

	.panda-v2-stats {
		grid-template-columns: 1fr;
	}

	.panda-v2-task {
		grid-template-columns: 46px 1fr;
	}

	.panda-v2-task__status,
	.panda-v2-task > a {
		grid-column: 2;
		justify-self: start;
	}

	.panda-v2-project-grid {
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	}
}


/* Panda Team 2.0.2 — pełny ciemny motyw strony */
body[data-panda-theme="dark"],
html[data-panda-theme="dark"] {
	background: #0f1320 !important;
	color-scheme: dark;
}

body[data-panda-theme="dark"] .wp-site-blocks,
body[data-panda-theme="dark"] .site,
body[data-panda-theme="dark"] .site-content,
body[data-panda-theme="dark"] .site-main,
body[data-panda-theme="dark"] main,
body[data-panda-theme="dark"] .entry-content,
body[data-panda-theme="dark"] .wp-block-post-content {
	background: #0f1320 !important;
	color: #f6f7fb !important;
}

body[data-panda-theme="dark"] header,
body[data-panda-theme="dark"] .site-header,
body[data-panda-theme="dark"] .wp-block-template-part > header,
body[data-panda-theme="dark"] .wp-block-group:has(nav) {
	background: #111726 !important;
	color: #f6f7fb !important;
	border-color: rgba(255,255,255,.08) !important;
}

body[data-panda-theme="dark"] nav,
body[data-panda-theme="dark"] .wp-block-navigation,
body[data-panda-theme="dark"] .wp-block-navigation__responsive-container,
body[data-panda-theme="dark"] .wp-block-navigation__responsive-container-content {
	background: #111726 !important;
	color: #f6f7fb !important;
}

body[data-panda-theme="dark"] header a,
body[data-panda-theme="dark"] nav a,
body[data-panda-theme="dark"] .site-header a,
body[data-panda-theme="dark"] .wp-block-site-title a,
body[data-panda-theme="dark"] .wp-block-navigation-item__content {
	color: #f6f7fb !important;
}

body[data-panda-theme="dark"] header a:hover,
body[data-panda-theme="dark"] nav a:hover,
body[data-panda-theme="dark"] .wp-block-navigation-item__content:hover {
	color: #ff8fc0 !important;
}

body[data-panda-theme="dark"] footer,
body[data-panda-theme="dark"] .site-footer,
body[data-panda-theme="dark"] .wp-block-template-part > footer {
	background: #111726 !important;
	color: #aeb7c9 !important;
	border-color: rgba(255,255,255,.08) !important;
}

body[data-panda-theme="dark"] footer a,
body[data-panda-theme="dark"] .site-footer a {
	color: #f6f7fb !important;
}

body[data-panda-theme="dark"] .wp-block-heading,
body[data-panda-theme="dark"] h1,
body[data-panda-theme="dark"] h2,
body[data-panda-theme="dark"] h3,
body[data-panda-theme="dark"] h4,
body[data-panda-theme="dark"] h5,
body[data-panda-theme="dark"] h6 {
	color: #f6f7fb;
}

body[data-panda-theme="dark"] .wp-block-post-title,
body[data-panda-theme="dark"] .entry-title {
	color: #f6f7fb !important;
}

body[data-panda-theme="dark"] .wp-block-button__link,
body[data-panda-theme="dark"] button,
body[data-panda-theme="dark"] input,
body[data-panda-theme="dark"] select,
body[data-panda-theme="dark"] textarea {
	border-color: rgba(255,255,255,.10);
}

body[data-panda-theme="dark"] .wp-block-navigation__responsive-container-open,
body[data-panda-theme="dark"] .wp-block-navigation__responsive-container-close {
	color: #f6f7fb !important;
	fill: #f6f7fb !important;
}

/* Jasny motyw przywraca czytelny nagłówek motywu. */
body[data-panda-theme="light"] header,
body[data-panda-theme="light"] .site-header,
body[data-panda-theme="light"] .wp-block-template-part > header {
	color: #182033;
}

body[data-panda-theme="light"] header a,
body[data-panda-theme="light"] nav a,
body[data-panda-theme="light"] .site-header a,
body[data-panda-theme="light"] .wp-block-site-title a,
body[data-panda-theme="light"] .wp-block-navigation-item__content {
	color: #182033;
}


/* Panda Team 2.0.3 — usuwa oprawę strony WordPressa z dashboardu */
body:has(.panda-v2-dashboard) .wp-block-post-title,
body:has(.panda-v2-dashboard) .entry-title,
body:has(.panda-v2-dashboard) .page-title,
body:has(.panda-v2-dashboard) .entry-header {
	display: none !important;
}

body:has(.panda-v2-dashboard) .wp-block-group:has(> .wp-block-post-title),
body:has(.panda-v2-dashboard) .wp-block-group:has(.entry-title) {
	display: none !important;
}

body:has(.panda-v2-dashboard) main,
body:has(.panda-v2-dashboard) .site-main,
body:has(.panda-v2-dashboard) .entry-content,
body:has(.panda-v2-dashboard) .wp-block-post-content {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body:has(.panda-v2-dashboard) .wp-site-blocks {
	padding-top: 0 !important;
}

body:has(.panda-v2-dashboard) .panda-v2-dashboard {
	width: min(1280px, calc(100% - 36px));
	margin: 0 auto;
	padding-top: 28px;
}

body[data-panda-theme="dark"]:has(.panda-v2-dashboard) .wp-site-blocks,
body[data-panda-theme="dark"]:has(.panda-v2-dashboard) main,
body[data-panda-theme="dark"]:has(.panda-v2-dashboard) .wp-block-post-content {
	background: #0f1320 !important;
}

@media (max-width: 620px) {
	body:has(.panda-v2-dashboard) .panda-v2-dashboard {
		width: calc(100% - 20px);
		padding-top: 18px;
	}
}


/* Panda Team 2.1 — edytor tłumaczenia i korekty */
.panda-project-episode {
	grid-template-columns:
		54px minmax(180px, 1fr) minmax(130px, .6fr)
		minmax(130px, .6fr) minmax(120px, auto) minmax(130px, auto);
}

.panda-project-episode__editor-link a {
	display: inline-flex;
	padding: 9px 12px;
	border-radius: 10px;
	background: rgba(214,51,132,.12);
	color: #a82362;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

[data-panda-theme="dark"] .panda-project-episode__editor-link a {
	background: rgba(255,105,173,.14);
	color: #ff8fc0;
}

.panda-episode-editor {
	--editor-card: #ffffff;
	--editor-soft: #f7f8fb;
	--editor-text: #182033;
	--editor-muted: #758095;
	--editor-border: rgba(24,32,51,.10);
	max-width: 1450px;
	margin: 0 auto;
	padding: 28px 24px 60px;
	color: var(--editor-text);
}

[data-panda-theme="dark"] .panda-episode-editor {
	--editor-card: #181e30;
	--editor-soft: #101522;
	--editor-text: #f6f7fb;
	--editor-muted: #aeb7c9;
	--editor-border: rgba(255,255,255,.09);
}

.panda-episode-editor__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.panda-episode-editor__toolbar > a {
	color: #d63384;
	font-weight: 800;
	text-decoration: none;
}

.panda-episode-editor__toolbar .panda-app-theme-switch {
	margin: 0;
}

.panda-episode-editor__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 22px;
	padding: 28px;
	border-radius: 22px;
	background: linear-gradient(135deg, #20263a, #6e214e);
	color: #fff;
}

.panda-episode-editor__header h1 {
	margin: 0 0 6px;
	color: #fff;
	font-size: clamp(30px, 4vw, 48px);
}

.panda-episode-editor__header p {
	margin: 0;
	color: rgba(255,255,255,.72);
	font-size: 18px;
}

.panda-episode-editor__summary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	min-width: 280px;
}

.panda-episode-editor__summary > div {
	padding: 13px 15px;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 14px;
	background: rgba(255,255,255,.08);
}

.panda-episode-editor__summary small,
.panda-episode-editor__summary strong {
	display: block;
}

.panda-episode-editor__summary small {
	color: rgba(255,255,255,.65);
}

.panda-episode-editor__summary strong {
	margin-top: 3px;
	color: #fff;
}

.panda-episode-editor__form {
	display: grid;
	gap: 18px;
}

.panda-episode-editor__columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.panda-episode-editor__panel {
	padding: 18px;
	border: 1px solid var(--editor-border);
	border-radius: 20px;
	background: var(--editor-card);
	box-shadow: 0 16px 38px rgba(32,38,58,.07);
}

[data-panda-theme="dark"] .panda-episode-editor__panel {
	box-shadow: 0 16px 38px rgba(0,0,0,.28);
}

.panda-episode-editor__panel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 13px;
}

.panda-episode-editor__panel-heading > div {
	display: flex;
	align-items: center;
	gap: 10px;
}

.panda-episode-editor__panel-heading h2 {
	margin: 0;
	color: var(--editor-text);
	font-size: 20px;
}

.panda-episode-editor__panel-heading small {
	color: var(--editor-muted);
}

.panda-episode-editor__panel textarea {
	width: 100%;
	min-height: 540px;
	padding: 18px;
	border: 1px solid var(--editor-border);
	border-radius: 15px;
	background: var(--editor-soft);
	color: var(--editor-text);
	font: 15px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	resize: vertical;
	outline: none;
}

.panda-episode-editor__panel textarea:focus {
	border-color: #d63384;
	box-shadow: 0 0 0 4px rgba(214,51,132,.12);
}

.panda-episode-editor__panel textarea[readonly] {
	opacity: .82;
	cursor: default;
}

.panda-episode-editor__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
	border: 1px solid var(--editor-border);
	border-radius: 17px;
	background: var(--editor-card);
}

.panda-episode-editor__footer p {
	margin: 0;
	color: var(--editor-muted);
}

.panda-episode-editor__save {
	min-height: 48px;
	padding: 0 18px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #d63384, #9f215d);
	color: #fff;
	font-weight: 850;
	cursor: pointer;
}

body:has(.panda-episode-editor) .wp-block-post-title,
body:has(.panda-episode-editor) .entry-title,
body:has(.panda-episode-editor) .entry-header {
	display: none !important;
}

body:has(.panda-episode-editor) main,
body:has(.panda-episode-editor) .entry-content,
body:has(.panda-episode-editor) .wp-block-post-content {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

@media (max-width: 1050px) {
	.panda-project-episode {
		grid-template-columns: 46px 1fr;
	}

	.panda-project-episode > div:nth-child(n+3) {
		grid-column: 2;
	}

	.panda-project-episode__editor-link {
		grid-column: 2;
	}

	.panda-episode-editor__columns {
		grid-template-columns: 1fr;
	}

	.panda-episode-editor__panel textarea {
		min-height: 380px;
	}
}

@media (max-width: 650px) {
	.panda-episode-editor {
		padding: 18px 12px 40px;
	}

	.panda-episode-editor__header,
	.panda-episode-editor__footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.panda-episode-editor__summary {
		width: 100%;
		min-width: 0;
	}

	.panda-episode-editor__save {
		width: 100%;
	}
}


/* Panda Team 2.2 — Panda Studio */
.panda-studio {
	--studio-bg: #f3f5fa;
	--studio-card: #ffffff;
	--studio-soft: #f7f8fc;
	--studio-text: #182033;
	--studio-muted: #748095;
	--studio-border: rgba(24,32,51,.09);
	--studio-accent: #d63384;
	--studio-shadow: 0 18px 45px rgba(32,38,58,.08);
	min-height: 100vh;
	padding: 22px 24px 46px;
	background: var(--studio-bg);
	color: var(--studio-text);
}

[data-panda-theme="dark"] .panda-studio {
	--studio-bg: #0f1320;
	--studio-card: #181e30;
	--studio-soft: #101522;
	--studio-text: #f6f7fb;
	--studio-muted: #aeb7c9;
	--studio-border: rgba(255,255,255,.08);
	--studio-accent: #ff69ad;
	--studio-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.panda-studio__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1500px;
	margin: 0 auto 16px;
}

.panda-studio__brand {
	display: flex;
	align-items: center;
	gap: 11px;
}

.panda-studio__brand > span {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: var(--studio-card);
	box-shadow: var(--studio-shadow);
}

.panda-studio__brand strong,
.panda-studio__brand small {
	display: block;
}

.panda-studio__brand strong {
	font-size: 18px;
}

.panda-studio__brand small {
	margin-top: 2px;
	color: var(--studio-muted);
}

.panda-studio__topbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.panda-studio__topbar-actions .panda-app-theme-switch {
	margin: 0;
}

.panda-studio__topbar-actions > a {
	padding: 9px 12px;
	border: 1px solid var(--studio-border);
	border-radius: 11px;
	background: var(--studio-card);
	color: var(--studio-text);
	font-weight: 800;
	text-decoration: none;
}

.panda-studio__hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	max-width: 1500px;
	margin: 0 auto 18px;
	padding: 25px 28px;
	border-radius: 22px;
	background: linear-gradient(135deg, #20263a, #6e214e);
	color: #fff;
	box-shadow: 0 22px 55px rgba(32,38,58,.18);
}

.panda-studio__hero h1 {
	margin: 0 0 6px;
	color: #fff;
	font-size: clamp(28px, 4vw, 44px);
}

.panda-studio__hero p {
	margin: 0;
	color: rgba(255,255,255,.72);
}

.panda-studio__hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.panda-studio__file-button,
.panda-studio__export {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 11px;
	background: rgba(255,255,255,.10);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.panda-studio__file-button input {
	display: none;
}

.panda-studio__export:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.panda-studio__workspace {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 240px;
	gap: 18px;
	max-width: 1500px;
	margin: 0 auto 18px;
}

.panda-studio__video-panel,
.panda-studio__stats,
.panda-studio__editor,
.panda-studio__footer {
	border: 1px solid var(--studio-border);
	background: var(--studio-card);
	box-shadow: var(--studio-shadow);
}

.panda-studio__video-panel {
	padding: 16px;
	border-radius: 20px;
}

.panda-studio__video-wrap {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 15px;
	background: #070a10;
}

.panda-studio__video-wrap video {
	width: 100%;
	height: 100%;
	background: #000;
}

.panda-studio__video-wrap video:not([src]) {
	display: none;
}

.panda-studio__video-empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	align-content: center;
	padding: 24px;
	color: #c9d0dc;
	text-align: center;
}

.panda-studio__video-empty[hidden] {
	display: none;
}

.panda-studio__video-empty > span {
	font-size: 48px;
}

.panda-studio__video-empty strong {
	margin-top: 10px;
	color: #fff;
	font-size: 18px;
}

.panda-studio__video-empty p {
	max-width: 520px;
	margin: 7px 0 0;
	color: #9099aa;
}

.panda-studio__video-controls {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 12px;
}

.panda-studio__video-controls button,
.panda-studio__video-controls select {
	min-height: 38px;
	padding: 0 11px;
	border: 1px solid var(--studio-border);
	border-radius: 9px;
	background: var(--studio-soft);
	color: var(--studio-text);
	font-weight: 700;
}

.panda-studio__video-controls label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	color: var(--studio-muted);
	font-size: 13px;
}

.panda-studio__stats {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 16px;
	border-radius: 20px;
}

.panda-studio__stats > div {
	padding: 15px;
	border-radius: 14px;
	background: var(--studio-soft);
}

.panda-studio__stats small,
.panda-studio__stats strong {
	display: block;
}

.panda-studio__stats small {
	color: var(--studio-muted);
}

.panda-studio__stats strong {
	margin-top: 4px;
	color: var(--studio-text);
	font-size: 28px;
}

.panda-studio__editor {
	max-width: 1500px;
	margin: 0 auto 18px;
	padding: 18px;
	border-radius: 20px;
}

.panda-studio__editor-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 14px;
}

.panda-studio__editor-heading h2 {
	margin: 0 0 4px;
	color: var(--studio-text);
	font-size: 24px;
}

.panda-studio__editor-heading p {
	margin: 0;
	color: var(--studio-muted);
}

.panda-studio__search input {
	min-height: 42px;
	padding: 0 13px;
	border: 1px solid var(--studio-border);
	border-radius: 11px;
	background: var(--studio-soft);
	color: var(--studio-text);
}

.panda-studio__empty {
	display: grid;
	place-items: center;
	padding: 52px 20px;
	border: 1px dashed var(--studio-border);
	border-radius: 16px;
	color: var(--studio-muted);
	text-align: center;
}

.panda-studio__empty[hidden] {
	display: none;
}

.panda-studio__empty > span {
	font-size: 42px;
}

.panda-studio__empty strong {
	margin-top: 8px;
	color: var(--studio-text);
}

.panda-studio__empty p {
	margin: 5px 0 0;
}

.panda-studio__table-wrap {
	overflow: auto;
	max-height: 720px;
	border: 1px solid var(--studio-border);
	border-radius: 15px;
}

.panda-studio__table {
	width: 100%;
	min-width: 980px;
	border-collapse: collapse;
}

.panda-studio__table th {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 12px;
	background: var(--studio-soft);
	color: var(--studio-muted);
	font-size: 12px;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.panda-studio__table td {
	padding: 10px;
	border-top: 1px solid var(--studio-border);
	vertical-align: top;
}

.panda-studio__table tr.is-active {
	background: rgba(214,51,132,.08);
}

.panda-studio__number {
	width: 48px;
	color: var(--studio-muted);
	font-weight: 800;
	text-align: center;
}

.panda-studio__time {
	width: 165px;
}

.panda-studio__time button {
	width: 100%;
	padding: 9px;
	border: 0;
	border-radius: 9px;
	background: var(--studio-soft);
	color: var(--studio-text);
	font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
	cursor: pointer;
}

.panda-studio__time button span {
	color: var(--studio-muted);
}

.panda-studio__table textarea {
	width: 100%;
	min-height: 88px;
	padding: 11px;
	border: 1px solid var(--studio-border);
	border-radius: 10px;
	background: var(--studio-soft);
	color: var(--studio-text);
	font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
	resize: vertical;
	outline: none;
}

.panda-studio__table textarea:focus {
	border-color: var(--studio-accent);
	box-shadow: 0 0 0 3px rgba(214,51,132,.11);
}

.panda-studio__table textarea[readonly] {
	opacity: .82;
}

.panda-studio__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1500px;
	margin: 0 auto;
	padding: 14px 18px;
	border-radius: 15px;
}

.panda-studio__footer > div {
	display: flex;
	align-items: center;
	gap: 9px;
}

.panda-studio__status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #38b878;
	box-shadow: 0 0 0 5px rgba(56,184,120,.12);
}

.panda-studio__footer p {
	margin: 0;
	color: var(--studio-muted);
	font-size: 13px;
}

body:has(.panda-studio) .wp-block-post-title,
body:has(.panda-studio) .entry-title,
body:has(.panda-studio) .entry-header,
body:has(.panda-studio) header:not(.panda-studio__topbar),
body:has(.panda-studio) footer:not(.panda-studio__footer) {
	display: none !important;
}

body:has(.panda-studio) main,
body:has(.panda-studio) .entry-content,
body:has(.panda-studio) .wp-block-post-content,
body:has(.panda-studio) .wp-site-blocks {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: var(--studio-bg, #f3f5fa) !important;
}

@media (max-width: 1050px) {
	.panda-studio__workspace {
		grid-template-columns: 1fr;
	}

	.panda-studio__stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 760px) {
	.panda-studio {
		padding: 16px 12px 34px;
	}

	.panda-studio__topbar,
	.panda-studio__hero,
	.panda-studio__editor-heading,
	.panda-studio__footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.panda-studio__hero-actions {
		justify-content: flex-start;
	}

	.panda-studio__stats {
		grid-template-columns: 1fr;
	}

	.panda-studio__video-controls {
		flex-wrap: wrap;
	}

	.panda-studio__video-controls label {
		width: 100%;
		margin-left: 0;
	}

	.panda-studio__search,
	.panda-studio__search input {
		width: 100%;
	}
}


/* Panda Team 2.2.1 — desktopowy układ Panda Studio */
.panda-studio {
	padding: 14px 16px 32px;
}

.panda-studio__topbar,
.panda-studio__commandbar,
.panda-studio__workspace,
.panda-studio__editor,
.panda-studio__footer {
	width: min(1800px, calc(100vw - 32px));
	max-width: none;
}

.panda-studio__topbar {
	margin-bottom: 10px;
}

.panda-studio__commandbar {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto auto;
	gap: 18px;
	align-items: center;
	margin: 0 auto 12px;
	padding: 18px 20px;
	border: 1px solid var(--studio-border);
	border-radius: 18px;
	background: var(--studio-card);
	box-shadow: var(--studio-shadow);
}

.panda-studio__project-heading h1 {
	margin: 0 0 4px;
	color: var(--studio-text);
	font-size: clamp(24px, 2.8vw, 38px);
	line-height: 1.05;
}

.panda-studio__project-heading p {
	margin: 0;
	color: var(--studio-muted);
}

.panda-studio__command-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.panda-studio__commandbar .panda-studio__file-button,
.panda-studio__commandbar .panda-studio__export {
	min-height: 40px;
	padding: 0 12px;
	border-color: var(--studio-border);
	background: var(--studio-soft);
	color: var(--studio-text);
}

.panda-studio__commandbar .panda-studio__export:not(:disabled) {
	background: linear-gradient(135deg, #d63384, #9f215d);
	color: #fff;
	border-color: transparent;
}

.panda-studio__inline-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(88px, 1fr));
	gap: 8px;
}

.panda-studio__inline-stats > div {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 8px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--studio-soft);
}

.panda-studio__inline-stats span {
	grid-row: 1 / span 2;
	align-self: center;
	font-size: 18px;
}

.panda-studio__inline-stats strong {
	color: var(--studio-text);
	font-size: 20px;
	line-height: 1;
}

.panda-studio__inline-stats small {
	color: var(--studio-muted);
	font-size: 11px;
}

.panda-studio__workspace {
	grid-template-columns: 1fr;
	margin-bottom: 12px;
}

.panda-studio__video-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 14px;
	padding: 14px;
}

.panda-studio__video-wrap {
	aspect-ratio: 16 / 7;
}

.panda-studio__video-controls {
	display: grid;
	align-content: center;
	gap: 10px;
	margin-top: 0;
}

.panda-studio__video-controls button,
.panda-studio__video-controls select {
	width: 100%;
	min-height: 42px;
}

.panda-studio__video-controls label {
	display: grid;
	gap: 6px;
	width: 100%;
	margin-left: 0;
}

.panda-studio__editor {
	margin-bottom: 12px;
	padding: 14px;
}

.panda-studio__editor-heading {
	margin-bottom: 10px;
}

.panda-studio__table-wrap {
	max-height: calc(100vh - 390px);
	min-height: 360px;
}

.panda-studio__table th {
	padding: 10px;
}

.panda-studio__table td {
	padding: 8px;
}

.panda-studio__table textarea {
	min-height: 74px;
}

.panda-studio__footer {
	padding: 11px 14px;
}

body:has(.panda-studio) .wp-site-blocks {
	background: var(--studio-bg, #f3f5fa) !important;
}

@media (max-width: 1180px) {
	.panda-studio__commandbar {
		grid-template-columns: 1fr auto;
	}

	.panda-studio__inline-stats {
		grid-column: 1 / -1;
	}

	.panda-studio__video-panel {
		grid-template-columns: 1fr;
	}

	.panda-studio__video-controls {
		grid-template-columns: repeat(4, 1fr);
	}

	.panda-studio__video-controls label {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	.panda-studio {
		padding: 10px;
	}

	.panda-studio__topbar,
	.panda-studio__commandbar,
	.panda-studio__workspace,
	.panda-studio__editor,
	.panda-studio__footer {
		width: 100%;
	}

	.panda-studio__commandbar {
		grid-template-columns: 1fr;
	}

	.panda-studio__command-actions {
		justify-content: flex-start;
	}

	.panda-studio__inline-stats {
		grid-template-columns: 1fr;
	}

	.panda-studio__video-wrap {
		aspect-ratio: 16 / 9;
	}

	.panda-studio__video-controls {
		grid-template-columns: repeat(2, 1fr);
	}

	.panda-studio__table-wrap {
		max-height: none;
	}
}


/* Panda Team 2.3 — pełnoekranowe Panda Studio */
html:has(.panda-studio),
body:has(.panda-studio) {
	width: 100%;
	height: 100%;
	overflow: hidden !important;
	background: #0f1320 !important;
}

body:has(.panda-studio) {
	margin: 0 !important;
}

body:has(.panda-studio) .wp-site-blocks,
body:has(.panda-studio) main,
body:has(.panda-studio) .site-main,
body:has(.panda-studio) .entry-content,
body:has(.panda-studio) .wp-block-post-content,
body:has(.panda-studio) article,
body:has(.panda-studio) .wp-block-group {
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

body:has(.panda-studio) header:not(.panda-studio__topbar),
body:has(.panda-studio) footer:not(.panda-studio__footer),
body:has(.panda-studio) .wp-block-post-title,
body:has(.panda-studio) .entry-title,
body:has(.panda-studio) .entry-header,
body:has(.panda-studio) nav {
	display: none !important;
}

.panda-studio {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	grid-template-rows: 56px 82px 38px minmax(0, 42vh) minmax(0, 1fr);
	gap: 8px;
	width: 100vw;
	height: 100vh;
	min-height: 0;
	padding: 8px;
	overflow: hidden;
	background: var(--studio-bg);
}

.panda-studio__topbar,
.panda-studio__commandbar,
.panda-studio__statusbar,
.panda-studio__workspace,
.panda-studio__editor {
	width: 100%;
	max-width: none;
	margin: 0;
}

.panda-studio__topbar {
	padding: 0 12px;
	border: 1px solid var(--studio-border);
	border-radius: 12px;
	background: var(--studio-card);
}

.panda-studio__brand > span {
	width: 36px;
	height: 36px;
}

.panda-studio__brand strong {
	font-size: 16px;
}

.panda-studio__brand small {
	font-size: 12px;
}

.panda-studio__commandbar {
	grid-template-columns: minmax(220px, 1fr) auto;
	min-height: 0;
	padding: 12px 14px;
	border-radius: 14px;
}

.panda-studio__project-heading h1 {
	font-size: clamp(22px, 2.5vw, 34px);
}

.panda-studio__command-actions {
	flex-wrap: nowrap;
}

.panda-studio__statusbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 0 12px;
	border: 1px solid var(--studio-border);
	border-radius: 10px;
	background: var(--studio-card);
	color: var(--studio-muted);
	font-size: 12px;
}

.panda-studio__statusbar > div {
	display: flex;
	align-items: center;
	gap: 8px;
}

.panda-studio__statusbar-stats {
	display: flex;
	align-items: center;
	gap: 16px;
}

.panda-studio__statusbar-stats strong {
	color: var(--studio-text);
}

.panda-studio__workspace {
	min-height: 0;
}

.panda-studio__video-panel {
	grid-template-columns: minmax(0, 1fr) 180px;
	height: 100%;
	min-height: 0;
	padding: 10px;
	border-radius: 14px;
}

.panda-studio__video-wrap {
	height: 100%;
	aspect-ratio: auto;
}

.panda-studio__video-controls {
	align-content: stretch;
}

.panda-studio__video-controls button,
.panda-studio__video-controls select {
	min-height: 38px;
}

.panda-studio__editor {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	min-height: 0;
	padding: 10px;
	border-radius: 14px;
	overflow: hidden;
}

.panda-studio__editor-heading {
	margin-bottom: 8px;
}

.panda-studio__editor-heading h2 {
	font-size: 20px;
}

.panda-studio__editor-heading p {
	font-size: 12px;
}

.panda-studio__table-wrap {
	min-height: 0;
	max-height: none;
	height: 100%;
	overflow: auto;
}

.panda-studio__table {
	min-width: 1050px;
}

.panda-studio__table th {
	padding: 8px 10px;
}

.panda-studio__table td {
	padding: 6px 8px;
}

.panda-studio__table textarea {
	min-height: 64px;
}

.panda-studio__empty {
	height: 100%;
	min-height: 0;
	padding: 20px;
}

.panda-studio__file-button,
.panda-studio__export,
.panda-studio__topbar-actions > a {
	white-space: nowrap;
}

@media (max-width: 1050px) {
	html:has(.panda-studio),
	body:has(.panda-studio) {
		overflow: auto !important;
	}

	.panda-studio {
		position: relative;
		display: block;
		width: 100%;
		height: auto;
		min-height: 100vh;
		overflow: visible;
	}

	.panda-studio__topbar,
	.panda-studio__commandbar,
	.panda-studio__statusbar,
	.panda-studio__workspace,
	.panda-studio__editor {
		margin-bottom: 8px;
	}

	.panda-studio__commandbar {
		grid-template-columns: 1fr;
	}

	.panda-studio__command-actions {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.panda-studio__workspace {
		height: auto;
	}

	.panda-studio__video-panel {
		grid-template-columns: 1fr;
		height: auto;
	}

	.panda-studio__video-wrap {
		aspect-ratio: 16 / 9;
	}

	.panda-studio__video-controls {
		grid-template-columns: repeat(4, 1fr);
	}

	.panda-studio__editor {
		display: block;
	}

	.panda-studio__table-wrap {
		height: auto;
		max-height: 720px;
	}
}

@media (max-width: 680px) {
	.panda-studio {
		padding: 6px;
	}

	.panda-studio__topbar,
	.panda-studio__statusbar {
		align-items: flex-start;
		flex-direction: column;
		height: auto;
		padding-block: 8px;
	}

	.panda-studio__statusbar-stats {
		width: 100%;
		justify-content: space-between;
	}

	.panda-studio__command-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}

	.panda-studio__command-actions > * {
		width: 100%;
	}

	.panda-studio__video-controls {
		grid-template-columns: repeat(2, 1fr);
	}
}


/* Panda Studio 3.0 — samodzielna aplikacja bez szablonu WordPressa */
html,
body.panda-studio-standalone {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

body.panda-studio-standalone {
	background: #f3f5fa;
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", sans-serif;
}

html[data-panda-theme="dark"] body.panda-studio-standalone {
	background: #0b0f1a;
}

.panda-studio-standalone .panda-studio {
	position: fixed;
	inset: 0;
	display: grid;
	grid-template-rows: 58px 68px 34px minmax(250px, 43vh) minmax(0, 1fr);
	gap: 6px;
	width: 100%;
	height: 100%;
	padding: 6px;
	overflow: hidden;
	box-sizing: border-box;
}

.panda-studio-standalone .panda-studio__topbar,
.panda-studio-standalone .panda-studio__commandbar,
.panda-studio-standalone .panda-studio__statusbar,
.panda-studio-standalone .panda-studio__workspace,
.panda-studio-standalone .panda-studio__editor {
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.panda-studio-standalone .panda-studio__topbar {
	display: flex;
	min-width: 0;
}

.panda-studio-standalone .panda-studio__commandbar {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto;
	gap: 12px;
	min-width: 0;
	padding: 8px 12px;
}

.panda-studio-standalone .panda-studio__project-heading {
	min-width: 0;
}

.panda-studio-standalone .panda-studio__project-heading h1 {
	overflow: hidden;
	margin: 0 0 2px;
	font-size: clamp(20px, 2vw, 30px);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.panda-studio-standalone .panda-studio__project-heading p,
.panda-studio-standalone .panda-v2-section__eyebrow {
	font-size: 11px;
}

.panda-studio-standalone .panda-studio__command-actions {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
}

.panda-studio-standalone .panda-studio__file-button,
.panda-studio-standalone .panda-studio__export {
	min-height: 38px;
	padding: 0 11px;
	font-size: 13px;
}

.panda-studio-standalone .panda-studio__statusbar {
	min-height: 0;
	padding: 0 10px;
}

.panda-studio-standalone .panda-studio__workspace {
	min-height: 0;
	overflow: hidden;
}

.panda-studio-standalone .panda-studio__video-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 160px;
	gap: 8px;
	height: 100%;
	padding: 8px;
	overflow: hidden;
}

.panda-studio-standalone .panda-studio__video-wrap {
	min-width: 0;
	min-height: 0;
	height: 100%;
}

.panda-studio-standalone .panda-studio__video-controls {
	display: grid;
	grid-template-columns: 1fr;
	gap: 7px;
	align-content: center;
	min-width: 0;
}

.panda-studio-standalone .panda-studio__video-controls button,
.panda-studio-standalone .panda-studio__video-controls select {
	min-height: 35px;
}

.panda-studio-standalone .panda-studio__editor {
	min-height: 0;
	padding: 8px;
}

.panda-studio-standalone .panda-studio__editor-heading {
	min-height: 40px;
	margin: 0 0 5px;
}

.panda-studio-standalone .panda-studio__editor-heading h2 {
	font-size: 18px;
}

.panda-studio-standalone .panda-studio__table-wrap {
	width: 100%;
	height: 100%;
	min-height: 0;
	max-height: none;
	overflow: auto;
}

.panda-studio-standalone .panda-studio__empty {
	height: 100%;
	min-height: 0;
	box-sizing: border-box;
}

.panda-studio-standalone .panda-studio__table {
	width: 100%;
	min-width: 920px;
	table-layout: fixed;
}

.panda-studio-standalone .panda-studio__table th:nth-child(1),
.panda-studio-standalone .panda-studio__table td:nth-child(1) {
	width: 48px;
}

.panda-studio-standalone .panda-studio__table th:nth-child(2),
.panda-studio-standalone .panda-studio__table td:nth-child(2) {
	width: 145px;
}

.panda-studio-standalone .panda-studio__table th:nth-child(3),
.panda-studio-standalone .panda-studio__table th:nth-child(4) {
	width: calc((100% - 193px) / 2);
}

.panda-studio-standalone .panda-studio__table textarea {
	min-height: 58px;
	box-sizing: border-box;
}

@media (max-width: 900px) {
	html,
	body.panda-studio-standalone {
		overflow: auto;
	}

	.panda-studio-standalone .panda-studio {
		position: relative;
		display: block;
		height: auto;
		min-height: 100vh;
		overflow: visible;
	}

	.panda-studio-standalone .panda-studio > * {
		margin-bottom: 6px;
	}

	.panda-studio-standalone .panda-studio__commandbar {
		grid-template-columns: 1fr;
	}

	.panda-studio-standalone .panda-studio__command-actions {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.panda-studio-standalone .panda-studio__video-panel {
		grid-template-columns: 1fr;
		height: auto;
	}

	.panda-studio-standalone .panda-studio__video-wrap {
		aspect-ratio: 16 / 9;
	}

	.panda-studio-standalone .panda-studio__video-controls {
		grid-template-columns: repeat(4, 1fr);
	}

	.panda-studio-standalone .panda-studio__editor {
		height: auto;
	}

	.panda-studio-standalone .panda-studio__table-wrap {
		height: auto;
		max-height: 700px;
	}
}


/* Panda Studio 3.0.1 — przywrócone przewijanie strony */
html,
body.panda-studio-standalone {
	min-height: 100%;
	height: auto;
	overflow-x: hidden;
	overflow-y: auto;
}

body.panda-studio-standalone {
	background: #f3f5fa;
}

html[data-panda-theme="dark"] body.panda-studio-standalone {
	background: #0b0f1a;
}

.panda-studio-standalone .panda-studio {
	position: relative;
	inset: auto;
	display: grid;
	grid-template-rows: 58px auto 34px auto minmax(420px, auto);
	gap: 6px;
	width: 100%;
	min-height: 100vh;
	height: auto;
	padding: 6px;
	overflow: visible;
	box-sizing: border-box;
}

.panda-studio-standalone .panda-studio__workspace {
	min-height: 420px;
	height: auto;
	overflow: visible;
}

.panda-studio-standalone .panda-studio__video-panel {
	min-height: 420px;
	height: auto;
}

.panda-studio-standalone .panda-studio__video-wrap {
	min-height: 360px;
	height: auto;
	aspect-ratio: 16 / 9;
}

.panda-studio-standalone .panda-studio__editor {
	min-height: 520px;
	height: auto;
	overflow: visible;
}

.panda-studio-standalone .panda-studio__table-wrap {
	min-height: 420px;
	height: auto;
	max-height: 70vh;
	overflow: auto;
}

.panda-studio-standalone .panda-studio__empty {
	min-height: 420px;
	height: auto;
}

@media (max-height: 760px) and (min-width: 901px) {
	.panda-studio-standalone .panda-studio__workspace {
		min-height: 360px;
	}

	.panda-studio-standalone .panda-studio__video-panel {
		min-height: 360px;
	}

	.panda-studio-standalone .panda-studio__video-wrap {
		min-height: 300px;
	}

	.panda-studio-standalone .panda-studio__editor {
		min-height: 460px;
	}

	.panda-studio-standalone .panda-studio__table-wrap,
	.panda-studio-standalone .panda-studio__empty {
		min-height: 360px;
	}
}


/* Panda Studio 3.0.2 — definitywna poprawka przewijania */
html:has(body.panda-studio-standalone),
body.panda-studio-standalone {
	height: auto !important;
	min-height: 100% !important;
	overflow-x: hidden !important;
	overflow-y: scroll !important;
}

body.panda-studio-standalone {
	position: static !important;
}

.panda-studio-standalone .panda-studio {
	position: static !important;
	inset: auto !important;
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 100vh !important;
	overflow: visible !important;
	padding: 6px !important;
	box-sizing: border-box;
}

.panda-studio-standalone .panda-studio > * {
	margin-bottom: 6px !important;
}

.panda-studio-standalone .panda-studio__topbar,
.panda-studio-standalone .panda-studio__commandbar,
.panda-studio-standalone .panda-studio__statusbar,
.panda-studio-standalone .panda-studio__workspace,
.panda-studio-standalone .panda-studio__editor {
	position: static !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
}

.panda-studio-standalone .panda-studio__workspace {
	min-height: 0 !important;
}

.panda-studio-standalone .panda-studio__video-panel {
	height: auto !important;
	min-height: 0 !important;
}

.panda-studio-standalone .panda-studio__video-wrap {
	height: auto !important;
	min-height: 280px !important;
	aspect-ratio: 16 / 9 !important;
}

.panda-studio-standalone .panda-studio__editor {
	min-height: 460px !important;
}

.panda-studio-standalone .panda-studio__empty {
	min-height: 380px !important;
	height: auto !important;
}

.panda-studio-standalone .panda-studio__table-wrap {
	height: auto !important;
	min-height: 380px !important;
	max-height: 70vh !important;
	overflow: auto !important;
}

@media (max-height: 760px) and (min-width: 901px) {
	.panda-studio-standalone .panda-studio__video-wrap {
		min-height: 240px !important;
	}

	.panda-studio-standalone .panda-studio__editor {
		min-height: 400px !important;
	}

	.panda-studio-standalone .panda-studio__empty,
	.panda-studio-standalone .panda-studio__table-wrap {
		min-height: 320px !important;
	}
}


/* Panda Studio 3.1 — edytor kart */
.panda-studio__cards-wrap {
	min-height: 380px;
	max-height: 70vh;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 4px;
}

.panda-studio__cards {
	display: grid;
	gap: 10px;
}

.panda-studio-card {
	border: 1px solid var(--studio-border);
	border-radius: 14px;
	background: var(--studio-card);
	box-shadow: 0 8px 24px rgba(32,38,58,.05);
	transition:
		border-color .18s ease,
		box-shadow .18s ease,
		transform .18s ease;
}

[data-panda-theme="dark"] .panda-studio-card {
	box-shadow: 0 8px 24px rgba(0,0,0,.20);
}

.panda-studio-card.is-active {
	border-color: var(--studio-accent);
	box-shadow: 0 0 0 3px rgba(214,51,132,.10);
	transform: translateY(-1px);
}

.panda-studio-card.has-warning {
	border-color: rgba(224, 142, 39, .48);
}

.panda-studio-card__header {
	display: grid;
	grid-template-columns: 38px minmax(260px, auto) 1fr;
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	border-bottom: 1px solid var(--studio-border);
	background: var(--studio-soft);
	border-radius: 14px 14px 0 0;
}

.panda-studio-card__number {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--studio-card);
	color: var(--studio-muted);
	font-weight: 850;
}

.panda-studio-card__time {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 34px;
	padding: 0 11px;
	border: 1px solid var(--studio-border);
	border-radius: 9px;
	background: var(--studio-card);
	color: var(--studio-text);
	font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
	cursor: pointer;
}

.panda-studio-card__time strong {
	color: var(--studio-accent);
}

.panda-studio-card__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 7px;
	color: var(--studio-muted);
	font-size: 11px;
}

.panda-studio-card__meta span {
	padding: 5px 8px;
	border-radius: 999px;
	background: var(--studio-card);
}

.panda-studio-card__meta [data-card-warning] {
	background: rgba(224, 142, 39, .12);
	color: #b56f11;
	font-weight: 750;
}

.panda-studio-card__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 12px;
}

.panda-studio-card__body label {
	display: grid;
	gap: 7px;
	min-width: 0;
}

.panda-studio-card__body label > span {
	color: var(--studio-muted);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.panda-studio-card__body textarea {
	width: 100%;
	min-height: 92px;
	padding: 12px;
	border: 1px solid var(--studio-border);
	border-radius: 10px;
	background: var(--studio-soft);
	color: var(--studio-text);
	font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
	resize: none;
	overflow: hidden;
	box-sizing: border-box;
	outline: none;
}

.panda-studio-card__body textarea:focus {
	border-color: var(--studio-accent);
	box-shadow: 0 0 0 3px rgba(214,51,132,.10);
}

.panda-studio-card__body textarea[readonly] {
	opacity: .84;
	cursor: default;
}

.panda-studio-standalone .panda-studio__editor {
	min-height: 540px !important;
}

.panda-studio-standalone .panda-studio__cards-wrap {
	min-height: 430px;
	max-height: 72vh;
}

@media (max-width: 900px) {
	.panda-studio-card__header {
		grid-template-columns: 38px 1fr;
	}

	.panda-studio-card__meta {
		grid-column: 2;
		justify-content: flex-start;
	}

	.panda-studio-card__body {
		grid-template-columns: 1fr;
	}
}


/* Panda Studio 3.2 — podgląd napisów na wideo */
.panda-studio__subtitle-overlay {
	position: absolute;
	left: 50%;
	bottom: 58px;
	z-index: 5;
	display: grid;
	gap: 6px;
	width: min(86%, 1100px);
	transform: translateX(-50%);
	pointer-events: none;
	text-align: center;
}

.panda-studio__subtitle-overlay[hidden] {
	display: none;
}

.panda-studio__subtitle-original,
.panda-studio__subtitle-translation {
	justify-self: center;
	max-width: 100%;
	padding: 7px 12px;
	border-radius: 7px;
	background: rgba(0, 0, 0, .76);
	color: #fff;
	font-weight: 750;
	line-height: 1.35;
	white-space: pre-line;
	text-shadow:
		-1px -1px 0 #000,
		1px -1px 0 #000,
		-1px 1px 0 #000,
		1px 1px 0 #000;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.panda-studio__subtitle-original {
	color: #f5d68a;
	font-size: clamp(13px, 1.25vw, 19px);
}

.panda-studio__subtitle-translation {
	font-size: clamp(17px, 1.75vw, 27px);
}

.panda-studio__video-controls {
	overflow-y: auto;
}

.panda-studio__video-controls label {
	display: grid;
	gap: 6px;
}

@media (max-width: 760px) {
	.panda-studio__subtitle-overlay {
		bottom: 44px;
		width: 94%;
	}

	.panda-studio__subtitle-original {
		font-size: 12px;
	}

	.panda-studio__subtitle-translation {
		font-size: 16px;
	}
}


/* Panda Studio 3.2.1 — automatyczna następna kwestia */
.panda-studio__auto-next {
	display: flex !important;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 8px !important;
	padding: 9px 10px;
	border: 1px solid var(--studio-border);
	border-radius: 9px;
	background: var(--studio-soft);
	color: var(--studio-text) !important;
	font-size: 12px !important;
	font-weight: 700;
	cursor: pointer;
}

.panda-studio__auto-next input {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--studio-accent);
}

.panda-studio__auto-next span {
	line-height: 1.25;
}


/* Panda Studio 3.3 — status autosave */
.panda-studio[data-save-state="saving"] .panda-studio__status-dot,
.panda-studio[data-save-state="dirty"] .panda-studio__status-dot {
	background: #e1a12c;
	box-shadow: 0 0 0 5px rgba(225,161,44,.14);
	animation: pandaStudioSaving 1s ease-in-out infinite;
}

.panda-studio[data-save-state="saved"] .panda-studio__status-dot {
	background: #38b878;
	box-shadow: 0 0 0 5px rgba(56,184,120,.12);
}

.panda-studio[data-save-state="error"] .panda-studio__status-dot {
	background: #e25268;
	box-shadow: 0 0 0 5px rgba(226,82,104,.13);
}

@keyframes pandaStudioSaving {
	0%, 100% { opacity: .55; }
	50% { opacity: 1; }
}
