:root {
    --bg-dark: #080808;
    --bg-panel: #210B16;
    --bg-panel-subtle: #171b1f;
    --pink: #ff2f92;
    --pink-soft: #ff7abf;
    --orange: #FF6600;
    --green: #45FF00;
    --headlines: #F0C77D;
    --text-main: #f6e9f0;
    --text-muted: #b8a7b1;
    --button-radius: 10px;
    --button-height: 25px;
    --button-pad-y: 4px;
    --button-pad-x: 10px;
    --button-font-size: 0.8rem;
}

a {text-decoration: none; color: #90EE90;}




button,
.table-action,
.auth-code-link,
.report-link,
.team-chat-action,
.forum-author-chat,
.subtle-action,
.pagination a,
.chat-upload-count a,
.faq-flow a,
.admin-filter a,
.filter-toggle,
.forum-inline-edit summary,
.chat-actions .permalink {
	--btn-bg: var(--orange);
	--btn-color: #fff;
	--btn-border: 0;
	--btn-height: var(--button-height);
	--btn-pad-y: var(--button-pad-y);
	--btn-pad-x: var(--button-pad-x);
	--btn-font-size: var(--button-font-size);
	--btn-radius: var(--button-radius);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: var(--btn-height);
	padding: var(--btn-pad-y) var(--btn-pad-x);
	border: var(--btn-border);
	border-radius: var(--btn-radius);
	background: var(--btn-bg);
	color: var(--btn-color);
	font: inherit;
	font-size: var(--btn-font-size);
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
}

.danger-subtle {
	--btn-bg: rgba(255,0,76,0.12);
	--btn-color: #ff7a9d;
	--btn-border: 1px solid rgba(255,0,76,0.35);
}

.report-link {
	--btn-bg: rgba(255,210,225,0.18);
	--btn-color: #ff4d7d;
	--btn-border: 1px solid rgba(255,0,76,0.35);
	--btn-pad-y: 3px;
	--btn-pad-x: 0.45rem;
	height: var(--btn-height);
	min-width: var(--btn-height);
}

.report-icon {
	width: 1.08rem;
	height: 1.08rem;
	display: block;
	overflow: visible;
}

.inline-review-form {
	display: inline-flex;
}

.staff-review-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.staff-review-actions .report-link,
.staff-review-actions .inline-review-form {
	margin: 0;
}

.review-link {
	--btn-bg: rgba(255,102,0,0.18);
	--btn-color: var(--orange);
	--btn-border: 1px solid rgba(255,102,0,0.45);
}

.review-icon {
	width: 1.08rem;
	height: 1.08rem;
	display: block;
}

.review-icon circle {
	fill: transparent;
	stroke: currentColor;
	stroke-width: 2;
}

.review-icon text {
	fill: currentColor;
	font-size: 11px;
	font-weight: 900;
	font-family: Arial, Verdana, sans-serif;
}

.report-popout-form {
	max-width: 520px;
	border-left-color: var(--orange);
}

.admin-image-remove {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	flex-wrap: wrap;
	padding: 0.75rem;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
}

.profile-name-warning {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-wrap: wrap;
	margin: 0 0 1rem;
	width: 100%;
	max-width: 1200px;
	padding: 1rem 1.1rem;
	border: 2px solid #ff004c;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(255,0,76,0.24), rgba(255,47,146,0.12));
	box-shadow: 0 0 24px rgba(255,0,76,0.18);
}

.profile-name-warning strong {
	flex: 1 1 100%;
	color: #ffb3c8;
	font-size: 1.25rem;
	text-transform: uppercase;
}

.profile-name-warning span {
	flex: 1 1 420px;
	min-width: 0;
	color: #ffe5ee;
	font-weight: 600;
}

.profile-name-warning .table-action {
	--btn-bg: #ff004c;
	--btn-color: #fff;
}

.inline-cookie-consent {
	display: inline-flex;
	margin-left: 0.35rem;
	vertical-align: middle;
}

.inline-cookie-consent button {
	--btn-bg: var(--pink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: 'Poppins', 'Segoe UI', Ubuntu, Arial, Verdana, Helvetica, sans-serif;
    background-color: var(--bg-dark);
    background-image: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.52));
    background-attachment: fixed;
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    font-size: 12pt;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 120px),
        radial-gradient(ellipse at center, transparent 0, transparent 52%, rgba(0,0,0,0.38) 100%);
    mix-blend-mode: screen;
    opacity: 0.42;
    z-index: 0;
}

body.theme-subtle {
    --bg-dark: #070809;
    --bg-panel: var(--bg-panel-subtle);
    background-image: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(0,0,0,0.36));
}

body.theme-subtle::before {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 140px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.010) 0 1px, transparent 1px 140px),
        radial-gradient(ellipse at center, transparent 0, transparent 58%, rgba(0,0,0,0.32) 100%);
    opacity: 0.28;
}

h1.error {font-size: 1.25rem;}

.logo h1 {
	margin:0px 0px 20px 5px;
	padding:0;
	display: block;
	color: var(--pink);
	font-size: 0.8em;
	text-align: center;
	
}

.logo img {
    max-width: 200px;
    margin-bottom: 1rem;
    margin-left: 5px;
}

.mobile-logo img {
    max-height: 48px;
   
}


#ucolor {
	color: var(--green);
}

#xname {
	display: flex;
	justify-content: space-between;
	align-items: center;
    padding-bottom: 3px;
    border-bottom: solid 1px rgba(255,47,146,0.5);
	font-size: 0.9em;
	color: white;
	width: 100%;
	max-width: 1200px;
	padding-top: 0.5em;
	margin-bottom: 10px;
}

#xname .xname-left {
	text-align: left;
	flex: 1;

	 background: linear-gradient(90deg, #FF8400, #F90098 30%, #376EFF 50%, #7FFFA0 75%, #7FFFA0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#xname .xname-right {
	text-align: right;
	white-space: nowrap;
}

.topline-session {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.4rem;
	max-width: 100%;
}

.topline-auth-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 21px;
	padding: 2px 8px;
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 6px;
	background: rgba(255,255,255,0.05);
	color: #d7ecff !important;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.topline-auth-link:hover {
	background: rgba(30,144,255,0.22);
	color: #fff !important;
}

#xname a {
	text-decoration: none;
	color: var(--orange);
}


/* NAV TOGGLE (CSS only) */
#nav-toggle {
    display: none;
}

/* SIDEBAR */

.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 200px;
    box-sizing: border-box;
    align-self: flex-start;
    position: sticky;
    top: 0;
}

/* Keep the navigation at content height so the footer can use spare viewport space. */
.sidebar nav {
    flex: 0 0 auto;
}

/* Push the brand footer down, but keep a minimum gap when the navigation is taller. */
.sidebar footer {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 2rem;
}




aside {
    width: 200px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 24% 8%, rgba(255,102,0,0.25), transparent 8rem),
        linear-gradient(180deg, rgba(18,12,16,0.96), rgba(72,17,72,0.94));
    padding: 1rem 1.0rem 5px;
    transition: transform 0.3s ease;
    z-index: 1;
}

body.theme-subtle aside {
    background:
        linear-gradient(180deg, rgba(12,14,16,0.98), rgba(28,32,36,0.96));
}

@media (min-width: 1201px) and (max-height: 920px) {
	.sidebar {
		position: relative;
		top: auto;
	}
}

aside h1 {
    display: none;
}

nav a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    padding: 0.25rem 0;
    font-size: 0.95em;
    letter-spacing: 1px;
    border-left: 4px solid transparent;
}

nav .nav-parts {
    color: var(--orange);
    margin-left: 5px;
    font-size: 0.75em;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: dotted 1px var(--orange);
}

nav .green {color: var(--green);}
nav .orange {color: var(--orange);}

nav a.logout-link {
	color: #1E90FF;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.logout-icon {
	width: 0.95em;
	height: 0.95em;
	fill: currentColor;
	opacity: 0.72;
	flex: 0 0 auto;
}

nav a.logout-link:hover .logout-icon {
	opacity: 1;
}

nav a:hover {
    color: var(--pink-soft);
    border-left: 4px solid var(--pink);
    padding-left: 0.6rem;
}

nav a.is-active {
	color: var(--pink-soft);
	border-left-color: var(--pink);
	padding-left: 0.6rem;
	background: linear-gradient(90deg, rgba(255,47,146,0.18), rgba(255,47,146,0));
	border-radius: 0 10px 10px 0;
	box-shadow: inset 0 0 0 1px rgba(255,47,146,0.08);
}

nav a.is-active.green {
	color: var(--green);
	border-left-color: var(--green);
	background: linear-gradient(90deg, rgba(69,255,0,0.15), rgba(69,255,0,0));
	box-shadow: inset 0 0 0 1px rgba(69,255,0,0.08);
}

#more-info {
	color: var(--orange);
	cursor: pointer;
	font-weight: 800;
}

#more-info:hover,
#more-info:focus-visible {
	color: var(--pink-soft);
	outline: 0;
	text-decoration: underline;
}

.copyright {
	font-size: 0.75em;
	letter-spacing: 1px;
	margin-left: 5px; 
	}

.theme-switch {
	margin-top: 0.65rem;
}

.theme-switch button {
	--btn-height: 24px;
	--btn-pad-y: 3px;
	--btn-pad-x: 8px;
	--btn-font-size: 0.72rem;
	--btn-bg: rgba(255,255,255,0.08);
	--btn-color: var(--text-main);
	--btn-border: 1px solid rgba(255,255,255,0.14);
	width: 100%;
	justify-content: center;
}


/* CONTENT */
main {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

#content {
	padding: 0.5rem 1.5rem;
    max-width: 100%;
}

section {
	width: 100%;
    max-width: 1200px;
    margin-bottom: 2rem;
}

section h2 {
    color: rgba(255,255,255,255);
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}

.section-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    margin-left: 0.3rem;
}

.section-headline h2 {
    margin-bottom: 0;
}

.news-article {
    background: var(--bg-panel);
    padding: 0.4rem 0.4rem;
    margin-bottom: 1rem;
    border-left: 6px solid var(--pink);
    border-radius: 10px;
}

.left-border-black {
    border-left-color: #000 !important;
    border-left: 0px !important;
}

.msg,
.red {
    max-width: 1200px;
    margin: 0 0 1rem 0;
    padding: 0.75rem 1rem;
    background: var(--bg-panel);
    border-left: 6px solid var(--green);
}

.red {
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: #bb0000;
    color: #fff;
}

/* Present missing routes as a clear recovery page. */
.not-found-shell {
    display: grid;
    grid-template-columns: minmax(140px, 320px) minmax(0, 720px);
    align-items: center;
    gap: 2rem;
    min-height: 420px;
    padding: 2rem;
    border-left: 6px solid var(--orange);
    border-radius: 10px;
    background: var(--bg-panel);
    overflow: hidden;
}

.not-found-code {
    color: var(--headlines);
    font-size: 7rem;
    font-weight: 900;
    line-height: 0.9;
    text-shadow: 0 12px 28px rgba(0,0,0,0.42);
}

.not-found-kicker {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--pink-soft);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.not-found-copy h2 {
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.not-found-copy p {
    max-width: 640px;
    color: var(--text-muted);
    line-height: 1.5;
}

.not-found-copy code {
    color: #fff;
    overflow-wrap: anywhere;
}

.not-found-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.news-article p {
    margin-bottom: 0.5rem;
    line-height: 1.2em;
    font-size: 0.9em;
}

.news-article a {
    
    text-decoration: none;
}

.state-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    background: #4D4D4D;
    color: white !important;
    margin-bottom:3px;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0px;
    padding: 2px 6px;
    border: 1px solid var(--tag-border, var(--pink-soft));
    border-radius: 8px;
    text-transform: uppercase;
    background: var(--tag-bg, var(--pink-soft));
    color: var(--tag-fg, black) !important;
}




.news-badge:hover {
    background: var(--tag-bg, var(--pink));
}

.news-badge.trash { border-color: #c400ff; color: #e7b8ff; }
.news-badge.love { border-color: #ff5fa2; color: #ffc7df; }
.news-badge.omg {
    background-color: var(--tag-bg, var(--orange));
    border-color: var(--tag-border, var(--orange));
    color: var(--tag-fg, #000) !important;
}

.news-badge.danger-badge {
    background: rgba(187,0,0,0.18);
    border: 1px solid rgba(255,77,125,0.55);
    color: #ffb3c8 !important;
}

.news-model-only-badge {
	gap: 0.28rem;
	background: rgba(91,171,255,1);
	border: 1px solid rgba(91,171,255,1);
	color: #000000 !important;
}

.news-model-only-badge:hover {
	background: rgba(30,144,255,0.28);
}

.news-model-eye {
	width: 0.92rem;
	height: 0.92rem;
	fill: currentColor;
	flex: 0 0 auto;
}

.admin-model-only-title {
    color: #ff4d7d;
}

.news-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	
}

.news-teaser-foot {
    display: flow-root;
}

.join-teaser {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 1200px;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid rgba(255,102,0,0.35);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255,47,146,0.16), rgba(255,102,0,0.10)),
        rgba(0,0,0,0.22);
}

.join-teaser h2 {
    color: var(--headlines);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.join-teaser p {
    color: var(--text-muted);
    line-height: 1.45;
}

.join-teaser-points,
.join-teaser-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.join-teaser-points {
    justify-content: flex-start;
}

.join-teaser-actions {
    justify-content: flex-end;
    padding-top: 0.2rem;
}

.join-teaser-points span {
    padding: 0.22rem 0.5rem;
    border: 1px solid rgba(144,238,144,0.35);
    border-radius: 999px;
    color: #c9ffd1;
    font-size: 0.78rem;
    font-weight: 800;
}

.join-teaser-dismiss {
    --btn-bg: rgba(255,255,255,0.06);
    --btn-color: var(--text-muted);
    --btn-border: 1px solid rgba(255,255,255,0.12);
}

.news-article h3 {
    color: var(--headlines);
    font-size: 1.3em;
}

.news-teaser-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.8rem;
}

.news-teaser-head h3 {
	min-width: 0;
	flex: 1 1 auto;
}

.news-more-inline {
	font-weight: 700;
	white-space: nowrap;
}

.news-discussion-link {
	--btn-bg: rgba(255,102,0,0.18);
	--btn-color: var(--orange);
	--btn-border: 1px solid rgba(255,102,0,0.38);
}

.news-discussion-link.has-thread {
	--btn-bg: #1f8f45;
	--btn-color: #fff;
	--btn-border: 1px solid rgba(69,255,0,0.48);
	color: #f8fff8 !important;
}

.search-hit-list {
	display: grid;
	gap: 0.35rem;
	margin: -0.35rem 0 1rem;
}

.search-hit-link {
	display: block;
	padding: 0.45rem 0.6rem;
	border: 1px solid rgba(255,102,0,0.28);
	border-radius: 8px;
	background: rgba(0,0,0,0.28);
	color: var(--text-main);
	text-decoration: none;
	font-size: 0.86rem;
	line-height: 1.35;
}

.search-hit-link:hover {
	border-color: rgba(255,102,0,0.55);
	background: rgba(255,102,0,0.08);
}

.search-hit-label {
	margin-right: 0.45rem;
	color: var(--pink-soft);
	font-weight: 700;
}

.search-hit {
	padding: 0 0.16rem;
	border-radius: 4px;
	background: rgba(255,102,0,0.34);
	color: #fff;
	scroll-margin-top: 7rem;
}

.news-teaser-card {
    display: flow-root;
    min-height: 120px;
}

.permalink {
	color: var(--text-muted) !important;
	font-size: 0.72rem;
	font-weight: 700;
	opacity: 0.65;
	white-space: nowrap;
}

.permalink:hover {
	opacity: 1;
}

.news-shot,
.news-thumb {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.news-thumb {
    max-height: 240px;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.strip-form {
    width: 100%;
    max-width: 720px;
    background: var(--bg-panel);
    border-left: 6px solid var(--pink);
    padding: 1rem;
}

.strip-form label {
    display: block;
    margin-bottom: 0.85rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blank {
border: 0 !important;
background: transparent !important;
}

.strip-form input,
.strip-form select,
.strip-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid #4d3a48;
    background: #120c10;
    color: var(--text-main);
    font: inherit;
}

.whistle-hero,
.chat-info-hero,
.news-info-hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	padding: 1.2rem 1.35rem;
	border-radius: 10px;
}

.whistle-hero {
	border: 1px solid rgba(69,255,0,0.22);
	border-left: 5px solid var(--green);
	background:
		radial-gradient(circle at 92% 18%, rgba(69,255,0,0.12), transparent 9rem),
		linear-gradient(135deg, rgba(255,47,146,0.12), rgba(18,12,16,0.88));
}

.chat-info-hero {
	border: 1px solid rgba(255,102,0,0.25);
	border-left: 5px solid var(--orange);
	background:
		radial-gradient(circle at 88% 18%, rgba(255,102,0,0.14), transparent 10rem),
		linear-gradient(135deg, rgba(255,47,146,0.10), rgba(18,12,16,0.9));
}

.news-info-hero {
	border: 1px solid rgba(255,47,146,0.25);
	border-left: 5px solid var(--pink);
	background:
		radial-gradient(circle at 88% 18%, rgba(255,47,146,0.14), transparent 10rem),
		linear-gradient(135deg, rgba(255,102,0,0.10), rgba(18,12,16,0.9));
}

.whistle-hero .eyebrow,
.chat-info-hero .eyebrow,
.news-info-hero .eyebrow {
	display: block;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0.3rem;
}

.whistle-hero .eyebrow { color: var(--green); }
.chat-info-hero .eyebrow { color: var(--orange); }
.news-info-hero .eyebrow { color: var(--pink-soft); }

.whistle-hero h2,
.chat-info-hero h2,
.news-info-hero h2 {
	margin-bottom: 0.45rem;
}

.whistle-hero p,
.chat-info-hero p,
.news-info-hero p {
	color: vwhite;
	line-height: 1.15;
	margin: 0.35rem 0 0;
	font-size: 0.95em;
}

.publisher-trust-hint {
	margin: -0.2rem 0 1rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid rgba(91,171,255,0.36);
	border-left: 4px solid #5babff;
	border-radius: 8px;
	background: rgba(30,144,255,0.08);
	color: #dceeff;
}

.publisher-trust-hint strong {
	display: block;
	margin-bottom: 0.25rem;
	color: #b9ddff;
	font-size: 0.92rem;
}

.publisher-trust-hint p {
	margin: 0;
	line-height: 1.35;
	font-size: 0.88rem;
}

.whistle-note {
    margin: 0.2rem 0 1rem;
    padding: 0.85rem 1rem;
    background: #120c10;
    border-left: 4px solid var(--green);
    color: var(--text-muted);
    line-height: 1.45;
}

.whistle-note strong {
    display: block;
    color: var(--green);
    margin-bottom: 0.35rem;
}

.whistle-note p {
    margin: 0;
}

.whistle-attachments {
	display: grid;
	gap: 0.4rem;
	min-width: 7rem;
}

.whistle-attachment-thumb {
	display: block;
	width: 7.5rem;
	max-width: 100%;
	line-height: 0;
}

.whistle-attachment-thumb img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border: 1px solid rgba(69,255,0,0.42);
	border-radius: 8px;
}

.whistle-attachment-file {
	display: inline-flex;
	max-width: 11rem;
	padding: 0.38rem 0.55rem;
	border: 1px solid rgba(69,255,0,0.35);
	border-radius: 8px;
	background: rgba(69,255,0,0.08);
	color: #caffc9;
	font-size: 0.82rem;
	font-weight: 800;
	overflow-wrap: anywhere;
}

.captcha-box {
    margin: 0.2rem 0 1rem;
}

.notifications-shell {
	max-width: 1200px;
}

.notification-list {
	display: grid;
	gap: 0.75rem;
}

.notification-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border-left: 6px solid #1f6f3c;
	background: var(--bg-panel);
}

.notification-item.is-unread {
	border-left-color: var(--orange);
	background: rgba(255,102,0,0.08);
}

.notification-item.is-read {
	opacity: 0.82;
}

.notification-item p {
	margin: 0.25rem 0;
	color: var(--text-muted);
}

.notification-item small {
	color: var(--text-muted);
}

.auth-shell,
.admin-shell {
    max-width: 1200px;
}

.auth-hero,
.admin-head {
    min-height: 170px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.2rem;
    background:
        linear-gradient(135deg, rgba(255,47,146,0.22), rgba(255,102,0,0.18)),
        var(--bg-panel);
    border-left: 6px solid var(--orange);
}

.auth-hero h2,
.admin-head h2 {
    margin-bottom: 0.4rem;
    font-size: 2rem;
}

.auth-hero p,
.admin-head p,
.field-hint {
    color: var(--text-muted);
}

.auth-code-link {
    flex: 0 0 auto;
    --btn-bg: var(--pink);
}

/* Highlight primary create actions with a compact plus icon. */
.create-action {
	--btn-bg: linear-gradient(135deg, var(--pink), var(--orange));
	--btn-color: #fff;
	--btn-pad-x: 12px;
	color: #fff;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 18px rgba(255,47,146,0.24);
}

.create-action:visited,
.create-action:hover,
.create-action:focus {
	color: #fff;
}

.create-action * {
	color: inherit;
}

.create-action-icon {
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
}

.auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.auth-tabs a {
    color: var(--text-main);
    text-decoration: none;
    background: var(--bg-panel);
    border-bottom: 3px solid transparent;
    padding: 0.5rem 0.75rem;
}

.auth-tabs a.active {
    border-bottom-color: var(--pink);
    color: var(--pink-soft);
}

.admin-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
}

.admin-tab-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    fill: currentColor;
    opacity: 0.9;
}

.auth-form {
    max-width: 780px;
}

.field-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.field-hint a {
    color: var(--orange);
}

.checkline {
    display: grid !important;
    grid-template-columns: 24px 1fr;
    gap: 0.5rem;
    align-items: start;
}

.checkline input {
    width: auto;
    margin-top: 0.1rem;
}

.verification-options {
    display: grid;
    gap: 0.8rem;
}

.verification-card {
    display: grid !important;
    gap: 0.45rem;
    padding: 0.85rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(0,0,0,0.16);
}

.verification-card .checkline {
    margin-bottom: 0;
}

.verification-card strong {
    color: var(--orange);
}

.admin-verification-box {
    margin: 0.75rem 0;
    padding: 0.75rem;
    border: 1px solid rgba(255,102,0,0.35);
    border-radius: 10px;
    background: rgba(255,102,0,0.08);
}

.admin-verification-box p {
    margin: 0.35rem 0 0;
}

.modelcheck-table .table-actions {
    min-width: 270px;
}

.password-mini {
    display: grid;
    gap: 0.7rem;
}

.admin-form label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-form input,
.admin-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.55rem 0.6rem;
    border: 1px solid #4d3a48;
    background: #120c10;
    color: var(--text-main);
    font: inherit;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0.7rem;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-panel);
    border-left: 6px solid var(--pink);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.admin-table th,
.admin-table td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid #4d3a48;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--orange);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #120c10;
}

.admin-table td {
    color: var(--text-main);
    font-size: 0.9rem;
}

.table-input {
    width: 100%;
    padding: 0.45rem 0.5rem;
    border: 1px solid #4d3a48;
    background: #120c10;
    color: var(--text-main);
    font: inherit;
}

.table-actions {
    gap: 0.4rem;
    flex-wrap: wrap;
}

.table-actions form {
    display: inline-flex;
    gap: 0.4rem;
}

.table-actions textarea {
    min-width: 180px;
    max-width: 260px;
    padding: 0.45rem 0.5rem;
    border: 1px solid #4d3a48;
    background: #120c10;
    color: var(--text-main);
    font: inherit;
}

.admin-feedback-input {
	min-width: 180px;
	max-width: 260px;
}

.admin-inline-title-form {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 240px;
}

.admin-inline-title-form .table-input {
	min-width: 150px;
}

.table-actions button.tiny-action,
.admin-inline-title-form button.tiny-action {
    min-width: 2rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

.table-actions button.danger {
    --btn-bg: #ff004c;
}

.table-actions button.success {
    --btn-bg: var(--green);
    --btn-color: #061006;
}

.forum-archive-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.forum-archive-head h3 {
    margin: 0.35rem 0 0.25rem;
    color: var(--headlines);
}

.forum-archive-head button.success,
.forum-archive-table button.success {
    --btn-bg: var(--green);
    --btn-color: #061006;
}

.forum-archive-head button.danger,
.forum-archive-table button.danger {
    --btn-bg: #ff004c;
    --btn-color: #fff;
}

.forum-archived-deleted-reply {
    opacity: 0.72;
}

.news-status-cell {
    width: 170px;
    max-width: 190px;
}

.admin-status-form {
    margin: 0 0 0.35rem;
}

.admin-status-select {
    width: 100%;
    min-width: 150px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-status-select.status-pending {
    background: rgba(255,102,0,0.72);
}

.admin-status-select.status-published {
    background: rgba(30,145,80,0.78);
}

.admin-status-select.status-deleted,
.admin-status-select.status-archived {
    background: rgba(120,124,130,0.78);
}

.admin-status-select.status-hard_delete {
    background: rgba(255,0,76,0.84);
}

.strip-form button.danger,
.admin-form button.danger,
.admin-filter button.danger {
    --btn-bg: #ff004c;
}

.admin-filter {
    display: grid;
    grid-template-columns: minmax(180px,1fr) 160px minmax(180px,1fr) auto auto;
    gap: 0.7rem;
    align-items: end;
    margin-bottom: 1rem;
    

}

.admin-filter label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-filter input,
.admin-filter select {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.55rem 0.6rem;
    border: 1px solid #4d3a48;
    background: #120c10;
    color: var(--text-main);
    font: inherit;
}

.admin-filter button, .admin-filter a {margin-bottom: 5px;}

.admin-filter a {
    --btn-bg: #4d3a48;
}

.filter-toggle {
    display: none;
}

.content-feedback {
    margin-top: 0.45rem;
    padding: 0.45rem 0.55rem;
    border-left: 4px solid var(--orange);
    border-radius: 10px;
    background: rgba(255,102,0,0.10);
    color: var(--text-main);
    font-size: 0.82rem;
    line-height: 1.35;
}

.tools-shell {
    max-width: 1200px;
}

.tools-intro {
    max-width: 980px;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-left: 6px solid var(--orange);
    background: var(--bg-panel);
}

.tools-intro h2 {
    margin-bottom: 0.35rem;
    color: var(--headlines);
}

.tools-intro p {
    max-width: 820px;
    color: var(--text-muted);
    line-height: 1.45;
}

.tool-upload-form {
    margin-bottom: 1rem;
}

.tool-job-panel {
    margin-top: 1rem;
}

.tool-job-panel h3 {
    margin-bottom: 0.6rem;
    color: var(--headlines);
}

.tool-job-table {
    min-width: 760px;
}

.tool-job-row.status-done .tool-status {
    --tag-bg: rgba(69,255,0,0.18);
    --tag-border: rgba(69,255,0,0.55);
    --tag-fg: #b9ff9f;
}

.tool-job-row.status-processing .tool-status,
.tool-job-row.status-queued .tool-status {
    --tag-bg: rgba(255,102,0,0.18);
    --tag-border: rgba(255,102,0,0.55);
    --tag-fg: #ffd0ad;
}

.tool-job-row.status-failed .tool-status {
    --tag-bg: rgba(255,0,76,0.18);
    --tag-border: rgba(255,0,76,0.55);
    --tag-fg: #ffb3c8;
}

.tab-alert {
    color: var(--orange);
    font-weight: 900;
}

.admin-event-details {
    max-width: 420px;
    white-space: pre-wrap;
    color: var(--text-muted);
    font: 0.78rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.legal-text,
.guidelines-text {
    max-width: 980px;
    color: var(--text-main);
    line-height: 1.6;
}

.legal-text h3,
.guidelines-text h3 {
    margin: 1.1rem 0 0.35rem;
    color: var(--headlines);
}

.legal-text p,
.guidelines-text p {
    margin-bottom: 0.75rem;
}

.forum-filter {
    grid-template-columns: minmax(160px,1fr) 130px 190px 150px auto auto;
}

.forum-filter label:nth-of-type(2) {
    max-width: 130px;
}

.forum-filter label:nth-of-type(3),
.forum-filter label:nth-of-type(4) {
    max-width: 190px;
}

.forum-filter label:nth-of-type(4) {
    max-width: 150px;
}

.news-filter {
    grid-template-columns: minmax(140px,0.8fr) 120px 120px 150px 130px auto auto;
}

.news-filter label:nth-of-type(2),
.news-filter label:nth-of-type(3) {
    max-width: 120px;
}

.news-filter label:nth-of-type(4) {
    max-width: 150px;
}

.news-filter label:nth-of-type(5) {
    max-width: 130px;
}

.bug-create {
    width: 100%;
    max-width: 1200px;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: end;
}

.bug-create label {
    min-width: 0;
    margin-bottom: 0;
}

.bug-create input {
    width: 100%;
}

.bug-create button {
    align-self: end;
}

.bug-headline p {
    margin: 0;
    color: var(--text-muted);
}

.bug-todo-form {
    flex: 0 0 auto;
}

.user-table tr.user-row-good td {
    background: rgba(69,255,0,0.08);
}

.user-table tr.user-row-trusted td {
    background: rgba(103,180,255,0.16);
}

.user-table tr.user-row-blocked td {
    background: rgba(255,0,76,0.16);
}

.user-table tr.user-row-pending td {
    background: rgba(255,102,0,0.12);
}

.admin-back {
    margin-top: 1rem;
}

.admin-back a {
    color: var(--orange);
    text-decoration: none;
}

.tag-admin-form {
    grid-template-columns: minmax(200px,1fr) 160px minmax(220px,0.8fr) auto;
}

.tag-color-control {
	display: grid;
	grid-template-columns: 42px minmax(120px,1fr);
	gap: 0.45rem;
	align-items: center;
	min-width: 0;
}

.tag-color-picker {
	width: 42px;
	height: 34px;
	padding: 2px;
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 8px;
	background: #120c10;
	cursor: pointer;
}

.tag-color-text {
	min-width: 0;
}

.tag-color-table-control {
	grid-template-columns: 38px minmax(120px,150px);
	margin-bottom: 0.35rem;
}

.tag-color-table-control .tag-color-picker {
	width: 38px;
	height: 30px;
}

.tag-admin-preview {
	display: block;
}

.link-admin-form {
    grid-template-columns: minmax(130px,0.75fr) minmax(300px,1.8fr) minmax(220px,1.05fr) auto;
}

.link-sort-table .drag-handle {
	width: 44px;
	color: var(--orange);
	font-size: 1.2rem;
	font-weight: 900;
	text-align: center;
	cursor: grab;
	user-select: none;
}

.link-sort-table .ui-sortable-helper {
	display: table;
	background: #211921;
	box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.link-sort-table .ui-sortable-placeholder td {
	height: 3.2rem;
	background: rgba(255,102,0,0.10);
	border: 1px dashed rgba(255,102,0,0.45);
	visibility: visible !important;
}

.link-row-edit {
	display: grid;
	grid-template-columns: minmax(120px,0.75fr) minmax(300px,1.8fr) minmax(200px,1fr) auto;
	gap: 0.45rem;
	align-items: center;
	min-width: 0;
}

.link-row-layout {
	display: grid;
	grid-template-columns: minmax(0,1fr) auto;
	gap: 0.45rem;
	align-items: center;
}

.link-row-edit .table-actions {
	display: inline-flex;
}

.link-row-layout .inline-delete-form {
	margin: 0;
	white-space: nowrap;
}

.link-sort-save-form {
	margin-top: 0.8rem;
}

.news-admin-filter {
    grid-template-columns: repeat(3,minmax(160px,1fr)) repeat(3,150px) auto auto;
}

.chat-admin-filter {
    grid-template-columns: minmax(180px,1fr) minmax(220px,1.2fr) 170px auto auto;
}

.chat-filter {
    grid-template-columns: minmax(150px,1fr) minmax(130px,0.8fr) 118px 130px auto auto;
}

.admin-row-deleted td {
    background: rgba(196,0,255,0.10);
}

.admin-row-archived td {
    background: rgba(255,255,255,0.06);
    color: rgba(246,233,240,0.72);
}

.admin-row-published td {
    background: rgba(69,255,0,0.07);
}

.admin-row-pending-content td {
    background: rgba(255,102,0,0.09);
}

.admin-moderation-card h3 {
	margin-bottom: 0.8rem;
}

.admin-moderation-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.admin-moderation-grid a {
	display: block;
	padding: 0.75rem;
	border: 1px solid rgba(255,47,146,0.22);
	border-radius: 10px;
	background: rgba(255,255,255,0.035);
	color: var(--text-main);
}

.admin-moderation-grid strong {
	display: block;
	color: var(--pink-soft);
	font-size: 1.6rem;
	line-height: 1;
}

.admin-moderation-grid span {
	display: block;
	margin-top: 0.35rem;
	color: var(--text-muted);
	font-size: 0.82rem;
}

.admin-moderation-lists {
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
	gap: 0.8rem;
}

.admin-moderation-lists h4 {
	margin-bottom: 0.45rem;
	color: var(--orange);
}

.admin-moderation-lists a {
	display: block;
	padding: 0.45rem 0;
	border-top: 1px solid rgba(255,255,255,0.08);
	color: var(--text-main);
}

.admin-moderation-lists span {
	display: block;
	color: var(--text-muted);
	font-size: 0.74rem;
}

.news-editor-shell {
    max-width: 1200px;
}

.news-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.news-compose {
    max-width: none;
}

.tag-picker {
    margin: 1.1rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid #4d3a48;
}

.tag-picker strong {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-options label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.tag-options input {
    display: none;
}

.tag-options span {
    display: inline-block;
    position: relative;
    padding: 0.5rem 0.7rem;
    background: var(--tag-bg, var(--pink-soft));
    border: 1px solid var(--tag-border, var(--pink-soft));
    color: var(--tag-fg, black);
    border-radius: 10px;
    opacity: 0.48;
    filter: saturate(0.72);
    transition: opacity 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
}

.tag-options input:checked + span {
    background: var(--tag-bg, var(--pink-soft));
    border-color: #fff;
    color: var(--tag-fg, black);
    opacity: 1;
    filter: saturate(1.18);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 0 5px rgba(255,255,255,0.18), 0 8px 18px rgba(0,0,0,0.28);
    transform: translateY(-1px);
}

.tag-options input:checked + span::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.42rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.42);
    box-shadow: inset 0 0 0 2px #fff;
    vertical-align: 0.08rem;
}

.tag-options .admin-only span {
    border-color: var(--tag-border, var(--orange));
}

.news-preview-card {
    background: var(--bg-panel);
    border-left: 6px solid var(--orange);
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.news-preview-card h3 {
    color: var(--pink-soft);
    margin-bottom: 0.5rem;
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.8rem;
}

.inline-check {
    display: inline-flex !important;
    flex-direction: row;
    gap: 0.45rem;
    align-items: center;
    width: auto;
}

.inline-delete-form {
    margin-top: 0.75rem;
}

.inline-delete-form button {
    --btn-bg: rgba(255,0,76,0.12);
    --btn-color: #ff7a9d;
    --btn-border: 1px solid rgba(255,0,76,0.35);
}

.strip-form .inline-check input {
    display: inline-block;
    width: auto;
    margin: 0;
}

.model-list {
    display: grid;
    gap: 0.85rem;
    max-width: 1200px;
}

.models-filter {
	grid-template-columns: minmax(150px,1fr) minmax(190px,1.2fr) 150px 150px auto auto;
}

.model-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px,0.7fr) minmax(0,1.3fr);
    gap: 1.25rem;
    align-items: stretch;
    background: var(--bg-panel);
    border-left: 6px solid var(--orange);
    border-radius: 10px;
    padding: 1.1rem;
}

.model-avatar {
    width: 104px;
    height: 104px;
    border-width: 4px;
}

.model-card h3 {
    color: var(--orange);
    margin-bottom: 0.35rem;
}

.model-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
    float: right;
    margin: 0 0 0.5rem 0.8rem;
}

.model-head-actions {
    justify-content: flex-start;
    float: none;
    margin: 0.65rem 0 0;
}

.model-card-actions .report-link,
.model-card-actions .team-chat-action {
    margin: 0;
}

.model-bio {
    color: var(--text-main);
    font-size: 0.9em;
    line-height: 1.2em;
    margin-bottom: 0.8rem;
    max-width: 860px;
}

.model-bio h4 {
    color: var(--headlines);
    margin-bottom: 0.35rem;
}

.model-bio p,
.model-bio ul {
    margin-bottom: 0.50rem;
    font-size: 0.9em;
    line-height: 1.2em;
}

.model-bio ul {
    padding-left: 1.1rem;
}

.model-linktree {
    display: inline-block;
    color: var(--green);
    text-decoration: none;
}

.model-linktree-label {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.model-count-links .model-linktree {
    margin-bottom: 0;
}

.model-profile-link {
    display: inline-block;
    color: var(--orange);
    text-decoration: none;
    border-bottom: 0;
    margin-bottom: 5px;
}

.model-profile-panel {
    max-width: 880px;
}

.model-profile-letter {
	padding: 1.4rem;
}

.model-profile-letterhead {
	display: grid;
	grid-template-columns: 128px minmax(0,1fr);
	gap: 1rem;
	align-items: center;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(255,255,255,0.13);
}

.model-profile-avatar {
	width: 128px;
	height: 128px;
	font-size: 2rem;
}

.model-profile-title {
	min-width: 0;
}

.model-profile-kicker {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--orange);
	font-size: 0.78rem;
	font-weight: 900;
	text-transform: uppercase;
}

.model-profile-title h3 {
	color: var(--headlines);
	font-size: 1.65rem;
	line-height: 1.1;
	margin-bottom: 0.45rem;
}

.model-profile-badges,
.model-profile-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.profile-status-badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0.2rem 0.55rem;
	border: 1px solid rgba(69,255,0,0.35);
	border-radius: 999px;
	background: rgba(69,255,0,0.08);
	color: #cbffd1;
	font-size: 0.78rem;
	font-weight: 900;
}

.profile-status-badge.muted {
	border-color: rgba(255,255,255,0.18);
	background: rgba(255,255,255,0.06);
	color: var(--text-muted);
}

.model-profile-facts {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 0.6rem;
	margin-bottom: 1rem;
}

.model-profile-facts div {
	padding: 0.65rem 0.7rem;
	border: 1px solid rgba(255,255,255,0.09);
	border-radius: 8px;
	background: rgba(0,0,0,0.18);
}

.model-profile-facts dt {
	color: var(--text-muted);
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
}

.model-profile-facts dd {
	margin-top: 0.15rem;
	color: var(--text-main);
	font-size: 1rem;
	font-weight: 900;
}

.model-profile-facts a {
	color: var(--green);
}

.model-profile-section {
	margin-bottom: 1rem;
}

.model-profile-section h4 {
	margin-bottom: 0.45rem;
	color: var(--pink-soft);
	font-size: 1rem;
}

.model-profile-letter .model-bio {
	max-width: none;
	font-size: 1rem;
	line-height: 1.45;
}

.model-profile-letter .model-bio p,
.model-profile-letter .model-bio ul {
	font-size: 1rem;
	line-height: 1.45;
}

.model-profile-actions {
	padding-top: 0.2rem;
}

.model-profile-actions .model-linktree {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--button-height);
	padding: var(--button-pad-y) var(--button-pad-x);
	border: 1px solid rgba(91,171,255,1);
	border-radius: var(--button-radius);
	background: rgba(91,171,255,1);
	color: #000 !important;
	font-size: var(--button-font-size);
	font-weight: 800;
	line-height: 1;
}

.model-profile-actions .auth-code-link {
	--btn-color: #fff;
	color: #fff !important;
}

.useful-link-list {
	max-width: 1200px;
	margin-top: 0.5rem;
	border-top: 1px solid rgba(255,255,255,0.10);
}

.useful-link-row {
	padding: 0.85rem 0;
	border-bottom: 1px solid rgba(255,255,255,0.10);
}

.useful-link-title {
	display: inline-block;
	margin-bottom: 0.28rem;
	color: var(--pink-soft);
	font-size: 1.05rem;
	font-weight: 800;
	text-decoration: none;
}

.useful-link-row p {
	max-width: 720px;
	margin: 0.1rem 0 0.35rem;
	color: var(--text-muted);
	line-height: 1.4;
}

.useful-link-url {
	color: var(--green);
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
}

.useful-link-title:hover,
.useful-link-url:hover {
	color: var(--orange);
}

.model-bio-more summary {
    color: var(--pink-soft);
    cursor: pointer;
    font-weight: 800;
}

.model-bio-preview {
    color: var(--text-main);
    font-weight: 400;
    margin-bottom: 0.35rem;
}

.model-bio-long.is-open .model-bio-preview {
    display: none;
}

.model-bio-long.is-open .model-bio-more summary {
    display: none;
}

.model-bio-full {
    color: var(--text-main);
    font-weight: 400;
}

.team-list {
    display: grid;
    gap: 1rem;
}

.team-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px,0.7fr) minmax(0,1.3fr);
    gap: 1.25rem;
    align-items: stretch;
    background:
        linear-gradient(135deg, rgba(255,102,0,0.13), rgba(255,47,146,0.08)),
        var(--bg-panel);
    border-left: 6px solid var(--orange);
    border-radius: 10px;
    padding: 1.1rem;
}

.team-card-head {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    gap: 1rem;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.08);
    padding-right: 1.25rem;
}

.team-avatar {
    width: 104px;
    height: 104px;
    border-width: 4px;
}

.team-card h3 {
    color: var(--headlines);
    margin-bottom: 0.35rem;
}

.team-role {
    color: var(--orange);
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.team-count-links {
    gap: 0.1rem;
    margin-top: 0.45rem;
}

.team-count-links a {
    font-size: 0.85rem;
    text-decoration: none;
}

.team-card-body {
    position: relative;
    min-width: 0;
}

.team-chat-action {
    margin: 0.5rem 0 0.65rem 0rem;
}

.team-chat-action.is-disabled,
.forum-author-chat.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.team-bio {
    margin-bottom: 0.85rem;
}

.team-linktree {
    margin-top: 0.2rem;
}

.sn-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 2rem;
    background: rgba(0,0,0,0.96);
    z-index: 2000;
}

.sn-lightbox:target,
.sn-lightbox.is-open {
    display: grid;
}

body:has(.sn-lightbox:target) main,
body:has(.sn-lightbox.is-open) main {
    z-index: 1;
}

.sn-lightbox-close {
    grid-area: 1 / 1;
    justify-self: end;
    align-self: start;
    transform: translate(45%, -45%);
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: #120c10;
    color: #fff;
    text-decoration: none;
    font-size: 1.7rem;
    line-height: 1;
    z-index: 2002;
}

.sn-lightbox-frame {
    grid-area: 1 / 1;
    position: relative;
    max-width: 94vw;
    max-height: 85vh;
}

.sn-lightbox-frame > .sn-lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(45%, -45%);
}

.news-detail-lightbox .sn-lightbox-frame > .sn-lightbox-close,
.news-image-lightbox .sn-lightbox-frame > .sn-lightbox-close {
    transform: translate(24%, -45%);
}

.news-image-lightbox .sn-lightbox-frame {
    display: grid;
    justify-self: center;
    align-self: center;
    width: fit-content;
    max-width: 94vw;
}

.news-image-lightbox .sn-lightbox-frame > .sn-lightbox-image {
    max-width: min(94vw, 1100px);
    margin: 0;
}

.more-info-lightbox .sn-lightbox-frame {
    width: 90vw;
    max-width: 1280px;
    height: 82vh;
    max-height: 780px;
    display: grid;
}

.sn-lightbox-panel.more-info-panel {
    width: 100%;
    height: 100%;
    max-height: 780px;
    overflow: auto;
    scrollbar-color: var(--pink) rgba(0,0,0,0.28);
    scrollbar-width: thin;
}

.sn-lightbox-panel {
    grid-area: 1 / 1;
    width: min(920px, 94vw);
    max-height: 85vh;
    overflow: auto;
    padding: 1rem;
    border-left: 0 !important;
    border-radius: 10px;
    background: var(--bg-panel);
    scrollbar-color: var(--pink-soft) rgba(0,0,0,0.28);
    scrollbar-width: thin;
}

.sn-lightbox-panel::-webkit-scrollbar {
    width: 0.65rem;
}

.sn-lightbox-panel::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.28);
    border-radius: 999px;
}

.sn-lightbox-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,var(--pink),var(--orange));
    border-radius: 999px;
}

.sn-lightbox-panel.more-info-panel::-webkit-scrollbar-thumb {
    background: var(--pink);
}

.more-info-content {
    max-width: 1120px;
    margin: 0 auto;
}

.more-info-content h2 {
    color: var(--headlines);
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.02;
    margin: 0.25rem 0 0.85rem;
    text-transform: none;
    letter-spacing: 0;
}

.more-info-lead {
    max-width: 860px;
    color: #fff;
    font-size: 1.08rem;
    line-height: 1.45;
}

.more-info-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0.8rem;
    margin: 1.3rem 0;
}

.more-info-grid section,
.more-info-callout {
    padding: 0.9rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(0,0,0,0.18);
}

.more-info-content h3 {
    color: var(--pink-soft);
    margin-bottom: 0.45rem;
}

.more-info-content p {
    line-height: 1.45;
}

.more-info-callout {
    border-color: rgba(255,102,0,0.38);
    background: linear-gradient(135deg,rgba(255,102,0,0.13),rgba(255,47,146,0.08));
}

.more-info-callout .auth-code-link {
    margin-top: 0.8rem;
}

.sn-lightbox-frame > .sn-lightbox-image,
.sn-lightbox > .sn-lightbox-image {
    grid-area: 1 / 1;
    padding: 1rem;
    border-radius: 10px;
    background: var(--bg-panel);
}

.sn-lightbox-image,
.chat-full-image {
    max-width: min(100%, 1100px);
    max-height: 86vh;
    display: block;
    margin: 0 auto 1rem;
    object-fit: contain;
}

/* Keep multi-page chat screenshots aligned in the lightbox. */
.chat-lightbox-panel .chat-full-image {
    width: 100%;
    height: auto;
    max-height: none;
}

.news-secondary-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.news-secondary-actions {
	flex: 0 0 auto;
	justify-content: flex-end;
	margin-left: auto;
	margin-bottom: 0.5rem;
}

.staff-inline-edit {
	min-width: 0;
}

.news-teaser-head > .staff-inline-edit-title {
	flex: 1 1 auto;
}

.staff-inline-edit-view {
	display: flex;
	align-items: flex-start;
	gap: 0.35rem;
	min-width: 0;
}

.staff-inline-edit-title .staff-inline-edit-view {
	align-items: center;
}

.staff-inline-edit-title h3 {
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
}

.news-teaser-head .staff-inline-edit-title h3 {
	flex: 0 1 auto;
}

.staff-inline-edit-body .staff-inline-edit-view {
	display: block;
}

.inline-edit-trigger {
	--btn-bg: transparent;
	--btn-color: var(--orange);
	--btn-border: 0;
	flex: 0 0 auto;
	min-height: 1.15rem;
	width: 1.3rem;
	padding: 0;
	box-shadow: none;
	vertical-align: middle;
}

.inline-edit-trigger:hover {
	--btn-color: var(--pink-soft);
}

.inline-edit-icon {
	width: 0.95rem;
	height: 0.95rem;
	fill: currentColor;
	display: block;
}

.staff-inline-edit-form {
	display: grid;
	gap: 0.45rem;
	margin: 0.4rem 0 0;
	max-width: 720px;
}

.staff-inline-edit-form[hidden] {
	display: none;
}

.staff-inline-edit-form input,
.staff-inline-edit-form textarea {
	width: 100%;
	min-width: 0;
	padding: 0.5rem 0.6rem;
	border: 1px solid rgba(255,255,255,0.16);
	border-radius: 8px;
	background: #120c10;
	color: var(--text-main);
	font: inherit;
	line-height: 1.35;
}

.staff-inline-edit-form-wide {
	width: min(920px, 82vw);
	max-width: calc(100vw - 2rem);
}

.staff-inline-edit-form-wide textarea {
	min-height: 260px;
	resize: vertical;
}

.staff-inline-edit-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.inline-edit-status {
	color: var(--text-muted);
	font-size: 0.82rem;
}

.staff-inline-edit.is-editing .staff-inline-edit-view {
	display: none;
}

.subtle-action,
.news-article a.subtle-action {
	--btn-bg: #4d3a48;
	--btn-color: var(--text-main);
}

.subtle-action:hover,
.news-article a.subtle-action:hover {
	--btn-bg: #674d60;
	--btn-color: #fff;
}

.forum-admin-actions {
    align-items: center;
}

.inline-vote-form {
    display: inline-flex;
}

.vote-icon {
	width: 1.05em;
	height: 1.05em;
	fill: currentColor;
	flex: 0 0 auto;
}

.bug-admin button {
    --btn-bg: var(--pink);
}

#new_messages,
#new_forum_posts,
#new_tool_videos,
#admin_approvals,
#msg_notifier a {
    display: inline-flex;
    min-width: 1.6em;
    height: 1.9em;
    align-items: center;
    justify-content: center;
    margin-left: 0.35rem;
    border-radius: 999px;
    background: var(--pink);
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    vertical-align: middle;
    animation: softBlink 1s ease-in-out infinite alternate;
}

@keyframes softBlink {
    from {
        background-color: var(--pink-soft);
    }

    to {
        background-color: red;
    }
}


#msg_notifier {
    position: absolute;
    right: 0px;
    top: 5px;
}

#msg_notifier a {
    text-decoration: none;
    margin-left: 0;
}

#new_messages:empty,
#new_messages[hidden],
#new_forum_posts:empty,
#new_forum_posts[hidden],
#new_tool_videos:empty,
#new_tool_videos[hidden],
#admin_approvals:empty,
#admin_approvals[hidden],
#msg_notifier:empty,
#msg_notifier[hidden] {
    display: none;
}

.message-center-tabs {
	margin-bottom: 1rem;
}

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

.message-center-tabbar .message-center-tabs {
	margin-bottom: 0;
}

.message-center-tabs .tab-alert {
	color: var(--orange);
	font-size: 1.05em;
	font-weight: 900;
}

.message-email-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	flex: 0 1 auto;
	margin-left: auto;
}

.message-email-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.48rem;
	padding: 0.38rem 0.62rem;
	border: 1px solid rgba(69,255,0,0.28);
	border-radius: 999px;
	background: rgba(255,255,255,0.045);
	color: var(--text-main);
	cursor: pointer;
}

.message-email-switch input[type="checkbox"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.message-email-switch-ui {
	position: relative;
	width: 2.1rem;
	height: 1.12rem;
	border-radius: 999px;
	background: rgba(255,255,255,0.16);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
	flex: 0 0 auto;
	transition: background 0.16s ease, box-shadow 0.16s ease;
}

.message-email-switch-ui::after {
	content: "";
	position: absolute;
	top: 0.16rem;
	left: 0.16rem;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.35);
	transition: transform 0.16s ease;
}

.message-email-switch input[type="checkbox"]:checked + .message-email-switch-ui {
	background: var(--green);
	box-shadow: inset 0 0 0 1px rgba(69,255,0,0.55);
}

.message-email-switch input[type="checkbox"]:checked + .message-email-switch-ui::after {
	transform: translateX(0.98rem);
	background: #102000;
}

.message-email-switch input[type="checkbox"]:focus-visible + .message-email-switch-ui {
	box-shadow: 0 0 0 3px rgba(255,47,146,0.28), inset 0 0 0 1px rgba(255,255,255,0.18);
}

.message-email-switch-text {
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.15;
	white-space: nowrap;
}

.message-email-status {
	min-width: 5.6rem;
	color: var(--text-muted);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.15;
}

.message-email-toggle.is-error .message-email-status {
	color: #ff7a9d;
}

.message-center-headline {
	align-items: center;
}

.message-center-headline p {
	color: var(--text-muted);
	margin: 0;
}

.message-notice-action {
	display: inline-flex;
	flex: 0 0 auto;
}

.message-notice-action button {
	white-space: nowrap;
}

.message-bulk-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--button-height);
	padding: 0.35rem 0.7rem;
	border: 1px solid rgba(69,255,0,0.32);
	border-radius: 999px;
	background: rgba(69,255,0,0.08);
	color: #caffc9;
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
}

.message-bulk-form {
	margin-top: 1rem;
}

.messages-shell {
    max-width: 1200px;
}

.image-rework-panel {
	width: min(1120px, 94vw);
	max-height: 92vh;
	overflow: auto;
}

.image-rework-thumbs {
	display: flex;
	gap: 0.45rem;
	margin: 0 0 1rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
}

.image-rework-thumbs img {
	width: 76px;
	height: 54px;
	object-fit: cover;
	border: 2px solid rgba(255,47,146,0.35);
	border-radius: 8px;
}

.image-rework-form {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255,255,255,0.12);
}

.message-thread-list {
    display: grid;
    gap: 0.75rem;
}

.message-thread-row {
    display: block;
    background: var(--bg-panel);
    border-left: 6px solid #1f6f3c;
    border-radius: 10px;
    color: var(--text-main);
    padding: 1rem;
    line-height: 1.25;
}

.message-thread-top {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 0.65rem;
}

.message-thread-name {
    min-width: 0;
}

.message-thread-name .model-profile-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-thread-time {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.message-thread-preview {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.message-thread-row.has-unread {
    border-left-color: var(--orange);
    background: rgba(255,102,0,0.08);
}

.message-thread-row.is-read {
    border-left-color: #1f6f3c;
}

.message-thread-row.is-crew-unread {
    border-left-color: #ff004c;
    background: rgba(255,0,76,0.10);
}

.message-thread-row b {
    display: inline-flex;
    min-width: 1.45em;
    height: 1.45em;
    align-items: center;
    justify-content: center;
    margin-left: 0.45rem;
    border-radius: 999px;
    background: var(--green);
    color: #120c10;
}

.message-read-mark {
    color: var(--green);
    font-weight: 900;
}

.message-stream {
    display: grid;
    gap: 0.75rem;
    background: rgba(255,255,255,0.035);
    min-height: 180px;
    background: transparent;
}

.message-bubble {
    position: relative;
    max-width: 78%;
    background: #320523;
    border-left: 5px solid var(--pink);
    border-radius: 10px;
    padding: 0.4rem 0.8rem 0.4rem 0.8rem;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.message-bubble.is-own {
    justify-self: end;
    border-left-color: #053205;
    background: rgba(69,255,0,0.08);
}

.message-bubble-tools {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.message-edit-trigger {
    --btn-bg: transparent;
    --btn-color: var(--orange);
    --btn-border: 0;
    min-height: 1rem;
    width: 1.2rem;
    padding: 0;
    box-shadow: none;
    flex: 0 0 auto;
}

.message-edit-trigger svg {
    width: 0.92rem;
    height: 0.92rem;
    fill: currentColor;
}

.message-edit-form {
    display: none;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.message-edit-form textarea {
    min-width: 0;
    width: 100%;
    background: #120c10;
    border: 1px solid #4d3a48;
    color: var(--text-main);
    padding: 0.45rem;
    resize: vertical;
}

.message-bubble.is-editing .message-view {
    display: none;
}

.message-bubble.is-editing {
    width: min(980px, 100%);
    max-width: 100%;
}

.message-bubble.is-editing .message-edit-form {
    display: grid;
}

.message-attachments {
    display: grid;
    justify-items: end;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.message-attachment-thumb {
    display: block;
    width: min(180px, 100%);
    line-height: 0;
}

.message-attachment-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid rgba(69,255,0,0.42);
    border-radius: 8px;
}

.message-attachment-file {
    display: inline-flex;
    max-width: 100%;
    justify-content: flex-end;
    padding: 0.38rem 0.55rem;
    border: 1px solid rgba(69,255,0,0.35);
    border-radius: 8px;
    background: rgba(69,255,0,0.08);
    color: #caffc9;
    font-size: 0.82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.message-compose {
    max-width: 980px;
    border-left-color: var(--green);
}

.message-block-form {
    margin: 0.75rem 0;
    display: flex;
    justify-content: flex-end;
}

.message-block-form button {
    --btn-bg: rgba(255,0,76,0.14);
    --btn-color: #ffb3c8;
    --btn-border: 1px solid rgba(255,0,76,0.35);
}

.message-block-form button.subtle {
    --btn-bg: rgba(255,102,0,0.14);
    --btn-color: var(--orange);
    --btn-border: 1px solid rgba(255,102,0,0.35);
}

.auth-code-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem 0;
}

.pagination a {
    --btn-bg: #120c10;
    --btn-border: 1px solid #4d3a48;
}

.pagination a.active {
    --btn-bg: var(--pink);
}

.news-thumb {
    width: 128px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
}

.news-thumb-link {
    line-height: 0;
}

.news-thumb-link .news-thumb {
    float: none;
    margin: 0;
}

.news-thumb-desktop-link {
    display: block;
    float: right;
    margin: 0 0 0.6rem 0.85rem;
}

.news-thumb-mobile-link {
    display: none;
}

.forum-thread-list,
.bug-list {
    display: grid;
    gap: 0.75rem;
}

.forum-thread-result .search-hit-list {
	margin: 0.45rem 0 0;
}

.forum-empty-state {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	flex-wrap: wrap;
	background: var(--bg-panel);
	border-left: 6px solid var(--orange);
	border-radius: 10px;
	padding: 1rem;
}

.forum-empty-state p {
	margin: 0;
	color: var(--text-muted);
	font-weight: 700;
}

.forum-thread-row,
.bug-item,
.chat-card {
    background: var(--bg-panel);
    border-left: 6px solid var(--pink);
    padding: 1rem;
}

.forum-thread-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-main);
    text-decoration: none;
}

.forum-thread-row.is-pinned {
    border-left-color: var(--orange);
    background: rgba(255,102,0,0.10);
}

.forum-thread-row small,
.forum-author span {
    display: block;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.forum-post {
    display: grid;
    grid-template-columns: 150px minmax(0,1fr);
    gap: 1rem;
    background: var(--bg-panel);
    border-left: 6px solid var(--orange);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.forum-comment {
    width: calc(100% - 2rem);
    margin-left: 2rem;
    grid-template-columns: 104px minmax(0,1fr);
    border-left-color: var(--green);
    background: rgba(255,255,255,0.045);
}

.forum-comment .forum-author {
    padding-top: 0.45rem;
}

.forum-comment .profile-avatar {
    width: 58px;
    height: 58px;
}

.forum-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    padding-top: 30px;
}

.forum-author .profile-avatar {
    margin: 0 auto 0.35rem;
}

.forum-author strong {
    display: block;
    width: 100%;
    text-align: center;
}

.forum-author span {
    font-size: 0.78rem;
}

.forum-author-chat {
    margin-top: 0.55rem;
}

.forum-body {
    position: relative;
}

.forum-body-tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: flex-end;
    margin-bottom: 0.45rem;
}

.forum-body-tools .report-link,
.forum-body-tools .forum-delete-inline,
.forum-body-tools .forum-delete-inline button,
.forum-body-tools .forum-inline-edit,
.forum-body-tools .forum-inline-edit summary {
    margin: 0;
    line-height: 1;
}

.forum-delete-inline button {
    --btn-bg: rgba(255,0,76,0.12);
    --btn-color: #ff7a9d;
    --btn-border: 1px solid rgba(255,0,76,0.35);
}

.forum-thread-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 0 0.8rem;
}

.forum-admin-actions {
    display: flex;
    gap: 0.45rem;
    justify-content: flex-start;
    flex: 1 1 auto;
    margin: 0;
}

.forum-admin-actions .forum-admin-pin {
    --btn-bg: #1E90FF;
    --btn-color: #fff;
}

.forum-admin-actions .forum-admin-delete {
    --btn-bg: #ff004c;
    --btn-color: #fff;
}

.forum-watch-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex: 0 1 auto;
    margin-left: auto;
}

.forum-watch-options {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid rgba(69,255,0,0.28);
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
}

.forum-watch-options label {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.forum-watch-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.forum-watch-options span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.forum-watch-options input:checked + span {
    background: var(--green);
    color: #102000;
}

.forum-watch-options input[value="email"]:checked + span {
    background: var(--orange);
    color: #fff;
}

.forum-watch-options input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(255,47,146,0.28);
}

.forum-watch-save {
    --btn-bg: #4d3a48;
}

.forum-watch-status {
    min-width: 5.6rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
}

.forum-watch-toggle.is-error .forum-watch-status {
    color: #ff7a9d;
}

.compact-form {
    max-width: none;
    border-left: 0;
}

.compact-form textarea {
    width: 100%;
}

.compact-form button {
    margin-top: 10px;
}

.forum-inline-edit {
    margin: 0;
}

.forum-inline-edit summary {
    width: auto;
    --btn-bg: #4d3a48;
}

.forum-body-tools:has(.forum-inline-edit[open]) ~ .forum-text {
    display: none;
}

.forum-inline-edit[open] {
    flex: 1 1 100%;
    order: 10;
}

.forum-inline-edit[open] form {
    margin-top: 0.7rem;
}

.forum-inline-edit textarea {
    min-height: 320px;
    line-height: 1.45;
}

.forum-reply {
    max-width: none;
    width: 100%;
}

.forum-text {
    overflow-wrap: anywhere;
}

.forum-text h1,
.forum-text h2,
.forum-text h3,
.forum-text h4 {
    color: var(--headlines);
    margin: 20px 0 10px;
    line-height: 1.2;
}

.forum-text h1 {font-size: 1.5em;}
.forum-text h2 {font-size: 1.3em;}
.forum-text h3 {font-size: 1.15em;}
.forum-text h4 {font-size: 1.05em;}

.forum-quote {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.85rem;
    border-left: 4px solid var(--green);
    border-radius: 8px;
    background: rgba(69,255,0,0.08);
    color: #dcffd8;
}

.forum-quote cite {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--green);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
}

.forum-quote p {
    margin: 0;
}

.forum-inline-image,
.forum-upload {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 0.75rem;
}

.upload-details,
.edit-details {
    margin: 0.75rem 0;
}

.upload-details summary,
.edit-details summary {
    color: var(--pink-soft);
    cursor: pointer;
    font-weight: bold;
}

.chat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(340px,1fr));
    justify-content: stretch;
    gap: 1.1rem;
    max-width: 1200px;
}

.chat-card {
    padding: 0;
    overflow: hidden;
    min-width: 0;
}

.chat-card-head {
    padding: 0.5rem 0.5rem 0.5rem;
}

.chat-card-head h3 {
    color: var(--headlines);
    font-size: 1rem;
    margin: 0 0 0.35rem;
    padding-right: 0;
}

.chat-actions {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.chat-actions .inline-vote-form {
    margin: 0;
}

.chat-actions .inline-vote-form button,
.chat-actions .report-link,
.chat-actions .permalink {
    --btn-height: var(--button-height);
    --btn-pad-y: var(--button-pad-y);
    --btn-pad-x: 0.48rem;
    --btn-border: 1px solid rgba(255,255,255,0.16);
    --btn-bg: rgba(8,9,13,0.78);
    --btn-color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    backdrop-filter: blur(4px);
    opacity: 1;
}

.chat-actions .report-link {
    --btn-color: #ff7a9d;
}

.chat-actions .inline-vote-form button.is-voted {
    --btn-bg: var(--pink);
    --btn-color: white;
}

.chat-thumb-shell {
    position: relative;
    margin: 0.5rem;
}

.chat-cookie-hint {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.chat-cookie-hint .inline-cookie-consent {
    margin: 0;
}

.chat-thumb-crop {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #08090d;
}

.chat-image-link {
    display: block;
    position: relative;
}

.chat-expand-cue {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--button-height);
    height: var(--button-height);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--button-radius);
    background: rgba(8,9,13,0.78);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.chat-expand-cue svg {
    width: 15px;
    height: 15px;
}

.chat-expand-cue path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-thumb {
    width: 100%;
    object-fit: contain;
    display: block;
}

.admin-thumb {
    width: 90px;
    height: 64px;
    aspect-ratio: auto;
}

.chat-upload-count {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin: 0.75rem 0 0.4rem;
    color: var(--text-muted);
}

.chat-upload-count a {
    --btn-bg: rgba(255,47,146,0.13);
    --btn-color: var(--pink-soft);
    --btn-border: 1px solid rgba(255,47,146,0.35);
}

.chat-upload-count a.active {
    --btn-bg: rgba(69,255,0,0.12);
    --btn-color: var(--green);
    --btn-border: 1px solid rgba(69,255,0,0.35);
}

.legal-card {

}

.legal-card h3 {
    color: var(--headlines);
    margin-bottom: 0.85rem;
}

.legal-card dl {
    display: grid;
    gap: 0.75rem;
}

.legal-card dt {
    color: var(--pink-soft);
    font-weight: bold;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.legal-card dd,
.legal-card p {
    color: var(--text-main);
    line-height: 1.55;
}

.faq-shell {
    max-width: 1100px;
}

.faq-hero {
    margin-bottom: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(69,255,0,0.24);
    border-left: 6px solid var(--green);
    border-radius: 10px;
    background:
        radial-gradient(circle at 88% 18%, rgba(69,255,0,0.13), transparent 10rem),
        linear-gradient(135deg, rgba(255,47,146,0.16), rgba(18,12,16,0.92));
}

.faq-hero .eyebrow {
    display: block;
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.faq-hero h2 {
    margin-bottom: 0.55rem;
}

.faq-hero p {
    max-width: 850px;
    color: var(--text-main);
    line-height: 1.5;
}

.faq-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.faq-flow a {
    --btn-bg: rgba(255,47,146,0.13);
    --btn-color: var(--pink-soft);
    --btn-border: 1px solid rgba(255,47,146,0.35);
    --btn-font-size: 0.84rem;
}

.faq-grid {
    display: grid;
    gap: 0.75rem;
}

.faq-card {
    background: var(--bg-panel);
    border-left: 6px solid var(--pink);
    border-radius: 10px;
    overflow: hidden;
}

.faq-card:nth-child(even) {
    border-left-color: var(--orange);
}

.faq-card summary {
    cursor: pointer;
    list-style: none;
    padding: 0.85rem 1rem;
    color: var(--headlines);
    font-weight: 900;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-card summary::after {
    content: "+";
    float: right;
    color: var(--pink-soft);
    font-size: 1.2rem;
    line-height: 1;
}

.faq-card[open] summary::after {
    content: "−";
}

.faq-content {
    padding: 0 1rem 1rem;
    color: var(--text-main);
}

.faq-content p,
.faq-content li {
    line-height: 1.55;
}

.faq-content p {
    margin-bottom: 0.75rem;
}

.faq-content ul {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    padding-left: 1.1rem;
}

.faq-content strong {
    color: var(--pink-soft);
}

.bug-item {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 1rem;
}

.bug-main {
    min-width: 0;
}

.bug-description {
    min-width: 0;
}

.bug-view {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
}

.bug-edit-trigger {
    --btn-bg: transparent;
    --btn-color: var(--orange);
    --btn-border: 0;
    min-height: 1rem;
    width: 1.2rem;
    padding: 0;
    box-shadow: none;
    vertical-align: baseline;
}

.bug-edit-trigger:hover {
    --btn-color: var(--pink-soft);
}

.bug-edit-trigger svg {
    width: 0.92rem;
    height: 0.92rem;
    fill: currentColor;
}

.bug-edit-form {
    display: none;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 0.4rem;
    max-width: 720px;
}

.bug-description.is-editing .bug-view {
    display: none;
}

.bug-description.is-editing .bug-edit-form {
    display: grid;
}

.bug-edit-form textarea {
    min-width: 0;
    width: 100%;
    background: #120c10;
    border: 1px solid #4d3a48;
    color: var(--text-main);
    padding: 0.45rem;
    line-height: 1.35;
    resize: vertical;
}

.bug-edit-form button {
    align-self: end;
}

.bug-item.bug-progress {border-left-color: var(--orange);}
.bug-item.bug-review {border-left-color: #90EE90;}
.bug-item.bug-later {border-left-color: #376EFF;}
.bug-item.bug-done,
.bug-item.bug-duplicate {opacity: 0.58;}
.bug-item.bug-rejected {border-left-color: #ff004c;}

.bug-admin {
    display: flex;
    gap: 0.4rem;
}

.bug-admin input,
.bug-admin select {
    background: #120c10;
    border: 1px solid #4d3a48;
    color: var(--text-main);
    padding: 0.45rem;
}

.cookie-layer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2500;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(15,11,14,0), rgba(15,11,14,0.96));
}

.cookie-box {
    max-width: 920px;
    margin: 0 auto;
    background: var(--bg-panel);
    border-left: 6px solid var(--orange);
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.cookie-box button {
    --btn-bg: var(--pink);
    margin-right: 0.4rem;
}

.password-mini {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #4d3a48;
}

.profile-shell {
    max-width: 1200px;
}

.profile-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.2rem;
    background:
        linear-gradient(135deg, rgba(69,255,0,0.10), rgba(255,47,146,0.20)),
        var(--bg-panel);
    border-left: 6px solid var(--orange);
}

.profile-avatar-wrap {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
}

.profile-avatar {
    box-sizing: border-box;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--avatar-border, var(--pink));
    background: radial-gradient(circle at 30% 20%, #3d2636, #120c10);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.04), 0 18px 40px rgba(0,0,0,0.35);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar.is-disabled-avatar img {
	filter: grayscale(1) saturate(0.15) opacity(0.62);
}

.profile-avatar span {
    color: var(--pink-soft);
    font-size: 2rem;
    font-weight: bold;
}

.profile-avatar.is-disabled-avatar span {
	color: #a8adb2;
}

.avatar-state,
.profile-pending,
.muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 1rem;
    align-items: start;
}

.profile-tabs {
	margin-bottom: 1rem;
}

.profile-security-grid > .profile-main-form {
	display: grid;
	gap: 1rem;
}

.profile-main-form,
.email-security-form,
.trusted-device-form {
    grid-column: 1;
}

.profile-side {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: grid;
    gap: 1rem;
}

.profile-form h3,
.profile-preview h3 {
    color: var(--pink-soft);
    margin-bottom: 0.8rem;
}

.email-security-form .field-hint {
    display: block;
    margin-bottom: 0.55rem;
}

.email-security-form .security-action-button {
    margin-top: 0.75rem;
}

.avatar-upload-button {
    margin-top: 0.75rem;
}

.avatar-remove-form {
    margin-top: -0.35rem;
}

.avatar-remove-form button {
    --btn-bg: rgba(255,0,76,0.14);
    --btn-color: #ffb3c8;
    --btn-border: 1px solid rgba(255,0,76,0.35);
}

.security-action-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.security-logout-form {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.email-security-form .danger-subtle {
    border: 1px solid rgba(255,0,76,0.35);
    background: rgba(255,0,76,0.14);
    color: #ffb3c8;
    font-weight: 800;
    cursor: pointer;
}

.account-delete-form {
	border-left-color: #ff004c;
}

.account-delete-form .inline-check {
	align-items: flex-start;
	margin: 0.8rem 0 1rem;
	line-height: 1.35;
}

.account-delete-form button.danger {
	--btn-bg: #ff004c;
}

.profile-gallery-empty {
	max-width: 720px;
}

.settings-number-grid label {
    max-width: 240px;
}

.profile-preview {
    margin-top: 1rem;
    background: var(--bg-panel);
    border-left: 6px solid var(--pink);
    padding: 1rem;
}

.bio-rendered {
    color: var(--text-main);
    line-height: 1.5;
}

.bio-rendered p,
.bio-rendered ul,
.bio-rendered h4 {
    margin-bottom: 0.75rem;
}

.bio-rendered ul {
    padding-left: 1.2rem;
}

.bio-rendered h4 {
    color: var(--headlines);
}

.bio-rendered code {
    background: #120c10;
    padding: 0.1rem 0.25rem;
}

.avatar-review-list {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 1rem;
}

.avatar-review-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    background: var(--bg-panel);
    border-left: 6px solid var(--pink);
    padding: 1rem;
}

.review-avatar {
    width: 96px;
    height: 96px;
}

.avatar-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.avatar-review-actions button {
    --btn-bg: var(--green);
    --btn-color: #102000;
}

.avatar-review-actions button.danger {
    --btn-bg: #ff004c;
    --btn-color: white;
}

.sn-image-editor {
    display: grid;
    gap: 0.75rem;
}

.sn-image-editor-label {
    color: var(--pink-soft);
    font-weight: bold;
}

.sn-image-editor-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sn-image-editor-ui {
    display: grid;
    gap: 0.7rem;
}

.sn-image-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    max-height: 560px;
    background: #08090d;
    border: 1px solid #2c2229;
    overflow: hidden;
    touch-action: none;
    cursor: pointer;
    outline: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sn-image-stage:focus,
.sn-image-editor.is-dragover .sn-image-stage {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255,47,146,0.16);
}

.sn-image-editor.has-image .sn-image-stage {
    cursor: grab;
}

.sn-avatar-editor .sn-image-stage {
    aspect-ratio: 1 / 1;
    min-height: 260px;
    max-width: 420px;
}

.sn-avatar-editor .sn-crop-rect {
    border-radius: 50%;
}

.sn-image-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 0.45rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed rgba(255,47,146,0.5);
    background: linear-gradient(135deg, rgba(255,47,146,0.08), rgba(69,255,0,0.04));
    z-index: 2;
}

.sn-image-empty strong {
    color: var(--pink-soft);
    font-size: 1.05rem;
}

.sn-image-empty span {
    max-width: 420px;
    line-height: 1.35;
}

.sn-image-layer {
    position: absolute;
    inset: 0;
    transform-origin: 0 0;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.sn-crop-rect,
.sn-pixel-rect,
.sn-pixel-marker {
    position: absolute;
    touch-action: none;
    cursor: move;
}

.sn-pixel-stack {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sn-crop-rect[hidden],
.sn-pixel-rect[hidden],
.sn-image-toolbar[hidden],
.sn-image-empty[hidden] {
    display: none;
}

.sn-crop-rect {
    border: 2px solid #45ff00;
    background: rgba(69,255,0,0.035);
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.42);
}

.sn-pixel-rect {
    border: 2px dashed var(--pink);
    background: rgba(255,47,146,0.14);
}

.sn-pixel-marker {
    border: 2px dashed rgba(255,47,146,0.72);
    background: rgba(255,47,146,0.12);
}

.sn-crop-rect::before,
.sn-pixel-rect::before {
    position: absolute;
    top: -1.6rem;
    left: 0;
    padding: 0.15rem 0.45rem;
    background: rgba(0,0,0,0.72);
    color: var(--text-main);
    font-size: 0.72rem;
    line-height: 1;
}

.sn-crop-rect::before {
    content: "Crop";
}

.sn-pixel-rect::before {
    content: "Pixelate";
}

.sn-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--pink);
    border: 2px solid #08090d;
}

.sn-crop-rect .sn-handle {
    background: #45ff00;
}

.sn-handle.tl {
    top: -8px;
    left: -8px;
    cursor: nwse-resize;
}

.sn-handle.tr {
    top: -8px;
    right: -8px;
    cursor: nesw-resize;
}

.sn-handle.bl {
    bottom: -8px;
    left: -8px;
    cursor: nesw-resize;
}

.sn-handle.br {
    right: -8px;
    bottom: -8px;
    cursor: nwse-resize;
}

.sn-image-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    padding: 0.65rem 0 0.15rem;
}

.sn-image-toolbar button {
    --btn-bg: #20141d;
    --btn-color: var(--text-main);
}

.sn-mode-toggle {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #4d3a48;
    border-radius: 10px;
    background: #120c10;
}

.sn-mode-toggle button {
    --btn-radius: 0;
    --btn-bg: transparent;
    --btn-color: var(--text-muted);
    border-right: 1px solid #4d3a48;
}

.sn-mode-toggle button:last-child {
    border-right: 0;
}

.sn-mode-toggle button.active {
    --btn-bg: var(--pink);
    --btn-color: white;
}

.sn-image-toolbar button.subtle {
    --btn-bg: rgba(255,102,0,0.13);
    --btn-color: var(--orange);
    --btn-border: 1px solid rgba(255,102,0,0.35);
}

.sn-image-toolbar button.danger-subtle {
    --btn-bg: rgba(255,0,76,0.12);
    --btn-color: #ff7a9d;
    --btn-border: 1px solid rgba(255,0,76,0.35);
}

.strip-form,
.admin-head,
.auth-hero,
.news-article,
.forum-thread-row,
.bug-item,
.chat-card,
.message-stream,
.message-bubble,
.legal-card,
.faq-card {
	border-radius: 10px;
}

.strip-form,
.news-article,
.forum-thread-row,
.bug-item,
.chat-card,
.message-stream,
.faq-card {
	border-left-color: var(--orange);
}

body.theme-subtle .auth-hero,
body.theme-subtle .admin-head,
body.theme-subtle .profile-head,
body.theme-subtle .whistle-hero,
body.theme-subtle .chat-info-hero,
body.theme-subtle .news-info-hero,
body.theme-subtle .join-teaser {
	background:
		linear-gradient(135deg, rgba(255,255,255,0.035), rgba(0,0,0,0.12)),
		var(--bg-panel);
}

body.theme-subtle .strip-form,
body.theme-subtle .news-article,
body.theme-subtle .admin-table-wrap,
body.theme-subtle .auth-tabs a,
body.theme-subtle .profile-preview,
body.theme-subtle .notification-item,
body.theme-subtle .forum-thread-row,
body.theme-subtle .forum-post,
body.theme-subtle .chat-card,
body.theme-subtle .message-bubble,
body.theme-subtle .faq-card,
body.theme-subtle .bug-item,
body.theme-subtle .not-found-shell,
body.theme-subtle .sn-lightbox-panel {
	background: var(--bg-panel);
}

body.theme-subtle .sn-lightbox {
	background: rgba(2,4,6,0.84);
}

.message-bubble.is-own {
	border-left-color: var(--green);
}

.inline-vote-form button {
	--btn-pad-x: 0.5rem;
	--btn-bg: #4d3a48;
}

.inline-vote-form button.is-voted {
	--btn-bg: var(--pink);
}

.sn-redact-toggle,
.sn-zoom-label {
    display: inline-flex;
    flex-direction: row;
    gap: 0.4rem;
    align-items: center;
    margin: 0;
    width: auto;
}

.strip-form .sn-redact-toggle,
.strip-form .sn-zoom-label {
    display: inline-flex;
    margin-bottom: 0;
}

.strip-form .sn-redact-toggle input,
.strip-form .sn-zoom-label input {
    display: inline-block;
    width: auto;
    margin: 0;
}

.strip-form .sn-redact-toggle input {
    transform: translateY(1px);
}

.sn-zoom-label input {
    min-width: 120px;
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    padding: 0.5rem 1.2rem;
    z-index: 1100;
    justify-content: space-between;
    align-items: center;
}

.mobile-header .title {
    font-size: 0.8rem;
}

.mobile-userline {
    display: none;
}

.mobile-header label {
    font-size: 2.0rem;
    color: var(--pink);
    cursor: pointer;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
}


@media (max-width: 1200px) {
    aside.sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        z-index: 1000;
        padding-top: 36px;
        padding-left: 1rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,102,0,0.55) rgba(0,0,0,0.18);
    }

    aside::-webkit-scrollbar {
        width: 8px;
    }

    aside::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.18);
    }

    aside::-webkit-scrollbar-thumb {
        background: rgba(255,102,0,0.55);
        border-radius: 999px;
    }
    

    #nav-toggle:checked ~ aside {
        transform: translateX(0);
    }

    #nav-toggle:checked ~ .overlay {
        opacity: 1;
        pointer-events: auto;
    }


    #content {
        padding: 6rem 1.5rem 3rem;
    }

    .mobile-header {
        display: flex;
    }

    .mobile-header .title {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Show account status once the desktop top line is hidden. */
    .mobile-userline {
        display: block;
        margin-top: 0.18rem;
        color: #8D8D8D;
        font-size: 0.74rem;
        font-weight: 400;
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .logo {display: none;}
    #xname {display: none;}
    
	
	nav {
		padding-top: 5px;
	}
	
	nav a {
		padding: 0.15rem 0;
		font-size: 0.9em;
	}
	
	.copyright {
		font-size: 0.6em;
		letter-spacing: 1px;
	}

    .auth-hero,
    .admin-head {
        align-items: stretch;
        flex-direction: column;
        min-height: 0;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter {
        grid-template-columns: 1fr;
    }

    .section-headline,
    .news-editor-grid,
    .tag-admin-form {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .profile-head,
    .profile-grid,
    .avatar-review-card {
        grid-template-columns: 1fr;
    }

    .profile-main-form,
    .email-security-form,
    .profile-side {
        grid-column: 1;
        grid-row: auto;
    }

    .profile-head {
        justify-items: start;
    }

    .message-thread-row {
        padding: 0.7rem 0.75rem;
    }

    .message-thread-top {
        grid-template-columns: minmax(0,1fr) auto auto;
        gap: 0.45rem;
    }

    .message-thread-time {
        font-size: 0.68rem;
    }

    .message-thread-open {
        --btn-pad-x: 0.45rem;
    }

    .message-bubble {
        max-width: 90%;
    }

    .message-bubble.is-editing {
        width: 100%;
        max-width: 100%;
    }

    .message-edit-form {
        grid-template-columns: 1fr;
    }

    .sn-image-stage {
        min-height: 180px;
    }

    .sn-lightbox-close {
        margin: 0;
        align-self: start;
    }
	
}

@media (max-width: 760px) {
    body {
        min-width: 0;
        overflow-x: hidden;
    }

    #content {
        width: 100%;
        min-width: 0;
        padding: 5.2rem 0.85rem 2rem;
    }

    .mobile-header {
        display: grid;
        grid-template-columns: 2.25rem minmax(0,1fr) 2.4rem;
        gap: 0.2rem 0.35rem;
        padding: 0.35rem 0.65rem 0.25rem;
        overflow: visible;
    }

    .mobile-header .title {
        min-width: 0;
        font-size: 0.6rem;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-userline {
        display: block;
        margin-top: 0.12rem;
        color: #8D8D8D;
        font-size: 0.66rem;
        font-weight: 400;
        line-height: 1.1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-auth-link {
        min-height: 19px;
        padding: 1px 6px;
        font-size: 0.62rem;
    }

    .mobile-header label {
        justify-self: start;
        line-height: 1;
    }

    .mobile-logo {
        justify-self: end;
        width: 2.3rem;
        min-width: 0;
        overflow: hidden;
    }

    .join-teaser {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .join-teaser-actions {
        justify-content: flex-start;
    }

    .join-teaser-actions .auth-code-link,
    .join-teaser-actions .table-action,
    .join-teaser-actions .subtle-action {
        flex: 1 1 auto;
    }

    .mobile-logo img {
        width: 100%;
        max-width: 2.3rem;
        max-height: 2.25rem;
        display: block;
        object-fit: contain;
    }

    section h2,
    .auth-hero h2,
    .admin-head h2 {
        font-size: clamp(1.05rem,5vw,1.22rem);
        line-height: 1.15;
        letter-spacing: 1px;
        margin-bottom: 0.4rem;
    }

    .section-headline {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 0.65rem;
    }

    .section-headline h2 {
        min-width: 0;
    }

    .section-headline .auth-code-link,
    .admin-head .auth-code-link,
    .auth-hero .auth-code-link {
        align-self: center;
        flex: 0 0 auto;
        margin-left: 0;
    }

    .not-found-shell {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: 0;
        padding: 1.2rem;
    }

    .not-found-code {
        font-size: 4rem;
    }

    .not-found-copy h2 {
        font-size: 1.45rem;
    }

    .not-found-actions a {
        flex: 1 1 auto;
    }

    body:not(.mod-admin) .filter-toggle {
        display: inline-flex;
        width: 100%;
        margin: 0 0 0.75rem;
        --btn-bg: rgba(255,47,146,0.15);
        --btn-color: var(--pink-soft);
        --btn-border: 1px solid rgba(255,47,146,0.35);
    }

    body:not(.mod-admin) .mobile-collapsible-filter {
        display: none;
    }

    body:not(.mod-admin) .mobile-collapsible-filter.is-open {
        display: grid;
    }

    body:not(.mod-admin) .admin-filter {
        grid-template-columns: 1fr;
        padding: 0.85rem;
        background: rgba(255,255,255,0.035);
        border-left: 6px solid var(--pink);
    }

    body:not(.mod-admin) .admin-filter label,
    body:not(.mod-admin) .admin-filter label:nth-of-type(n) {
        max-width: none;
        width: 100%;
    }

    body:not(.mod-admin) .admin-filter button,
    body:not(.mod-admin) .admin-filter a {
        width: 100%;
        margin-bottom: 0;
    }

    .news-teaser-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.55rem;
    }

    .news-teaser-head h3 {
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 0.35rem;
    }

    .news-secondary-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-direction: row;
        flex-wrap: wrap;
        flex: 0 0 auto;
        width: auto;
        margin: 0 0 0.35rem auto;
        gap: 0.35rem;
    }

    .news-secondary-actions .field-hint {
        flex: 1 1 100%;
        width: 100%;
        margin: 0;
        font-size: 0.72rem;
        line-height: 1.25;
        opacity: 0.75;
    }

    .news-secondary-actions .inline-vote-form,
    .news-secondary-actions .inline-vote-form button,
    .news-secondary-actions .table-action,
    .news-secondary-actions .report-link {
        margin: 0;
    }

    .news-article p {
        font-size: clamp(0.86rem, 3.7vw, 0.94rem);
        line-height: 1.34;
    }

    .sn-lightbox-panel.news-article p {
        font-size: clamp(0.86rem, 3.7vw, 0.94rem);
        line-height: 1.38;
    }

    .news-shot {
        float: none;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        margin: 0 0 0.75rem;
    }

    .news-thumb-desktop-link {
        display: none;
    }

    .news-thumb-mobile-link {
        display: block;
        float: right;
        width: 128px;
        max-width: 42vw;
        margin: 0 0 0.45rem 0.7rem;
    }

    .news-thumb-mobile-link .news-thumb {
        width: 128px;
        max-width: 42vw;
        height: 92px;
        max-height: 30vw;
        object-fit: cover;
    }

    .news-teaser-foot {
        display: flow-root;
        margin-top: 0.15rem;
    }

    .news-info-hero,
    .chat-info-hero,
    .whistle-hero,
    .auth-hero,
    .admin-head {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0.9rem;
        overflow-wrap: anywhere;
    }

    .news-editor-shell,
    .news-editor-grid,
    .news-compose,
    .news-preview-card,
    .sn-image-editor {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .news-editor-grid {
        grid-template-columns: 1fr;
    }

    .news-preview-card {
        position: static;
    }

    .strip-form,
    .message-compose,
    .forum-reply,
    .content-edit-form {
        max-width: none;
    }

    .sn-image-stage {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .sn-handle {
        width: 24px;
        height: 24px;
    }

    .sn-handle.tl {
        top: -12px;
        left: -12px;
    }

    .sn-handle.tr {
        top: -12px;
        right: -12px;
    }

    .sn-handle.bl {
        bottom: -12px;
        left: -12px;
    }

    .sn-handle.br {
        right: -12px;
        bottom: -12px;
    }

    .sn-image-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .sn-mode-toggle,
    .sn-image-toolbar button {
        width: 100%;
    }

    .tag-options span {
        padding: 0.55rem 0.7rem;
    }

    .chat-grid {
        grid-template-columns: 1fr;
    }

    .model-card,
    .team-card {
        grid-template-columns: 1fr;
    }

    .model-card {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        justify-items: stretch;
        padding: 0.9rem;
    }

    .team-card {
        gap: 0.85rem;
        padding: 0.9rem;
    }

    .team-card-head {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding-right: 0;
        padding-bottom: 0.85rem;
    }

    .team-avatar,
    .model-avatar {
        width: 76px;
        height: 76px;
    }

    .model-card .model-avatar {
        width: 104px;
        height: 104px;
    }

    .model-linktree,
    .team-linktree {
        width: 100%;
        text-align: center;
    }

    .model-count-links .model-linktree {
        width: auto;
        text-align: left;
    }

    .forum-thread-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .forum-post {
        grid-template-columns: 1fr;
    }

    .forum-comment {
        width: 100%;
        margin-left: 0;
        grid-template-columns: 1fr;
    }

    .forum-author {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .forum-author span {
        grid-column: auto;
    }

    .contents-shell .admin-table-wrap {
        overflow: visible;
        background: transparent;
        border-left: 0;
    }

    .contents-shell .content-table,
    .contents-shell .content-table thead,
    .contents-shell .content-table tbody,
    .contents-shell .content-table tr,
    .contents-shell .content-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .contents-shell .content-table {
        border-collapse: separate;
        border-spacing: 0 0.75rem;
    }

    .contents-shell .content-table thead {
        display: none;
    }

    .contents-shell .content-table tr {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
        column-gap: 0.7rem;
        align-items: start;
        background: var(--bg-panel);
        border-left: 6px solid var(--pink);
        padding: 0.75rem;
    }

    .contents-shell .content-table td {
        border-bottom: 0;
        padding: 0.35rem 0;
    }

    .contents-shell .content-table td:last-child {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        width: auto;
        max-width: 68vw;
        padding-top: 0;
    }

    .contents-shell .content-table td:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .contents-shell .content-table td:nth-child(n+2):not(:last-child) {
        grid-column: 1 / -1;
    }

    .contents-shell .table-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        align-items: center;
        justify-content: flex-end;
    }

    .contents-shell .table-actions form,
    .contents-shell .table-action,
    .contents-shell .table-actions button {
        width: auto;
        flex: 0 0 auto;
    }

    .auth-tabs {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-tabs a {
        text-align: center;
    }

    .message-center-tabbar {
        align-items: stretch;
        flex-direction: column;
    }

    .message-email-toggle {
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .message-email-switch {
        width: 100%;
        justify-content: flex-start;
    }

    .message-email-switch-text {
        white-space: normal;
    }

    .forum-thread-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .forum-admin-actions,
    .forum-watch-toggle {
        width: 100%;
        margin-left: 0;
    }

    .forum-watch-toggle {
        justify-content: flex-start;
    }

    .forum-watch-options {
        max-width: 100%;
        overflow-x: auto;
    }

    .contents-shell .auth-tabs {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .contents-shell .auth-tabs a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .faq-hero,
    .faq-card summary,
    .faq-content {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .faq-flow {
        align-items: stretch;
        flex-direction: column;
    }

    .faq-flow a {
        text-align: center;
    }

    .bug-item {
        grid-template-columns: 1fr;
    }

    .bug-admin {
        align-items: stretch;
        flex-direction: column;
    }

    .bug-edit-form {
        grid-template-columns: 1fr;
    }

    .sn-lightbox {
        padding: 0.75rem;
        place-items: center;
        overflow: auto;
        background: rgba(0,0,0,0.96);
        z-index: 3000;
    }

    .sn-lightbox-close {
        position: static;
        grid-area: 1 / 1;
        justify-self: end;
        align-self: start;
        transform: translate(24%, -24%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        margin: 0;
        border-radius: 999px;
        background: rgba(255,47,146,0.92);
        color: #fff;
        font-size: 1.55rem;
        font-weight: 800;
        line-height: 1;
        box-shadow: 0 8px 24px rgba(0,0,0,0.45);
        z-index: 3002;
    }

    .sn-lightbox-frame > .sn-lightbox-close {
        position: absolute;
        top: 0;
        right: 0;
        transform: translate(24%, -24%);
    }

    .news-image-lightbox .sn-lightbox-frame {
        width: fit-content;
        max-width: calc(100vw - 1.5rem);
    }

    .news-image-lightbox .sn-lightbox-frame > .sn-lightbox-image {
        max-width: calc(100vw - 1.5rem);
        max-height: 82dvh;
    }

    .more-info-lightbox .sn-lightbox-frame {
        width: 90vw;
        max-width: 1280px;
        height: 80vh;
        max-height: 750px;
    }

    .more-info-grid {
        grid-template-columns: 1fr;
    }

    .sn-lightbox-panel {
        margin-top: 0;
        width: min(94vw, 920px);
        max-height: 82dvh;
    }

    .model-profile-letter {
        padding: 1rem;
    }

    .model-profile-letterhead {
        grid-template-columns: 86px minmax(0,1fr);
        gap: 0.75rem;
    }

    .model-profile-avatar {
        width: 86px;
        height: 86px;
        font-size: 1.35rem;
    }

    .model-profile-title h3 {
        font-size: 1.25rem;
    }

    .model-profile-facts {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .staff-inline-edit-form,
    .staff-inline-edit-form-wide {
        width: 100%;
        max-width: 100%;
    }

    .staff-inline-edit-form-wide textarea {
        min-height: 220px;
    }

    .chat-full-image {
        max-height: 76dvh;
    }
}
