:root {
  --bg: #07101d;
  --bg-soft: #0a1525;
  --surface: rgba(14, 28, 47, .86);
  --surface-2: rgba(18, 36, 59, .78);
  --surface-solid: #0f2035;
  --line: rgba(139, 176, 219, .14);
  --line-strong: rgba(139, 176, 219, .24);
  --text: #eef6ff;
  --text-soft: #c4d2e2;
  --muted: #8197b0;
  --muted-2: #607892;
  --primary: #3d8cff;
  --primary-2: #246fe8;
  --primary-soft: rgba(61, 140, 255, .12);
  --cyan: #55d7e6;
  --green: #53d7a0;
  --amber: #ffc96b;
  --red: #ff7180;
  --violet: #9d83ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .25);
  --shadow-soft: 0 14px 45px rgba(0, 0, 0, .12);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1280px;
  --header-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

html[data-ui="light"] {
  --bg: #edf3fa;
  --bg-soft: #f6f9fd;
  --surface: rgba(255, 255, 255, .9);
  --surface-2: rgba(255, 255, 255, .75);
  --surface-solid: #ffffff;
  --line: rgba(34, 65, 98, .11);
  --line-strong: rgba(34, 65, 98, .18);
  --text: #10233b;
  --text-soft: #415b76;
  --muted: #667f9a;
  --muted-2: #8ba0b5;
  --primary-soft: rgba(42, 120, 238, .09);
  --shadow: 0 24px 65px rgba(42, 68, 96, .12);
  --shadow-soft: 0 12px 35px rgba(42, 68, 96, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 75% -10%, rgba(54, 132, 247, .18), transparent 34%),
    radial-gradient(circle at 8% 12%, rgba(83, 69, 193, .10), transparent 26%),
    linear-gradient(150deg, var(--bg), var(--bg-soft));
  font-size: 15px;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid rgba(61, 140, 255, .7);
  outline-offset: 2px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  padding: 11px 12px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
html[data-ui="light"] input,
html[data-ui="light"] textarea,
html[data-ui="light"] select { background: rgba(242, 247, 252, .8); }
input:focus, textarea:focus, select:focus {
  border-color: rgba(61, 140, 255, .55);
  box-shadow: 0 0 0 3px rgba(61, 140, 255, .10);
  background: rgba(61, 140, 255, .035);
}
textarea { resize: vertical; min-height: 100px; }
select { cursor: pointer; }
input[type="checkbox"] { width: auto; }
input[type="color"] { min-height: 43px; padding: 5px; }
::placeholder { color: var(--muted-2); }
::selection { background: var(--primary); color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.16em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6aa9ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(22px) saturate(140%);
}
.header-inner {
  width: min(var(--container), calc(100% - 38px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.04em;
  background: linear-gradient(145deg, #50a2ff, #2f73ed 54%, #6d5fe6);
  box-shadow: 0 10px 30px rgba(47, 115, 237, .28), inset 0 0 0 1px rgba(255,255,255,.16);
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 14px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .05em; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  transition: color .16s, background .16s;
}
.main-nav a:hover { color: var(--text); background: rgba(91, 148, 220, .07); }
.main-nav a.active { color: #eaf4ff; background: var(--primary-soft); }
html[data-ui="light"] .main-nav a.active { color: #185bb8; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.header-search {
  width: clamp(170px, 19vw, 300px);
  height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}
.header-search .icon { color: var(--muted); }
.header-search input { padding: 0; border: 0; box-shadow: none; background: transparent; font-size: 12px; }
.header-search input:focus { box-shadow: none; background: transparent; }
.round-button {
  position: relative;
  width: 39px;
  height: 39px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: var(--text-soft);
  cursor: pointer;
  transition: transform .16s, background .16s, border-color .16s;
}
.round-button:hover { transform: translateY(-1px); background: var(--primary-soft); border-color: rgba(61,140,255,.24); }
.notify-button b {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--bg);
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}
.account-menu {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 3px;
  padding-left: 7px;
  border-left: 1px solid var(--line);
}
.account-copy { min-width: 78px; display: grid; line-height: 1.18; }
.account-copy strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.account-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.logout-button { border: 0; background: transparent; color: var(--muted); padding: 7px; cursor: pointer; border-radius: 8px; }
.logout-button:hover { color: var(--red); background: rgba(255,113,128,.08); }
.mobile-nav-button { display: none; }

/* Base page */
.site-main { min-height: calc(100vh - var(--header-height) - 82px); }
.page-container { width: min(var(--container), calc(100% - 38px)); margin: 0 auto; padding: 34px 0 64px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { width: min(var(--container), calc(100% - 38px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; }
.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255,255,255,.025), transparent 38%), var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.surface-pad { padding: 22px; }
.page-intro {
  min-height: 106px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 20px;
}
.page-intro.compact { min-height: auto; align-items: center; margin-bottom: 20px; }
.page-intro h1, .thread-header h1 { margin: 4px 0 7px; font-size: clamp(27px, 3vw, 39px); line-height: 1.06; letter-spacing: -.035em; }
.page-intro p, .thread-header p { margin: 0; color: var(--muted); font-size: 13px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.section-heading h2 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.02em; }
.section-heading > a { color: #66a8ff; font-size: 11px; font-weight: 700; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 17px; color: var(--muted); font-size: 10px; }
.breadcrumbs a:hover { color: var(--primary); }
.empty-state { padding: 30px 18px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-state a { color: #64a6ff; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .16s, filter .16s, background .16s, border-color .16s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: linear-gradient(145deg, #4598ff, #246de7); box-shadow: 0 8px 24px rgba(36,109,231,.19); }
.button-primary:hover { filter: brightness(1.08); }
.button-quiet { color: var(--text-soft); border-color: var(--line); background: rgba(255,255,255,.025); }
.button-quiet:hover { background: var(--primary-soft); border-color: rgba(61,140,255,.22); }
.button-danger { color: #ff8895; border-color: rgba(255,113,128,.22); background: rgba(255,113,128,.08); }
.button-danger:hover { background: rgba(255,113,128,.13); }
.button-small { min-height: 31px; padding: 0 10px; border-radius: 8px; font-size: 10px; }
.button-large { width: 100%; min-height: 47px; font-size: 12px; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button-row, .inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Flash */
.flash { margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; }
.flash.success { color: #70e0b0; border-color: rgba(83,215,160,.22); background: rgba(83,215,160,.08); }
.flash.error { color: #ff94a0; border-color: rgba(255,113,128,.24); background: rgba(255,113,128,.08); }
.flash.info { color: #84baff; border-color: rgba(61,140,255,.22); background: rgba(61,140,255,.08); }

/* Avatars and status */
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  background: linear-gradient(145deg, #3c90ff, #6558d9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), 0 6px 20px rgba(30,89,185,.12);
}
.avatar-sm { width: 32px; height: 32px; font-size: 9px; }
.avatar-lg { width: 46px; height: 46px; font-size: 12px; }
.avatar-xl { width: 62px; height: 62px; font-size: 16px; }
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255,255,255,.02);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.status-chip.ok { color: #67dda9; border-color: rgba(83,215,160,.20); background: rgba(83,215,160,.08); }
.status-chip.warn { color: #ffd37f; border-color: rgba(255,201,107,.21); background: rgba(255,201,107,.08); }
.group-dot, .group-color {
  --group-color: #4f9bff;
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--group-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--group-color) 14%, transparent);
  vertical-align: middle;
}
.group-color { width: 12px; height: 12px; margin: 4px 0 0; }

/* Home */
.welcome-panel {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: 34px 38px;
  margin-bottom: 18px;
  border: 1px solid rgba(75,151,255,.20);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 20%, rgba(64,147,255,.27), transparent 28%),
    radial-gradient(circle at 74% 80%, rgba(126,80,228,.16), transparent 32%),
    linear-gradient(125deg, rgba(15,39,68,.97), rgba(10,24,43,.82));
  box-shadow: var(--shadow);
}
html[data-ui="light"] .welcome-panel {
  background: radial-gradient(circle at 90% 20%, rgba(64,147,255,.18), transparent 30%), linear-gradient(125deg, #fff, #f1f6fd);
}
.welcome-panel::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: 4%;
  top: -36%;
  border-radius: 50%;
  border: 1px solid rgba(103,169,255,.14);
  box-shadow: 0 0 80px rgba(47,115,237,.14), inset 0 0 70px rgba(68,143,255,.08);
}
.welcome-copy { position: relative; z-index: 2; max-width: 720px; }
.welcome-copy h1 { margin: 6px 0 10px; font-size: clamp(31px, 4vw, 50px); line-height: 1.04; letter-spacing: -.045em; }
.welcome-copy p { margin: 0; max-width: 650px; color: var(--text-soft); font-size: 15px; }
.welcome-copy .button-row { margin-top: 22px; }
.welcome-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); min-width: 340px; }
.welcome-stats > div { padding: 12px 20px; border-left: 1px solid var(--line); display: grid; }
.welcome-stats strong { font-size: 26px; letter-spacing: -.035em; }
.welcome-stats span { margin-top: 1px; color: var(--muted); font-size: 9px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .7fr); gap: 16px; }
.home-side { display: grid; gap: 16px; align-content: start; }
.quick-card h2, .accent-card h2 { margin: 5px 0 12px; font-size: 17px; }
.quick-links { display: grid; gap: 7px; }
.quick-links a { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid transparent; border-radius: 11px; transition: background .16s, border-color .16s; }
.quick-links a > .icon:first-child { width: 32px; height: 32px; padding: 8px; border-radius: 9px; background: var(--primary-soft); color: #68a8ff; }
.quick-links a span { display: grid; }
.quick-links a b { font-size: 11px; }
.quick-links a small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.quick-links a > .icon:last-child { color: var(--muted-2); }
.quick-links a:hover { background: var(--primary-soft); border-color: rgba(61,140,255,.12); }
.accent-card { display: flex; gap: 14px; background: linear-gradient(145deg, rgba(61,140,255,.12), rgba(112,70,213,.08)), var(--surface); }
.accent-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #78b5ff; background: rgba(61,140,255,.12); }
.accent-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

/* Forum lists */
.forum-categories { display: grid; gap: 16px; }
.forum-category { overflow: hidden; }
.category-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.category-head h2 { margin: 0; font-size: 15px; }
.category-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.category-head > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.board-list, .topic-list { display: grid; }
.board-row {
  display: grid;
  grid-template-columns: 44px minmax(240px, 1fr) 145px minmax(220px, .7fr) 22px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  transition: background .16s, padding .16s;
}
.board-row:first-child { border-top: 0; }
.board-row:hover { background: rgba(65,137,226,.045); }
.board-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #72afff; background: var(--primary-soft); border: 1px solid rgba(61,140,255,.10); }
.board-icon .icon { width: 20px; height: 20px; }
.board-copy, .board-latest { min-width: 0; display: grid; }
.board-copy strong { font-size: 13px; letter-spacing: -.01em; }
.board-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.board-stats > span { display: grid; text-align: center; }
.board-stats b { font-size: 12px; }
.board-stats small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.board-latest { padding-left: 14px; border-left: 1px solid var(--line); }
.board-latest b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.board-latest small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.row-arrow { color: var(--muted-2); }
.row-arrow .icon { width: 16px; height: 16px; }
.topics-surface { overflow: hidden; }
.topics-toolbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.topics-toolbar strong { font-size: 11px; }
.topics-toolbar span { color: var(--muted); font-size: 9px; }
.topic-row {
  display: grid;
  grid-template-columns: 40px minmax(220px,1fr) 70px 70px minmax(140px,.45fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  transition: background .16s;
}
.topic-row:first-child { border-top: 0; }
.topic-row:hover { background: rgba(65,137,226,.045); }
.topic-main, .topic-last, .topic-number { min-width: 0; display: grid; }
.topic-title { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 730; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topic-title .icon { width: 13px; height: 13px; color: #67a6ff; }
.topic-sub { margin-top: 3px; color: var(--muted); font-size: 9px; }
.topic-number { text-align: center; }
.topic-number strong { font-size: 11px; }
.topic-number small { color: var(--muted); font-size: 8px; }
.topic-last { padding-left: 10px; border-left: 1px solid var(--line); }
.topic-last strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.topic-last small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.compact-topics .topic-row { grid-template-columns: 40px minmax(0,1fr) 68px minmax(120px,.45fr); min-height: 66px; padding-left: 2px; padding-right: 2px; }
.compact-topics .topic-row:first-child { border-top: 0; }

/* Thread */
.thread-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 8px 0 22px; }
.thread-header h1 { max-width: 900px; }
.thread-header p { display: flex; align-items: center; gap: 5px; }
.thread-labels { display: flex; gap: 7px; min-height: 22px; }
.thread-labels span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; color: #8ebcff; background: var(--primary-soft); font-size: 8px; font-weight: 750; }
.post-list { display: grid; gap: 13px; }
.post-card { overflow: hidden; }
.post-head { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.post-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.post-user > span:last-child { min-width: 0; display: grid; }
.post-user strong { font-size: 11px; }
.post-user small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.post-time { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; }
.post-time span { color: #6aa8ff; }
.post-content { min-height: 96px; padding: 22px 20px; color: var(--text-soft); font-size: 13px; line-height: 1.76; overflow-wrap: anywhere; }
.attachments { display: grid; gap: 8px; padding: 0 20px 18px; }
.attachment-card { display: grid; grid-template-columns: 32px minmax(0,1fr) 18px; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.attachment-card > .icon:first-child { width: 30px; height: 30px; padding: 7px; border-radius: 8px; color: #69a8ff; background: var(--primary-soft); }
.attachment-card span { display: grid; min-width: 0; }
.attachment-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.attachment-card small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.attachment-card > .icon:last-child { color: var(--muted); }
.post-footer { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 15px; border-top: 1px solid var(--line); }
.post-footer > div { display: flex; align-items: center; gap: 7px; }
.post-footer form { margin: 0; }
.post-action { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-size: 9px; cursor: pointer; }
button.post-action:hover, a.post-action:hover { color: var(--text); background: rgba(255,255,255,.025); }
.post-action.active { color: #ff8794; background: rgba(255,113,128,.08); }
.post-action.static { cursor: default; }
.post-anchor { color: var(--muted); font-size: 9px; }
.reply-box { margin-top: 16px; }

/* Members */
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.member-card { padding: 18px; }
.member-top { display: flex; align-items: center; gap: 13px; }
.member-top h2 { margin: 0; font-size: 15px; }
.member-top p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.member-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; margin-top: 15px; border-top: 1px solid var(--line); }
.member-meta span { display: grid; }
.member-meta b { font-size: 11px; }
.member-meta small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.member-bio { min-height: 36px; margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

/* Messages / notifications / search */
.message-list, .notification-list, .audit-list { overflow: hidden; }
.message-row { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; padding: 15px 17px; border-top: 1px solid var(--line); }
.message-row:first-child, .notification-row:first-child, .audit-row:first-child { border-top: 0; }
.message-row strong { font-size: 11px; }
.message-row p { margin: 5px 0 4px; color: var(--text-soft); font-size: 10px; line-height: 1.55; }
.message-row small { color: var(--muted); font-size: 8px; }
.notification-row { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 11px; padding: 14px 17px; border-top: 1px solid var(--line); }
.notification-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #6aaaff; background: var(--primary-soft); }
.notification-row > div { display: grid; }
.notification-row b { font-size: 10px; }
.notification-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.search-page-form { display: flex; gap: 8px; margin-bottom: 16px; }
.search-page-form input { min-height: 44px; }

/* Marketplace */
.market-grid, .extension-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.market-card, .extension-card { position: relative; min-height: 220px; padding: 20px; }
.market-card.coming { opacity: .72; }
.market-icon, .extension-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #70adff; background: linear-gradient(145deg, rgba(61,140,255,.17), rgba(138,86,231,.10)); }
.market-card h2, .extension-title h2 { margin: 16px 0 5px; font-size: 16px; }
.market-card p, .extension-card p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.market-card small, .extension-card small { color: var(--muted-2); font-size: 8px; }
.extension-card { min-height: auto; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 15px; }
.extension-title { display: flex; align-items: center; gap: 9px; }
.extension-title h2 { margin: 0; }
.extension-card p { margin: 5px 0 4px; }

/* Forms */
.form-card { max-width: 760px; }
.form-stack { display: grid; gap: 14px; }
.form-stack label, .form-grid label { display: grid; gap: 6px; color: var(--text-soft); font-size: 10px; font-weight: 700; }
.form-stack label small, .form-grid label small { color: var(--muted); font-size: 8px; font-weight: 500; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-helper { display: flex; justify-content: flex-end; margin-top: -5px; }
.form-helper a { color: #66a8ff; font-size: 9px; }
.file-field {
  position: relative;
  min-height: 64px;
  display: grid !important;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: center;
  gap: 10px !important;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: rgba(61,140,255,.025);
  cursor: pointer;
}
.file-field > .icon { width: 32px; height: 32px; padding: 7px; color: #6aaaff; border-radius: 9px; background: var(--primary-soft); }
.file-field span { display: grid; }
.file-field b { font-size: 10px; }
.file-field small { margin-top: 2px; }
.file-field input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.compact-file { max-width: 440px; min-height: 56px; }
.switch-row { display: flex !important; align-items: center; justify-content: space-between; gap: 18px !important; padding: 13px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch-row > span { display: grid; }
.switch-row b { font-size: 10px; }
.switch-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.switch-row input { width: 39px; height: 22px; appearance: none; border: 0; border-radius: 99px; background: rgba(128,151,176,.25); position: relative; transition: .16s; }
.switch-row input::after { content:""; position:absolute; width:16px; height:16px; left:3px; top:3px; border-radius:50%; background:#fff; transition:.16s; box-shadow:0 2px 7px rgba(0,0,0,.2); }
.switch-row input:checked { background: var(--primary); }
.switch-row input:checked::after { transform: translateX(17px); }
.inline-note, .inline-warning { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border-radius: 11px; border: 1px solid rgba(61,140,255,.20); background: rgba(61,140,255,.07); color: var(--text-soft); font-size: 10px; }
.inline-warning { border-color: rgba(255,201,107,.24); background: rgba(255,201,107,.07); color: #ffd486; }
.inline-note > span { display: grid; }
.inline-note small { margin-top: 2px; color: var(--muted); font-size: 8px; }

/* Dialog */
dialog.modal {
  width: min(640px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0,0,0,.48);
}
dialog.modal::backdrop { background: rgba(2,8,16,.70); backdrop-filter: blur(6px); }
dialog.modal > form { padding: 22px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 3px; }
.modal-head h2 { margin: 4px 0 0; font-size: 19px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }

/* Auth */
.auth-body { min-height: 100vh; margin: 0; background: linear-gradient(135deg, #07101d, #0b1828); }
html[data-ui="light"] .auth-body { background: #eef4fb; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .95fr) minmax(430px, .75fr); }
.auth-showcase {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 74px);
  background:
    radial-gradient(circle at 18% 16%, rgba(70,149,255,.26), transparent 28%),
    radial-gradient(circle at 82% 75%, rgba(115,76,226,.20), transparent 36%),
    linear-gradient(145deg, #0b1a2d, #07101d);
}
.auth-showcase::after { content:""; position:absolute; width:430px; height:430px; right:-190px; top:18%; border-radius:50%; border:1px solid rgba(100,170,255,.13); box-shadow:inset 0 0 80px rgba(55,126,226,.08); }
.auth-logo { position: relative; z-index: 2; }
.auth-showcase-copy { position: relative; z-index: 2; max-width: 620px; }
.auth-showcase-copy h1 { margin: 7px 0 13px; font-size: clamp(35px, 5vw, 63px); line-height: 1.02; letter-spacing: -.052em; }
.auth-showcase-copy p { max-width: 520px; margin: 0; color: #9eb3c8; font-size: 15px; line-height: 1.65; }
.auth-feature-row { position: relative; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.auth-feature-row span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(148,180,218,.14); border-radius: 99px; color: #a9bfd6; background: rgba(255,255,255,.025); font-size: 9px; }
.auth-panel { display: grid; place-items: center; padding: 28px; background: color-mix(in srgb, var(--bg-soft) 90%, transparent); }
.auth-card { width: min(470px, 100%); padding: 29px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card-head { margin-bottom: 20px; }
.auth-card-head h1, .auth-card-head h2 { margin: 5px 0 7px; font-size: 25px; letter-spacing: -.03em; }
.auth-card-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.auth-switch { margin: 17px 0 0; color: var(--muted); text-align: center; font-size: 9px; }
.auth-switch a { color: #67a9ff; }
.simple-auth { display: grid; place-items: center; padding: 24px; }
.standalone-card { width: min(500px, 100%); }
.standalone-card .auth-logo { margin-bottom: 27px; }
.notice-card { width: min(520px, 100%); padding: 34px; text-align: center; }
.notice-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 16px; color: #71adff; background: var(--primary-soft); }
.notice-icon .icon { width: 25px; height: 25px; }
.notice-card h1 { margin: 6px 0 9px; font-size: 26px; }
.notice-card p { margin: 0 auto 22px; max-width: 420px; color: var(--muted); font-size: 11px; line-height: 1.6; }

/* Installer */
.installer-body { align-items: start; }
.installer-wrap { width: min(930px, 100%); padding: 36px 0 50px; }
.installer-brand { margin-bottom: 20px; }
.installer-card { width: 100%; padding: 30px; }
.requirement-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 17px 0; }
.requirement { display: grid; grid-template-columns: 22px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; column-gap: 7px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.requirement > .icon { grid-row: 1 / span 2; }
.requirement b { font-size: 9px; }
.requirement small { color: var(--muted); font-size: 8px; }
.requirement.ok > .icon { color: var(--green); }
.requirement.bad > .icon { color: var(--red); }
.installer-step { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 13px; padding: 18px 0; border-top: 1px solid var(--line); }
.installer-step > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg,#4598ff,#6259dc); font-size: 10px; font-weight: 850; }
.installer-step h2 { margin: 2px 0 13px; font-size: 15px; }
.installer-foot { margin: 15px 0 0; color: var(--muted); text-align: center; font-size: 8px; }
.migration-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 16px 0; }
.migration-stats div { display: grid; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.migration-stats strong { font-size: 21px; }
.migration-stats span { color: var(--muted); font-size: 8px; }

/* ACP */
.admin-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 20px; align-items: start; }
.admin-nav {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.admin-nav-head { display: grid; padding: 16px 15px 13px; border-bottom: 1px solid var(--line); }
.admin-nav-kicker { color: #669ff0; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.admin-nav-head strong { margin-top: 3px; font-size: 12px; }
.admin-nav nav { display: grid; padding: 7px; }
.admin-nav nav a, .admin-back { min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border-radius: 9px; color: var(--muted); font-size: 10px; font-weight: 650; }
.admin-nav nav a:hover, .admin-back:hover { color: var(--text); background: rgba(61,140,255,.06); }
.admin-nav nav a.active { color: #7fb6ff; background: var(--primary-soft); }
.admin-nav nav a .icon, .admin-back .icon { width: 16px; height: 16px; }
.admin-back { margin: 5px 7px 8px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 8px; }
.admin-back .icon { transform: rotate(180deg); }
.admin-content { min-width: 0; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 15px; }
.admin-stat { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); }
.admin-stat > span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: #6ba9ff; background: var(--primary-soft); }
.admin-stat > div { display: grid; }
.admin-stat small { color: var(--muted); font-size: 8px; }
.admin-stat strong { margin-top: 1px; font-size: 20px; letter-spacing: -.03em; }
.admin-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(240px,.65fr); gap: 14px; }
.admin-side-stack { display: grid; gap: 14px; align-content: start; }
.system-card h2 { margin: 5px 0 4px; font-size: 15px; }
.system-card p { margin: 0 0 9px; color: var(--muted); font-size: 9px; }
.system-card code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-soft); background: rgba(0,0,0,.08); font-size: 8px; }
.system-ok { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--green); font-size: 8px; }
.people-list { display: grid; }
.people-list > div { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.people-list > div:first-child { border-top: 0; }
.people-list > div > span:nth-child(2) { display: grid; }
.people-list b { font-size: 10px; }
.people-list small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.table-surface { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: middle; }
th { color: var(--muted); background: rgba(255,255,255,.012); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
tbody tr:hover { background: rgba(61,140,255,.025); }
.user-cell { display: flex; align-items: center; gap: 8px; }
.user-cell > span:last-child { display: grid; }
.user-cell b { font-size: 10px; }
.user-cell small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.stack-selects { display: flex; gap: 6px; min-width: 260px; }
.stack-selects select { padding: 7px 8px; font-size: 9px; }
.mini-check { display: inline-flex; align-items: center; gap: 5px; }
.group-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.group-card { padding: 17px; }
.group-card-head { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 10px; align-items: start; margin-bottom: 14px; }
.group-card-head h2 { margin: 0; font-size: 14px; }
.group-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.compact-form { gap: 10px; }
.permission-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.permission-chips label { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 8px; font-weight: 650; cursor: pointer; }
.permission-chips input { margin: 0; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.permissions-surface { overflow: hidden; }
.permission-table-wrap { overflow: auto; }
.permission-table th:first-child { min-width: 205px; }
.permission-table th small { display: block; margin-top: 2px; text-transform: none; letter-spacing: 0; font-size: 8px; font-weight: 400; }
.permission-table th:not(:first-child), .permission-table td:not(:first-child) { min-width: 155px; text-align: center; }
.perm-cell { display: flex; justify-content: center; gap: 5px; }
.perm-cell label { display: grid; place-items: center; gap: 3px; color: var(--muted); font-size: 7px; }
.perm-cell input { margin: 0; }
.permission-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.permission-legend b { color: var(--text); }
.surface-footer { display: flex; justify-content: flex-end; padding: 13px 14px; border-top: 1px solid var(--line); }
.audit-row { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; padding: 13px 16px; border-top: 1px solid var(--line); }
.audit-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #6ba9ff; background: var(--primary-soft); }
.audit-row strong { font-size: 10px; }
.audit-row p { margin: 4px 0 2px; color: var(--text-soft); font-size: 9px; overflow-wrap: anywhere; }
.audit-row small { color: var(--muted); font-size: 8px; }
.settings-stack { display: grid; gap: 13px; }
.settings-section { display: grid; gap: 13px; }
.settings-section-head { display: flex; align-items: center; gap: 11px; }
.settings-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #6ba9ff; background: var(--primary-soft); }
.settings-section-head h2 { margin: 0; font-size: 14px; }
.settings-section-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.sticky-save { position: sticky; bottom: 12px; z-index: 12; display: flex; justify-content: flex-end; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--surface-solid) 86%, transparent); backdrop-filter: blur(16px); box-shadow: var(--shadow-soft); }
.theme-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.theme-card { overflow: hidden; }
.theme-card.selected { box-shadow: inset 0 0 0 1px rgba(61,140,255,.34), var(--shadow-soft); }
.theme-preview { height: 180px; display: grid; grid-template-columns: 25% 1fr; grid-template-rows: 26% 1fr; gap: 8px; padding: 15px; background: #07111f; }
.theme-preview span { border-radius: 8px; background: rgba(61,140,255,.12); border: 1px solid rgba(121,174,239,.08); }
.theme-preview span:first-child { grid-row: 1 / span 2; }
.theme-preview span:nth-child(2) { background: rgba(255,255,255,.04); }
.theme-preview.aurora { background: #edf3fa; }
.theme-preview.aurora span { background: #fff; border-color: rgba(46,78,111,.08); box-shadow: 0 5px 16px rgba(48,75,105,.07); }
.theme-info { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; }
.theme-info h2 { margin: 0; font-size: 14px; }
.theme-info p { margin: 4px 0; color: var(--muted); font-size: 9px; }
.theme-info small { color: var(--muted-2); font-size: 8px; }

/* Error */
.error-state { max-width: 720px; margin: 70px auto; padding: 50px 28px; text-align: center; }
.error-code { display: block; color: #5fa1ff; font-size: 64px; font-weight: 900; letter-spacing: -.06em; }
.error-state h1 { margin: -4px 0 8px; }
.error-state p { margin: 0 auto 22px; max-width: 540px; color: var(--muted); }

@media (max-width: 1120px) {
  .main-nav a span { display: none; }
  .main-nav a { padding: 0 9px; }
  .header-search { width: 180px; }
  .welcome-panel { grid-template-columns: 1fr; }
  .welcome-stats { min-width: 0; max-width: 520px; }
  .welcome-stats > div:first-child { border-left: 0; padding-left: 0; }
  .home-grid, .admin-grid { grid-template-columns: 1fr; }
  .home-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .board-row { grid-template-columns: 44px minmax(220px,1fr) 130px 22px; }
  .board-latest { display: none; }
  .topic-row { grid-template-columns: 40px minmax(220px,1fr) 60px 60px 18px; }
  .topic-last { display: none; }
  .member-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 860px) {
  :root { --header-height: 64px; }
  .header-inner { width: min(100% - 24px, var(--container)); gap: 10px; }
  .mobile-nav-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--text); cursor: pointer; order: -1; }
  .brand-copy small { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 12px;
    right: 12px;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: grid; }
  .main-nav a span { display: inline; }
  .main-nav a { justify-content: flex-start; }
  .header-search { display: none; }
  .account-copy { display: none; }
  .header-tools > .button { display: none; }
  .account-menu { padding-left: 4px; }
  .page-container { width: min(100% - 24px, var(--container)); padding-top: 24px; }
  .page-intro { min-height: auto; align-items: flex-start; }
  .welcome-panel { padding: 28px; min-height: 220px; }
  .home-side { grid-template-columns: 1fr; }
  .board-row { grid-template-columns: 42px minmax(0,1fr) 22px; min-height: 74px; }
  .board-stats { display: none; }
  .topic-row { grid-template-columns: 36px minmax(0,1fr) 60px 18px; }
  .topic-row .topic-number:nth-of-type(4) { display: none; }
  .thread-header { align-items: flex-start; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; }
  .admin-nav nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-nav nav a { justify-content: center; }
  .admin-nav-head, .admin-back { display: none; }
  .group-grid, .theme-grid { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-showcase { min-height: 320px; padding: 34px 28px; }
  .auth-showcase-copy h1 { font-size: 40px; }
  .auth-panel { padding: 24px 14px 40px; }
  .requirement-row { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .brand-copy { display: none; }
  .header-tools { gap: 5px; }
  .round-button { width: 36px; height: 36px; }
  .page-container { width: min(100% - 18px, var(--container)); padding: 18px 0 42px; }
  .footer-inner { width: min(100% - 18px, var(--container)); flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
  .page-intro, .thread-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-intro h1, .thread-header h1 { font-size: 29px; }
  .welcome-panel { padding: 23px 20px; border-radius: 17px; }
  .welcome-copy h1 { font-size: 32px; }
  .welcome-stats { grid-template-columns: 1fr 1fr 1fr; }
  .welcome-stats > div { padding: 8px 10px; }
  .welcome-stats strong { font-size: 20px; }
  .surface { border-radius: 14px; }
  .surface-pad { padding: 17px; }
  .category-head { align-items: flex-start; }
  .category-head > span { display: none; }
  .board-row { grid-template-columns: 38px minmax(0,1fr) 16px; gap: 9px; padding: 10px 12px; }
  .board-icon { width: 38px; height: 38px; }
  .board-copy small { white-space: normal; line-height: 1.4; }
  .topic-row, .compact-topics .topic-row { grid-template-columns: 34px minmax(0,1fr) 16px; gap: 9px; padding: 10px 12px; }
  .topic-number, .topic-last { display: none; }
  .compact-topics .topic-row .row-arrow { display: block; }
  .post-head { align-items: flex-start; }
  .post-time { display: grid; text-align: right; gap: 2px; }
  .post-content { padding: 18px 15px; }
  .post-footer { padding: 7px 10px; }
  .member-grid, .market-grid, .extension-grid { grid-template-columns: 1fr; }
  .extension-card { grid-template-columns: 40px minmax(0,1fr); }
  .extension-card form { grid-column: 1 / -1; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
  dialog.modal > form { padding: 18px; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-nav nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-nav nav a { justify-content: flex-start; }
  .group-card-head { grid-template-columns: 12px minmax(0,1fr); }
  .group-card-head > .status-chip { grid-column: 2; justify-self: start; }
  .card-actions { align-items: flex-start; flex-direction: column; }
  .theme-info { align-items: flex-start; flex-direction: column; }
  .theme-info form, .theme-info .button { width: 100%; }
  .requirement-row, .migration-stats { grid-template-columns: 1fr 1fr; }
  .installer-wrap { padding: 18px 0 36px; }
  .installer-card { padding: 20px 16px; }
  .installer-step { grid-template-columns: 1fr; }
  .auth-showcase { min-height: 280px; }
  .auth-showcase-copy h1 { font-size: 33px; }
  .auth-feature-row { display: none; }
  .auth-card { padding: 22px 18px; }
}

@media (max-width: 420px) {
  .welcome-stats { grid-template-columns: 1fr; }
  .welcome-stats > div { border-left: 0; border-top: 1px solid var(--line); padding: 8px 0; }
  .welcome-stats > div:first-child { border-top: 0; }
  .admin-stat-grid, .requirement-row, .migration-stats { grid-template-columns: 1fr; }
  .post-time time { display: none; }
  .site-header .notify-button:nth-of-type(2) { display: none; }
}

/* NodaX Forum Beta 3: profiles, editor and moderation */
.thread-header-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.thread-header-actions form { margin:0; }
.moderation-panel { margin: 0 0 14px; overflow: hidden; }
.moderation-panel summary { display:flex; align-items:center; gap:8px; padding:12px 15px; color:var(--text-soft); font-size:10px; font-weight:700; cursor:pointer; list-style:none; }
.moderation-panel summary::-webkit-details-marker { display:none; }
.moderation-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:0 15px 14px; border-top:1px solid var(--line); padding-top:12px; }
.moderation-actions form { margin:0; }
.move-thread-form { display:flex; align-items:center; gap:6px; }
.move-thread-form select { min-width:180px; }
.post-time small { display:block; margin-top:3px; color:var(--muted-2); font-size:7px; }
.post-user strong a { color:inherit; }
.post-footer > div { display:flex; align-items:center; flex-wrap:wrap; gap:2px; }
.post-footer form { margin:0; }
.post-action.danger { color:#ff8794; }
.editor-shell { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); }
.editor-shell label { display:block; }
.editor-shell textarea { border:0; border-radius:0; background:transparent; box-shadow:none; resize:vertical; }
.editor-toolbar { min-height:38px; display:flex; align-items:center; gap:5px; padding:6px 8px; border-bottom:1px solid var(--line); }
.editor-toolbar button { min-width:30px; min-height:27px; padding:0 8px; border:1px solid var(--line); border-radius:7px; color:var(--text-soft); background:rgba(255,255,255,.02); cursor:pointer; font-size:9px; }
.editor-toolbar button:hover { color:var(--text); background:var(--primary-soft); }
.editor-toolbar span { margin-left:auto; color:var(--muted); font-size:8px; }
.post-quote { margin:12px 0; padding:11px 13px; border-left:3px solid var(--primary); border-radius:0 9px 9px 0; background:var(--primary-soft); color:var(--text-soft); }
.post-quote strong { display:block; margin-bottom:6px; color:var(--text); font-size:9px; }
.post-code { overflow:auto; margin:12px 0; padding:12px 14px; border:1px solid var(--line); border-radius:9px; background:rgba(0,0,0,.18); font-size:9px; line-height:1.55; }
.mention { color:#75b4ff; font-weight:700; }
.locked-notice { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:14px; }
.editor-page { max-width:900px; margin:0 auto; }
.member-card { display:block; color:inherit; transition:transform .16s ease,border-color .16s ease; }
.member-card:hover { transform:translateY(-2px); border-color:rgba(90,157,255,.22); }
.profile-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px; margin-bottom:14px; }
.profile-identity { display:flex; align-items:center; gap:16px; min-width:0; }
.avatar-profile { width:72px; height:72px; font-size:22px; }
.profile-identity h1 { margin:3px 0 5px; font-size:28px; }
.profile-identity p { margin:0; color:var(--muted); font-size:9px; }
.profile-stats { display:grid; grid-template-columns:repeat(3,minmax(90px,1fr)); min-width:320px; }
.profile-stats span { display:grid; padding:8px 16px; border-left:1px solid var(--line); }
.profile-stats strong { font-size:21px; }
.profile-stats small { margin-top:2px; color:var(--muted); font-size:8px; }
.profile-grid { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:14px; margin-bottom:14px; }
.profile-bio { margin:0; color:var(--text-soft); font-size:10px; line-height:1.75; white-space:normal; }
.profile-status h2 { margin:5px 0 4px; font-size:15px; }
.profile-status p { margin:0; font-size:11px; }
.profile-status small { color:var(--muted); font-size:8px; }
.profile-activity { overflow:hidden; }
.profile-activity-row { display:grid; grid-template-columns:34px minmax(0,1fr) 18px; align-items:start; gap:10px; padding:13px 16px; border-top:1px solid var(--line); color:inherit; }
.profile-activity-row:hover { background:rgba(61,140,255,.025); }
.profile-activity-row > span:first-child { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; color:#6ba9ff; background:var(--primary-soft); }
.profile-activity-row strong { display:block; font-size:10px; }
.profile-activity-row small { color:var(--muted); font-size:8px; }
.profile-activity-row p { margin:4px 0 0; color:var(--text-soft); font-size:9px; }
.profile-edit-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:14px; }
.profile-preview { text-align:center; }
.profile-preview .avatar-profile { margin:0 auto 12px; }
.profile-preview h2 { margin:0 0 5px; }
.profile-preview p { margin:0 0 16px; color:var(--muted); }
.forum-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.admin-structure-list { display:grid; gap:9px; }
.structure-card,.structure-create { display:grid; gap:9px; padding:12px; border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.012); }
.structure-create { margin-top:14px; background:var(--primary-soft); }
.structure-title-row { display:grid; grid-template-columns:minmax(0,1fr) 110px; gap:8px; }
.button-small { min-height:31px; padding:0 9px; font-size:8px; }
.account-copy { text-decoration:none; color:inherit; }

@media (max-width: 760px) {
  .thread-header-actions { width:100%; justify-content:flex-start; }
  .moderation-actions,.move-thread-form { align-items:stretch; flex-direction:column; }
  .moderation-actions form,.moderation-actions .button,.move-thread-form select { width:100%; }
  .profile-hero { align-items:flex-start; flex-direction:column; }
  .profile-stats { width:100%; min-width:0; }
  .profile-stats span:first-child { border-left:0; padding-left:0; }
  .profile-grid,.profile-edit-layout,.forum-admin-grid { grid-template-columns:1fr; }
  .editor-toolbar span { display:none; }
  .structure-title-row { grid-template-columns:1fr; }
}

/* NodaX Forum 1.0 Beta 3.2 — discussion and editor redesign */
.thread-view { width: 100%; }
.thread-breadcrumbs { margin-bottom: 14px; min-height: 28px; }
.thread-breadcrumbs > a:first-child { display:inline-grid; place-items:center; }
.thread-breadcrumbs > a:first-child .icon { width:14px; height:14px; }

.thread-hero {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 18px 22px;
  border-radius: 15px;
  box-shadow: none;
}
.thread-hero-main { min-width:0; display:flex; align-items:center; gap:16px; }
.avatar-thread { width:58px; height:58px; font-size:16px; border:2px solid rgba(255,255,255,.15); }
.thread-hero-copy { min-width:0; }
.thread-hero-copy h1 { margin:3px 0 7px; font-size:clamp(25px,2.6vw,34px); line-height:1.08; letter-spacing:-.035em; }
.thread-hero-copy p { margin:0; display:flex; align-items:center; flex-wrap:wrap; gap:5px; color:var(--muted); font-size:10px; }
.thread-hero-copy p .icon { width:13px; height:13px; }
.thread-hero-copy p a { color:#7fc1ff; }
.thread-hero-actions { position:relative; display:flex; align-items:center; justify-content:flex-end; gap:7px; flex-wrap:wrap; }
.thread-hero-actions form { margin:0; }
.button-icon { width:39px; padding:0; color:var(--text-soft); border-color:var(--line); background:rgba(255,255,255,.025); }
.thread-share-button.copied { color:var(--green); border-color:rgba(83,215,160,.32); background:rgba(83,215,160,.09); }
.thread-more-menu { position:relative; }
.thread-more-menu > summary { list-style:none; }
.thread-more-menu > summary::-webkit-details-marker { display:none; }
.thread-more-menu[open] > summary { color:#8cc2ff; background:var(--primary-soft); }
.thread-more-popover {
  position:absolute; z-index:40; top:47px; right:0; width:270px;
  padding:7px; border:1px solid var(--line-strong); border-radius:12px;
  background:color-mix(in srgb, var(--surface-solid) 96%, transparent); box-shadow:0 18px 55px rgba(0,0,0,.32); backdrop-filter:blur(18px);
}
.thread-more-popover form { margin:0; }
.thread-more-popover button { width:100%; min-height:36px; display:flex; align-items:center; gap:8px; padding:0 10px; border:0; border-radius:8px; color:var(--text-soft); background:transparent; cursor:pointer; text-align:left; font-size:10px; }
.thread-more-popover button:hover { color:var(--text); background:rgba(255,255,255,.045); }
.thread-more-popover button.danger { color:#ff8c98; }
.thread-more-popover .icon { width:14px; height:14px; }
.thread-move-form { padding:6px 6px 4px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.thread-move-form label { display:grid; gap:5px; color:var(--muted); font-size:8px; }
.thread-move-form select { width:100%; min-height:34px; }

.woltlab-post-list { display:grid; gap:15px; }
.post-card-woltlab {
  display:grid;
  grid-template-columns: 205px minmax(0,1fr);
  min-height:230px;
  overflow:hidden;
  border-radius:15px;
  box-shadow:none;
}
.post-author-column {
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:18px 16px;
  border-right:1px solid var(--line-strong);
  background:linear-gradient(165deg, rgba(70,145,211,.13), rgba(255,255,255,.018));
}
.avatar-post { width:84px; height:84px; font-size:22px; border:2px solid rgba(255,255,255,.22); box-shadow:0 8px 25px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.08); }
.post-author-name { margin-top:10px; color:#6fc4ff; font-size:15px; font-weight:700; }
.post-author-rank { --rank-color:#4f9bff; display:inline-flex; align-items:center; justify-content:center; min-height:24px; margin-top:6px; padding:0 8px; border:1px solid color-mix(in srgb, var(--rank-color) 46%, var(--line)); border-radius:5px; color:var(--text); background:color-mix(in srgb, var(--rank-color) 12%, transparent); font-size:9px; font-weight:700; }
.post-author-stats { width:100%; display:grid; gap:4px; margin:18px 0 0; padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-size:9px; }
.post-author-stats > div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.post-author-stats dt,.post-author-stats dd { margin:0; }
.post-author-stats dd { color:var(--text-soft); text-align:right; }
.post-main-column { min-width:0; display:flex; flex-direction:column; }
.post-meta-row { min-height:39px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:8px 16px; border-bottom:1px solid rgba(139,176,219,.08); color:var(--muted); font-size:9px; }
.post-meta-row > div { display:flex; align-items:center; gap:8px; }
.post-number { color:#9dc9f4; font-weight:700; }
.post-edited { color:var(--muted-2); font-size:8px; }
.post-content-woltlab { min-height:125px; padding:17px 20px 20px; color:var(--text); font-size:12px; line-height:1.7; }
.post-content-woltlab p:first-child { margin-top:0; }
.post-inline-image { display:block; max-width:100%; height:auto; margin:12px 0; border-radius:3px; }
.post-link { color:#72baff; text-decoration:underline; text-decoration-color:rgba(114,186,255,.35); text-underline-offset:2px; }
.post-align-center { text-align:center; }
.post-align-right { text-align:right; }
.post-list-bb { padding-left:22px; }
.post-image-grid { display:grid; gap:10px; padding:0 20px 20px; }
.post-image-grid.multiple { grid-template-columns:repeat(2,minmax(0,1fr)); }
.post-image-link { display:block; overflow:hidden; border:1px solid var(--line); border-radius:3px; background:#06101b; }
.post-image-link img { display:block; width:100%; max-height:680px; object-fit:contain; background:#06101b; }
.post-file-attachments { padding:0 20px 18px; }
.post-footer-woltlab { margin-top:auto; min-height:44px; padding:6px 13px; border-top:1px solid var(--line); }
.post-footer-actions { justify-content:flex-end; }
.post-footer-woltlab .post-action { min-height:29px; padding:0 7px; color:#9ab1c8; }
.post-footer-woltlab .post-action .icon { width:13px; height:13px; }
.post-footer-woltlab .post-action:hover { color:#dff2ff; background:rgba(103,184,255,.09); }
.post-footer-woltlab .post-action.danger { color:#ff8491; }

.reply-composer {
  display:grid;
  grid-template-columns:205px minmax(0,1fr);
  margin-top:18px;
  overflow:hidden;
  border-radius:15px;
  box-shadow:none;
}
.reply-author-column {
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:18px 16px;
  border-right:1px solid var(--line-strong);
  background:linear-gradient(165deg, rgba(70,145,211,.13), rgba(255,255,255,.018));
}
.reply-author-column strong { margin-top:10px; color:#6fc4ff; font-size:14px; }
.reply-editor-form { min-width:0; margin:12px; }
.editor-shell-pro { position:relative; border-radius:10px; background:rgba(3,14,27,.22); }
.editor-toolbar-pro { min-height:42px; gap:0; padding:0 7px; background:rgba(255,255,255,.018); }
.editor-tool-group { display:flex; align-items:center; padding:0 4px; border-right:1px solid var(--line); }
.editor-toolbar-pro button { width:34px; min-width:34px; height:33px; min-height:33px; padding:0; border:0; border-radius:5px; background:transparent; font-size:12px; }
.editor-toolbar-pro button:hover:not(:disabled), .editor-toolbar-pro button.active { background:rgba(91,174,247,.12); color:#8ed0ff; }
.editor-toolbar-pro button:disabled { opacity:.28; cursor:not-allowed; }
.editor-toolbar-pro button .icon { width:15px; height:15px; }
.editor-toolbar-pro .editor-expand { margin-left:auto; }
.editor-shell-pro textarea {
  width:100%;
  min-height:205px;
  padding:15px 16px;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  color:var(--text);
  background:rgba(7,20,36,.30);
  resize:vertical;
  outline:0;
  font-size:12px;
  line-height:1.65;
}
.editor-shell-pro textarea:focus { box-shadow:inset 0 0 0 1px rgba(84,171,255,.2); }
.editor-preview { min-height:205px; padding:15px 16px; border-top:1px solid var(--line); color:var(--text); background:rgba(7,20,36,.30); font-size:12px; line-height:1.7; }
.editor-preview img { max-width:100%; height:auto; }
.editor-panels { border-top:1px solid var(--line); }
.editor-panel { padding:12px; background:rgba(255,255,255,.012); }
.smiley-grid { display:flex; flex-wrap:wrap; gap:6px; }
.smiley-grid button { width:36px; height:34px; border:1px solid var(--line); border-radius:7px; background:rgba(255,255,255,.025); cursor:pointer; font-size:18px; }
.smiley-grid button:hover { background:var(--primary-soft); }
.composer-upload { position:relative; display:flex; align-items:center; gap:10px; min-height:55px; padding:9px 12px; border:1px dashed var(--line-strong); border-radius:9px; cursor:pointer; }
.composer-upload > .icon { width:20px; height:20px; color:#68b6ff; }
.composer-upload span { display:grid; }
.composer-upload b { font-size:10px; }
.composer-upload small { margin-top:2px; color:var(--muted); font-size:8px; }
.composer-upload input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.composer-setting { display:flex; align-items:center; gap:11px; }
.composer-setting > span { width:34px; height:34px; display:grid; place-items:center; border-radius:8px; color:#73bdff; background:var(--primary-soft); }
.composer-setting > span .icon { width:16px; height:16px; }
.composer-setting > div { display:grid; }
.composer-setting b { font-size:10px; }
.composer-setting small { color:var(--muted); font-size:8px; }
.editor-bottom-bar { min-height:48px; display:flex; align-items:stretch; justify-content:space-between; border-top:1px solid var(--line); }
.editor-tabs { display:flex; align-items:stretch; min-width:0; }
.editor-tabs button { min-height:47px; display:inline-flex; align-items:center; gap:7px; padding:0 14px; border:0; border-right:1px solid var(--line); color:#64b6ef; background:transparent; cursor:pointer; font-size:9px; white-space:nowrap; }
.editor-tabs button:hover,.editor-tabs button.active { color:#9cd7ff; background:rgba(81,169,238,.08); }
.editor-tabs .icon { width:14px; height:14px; }
.editor-submit-actions { display:flex; align-items:center; gap:7px; padding:7px 8px; }
.editor-submit-actions .button { min-height:34px; }
.editor-shell-pro.is-expanded { position:fixed; z-index:999; inset:18px; display:flex; flex-direction:column; border:1px solid var(--line-strong); border-radius:14px; background:var(--surface-solid); box-shadow:0 30px 100px rgba(0,0,0,.55); }
.editor-shell-pro.is-expanded textarea,.editor-shell-pro.is-expanded .editor-preview { flex:1; min-height:0; resize:none; }
.editor-shell-pro.is-expanded .editor-panels { flex:0 0 auto; }
.reply-login-state { grid-column:1/-1; }

@media (max-width: 900px) {
  .thread-hero { align-items:flex-start; flex-direction:column; }
  .thread-hero-actions { width:100%; justify-content:flex-start; }
  .thread-more-popover { left:0; right:auto; }
  .post-card-woltlab,.reply-composer { grid-template-columns:1fr; }
  .post-author-column,.reply-author-column { min-height:auto; flex-direction:row; align-items:center; gap:10px; padding:12px 14px; border-right:0; border-bottom:1px solid var(--line); }
  .post-author-column .avatar-post,.reply-author-column .avatar-post { width:48px; height:48px; font-size:13px; }
  .post-author-name,.reply-author-column strong { margin:0; }
  .post-author-rank { margin:0 0 0 auto; }
  .post-author-stats { display:none; }
  .reply-editor-form { margin:9px; }
  .editor-bottom-bar { flex-direction:column; }
  .editor-tabs { overflow-x:auto; }
  .editor-submit-actions { justify-content:flex-end; border-top:1px solid var(--line); }
}

@media (max-width: 620px) {
  .thread-hero { padding:14px; }
  .avatar-thread { width:48px; height:48px; }
  .thread-hero-copy h1 { font-size:24px; }
  .thread-hero-actions .button:not(.button-icon) { min-height:36px; padding:0 10px; font-size:10px; }
  .post-meta-row { padding:7px 11px; }
  .post-content-woltlab { padding:15px 12px; }
  .post-image-grid,.post-file-attachments { padding-left:12px; padding-right:12px; }
  .post-image-grid.multiple { grid-template-columns:1fr; }
  .post-footer-spacer { display:none; }
  .post-footer-woltlab { justify-content:flex-end; }
  .post-footer-actions { gap:0; overflow-x:auto; }
  .post-footer-woltlab .post-action { font-size:0; }
  .post-footer-woltlab .post-action span { font-size:9px; }
  .editor-tool-group:nth-of-type(3) { display:none; }
  .editor-tabs button { padding:0 10px; }
  .editor-tabs button { font-size:0; }
  .editor-tabs button .icon { width:16px; height:16px; }
}

/* NodaX Forum Beta 4 — community features */
.board-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.board-actions form{margin:0}.thread-prefix,.solved-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid color-mix(in srgb,var(--prefix-color,#31c48d) 65%,transparent);background:color-mix(in srgb,var(--prefix-color,#31c48d) 14%,transparent);color:var(--prefix-color,#31c48d);border-radius:999px;padding:3px 9px;font-size:.75rem;font-weight:800;vertical-align:middle}.solved-badge{--prefix-color:#31c48d}.poll-card{padding:22px;margin:0 0 16px}.poll-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.poll-head h2{margin:4px 0 5px}.poll-head>.icon{width:32px;height:32px;color:var(--accent)}.poll-options{display:grid;gap:10px;margin-top:18px}.poll-option{display:grid;gap:6px}.poll-choice{display:flex;align-items:center;gap:10px}.poll-choice b{flex:1}.poll-choice em{font-style:normal;color:var(--muted);font-size:.85rem}.poll-bar{display:block;height:6px;border-radius:999px;background:var(--line);overflow:hidden}.poll-bar i{display:block;height:100%;background:var(--accent);border-radius:inherit}.post-card.is-solution{border-color:color-mix(in srgb,#31c48d 55%,var(--line));box-shadow:0 0 0 1px color-mix(in srgb,#31c48d 15%,transparent)}.solution-ribbon{position:absolute;right:18px;top:-12px;background:#1f9d72;color:#fff;border-radius:999px;padding:5px 11px;font-size:.76rem;font-weight:800;z-index:2}.post-card{position:relative}.post-signature{margin-top:24px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:.88rem}.reaction-menu{position:relative}.reaction-menu>summary{list-style:none;cursor:pointer}.reaction-menu>summary::-webkit-details-marker{display:none}.reaction-popover{position:absolute;bottom:calc(100% + 8px);right:0;display:flex;gap:5px;padding:8px;background:var(--panel-strong,var(--panel));border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 35px rgba(0,0,0,.28);z-index:20}.reaction-popover form{margin:0}.reaction-popover button{border:0;background:transparent;border-radius:9px;font-size:1.25rem;padding:7px;cursor:pointer}.reaction-popover button:hover,.reaction-popover button.active{background:var(--accent-soft)}.solution-action.active{color:#31c48d}.filter-chips{display:flex;gap:8px;flex-wrap:wrap;margin:-5px 0 16px}.filter-chips a{padding:7px 11px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:.82rem}.filter-chips a.active{background:var(--accent-soft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}.notification-row.unread{background:color-mix(in srgb,var(--accent) 8%,transparent)}.form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-hero.has-cover{position:relative;overflow:hidden;background-image:linear-gradient(90deg,color-mix(in srgb,var(--panel) 93%,transparent),color-mix(in srgb,var(--panel) 74%,transparent)),var(--profile-cover);background-size:cover;background-position:center}.profile-facts,.social-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px;color:var(--muted)}.social-links span{padding:6px 9px;border:1px solid var(--line);border-radius:10px}.composer-details{border:1px solid var(--line);border-radius:12px;overflow:hidden}.composer-details summary{padding:12px 14px;cursor:pointer;display:flex;gap:8px;align-items:center;font-weight:700}.poll-builder{padding:0 14px 14px;display:grid;gap:12px}.check-line{display:flex!important;flex-direction:row!important;align-items:center;gap:9px}.check-line input{width:auto}.draft-status{font-size:.76rem;color:var(--muted);margin-right:auto}.composer-upload.is-dragging{outline:2px dashed var(--accent);background:var(--accent-soft)}.post-spoiler{margin:12px 0;border:1px solid var(--line);border-radius:10px;padding:10px}.post-spoiler summary{cursor:pointer;font-weight:800}.post-spoiler div{padding-top:10px}.post-table-wrap{overflow:auto;margin:14px 0}.post-table{border-collapse:collapse;width:100%}.post-table th,.post-table td{padding:9px 11px;border:1px solid var(--line);text-align:left}.post-table th{background:var(--accent-soft)}.post-heading{margin:20px 0 8px}.compact-list>div{display:flex;align-items:center;gap:10px}.compact-list>div>small{flex:1}.modal-wide{width:min(860px,calc(100vw - 24px))}
@media(max-width:720px){.form-grid-2{grid-template-columns:1fr}.board-actions{width:100%}.board-actions form,.board-actions .button{width:100%}.reaction-popover{right:auto;left:0}.poll-card{padding:16px}}
.dashboard-config{margin:14px 0;padding:0}.dashboard-config summary{cursor:pointer;padding:12px 16px;display:flex;align-items:center;gap:8px;font-weight:750}.dashboard-toggle-grid{display:flex;gap:16px;flex-wrap:wrap;padding:0 16px 15px}.dashboard-toggle-grid label{display:flex;gap:7px;align-items:center;color:var(--muted);font-size:.85rem}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px;align-items:start}.dashboard-mini-list{display:grid}.dashboard-mini-list>a{display:flex;gap:11px;padding:12px 0;border-top:1px solid var(--line);color:inherit}.dashboard-mini-list>a:first-child{border-top:0}.dashboard-mini-list>a>.icon{color:var(--accent);flex:0 0 auto}.dashboard-mini-list b,.dashboard-mini-list small{display:block}.dashboard-mini-list small{color:var(--muted);margin-top:3px}.secret-code{display:block;padding:14px;border:1px solid var(--line);background:var(--panel-strong);border-radius:10px;letter-spacing:.12em;word-break:break-all;margin:12px 0 18px}.button-danger{background:#b42335;color:#fff;border-color:#d44052}@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}}
.image-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(3,10,18,.92);display:grid;place-items:center;padding:30px}.image-lightbox[hidden]{display:none}.image-lightbox img{max-width:min(1500px,96vw);max-height:92vh;border-radius:12px;box-shadow:0 30px 80px rgba(0,0,0,.5)}.image-lightbox button{position:fixed;right:24px;top:18px;border:0;background:rgba(255,255,255,.12);color:white;border-radius:999px;width:44px;height:44px;font-size:28px;cursor:pointer}.revision-item{border-top:1px solid var(--line);padding:14px 0}.revision-item summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px}.revision-item summary small{color:var(--muted)}.revision-item .post-content{padding:16px 0}.revision-current{padding-bottom:18px}
.post-meta-actions{display:flex;align-items:center;gap:9px}.post-select{display:inline-flex;align-items:center}.post-select input{accent-color:var(--accent);width:16px;height:16px}.bulk-moderation-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 14px;margin:12px 0}.bulk-moderation-bar strong{margin-right:auto}.bulk-moderation-bar select,.bulk-moderation-bar input{width:auto;min-width:170px}.trash-list{display:grid}.trash-row{display:flex;justify-content:space-between;gap:18px;padding:14px 0;border-top:1px solid var(--line)}.trash-row:first-child{border-top:0}.trash-row small,.trash-row p{display:block;color:var(--muted);margin-top:4px}.trash-row .button-row{flex-wrap:nowrap}.trash-row form{margin:0}@media(max-width:760px){.trash-row{display:grid}.bulk-moderation-bar>*{width:100%!important}}
.security-sessions{margin-top:16px}.session-list,.security-log{display:grid}.session-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.session-row:first-child{border-top:0}.session-row>div{flex:1}.session-row b,.session-row small{display:block}.session-row small{color:var(--muted);margin-top:3px}.security-log>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line)}.security-log>div:first-child{border-top:0}

/* NodaX Forum 1.0 Beta 4 — online list, data tools */
.online-person{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--border);text-decoration:none;color:inherit}.online-person:last-child{border-bottom:0}.online-person small{display:block;color:var(--muted);margin-top:3px}.online-dot{font-size:.82rem;color:#52d38a}.settings-inline-actions{display:flex;justify-content:flex-start;margin-top:14px}.button-danger{background:#8d2f3b;color:#fff;border-color:#b54a58}.button-danger:hover{filter:brightness(1.08)}
