:root {
  --bg: #121213;
  --surface: #1d1d1f;
  --surface-2: #242426;
  --surface-3: #2b2b2e;
  --line: #353538;
  --text: #e9e9ea;
  --muted: #98989d;
  --red: #c9152c;
  --red-hover: #e11b35;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.5 Arial, Helvetica, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
::selection { background: var(--red); color: #fff; }
.wrap { width: min(1060px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
.topbar { background: #1b1b1d; border-bottom: 1px solid #38383b; }
.topbar-inner { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #f3f3f3; font-size: 20px; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; object-fit: cover; }
.brand-dot { color: var(--red); }
.nav { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.nav > a, .nav-logout { padding: 8px 12px; color: #bcbcc0; background: none; border: 0; font-size: 12px; font-weight: 600; }
.nav > a:hover, .nav > a.active, .nav-logout:hover { color: #fff; background: #2b2b2e; }
.nav .nav-join { background: var(--red); color: white; margin-left: 5px; border-radius: 2px; }
.nav .nav-join:hover { background: var(--red-hover); }
.nav-join span { display: none; }
.nav .muted { color: #77777a; pointer-events: none; }
.inline-form { display: inline-flex; }
.footer { margin-top: auto; border-top: 1px solid #303033; background: #19191b; }
.footer-inner { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8a8a8e; font-size: 11px; }
.footer-inner > div { display: flex; gap: 20px; }
.footer a:hover { color: white; }
.flash-stack { margin-top: 14px; margin-bottom: -8px; position: relative; z-index: 2; }
.flash { padding: 10px 13px; margin-bottom: 6px; border: 1px solid #73303d; background: #361c22; color: #f7dce2; font-size: 12px; }
.flash.ok { border-color: #2d6445; background: #1a3325; color: #c4ebd1; }

/* Buttons and fields */
.button { min-height: 36px; padding: 8px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 2px; border: 1px solid transparent; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; transition: background .15s, border-color .15s; }
.button span { font-size: 14px; }
.button-red { background: var(--red); border-color: var(--red); }
.button-red:hover { background: var(--red-hover); border-color: var(--red-hover); }
.button-outline { border-color: #57575b; background: #29292b; }
.button-outline:hover { border-color: #77777b; background: #353538; }
.button-disabled { border-color: #39393d; background: #333336; color: #9b9ba0; cursor: default; }
.stack-form { display: flex; flex-direction: column; gap: 16px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; color: #c5c5c8; font-size: 12px; font-weight: 600; }
.stack-form input:not([type=checkbox]), .stack-form select, .stack-form textarea, .reply-box textarea, .forum-search input {
  width: 100%; min-height: 37px; padding: 9px 11px; border: 1px solid #454549; border-radius: 2px; outline: none;
  background: #151516; color: #f0f0f0; font-size: 12px; font-weight: 400;
}
.stack-form textarea, .reply-box textarea { min-height: 135px; resize: vertical; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus, .reply-box textarea:focus, .forum-search input:focus { border-color: var(--red); }
input::placeholder, textarea::placeholder { color: #747478; }
.stack-form .checkline { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; font-size: 11px; font-weight: 400; color: #a6a6aa; }
.checkline input { margin: 2px 0 0; accent-color: var(--red); }
.checkline a, .auth-switch a { color: #efefef; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 2px; }

/* Minimal entry page */
.entry-shell { min-height: calc(100vh - 114px); display: flex; flex-direction: column; justify-content: center; padding-top: 60px; padding-bottom: 60px; }
.entry-panel { width: min(760px, 100%); min-height: 270px; margin-inline: auto; display: grid; grid-template-columns: 260px 1fr; border: 1px solid #414144; border-top: 2px solid var(--red); background: var(--surface); box-shadow: 0 12px 45px #0005; }
.entry-mark { display: grid; place-items: center; background: #080809; border-right: 1px solid var(--line); }
.entry-mark img { width: 90%; max-width: 230px; aspect-ratio: 1; object-fit: contain; }
.entry-content { align-self: center; padding: 35px 42px; }
.entry-kicker { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.entry-content h1 { margin: 12px 0 2px; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.04em; }
.entry-content h1 span { color: var(--red); }
.entry-content p { margin: 0 0 27px; color: #b2b2b5; font-size: 12px; }
.entry-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.entry-note { width: min(760px, 100%); margin: 11px auto 0; display: flex; justify-content: space-between; color: #69696d; font-size: 10px; letter-spacing: .07em; }

/* Login and registration */
.auth-page { background: var(--bg); }
.auth-shell { width: min(440px, calc(100% - 30px)); min-height: calc(100vh - 114px); display: grid; place-items: center; padding-top: 55px; padding-bottom: 65px; }
.auth-art { display: none; }
.auth-panel { width: 100%; border: 1px solid #414144; border-top: 2px solid var(--red); background: var(--surface); padding: 29px 32px 31px; }
.panel-kicker { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.auth-panel h1 { margin: 10px 0 5px; font-size: 25px; line-height: 1.2; font-weight: 700; }
.auth-panel h1 span, .forum-head h1 span, .legal h1 span, .profile-page-head h1 span { color: var(--red); }
.panel-sub { margin: 0 0 25px; color: var(--muted); font-size: 12px; }
.form-submit { width: 100%; margin-top: 2px; }
.auth-switch { margin: 18px 0 0; color: #a0a0a4; font-size: 11px; }

/* Forum shell and listings */
.community { min-height: calc(100vh - 114px); padding-top: 30px; padding-bottom: 70px; }
.eyebrow { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.forum-head { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.forum-head h1, .legal h1 { margin: 4px 0 2px; font-size: 26px; line-height: 1.25; font-weight: 700; }
.forum-head p { margin: 0; color: var(--muted); font-size: 12px; }
.forum-head .button { flex: none; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 17px; align-items: start; }
.forum-main, .forum-side { min-width: 0; }
.section-label { min-height: 36px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--red); background: var(--surface-3); font-size: 11px; font-weight: 700; }
.section-label small { color: #aaaab0; font-size: 10px; font-weight: 400; }
.section-label span:before { content: none; }
.section-gap { margin-top: 20px; }
.category-list, .thread-list { border: 1px solid #343437; border-top: 0; }
.category-card { min-height: 68px; padding: 11px 14px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #343437; background: var(--surface); transition: background .15s; }
.category-card:last-child, .thread-row:last-child { border-bottom: 0; }
.category-card:hover, .thread-row:hover { background: #2a2a2d; }
.category-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #65303b; border-radius: 2px; background: #321b20; color: #e75b6d; font-size: 11px; font-weight: 700; }
.category-detail { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.category-detail strong { font-size: 13px; line-height: 1.2; font-weight: 700; }
.category-detail small { color: #99999e; font-size: 11px; }
.category-count { width: 50px; text-align: center; font-size: 12px; font-weight: 700; }
.category-count small { display: block; color: #89898e; font-size: 10px; font-weight: 400; }
.category-arrow { color: #85858a; font-size: 14px; }
.thread-row { min-height: 54px; padding: 9px 13px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #343437; background: var(--surface); }
.thread-pin { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 2px; background: #332126; color: #db5063; font-size: 11px; }
.thread-summary { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.thread-summary strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 600; }
.thread-summary small { color: #949499; font-size: 10px; }
.thread-meta { color: #aaaab0; text-align: right; white-space: nowrap; font-size: 10px; }
.thread-meta small { color: #85858a; }
.empty-state { padding: 22px 14px; background: var(--surface); color: var(--muted); font-size: 12px; }
.forum-side { display: flex; flex-direction: column; gap: 17px; }
.side-card { padding: 16px; border: 1px solid #343437; background: var(--surface); }
.side-kicker { padding-bottom: 9px; margin-bottom: 13px; border-bottom: 1px solid #3b3b3e; color: #b9b9bd; font-size: 10px; font-weight: 700; }
.member-avatar, .small-avatar { overflow: hidden; display: grid; place-items: center; flex: none; border-radius: 2px; background: var(--accent); color: white; font-size: 20px; font-weight: 700; }
.member-avatar { width: 42px; height: 42px; margin: 0 0 9px; }
.small-avatar { width: 36px; height: 36px; margin-bottom: 9px; }
.member-avatar img, .small-avatar img { width: 100%; height: 100%; object-fit: cover; }
.welcome h2 { margin: 0; font-size: 15px; }
.welcome p { margin: 2px 0 13px; color: #9f9fa4; font-size: 11px; }
.welcome > a { display: flex; justify-content: space-between; border-top: 1px solid #3b3b3e; padding-top: 10px; color: #d0d0d2; font-size: 11px; }
.welcome > a span { color: #e55d6e; }
.stats > div:not(:first-child) { display: flex; justify-content: space-between; margin-top: 8px; color: #aaaab0; font-size: 11px; }
.stats strong { color: #eee; font-size: 12px; }
.download-card h3 { margin: 0 0 2px; font-size: 15px; }
.download-card h3 span { color: var(--red); }
.download-card p { margin: 0 0 12px; color: #aaaab0; font-size: 11px; }
.download-card .button { width: 100%; }
.forum-search { display: flex; width: min(400px, 100%); margin: 0 0 18px; }
.forum-search input { min-height: 35px; border-radius: 2px 0 0 2px; }
.forum-search button { min-width: 70px; padding: 0 12px; border: 1px solid #55555a; border-left: 0; border-radius: 0 2px 2px 0; background: #2e2e31; color: #eee; font-size: 11px; white-space: nowrap; }
.forum-search button:hover { background: #3a3a3e; }
.search-page-form { width: 100%; margin-bottom: 18px; }
.crumb { margin-bottom: 17px; display: flex; align-items: center; gap: 8px; color: #aaaab0; font-size: 11px; }
.crumb span { color: var(--red); }
.category-threads { margin-top: 0; }

/* Threads and account */
.thread-head { padding: 15px 17px; border: 1px solid #39393d; border-top: 2px solid var(--red); background: var(--surface); }
.thread-head h1 { margin: 5px 0 7px; font-size: 21px; line-height: 1.3; }
.thread-head-meta { color: #9b9ba0; font-size: 11px; }
.moderation { display: flex; gap: 7px; margin-top: 13px; }
.moderation button { padding: 5px 9px; border: 1px solid #57575b; border-radius: 2px; background: #2a2a2d; color: #d1d1d4; font-size: 10px; }
.moderation button:hover { border-color: var(--red); }
.posts { display: flex; flex-direction: column; gap: 12px; margin-top: 13px; }
.post { min-height: 150px; display: grid; grid-template-columns: 150px minmax(0, 1fr); border: 1px solid #38383b; background: var(--surface); }
.post-author { padding: 14px; display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid #38383b; }
.post-author strong { font-size: 12px; }
.post-author small { color: #d45a6b; font-size: 10px; }
.joined, .author-bio { margin-top: 7px; color: #8e8e93; font-size: 10px; overflow-wrap: anywhere; }
.post-content { padding: 13px 16px; }
.post-date { display: flex; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid #38383b; color: #929297; font-size: 10px; }
.post-date span { color: #d45a6b; }
.post-body { padding-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.reply-box { margin-top: 25px; }
.reply-box form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid #39393d; border-top: 0; background: var(--surface); }
.reply-box .button { align-self: flex-end; }
.narrow { max-width: 800px; }
.compose-form, .settings-card { padding: 18px; border: 1px solid #39393d; background: var(--surface); }
.compose-form .button, .settings-card .button { align-self: flex-start; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.settings-right { display: flex; flex-direction: column; gap: 17px; }
.settings-card .section-label { margin: -18px -18px 17px; }
.profile-preview { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.profile-preview .member-avatar { margin: 0; }
.profile-preview strong, .profile-preview small { display: block; }
.profile-preview strong { font-size: 14px; }
.profile-preview small { color: #c85a6a; font-size: 10px; }
.card-copy { margin: 0 0 12px; color: #aaaab0; font-size: 11px; }
.upload-form { margin-top: 20px; padding-top: 15px; border-top: 1px solid #39393d; }
.stack-form input[type=file] { font-size: 11px; }
.profile-page-head { margin-bottom: 20px; padding: 20px; display: flex; align-items: center; gap: 18px; border: 1px solid #39393d; border-top: 2px solid var(--red); background: var(--surface); }
.profile-page-head .member-avatar { width: 65px; height: 65px; margin: 0; font-size: 28px; }
.profile-page-head h1 { margin: 3px 0; font-size: 24px; }
.profile-page-head p { margin: 0 0 3px; color: #c6c6c9; font-size: 11px; }
.profile-page-head small { color: var(--muted); font-size: 10px; }
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 20px; }
.legal h2 { margin: 23px 0 5px; font-size: 15px; }
.legal p { color: #b9b9bd; font-size: 12px; line-height: 1.7; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 26px); }
  .entry-panel { grid-template-columns: 180px 1fr; }
  .entry-content { padding: 22px; }
  .forum-layout { display: flex; flex-direction: column; }
  .forum-main, .forum-side { width: 100%; }
  .forum-side { display: grid; grid-template-columns: 1fr 1fr; }
  .download-card { grid-column: 1 / -1; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .topbar-inner { min-height: 54px; gap: 8px; }
  .brand { font-size: 17px; gap: 5px; }
  .brand img { width: 25px; height: 25px; }
  .nav { gap: 0; }
  .nav > a, .nav-logout { padding: 7px 5px; font-size: 10px; }
  .nav .nav-join { margin-left: 2px; }
  .nav .nav-download { display: none; }
  .entry-shell { min-height: calc(100vh - 109px); padding-top: 40px; padding-bottom: 40px; }
  .entry-panel { grid-template-columns: 1fr; max-width: 360px; }
  .entry-mark { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .entry-mark img { max-width: 170px; }
  .entry-content { padding: 24px; }
  .entry-note { max-width: 360px; }
  .auth-shell { padding-top: 30px; padding-bottom: 40px; }
  .auth-panel { padding: 22px; }
  .community { padding-top: 22px; }
  .forum-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .forum-head h1 { font-size: 23px; }
  .forum-side { display: flex; }
  .category-card { gap: 8px; padding: 9px; }
  .category-detail strong { font-size: 12px; }
  .category-count { width: 34px; }
  .category-arrow { display: none; }
  .thread-meta { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-author { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; border-right: 0; border-bottom: 1px solid #38383b; }
  .small-avatar { grid-row: 1 / 4; width: 34px; height: 34px; margin: 0; }
  .joined { margin: 0; }
  .author-bio { grid-column: 1 / -1; }
  .footer-inner { min-height: 50px; font-size: 10px; }
  .footer-inner > div { gap: 9px; }
}

/* FETAMIN community theme */
@font-face { font-family: JetBrains Mono; src: url('/static/vendor/jetbrains/JetBrainsMono-Regular.woff2?v=2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: JetBrains Mono; src: url('/static/vendor/jetbrains/JetBrainsMono-Bold.woff2?v=2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
:root { --accent: #a72435; --owner: #e3b562; --staff: #ea6777; --member: #c8c8cd; }
body { font: 14px/1.55 'JetBrains Mono', Consolas, monospace; background: radial-gradient(ellipse at 50% 0%, #23151a 0%, #121213 48%, #101011 100%) fixed; }
button, input, select, textarea { font-family: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); }
.topbar, .footer { position: relative; z-index: 1; background: #171719ee; backdrop-filter: blur(8px); }
.topbar-inner { min-height: 68px; }
.brand { font-size: 22px; }
.brand img { width: 36px; height: 36px; }
.nav > a, .nav-logout { display: inline-flex; align-items: center; gap: 7px; padding: 10px 11px; font-size: 12px; }
.nav i { font-size: 17px; }
.nav .nav-join { border: 1px solid #f12c42; }
.footer-inner { min-height: 70px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.language-switch { display: inline-flex; align-items: center; gap: 6px; }
.language-switch i { margin-right: 5px; font-size: 18px; }
.language-switch button { border: 1px solid transparent; background: transparent; color: #9b9ba1; padding: 5px 7px; }
.language-switch button.selected { color: #fff; border-color: #a92b3b; background: #3b1d23; }
.language-switch button:hover { color: #fff; }
.flash-stack, main { position: relative; z-index: 1; }
.fall-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.fall-layer span { position: absolute; top: -15vh; display: block; white-space: nowrap; color: #d25767; font-weight: 700; text-transform: uppercase; user-select: none; animation: driftFall var(--duration) linear var(--delay) infinite; }
@keyframes driftFall { from { transform: translate3d(0,-10vh,0) rotate(0); } to { transform: translate3d(var(--drift),125vh,0) rotate(var(--spin)); } }
@media (prefers-reduced-motion: reduce) { .fall-layer { display: none; } }
.button { min-height: 44px; padding: 11px 18px; font-size: 12px; border-radius: 0; clip-path: polygon(0 0,calc(100% - 7px) 0,100% 7px,100% 100%,7px 100%,0 calc(100% - 7px)); letter-spacing: .02em; }
.button i, .section-label i, .eyebrow i, .side-card i { font-size: 17px; vertical-align: middle; }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #f1495d; outline-offset: 2px; }
.stack-form label { font-size: 13px; gap: 9px; }
.stack-form input:not([type=checkbox]), .stack-form select, .stack-form textarea, .reply-box textarea, .forum-search input { min-height: 45px; padding: 11px 13px; font-size: 13px; }
.stack-form textarea, .reply-box textarea { min-height: 150px; }
.entry-panel { width: min(850px, 100%); min-height: 310px; grid-template-columns: 300px 1fr; }
.entry-note { width: min(850px, 100%); }
.entry-content p { font-size: 13px; }
.auth-shell { width: min(480px, calc(100% - 30px)); }
.auth-panel { padding: 35px 38px; }
.auth-panel h1 { font-size: 29px; }
.panel-sub, .forum-head p { font-size: 13px; }
.community { padding-top: 38px; }
.forum-head h1, .legal h1 { font-size: 30px; }
.forum-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 20px; }
.section-label { min-height: 43px; padding: 11px 16px; font-size: 12px; }
.category-card { min-height: 82px; padding: 15px 18px; gap: 17px; }
.category-icon { width: 43px; height: 43px; font-size: 18px; }
.category-detail strong { font-size: 14px; }
.category-detail small, .thread-summary small { font-size: 11px; }
.thread-row { min-height: 68px; padding: 12px 17px; }
.thread-summary strong { font-size: 13px; }
.side-card { padding: 20px; }
.side-kicker { font-size: 11px; }
.welcome p, .welcome > a, .stats > div:not(:first-child), .download-card p { font-size: 12px; }
.post { grid-template-columns: 185px minmax(0,1fr); }
.post-author { padding: 19px; }
.post-author strong, .post-body { font-size: 13px; }
.post-content { padding: 17px 20px; }
.settings-grid { gap: 20px; }
.settings-column { display: flex; flex-direction: column; gap: 20px; }
.settings-card { padding: 22px; }
.settings-card .section-label { margin: -22px -22px 20px; }
.settings-card .member-avatar { width: 52px; height: 52px; }
.media-form { margin-top: 19px; }
.media-form + .media-form { border-top: 1px solid var(--line); padding-top: 20px; }
.file-picker { position: relative; display: flex; align-items: center; gap: 10px; min-height: 47px; padding: 10px 13px; border: 1px dashed #6c454c; background: #20191b; color: #ddd; cursor: pointer; }
.file-picker:hover { border-color: #da3a4e; background: #2c1b20; }
.file-picker input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-picker i { color: #e84a5f; font-size: 21px; }
.file-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.username.role-owner, .role-badge.role-owner { color: var(--owner); }
.username.role-staff, .role-badge.role-staff { color: var(--staff); }
.username.role-member, .role-badge.role-member { color: var(--member); }
.username i.bxs-crown { color: var(--owner); font-size: 1.08em; }
.role-bg-owner { background: #6d4d1c; border-color: #c49750 !important; }
.role-bg-staff { background: #6e2b3a; border-color: #db5b72 !important; }
.role-bg-member { background: #39393e; border-color: #77777e !important; }
.role-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; border: 1px solid currentColor; background: #161619; font-size: 11px; font-weight: 700; }
.profile-layout { max-width: 1100px; }
.profile-hero, .invite-section, .profile-topics { border: 1px solid #3b3b3e; background: #1d1d1fee; margin-bottom: 22px; }
.profile-banner { height: 230px; background: radial-gradient(circle at 50% 100%,#5b1622,#1b1115 60%,#111114); border-bottom: 1px solid #3b3b3e; overflow: hidden; }
.profile-banner img, .member-card-banner img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity { display: flex; align-items: flex-end; gap: 20px; padding: 0 28px 22px; }
.profile-avatar { width: 112px; height: 112px; flex: none; display: grid; place-items: center; margin-top: -50px; border: 4px solid #1d1d1f; font-size: 42px; font-weight: 700; overflow: hidden; position: relative; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-title { flex: 1; min-width: 0; }
.profile-title h1 { margin: 7px 0 3px; font-size: 29px; overflow-wrap: anywhere; }
.profile-title p { margin: 0; color: #aaaab0; overflow-wrap: anywhere; }
.profile-edit { flex: none; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 12px 30px; padding: 16px 28px; border-top: 1px solid #343437; color: #a7a7ad; font-size: 12px; }
.profile-stats span { display: inline-flex; align-items: center; gap: 7px; }
.profile-stats i { color: #cb4c5e; font-size: 17px; }
.profile-stats strong { color: #fff; }
.invite-body { padding: 22px; }
.invite-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.invite-top p { margin: 0; color: #aaaab0; }
.invite-create { display: flex; align-items: flex-end; gap: 8px; }
.invite-create label { font-size: 11px; color: #b5b5ba; }
.invite-create select { height: 44px; min-width: 65px; padding: 0 8px; border: 1px solid #55555b; background: #18181a; color: #fff; }
.invite-list { border: 1px solid #39393d; }
.invite-row { display: flex; align-items: center; gap: 18px; padding: 12px 14px; border-bottom: 1px solid #39393d; }
.invite-row:last-child { border-bottom: 0; }
.invite-code { display: flex; align-items: center; gap: 8px; min-width: 0; color: #ececef; }
.invite-code i { color: #e04c61; font-size: 19px; }
.invite-code code { font: inherit; font-weight: 700; overflow-wrap: anywhere; }
.invite-usage { display: flex; flex-direction: column; flex: 1; color: #b7b7bb; font-size: 11px; }
.invite-usage small { color: #7e7e84; }
.invite-used a { color: #fff; text-decoration: underline; }
.invite-unused { color: #84c598; }
.copy-button { display: inline-flex; gap: 6px; align-items: center; padding: 8px 10px; border: 1px solid #58585c; background: #29292c; color: #fff; }
.copy-button:hover { border-color: #dc3b50; }
.members-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 15px; }
.member-card { min-width: 0; border: 1px solid #3b3b3e; background: #1d1d1f; transition: transform .18s,border-color .18s; }
.member-card:hover { transform: translateY(-3px); border-color: #c43c4f; }
.member-card-banner { height: 105px; background: linear-gradient(135deg,#49101c,#1a1417 55%,#5c1421); overflow: hidden; }
.member-card-content { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 0 17px 18px; }
.member-card-content .member-avatar { width: 62px; height: 62px; margin: -30px 0 2px; position: relative; border: 3px solid #1d1d1f; }
.member-card-content strong { font-size: 15px; overflow-wrap: anywhere; }
.legal p { font-size: 13px; }
@media (max-width: 850px) { .forum-layout { grid-template-columns: 1fr; } .forum-side { display: grid; grid-template-columns: repeat(2,1fr); } .members-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .wrap { width: calc(100% - 26px); } .topbar-inner { align-items: flex-start; flex-direction: column; padding: 11px 0; gap: 8px; } .nav { justify-content: flex-start; } .nav > a, .nav-logout { padding: 7px 8px; font-size: 11px; } .nav .nav-download { display: none; } .entry-panel { grid-template-columns: 1fr; } .entry-mark { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); } .entry-mark img { max-width: 170px; } .forum-side { display: flex; } .settings-grid, .members-grid { grid-template-columns: 1fr; } .profile-banner { height: 160px; } .profile-identity { padding: 0 17px 17px; flex-wrap: wrap; } .profile-avatar { width: 86px; height: 86px; font-size: 32px; margin-top: -40px; } .profile-title h1 { font-size: 23px; } .profile-edit { width: 100%; } .profile-stats { padding: 13px 17px; } .invite-top, .invite-row { flex-direction: column; align-items: stretch; } .invite-create { flex-wrap: wrap; } .invite-code { flex-wrap: wrap; } .copy-button { width: fit-content; } .post { grid-template-columns: 1fr; } .footer-inner { justify-content: center; padding: 12px 0; } }

/* Email verification and support tickets */
.spam-note { display: flex; align-items: center; gap: 10px; margin: -7px 0 22px; padding: 12px; border: 1px solid #695024; background: #2d2518; color: #eed8a7; font-size: 12px; }
.spam-note i { flex: none; font-size: 20px; }
.resend-form { margin-top: 19px; }
.text-button { padding: 0; border: 0; background: none; color: #e6a4af; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.text-button:hover { color: #fff; }
.ticket-page { max-width: 1100px; }
.ticket-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ticket-filters a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid #48484c; background: #202023; color: #b9b9be; font-size: 12px; }
.ticket-filters a.selected { border-color: #d7344a; background: #361d23; color: #fff; }
.ticket-filters span { color: #e37f8e; }
.ticket-list { border: 1px solid #39393d; border-top: 0; }
.ticket-row { display: flex; align-items: center; gap: 16px; min-height: 78px; padding: 14px 18px; border-bottom: 1px solid #39393d; background: #1d1d1f; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { background: #29292c; }
.ticket-id { color: #e35669; font-weight: 700; }
.ticket-row-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ticket-row-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ticket-row-main small { color: #929299; font-size: 11px; }
.ticket-priority, .ticket-status { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 5px 8px; border: 1px solid currentColor; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.priority-high { color: #f07680; }
.priority-normal { color: #e7bd6e; }
.priority-low { color: #9bbf9d; }
.status-open { color: #91d3a4; }
.status-closed { color: #a2a2ac; }
.ticket-form { max-width: 800px; padding: 24px; border: 1px solid #3c3c40; border-top: 2px solid var(--red); background: #1d1d1f; }
.ticket-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.ticket-form textarea { min-height: 210px; }
.ticket-form .button { align-self: flex-start; }
.ticket-detail-head { padding: 20px 24px; border: 1px solid #414145; border-top: 2px solid var(--red); background: #1d1d1f; }
.ticket-detail-head h1 { margin: 7px 0 12px; font-size: 25px; overflow-wrap: anywhere; }
.ticket-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: #b0b0b5; font-size: 12px; }
.ticket-detail-meta a { text-decoration: underline; }
.ticket-message { margin-top: 15px; border: 1px solid #3d3d42; background: #1d1d1f; }
.ticket-original { border-left: 3px solid #ca243b; }
.ticket-message-head { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 12px 16px; border-bottom: 1px solid #39393d; }
.ticket-message-head time { margin-left: auto; color: #8e8e95; font-size: 11px; }
.ticket-message-body { padding: 17px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.ticket-reply { margin-top: 25px; }
.ticket-reply form { padding: 19px; border: 1px solid #39393d; background: #1d1d1f; }
.ticket-reply .button { align-self: flex-start; }
.ticket-actions { margin-top: 20px; }
.legal p a { color: #f28796; text-decoration: underline; text-underline-offset: 3px; }
.username.role-admin, .role-badge.role-admin { color: #eb7084; }
.username.role-moderator, .role-badge.role-moderator { color: #8fa9dc; }
.role-bg-admin { background: #692b3a; border-color: #d8687e !important; }
.role-bg-moderator { background: #2d4268; border-color: #7d9fd8 !important; }
@media (max-width: 700px) { .ticket-row { flex-wrap: wrap; gap: 8px 12px; } .ticket-row-main { flex-basis: calc(100% - 65px); } .ticket-row > i { display: none; } .ticket-form-grid { grid-template-columns: 1fr; } }
