/* PureMTA Forum v1.0 · Invision Community Edition · PureMTA Dark UI */
:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --bg-glow: rgba(119, 179, 212, 0.08);
  --surface: #11161d;
  --surface-2: #161c25;
  --surface-3: #1d2531;
  --input-bg: #0c1016;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.13);
  --border-accent: rgba(119, 179, 212, 0.38);
  --accent: #77b3d4;
  --accent-bright: #9ad1ee;
  --accent-soft: rgba(119, 179, 212, 0.13);
  --text: #e9eff6;
  --text-muted: #9aa7b8;
  --text-dim: #6c7a8c;
  --admin: #e06c75;
  --mod: #63c79e;
  --gold: #e5c07b;
  --blue: #6ea8fe;
  --violet: #b695f8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
body {
  background-image:
    radial-gradient(960px 440px at 14% -6%, var(--bg-glow), transparent 64%),
    radial-gradient(760px 380px at 88% 4%, rgba(119, 179, 212, 0.05), transparent 60%);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; transition: color .14s; }
a:hover { color: var(--accent-bright); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
svg { width: 17px; height: 17px; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 200; background: var(--accent); color: #08121a; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* Demo Control Bar */
.demo-bar {
  background: linear-gradient(90deg, #0e1620, #152434, #0e1620);
  border-bottom: 1px solid var(--border-accent);
  padding: 8px 18px;
  font-size: 12.5px;
  position: sticky;
  top: 0;
  z-index: 70;
}
.demo-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-bright);
  font-weight: 600;
}
.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}
.demo-switches { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.demo-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
  font-size: 12px;
  transition: .14s;
}
.demo-pill:hover { border-color: var(--border-accent); color: var(--text); }
.demo-pill.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-bright); font-weight: 600; }
.demo-pill.reset { border-color: rgba(224, 108, 117, 0.35); color: #f0959c; }
.demo-pill.reset:hover { background: rgba(224, 108, 117, 0.16); }

/* Top Navbar */
.top {
  background: rgba(14, 18, 25, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 60;
}
body.has-demo-bar .top { top: 41px; }
.top-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.mobile-menu-btn { display: none; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #0d1218;
  object-fit: cover;
}
.brand-text strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.brand-text small { display: block; font-size: 9.5px; letter-spacing: 0.14em; color: var(--text-dim); margin-top: 2px; font-weight: 600; }

.top-links { display: flex; align-items: center; gap: 4px; }
.top-links a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13.5px;
  position: relative;
  transition: .14s;
}
.top-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.top-links a.active { color: var(--text); background: var(--accent-soft); font-weight: 600; }
.top-links a.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -15px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.top-right { display: flex; align-items: center; gap: 10px; }
.global-search { position: relative; width: 260px; }
.global-search input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 7px 32px 7px 34px;
  font-size: 13px;
  outline: none;
  transition: .15s;
}
.global-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(119, 179, 212, 0.14); }
.global-search .search-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-dim); pointer-events: none; }
.search-kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font: 600 11px/1 var(--mono);
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  pointer-events: none;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 380px;
  max-height: 430px;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 90;
  padding: 6px;
}
.sd-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-dim); padding: 7px 10px 4px; font-weight: 700; }
.sd-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 13px; }
.sd-item:hover { background: var(--surface-3); color: var(--text); }
.sd-item small { color: var(--text-dim); font-size: 11.5px; flex-shrink: 0; }
.sd-empty { padding: 14px 10px; color: var(--text-dim); font-size: 12.5px; text-align: center; }

.top-actions { display: flex; align-items: center; gap: 7px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: .14s;
}
.btn:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.22); color: var(--text); }
.btn.primary {
  background: linear-gradient(180deg, #87c0df, #649ec0);
  border-color: rgba(154, 209, 238, 0.55);
  color: #08121a;
  font-weight: 600;
}
.btn.primary:hover { filter: brightness(1.07); color: #08121a; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.055); color: var(--text); }
.btn.danger { border-color: rgba(224, 108, 117, 0.36); color: #f0959c; background: rgba(224, 108, 117, 0.08); }
.btn.danger:hover { background: rgba(224, 108, 117, 0.18); }
.btn.success { border-color: rgba(99, 199, 158, 0.42); color: #7ee0b6; background: rgba(99, 199, 158, 0.11); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.icon { padding: 0; width: 35px; height: 35px; position: relative; }
.btn svg { width: 15px; height: 15px; }
.counter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--admin);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
}

/* Main Shell & 3-Column Grid */
.shell { max-width: 1400px; margin: 0 auto; padding: 20px 20px 44px; }
.layout { display: grid; grid-template-columns: 226px minmax(0, 1fr) 294px; gap: 20px; align-items: start; }
.layout.wide-main { grid-template-columns: 226px minmax(0, 1fr); }
main { min-width: 0; }

/* Left Navigation Rail (PureMTA F1 Panel inspired) */
.left {
  position: sticky;
  top: 84px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
body.has-demo-bar .left { top: 124px; }
.nav-section { margin-bottom: 14px; }
.nav-section:last-child { margin-bottom: 0; }
.nav-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 4px 12px 6px;
  font-weight: 700;
}
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  transition: .14s;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-link.selected { background: var(--surface-2); color: var(--text); font-weight: 600; }
.nav-link.selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(119, 179, 212, 0.75);
}
.nav-link-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.nav-link-left span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link svg { width: 15px; height: 15px; opacity: 0.82; }
.nav-count { font-size: 11px; color: var(--text-dim); background: rgba(255, 255, 255, 0.05); padding: 1px 6px; border-radius: 999px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.card + .card { margin-top: 16px; }
.card-head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.015);
}
.card-head h2, .card-head h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.card-body { padding: 16px; }

/* Hero Banner with Los Santos backdrop */
.hero {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background-color: #111923;
  padding: 24px 24px 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 28%;
  z-index: -2;
  background: url(los-santos.webp) center 48% / cover no-repeat;
  opacity: 0.42;
  filter: saturate(0.85) contrast(1.05);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(95deg, #0d1219 10%, rgba(15, 22, 32, 0.92) 44%, rgba(16, 26, 38, 0.62) 76%, rgba(11, 14, 18, 0.82) 100%),
    linear-gradient(0deg, rgba(11, 14, 18, 0.86) 0%, transparent 55%);
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(119, 179, 212, 0.14);
  border: 1px solid var(--border-accent);
  color: var(--accent-bright);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
.hero h1 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 6px; }
.hero p { color: #bcc8d6; max-width: 580px; font-size: 13.5px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.hero-stat {
  background: rgba(11, 14, 18, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
}
.hero-stat small { display: block; font-size: 11px; color: var(--text-dim); }
.hero-stat strong { display: block; font-size: 18px; margin-top: 2px; color: var(--text); }

/* IPS Categories & Boards */
.cat-card { margin-bottom: 16px; }
.cat-toggle {
  width: 100%;
  background: rgba(255, 255, 255, 0.018);
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: background .14s;
}
.cat-toggle:hover { background: rgba(255, 255, 255, 0.032); }
.cat-title strong { display: block; font-size: 14.5px; color: var(--text); }
.cat-title small { display: block; font-size: 12px; color: var(--text-dim); margin-top: 1px; }
.board-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 96px 220px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .13s;
}
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: var(--surface-2); }
.board-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.board-icon.private { color: var(--gold); border-color: rgba(229, 192, 123, 0.3); }
.board-info-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.board-info-head a { color: var(--text); font-weight: 600; font-size: 14.5px; }
.board-info-head a:hover { color: var(--accent-bright); }
.board-desc { margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.board-stat { text-align: right; }
.board-stat strong { display: block; font-size: 14px; color: var(--text); }
.board-stat small { display: block; font-size: 11.5px; color: var(--text-dim); }
.board-last { display: flex; align-items: center; gap: 10px; min-width: 0; }
.board-last-info { min-width: 0; }
.board-last-title {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-last-meta { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Avatars, Roles, Prefixes, Tags */
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface-3);
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  position: relative;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11.5px; }
.avatar.lg { width: 64px; height: 64px; font-size: 23px; border-width: 2px; }
.avatar.xl { width: 78px; height: 78px; font-size: 28px; border-width: 2.5px; }
.avatar-xs {
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3);
  border: 1px solid var(--border-strong); display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.avatar.role-admin { border-color: var(--admin); color: #f7b6bc; background: rgba(224, 108, 117, 0.14); }
.avatar.role-mod { border-color: var(--mod); color: #a7ebd0; background: rgba(99, 199, 158, 0.14); }
.avatar.role-player { border-color: rgba(119, 179, 212, 0.5); color: var(--accent-bright); background: rgba(119, 179, 212, 0.11); }
.online-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid var(--surface);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}
.role-badge.role-admin { background: rgba(224, 108, 117, 0.14); border-color: rgba(224, 108, 117, 0.35); color: #f499a0; }
.role-badge.role-mod { background: rgba(99, 199, 158, 0.14); border-color: rgba(99, 199, 158, 0.35); color: #7ee0b6; }
.role-badge.role-player { background: rgba(152, 164, 179, 0.12); border-color: rgba(152, 164, 179, 0.22); color: #b7c3d1; }

.nick-admin { color: #f499a0 !important; font-weight: 600; }
.nick-mod { color: #7ee0b6 !important; font-weight: 600; }
.nick-player { color: var(--text) !important; font-weight: 500; }

.prefix {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.prefix-blue { background: rgba(110, 168, 254, 0.15); color: #91beff; border: 1px solid rgba(110, 168, 254, 0.32); }
.prefix-cyan { background: rgba(119, 179, 212, 0.16); color: #9ad1ee; border: 1px solid rgba(119, 179, 212, 0.36); }
.prefix-emerald { background: rgba(99, 199, 158, 0.15); color: #7ee0b6; border: 1px solid rgba(99, 199, 158, 0.34); }
.prefix-amber { background: rgba(229, 192, 123, 0.15); color: #f2d291; border: 1px solid rgba(229, 192, 123, 0.34); }
.prefix-rose { background: rgba(224, 108, 117, 0.15); color: #f5979f; border: 1px solid rgba(224, 108, 117, 0.34); }
.prefix-violet { background: rgba(182, 149, 248, 0.15); color: #cbb2fc; border: 1px solid rgba(182, 149, 248, 0.34); }
.prefix-teal { background: rgba(45, 212, 191, 0.14); color: #7be8d8; border: 1px solid rgba(45, 212, 191, 0.32); }
.prefix-indigo { background: rgba(129, 140, 248, 0.15); color: #a5b4fc; border: 1px solid rgba(129, 140, 248, 0.34); }
.prefix-slate { background: rgba(148, 163, 184, 0.13); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.26); }

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.tag-chip:hover { border-color: var(--border-accent); color: var(--accent-bright); }

/* Breadcrumbs & View Headings */
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); margin-bottom: 12px; flex-wrap: wrap; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }
.view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.view-head h1 { font-size: 21px; letter-spacing: -0.02em; }
.view-head p { margin-top: 4px; color: var(--text-muted); font-size: 13px; }

/* Board Filters & Topic List */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.015);
}
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}
.pill-btn:hover { color: var(--text); border-color: var(--border-strong); }
.pill-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-bright); font-weight: 600; }
.select-sm {
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12.5px;
  color: var(--text);
  outline: none;
}

.topic-group-label {
  padding: 7px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.topic-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 98px 186px;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .13s;
}
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: var(--surface-2); }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.read-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.11); }
.topic-title-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.topic-link { color: var(--text); font-weight: 600; font-size: 14.5px; }
.topic-link:hover { color: var(--accent-bright); }
.topic-meta { margin-top: 4px; font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini-flag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-muted);
}
.mini-flag.solved { background: rgba(99, 199, 158, 0.15); color: #7ee0b6; }
.mini-flag.pinned { background: var(--accent-soft); color: var(--accent-bright); }
.mini-flag.locked { background: rgba(224, 108, 117, 0.14); color: #f499a0; }

/* IPS Topic View & 2-Column Postbit */
.topic-header-card { padding: 18px 20px; margin-bottom: 16px; }
.topic-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.topic-header-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.topic-header-title h1 { font-size: 21px; letter-spacing: -0.02em; }
.topic-header-sub { margin-top: 8px; display: flex; align-items: center; gap: 11px; font-size: 12.5px; color: var(--text-muted); flex-wrap: wrap; }
.topic-header-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.solved-banner {
  background: linear-gradient(90deg, rgba(99, 199, 158, 0.14), rgba(99, 199, 158, 0.04));
  border: 1px solid rgba(99, 199, 158, 0.36);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
}
.solved-banner-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: #7ee0b6; font-weight: 600; font-size: 13px; }
.solved-banner-snippet { font-size: 13px; color: var(--text-muted); }

.post-card {
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.post-card.is-solved { border-color: rgba(99, 199, 158, 0.45); box-shadow: 0 0 0 1px rgba(99, 199, 158, 0.15); }
.post-author-pane {
  background: rgba(255, 255, 255, 0.015);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.post-author-name { font-size: 14.5px; font-weight: 600; }
.post-author-ic {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 11.5px;
  text-align: left;
  margin-top: 4px;
}
.post-author-ic div { display: flex; justify-content: space-between; gap: 6px; padding: 2px 0; }
.post-author-ic span { color: var(--text-dim); }
.post-author-ic strong { color: var(--text); font-weight: 500; text-align: right; }
.author-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 2px; }
.author-badge-pill {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(119, 179, 212, 0.1);
  border: 1px solid rgba(119, 179, 212, 0.24);
  color: var(--accent-bright);
}

.post-main { display: flex; flex-direction: column; min-width: 0; }
.post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.01);
}
.post-meta-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-pill { background: var(--accent-soft); color: var(--accent-bright); padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.sol-pill { background: rgba(99, 199, 158, 0.16); color: #7ee0b6; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }

/* Post Content & BBCode/Markdown */
.post-content { padding: 18px 20px; font-size: 14px; line-height: 1.66; word-wrap: break-word; flex: 1; }
.post-content p { margin: 0 0 11px; }
.post-content p:last-child { margin-bottom: 0; }
.bb-h2 { font-size: 17px; margin: 14px 0 8px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.bb-h3 { font-size: 15px; margin: 12px 0 6px; color: var(--accent-bright); }
.bb-u { text-decoration: underline; }
.bb-center { text-align: center; }
.bb-right { text-align: right; }
.bb-size-sm { font-size: 12px; }
.bb-size-lg { font-size: 17px; }
.bb-hr { border: 0; border-top: 1px solid var(--border-strong); margin: 14px 0; }
.bb-list { margin: 8px 0 12px; padding-left: 22px; }
.bb-list li { margin: 4px 0; }
.bb-quote {
  margin: 10px 0 12px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--input-bg);
  overflow: hidden;
}
.bb-quote-head { padding: 6px 12px; font-size: 12px; color: var(--text-muted); background: rgba(255, 255, 255, 0.025); border-bottom: 1px solid var(--border); }
.bb-quote-body { padding: 10px 12px; font-size: 13.5px; color: #cfd8e3; }
.bb-spoiler { margin: 10px 0; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--input-bg); overflow: hidden; }
.bb-spoiler summary { padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--accent-bright); user-select: none; }
.bb-spoiler-body { padding: 10px 12px; border-top: 1px solid var(--border); }
.bb-callout {
  margin: 10px 0 12px;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-accent);
  background: rgba(119, 179, 212, 0.08);
}
.bb-callout-warn { border-color: rgba(229, 192, 123, 0.42); background: rgba(229, 192, 123, 0.08); }
.bb-callout-tip { border-color: rgba(99, 199, 158, 0.42); background: rgba(99, 199, 158, 0.08); }
.bb-callout-danger { border-color: rgba(224, 108, 117, 0.42); background: rgba(224, 108, 117, 0.08); }
.bb-callout-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; margin-bottom: 4px; color: var(--accent-bright); }
.bb-callout-warn .bb-callout-title { color: var(--gold); }
.bb-callout-tip .bb-callout-title { color: var(--mod); }
.bb-callout-danger .bb-callout-title { color: var(--admin); }
.bb-code-wrap { margin: 10px 0 12px; border: 1px solid var(--border-strong); border-radius: 9px; background: #090c11; overflow: hidden; }
.bb-code-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--text-dim); font-family: var(--mono); }
.bb-copy-btn { background: transparent; border: 1px solid var(--border-strong); border-radius: 5px; padding: 2px 8px; font-size: 11px; color: var(--text-muted); }
.bb-copy-btn:hover { color: var(--text); border-color: var(--accent); }
.bb-code { margin: 0; padding: 12px 14px; overflow-x: auto; font: 12.5px/1.55 var(--mono); color: #cde2f5; }
.bb-inline-code { font-family: var(--mono); font-size: 12.5px; background: rgba(119, 179, 212, 0.13); color: #b7dcf2; padding: 1px 5px; border-radius: 5px; }
.mention { background: var(--accent-soft); color: var(--accent-bright); padding: 1px 5px; border-radius: 5px; font-weight: 600; }
.bb-figure { margin: 12px 0; }
.bb-figure img { max-width: 100%; max-height: 380px; border-radius: 9px; border: 1px solid var(--border-strong); cursor: zoom-in; }

.post-attachments { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 20px 14px; }
.post-att-thumb {
  width: 136px; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: var(--input-bg); cursor: zoom-in;
}
.post-att-thumb img { width: 100%; height: 84px; object-fit: cover; }
.post-att-thumb span { display: block; font-size: 11px; padding: 4px 6px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.post-edited { padding: 0 20px 10px; font-size: 11.5px; color: var(--text-dim); font-style: italic; }
.post-signature { margin: 0 20px 14px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-dim); }

/* Post Footer & Reactions */
.post-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.012);
}
.post-actions-left, .post-actions-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.reaction-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.react-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-size: 12.5px;
  transition: .14s;
}
.react-chip:hover:not(:disabled) { border-color: var(--border-accent); transform: translateY(-1px); }
.react-chip.mine { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-bright); font-weight: 600; }
.react-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--surface-3);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 45;
}
.react-pick-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  font-size: 17px;
  display: grid;
  place-items: center;
  transition: transform .13s;
}
.react-pick-btn:hover { transform: scale(1.26); background: rgba(255, 255, 255, 0.09); }
.rep-total {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(99, 199, 158, 0.12);
  color: #7ee0b6;
  border: 1px solid rgba(99, 199, 158, 0.28);
}

/* Poll */
.poll-card { padding: 16px 20px; margin-bottom: 16px; }
.poll-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.poll-head h3 { font-size: 15px; }
.poll-opt {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  margin-bottom: 8px;
  cursor: pointer;
  transition: .14s;
}
.poll-opt:hover { border-color: var(--border-accent); }
.poll-opt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.poll-bar-track { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); margin-top: 8px; overflow: hidden; }
.poll-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5c97ba, #96cce9); transition: width .3s ease; }

/* Rich Editor (IPS style) */
.rich-editor {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--input-bg);
  position: relative;
}
.rich-editor.drag-over { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(119, 179, 212, 0.25); }
.rich-editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(119, 179, 212, 0.1); }
.re-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
}
.re-group { display: flex; align-items: center; gap: 2px; }
.re-sep { width: 1px; height: 20px; background: var(--border-strong); margin: 0 4px; }
.re-btn {
  min-width: 29px;
  height: 29px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.re-btn:hover { background: var(--surface-3); color: var(--text); border-color: var(--border); }
.color-indicator { border-bottom: 2px solid var(--accent); line-height: 1.1; font-weight: 700; }
.re-mode-tabs { margin-left: auto; display: flex; background: var(--input-bg); padding: 2px; border-radius: 7px; border: 1px solid var(--border); }
.re-tab { padding: 3px 10px; border: 0; background: transparent; color: var(--text-muted); border-radius: 5px; font-size: 12px; }
.re-tab.active { background: var(--accent-soft); color: var(--accent-bright); font-weight: 600; }
.re-pop-wrap { position: relative; }
.re-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
}
.re-color-pop { display: flex; gap: 6px; }
.color-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.22); }
.re-emoji-pop { width: 290px; max-height: 240px; overflow-y: auto; }
.emoji-group { margin-bottom: 8px; }
.emoji-group:last-child { margin-bottom: 0; }
.emoji-group-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 4px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-btn { border: 0; background: transparent; font-size: 17px; padding: 4px; border-radius: 6px; }
.emoji-btn:hover { background: var(--surface-3); }
.re-mention-pop { width: 205px; max-height: 220px; overflow-y: auto; }
.mention-pick-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  text-align: left;
  font-size: 12.5px;
}
.mention-pick-item:hover { background: var(--surface-3); }
.popover-empty { padding: 8px; font-size: 12px; color: var(--text-dim); }
.re-textarea {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 13px 14px;
  resize: vertical;
  outline: none;
  min-height: 135px;
  line-height: 1.62;
  display: block;
}
.re-preview { min-height: 135px; max-height: 360px; overflow-y: auto; padding: 14px; }
.re-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.re-att-card {
  width: 145px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.re-att-card img { width: 100%; height: 74px; object-fit: cover; }
.re-att-meta { padding: 5px 7px; font-size: 11px; }
.re-att-meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted); margin-bottom: 4px; }
.re-att-actions { display: flex; justify-content: space-between; gap: 4px; }
.re-att-btn { border: 1px solid var(--border); background: var(--surface-2); border-radius: 5px; padding: 2px 7px; font-size: 11px; }
.re-att-btn.danger { color: var(--admin); }
.re-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 0 0 10px 10px;
}
.re-draft-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.re-clear-draft { background: transparent; border: 0; color: var(--accent); font-size: 11.5px; padding: 0; text-decoration: underline; }

/* Right Sidebar Widgets */
.right { display: flex; flex-direction: column; gap: 16px; }
.widget-body { padding: 14px 16px; }
.mini-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mini-stat-box { background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.mini-stat-box small { display: block; font-size: 10.5px; color: var(--text-dim); }
.mini-stat-box strong { font-size: 15px; color: var(--text); }
.exp-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-top: 8px; }
.exp-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #5b96b9, #96cce9); border-radius: 999px; }

.side-list-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.side-list-item:first-child { padding-top: 0; }
.side-list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.side-list-item a { font-size: 13px; font-weight: 500; color: var(--text); display: block; line-height: 1.35; }
.side-list-item a:hover { color: var(--accent-bright); }
.side-list-item small { font-size: 11.5px; color: var(--text-dim); }

.online-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.online-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  font-size: 12px;
}
.online-chip i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-dim); }
.area-chart-svg { width: 100%; height: 104px; display: block; }

/* Profile & Leaderboard & Pagination */
.profile-banner {
  min-height: 136px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.leader-row {
  display: grid;
  grid-template-columns: 34px 40px minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.leader-row:last-child { border-bottom: 0; }
.rank-num { font-weight: 700; color: var(--accent); text-align: center; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }

/* Modals, Lightbox, Multi-quote & Toast */
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 0;
  width: min(780px, 94vw);
  max-height: 90vh;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}
dialog::backdrop { background: rgba(5, 8, 12, 0.78); backdrop-filter: blur(5px); }
.lightbox { width: auto; max-width: 92vw; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.modal-head {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 5;
}
.modal-head h2 { font-size: 16.5px; }
.modal-body { padding: 18px 20px; overflow-y: auto; max-height: calc(90vh - 122px); }
.modal-foot {
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: rgba(255, 255, 255, 0.015);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.field input[type="text"], .field input[type="password"], .field select, .field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 11px;
  outline: none;
  font-size: 13.5px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.form-error { color: #f499a0; font-size: 12.5px; margin: 6px 0 0; }
.form-error:empty { display: none; }

.multiquote-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 95;
  background: var(--surface-3);
  border: 1px solid var(--border-accent);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
#toast.show { opacity: 1; }

.site-footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-dim);
}
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand img { border-radius: 6px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.72);
  z-index: 65;
}

/* Responsive */
@media (max-width: 1160px) {
  .layout { grid-template-columns: 208px minmax(0, 1fr); }
  .right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mobile-menu-btn { display: inline-flex; }
  .top-links, .global-search { display: none; }
  .layout, .layout.wide-main { grid-template-columns: 1fr; }
  .left {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 270px;
    border-radius: 0;
    z-index: 80;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  .left.open { transform: translateX(0); }
  .right { grid-template-columns: 1fr; }
  .board-row { grid-template-columns: 40px minmax(0, 1fr); }
  .board-stat, .board-last { grid-column: 2; text-align: left; }
  .topic-row { grid-template-columns: 14px minmax(0, 1fr); }
  .post-card { grid-template-columns: 1fr; }
  .post-author-pane { border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; text-align: left; flex-wrap: wrap; }
  .post-author-ic { max-width: 240px; }
  .hero-stats, .profile-grid, .form-grid { grid-template-columns: 1fr 1fr; }
}

/* PureMTA responsive theme */
:root{
  --bg:#0f1318; --surface:#161c23; --surface-2:#1b232b; --surface-3:#25313b;
  --input-bg:#10161c; --border:#2c3741; --border-strong:#3b4955;
  --accent:#9ec7da; --accent-bright:#cee8f2; --accent-soft:#243640;
  --text:#edf2f6; --text-muted:#b3c1cc; --text-dim:#92a3b2;
  --radius:9px; --radius-sm:6px; --frame:1480px; --gutter:28px;
  --rail:196px; --side:258px; --layout-gap:24px; --row-pad:14px; --read-font:16px; --body-font:15px;
}
html{scroll-padding-top:100px}
html,body{font-size:var(--body-font)}
body{min-width:0;background:linear-gradient(180deg,#151c23,#10151a 400px)}
a{transition:color 150ms ease}
.btn{font-size:inherit;min-height:36px;transition:background-color 150ms,border-color 150ms,color 150ms}
.btn.sm{font-size:.88em}.btn.icon{min-width:36px;padding:6px}
.btn.primary{background:#aecedd;border-color:#aecedd;color:#16242d;background-image:none}
.btn.primary:hover{background:#c4e0eb;color:#16242d;filter:none}
.top{background:#161d24;backdrop-filter:none}
.top-inner,.shell,.demo-bar-inner{max-width:var(--frame)}
.top-inner,.shell{padding-inline:var(--gutter)}
.top-inner{height:68px;gap:clamp(14px,2vw,29px)}
.top-left,.top-right{min-width:0}
.top-left{gap:clamp(13px,2vw,27px)}
.brand{gap:9px}.brand img{width:34px;height:34px;border:0;border-radius:5px}
.brand-text strong{font-size:1.22em;letter-spacing:-.035em}
.top-links{gap:2px;white-space:nowrap}
.top-links a,.top-more>summary{padding:7px 10px;border-radius:5px;font-size:.93em;color:var(--text-muted);font-weight:520}
.top-links a.active{background:transparent;color:var(--accent-bright)}
.top-links a.active::after{bottom:-15px;height:1px}
.top-more,.post-details{position:relative}
.top-more>summary,.post-details>summary{cursor:pointer;list-style:none}
.top-more summary::-webkit-details-marker,.post-details summary::-webkit-details-marker{display:none}
.top-more>summary:after,.nav-group>summary:after,.cat-chevron{content:"";display:inline-block;width:6px;height:6px;border-bottom:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg);margin-left:8px;vertical-align:3px}
.top-more>div,.post-details>div,.post-tools>div{position:absolute;z-index:7;min-width:158px;top:calc(100% + 7px);background:#1a242c;border:1px solid var(--border-strong);border-radius:7px;box-shadow:0 8px 22px #0006;padding:4px}
.top-more>div{left:0;display:grid}.top-more>div a{padding:8px 10px}
.global-search{width:clamp(135px,13vw,260px)}
.global-search input{font-size:.9em;border-radius:6px;padding-block:8px}
.search-dropdown{width:min(380px,calc(100vw - 28px))}
.search-toggle.btn{display:none}
.header-profile{max-width:145px;overflow:hidden;padding-inline:5px 9px}
.header-profile>span:last-child{overflow:hidden;text-overflow:ellipsis}
.demo-bar{position:static;background:#1b242d;border-bottom-color:var(--border);padding:6px var(--gutter)}
body.has-demo-bar .top{top:0}
.demo-dot{box-shadow:none}
.layout{grid-template-columns:var(--rail) minmax(0,1fr) var(--side);gap:var(--layout-gap);margin:0}
.layout.wide-main{grid-template-columns:var(--rail) minmax(0,1fr)}
.layout.is-topic{grid-template-columns:minmax(0,1fr)}
.layout.is-topic>.left{display:none}
.layout.is-topic main{width:100%;max-width:var(--reading,1000px);margin:auto}
main,.right,.left{min-width:0}
.left{background:none;border:0;padding:8px 1px}
.nav-label{font-size:.73em;color:var(--text-dim);letter-spacing:.075em}
.nav-section,.nav-section+.nav-section{margin-bottom:11px;padding-bottom:7px}
.nav-link{font-size:.91em;min-height:37px;border-radius:6px;padding:6px 8px}
.nav-link.selected{border-color:#425461;background:#263640;color:#d5edf5}
.nav-group>summary{cursor:pointer;padding-block:6px;list-style:none;display:flex;align-items:center;justify-content:space-between}
.nav-group>summary::-webkit-details-marker{display:none}
.nav-group[open]>summary:after{transform:rotate(225deg)}
.card,.hero,.post-card{box-shadow:none}
.hero{min-height:152px;isolation:isolate;border-radius:var(--radius);padding:24px;display:grid;align-content:end;overflow:hidden;background:#202c37}
.hero::before{inset:0 0 0 22%;background: url(los-santos.webp) center 49%/cover no-repeat;opacity:.72;filter:saturate(.72)}
.hero::after{background:linear-gradient(90deg,#19242f 10%,#1a2633df 43%,#1a263321 100%);opacity:1}
.hero-top{align-items:end;gap:12px}
.hero h1{font-size:clamp(1.75rem,2.75vw,2.75rem);margin-bottom:3px;line-height:1.08;letter-spacing:-.055em}
.hero p{font-size:1em;color:#c2d0da}
.hero a.btn{background:#23303b;border-color:#536570}
.cat-card{margin-top:15px}.cat-toggle{padding:11px var(--row-pad);background:#1b232c}
.cat-title strong{font-size:1.06em;letter-spacing:-.012em}.cat-chevron{color:var(--text-muted);transform:rotate(225deg);margin:4px}
.cat-toggle[aria-expanded="false"] .cat-chevron{transform:rotate(45deg)}
.board-row{padding:var(--row-pad);grid-template-columns:34px minmax(0,1.7fr) minmax(58px,auto) minmax(0,1.05fr);gap:12px}
.board-icon,.board-icon.private{border-radius:6px;background:#202b34;border-color:#3a4a57;color:var(--accent);width:34px;height:34px}
.board-info-head a,.topic-link{font-size:1em;color:var(--text);font-weight:600}
.board-desc{font-size:.86em;overflow-wrap:anywhere}.board-stat strong{font-size:.91em}.board-stat small,.board-last-meta{font-size:.79em}
.board-last-title{font-size:.86em}.board-last-info{min-width:0;max-width:100%}
.sidebar-updates .widget-body{padding-block:4px}.sidebar-link{padding:9px 14px;border-top:1px solid var(--border);font-size:.88em}
.sidebar-server .btn{margin-top:12px}.side-list-item>div{min-width:0;overflow-wrap:anywhere}
.topic-row{gap:12px;padding:var(--row-pad);grid-template-columns:11px minmax(0,1fr) 76px minmax(100px,.35fr)}
.topic-row .topic-title-line{row-gap:5px}.topic-link{overflow-wrap:anywhere}.topic-meta{font-size:.85em}.mini-flag,.prefix{box-shadow:none}
.topic-header-card{background:none;border:0}.topic-header-top{padding:0 0 10px}
.topic-header-title h1,.view-head h1{font-size:clamp(1.55rem,2.2vw,2.35rem);overflow-wrap:anywhere;line-height:1.2}
.topic-header-title{gap:7px}
.topic-header-sub{font-size:.86em;gap:6px;flex-wrap:wrap}
.topic-save[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-bright)}
.post-card{display:block;margin:12px 0;background:#171f27;overflow:visible}
.post-meta-bar{border-bottom:0;background:none;padding:16px 20px 3px}
.post-meta-left{flex-wrap:nowrap}.post-byline{min-width:0}.post-author-name{display:flex;align-items:center;white-space:normal;flex-wrap:wrap;gap:7px;font-size:1em;overflow-wrap:anywhere}
.post-date{font-size:.83em;color:var(--text-dim)}.post-meta-side{display:flex;gap:8px;align-items:center;color:var(--text-dim)}
.post-details>summary{padding:4px;display:grid;place-items:center}.post-details>summary svg{stroke-width:3}
.post-details>div{right:0;padding:9px 12px;min-width:168px;font-size:.9em}
.post-details>div p{padding-block:3px}
.post-content{font-size:var(--read-font);line-height:1.65;padding:15px 20px;overflow-wrap:anywhere;word-break:normal}
.post-footer{padding:8px 20px;background:#151d24;border-radius:0 0 var(--radius) var(--radius)}
.post-actions-left,.post-actions-right{min-width:0}.post-actions-right{margin-left:auto}
.reaction-wrap{max-width:100%;justify-content:flex-end}
.reaction-wrap[aria-busy="true"]{pointer-events:none;opacity:.7}
.react-chip{border-color:#3d4d5b;background:#1b2630}
.react-chip:disabled{opacity:1;cursor:default}
.react-picker{gap:3px;right:0;max-width:calc(100vw - 36px)}
.react-pick-btn{min-width:27px}
.post-tools{position:relative}.post-tools>summary{display:flex;cursor:pointer;list-style:none}.post-tools>div{left:0;top:auto;bottom:calc(100% + 7px);display:grid}.post-tools>div .btn{justify-content:flex-start}
.hub-tabs,.hub-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.hub-tabs{margin-bottom:12px}.hub-selected{color:var(--accent-bright)!important;border-color:var(--border-strong)!important}
.hub-person,.hub-event,.hub-club,.club-post{padding:14px 16px;border-bottom:1px solid var(--border);overflow-wrap:anywhere}
.hub-person:last-child,.hub-event:last-child,.hub-club:last-child,.club-post:last-child{border:0}
.hub-person,.hub-club,.club-post header,.hub-event{display:flex;align-items:center;gap:12px}
.hub-person>div:not(.hub-controls),.hub-event-body,.hub-club>div{flex:1;min-width:0}
.hub-person small{display:block}.hub-person small,.hub-event small,.hub-club small,.club-post time{color:var(--text-muted)}
.hub-event h2,.hub-club h2,.hub-block h2{font-size:1.05em}
.hub-event time{color:var(--accent);font-variant-numeric:tabular-nums;font-size:.9em;min-width:130px}
.hub-event p,.hub-club p,.club-post p,.hub-description{white-space:pre-wrap}
.hub-club-meta,.hub-block{margin:8px 0 13px}.hub-member-list{display:flex;gap:9px 14px;flex-wrap:wrap;padding-top:8px}
.club-post header{justify-content:space-between;margin-bottom:7px}.club-post>button{margin-top:8px}
.hub-form,.hub-form label,.directory-search{display:grid;gap:7px}.hub-form{gap:12px}.hub-form .btn{justify-self:start}
.hub-form input:not([type="hidden"]),.hub-form select,.hub-form textarea,.directory-search input{background:var(--input-bg);border:1px solid var(--border-strong);width:100%;min-width:0;color:var(--text);padding:8px 10px;border-radius:6px}
.hub-form textarea{min-height:106px;resize:vertical}.directory-search{max-width:480px;margin:0 0 16px}.directory-search>div{display:flex;gap:8px}
@keyframes forum-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes focus-in{from{opacity:0;transform:translateY(4px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
main>.hero,main>.view-head,.topic-header-card{animation:forum-enter 205ms ease-out both}
dialog[open],.react-picker:not([hidden]),.search-dropdown:not([hidden]),.top-more[open]>div{animation:focus-in 150ms ease-out both}
@media(min-width:2100px){
  :root{--frame:1800px;--gutter:40px;--rail:221px;--side:294px;--layout-gap:30px;--row-pad:17px;--body-font:16px;--read-font:18px;--reading:1120px}
  .hero{min-height:178px}.top-inner{height:73px}
}
@media(min-width:3200px){
  :root{--frame:2260px;--gutter:48px;--rail:265px;--side:335px;--layout-gap:36px;--row-pad:20px;--body-font:18px;--read-font:20px;--reading:1300px}
  .hero{min-height:217px;padding:31px}.top-inner{height:84px}
  .brand img{width:42px;height:42px}.top-links a,.top-more>summary{padding-inline:13px}.global-search{width:310px}.nav-link{min-height:44px}
}
@media(max-width:1170px){
  :root{--gutter:20px;--rail:178px;--layout-gap:16px}
  .layout{grid-template-columns:var(--rail) minmax(0,1fr)}
  .right{grid-column:2;grid-template-columns:repeat(2,minmax(0,1fr))}
  .top-links [data-tab="rules"]{display:none}
  .header-compose>span,.header-profile>span:last-child{display:none}
}
@media(max-width:880px){
  :root{--gutter:16px;--row-pad:12px}
  .layout,.layout.wide-main{grid-template-columns:minmax(0,1fr)}
  .right{grid-column:auto}
  .layout.is-topic>.left,.left{display:block;position:fixed;inset:0 auto 0 0;width:min(300px,86vw);background:#182129;z-index:82;padding:13px 12px;overflow:auto;transform:translateX(-105%);visibility:hidden;transition:transform 180ms ease,visibility 180ms}
  .layout.is-topic>.left.open,.left.open{transform:translateX(0);visibility:visible}
  .top-links{display:none}.mobile-menu-btn{display:inline-flex}
  .global-search{display:block}
  .post-card{grid-template-columns:none}
}
@media(max-width:760px){
  :root{--gutter:12px;--layout-gap:12px;--body-font:15px;--read-font:16px}
  .top-inner{height:58px;gap:8px}.top-left,.top-right,.top-actions{gap:4px}
  .brand img{width:26px;height:26px}.brand{gap:5px}.brand-text strong{font-size:1em}
  .header-compose{display:none}.top-actions .btn{padding-inline:7px}
  .top-actions .btn.icon,.mobile-menu-btn,.search-toggle.btn{min-width:32px;min-height:37px}
  .search-toggle.btn{display:inline-flex}
  .global-search{display:none;position:absolute;top:100%;left:0;right:0;width:auto;padding:8px 12px;background:#161f26;border-bottom:1px solid var(--border)}
  .global-search.search-open{display:block}.global-search .search-ico{left:21px}.global-search .search-kbd{right:21px}.search-dropdown{right:12px}
  .shell{padding-top:13px}.hero{min-height:126px;padding:16px}.hero p{font-size:.89em}.hero::before{left:14%}
  .board-row{grid-template-columns:34px minmax(0,1fr) auto;gap:8px}.board-last{grid-column:2/-1;font-size:.9em}.board-last:has(>.dim){display:none}.board-stat{grid-column:auto;text-align:right}.board-stat small{display:none}
  .topic-row{grid-template-columns:8px minmax(0,1fr) 46px;gap:8px}.topic-row .board-last{display:none}
  .right{grid-template-columns:1fr}
  .post-meta-bar{padding:12px 13px 1px}.post-content{padding:13px;line-height:1.58}.post-footer{padding:7px 12px;gap:8px}
  .topic-header-top{gap:8px}.post-attachments,.post-edited{padding-inline:13px}.post-signature{margin-inline:13px}
  .hub-event{display:grid;grid-template-columns:minmax(0,1fr)}
  .hub-controls{gap:4px}.hub-controls .btn{min-height:39px}
  .profile-grid,.form-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:380px){
  .brand-text{display:none}.hero h1{font-size:1.65rem}
  .demo-bar-inner{gap:5px}.demo-pill{font-size:11px;padding-inline:6px}
  .header-profile{display:none}.topic-row{grid-template-columns:7px minmax(0,1fr)}
  .topic-row>.board-stat{display:none}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
.nav-link.selected::before{box-shadow:none;width:2px}
.left{box-shadow:none}
@media(max-width:880px){body.has-demo-bar .left{top:0}}
@media(max-width:760px){.top-actions .btn,.topic-header-actions .btn,.post-tools>summary{touch-action:manipulation}.topic-title-line .mini-flag{font-size:.73em}}.nav-profile-mobile{display:none}@media(max-width:380px){.nav-profile-mobile{display:flex}}
.topic-header-card{overflow:visible}
.topic-tools>div{inset:calc(100% + 7px) 0 auto auto}
.topic-tools svg{stroke-width:3}
.activity-metrics{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);margin-bottom:13px;padding:10px 13px}
.activity-metrics summary{cursor:pointer;color:var(--text-muted)}
.activity-chart-frame{max-width:480px;margin-top:10px}
.activity-chart-frame>svg{display:block;width:100%;height:auto}

/* Launch artwork, board icons and profile images */
.top .brand img{width:94px;height:46px;max-width:none;object-fit:contain;background:none;border:0;border-radius:0}
@media(min-width:2100px){.top .brand img{width:108px;height:54px}}
@media(min-width:3200px){.top .brand img{width:123px;height:61px}}
.top .mobile-menu-btn.btn{display:none}
.launch-banner{
  position:relative;min-height:clamp(230px,21vw,475px);overflow:hidden;isolation:isolate;
  display:flex;align-items:center;margin-bottom:clamp(19px,2vw,31px);
  border:1px solid #4a545d;border-radius:11px;background:#1b242b;
}
.launch-banner::before,.launch-banner::after{position:absolute;inset:0;content:"";pointer-events:none}
.launch-banner::before{z-index:-3;background:url(turismo.webp) 50% 64%/cover no-repeat;filter:saturate(.76);animation:launch-image 540ms cubic-bezier(.22,.61,.36,1) both}
.launch-banner::after{
  z-index:-2;background:linear-gradient(90deg,#111a22 0%,#15212ae8 18%,#17242e7a 39%,transparent 59%,#0d172257 100%),
  linear-gradient(0deg,#0c151c76,transparent 48%);
}
.launch-copy{z-index:1;padding:clamp(22px,3.7vw,65px);padding-block:28px;animation:launch-copy 420ms cubic-bezier(.22,.61,.36,1) both}
.launch-copy img{width:clamp(112px,13vw,220px);height:auto;margin:0 0 clamp(12px,2vw,24px)}
.launch-copy p{font-size:clamp(.91rem,1.2vw,1.3rem);color:#ccdfeb;margin:0 0 3px;font-weight:520}
.launch-copy strong{font-size:clamp(1.94rem,4vw,4.35rem);line-height:1;letter-spacing:-.065em;color:#f5fbff;text-shadow:0 3px 18px #071015;font-weight:680}
@keyframes launch-image{from{opacity:.72;transform:scale(1.024)}to{opacity:1;transform:scale(1)}}
@keyframes launch-copy{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.forum-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0 0 13px}
.forum-heading h1{font-size:clamp(1.55rem,2.2vw,2.2rem);letter-spacing:-.045em}
.board-row{transition:background-color 170ms ease}
.board-icon[class*="board-tone"]{
  width:38px;height:38px;position:relative;isolation:isolate;overflow:hidden;border-radius:9px;
  color:var(--board-tint,#a5d9ef);border:1px solid color-mix(in srgb,var(--board-tint,#a5d9ef) 36%,#25323a);
  background:linear-gradient(145deg,color-mix(in srgb,var(--board-tint,#a5d9ef) 22%,#26313a),#1b242c 88%);
  transition:transform 185ms cubic-bezier(.25,.65,.3,1.3),border-color 165ms,background-color 165ms;
}
.board-icon[class*="board-tone"] svg{width:19px;height:19px;stroke-width:1.85}
.board-row:is(:hover,:focus-within) .board-icon{transform:translateY(-2px) rotate(-4deg);border-color:var(--board-tint)}
.board-row{grid-template-columns:38px minmax(0,1.7fr) minmax(58px,auto) minmax(0,1.05fr)}
.board-tone-ogloszenia{--board-tint:#f7a46f}
.board-tone-regulamin{--board-tint:#93abfa}
.board-tone-aktualizacje{--board-tint:#62cbea}
.board-tone-dyskusje{--board-tint:#78d4bb}
.board-tone-frakcje{--board-tint:#93c3fa}
.board-tone-organizacje{--board-tint:#c6a7fa}
.board-tone-gielda{--board-tint:#f4ca78}
.board-tone-pomoc{--board-tint:#68c8e0}
.board-tone-propozycje{--board-tint:#d8c68a}
.board-tone-bledy{--board-tint:#87c994}
.board-tone-skargi{--board-tint:#eda0ad}
.board-tone-podania{--board-tint:#91b5f5}
.board-tone-odwolania{--board-tint:#c9a8e3}
.avatar:has(>.avatar-photo){background:#283641}
.avatar-photo{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.profile-banner.has-cover{position:relative;isolation:isolate;min-height:clamp(160px,25vw,350px);align-items:end}
.profile-cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.profile-banner.has-cover::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#10171be8,transparent 74%);pointer-events:none}
.profile-media-editor{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:15px}
.profile-media-field{min-width:0;display:grid;align-content:start;gap:7px}
.profile-media-field h3{font-size:.98rem;font-weight:650}
.profile-media-field small,.media-help{color:var(--text-muted);font-size:.8rem}
.media-help{margin:5px 0 13px}
.profile-media-preview{background:linear-gradient(130deg,#293b47,#1b242d);border:1px solid #485b67;border-radius:7px;overflow:hidden;width:100%}
.profile-media-preview img{width:100%;height:100%;object-fit:cover}
.profile-media-preview.preview-avatar{aspect-ratio:1;max-width:147px}
.profile-media-preview.preview-cover{aspect-ratio:3}
.profile-media-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;position:relative}
.profile-media-actions label{cursor:pointer}
.profile-media-actions:has(.media-file:focus-visible)>label{outline:2px solid var(--accent);outline-offset:2px}
.media-file{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.crop-controls{display:grid;gap:4px}
.crop-controls label{display:grid;gap:2px;font-size:.83rem}
.crop-controls input{width:100%;margin:0;accent-color:var(--accent)}
@media(max-width:880px){.top .mobile-menu-btn.btn{display:inline-flex}}
@media(max-width:760px){
  .top .brand img{width:73px;height:36px}.launch-banner{min-height:206px;margin-bottom:15px}
  .launch-banner::before{background-position:48% 62%;opacity:.93}
  .launch-banner::after{background:linear-gradient(90deg,#101b24ee,#1726317a 46%,#0b152129),linear-gradient(0deg,#0e1a228c,transparent 58%)}
  .launch-copy{padding:18px}
  .board-row{grid-template-columns:35px minmax(0,1fr) auto}.board-icon[class*="board-tone"]{width:35px;height:35px}
}
@media(max-width:480px){
  .profile-media-editor{grid-template-columns:1fr}.profile-media-preview.preview-avatar{max-width:116px}
  .launch-copy strong{font-size:1.84rem}
}
.footer-brand .footer-logo{width:47px;height:24px;object-fit:contain;border:0;border-radius:0}.post-meta-left>.avatar,.profile-banner .avatar{flex-shrink:0}
/* Subforums, publishing tools and account settings */
.board-tone-mapy{--board-tint:#81d3c7}
.board-children{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 13px;margin-top:5px;font-size:.85em}
.board-children a{color:#b9d5e2;overflow-wrap:anywhere}
.board-children a::before{content:"";width:5px;height:5px;border-radius:50%;margin-right:6px;display:inline-block;vertical-align:2px;background:#83b8c8}
.subforums{margin-bottom:15px}.subforum{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px 14px;color:var(--text);border-bottom:1px solid var(--border);transition:background-color 160ms}
.subforum:last-child{border-bottom:0}.subforum:hover{background:#202c35;color:var(--text)}
.subforum small{display:block;color:var(--text-muted);font-size:.88em;overflow-wrap:anywhere}.subforum strong{overflow-wrap:anywhere}.subforum>.num{font-size:.83em}
.forum-notice{padding:10px 14px;background:#202e37;border:1px solid #415562;border-left:3px solid #99c5d7;border-radius:7px;white-space:pre-wrap;overflow-wrap:anywhere}
.re-group .re-btn{width:32px;height:33px;min-width:32px;padding:4px;border-radius:6px;color:#bbcad5}
.re-group .re-btn:hover,.re-group .re-btn:focus-visible{color:#e5f4fb;background:#2c3c49}
.re-group .re-btn svg{width:16px;height:16px}
.re-toolbar{gap:4px 6px}.re-sep{margin:0 3px}.re-file-btn{position:relative;cursor:pointer}
.re-file-btn input{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.re-file-btn:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.html-import{display:grid;gap:7px;padding:12px;border-top:1px solid var(--border);background:#18232b}
.html-import label{display:grid;gap:5px;font-size:.9em}
.html-import textarea,.settings-form :is(input:not([type=checkbox]),textarea,select){width:100%;min-width:0;border:1px solid var(--border-strong);border-radius:6px;background:var(--input-bg);padding:8px 10px;color:var(--text)}
.html-import button,.settings-form>.btn{justify-self:start}
.re-doc{display:grid;place-items:center;background:var(--surface-3);color:var(--accent);min-width:45px;border-radius:5px;padding:4px}
.inline-image{border:1px solid var(--border-strong);border-radius:8px;padding:0;background:#121a21;overflow:hidden;cursor:zoom-in;max-width:100%}
.inline-image img{max-height:70vh;width:auto;height:auto;object-fit:contain}
.post-att-thumb{background:var(--surface-2);text-align:left;color:var(--text);cursor:zoom-in}
.post-file{border:1px solid var(--border-strong);border-radius:7px;display:inline-flex;align-items:center;gap:9px;padding:8px 11px;min-width:0;max-width:100%;color:var(--text);background:var(--surface-2)}
.post-file span{min-width:0}.post-file strong{display:block;overflow-wrap:anywhere;font-weight:580}.post-file small{color:var(--text-muted)}
.lightbox-controls{position:absolute;right:8px;top:8px;z-index:1}
.reaction-summary{font-size:.86em;color:var(--text-muted);overflow-wrap:anywhere;margin-right:3px}
.reaction-summary a{color:#b5d7e5}
.settings-form{display:grid;gap:12px}.settings-form h2{font-size:1.12em}.settings-form label:not(.setting-line){display:grid;gap:4px}
.setting-line{display:flex;align-items:center;gap:8px;min-height:30px}.setting-line input{accent-color:var(--accent);width:16px;height:16px}
.settings-actions,.admin-overview{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap}
.admin-overview strong{font-variant-numeric:tabular-nums;margin-right:2px}.admin-section+ .admin-section{border-top:1px solid var(--border)}
.admin-section summary{padding:12px 15px;cursor:pointer;color:var(--accent)}
.admin-section-form{padding-top:0;max-width:580px}
@media(max-width:760px){
  .re-group .re-btn{min-width:31px;width:31px;height:35px}.re-sep{margin:0}
  .board-children{gap:4px 9px}.subforum{grid-template-columns:35px minmax(0,1fr) auto}
  .reaction-summary{font-size:.79em}.settings-actions .btn{min-height:40px}
}

.post-permalink{color:var(--text-muted);white-space:nowrap}.post-highlight{border-color:#83afc2;animation:post-highlight 750ms ease-out}
@keyframes post-highlight{from{background:#263d4a}to{background:#171f27}}

/* Community connections and video attachments */
.join-card{position:relative;overflow:hidden;border-radius:10px}
.join-brands,.discord-symbol{display:flex;align-items:center;gap:9px;padding:12px 13px;border-bottom:1px solid #53687955}
.join-brands{justify-content:space-between;background:linear-gradient(112deg,#202c38,#172229 86%)}
.mta-badge{display:inline-flex;align-items:center;gap:6px;line-height:1.05;color:#e9f3fb;white-space:nowrap}
.mta-badge img{border-radius:5px;width:31px;height:31px}
.mta-badge>span{font-size:.96rem;font-weight:800;letter-spacing:.025em}
.mta-badge>span>span{display:block;font-size:.55rem;letter-spacing:.075em;color:#b4c5d1}
.join-puremta{width:75px;height:37px;object-fit:contain}
.join-content{padding:12px 13px 13px}
.join-heading{display:flex;align-items:baseline;justify-content:space-between;gap:7px;flex-wrap:wrap}
.join-content h3{font-size:.99rem;font-weight:660;line-height:1.22}
.join-status{color:#b6c3cf;font-size:.71rem;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}
.join-status.online{color:#a4e1c4}.join-status.online::before{content:"";width:6px;height:6px;border-radius:50%;background:#74d6a4}
.slot-line{display:flex;align-items:baseline;gap:6px;margin-top:7px;color:#bac7d2;font-size:.84rem}
.slot-line strong{font-size:1.46rem;line-height:1.1;color:#eef7fa;letter-spacing:-.055em}
.slot-progress{width:100%;height:6px;display:block;margin-top:7px;appearance:none;accent-color:#88bfd5}
.slot-progress::-webkit-progress-bar{background:#283742;border-radius:3px}.slot-progress::-webkit-progress-value{background:#88bfd5;border-radius:3px}
.join-button{display:flex;width:100%;margin-top:11px;min-height:38px;font-size:.9rem}
.join-button:hover{transform:translateY(-1px)}.join-button{transition:background-color 150ms,transform 150ms,border-color 150ms}
.server-address{color:#a7b8c7;text-align:center;font-size:.69rem;display:block;margin-top:6px}
.discord-card{background:#202238;border-color:#3f4477}
.discord-symbol{background:#292d4b;border-color:#4f5483;color:#e0e3ff;font-weight:720;font-size:.95rem}
.discord-symbol svg{color:#bec3ff;width:19px;height:19px}
.discord-card .join-content p{font-size:.79rem;color:#c4c8ee;margin-top:5px}
.discord-card .join-button{background:#5865f2;border-color:#8390fc;color:white}
.discord-card .join-button:hover{background:#6572f5;border-color:#9ba7ff}
.post-video{margin:0;border:1px solid var(--border-strong);border-radius:8px;overflow:hidden;width:min(100%,54rem);min-width:0;background:#12181d}
.post-video video{display:block;width:100%;height:auto;max-height:min(67vh,590px);background:#091014}
.post-video figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap;padding:7px 10px;font-size:.87rem;overflow-wrap:anywhere}
.post-video figcaption span{font-size:.78rem;color:var(--text-muted)}
@media(max-width:1170px) and (min-width:761px){.right .sidebar-updates{grid-column:1/-1}}
@media(max-width:760px){.join-card .join-button{min-height:42px}}

/* Shared home grid and quieter action controls */
.layout.is-home{row-gap:12px}
.layout.is-home>#home-heading{grid-area:1/2/2/-1;display:block;margin:0}
.layout.is-home>#home-heading h1{line-height:1.13}
.layout.is-home>#home-heading .forum-notice{margin-top:11px}
.layout.is-home>.left{grid-area:1/1/3/2}
.layout.is-home>main{grid-area:2/2/3/3}
.layout.is-home>.right{grid-area:2/3/3/4}
.layout.is-home>main>.cat-card:first-child{margin-top:0}
.right .card+.card{margin-top:0}
.right .join-card .join-heading{column-gap:5px}
.slot-line strong.slot-muted{font-size:.86rem;letter-spacing:0;color:var(--text-muted);font-weight:550}
.post-actions-left{gap:6px}
.post-actions-left .post-action{min-height:34px;gap:6px;padding:5px 8px;border-radius:6px;border-color:#374754;background:#1a242d;color:#c8d7e1;font-size:.84rem}
.post-actions-left .post-action:hover,.post-actions-left .post-action:focus-visible,.post-actions-left .post-action[aria-pressed="true"]{border-color:#7298aa;background:#263b47;color:#e0f3fa}
.post-actions-left .post-action svg{color:#a7c7d8;width:15px;height:15px}
.post-tools>summary.post-action::-webkit-details-marker{display:none}
.top-actions .account-notification{position:relative;display:inline-flex;flex:0 0 auto;width:39px;min-width:39px;height:39px;padding:0;overflow:visible}
.account-notification svg{width:18px;height:18px}
.account-notification .counter-badge{
  position:absolute;inset:-4px -4px auto auto;min-width:17px;height:17px;line-height:15px;
  padding:0 3px;border:1px solid #1a252e;border-radius:7px;color:#19262e;background:#a9d4e5;
  font-size:10px;text-align:center;font-variant-numeric:tabular-nums;box-shadow:none
}
@media(max-width:1170px){
  .layout.is-home>.left{grid-area:1/1/4/2}
  .layout.is-home>.right{grid-area:3/2/4/3}
}
@media(max-width:880px){
  .layout.is-home>#home-heading,.layout.is-home>main,.layout.is-home>.right{grid-area:auto}
  .layout.is-home>.left{grid-area:auto}
}
@media(max-width:760px){
  .top-actions .account-notification{width:33px;min-width:33px;height:37px}
  .account-notification .counter-badge{inset:-3px -3px auto auto}
  .post-actions-left .post-action{min-height:37px;padding:5px 6px;font-size:.78rem}
}

/* Recent post details in the forum index */
.layout.is-home>main{container:forum-main / inline-size}
.board-row{grid-template-columns:38px minmax(0,1.18fr) max-content minmax(0,1fr);gap:14px;min-height:74px}
.board-row>div:nth-child(2){min-width:0}
.board-row .board-info-head a{font-size:1.035em;line-height:1.24}
.board-row .board-desc{color:#b0bdca;line-height:1.4;margin-top:3px}
.board-overview-count{padding-inline:2px 4px;white-space:nowrap}
.board-overview-count strong,.board-overview-count small{display:block;font-size:.8em}
.board-overview-latest{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:9px;align-items:center;padding-left:13px;border-left:1px solid var(--border)}
.board-overview-latest .board-last-info{display:grid;gap:4px;min-width:0;max-width:none}
.board-overview-latest .board-last-title{font-size:.91em;line-height:1.29;font-weight:620;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;overflow-wrap:anywhere}
.board-overview-latest .board-last-meta{font-size:.79em;display:flex;min-width:0;align-items:center;gap:4px 7px;flex-wrap:wrap;white-space:normal;overflow:visible}
.board-overview-latest .board-last-meta a{min-width:0;color:#bdcbd7;overflow-wrap:anywhere}
.board-overview-latest .board-last-meta time{color:var(--text-dim);white-space:nowrap}
.board-overview-latest .board-last-meta time::before{content:"·";margin-right:6px}
.board-overview-latest .board-last-avatar{grid-column:2;grid-row:1;justify-self:end;display:grid;place-items:center;width:38px;height:38px;border-radius:8px}
.board-overview-latest .board-last-avatar .avatar{width:100%;height:100%;border-radius:8px;font-size:.93rem;flex:none}
.board-overview-latest .board-last-avatar:hover{box-shadow:0 0 0 1px var(--accent)}
.board-overview-latest.is-empty{display:block;font-size:.82em}
@container forum-main (max-width:630px){
  .board-row{grid-template-columns:35px minmax(0,1fr) max-content;gap:7px 10px}
  .board-overview-count{grid-row:1;grid-column:3;text-align:right;padding:0}
  .board-overview-latest{grid-column:2/-1;grid-row:2;border-left:0;border-top:1px solid var(--border);padding:7px 0 0}
  .board-overview-latest.is-empty{display:none}
  .board-overview-latest .board-last-title{font-size:.86em}
}
@media(max-width:380px){
  .board-overview-count strong,.board-overview-count small{font-size:.74em}
  .board-overview-latest{grid-template-columns:minmax(0,1fr) 34px}
  .board-overview-latest .board-last-avatar{width:34px;height:34px}
}
