@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --page: #0f1113;
  --surface: #16191c;
  --surface-raised: #1a1e22;
  --surface-muted: #121416;
  --surface-hover: #1e2328;
  --border: #2a3036;
  --border-soft: #22272c;
  --border-strong: #3a444c;
  --text: #d8dde1;
  --text-soft: #a7b0b7;
  --muted: #7a858d;
  --faint: #5c666e;
  --accent: #8fa7b4;
  --accent-strong: #6b8797;
  --accent-soft: #1a252c;
  --success: #7e9f8b;
  --danger: #bb8782;
  --max: 1180px;
  --radius: 6px;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 14px/1.55 var(--font);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea { font: inherit; }

button,
a,
input { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
button { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

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

::selection {
  color: var(--text);
  background: #354750;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 14px;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--accent-strong);
  border-radius: 4px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Site chrome */
.utility-bar {
  color: var(--muted);
  background: #0c0e10;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
}
.utility-bar .wrap,
.utility-links,
.session-links {
  display: flex;
  align-items: center;
}
.utility-bar .wrap {
  min-height: 34px;
  justify-content: space-between;
  gap: 20px;
}
.utility-links { gap: 22px; }
.utility-links a,
.session-links a { transition: color 140ms ease; }
.utility-links a:hover,
.session-links a:hover { color: var(--text-soft); }
.session-links { gap: 12px; }
.session-divider {
  width: 1px;
  height: 12px;
  background: var(--border);
}
.guest-label { color: var(--text-soft); }

.site-header {
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand:hover { color: var(--text); }
.brand-logo {
  display: block;
  width: auto;
  height: 34px;
  object-fit: contain;
  background: transparent;
  border: 0;
}
.brand-logo--lg {
  height: 52px;
  margin-bottom: 18px;
}
.brand-mark,
.brand-name,
.brand-tagline { display: none !important; }

.global-search {
  position: relative;
  width: min(330px, 32vw);
  margin-left: auto;
}
.global-search input {
  width: 100%;
  height: 38px;
  padding: 0 42px 0 13px;
  color: var(--text);
  background: #101315;
  border: 1px solid var(--border);
  border-radius: 5px;
  outline: 0;
  transition: border-color 140ms ease, background 140ms ease;
}
.global-search input::placeholder { color: var(--faint); }
.global-search input:focus {
  background: #121619;
  border-color: var(--accent-strong);
}
.global-search button {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 37px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.global-search button:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.header-login {
  padding: 8px 5px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.primary-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 18, 20, 0.97);
  border-bottom: 1px solid var(--border);
}
.primary-nav .wrap {
  display: flex;
  align-items: stretch;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav .wrap::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative;
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 140ms ease;
}
.nav-link .icon {
  width: 15px;
  height: 15px;
  opacity: 0.88;
}
.nav-link:hover { color: var(--text-soft); }
.nav-link.is-selected { color: var(--text); }
.nav-link.is-selected .icon { opacity: 1; }
.nav-link.is-selected::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent-strong);
}
.nav-link--end { margin-left: auto; }

/* Shared content */
.page-body { flex: 1; padding: 28px 0 56px; }
.page-body-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 19px;
  padding: 0;
  color: var(--faint);
  font-size: 12px;
  list-style: none;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: #414a50; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text-soft); }
.breadcrumbs li:last-child { color: var(--text-soft); }

.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}
.page-title h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.75px;
}
.page-description {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.page-title-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  color: #e0e6e9;
  background: #334a58;
  border: 1px solid #466171;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.button:hover {
  color: #e7edef;
  background: #3c5564;
  border-color: #587384;
}
.button .icon { width: 16px; height: 16px; }
.button--secondary {
  color: var(--text-soft);
  background: var(--surface-raised);
  border-color: var(--border);
}
.button--secondary:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}
.button--full { width: 100%; }
.text-button {
  padding: 0;
  color: var(--accent);
  background: none;
  border: 0;
  font-size: 12px;
  cursor: pointer;
}
.text-button:hover { color: var(--text); }

.forum-section,
.topic-section,
.thread-section,
.side-panel {
  --frame: #8b959c;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
}
.forum-section::before,
.topic-section::before,
.thread-section::before,
.side-panel::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / 11px 1.5px no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / 1.5px 11px no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / 11px 1.5px no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / 1.5px 11px no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 11px 1.5px no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 1.5px 11px no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 bottom 0 / 11px 1.5px no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 bottom 0 / 1.5px 11px no-repeat;
}
.forum-section,
.topic-section,
.thread-section {
  margin-bottom: 20px;
  overflow: visible;
}
.forum-section > *,
.topic-section > *,
.thread-section > *,
.side-panel > * {
  position: relative;
  z-index: 1;
}
.section-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.section-heading h2,
.section-header > h2 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
}
.section-heading .icon { width: 16px; height: 16px; color: var(--muted); }
.section-meta { color: var(--faint); font-size: 11px; }
.section-tools { display: flex; align-items: center; gap: 13px; }
.collapse-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}
.collapse-button:hover { color: var(--text); background: var(--surface-hover); }
.collapse-button .icon { width: 16px; height: 16px; transition: transform 160ms ease; }
.collapse-button[aria-expanded="false"] .icon { transform: rotate(-90deg); }

/* Forum index */
.list-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 64px 190px;
  gap: 14px;
  padding: 8px 17px 8px 69px;
  color: var(--faint);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}
.list-columns > span:not(:first-child) { text-align: right; }
.node { position: relative; }
.node + .node { border-top: 1px solid var(--border-soft); }
.node--unread::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  z-index: 1;
  width: 2px;
  background: var(--accent-strong);
}
.node-body {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 64px 64px 190px;
  gap: 14px;
  align-items: center;
  padding: 17px;
  transition: background 140ms ease;
}
.node:hover .node-body { background: var(--surface-hover); }
.node-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--faint);
  background: var(--surface-muted);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
}
.node-icon .icon { width: 19px; height: 19px; }
.node--unread .node-icon { color: var(--accent); background: var(--accent-soft); border-color: #2b3a43; }
.node-main { min-width: 0; }
.node-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.node-title a:hover { color: var(--accent); }
.node-description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.node-stat { text-align: right; }
.node-stat strong {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.node-stat span { display: none; }
.node-extra { min-width: 0; text-align: right; }
.node-latest-title {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.node-latest-title:hover { color: var(--accent); }
.node-latest-meta {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
}
.node-latest-meta a { color: var(--muted); }

/* Sidebar */
.sidebar { display: grid; gap: 16px; }
.side-panel { overflow: visible; }
.side-panel-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border-soft);
}
.side-panel-header .icon { width: 16px; height: 16px; color: var(--muted); }
.side-panel-header h2 { margin: 0; font-size: 12px; font-weight: 600; }
.side-panel-body { padding: 16px; }
.pairs {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px 16px;
  margin: 0;
  font-size: 12px;
}
.pairs dt { color: var(--muted); }
.pairs dd {
  margin: 0;
  color: var(--text-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.pairs dd a { color: var(--accent); }
.sidebar-note {
  margin: 15px 0 0;
  padding-top: 13px;
  color: var(--faint);
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
}
.online-summary { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.online-summary strong { color: var(--text-soft); font-weight: 600; }
.online-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; margin: 0; padding: 0; list-style: none; }
.online-list li { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--text-soft); font-size: 12px; }
.online-dot { width: 5px; height: 5px; flex: 0 0 auto; background: var(--success); border-radius: 50%; }
.community-copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.community-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}
.community-link .icon { width: 14px; height: 14px; }
.community-link:hover { color: var(--text); }

/* Topic list */
.forum-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 11px 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-tabs { display: flex; align-items: center; gap: 4px; }
.filter-tab {
  min-height: 32px;
  padding: 5px 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.filter-tab:hover { color: var(--text-soft); background: var(--surface-raised); }
.filter-tab.is-active { color: var(--text); background: var(--surface-raised); border-color: var(--border); }
.topic-search { position: relative; width: 240px; flex: 0 0 auto; }
.topic-search .icon {
  position: absolute;
  top: 9px;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--faint);
  pointer-events: none;
}
.topic-search input {
  width: 100%;
  height: 34px;
  padding: 0 11px 0 33px;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: 0;
  font-size: 12px;
}
.topic-search input::placeholder { color: var(--faint); }
.topic-search input:focus { border-color: var(--accent-strong); }

.topic-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 80px 158px;
  gap: 14px;
  padding: 8px 17px 8px 69px;
  color: var(--faint);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}
.topic-list-head > span:not(:first-child) { text-align: right; }
.structItem {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 64px 80px 158px;
  gap: 14px;
  align-items: center;
  padding: 16px 17px;
  transition: background 140ms ease;
}
.structItem + .structItem { border-top: 1px solid var(--border-soft); }
.structItem:hover { background: var(--surface-hover); }
.structItem--unread::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 2px;
  background: var(--accent-strong);
}
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #aebdc5;
  background: #24313a;
  border: 1px solid #354650;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.2px;
}
.avatar--green { color: #adbcb2; background: #26332d; border-color: #394a41; }
.avatar--brown { color: #c0b2a6; background: #342e29; border-color: #4b4239; }
.avatar--purple { color: #b9b1c2; background: #2e2935; border-color: #443c4d; }
.avatar--gray { color: #b0b6ba; background: #2b3034; border-color: #3d4449; }
.avatar--lg { width: 48px; height: 48px; font-size: 12px; border-radius: 7px; }
.topic-main { min-width: 0; }
.topic-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.topic-title a:hover { color: var(--accent); }
.topic-minor { margin-top: 5px; color: var(--faint); font-size: 11px; }
.topic-minor a { color: var(--muted); }
.topic-stat { color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.topic-latest { min-width: 0; text-align: right; }
.topic-latest a { display: block; color: var(--text-soft); font-size: 12px; }
.topic-latest a:hover { color: var(--accent); }
.topic-latest time { display: block; margin-top: 4px; color: var(--faint); font-size: 11px; }
.label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 2px 6px;
  color: var(--muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}
.label .icon { width: 10px; height: 10px; }
.label--hot { color: #b7a08d; background: #26221e; border-color: #40372e; }
.section-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 51px;
  padding: 10px 16px;
  color: var(--faint);
  background: var(--surface-muted);
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
}
.page-nav { display: flex; align-items: center; gap: 5px; }
.page-nav-button {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}
.page-nav-button:hover { color: var(--text); border-color: var(--border-strong); }
.page-nav-button[aria-current="page"] { color: var(--text); background: var(--accent-soft); border-color: #3c515d; }
.page-nav-button .icon { width: 14px; height: 14px; }
.empty-state { padding: 42px 20px; color: var(--muted); text-align: center; }
.empty-state h3 { margin: 0 0 6px; color: var(--text-soft); font-size: 14px; }
.empty-state p { margin: 0 0 14px; font-size: 12px; }

/* Guest content gate */
.content-gate {
  position: relative;
  margin-bottom: 20px;
}
body.is-guest .content-gate {
  max-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
body.is-guest .content-gate-blur {
  filter: blur(8px);
  transform: scale(1.01);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
  -webkit-user-select: none;
}
body.is-guest .content-gate-blur .thread-section {
  border: 0;
}
body.is-guest .content-gate-blur .thread-section::before {
  display: none;
}
body.is-member .content-gate {
  max-height: none;
  overflow: visible;
  border: 0;
  background: transparent;
}
body.is-member .content-gate-blur {
  filter: none;
  opacity: 1;
  transform: none;
  user-select: auto;
  pointer-events: auto;
}
body.is-member [data-guest-only] { display: none !important; }
body.is-guest [data-member-only] { display: none !important; }
.content-gate-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    linear-gradient(180deg, rgba(15, 17, 19, 0.18) 0%, rgba(15, 17, 19, 0.72) 42%, rgba(15, 17, 19, 0.92) 100%);
}
.content-gate-card {
  width: min(420px, 100%);
  padding: 28px 26px 24px;
  text-align: center;
  color: var(--text);
  background: rgba(18, 21, 24, 0.96);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.content-gate-icon {
  width: 22px;
  height: 22px;
  margin: 0 auto 14px;
  color: var(--accent);
}
.content-gate-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.content-gate-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.content-gate-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.content-gate-actions .button {
  min-width: 118px;
  justify-content: center;
}

/* Thread */
.thread-title-row { align-items: flex-start; }
.thread-title-row .page-title-actions { padding-top: 4px; }
.thread-labels { display: flex; gap: 6px; margin-bottom: 10px; }
.thread-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 11px;
}
.thread-toolbar a { color: var(--muted); }
.thread-toolbar a:hover { color: var(--text); }
.message { display: grid; grid-template-columns: 168px minmax(0, 1fr); }
.message + .message { border-top: 1px solid var(--border); }
.message-user { padding: 22px 18px; background: var(--surface-muted); border-right: 1px solid var(--border-soft); }
.message-user .avatar { margin-bottom: 12px; }
.message-userName { margin: 0; color: var(--text); font-size: 14px; font-weight: 600; }
.message-userTitle { margin-top: 3px; color: var(--muted); font-size: 11px; }
.user-role {
  display: inline-flex;
  margin-top: 8px;
  padding: 2px 6px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #30414b;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}
.message-userExtras { display: grid; gap: 6px; margin: 19px 0 0; font-size: 10px; }
.message-userExtras div { display: flex; justify-content: space-between; gap: 8px; }
.message-userExtras dt { color: var(--faint); }
.message-userExtras dd { margin: 0; color: var(--muted); text-align: right; }
.message-content { min-width: 0; display: flex; flex-direction: column; }
.message-attribution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 22px;
  color: var(--faint);
  border-bottom: 1px solid var(--border-soft);
  font-size: 10px;
}
.message-attribution a { color: var(--muted); }
.message-attribution a:hover { color: var(--accent); }
.message-attribution time { display: inline-flex; align-items: center; gap: 6px; }
.message-attribution .icon { width: 12px; height: 12px; }
.message-body { flex: 1; padding: 22px; color: #c0c7cb; font-size: 14px; line-height: 1.8; }
.message-body p { margin: 0 0 16px; }
.message-body p:last-child { margin-bottom: 0; }
.message-body ul { margin: 0 0 16px; padding-left: 20px; }
.message-body li + li { margin-top: 5px; }
.message-body strong { color: var(--text); font-weight: 600; }
.message-body code {
  padding: 2px 5px;
  color: #b9c8d0;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.message-actions { display: flex; align-items: center; gap: 17px; padding: 11px 22px; border-top: 1px solid var(--border-soft); }
.message-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--faint);
  background: transparent;
  border: 0;
  font-size: 10px;
  cursor: pointer;
}
.message-action:hover { color: var(--text-soft); }
.message-action .icon { width: 13px; height: 13px; }
.reply-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.reply-callout h2 { margin: 0; font-size: 14px; font-weight: 600; }
.reply-callout p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

/* Authentication */
.page-auth {
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(104, 133, 150, 0.08), transparent 55%),
    var(--page);
}
.auth-topbar {
  background: rgba(12, 14, 16, 0.92);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
}
.auth-topbar .wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.auth-topbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.auth-topbar-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}
.auth-topbar-links a:hover { color: var(--text-soft); }
.auth-topbar-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.page-auth .page-body {
  display: flex;
  align-items: flex-start;
  padding-top: 36px;
  padding-bottom: 64px;
}
.page-auth .breadcrumbs { margin-bottom: 22px; }
.auth-page {
  width: min(440px, 100%);
  margin: 0;
}
.auth-page-header {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.auth-page-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.45px;
  line-height: 1.2;
}
.auth-page-header p {
  margin: 10px 0 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.auth-form { padding: 0; background: transparent; border: 0; }
.form-row { margin-bottom: 18px; }
.form-row > label,
.form-label-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.form-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.form-label-row label { margin-bottom: 0; }
.form-aside-link {
  color: var(--muted);
  font-size: 12px;
}
.form-aside-link:hover { color: var(--text-soft); }
.form-hint {
  margin: 7px 0 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.45;
}
.input,
.password-field input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  color: var(--text);
  background: #121517;
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: 0;
  font-size: 14px;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.input::placeholder,
.password-field input::placeholder { color: var(--faint); }
.input:hover,
.password-field input:hover { border-color: var(--border-strong); }
.input:focus,
.password-field input:focus {
  border-color: var(--accent-strong);
  background: #101315;
  box-shadow: 0 0 0 3px rgba(104, 133, 150, 0.16);
}
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--faint);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.password-toggle:hover { color: var(--text-soft); }
.password-toggle .icon { width: 16px; height: 16px; }
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 24px;
}
.checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  cursor: pointer;
}
.checkbox-label input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--accent-strong);
}
.checkbox-label a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkbox-label a:hover { color: var(--text); }
.page-auth .button--full {
  min-height: 42px;
  justify-content: center;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.form-status {
  margin: 14px 0 0;
  padding: 11px 12px;
  color: #c4b5a8;
  background: #221f1c;
  border: 1px solid #3d352d;
  font-size: 12px;
  line-height: 1.55;
}
.auth-switch {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 13px;
}
.auth-switch a {
  color: var(--text-soft);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-switch a:hover { color: var(--text); }
.site-footer--auth {
  margin-top: auto;
  padding: 18px 0;
}
.site-footer--auth .wrap {
  min-height: auto;
}

/* Footer and notifications */
.site-footer { padding: 25px 0; color: var(--faint); background: #0c0e10; border-top: 1px solid var(--border-soft); font-size: 11px; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: var(--text-soft); font-size: 13px; font-weight: 650; }
.footer-brand strong span { color: var(--accent); }
.footer-brand p { margin: 0; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a:hover { color: var(--text-soft); }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: calc(100% - 44px);
  padding: 11px 15px;
  color: var(--text-soft);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .site-header .wrap { gap: 22px; }
  .global-search { width: min(280px, 28vw); }
  .page-body-inner { grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; }
  .list-columns { grid-template-columns: minmax(0, 1fr) 52px 52px 155px; padding-left: 65px; gap: 10px; }
  .node-body { grid-template-columns: 34px minmax(0, 1fr) 52px 52px 155px; gap: 10px; }
  .node-icon { width: 34px; height: 34px; }
  .topic-list-head { grid-template-columns: minmax(0, 1fr) 55px 70px 130px; gap: 10px; }
  .structItem { grid-template-columns: 36px minmax(0, 1fr) 55px 70px 130px; gap: 10px; }
}

@media (max-width: 900px) {
  .brand-tagline { display: none; }
  .global-search { width: auto; flex: 1; max-width: 320px; }
  .page-body-inner { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(3, 1fr); }
  .list-columns { grid-template-columns: minmax(0, 1fr) 60px 60px 175px; padding-left: 69px; gap: 14px; }
  .node-body { grid-template-columns: 38px minmax(0, 1fr) 60px 60px 175px; gap: 14px; }
  .node-icon { width: 38px; height: 38px; }
  .topic-list-head { grid-template-columns: minmax(0, 1fr) 64px 80px 150px; gap: 14px; }
  .structItem { grid-template-columns: 36px minmax(0, 1fr) 64px 80px 150px; gap: 14px; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .utility-links { gap: 14px; }
  .utility-links a:nth-child(3) { display: none; }
  .site-header .wrap { min-height: 76px; flex-wrap: wrap; gap: 14px 18px; padding: 14px 0; }
  .brand { margin-right: auto; }
  .brand-logo { height: 30px; }
  .brand > .brand-tagline { display: none; }
  .global-search { order: 3; width: 100%; max-width: none; flex-basis: 100%; }
  .global-search input { height: 36px; }
  .header-actions { gap: 12px; }
  .header-login { display: none; }
  .primary-nav .wrap { gap: 25px; }
  .nav-link { min-height: 43px; font-size: 12px; }
  .nav-link--end { margin-left: 0; }
  .page-body { padding: 22px 0 40px; }
  .breadcrumbs { margin-bottom: 15px; }
  .page-title { align-items: flex-start; gap: 16px; margin-bottom: 20px; }
  .page-title h1 { font-size: 23px; }
  .page-description { font-size: 12px; }
  .page-title .button { min-height: 36px; padding: 8px 11px; font-size: 12px; }
  .sidebar { grid-template-columns: 1fr; }
  .list-columns { display: none; }
  .node-body { grid-template-columns: 36px minmax(0, 1fr) 55px 55px; padding: 15px; gap: 12px; }
  .node-icon { width: 36px; height: 36px; }
  .node-extra { grid-column: 2 / -1; text-align: left; }
  .node-latest-title { display: inline; font-size: 11px; }
  .node-latest-meta { display: inline; margin: 0 0 0 6px; }
  .forum-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .filter-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .filter-tab { padding-inline: 7px; }
  .topic-search { width: 100%; }
  .topic-list-head { display: none; }
  .structItem { grid-template-columns: 34px minmax(0, 1fr) 48px; padding: 15px; gap: 12px; }
  .avatar { width: 34px; height: 34px; }
  .topic-stat--views { display: none; }
  .topic-latest { grid-column: 2 / -1; text-align: left; }
  .topic-latest a,
  .topic-latest time { display: inline; }
  .topic-latest time { margin-left: 6px; }
  .topic-latest a::after { content: " tarafından son yanıt"; color: var(--faint); }
  .message { grid-template-columns: 1fr; }
  .message-user { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .message-user .avatar { width: 42px; height: 42px; grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .message-userName { grid-column: 2; grid-row: 1; align-self: end; }
  .message-userTitle { grid-column: 2; grid-row: 2; align-self: start; margin: 0; }
  .message-userExtras,
  .user-role { display: none; }
  .message-attribution { padding: 11px 16px; }
  .message-body { padding: 18px 16px; font-size: 13px; }
  .message-actions { padding: 11px 16px; }
  .page-auth .page-body { padding-top: 24px; }
  .auth-page { width: min(100%, 440px); }
  .auth-page-header h1 { font-size: 23px; }
  .auth-topbar .wrap { min-height: 58px; }
  .site-footer .wrap { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-brand p { display: none; }
}

@media (max-width: 480px) {
  .utility-bar .wrap { min-height: 32px; }
  .utility-links a:nth-child(2) { display: none; }
  .session-links { gap: 9px; }
  .guest-label,
  .session-divider { display: none; }
  .page-title { flex-direction: column; }
  .page-title-actions { width: 100%; }
  .page-title-actions .button { width: 100%; }
  .node-body { grid-template-columns: 32px minmax(0, 1fr) 45px; gap: 10px; }
  .node-icon { width: 32px; height: 32px; }
  .node-stat--messages { display: none; }
  .node-stat strong::after { content: " konu"; color: var(--faint); font-size: 9px; font-weight: 400; }
  .node-description { font-size: 11px; }
  .node-latest-title { display: block; }
  .node-latest-meta { margin-left: 0; }
  .section-header { padding-inline: 13px; }
  .section-meta { display: none; }
  .structItem { grid-template-columns: 32px minmax(0, 1fr); }
  .structItem > .avatar { width: 32px; height: 32px; }
  .topic-stat { display: none; }
  .topic-latest { grid-column: 2; }
  .topic-title { font-size: 12px; }
  .section-footer { align-items: flex-start; flex-direction: column; }
  .thread-title-row .page-title-actions { width: auto; }
  .thread-title-row { flex-direction: column; }
  .message-attribution time .icon { display: none; }
  .message-attribution { gap: 8px; }
  .reply-callout { align-items: stretch; flex-direction: column; gap: 15px; }
  .footer-links { flex-wrap: wrap; gap: 12px 18px; }
}

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