:root {
	--bg: #333333;
	--surface: #3b3b3b;
	--surface-2: #2c2c2c;
	--surface-3: #474747;
	--border: #4a4a4a;
	--border-strong: #5c5c5c;
	--text: #eeeeee;
	--text-2: #cccccc;
	--muted: #9a9a9a;
	--accent: #1e96f0;
	--accent-hover: #1784d6;
	--accent-ink: #ffffff;
	--accent-soft: rgba(30, 150, 240, .16);
	--blue: #5ab4fa;
	--blue-hover: #5ab4d2;
	--danger: #e6323c;
	--danger-soft: rgba(230, 50, 60, .14);
	--male: #009fff;
	--female: #009fff;
	--warn: #ffaa00;
	--radius: 10px;
	--radius-sm: 7px;
	--shadow: 0 20px 50px -24px rgba(0, 0, 0, .55);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-display: "Jost", "Futura", "Century Gothic", var(--font);
	color-scheme: only light;
}

.light {
	--surface: #eeeeee;
	--surface-2: #ffffff;
	--surface-3: #dddddd;
	--border: #e2e2e2;
	--border-strong: #c9c9c9;
	--text: #333333;
	--text-2: #555555;
	--muted: #888888;
	--danger: #c8232c;
	--shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
	color: var(--text);
	color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body.s2k {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font: 400 15px/1.55 var(--font);
	-webkit-font-smoothing: antialiased;
}

.s2k a { color: var(--accent); text-decoration: none; }
.s2k a:hover { text-decoration: underline; }

.s2k button, .s2k input, .s2k textarea, .s2k select { font: inherit; color: inherit; }

.s2k :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.logo {
	--size: 420px;
	position: relative;
	width: var(--size);
	height: var(--size);
	max-width: 100%;
	flex: none;
	display: block;
}
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.logo .ring { animation: s2k-drop .7s cubic-bezier(.2, .9, .3, 1.15) .1s both; }
.logo .circle { animation: s2k-pop .6s cubic-bezier(.2, .9, .3, 1.3) .45s both; }
.logo .text { animation: s2k-fade .6s ease .8s both; }
.logo.sm { --size: 44px; }
.logo.sm img { animation: none; }

@keyframes s2k-drop { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes s2k-fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes s2k-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes s2k-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes s2k-out { to { opacity: 0; transform: translateX(24px); height: 0; margin: 0; padding-top: 0; padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
	.s2k *, .s2k *::before, .s2k *::after { animation: none !important; transition: none !important; }
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 18px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--surface-2);
	color: var(--text);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s, border-color .15s, transform .1s, color .15s;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn.danger { background: transparent; color: var(--danger); border-color: var(--border); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }

.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }

.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; height: 50px; font-size: 15px; }

.field { display: grid; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.hint { font-size: 12.5px; color: var(--muted); }

.input, .textarea {
	width: 100%;
	border: 1px solid var(--border);
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.input { height: 46px; }
.textarea { min-height: 190px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.alert {
	display: none;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	background: var(--danger-soft);
	color: var(--danger);
	border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
}
.alert.show { display: block; animation: s2k-rise .25s ease both; }

.s2k-logo {
	--size: 270px;
	position: relative;
	width: var(--size);
	height: var(--size);
	flex: none;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 50% 35%, #f4f4f4 0%, #e6e6e6 55%, #d9d9d9 100%);
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, .12), inset 0 -3px 0 rgba(0, 0, 0, .05), 0 0 0 calc(var(--size) * .04) #2a2a2a, 0 0 0 calc(var(--size) * .08) #d9d9d9, 0 0 0 calc(var(--size) * .084) #bdbdbd, 0 24px 60px -20px rgba(0, 0, 0, .75);
	color: #707070;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
	font-family: var(--font-display);
	font-weight: 400;
	text-align: center;
	line-height: 1.05;
	letter-spacing: .04em;
	animation: s2k-pop .7s cubic-bezier(.2, .9, .3, 1.2) both;
}
.s2k-logo::before, .s2k-logo::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 3px solid transparent;
	pointer-events: none;
}
.s2k-logo::after {
	inset: calc(var(--size) * -.14);
	border-top-color: var(--accent);
	border-left-color: var(--accent);
	animation: s2k-spin 1.1s cubic-bezier(.5, 0, .2, 1) .2s both, s2k-rot 16s linear 1.3s infinite;
}
.s2k-logo::before {
	inset: calc(var(--size) * -.19);
	border-width: 2px;
	border-bottom-color: rgba(30, 150, 240, .45);
	border-right-color: rgba(30, 150, 240, .45);
	animation: s2k-spin-rev 1.4s cubic-bezier(.5, 0, .2, 1) .35s both, s2k-rot-rev 24s linear 1.75s infinite;
}
.s2k-logo span { display: block; font-size: calc(var(--size) * .15); }
.s2k-logo span.num { color: inherit; font-weight: 400; margin: .06em 0; }
.s2k-logo span { animation: s2k-letters .7s cubic-bezier(.2, .8, .2, 1) both; }
.s2k-logo span:nth-child(1) { animation-delay: .45s; }
.s2k-logo span:nth-child(2) { animation-delay: .6s; }
.s2k-logo span:nth-child(3) { animation-delay: .75s; }
.s2k-logo { transition: scale .35s cubic-bezier(.2, .9, .3, 1.3); }
.s2k-logo:hover { scale: 1.03; }
.s2k-logo:hover::after { animation-duration: 1.1s, 5s; }
.s2k-logo:hover::before { animation-duration: 1.4s, 8s; }
@keyframes s2k-letters { from { opacity: 0; transform: translateY(10px); letter-spacing: .3em; filter: blur(3px); } to { opacity: 1; transform: none; letter-spacing: .04em; filter: none; } }
@keyframes s2k-rot { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes s2k-rot-rev { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@keyframes s2k-spin-rev { from { opacity: 0; transform: rotate(180deg); } to { opacity: 1; transform: rotate(0); } }
.s2k-logo.sm { --size: 40px; animation: none; box-shadow: 0 0 0 2px #2b2b2b, 0 0 0 3.5px #d6d6d6; }
.s2k-logo.sm::before, .s2k-logo.sm::after { display: none; }
.s2k-logo.sm span { animation: none; }
.s2k-logo.sm:hover { scale: none; }
.s2k-logo.sm span { font-size: 6.5px; letter-spacing: .02em; }

@keyframes s2k-spin { from { opacity: 0; transform: rotate(-180deg); } to { opacity: 1; transform: rotate(0); } }

body.s2k { overflow-x: clip; }

.pub {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.pub-main {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr minmax(0, 520px);
	gap: 64px;
	align-items: center;
	padding: 48px 0;
}

.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 34px; padding-left: 24px; }
.hero .s2k-logo { margin: calc(var(--size) * .2) 0 calc(var(--size) * .3) calc(var(--size) * .2); }
.hero h1 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(30px, 4.2vw, 46px);
	line-height: 1.1;
	letter-spacing: -.01em;
	color: #eee;
	animation: s2k-rise .6s ease .25s both;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin: -18px 0 0; color: #ccc; font-size: 16.5px; max-width: 440px; animation: s2k-rise .6s ease .35s both; }

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; animation: s2k-rise .6s ease .45s both; }
.rules li { display: flex; gap: 10px; align-items: flex-start; color: #ccc; font-size: 14px; }
.rules li svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }

.gplay { display: block; line-height: 0; margin-top: -6px; transition: transform .15s; animation: s2k-rise .6s ease .55s both; }
.gplay:hover { transform: translateY(-2px); }
.gplay img { height: 56px; width: auto; }

.compose { padding: 30px; display: grid; gap: 20px; }
.compose h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.compose .sub { margin: -14px 0 0; color: var(--muted); font-size: 14px; }
.compose .textarea { min-height: 220px; font-size: 16px; }
.compose .input { height: 50px; font-size: 16px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--surface-3); border-radius: 10px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; border-radius: 7px; cursor: pointer;
	font-weight: 600; font-size: 14px; color: #888;
	transition: background .15s, color .15s, box-shadow .15s;
}
.segmented label .sym { font-size: 20px; line-height: 1; }
.segmented label:hover { color: #444; }
.segmented input:checked + label { background: #fff; color: #333; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 4px 12px -6px rgba(0, 0, 0, .3); }
.segmented input:checked + label.male .sym { color: #009fff; }
.segmented input:checked + label.female .sym { color: #ff5fa2; }
.segmented input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.counter { display: flex; justify-content: space-between; align-items: center; }
.counter .count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.compose .btn.block { height: 52px; font-size: 16px; }

.success { display: none; padding: 40px 30px; text-align: center; gap: 18px; justify-items: center; }
.success.show { display: grid; animation: s2k-rise .4s ease both; }
.success .check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.success .check svg { width: 32px; height: 32px; }
.success h2 { margin: 0; font-size: 22px; color: var(--accent); }
.success p { margin: -8px 0 0; color: var(--text-2); }
.success .promo img { max-width: 100%; border-radius: var(--radius-sm); display: block; }
.success .apps { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.blue:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

.ad-slot { margin-top: 18px; text-align: center; }

.pub-foot { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 0 26px; border-top: 1px dashed #555; font-size: 13px; }
.pub-foot nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.pub-foot a, .pub-foot .linklike { color: #aaa; }
.pub-foot a:hover, .pub-foot .linklike:hover { color: #fff; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.linklike:hover { text-decoration: underline; }

dialog.modal {
	width: min(460px, calc(100vw - 32px));
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow);
}
dialog.modal::backdrop { background: rgba(0, 0, 0, .85); }
dialog.modal[open] { animation: s2k-rise .25s ease both; }
.modal form { padding: 24px; display: grid; gap: 16px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal .textarea { min-height: 130px; }
.modal .ok { display: none; color: var(--accent); font-weight: 600; margin: 0; }
.modal .ok.show { display: block; }

.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 9px; }

@media (max-width: 880px) {
	.pub { padding: 0 16px; }
	.pub-main { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
	.hero { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 22px; padding-left: 10px; }
	.hero .s2k-logo { --size: 92px; margin: 20px 10px 6px 20px; }
	.hero h1 { font-size: 26px; }
	.hero p.lead, .hero .rules { display: none; }
	.gplay { margin: 0; }
	.gplay img { height: 44px; }
	.compose { padding: 20px; }
	.compose .textarea { min-height: 170px; }
}

.compose-wrap { position: relative; isolation: isolate; }
.compose-wrap::before, .compose-wrap::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .55;
	pointer-events: none;
}
.compose-wrap::before {
	width: 320px; height: 320px; top: -60px; left: -80px;
	background: radial-gradient(circle, #1e96f0 0%, rgba(30, 150, 240, 0) 70%);
	animation: s2k-float 14s ease-in-out infinite alternate;
}
.compose-wrap::after {
	width: 300px; height: 300px; bottom: -40px; right: -70px;
	background: radial-gradient(circle, #7a5cff 0%, rgba(122, 92, 255, 0) 70%);
	animation: s2k-float 18s ease-in-out infinite alternate-reverse;
}
@keyframes s2k-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.15); } }

.card.glass {
	position: relative;
	animation: s2k-rise .6s ease .2s both;
	will-change: transform, opacity;
	overflow: hidden;
	background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .58));
	-webkit-backdrop-filter: blur(26px) saturate(180%);
	backdrop-filter: blur(26px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 22px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .95),
		inset 0 -1px 0 rgba(255, 255, 255, .3),
		inset 1px 0 0 rgba(255, 255, 255, .35),
		0 30px 80px -30px rgba(0, 0, 0, .85),
		0 2px 6px rgba(0, 0, 0, .15);
}
.card.glass::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background:
		radial-gradient(120% 60% at 15% -10%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 55%),
		linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
	pointer-events: none;
}
.card.glass::after {
	content: "";
	position: absolute;
	top: -10%;
	bottom: -10%;
	left: 0;
	width: 30%;
	z-index: -1;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, 0) 100%);
	transform: translate3d(-170%, 0, 0) skewX(-24deg);
	will-change: transform;
	pointer-events: none;
	animation: s2k-sheen 9s ease-in-out 1.2s infinite;
}
@keyframes s2k-sheen { 0%, 70% { transform: translate3d(-170%, 0, 0) skewX(-24deg); } 100% { transform: translate3d(480%, 0, 0) skewX(-24deg); } }
@media (prefers-reduced-motion: reduce) { .card.glass::after { animation: none; } }
.card.glass > * { position: relative; }
.card.glass .input, .card.glass .textarea {
	background: rgba(255, 255, 255, .62);
	border-color: rgba(255, 255, 255, .7);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
}
.card.glass .input:focus, .card.glass .textarea:focus { background: rgba(255, 255, 255, .9); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.card.glass .btn.primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -8px rgba(30, 150, 240, .7); }

.segmented {
	position: relative;
	background: rgba(0, 0, 0, .07);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1);
	border-radius: 14px;
	padding: 5px;
	gap: 0;
}
.segmented::before {
	content: "";
	position: absolute;
	top: 5px; bottom: 5px; left: 5px;
	width: calc(50% - 5px);
	border-radius: 10px;
	background: linear-gradient(180deg, #fff, #f3f8ff);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px rgba(0, 0, 0, .1), 0 6px 16px -6px rgba(0, 159, 255, .55);
	transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s, background .3s;
}
.segmented:has(#from-f:checked)::before {
	transform: translateX(100%);
	background: linear-gradient(180deg, #fff, #fff4f9);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px rgba(0, 0, 0, .1), 0 6px 16px -6px rgba(255, 95, 162, .55);
}
.segmented label { position: relative; z-index: 1; height: 48px; border-radius: 10px; font-size: 15px; }
.segmented input:checked + label { background: transparent; box-shadow: none; }
.segmented label .sym {
	display: inline-grid; place-items: center;
	width: 28px; height: 28px; border-radius: 50%;
	font-size: 17px;
	background: rgba(0, 0, 0, .06);
	transition: background .25s, color .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.segmented input:checked + label .sym { transform: scale(1.12) rotate(-8deg); color: #fff !important; }
.segmented input:checked + label.male .sym { background: #009fff; }
.segmented input:checked + label.female .sym { background: #ff5fa2; }
.segmented input:checked + label.male { color: #0a6fb5; }
.segmented input:checked + label.female { color: #c2367a; }
.segmented label:active .sym { transform: scale(.9); }

.pub-nav { display: flex; justify-content: center; gap: 6px; padding: 18px 0 0; }
.pub-nav a { padding: 9px 18px; border-radius: 999px; color: #cfcfcf; font-size: 14px; font-weight: 600; text-decoration: none; background: rgba(0, 0, 0, .18); transition: background .15s, color .15s; }
.pub-nav a:hover { background: rgba(0, 0, 0, .32); color: #fff; text-decoration: none; }
.pub-nav a.active { background: var(--accent); color: #fff; }

.feed { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 32px 0 40px; display: grid; gap: 20px; align-content: start; }
.feed-head { display: flex; align-items: center; gap: 16px; }
.feed-head .s2k-logo.sm { --size: 56px; }
.feed-head .s2k-logo.sm span { font-size: 9px; }
.feed-head h1 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 28px; color: #eee; }
.feed-head a { font-size: 13.5px; }
.feed-list { display: grid; gap: 16px; }
.feed-post { padding: 20px 22px; display: grid; gap: 12px; animation: s2k-rise .4s ease both; }
.feed-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.feed-text { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.feed-img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 10px; display: block; }
.feed-empty { padding: 36px 24px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.feed-empty p { margin: 0; color: var(--text-2); font-size: 16px; }

.fb-settings .fb-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 17px; color: #eee; }
.fb-settings .fb-head .head-pic { width: 30px; height: 30px; }
.fb-settings .pill.ok { color: #5ad18a; }
.fb-settings .pill.err { color: #ff7b7b; white-space: normal; height: auto; padding: 4px 10px; }
.fb-settings .fb-note { margin: 0; color: #ccc; font-size: 14px; }
.fb-settings .fb-row { display: grid; gap: 4px; font-size: 13px; color: #aaa; }
.fb-settings code { font-size: 13px; color: #eee; background: rgba(0, 0, 0, .3); padding: 6px 10px; border-radius: 6px; overflow-wrap: anywhere; }
.settings + .settings { margin-top: 0; }
.stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 46px; padding: 60px 16px; }
.login-wrap .s2k-logo { --size: 150px; }
.login-card { width: min(400px, 100%); padding: 30px; }
.login-form { display: grid; gap: 14px; }
.login-card h1 { margin: 0 0 4px; font-size: 20px; }
.login-card .hint { margin: 0; }
.login-back { color: #aaa; font-size: 13.5px; }
.adm-top .logout { height: 34px; margin-right: 6px; }
.remember { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; user-select: none; }
.remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }

.doc { max-width: 760px; margin: 0 auto; padding: 32px 16px 48px; }
.doc header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.doc header a { color: var(--text); font-weight: 600; }
.doc .card { padding: 28px; }
.doc h1 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 500; font-size: 32px; }
.doc h3 { margin: 22px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }

.adm { display: grid; grid-template-columns: 250px 1fr; grid-template-rows: auto 1fr; grid-template-areas: "top top" "side main"; min-height: 100vh; }

.adm-side {
	grid-area: side;
	position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
	background: rgba(0, 0, 0, .24);
	border-right: 1px solid rgba(255, 255, 255, .06);
	padding: 20px 14px 24px;
	display: flex; flex-direction: column; gap: 20px;
}
.adm-top .adm-brand { flex: none; width: 222px; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px; color: #eee !important; text-decoration: none !important; }
.adm-brand b { font-size: 15px; }
.adm-brand small { display: block; color: #999; font-size: 12px; font-weight: 500; }

.nav-group { display: grid; gap: 3px; }
.nav-group + .nav-group { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .07); }
.nav-title { padding: 0 12px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #8f8f8f; }
.nav-link {
	position: relative;
	display: flex; align-items: center; gap: 12px;
	min-height: 42px; padding: 0 12px; border-radius: 8px;
	color: #d6d6d6 !important; text-decoration: none !important;
	font-size: 14.5px; font-weight: 500;
	transition: background .12s, color .12s;
}
.nav-link svg, .nav-link img.pic { width: 20px; height: 20px; flex: none; object-fit: contain; opacity: .75; }
.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff !important; }
.nav-link:hover svg, .nav-link:hover img.pic { opacity: 1; }
.nav-link.active { background: rgba(255, 170, 0, .14); color: #fff !important; font-weight: 600; }
.nav-link.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--warn); }
.nav-link.active img.pic, .nav-link.active svg { opacity: 1; }
.nav-link.active svg { color: var(--warn); }
.nav-link .badge { margin-left: auto; }
.nav-sub { display: grid; gap: 1px; margin: 4px 0 10px 22px; padding-left: 12px; border-left: 2px solid rgba(255, 170, 0, .3); }
.nav-sub .nav-link { min-height: 36px; padding: 0 10px; gap: 10px; font-size: 13.5px; color: #b5b5b5 !important; }
.nav-sub .nav-link svg { width: 16px; height: 16px; opacity: .6; }
.nav-sub .nav-link.active { background: rgba(255, 255, 255, .08); color: var(--warn) !important; font-weight: 600; }
.nav-sub .nav-link.active::before { display: none; }
.nav-sub .nav-link.active svg { color: var(--warn); opacity: 1; }
.nav-sub .badge { min-width: 20px; height: 20px; font-size: 11.5px; }

.badge {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
	background: var(--danger); color: #fff;
	font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.badge.muted { background: rgba(0, 0, 0, .25); color: #aaa; }

.adm-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; }

.adm-top {
	grid-area: top;
	position: sticky; top: 0; z-index: 10;
	display: flex; align-items: center; gap: 14px;
	height: 64px; padding: 0 20px 0 14px;
	background: #2e2e2e;
	border-bottom: 1px dashed #555;
	border-radius: 0;
}
.adm-top .menu-toggle { display: none; color: #eee; }

.search { position: relative; flex: 1; max-width: 560px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #999; pointer-events: none; }
.search .input { height: 42px; padding-left: 38px; background: rgba(0, 0, 0, .2); border-color: transparent; color: #eee; }
.search .input::placeholder { color: #999; }
.search .input:focus { background: rgba(0, 0, 0, .3); border-color: var(--warn); box-shadow: none; }
.search-results {
	display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
	max-height: 320px; overflow-y: auto;
	background: #2a2a2a; border: 1px solid #4a4a4a; border-radius: 6px;
	box-shadow: var(--shadow); padding: 6px;
}
.search-results.show { display: block; }
.search-results a { display: block; padding: 8px 10px; border-radius: 5px; color: #eee; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.search-results a.find-link { color: var(--accent); font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 5px 5px 0 0; }
.search-results .empty { padding: 8px 10px; color: #999; font-size: 13.5px; }

.adm-top .top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #aaa; font-size: 13px; }

.adm-content { padding: 28px; display: grid; gap: 22px; align-content: start; width: 100%; max-width: 1180px; margin: 0 auto; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px dashed #666; }
.page-head h1 { margin: 0; font-size: 24px; font-weight: 700; color: #eee; text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 12px; }
.page-head h1 .head-pic { width: 38px; height: 38px; object-fit: contain; }
.page-head p { margin: 4px 0 0; color: #aaa; font-size: 14px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 7px 12px; border-radius: 4px; background: rgba(0, 0, 0, .2); color: #ddd; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.tabs a:hover { background: rgba(0, 0, 0, .35); color: #fff; text-decoration: none; }
.tabs a.active { background: var(--warn); color: #333; }

.adm .card { background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .06); border-radius: 8px; box-shadow: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stat {
	padding: 28px 20px 22px; display: grid; justify-items: center; gap: 12px;
	color: #eee !important; text-decoration: none !important;
	transition: background .15s, transform .15s;
	animation: s2k-rise .4s ease both;
}
.stat:nth-child(2) { animation-delay: .05s; }
.stat:nth-child(3) { animation-delay: .1s; }
.stat:hover { background: rgba(0, 0, 0, .32); transform: translateY(-2px); }
.stat .stat-pic { width: 120px; height: 120px; object-fit: contain; transition: transform .2s; }
.stat:hover .stat-pic { transform: scale(.94); }
.stat .lbl { color: #ccc; font-size: 15px; font-weight: 600; }
.new-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 70%; height: 26px; padding: 0 14px; border-radius: 50px; background: var(--danger); color: #fff; font-size: 14px; }
.new-pill b { font-weight: 800; }
.new-pill.zero { background: rgba(0, 0, 0, .25); color: #999; }

.msgs { display: grid; gap: 12px; }
.msg { padding: 16px 18px; display: grid; gap: 12px; animation: s2k-rise .3s ease both; overflow: hidden; }
.msg:hover { background: rgba(0, 0, 0, .28); }
.msg.leaving { animation: s2k-out .35s ease forwards; }
.msg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #aaa; }
.msg-head .lp { font-weight: 700; color: #ccc; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(0, 0, 0, .25); color: #ddd; font-size: 12.5px; font-weight: 700; }
.pill.male { color: #33b2ff; }
.pill.female { color: #ff7ab6; }
.pill.vip { color: var(--warn); }
.pill.state-new { color: #33b2ff; }
.pill.state-shared { color: #5ad18a; }
.pill.state-deleted { color: #ff7b7b; }
.msg-head .src-pic { width: 20px; height: 20px; object-fit: contain; flex: none; }
.msg-head svg.src-pic { color: #fff; }
.msg-foot a.btn { text-decoration: none; }
.msg-head .meta { display: inline-flex; align-items: center; gap: 5px; }
.msg-head .meta svg { width: 14px; height: 14px; }
.msg-head .time { margin-left: auto; font-variant-numeric: tabular-nums; }
.msg-body {
	margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;
	font: 15.5px/1.6 var(--font); color: #fff;
	max-height: 168px; overflow: hidden; position: relative; cursor: pointer;
}
.msg-body.clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(transparent, #2b2b2b); }
.msg-body.open { max-height: none; }
.msg-body.open::after { display: none; }
.msg-edit { display: grid; gap: 8px; }
.msg-edit .textarea { min-height: 160px; font-size: 14.5px; line-height: 1.55; background: rgba(0, 0, 0, .25); color: #eee; border-color: rgba(255, 255, 255, .12); }
.msg-edit .textarea:focus { background: rgba(0, 0, 0, .35); }
.msg-edit-hint { margin: 0; font-size: 12.5px; color: #999; }
.msg-edit-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-edit-row .grow { flex: 1; }
.msg.editing .msg-foot [data-action=share], .msg.editing .msg-foot [data-action=del] { opacity: .45; }
.msg-body .w { cursor: pointer; border-radius: 3px; transition: background .12s, color .12s; }
.msg-body .w:hover { background: rgba(230, 50, 60, .28); color: #fff; }
.msg-body .w.cens { color: #ff8a8a; letter-spacing: .04em; }
.msg-body .w.cens:hover { background: rgba(255, 255, 255, .12); }
.msg-body .w.saving { opacity: .55; }
.msg-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-foot .grow { flex: 1; }
.msg-foot .thumb img { height: 34px; width: auto; border-radius: 4px; display: block; }
.btn.act { height: 30px; padding: 0 12px; gap: 6px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .08); border-color: transparent; color: #ddd; }
.btn.act svg { width: 15px; height: 15px; }
.btn.act:hover { background: rgba(255, 255, 255, .16); border-color: transparent; color: #fff; }
.btn.act.icon-only { width: 30px; padding: 0; }

.btn.share { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.share:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.reject { background: #eee; border-color: #eee; color: #333; }
.btn.reject:hover { background: #fa7878; border-color: #fa7878; color: #fff; }
.adm .btn.ghost { color: #bbb; }
.adm .btn.ghost:hover { background: rgba(0, 0, 0, .25); color: #fff; }

.empty-state { padding: 48px 20px; text-align: center; color: #999; display: grid; gap: 8px; justify-items: center; }
.empty-state svg { width: 40px; height: 40px; opacity: .6; }

.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; padding: 12px 16px; background: rgba(0, 0, 0, .3); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.tbl td { padding: 10px 16px; border-top: 1px solid rgba(255, 255, 255, .07); color: #eee; vertical-align: top; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .08); }
.tbl td.num, .tbl td.time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.wrap { white-space: pre-wrap; min-width: 260px; color: #fff; }

.settings { padding: 24px; display: grid; gap: 18px; max-width: 640px; width: 100%; margin: 0 auto; }
.settings label { font-size: 13px; font-weight: 600; color: #ccc; }
.settings .input { background: #eee; border-color: #e2e2e2; color: #333; }
.settings .preview { border: 1px dashed #777; border-radius: 6px; padding: 12px; display: grid; place-items: center; min-height: 120px; color: #999; font-size: 13px; }
.settings .preview img { max-width: 100%; max-height: 260px; border-radius: 4px; }
.settings .row { display: flex; gap: 10px; align-items: center; }
.saved { color: var(--accent); font-weight: 600; font-size: 14px; opacity: 0; transition: opacity .2s; }
.saved.show { opacity: 1; }

.last-view { position: fixed; right: 10px; bottom: 6px; z-index: 4; font-size: 11px; line-height: 1.4; color: #999; text-align: right; font-variant-numeric: tabular-nums; pointer-events: none; }

.toast {
	position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px);
	background: #222; color: #eee; border: 1px solid #555;
	padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
	box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.scrim { display: none; }

@media (max-width: 980px) {
	.stats { grid-template-columns: 1fr; }
	.stat { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; padding: 16px 18px; }
	.stat .stat-pic { width: 48px; height: 48px; }
	.new-pill { min-width: 0; }
}

@media (max-width: 860px) {
	.adm { grid-template-columns: 1fr; }
	.adm { grid-template-areas: "top" "main"; }
	.adm-top .adm-brand { width: auto; }
	.adm-top .adm-brand small { display: none; }
	.adm-side { position: fixed; z-index: 30; left: 0; top: 0; height: 100vh; width: 270px; transform: translateX(-100%); transition: transform .2s ease; background: #2a2a2a; }
	.adm.nav-open .adm-side { transform: none; }
	.adm.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .6); }
	.adm-top { padding: 10px 16px; }
	.adm-top .menu-toggle { display: inline-flex; }
	.adm-top .top-right .hide-sm { display: none; }
	.adm-content { padding: 18px 16px 60px; }
	.msg-head .time { margin-left: 0; width: 100%; }
}

.fb-connect { display: grid; gap: 10px; padding: 14px; border-radius: 8px; background: rgba(0, 0, 0, .18); }
.fb-connect .fb-step { font-size: 14px; color: #ddd; line-height: 1.5; }
.fb-connect .fb-step a { color: var(--accent); }
.fb-connect label { font-size: 13.5px; font-weight: 600; color: #ddd; }
.fb-connect .fb-hint { font-weight: 400; color: #999; }
.fb-connect .fb-token { height: auto; min-height: 76px; font: 12.5px/1.4 ui-monospace, Consolas, monospace; resize: vertical; background: #eee; color: #333; word-break: break-all; }
.fb-connect input.input { background: #eee; color: #333; }
.fb-connect .btn .btn-ico { width: 18px; height: 18px; }
.fb-connect-msg { font-size: 13.5px; color: #ccc; }
.fb-connect-msg.ok { color: #5ad18a; }
.fb-connect-msg.err { color: #ff7b7b; }

.feed-page { position: relative; }
.feed-page .pub { position: relative; z-index: 1; }
.feed-text mark { background: rgba(30, 150, 240, .22); color: inherit; border-radius: 3px; padding: 0 2px; }
.feed-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #777; pointer-events: none; }
.feed-search .input { height: 50px; padding-left: 46px; border-radius: 14px; font-size: 15.5px; background: rgba(255, 255, 255, .82); color: #333; border: 1px solid rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .7); }
.feed-search .input:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.feed-more { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 18px; color: #aaa; font-size: 14px; }
.feed-more[hidden], .feed-end[hidden] { display: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); animation: s2k-rot .8s linear infinite; }
.feed-end { margin: 0; text-align: center; color: #888; font-size: 13.5px; padding: 6px 0 10px; }
.btn .btn-ico { width: 16px; height: 16px; }

.feed-img { aspect-ratio: auto 4 / 3; background: rgba(0, 0, 0, .06); }
.feed-more .btn.feed-retry { height: 32px; }
.feed-more.failed .spinner, .feed-more.failed .feed-more-text { display: none; }
.feed-comments { margin-top: 2px; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, .08); display: grid; gap: 8px; }
.fc-title { font-size: 13px; font-weight: 700; color: #555; }
.fc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed-comment { background: #f4f5f7; border: 1px solid #e9eaed; border-radius: 12px; padding: 9px 12px; }
.fc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 12.5px; color: #777; }
.fc-head b { color: #333; font-size: 13px; }
.fc-likes { color: #e0457b; }
.feed-comment p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #333; overflow-wrap: anywhere; }
.fc-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); list-style: none; }
.fc-more summary::-webkit-details-marker { display: none; }
.fc-more[open] summary { margin-bottom: 8px; }
.fc-all { font-size: 13px; font-weight: 600; }

.chat { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 210px); min-height: 460px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.chat-list { overflow-y: auto; border-right: 1px solid var(--border); background: rgba(0, 0, 0, .12); }
.chat-thread { display: flex; align-items: center; gap: 10px; padding: 11px 12px; color: var(--text); border-bottom: 1px solid rgba(255, 255, 255, .04); text-decoration: none; }
.chat-thread:hover { background: rgba(255, 255, 255, .05); text-decoration: none; }
.chat-thread.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.chat-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #4a4a4a; color: #fff; font-weight: 700; font-size: 15px; }
.chat-thread.active .chat-avatar { background: var(--accent); }
.chat-thread-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-thread-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.chat-thread-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread-top time { flex: none; color: var(--muted); font-size: 12px; }
.chat-thread-snippet { color: #aaa; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread .badge { flex: none; }
.chat-pane { display: grid; grid-template-rows: auto 1fr auto auto; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.chat-who { flex: 1; min-width: 0; display: grid; }
.chat-who b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-who small { color: var(--muted); font-size: 12px; }
.chat-head .btn { text-decoration: none; }
.chat-back { display: none; }
.chat-log { overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.chat-empty { margin: auto; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; text-align: center; padding: 20px; }
.chat-day { align-self: center; margin: 10px 0 4px; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .25); color: #aaa; font-size: 12px; }
.chat-row { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.chat-row.mine { justify-content: flex-end; }
.chat-bubble { max-width: min(560px, 78%); padding: 9px 12px 6px; border-radius: 16px; background: #474747; color: #f2f2f2; display: grid; gap: 6px; border: 2px solid transparent; transition: border-color .12s, background .12s; }
.chat-row.theirs .chat-bubble { border-bottom-left-radius: 5px; }
.chat-row.mine .chat-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.chat-bubble.pickable { cursor: pointer; }
.chat-bubble.pickable:hover { border-color: rgba(30, 150, 240, .5); }
.chat-bubble.selected { border-color: var(--accent); background: #2f4a60; }
.chat-bubble.st-shared { box-shadow: inset 3px 0 0 #5ad18a; }
.chat-bubble.st-deleted { opacity: .6; }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.5; user-select: text; }
.chat-img img { display: block; max-width: 100%; max-height: 280px; border-radius: 10px; }
.chat-meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.chat-meta .pill { height: 19px; padding: 0 7px; font-size: 11px; }
.chat-edited { font-style: italic; }
.chat-acts { display: flex; flex-direction: column; gap: 4px; opacity: 0; transition: opacity .12s; }
.chat-row:hover .chat-acts, .chat-row:focus-within .chat-acts { opacity: 1; }
.chat-act { height: 26px; padding: 0 9px; font-size: 12px; }
.chat-send { display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-send .textarea { flex: 1; min-height: 40px; max-height: 160px; height: 40px; padding: 9px 12px; resize: none; font-size: 14.5px; line-height: 1.4; background: rgba(0, 0, 0, .25); color: #eee; border-color: rgba(255, 255, 255, .1); }
.chat-send .btn { height: 40px; }
@media (hover: none) { .chat-acts { opacity: 1; } }
@media (max-width: 860px) {
	.chat { grid-template-columns: 1fr; height: calc(100vh - 170px); }
	.chat .chat-pane { display: none; }
	.chat.show-pane .chat-list { display: none; }
	.chat.show-pane .chat-pane { display: grid; }
	.chat-back { display: inline-grid; place-items: center; }
	.chat-bubble { max-width: 86%; }
	.chat-acts { opacity: 1; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.chat-bubble:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-img img { min-height: 60px; background: rgba(0, 0, 0, .2); }

.adm-content:has(> .chat) { max-width: 1560px; }
.chat { position: relative; grid-template-columns: 270px minmax(0, 1fr) 340px; }
.composer { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; border-left: 1px solid var(--border); background: var(--surface); }
.composer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 15px; }
.composer-close { display: none; }
.composer-body { overflow-y: auto; padding: 14px; display: grid; gap: 16px; align-content: start; }
.composer-section { display: grid; gap: 8px; }
.composer-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #aaa; }
.composer-from { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; background: rgba(0, 0, 0, .25); border-radius: 10px; }
.composer-from input { position: absolute; opacity: 0; pointer-events: none; }
.composer-from label { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 13px; color: #aaa; transition: background .15s, color .15s; }
.composer-from label:last-of-type { grid-column: 1 / -1; height: 32px; font-size: 12.5px; }
.composer-from label .sym { font-size: 17px; line-height: 1; }
.composer-from label:hover { color: #eee; }
.composer-from input:checked + label { background: #fff; color: #333; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.composer-from input:checked + label.male .sym { color: #009fff; }
.composer-from input:checked + label.female .sym { color: #ff5fa2; }
.composer-from input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.composer.need-from .composer-from { box-shadow: 0 0 0 2px var(--warn); }
.composer-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: ci; }
.composer-items li { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 8px; padding: 8px 8px 8px 10px; border-radius: 9px; background: rgba(0, 0, 0, .22); font-size: 13px; color: #ddd; counter-increment: ci; }
.composer-items li::before { content: counter(ci); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.composer-items .ci-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.composer-items .ci-acts { display: flex; gap: 2px; }
.composer-items .ci-acts button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #aaa; cursor: pointer; display: grid; place-items: center; font-size: 14px; }
.composer-items .ci-acts button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.composer-items .ci-acts button:disabled { opacity: .3; cursor: default; }
.composer-items .ci-acts svg { width: 14px; height: 14px; }
.composer-empty { margin: 0; color: #999; font-size: 13px; line-height: 1.5; }
.composer-empty[hidden] { display: none; }
.composer .textarea { min-height: 150px; font-size: 14px; line-height: 1.5; background: rgba(0, 0, 0, .25); color: #eee; border-color: rgba(255, 255, 255, .1); }
.composer-preview { padding: 12px 14px; border-radius: 10px; background: #fff; color: #1c1e21; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 48px; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .6); }
.composer-preview .pv-head { font-weight: 700; }
.composer-preview .pv-num { color: #65676b; }
.composer-preview .pv-empty { color: #8a8d91; }
.composer-foot { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.composer-foot #composerShare { flex: 1; justify-content: center; }
.chat-post-toggle { display: none; }
.chat-post-toggle .badge { margin-left: 4px; }
.chat-bubble.in-post { border-color: var(--accent); background: #2f4a60; }
.chat-act.added { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
@media (max-width: 1280px) {
	.chat { grid-template-columns: 270px minmax(0, 1fr); }
	.composer { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 100%); z-index: 6; transform: translateX(105%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; box-shadow: -18px 0 40px -20px rgba(0, 0, 0, .8); }
	.chat.composer-open .composer { transform: none; visibility: visible; transition: transform .2s ease, visibility 0s; }
	.composer-close { display: inline-grid; place-items: center; }
	.chat-post-toggle { display: inline-flex; }
}
@media (max-width: 860px) {
	.chat { grid-template-columns: 1fr; }
	.composer { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .composer { transition: none; } }

.feed { max-width: 640px; gap: 18px; padding-top: 28px; }
.feed-head h1 { font-size: 26px; }
.feed-toolbar { position: sticky; top: 0; z-index: 20; margin: 0 -16px; padding: 10px 16px; display: grid; gap: 6px; background: #262626; border: 1px solid #4f4f4f; border-radius: 14px; transition: box-shadow .2s, border-radius .2s; }
.feed-toolbar.stuck { border-radius: 0 0 14px 14px; border-top-color: transparent; box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .85); }
html:has(body.feed-page) { scroll-padding-top: 100px; }
.feed-search { position: relative; top: auto; }
.feed-search .input { height: 46px; padding: 0 44px 0 46px; border-radius: 11px; font-size: 15.5px; background: #383838; color: #f2f2f2; border: 1px solid #5a5a5a; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.feed-search .input::placeholder { color: #8d8d8d; }
.feed-search .input:focus { background: #3e3e3e; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.feed-search .input::-webkit-search-cancel-button { display: none; }
.feed-search svg { color: #8d8d8d; }
.feed-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #aaa; font-size: 22px; line-height: 1; cursor: pointer; }
.feed-clear:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.feed-clear[hidden] { display: none; }
.feed-count { margin: 0; font-size: 13px; color: #9a9a9a; min-height: 0; }
.feed-count:empty { display: none; }
.feed-list { gap: 14px; transition: opacity .15s; }
.feed-list.dim { opacity: .45; }
.feed-page .feed-post, .feed-post { position: relative; padding: 18px 20px; display: grid; gap: 12px; border-radius: 14px; background: #3c3c3c; border: 1px solid #484848; box-shadow: 0 10px 26px -18px rgba(0, 0, 0, .9); animation: none; }
.feed-post .feed-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #9a9a9a; justify-content: flex-start; }
.feed-num { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: #7cc4ff; font-weight: 700; font-size: 12.5px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.feed-post time { color: #a8a8a8; }
.feed-fb { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: #a8a8a8; font-weight: 600; font-size: 12.5px; padding: 4px 8px; border-radius: 8px; }
.feed-fb:hover { color: #fff; background: rgba(255, 255, 255, .06); text-decoration: none; }
.feed-fb svg { width: 15px; height: 15px; }
.feed-page .feed-post .feed-text, .feed-post .feed-text { margin: 0; font-size: 15.5px; line-height: 1.62; color: #ececec; overflow-wrap: anywhere; }
.feed-text.clamp { display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden; }
.feed-expand { justify-self: start; margin-top: -6px; padding: 0; border: 0; background: none; color: #7cc4ff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.feed-expand:hover { text-decoration: underline; }
.feed-text mark { background: rgba(30, 150, 240, .35); color: #fff; }
.feed-img-btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.feed-img-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.feed-img { background: rgba(0, 0, 0, .2); }
.feed-post .feed-comments { border-top-color: rgba(255, 255, 255, .08); }
.feed-post .fc-title { color: #bdbdbd; }
.feed-post .feed-comment { background: #333; border-color: #444; }
.feed-post .fc-head { color: #999; }
.feed-post .fc-head b { color: #eee; }
.feed-post .feed-comment p { color: #ddd; }
.feed-post .fc-more summary, .feed-post .fc-all { color: #7cc4ff; }
.feed-empty { padding: 32px 22px; border-radius: 14px; background: #3c3c3c; border: 1px solid #484848; text-align: center; display: grid; gap: 14px; justify-items: center; }
.feed-empty p { margin: 0; color: #ccc; }
.feed-top { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #555; background: #2a2a2a; color: #eee; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .9); }
.feed-top:hover { background: var(--accent); border-color: var(--accent); }
.feed-top[hidden] { display: none; }
.feed-top svg { width: 22px; height: 22px; }
.feed-lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.feed-lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.feed-lightbox img { display: block; max-width: 96vw; max-height: 94vh; border-radius: 8px; }
.feed-lightbox-close { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; cursor: pointer; }
.feed-lightbox-close:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 600px) {
	.feed-page .feed-post, .feed-post { padding: 16px; border-radius: 12px; }
	.feed-toolbar { margin: 0 -8px; padding: 8px; }
}

.feed-toolbar { margin: 0 -16px; padding: 12px 16px 18px; background: linear-gradient(to bottom, #333 0, #333 calc(100% - 14px), rgba(51, 51, 51, 0) 100%); border: 0; border-radius: 0; box-shadow: none; }
.feed-toolbar.stuck { border-radius: 0; box-shadow: none; }
.feed-search .input { height: 48px; border-radius: 999px; background: #f1f1f1; color: #222; border: 1px solid transparent; box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .7); }
.feed-search .input::placeholder { color: #777; }
.feed-search .input:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 6px 20px -10px rgba(0, 0, 0, .7); }
.feed-search svg { color: #666; }
.feed-clear { color: #666; }
.feed-clear:hover { background: rgba(0, 0, 0, .07); color: #222; }
.feed-count { padding-left: 18px; color: #b5b5b5; }
.feed-page .feed-post, .feed-post { background: #4a4a4a; border: 1px solid #585858; box-shadow: 0 12px 28px -20px rgba(0, 0, 0, .9); }
.feed-post .feed-meta { color: #c2c2c2; }
.feed-post time { color: #c8c8c8; }
.feed-fb { color: #cfcfcf; }
.feed-fb:hover { background: rgba(255, 255, 255, .08); }
.feed-num { background: rgba(30, 150, 240, .22); color: #9fd3ff; }
.feed-page .feed-post .feed-text, .feed-post .feed-text { color: #f6f6f6; }
.feed-expand { color: #9fd3ff; }
.feed-post .feed-comments { border-top-color: rgba(255, 255, 255, .1); }
.feed-post .feed-comment { background: #414141; border-color: #525252; }
.feed-post .fc-title { color: #d0d0d0; }
.feed-post .fc-head { color: #aaa; }
.feed-post .fc-more summary, .feed-post .fc-all { color: #9fd3ff; }
.feed-empty { background: #4a4a4a; border-color: #585858; }

.composer-body { gap: 0; padding: 0; }
.composer-section { padding: 14px; border-bottom: 1px solid var(--border); }
.composer-section:last-child { border-bottom: 0; }
.composer-label { color: #c8c8c8; }
.composer-from { gap: 8px; padding: 0; background: none; border-radius: 0; }
.composer-from label { height: 42px; border: 1px solid #5a5a5a; background: #2f2f2f; color: #d6d6d6; font-size: 13.5px; }
.composer-from label:last-of-type { height: 36px; }
.composer-from label:hover { border-color: #808080; background: #383838; color: #fff; }
.composer-from input:checked + label { box-shadow: none; }
.composer-from input:checked + label.female { background: rgba(255, 95, 162, .16); border-color: #ff5fa2; color: #fff; }
.composer-from input:checked + label.male { background: rgba(0, 159, 255, .16); border-color: #009fff; color: #fff; }
.composer-from input:checked + label:not(.male):not(.female) { background: rgba(255, 255, 255, .12); border-color: #cfcfcf; color: #fff; }
.composer-from input:checked + label.female .sym { color: #ff7ab6; }
.composer-from input:checked + label.male .sym { color: #33b2ff; }
.composer-from label .sym { color: #9a9a9a; }
.composer.need-from .composer-from { box-shadow: none; }
.composer.need-from .composer-from label { border-color: var(--warn); }
.pv-images { display: grid; gap: 3px; margin-top: 10px; border-radius: 8px; overflow: hidden; position: relative; }
.pv-images.pv-n2 { grid-template-columns: 1fr 1fr; }
.pv-images.pv-n3, .pv-images.pv-n4 { grid-template-columns: 1fr 1fr; }
.pv-images.pv-n3 img:first-child { grid-column: 1 / -1; }
.pv-images img { display: block; width: 100%; height: 100%; max-height: 260px; object-fit: cover; background: #ddd; }
.pv-images.pv-n2 img, .pv-images.pv-n3 img, .pv-images.pv-n4 img { aspect-ratio: 1; max-height: none; }
.pv-more { position: absolute; right: 0; bottom: 0; width: calc(50% - 1.5px); aspect-ratio: 1; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; font-weight: 700; }
.pv-warn { margin: 8px 0 0; color: #b26b00; font-size: 12.5px; }
.ci-thumbs { display: flex; gap: 4px; margin-top: 6px; }
.ci-thumbs img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: #222; }
.chat-unread { flex: none; background: var(--accent); color: #fff; }
.chat-thread:has(.chat-unread) .chat-thread-top b { color: #fff; }
.chat-thread:has(.chat-unread) .chat-thread-snippet { color: #ddd; font-weight: 600; }
.chat { grid-template-columns: 270px minmax(320px, 1fr) 10px var(--composer-w, 340px); }
.chat-resizer { position: relative; cursor: col-resize; background: var(--surface-2); touch-action: none; outline: none; }
.chat-resizer::before { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: var(--border); transition: background .15s; }
.chat-resizer::after { content: ""; position: absolute; top: 50%; left: 2px; width: 6px; height: 36px; margin-top: -18px; border-radius: 3px; background: #5a5a5a; transition: background .15s; }
.chat-resizer:hover::before, .chat-resizer:focus-visible::before, .chat.resizing .chat-resizer::before { background: var(--accent); }
.chat-resizer:hover::after, .chat-resizer:focus-visible::after, .chat.resizing .chat-resizer::after { background: var(--accent); }
.chat.resizing { user-select: none; cursor: col-resize; }
.chat .composer { border-left: 0; }
@media (max-width: 1280px) {
	.chat { grid-template-columns: 270px minmax(0, 1fr); }
	.chat-resizer { display: none; }
	.chat .composer { width: min(var(--composer-w, 360px), 100%); }
}
@media (max-width: 860px) {
	.chat { grid-template-columns: 1fr; }
	.chat .composer { width: 100%; }
}
.feed-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; overflow: hidden; background: rgba(30, 150, 240, .18); }
.feed-progress[hidden] { display: none; }
.feed-progress span { position: absolute; top: 0; bottom: 0; width: 35%; background: var(--accent); animation: s2k-progress 1.1s ease-in-out infinite; }
@keyframes s2k-progress { from { left: -35%; } to { left: 100%; } }
.feed-skeleton { display: grid; gap: 14px; }
.sk-card { padding: 20px; border-radius: 14px; background: #4a4a4a; border: 1px solid #585858; display: grid; gap: 12px; }
.sk-line { height: 13px; border-radius: 7px; background: linear-gradient(90deg, #555 0%, #626262 40%, #555 80%); background-size: 250% 100%; animation: s2k-shimmer 1.3s linear infinite; }
.sk-short { width: 32%; }
.sk-mid { width: 64%; }
@keyframes s2k-shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.feed-fresh { justify-self: center; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8); }
@media (prefers-reduced-motion: reduce) { .feed-progress span, .sk-line { animation: none; } .feed-progress span { left: 0; width: 100%; opacity: .6; } }
button.feed-fresh { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; position: sticky; top: 92px; z-index: 19; }
.feed-post .feed-comment { display: flex; gap: 10px; align-items: flex-start; }
.fc-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.fc-avatar.anon { background: #5c5c5c; color: #ccc; }
.fc-body { min-width: 0; flex: 1; }
.fc-more[open] > summary { display: none; }
.feed-post .feed-comments { margin-top: 4px; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); gap: 10px; }
.feed-post .fc-title { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 700; }
.feed-post .fc-title svg { width: 18px; height: 18px; color: #7cc4ff; flex: none; }
.feed-post .fc-list { gap: 10px; }
.feed-post .feed-comment { background: #363636; border: 1px solid #5c5c5c; border-radius: 14px; padding: 10px 12px; }
.feed-post .fc-head { color: #b8b8b8; font-size: 12.5px; }
.feed-post .fc-head b { color: #fff; font-size: 14px; }
.feed-post .feed-comment p { color: #f2f2f2; font-size: 14.5px; line-height: 1.5; }
.feed-post .fc-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.feed-post .fc-more summary { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(30, 150, 240, .18); border: 1px solid rgba(30, 150, 240, .45); color: #cfe9ff; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.feed-post .fc-more summary:hover { background: rgba(30, 150, 240, .3); color: #fff; }
.feed-post .fc-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.feed-post .fc-more[open] > summary { display: none; }
.feed-progress { height: 4px; background: rgba(30, 150, 240, .25); }
.feed-progress span { box-shadow: 0 0 10px rgba(30, 150, 240, .9); }
.feed-syncing { justify-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: rgba(30, 150, 240, .2); border: 1px solid rgba(30, 150, 240, .55); color: #e3f2ff; font-size: 13.5px; font-weight: 600; }
.feed-syncing[hidden] { display: none; }
.feed-syncing .spinner { width: 16px; height: 16px; border-color: rgba(255, 255, 255, .25); border-top-color: #fff; }
.feed-page .feed-post, .feed-post { background: #565c64; border-color: #6a7079; }
.feed-empty, .sk-card { background: #565c64; border-color: #6a7079; }
.feed-post .feed-meta, .feed-post time, .feed-fb { color: #d8dce2; }
.feed-post .feed-comments { border-top-color: rgba(255, 255, 255, .18); }
.feed-post .feed-comment { background: #646a73; border-color: #79808a; }
.feed-post .fc-head { color: #d0d4da; }
.feed-post .fc-avatar.anon { background: #7a818b; color: #eef1f4; }
.sk-line { background: linear-gradient(90deg, #626870 0%, #707780 40%, #626870 80%); background-size: 250% 100%; }
.chat-act.frag { background: #f5b301; border-color: #f5b301; color: #222; font-weight: 700; }
.chat-text::selection, .chat-text *::selection { background: #f5b301; color: #222; }
.chat-bubble.pickable .chat-text { cursor: text; }
.chat-list-sep { position: sticky; top: 0; z-index: 1; padding: 6px 12px; background: #262626; color: #9a9a9a; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }
.chat-thread.done { opacity: .62; }
.chat-thread.done.active, .chat-thread.done:hover { opacity: 1; }
.chat-thread.done .chat-thread-top b::after { content: " ✓"; color: #5ad18a; }
.chat-thread-top { align-items: center; }
.chat-thread-top b { flex: 0 1 auto; min-width: 0; }
.chat-thread-top time { margin-left: auto; }
.chat-tag { flex: none; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; letter-spacing: .02em; }
.chat-tag.shared { background: rgba(90, 209, 138, .18); color: #7be3a5; border: 1px solid rgba(90, 209, 138, .45); }
.chat-tag.fresh { background: rgba(30, 150, 240, .22); color: #9fd3ff; border: 1px solid rgba(30, 150, 240, .55); }
.chat-thread.done .chat-thread-top b::after { content: none; }
.pill.merged { color: #9fd3ff; background: rgba(30, 150, 240, .16); }
.chat-tag.read { background: rgba(255, 255, 255, .1); color: #cfcfcf; border: 1px solid rgba(255, 255, 255, .25); }
.chat-handled { white-space: nowrap; }
.chat-handled:not(.is-done) { border-color: rgba(90, 209, 138, .5); color: #9be7b8; }
.chat-handled:not(.is-done):hover { background: rgba(90, 209, 138, .15); color: #fff; }
.composer-hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: #9a9a9a; }
.pv-w { cursor: pointer; border-radius: 3px; transition: background .12s, color .12s; }
.pv-w:hover { background: rgba(230, 50, 60, .18); color: #b0121c; }
.pv-w.cens { color: #c4161f; font-weight: 600; letter-spacing: .03em; }
.pv-w.cens:hover { background: rgba(0, 0, 0, .08); }
.feed-page .feed-post, .feed-post { background: #454950; border-color: #575c64; }
.feed-empty, .sk-card { background: #454950; border-color: #575c64; }
.feed-post .feed-comments { border-top-color: rgba(255, 255, 255, .12); }
.feed-post .feed-comment { background: #373a40; border-color: #4c5058; }
.feed-post .fc-avatar.anon { background: #5a5f68; color: #e4e7eb; }
.sk-line { background: linear-gradient(90deg, #52565e 0%, #5e636b 40%, #52565e 80%); background-size: 250% 100%; }
.msg-foot .fb-thumb img { height: 56px; width: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.msg-foot .fb-thumb:hover img { border-color: var(--accent); }
.msg-foot a.pill.vip { text-decoration: none; }
.msg-foot a.pill.vip:hover { background: rgba(255, 170, 0, .18); }
.composer-imghint { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 9px; background: rgba(245, 179, 1, .14); border: 1px solid rgba(245, 179, 1, .5); color: #ffd877; font-size: 13px; font-weight: 600; }
.composer-imghint[hidden] { display: none; }
.composer-imghint .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; margin: 0; }
.ad-slot { overflow: hidden; border-radius: var(--radius); }
html { background: #333; scrollbar-color: #6a6a6a #2b2b2b; }
.fb-stories { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.fb-check { display: flex; align-items: center; gap: 8px; color: #ddd; font-size: 14px; cursor: pointer; }
.fb-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.story-preview { grid-column: 1 / -1; justify-self: center; width: min(260px, 100%); border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .9); }
.story-preview[hidden] { display: none; }
.vip-ico { color: #f5b301; }
.nav-link .vip-ico { opacity: .9; }
.stat .stat-pic.vip-ico { width: 120px; height: 120px; padding: 18px; }
@media (max-width: 860px) { .stat .stat-pic.vip-ico { width: 48px; height: 48px; padding: 4px; } }
.feed-featured { display: grid; gap: 14px; margin-bottom: 4px; }
.feed-featured-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffd877; }
.feed-featured[hidden] { display: none; }
.feed-post.featured { border-color: #f5b301; box-shadow: 0 0 0 1px rgba(245, 179, 1, .45), 0 14px 34px -20px rgba(245, 179, 1, .6); }

.mail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mail-area { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; font-family: inherit; }

.settings.mail-settings { max-width: 820px; gap: 16px; }
.mail-settings .row { flex-wrap: wrap; }
.ms-sec { display: grid; gap: 12px; padding: 18px; border-radius: 14px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .07); }
.ms-sec h4 { margin: 0; font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .01em; }
.ms-help { display: block; margin: 0; font-size: 12.5px; font-weight: 400; color: #a9a9a9; line-height: 1.45; }
.ms-opt { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border-radius: 11px; background: rgba(255, 255, 255, .05); border: 1px solid transparent; cursor: pointer; }
.ms-opt:hover { background: rgba(255, 255, 255, .09); }
.ms-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ms-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.ms-opt span { display: grid; gap: 2px; }
.ms-opt b { font-size: 14px; font-weight: 700; color: #f1f1f1; }
.ms-opt small { font-size: 12.5px; font-weight: 400; color: #b5b5b5; line-height: 1.4; }
.mail-settings .field { display: grid; gap: 6px; align-content: start; }
.rs-list { display: grid; gap: 10px; }
.rs-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.rs-num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: #fff; font-size: 13px; font-weight: 800; margin-top: 8px; }
.rs-fields { display: grid; gap: 8px; min-width: 0; }
.rs-name { font-weight: 700; }
.rs-text { height: auto; min-height: 58px; padding: 10px 14px; resize: none; overflow: hidden; line-height: 1.45; font-family: inherit; font-size: 14px; }
.rs-act { display: flex; flex-direction: column; gap: 6px; }
.rs-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #ddd; font-size: 15px; line-height: 1; cursor: pointer; }
.rs-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .15); color: #fff; }
.rs-btn:disabled { opacity: .3; cursor: default; }
.rs-del:hover:not(:disabled) { background: rgba(255, 90, 90, .25); border-color: rgba(255, 120, 120, .6); color: #ffb0b0; }
.rs-add { justify-self: start; }
.ms-actions { padding-top: 4px; }

dialog.reject-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #34353a; color: #eee; border: 1px solid #505258; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.reject-dialog form { padding: 22px; display: grid; gap: 14px; }
.reject-dialog .modal-head h3 { color: #fff; }
.rj-snippet { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); color: #cfcfcf; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.rj-send { align-items: flex-start; }
.rj-send b { color: #fff; overflow-wrap: anywhere; }
.rj-off { color: #ffb36b; font-style: normal; }
.rj-reasons { display: grid; gap: 6px; }
.rj-reasons .label { color: #bbb; font-size: 13px; font-weight: 600; }
.rj-reasons.muted { opacity: .5; }
.rj-opt { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid transparent; cursor: pointer; font-size: 14px; color: #e6e6e6; }
.rj-opt:hover { background: rgba(255, 255, 255, .09); }
.rj-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rj-opt input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.reject-dialog .field { display: grid; gap: 6px; }
.reject-dialog .field label { color: #bbb; font-size: 13px; font-weight: 600; }
.reject-dialog .textarea { min-height: 80px; background: #2a2b2f; color: #eee; border: 1px solid #55575d; }
.rj-err { margin: 0; color: #ff8a8a; font-size: 13.5px; }
.reject-dialog .row { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 640px) {
	.mail-grid { grid-template-columns: minmax(0, 1fr); }
	.ms-sec { padding: 14px; }
	.rs-row { grid-template-columns: minmax(0, 1fr) auto; }
	.rs-num { display: none; }
	.rs-act { flex-direction: row; grid-column: 1 / -1; justify-content: flex-end; }
}

.reject-dialog .row .btn, .ms-actions .btn { flex: 0 0 150px; width: 150px; min-width: 150px; height: 44px; padding: 0 16px; justify-content: center; text-align: center; box-sizing: border-box; }
@media (max-width: 420px) {
	.reject-dialog .row .btn, .ms-actions .btn { flex: 1 1 0; width: auto; min-width: 0; }
}

.set-tabs { display: flex; gap: 6px; padding: 5px; width: 100%; max-width: 820px; margin: 0 auto 18px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); box-sizing: border-box; }
.set-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: #c9c9c9; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.set-tab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.set-tab[aria-selected="true"] { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px var(--accent); }
.set-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.set-tab-ico { width: 16px; height: 16px; }
[data-tab-panel][hidden] { display: none !important; }
@media (max-width: 520px) { .set-tab { padding: 0 8px; font-size: 13.5px; } }
