.instant-comments-page {
	width: min(1080px, calc(100% - 34px));
	margin: 0 auto 42px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(235, 117, 41, 0.55);
	border-radius: 24px;
	box-shadow: 0 18px 48px rgba(34,58,87,0.10);
	padding: 28px;
}
.instant-comments-page h1 {
	margin: 12px 0 14px;
	font-size: clamp(26px, 4vw, 42px);
	line-height: 1.12;
	color: #223a57;
}
.instant-comments-lead {
	max-width: 850px;
	font-size: 16px;
	line-height: 1.65;
	color: #34465f;
}
.instant-comments-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin: 22px 0;
	padding: 14px;
	border-radius: 18px;
	background: rgba(247,252,252,0.94);
	border: 1px solid rgba(0,153,145,0.16);
}
.instant-comments-controls label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	color: #223a57;
}
.instant-comments-controls select,
.instant-comments-controls button {
	border-radius: 999px;
	border: 1px solid rgba(0,153,145,0.28);
	background: #fff;
	padding: 10px 15px;
	font-weight: 800;
	color: #223a57;
}
.instant-comments-controls button {
	background: #009991;
	color: #fff;
	box-shadow: 0 9px 20px rgba(0,153,145,0.24);
	cursor: pointer;
}
.instant-comments-controls button.secondary {
	background: #fff;
	color: #009991;
}
.instant-comments-controls button:disabled {
	opacity: .55;
	cursor: wait;
}
.instant-comments-status {
	margin: 8px 0 12px;
	padding: 12px 14px;
	border-radius: 16px;
	font-weight: 800;
	line-height: 1.45;
	background: rgba(247,252,252,0.96);
	color: #223a57;
}
.instant-comments-status.success { background: rgba(235, 252, 247, .98); color: #146b51; }
.instant-comments-status.warning { background: rgba(255, 249, 238, .98); color: #9d5612; }
.instant-comments-status.error { background: rgba(255, 242, 242, .98); color: #9b2020; }
.instant-comments-meta {
	margin: 4px 0 16px;
	font-size: 13px;
	color: #718096;
}
.instant-comments-debug {
	margin: 18px 0 24px;
	padding: 15px;
	border-radius: 20px;
	background: rgba(239, 252, 250, .72);
	border: 1px solid rgba(0,153,145,.18);
}
.instant-comments-debug h2 {
	margin: 0 0 6px;
	font-size: 18px;
	color: #223a57;
}
.instant-comments-debug p {
	margin: 0 0 12px;
	color: #68768a;
	font-size: 13px;
}
.instant-scan-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 390px;
	overflow: auto;
	display: grid;
	gap: 7px;
}
.instant-scan-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 9px 11px;
	border: 1px solid rgba(34,58,87,.09);
	border-radius: 15px;
	background: rgba(255,255,255,.92);
}
.instant-scan-row.has-children { border-color: rgba(235,117,41,.28); background: rgba(255,250,244,.94); }
.instant-scan-row.found { border-color: rgba(0,153,145,.32); background: rgba(238,252,249,.94); }
.instant-scan-main,
.instant-scan-side {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.instant-scan-main a {
	font-weight: 900;
	color: #223a57;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.instant-scan-main a:hover { color: #009991; text-decoration: underline; }
.instant-scan-main span,
.instant-scan-side span { color: #748094; font-size: 12px; }
.instant-scan-side { text-align: right; align-items: flex-end; white-space: nowrap; }
.instant-scan-side strong { color: #223a57; font-size: 12px; }
.instant-comment-list {
	display: grid;
	gap: 14px;
}
.instant-comments-empty {
	padding: 22px;
	border-radius: 18px;
	border: 1px dashed rgba(34,58,87,.2);
	text-align: center;
	font-weight: 800;
	color: #506078;
}
.instant-comment-card {
	padding: 16px;
	border: 1px solid rgba(34,58,87,.11);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(34,58,87,.07);
}
.instant-comment-head,
.instant-comment-meta,
.instant-comment-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
.instant-comment-head {
	justify-content: space-between;
	margin-bottom: 10px;
}
.instant-comment-head strong { color: #223a57; font-size: 16px; }
.instant-comment-head span,
.instant-comment-meta span { color: #718096; font-size: 13px; }
.instant-comment-body {
	font-size: 15px;
	line-height: 1.7;
	color: #2f3f55;
	margin: 10px 0 14px;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid rgba(34,58,87,.12);
	border-left: 4px solid rgba(0,153,145,.58);
	background: linear-gradient(180deg, rgba(247,252,252,.96), rgba(255,255,255,.96));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
	text-align: left !important;
	white-space: pre-line;
}
.instant-comment-meta {
	margin-bottom: 12px;
}
.instant-comment-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid rgba(0,153,145,.24);
	color: #009991;
	font-weight: 900;
	text-decoration: none;
}
.instant-comment-actions a:hover {
	background: #009991;
	color: #fff;
}
@media only screen and (max-width: 720px) {
	.instant-comments-page { width: min(100% - 18px, 1080px); padding: 18px; }
	.instant-scan-row { grid-template-columns: 1fr; }
	.instant-scan-side { align-items: flex-start; text-align: left; white-space: normal; }
}

.instant-comments-controls label select#instant-comments-mode {
	min-width: 235px;
}

.instant-comment-card.blurt-comment {
	position: relative;
	overflow: visible;
}

.instant-comment-card.blurt-comment::before {
	content: '';
	position: absolute;
	left: 16px;
	right: 16px;
	top: 0;
	height: 3px;
	border-radius: 0 0 999px 999px;
	background: linear-gradient(90deg, rgba(0,153,145,.65), rgba(235,117,41,.45));
}

.instant-comment-card .instant-comment-body {
	background: #f7fbfb;
	border: 1px solid rgba(0, 153, 145, .18);
	border-left: 5px solid rgba(0, 153, 145, .72);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(34,58,87,.045);
	font-size: 15.5px;
	line-height: 1.85;
	text-align: left !important;
}

.instant-vote-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid rgba(235,117,41,.28);
	background: rgba(255,249,244,.96);
	color: #c46120;
	font-weight: 900;
	cursor: pointer;
}

.instant-vote-button:hover {
	background: #eb7529;
	color: #fff;
}

.instant-comment-actions {
	position: relative;
}

.instant-comment-actions .blurt-comment-vote-popover {
	position: absolute;
	left: 0;
	top: calc(100% + 8px);
	z-index: 20;
	min-width: 250px;
	padding: 12px;
	border-radius: 16px;
	border: 1px solid rgba(34,58,87,.14);
	background: #fff;
	box-shadow: 0 14px 34px rgba(34,58,87,.18);
}

.blurt-comment-vote-popover label,
.blurt-comment-vote-popover .blurt-action-message {
	display: block;
	margin-bottom: 9px;
	font-size: 13px;
	font-weight: 800;
	color: #223a57;
}

.blurt-comment-vote-popover input[type="range"] {
	width: 100%;
	margin: 4px 0 10px;
}

.blurt-comment-vote-popover button {
	width: 100%;
	border: 0;
	border-radius: 999px;
	padding: 9px 12px;
	background: #009991;
	color: #fff;
	font-weight: 900;
	cursor: pointer;
}

.blurt-comment-vote-popover button:disabled {
	opacity: .6;
	cursor: wait;
}

.blurt-comment-vote-popover .blurt-action-message {
	margin: 9px 0 0;
	padding: 8px 10px;
	border-radius: 12px;
	background: rgba(247,252,252,.96);
	font-weight: 700;
}

.blurt-comment-vote-popover .blurt-action-message.success {
	background: rgba(235,252,247,.98);
	color: #146b51;
}

.blurt-comment-vote-popover .blurt-action-message.error {
	background: rgba(255,242,242,.98);
	color: #9b2020;
}

@media only screen and (max-width: 720px) {
	.instant-comments-controls label select#instant-comments-mode {
		min-width: 100%;
	}
	.instant-comment-actions .blurt-comment-vote-popover {
		position: static;
		width: 100%;
		margin-top: 8px;
	}
}

/* v25 — czytelniejszy układ komentarza */
.instant-comment-card.blurt-comment {
	padding: 18px 18px 16px;
	border-color: rgba(34, 58, 87, .12);
	background:
		linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,253,253,.98));
}

.instant-comment-card .instant-comment-head {
	padding-bottom: 9px;
	margin-bottom: 12px;
	border-bottom: 1px solid rgba(34, 58, 87, .08);
}

.instant-comment-card .instant-comment-body {
	position: relative;
	margin: 12px 0 15px;
	padding: 16px 18px 16px 20px;
	border-radius: 18px;
	border: 1px solid rgba(0, 153, 145, .22);
	border-left: 6px solid rgba(0, 153, 145, .78);
	background:
		linear-gradient(180deg, rgba(248, 253, 253, .98), rgba(255,255,255,.98));
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,.95),
		0 9px 22px rgba(34, 58, 87, .055);
	color: #223a57;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.78;
	letter-spacing: .01em;
	text-align: left !important;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.instant-comment-card .instant-comment-body::before {
	content: '';
	position: absolute;
	left: 13px;
	top: 14px;
	bottom: 14px;
	width: 2px;
	border-radius: 999px;
	background: rgba(235, 117, 41, .32);
}

.instant-comment-card .instant-comment-body a {
	color: #007f79;
	font-weight: 800;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.instant-comment-card .instant-comment-meta {
	gap: 8px;
	align-items: flex-start;
	margin-top: 10px;
	margin-bottom: 13px;
}

.instant-comment-card .instant-comment-meta span {
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(247, 252, 252, .92);
	border: 1px solid rgba(34, 58, 87, .075);
	font-size: 12px;
	line-height: 1.3;
}

@media only screen and (max-width: 720px) {
	.instant-comment-card .instant-comment-body {
		padding: 14px 14px 14px 18px;
		font-size: 15px;
		line-height: 1.7;
	}
}

.instant-scan-empty {
	list-style: none;
	padding: 14px 16px;
	border: 1px dashed rgba(0, 153, 145, 0.24);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	color: #6f7f95;
	font-size: 13px;
	line-height: 1.45;
	text-align: left;
}

.instant-reply-button,
.instant-replies-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid rgba(0,153,145,.24);
	background: #fff;
	color: #009991;
	font-weight: 900;
	cursor: pointer;
}

.instant-reply-button:hover,
.instant-replies-toggle:hover {
	background: #009991;
	color: #fff;
}

.instant-replies-toggle:disabled {
	opacity: .6;
	cursor: wait;
}

.instant-nested-replies {
	margin: 14px 0 0 18px;
	padding-left: 14px;
	border-left: 3px solid rgba(0,153,145,.22);
}

.instant-comment-card.instant-comment-nested {
	margin-top: 12px;
	padding: 13px;
	background: rgba(250,253,253,.96);
	box-shadow: 0 6px 16px rgba(34,58,87,.05);
}

.instant-comment-card.instant-comment-nested::before {
	left: 12px;
	right: 12px;
}

.instant-nested-empty {
	padding: 12px;
	border-radius: 14px;
	background: rgba(247,252,252,.9);
	color: #718096;
	font-weight: 800;
}

.instant-comment-body .blurt-media-embed {
	position: relative;
	width: 100%;
	max-width: 760px;
	margin: 16px 0;
	border-radius: 14px;
	overflow: hidden;
	background: #0d1724;
	box-shadow: 0 10px 24px rgba(34,58,87,.14);
}

.instant-comment-body .blurt-media-embed::before {
	content: "";
	display: block;
	padding-top: 56.25%;
}

.instant-comment-body .blurt-media-embed iframe,
.instant-comment-body .blurt-media-embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.instant-comment-body .blurt-tiktok-embed {
	max-width: 430px;
}

.instant-comment-body .blurt-tiktok-embed::before {
	padding-top: 177.78%;
}

.instant-comment-body .blurt-video-embed::before {
	display: none;
}

.instant-comment-body .blurt-video-embed video {
	position: static;
	display: block;
	height: auto;
	background: #0d1724;
}

@media only screen and (max-width: 720px) {
	.instant-nested-replies {
		margin-left: 5px;
		padding-left: 8px;
	}
}

/* v29 — płaskie drzewo odpowiedzi, bez nieskończonego zagnieżdżania boksów */
.instant-nested-replies {
	margin: 16px 0 0;
	padding: 12px 0 0;
	border-left: 0;
	border-top: 1px solid rgba(0, 153, 145, .16);
}

.instant-nested-thread {
	display: grid;
	gap: 10px;
	width: 100%;
}

.instant-comment-card.instant-comment-nested {
	box-sizing: border-box;
	width: auto;
	margin: 0 0 0 min(calc(var(--reply-depth, 1) * 18px), 54px);
	padding: 12px 14px;
	border-radius: 16px;
	border: 1px solid rgba(34, 58, 87, .10);
	border-left: 4px solid rgba(0, 153, 145, .34);
	background: rgba(250, 253, 253, .98);
	box-shadow: 0 4px 12px rgba(34, 58, 87, .045);
}

.instant-comment-card.instant-comment-nested.instant-comment-depth-2,
.instant-comment-card.instant-comment-nested.instant-comment-depth-3 {
	background: rgba(255, 255, 255, .98);
}

.instant-comment-card.instant-comment-nested::before {
	left: 12px;
	right: 12px;
	height: 2px;
	opacity: .55;
}

.instant-comment-card.instant-comment-nested .instant-comment-body {
	margin: 9px 0 11px;
	padding: 12px 14px 12px 16px;
	border-radius: 14px;
	font-size: 14.5px;
	line-height: 1.65;
}

.instant-comment-card.instant-comment-nested .instant-comment-meta span {
	font-size: 11px;
	padding: 3px 7px;
}

.instant-comment-card.instant-comment-nested .instant-comment-actions {
	gap: 7px;
}

.instant-comment-card.instant-comment-nested .instant-comment-actions a,
.instant-comment-card.instant-comment-nested .instant-comment-actions button {
	padding: 7px 10px;
	font-size: 12px;
}

.instant-comment-card.instant-comment-nested .instant-nested-replies {
	margin: 10px 0 0;
	padding: 0;
	border: 0;
}

@media only screen and (max-width: 720px) {
	.instant-comment-card.instant-comment-nested {
		margin-left: min(calc(var(--reply-depth, 1) * 8px), 22px);
		padding: 11px;
	}
}

/* v30 — twarde ograniczenie szerokości komentarzy i mediów */
.instant-comments-page,
.instant-comments-page * {
	box-sizing: border-box;
}

.instant-comments-page {
	max-width: min(1080px, calc(100vw - 34px));
	overflow-x: hidden;
}

.instant-comments-page section,
.instant-comment-list,
.instant-comment-card,
.instant-comment-head,
.instant-comment-meta,
.instant-comment-actions,
.instant-nested-replies,
.instant-nested-thread,
.instant-comment-body {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.instant-comment-list,
.instant-nested-replies,
.instant-nested-thread {
	overflow-x: hidden;
}

.instant-comment-card {
	contain: layout paint;
	overflow: hidden;
}

.instant-comment-card.blurt-comment {
	overflow: hidden;
}

.instant-comment-card .instant-comment-body {
	overflow-x: auto;
	overflow-y: visible;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.instant-comment-card .instant-comment-body > * {
	max-width: 100%;
}

.instant-comment-card .instant-comment-body img,
.instant-comment-card .instant-comment-body video,
.instant-comment-card .instant-comment-body iframe {
	max-width: 100% !important;
}

.instant-comment-body .blurt-media-embed {
	width: min(100%, 720px) !important;
	max-width: 100% !important;
	margin-left: 0;
	margin-right: auto;
}

.instant-comment-body .blurt-media-embed iframe,
.instant-comment-body .blurt-media-embed video {
	max-width: 100% !important;
}

.instant-comment-body .blurt-tiktok-embed {
	width: min(100%, 430px) !important;
	max-width: 100% !important;
}

.instant-nested-replies {
	padding-right: 0;
}

.instant-nested-thread {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}

.instant-comment-card.instant-comment-nested {
	--reply-indent: min(calc(var(--reply-depth, 1) * 10px), 28px);
	width: calc(100% - var(--reply-indent));
	max-width: calc(100% - var(--reply-indent));
	margin-left: var(--reply-indent) !important;
	overflow: hidden;
}

.instant-comment-card.instant-comment-nested .instant-comment-body {
	max-width: 100%;
	overflow-x: auto;
}

@media only screen and (max-width: 720px) {
	.instant-comments-page {
		max-width: calc(100vw - 18px);
		overflow-x: hidden;
	}
	.instant-comment-card.instant-comment-nested {
		--reply-indent: min(calc(var(--reply-depth, 1) * 6px), 16px);
	}
}
