/* Resolve Forum — black edition, like main site */

:root {
	--bg: #090909;
	--bg-2: #111111;
	--bg-3: #161616;
	--white: #ffffff;
	--gray: #888888;
	--gray-2: #444444;
	--line: #1e1e1e;
	--line-2: #2a2a2a;
	--green: #4ade80;
	--green-dim: rgba(74, 222, 128, .12);
	--red: #ff6b6b;
	--yellow: #fbbf24;
	--blue: #7aa2f7;
	--pink: #f472b6;
	--wrap: 1140px;
	--font: "Onest", system-ui, sans-serif;
	--mono: "IBM Plex Mono", monospace;
	--r: 12px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

body {
	background:
		radial-gradient(ellipse 45% 30% at 15% 20%, rgba(74, 222, 128, .045), transparent 60%),
		radial-gradient(ellipse 40% 30% at 85% 75%, rgba(255, 255, 255, .03), transparent 55%),
		var(--bg);
	color: var(--white);
	font-family: var(--font);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 32px;
}

::selection { background: #fff; color: #000; }

h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; }

/* ---- header ---- */

.header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: rgba(9, 9, 9, .88);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	height: 64px;
	gap: 40px;
}

.logo {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -.02em;
	text-transform: lowercase;
	white-space: nowrap;
	background: linear-gradient(120deg, #ffffff 0%, #4ade80 25%, #7aa2f7 50%, #f472b6 75%, #ffffff 100%);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: logo-shift 8s linear infinite;
}

.logo span {
	-webkit-text-fill-color: transparent;
	background: inherit;
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
}

@keyframes logo-shift {
	0% { background-position: 0% 50%; }
	100% { background-position: 300% 50%; }
}

.logo--sm { font-size: 13px; }

.menu {
	display: flex;
	gap: 32px;
	margin-left: auto;
}

.menu a {
	font-size: 14px;
	color: var(--gray);
	transition: color .15s;
	white-space: nowrap;
}

.menu a:hover { color: var(--white); }

.search {
	width: 200px;
	position: relative;
}

.search form { margin: 0; }

.search::before {
	content: "⌕";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--gray-2);
	font-size: 14px;
	pointer-events: none;
	z-index: 1;
}

.search input {
	width: 100%;
	height: 34px;
	background: var(--bg-3);
	border: 1px solid var(--line-2);
	border-radius: 17px;
	color: var(--white);
	font: inherit;
	font-size: 13px;
	padding: 0 14px 0 32px !important;
	outline: none;
	transition: border-color .15s;
}

.search input:focus { border-color: var(--gray-2); }

.search input::placeholder { color: var(--gray-2); }

.user-box { display: flex; align-items: center; gap: 16px; }

.who {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--gray);
	white-space: nowrap;
	transition: color .15s;
}

.who:hover { color: var(--white); }

.dl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background: var(--white);
	color: #000;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	transition: opacity .15s, transform .2s;
	white-space: nowrap;
}

.dl-btn:hover { opacity: .88; transform: translateY(-3px) scale(1.02); }

.dl-btn--lg { padding: 14px 28px; font-size: 14px; border-radius: 10px; }

.dl-btn--ghost {
	background: transparent;
	color: var(--gray);
	border: 1px solid var(--line-2);
	padding: 8px 16px;
	font-weight: 500;
	transform: none;
}

.dl-btn--ghost:hover {
	color: var(--white);
	border-color: var(--gray);
	opacity: 1;
	transform: none;
}

.dl-btn--danger {
	background: transparent;
	color: var(--red);
	border: 1px solid rgba(255, 107, 107, .35);
	padding: 8px 16px;
	font-weight: 500;
	transform: none;
}

.dl-btn--danger:hover {
	background: rgba(255, 107, 107, .1);
	color: #fff;
	opacity: 1;
	transform: none;
}

.link-btn {
	font-size: 13px;
	color: var(--gray);
	border-bottom: 1px solid var(--line-2);
	padding-bottom: 2px;
	transition: color .15s, border-color .15s;
}

.link-btn:hover { color: var(--white); border-color: var(--gray); }

.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	margin-left: auto;
}

.burger i {
	display: block;
	height: 1.5px;
	background: var(--white);
	transition: transform .2s, opacity .2s;
}

.burger.open i:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger.open i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---- layout ---- */

.layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 28px;
	align-items: start;
	padding-top: 96px;
	padding-bottom: 80px;
}

/* ---- sidebar ---- */

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 84px;
}

.panel {
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	overflow: hidden;
	transition: border-color .15s;
}

.panel:hover { border-color: #333333; }

.panel-title {
	font-family: var(--mono);
	font-size: 10.5px;
	font-weight: 500;
	color: var(--gray-2);
	text-transform: uppercase;
	letter-spacing: .14em;
	padding: 13px 16px;
	border-bottom: 1px solid var(--line);
}

.sections { display: flex; flex-direction: column; padding: 6px 0; }

.sections a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	font-size: 13.5px;
	color: var(--gray);
	transition: background .12s, color .12s;
	border-left: 2px solid transparent;
}

.sections a:hover { background: var(--bg-3); color: var(--white); }

.sections a.active {
	background: var(--bg-3);
	color: var(--white);
	border-left-color: var(--green);
}

.sections a .cnt {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--gray-2);
	background: var(--bg);
	padding: 1px 8px;
	border-radius: 10px;
	border: 1px solid var(--line);
}

.sections a.active .cnt { color: var(--green); }

.online { padding: 10px 16px 14px; display: flex; flex-wrap: wrap; gap: 8px; }

.online--off { opacity: .55; }

.off-note {
	font-size: 12px;
	color: var(--gray-2);
	padding: 2px 0;
}

.u-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	color: var(--gray);
	padding: 4px 11px 4px 6px;
	background: var(--bg-3);
	border: 1px solid var(--line-2);
	border-radius: 20px;
	transition: border-color .12s;
}

.u-chip:hover { border-color: var(--gray-2); }

.u-chip .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 6px rgba(74, 222, 128, .8);
}

.u-chip .dot--off {
	background: var(--red);
	box-shadow: 0 0 6px rgba(255, 107, 107, .8);
}

.u-chip.admin {
	border-color: rgba(74, 222, 128, .35);
	color: var(--green);
}

.stats { padding: 8px 16px 12px; }

.stats .s-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 0;
	font-size: 13px;
	color: var(--gray);
}

.stats .s-row b {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--white);
}

.recent { padding: 6px 0; }

.recent a {
	display: block;
	padding: 10px 16px;
	border-bottom: 1px solid var(--line);
	font-size: 12.5px;
	line-height: 1.4;
	transition: background .12s;
}

.recent a:last-child { border-bottom: none; }
.recent a:hover { background: var(--bg-3); }

.recent a span {
	display: block;
	font-family: var(--mono);
	font-size: 10.5px;
	color: var(--gray-2);
	margin-top: 3px;
}

/* ---- content ---- */

.content-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.content-head h1 {
	font-size: 26px;
	letter-spacing: -.03em;
}

.content-head .sub {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--gray-2);
	margin-top: 4px;
	letter-spacing: .02em;
}

/* ---- flash ---- */

.flash {
	padding: 12px 16px;
	margin-bottom: 16px;
	border-radius: 8px;
	font-size: 13.5px;
	border: 1px solid;
}

.flash-ok {
	color: var(--green);
	border-color: rgba(74, 222, 128, .35);
	background: rgba(74, 222, 128, .06);
}

.flash-err {
	color: var(--red);
	border-color: rgba(255, 107, 107, .35);
	background: rgba(255, 107, 107, .06);
}

/* ---- thread cards ---- */

.ttable { display: flex; flex-direction: column; gap: 10px; }

.thead {
	display: grid;
	grid-template-columns: 1fr 64px 80px 150px;
	gap: 12px;
	align-items: center;
	padding: 0 18px;
	height: 42px;
	font-family: var(--mono);
	font-size: 10.5px;
	font-weight: 500;
	color: var(--gray-2);
	text-transform: uppercase;
	letter-spacing: .12em;
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: var(--r);
}

.trow {
	display: grid;
	grid-template-columns: 1fr 64px 80px 150px;
	gap: 12px;
	align-items: center;
	padding: 13px 18px;
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	transition: border-color .15s, transform .15s;
}

.trow:hover {
	border-color: var(--gray-2);
	transform: translateY(-1px);
}

.t-main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.t-av {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	user-select: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.t-txt { min-width: 0; }

.t-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color .12s;
}

.trow:hover .t-title { color: var(--white); }

.t-tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }

.tag {
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 1px 8px;
	border-radius: 5px;
	line-height: 1.6;
	border: 1px solid var(--line-2);
	color: var(--gray);
	background: var(--bg-3);
}

.tag-news { color: var(--green); border-color: rgba(74, 222, 128, .3); }
.tag-support { color: var(--yellow); border-color: rgba(251, 191, 36, .25); }
.tag-configs { color: var(--blue); border-color: rgba(122, 162, 247, .3); }
.tag-offtopic { color: var(--pink); border-color: rgba(244, 114, 182, .25); }
.tag-pinned { color: #e5e7eb; }

.t-cnt,
.t-views {
	font-family: var(--mono);
	font-size: 12.5px;
	font-weight: 500;
	color: var(--gray);
	text-align: center;
}

.t-cnt.green { color: var(--green); }

.t-last { text-align: right; min-width: 0; }

.t-last b {
	display: block;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--gray);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.t-last span {
	display: block;
	font-family: var(--mono);
	font-size: 10.5px;
	color: var(--gray-2);
	margin-top: 2px;
}

.empty {
	padding: 48px 24px;
	text-align: center;
	color: var(--gray);
	font-size: 13px;
	border: 1px dashed var(--line-2);
	border-radius: var(--r);
	background: var(--bg-2);
}

/* ---- thread page ---- */

.topic-head { margin-bottom: 24px; }

.topic-head h1 {
	font-size: clamp(20px, 3vw, 28px);
	line-height: 1.2;
	margin: 12px 0;
}

.topic-meta {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--gray-2);
}

.admin-acts {
	display: flex;
	gap: 10px;
	align-items: center;
}

.posts {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.post {
	display: grid;
	grid-template-columns: 1fr;
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	overflow: hidden;
	transition: border-color .15s;
}

.posts .post:first-child { border-color: rgba(74, 222, 128, .3); }

.post:hover { border-color: #333333; }

.post-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--line);
	background: var(--bg-3);
}

.post-head > form { margin-left: auto; }

.p-av {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	user-select: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.p-info { min-width: 0; flex: 1; }

.p-name {
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.p-name a { transition: color .12s; }
.p-name a:hover { color: var(--white); }

.badge {
	font-family: var(--mono);
	font-size: 9.5px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .08em;
	padding: 2px 8px;
	border-radius: 5px;
	line-height: 1.6;
	border: 1px solid var(--line-2);
}

.badge-admin { color: var(--green); border-color: rgba(74, 222, 128, .35); }
.badge-user { color: var(--gray); }

.p-date {
	font-family: var(--mono);
	font-size: 10.5px;
	color: var(--gray-2);
	margin-top: 2px;
}

.p-body {
	padding: 18px 20px;
	font-size: 14px;
	line-height: 1.7;
	color: #c9c9c9;
	word-break: break-word;
}

.p-body p { margin-bottom: 12px; }
.p-body p:last-child { margin-bottom: 0; }

.p-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 12px 18px;
	border-top: 1px solid var(--line);
	background: var(--bg-3);
}

.like-btn {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--gray-2);
	transition: color .12s;
}

.like-btn:hover { color: var(--white); }
.like-btn.on { color: var(--green); }

.quote-btn {
	font-size: 12.5px;
	color: var(--gray-2);
	transition: color .12s;
}

.quote-btn:hover { color: var(--white); }

.reply-box { margin-top: 20px; }

.reply-box h2 {
	font-size: 18px;
	margin-bottom: 14px;
}

/* ---- profile / admin rows ---- */

.profile-card {
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}

.section-note {
	padding: 14px 16px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--gray-2);
}

.arow {
	display: grid;
	grid-template-columns: 1fr 60px 110px 130px 120px 110px auto;
	gap: 12px;
	align-items: center;
	padding: 12px 18px;
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: var(--r);
}

.arow .t-title a:hover { color: var(--white); }

.arow-acts {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.arow-acts form { display: inline-flex; margin: 0; }

.arow-acts .respass { align-items: center; gap: 6px; }

.arow-acts .respass input {
	width: 110px;
	height: 32px;
	padding: 0 10px;
	font-family: var(--mono);
	font-size: 12px;
}

.arow-acts .dl-btn { padding: 7px 12px; font-size: 12px; }

/* ---- forms ---- */

label { display: block; margin-bottom: 16px; }

label > span {
	display: block;
	font-size: 11.5px;
	color: var(--gray);
	margin-bottom: 7px;
	font-family: var(--mono);
	letter-spacing: .04em;
}

input[type="text"],
input[type="password"],
textarea,
select {
	width: 100%;
	background: var(--bg-3);
	border: 1px solid var(--line-2);
	border-radius: 8px;
	color: var(--white);
	font: inherit;
	font-size: 14px;
	padding: 11px 13px;
	outline: none;
	transition: border-color .15s;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus { border-color: var(--gray-2); }

input::placeholder, textarea::placeholder { color: var(--gray-2); }

select option { background: var(--bg-3); }

/* ---- modal ---- */

.modal-wrap {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(0, 0, 0, .82);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal-wrap:target { display: flex; }

.modal {
	width: 100%;
	max-width: 460px;
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	padding: 28px;
	box-shadow: 0 32px 100px rgba(0, 0, 0, .7);
}

.modal h2 { font-size: 20px; margin-bottom: 20px; }

.modal-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 20px;
}

.form-note {
	font-size: 12px;
	color: var(--gray-2);
	margin-top: 14px;
	line-height: 1.5;
}

/* ---- footer ---- */

.footer { border-top: 1px solid var(--line); padding: 28px 0; }

.footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.footer-row p { font-size: 12px; color: var(--gray-2); }

.footer-row > span:last-child {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--gray-2);
}

/* ---- attachments ---- */

.atts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-start;
	padding: 2px 20px 8px;
}

.att-cap {
	flex: 1 0 100%;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gray);
	opacity: .75;
}

.att-img {
	position: relative;
	flex: none;
	width: 168px;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	background: #131313;
	transition: border-color .15s, transform .15s;
}

.att-img:hover {
	border-color: #3a3a3a;
	transform: translateY(-2px);
}

.att-img img {
	display: block;
	width: 100%;
	height: 104px;
	object-fit: cover;
}

.att-img-cap {
	display: block;
	padding: 4px 9px 6px;
	font-size: 11px;
	color: var(--gray);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.att-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	padding: 7px 13px 7px 8px;
	background: #111111;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--gray);
	transition: border-color .15s, color .15s, background .15s, transform .15s;
}

.att-chip:hover {
	border-color: #3a3a3a;
	background: #171717;
	color: var(--white);
	transform: translateY(-2px);
}

.att-chip-ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: linear-gradient(135deg, #4ade80, #22d3ee);
	color: #000000;
	font-family: var(--mono);
	font-weight: 700;
	font-size: 9px;
	letter-spacing: .06em;
}

.att-chip-name {
	max-width: 260px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--mono);
	font-size: 12px;
}

.att-chip-size {
	font-family: var(--mono);
	font-size: 10.5px;
	color: var(--gray);
	opacity: .8;
}

/* ---- responsive ---- */

@media (max-width: 1024px) {
	.search { display: none; }
	.layout { grid-template-columns: 220px 1fr; }
	.thead, .trow { grid-template-columns: 1fr 56px 130px; padding: 0 14px; }
	.thead > :nth-child(3), .trow > :nth-child(3) { display: none; }
	.arow { grid-template-columns: 1fr 90px 90px; }
	.arow > :nth-child(n+4):nth-child(-n+6) { display: none; }
}

@media (max-width: 760px) {
	.layout { grid-template-columns: 1fr; padding-top: 76px; }
	.sidebar { position: static; order: 2; }
	.menu {
		position: fixed;
		top: 64px; left: 0; right: 0;
		flex-direction: column;
		gap: 0;
		padding: 8px 20px 16px;
		background: rgba(9, 9, 9, .98);
		border-bottom: 1px solid var(--line);
		transform: translateY(-130%);
		opacity: 0;
		pointer-events: none;
		transition: transform .25s, opacity .25s;
	}
	.menu.open { transform: none; opacity: 1; pointer-events: auto; }
	.menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.burger { display: flex; }
	.wrap { padding: 0 16px; }
	.thead { display: none; }
	.trow {
		grid-template-columns: 1fr auto;
		grid-template-areas: "main cnt";
		gap: 6px 14px;
		padding: 12px 14px;
	}
	.t-main { grid-area: main; }
	.t-cnt { grid-area: cnt; text-align: left; font-size: 11px; color: var(--gray-2); }
	.t-last { display: none; }
	.arow { grid-template-columns: 1fr; gap: 8px; }
	.arow-acts { justify-content: flex-start; }
	.admin-acts { flex-direction: column; align-items: flex-start; }
}

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