:root{
  --bg:#17191C;
  --bg-2:#202328;
  --panel:#25292E;
  --border:#353A40;
  --border-strong:#3E444B;
  --text:#E0E0E0;
  --text-2:#A0A5AA;
  --muted:#777D84;
  --accent:#4A90C2;
  --accent-hover:#3F7FAC;
  --danger:#C98080;
  --font:Arial,"Helvetica Neue",Helvetica,sans-serif;
  --font-head:Tahoma,Verdana,Arial,sans-serif;
  --radius:2px;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html.is-authed [data-guest-only]{display:none!important}
html.is-authed #welcome-panel{display:none!important}
html.is-authed:not(.is-session-ready) #session-greeting{visibility:hidden}
html{color-scheme:dark}

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--bg);
  color:var(--text);
  font:13px/1.5 var(--font);
}

img{max-width:100%}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible{outline:1px solid var(--accent);outline-offset:2px}
::selection{background:#33546B;color:#fff}

.wrap{
  width:100%;
  max-width:1000px;
  margin:0 auto;
  padding:0 16px;
}
.wrap.narrow{max-width:620px}
main.wrap{flex:1;padding-bottom:18px}

.site-header{background:var(--bg-2);border-bottom:1px solid var(--border)}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:52px;
}
.brand{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--text);
  text-decoration:none;
}
.brand:hover{text-decoration:none;color:#fff}
.brand img{
  display:block;
  width:30px;
  height:auto;
  mix-blend-mode:screen;
}
.brand-name{
  font:bold 17px/1.2 var(--font-head);
  letter-spacing:.01em;
}
.site-nav{display:flex;align-items:center;gap:16px;font:bold 12px/1.4 var(--font-head)}
.site-nav a{color:var(--text-2);text-decoration:none}
.site-nav a:hover{color:var(--text);text-decoration:none}
.site-nav a.is-active{color:var(--accent)}

.account{position:relative;display:none;margin-left:auto}
html.is-authed .account{display:block}
.account-trigger{
  display:flex;
  align-items:center;
  gap:6px;
  max-width:190px;
  padding:2px 3px;
  border:1px solid transparent;
  border-radius:var(--radius);
  background:none;
  color:var(--text-2);
  font:bold 12px/1.4 var(--font-head);
  cursor:pointer;
}
.account-trigger:hover,
.account-trigger[aria-expanded="true"]{background:#2B3036;border-color:var(--border);color:var(--text)}
.account-trigger:focus-visible{outline:1px solid var(--accent);outline-offset:2px}
.account-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.caret{font-size:9px;line-height:1;color:var(--muted)}
.account-dropdown{
  position:absolute;
  right:0;
  top:calc(100% + 5px);
  z-index:20;
  min-width:162px;
  padding:4px 0;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 4px 10px rgba(0,0,0,.25);
  text-align:left;
}
.account-dropdown a,
.account-dropdown button{
  display:block;
  width:100%;
  padding:6px 10px;
  border:0;
  background:none;
  color:var(--text-2);
  font:12px/1.5 var(--font);
  text-align:left;
  text-decoration:none;
  cursor:pointer;
}
.account-dropdown a:hover,
.account-dropdown button:hover{background:#2B3036;color:var(--text);text-decoration:none}
.account-dropdown button{border-top:1px solid var(--border);margin-top:3px;padding-top:7px}

.avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:24px;
  height:24px;
  border-radius:var(--radius);
  background:#55657A;
  color:#fff;
  font:bold 11px/1 var(--font-head);
  text-transform:uppercase;
  user-select:none;
}
.avatar-nav{border:1px solid rgba(255,255,255,.18)}
.avatar-lg{width:64px;height:64px;font-size:25px}
.avatar.has-image{overflow:hidden;background:transparent;padding:0}
.avatar.has-image img{display:block;width:100%;height:100%;object-fit:cover}

.guest-bar{background:var(--bg-2);border-bottom:1px solid var(--border);font-size:11px;color:var(--text-2)}
.guest-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding-top:5px;
  padding-bottom:5px;
}
.guest-inner a{color:var(--accent)}

.breadcrumb{padding:10px 0 8px;font-size:11px;color:var(--muted)}
.breadcrumb a{color:var(--text-2)}
.breadcrumb a:hover{color:var(--accent)}
.breadcrumb .sep{margin:0 5px;color:var(--muted)}

.panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  margin-bottom:14px;
}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:6px 12px;
  padding:7px 12px;
  background:var(--bg-2);
  border-bottom:1px solid var(--border);
  border-radius:var(--radius) var(--radius) 0 0;
}
.panel-head h1,
.panel-head h2{
  margin:0;
  font:bold 15px/1.35 var(--font-head);
  color:var(--text);
}
.panel-meta{font-size:11px;color:var(--muted);white-space:nowrap}
.panel-body{padding:14px}
.panel-body p{margin:0 0 9px}
.panel-body p:last-child{margin-bottom:0}
.panel-foot{
  padding:7px 12px;
  border-top:1px solid var(--border);
  background:var(--bg-2);
  border-radius:0 0 var(--radius) var(--radius);
  font-size:11px;
  color:var(--muted);
}

.welcome{display:flex;align-items:center;gap:20px;padding:18px}
.welcome-logo{
  display:block;
  flex:0 0 auto;
  width:120px;
  height:auto;
  mix-blend-mode:screen;
}
.welcome-copy{min-width:0}
.lead{font-size:15px;line-height:1.5;color:var(--text);margin:0 0 5px}
.muted{color:var(--text-2)}
.welcome-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.welcome-actions .btn{margin-top:0}

.boards-panel{margin-bottom:12px}
.board-columns{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:14px 18px;
  align-items:start;
}
.board-group{min-width:0}
.board-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  margin:0 0 2px;
  padding:0 0 4px;
  border-bottom:1px solid var(--border);
  font:bold 12px/1.4 var(--font-head);
  color:var(--accent);
  cursor:pointer;
  list-style:none;
  user-select:none;
}
.board-group-head::-webkit-details-marker{display:none}
.board-group-head:hover{color:var(--accent-hover)}
.board-group-head:focus-visible{outline:1px solid var(--accent);outline-offset:2px}
.board-group-chevron,
.board-item-chevron{
  display:inline-block;
  flex:0 0 auto;
  color:var(--muted);
  transition:transform .12s ease;
}
.board-group-chevron{font-size:8px}
.board-group:not([open]) > .board-group-head .board-group-chevron{transform:rotate(-90deg)}
.board-links{padding-top:1px}
.board-item-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  padding:2px 0;
  color:var(--text-2);
  font:11.5px/1.55 var(--font);
}
.board-item-name{
  flex:1;
  min-width:0;
  overflow:hidden;
  color:var(--text-2);
  text-overflow:ellipsis;
  text-decoration:none;
  white-space:nowrap;
}
.board-item-name:hover{color:var(--accent);text-decoration:underline}
.board-item-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:18px;
  height:18px;
  padding:0;
  border:0;
  background:none;
  color:var(--muted);
  cursor:pointer;
}
.board-item-toggle:hover{color:var(--accent)}
.board-item-toggle:focus-visible{outline:1px solid var(--accent);outline-offset:1px}
.board-item-chevron{font-size:7px}
.board-item-toggle[aria-expanded="true"] .board-item-chevron{transform:rotate(180deg)}
.board-stats{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:2px 8px;
  margin:1px 0 6px;
  padding:5px 7px;
  border-left:1px solid var(--border-strong);
  background:var(--bg);
  color:var(--muted);
  font-size:10px;
  line-height:1.5;
}
.board-stat{display:flex;gap:4px;justify-content:space-between;min-width:0}
.board-stat-wide{grid-column:1/-1}
.board-stat-key{color:var(--text-2)}
.board-stat-value{color:var(--text);font-weight:bold;white-space:nowrap}
.board-stat-wide .board-stat-value{overflow:hidden;text-overflow:ellipsis}

.home-dashboard{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}
.home-card{margin-bottom:0;min-width:0}
.home-card .panel-head{padding:6px 10px}
.home-card .panel-head h2{font-size:13px}
.home-card .panel-body{padding:9px 10px}
.staff-list,
.trending-list,
.quick-links{
  display:grid;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
.staff-item{display:flex;align-items:center;gap:7px;min-width:0}
.staff-avatar{width:22px;height:22px;font-size:9px}
.staff-copy{display:grid;gap:1px;min-width:0}
.staff-name{
  overflow:hidden;
  color:var(--text-2);
  font-size:11px;
  font-weight:bold;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.staff-item.is-online .staff-name{color:var(--text)}
.staff-status{color:var(--muted);font-size:9px;line-height:1.3}
.staff-item.is-online .staff-status{color:#7FB58C}
.trending-item{display:grid;gap:1px;min-width:0}
.trending-title{
  display:-webkit-box;
  overflow:hidden;
  color:var(--text-2);
  font-size:11px;
  font-weight:bold;
  line-height:1.35;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  text-decoration:none;
}
.trending-title:hover{color:var(--accent);text-decoration:underline}
.trending-meta{color:var(--muted);font-size:9px;line-height:1.35;overflow-wrap:anywhere}
.quick-links li{font-size:11px;line-height:1.45}
.home-card-note{margin:8px 0 0!important;color:var(--muted);font-size:9.5px;line-height:1.45}
.home-empty{margin:0;color:var(--muted);font-size:10.5px;line-height:1.45}

.board-hero-panel{margin-bottom:14px}
.board-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.board-identity{flex:1 1 360px;min-width:0}
.board-kicker{
  margin:0 0 3px!important;
  color:var(--accent);
  font:bold 10px/1.4 var(--font-head);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.board-title{margin:0 0 4px;color:var(--text);font:bold 24px/1.2 var(--font-head)}
.board-description{
  max-width:620px;
  margin:0!important;
  color:var(--text-2);
  font-size:12px;
  line-height:1.5;
}
.board-rule{margin:5px 0 0!important;color:var(--muted);font-size:11px;line-height:1.5}
.mature-gate-body{max-width:720px}
.mature-gate-body p{color:var(--text-2);font-size:12px;line-height:1.6}
.mature-gate-body strong{color:var(--text)}
.mature-gate-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.mature-gate-actions .btn{margin:0}
.rules-list{margin:0 0 12px;padding-left:20px}
.rules-list li{margin:0 0 4px;color:var(--text-2);font-size:12px;line-height:1.55}
.rules-group{margin:0 0 16px}
.rules-group h3{margin:0 0 5px;font:bold 14px/1.35 var(--font-head);color:var(--text)}
.rules-boards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.rules-board{padding:6px 8px;border-left:2px solid var(--border-strong);background:var(--bg-2)}
.rules-board h4{margin:0 0 2px;font:bold 11px/1.4 var(--font-head);color:var(--text-2)}
.rules-board p{margin:0!important;color:var(--muted);font-size:11px;line-height:1.45}
.rules-mature{color:#D7B978;font:bold 9px/1.4 var(--font-head);text-transform:uppercase}
.rules-doc{padding-top:14px}
.board-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
  max-width:100%;
}
.board-search{display:flex;align-items:center;gap:4px;min-width:0}
.board-search-input{
  width:180px;
  height:28px;
  padding:4px 7px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg);
  color:var(--text);
  font:11px/1.4 var(--font);
}
.board-search-input::placeholder{color:var(--muted)}
.board-search-input:focus{outline:1px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.board-actions .btn{padding:4px 9px;font-size:11px;white-space:nowrap}
.board-search-submit{height:28px}

.thread-list-body{padding:0}
.thread-list{min-height:120px}
.thread-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 120px 150px;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-top:1px solid var(--border);
}
.thread-row:first-child{border-top:0}
.thread-row:nth-child(even){background:rgba(255,255,255,.015)}
.thread-main{display:flex;align-items:center;gap:8px;min-width:0}
.thread-avatar{width:32px;height:32px;font-size:13px}
.thread-copy{min-width:0}
.thread-title{
  display:block;
  overflow:hidden;
  color:var(--text);
  font:bold 12px/1.4 var(--font);
  text-decoration:none;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.thread-title:hover{color:var(--accent);text-decoration:underline}
.thread-title-line{display:flex;align-items:center;gap:6px;min-width:0}
.thread-title-line .thread-title{flex:0 1 auto;min-width:0}
.thread-pinned-badge{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  padding:1px 5px;
  border:1px solid #3D5A74;
  border-radius:var(--radius);
  background:#1F2B36;
  color:#8FB6D5;
  font:bold 9px/1.4 var(--font-head);
  letter-spacing:.03em;
  text-transform:uppercase;
}
.thread-pin-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:20px;
  margin-left:auto;
  padding:1px 6px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg);
  color:var(--muted);
  font:bold 9px/1.4 var(--font-head);
  cursor:pointer;
}
.thread-pin-button:hover{border-color:var(--border-strong);color:var(--text)}
.thread-pin-button:disabled{opacity:.55;cursor:wait}
.thread-meta{margin-top:1px;color:var(--muted);font-size:10px;line-height:1.4}
.thread-author{color:var(--text-2)}
.thread-stats{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px;color:var(--muted);font-size:10px;line-height:1.45}
.thread-stat strong{color:var(--text-2);font-weight:bold}
.thread-last{color:var(--muted);font-size:10px;line-height:1.45;text-align:right}
.thread-last-time{display:block;color:var(--text-2)}
.thread-last-author{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thread-empty{margin:0!important;padding:20px 12px;color:var(--muted);font-size:12px}

.thread-dialog{
  width:min(560px,calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  padding:0;
  border:1px solid var(--border-strong);
  border-radius:var(--radius);
  background:var(--panel);
  color:var(--text);
  box-shadow:0 16px 48px rgba(0,0,0,.5);
}
.thread-dialog::backdrop{background:rgba(0,0,0,.62)}
.thread-form{display:grid;gap:6px;padding:14px}
.thread-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.thread-dialog-head h2{margin:0;font:bold 16px/1.3 var(--font-head);color:var(--text)}
.thread-dialog-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:25px;
  height:25px;
  padding:0;
  border:0;
  background:none;
  color:var(--muted);
  font:20px/1 var(--font);
  cursor:pointer;
}
.thread-dialog-close:hover{color:var(--text)}
.thread-form label{font:bold 11px/1.4 var(--font-head);color:var(--text-2)}
.thread-form input,
.thread-form textarea{
  width:100%;
  padding:7px 8px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg);
  color:var(--text);
  font:13px/1.5 var(--font);
}
.thread-form textarea{min-height:145px;resize:vertical}
.thread-form input:focus,
.thread-form textarea:focus{outline:1px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.thread-form-status{min-height:16px;margin:0!important;color:var(--danger);font-size:11px;line-height:1.4}
.thread-dialog-actions{display:flex;justify-content:flex-end;gap:6px;padding-top:3px}
.thread-dialog-actions .btn{margin:0}

.thread-view{padding:16px}
.thread-view-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-bottom:12px;border-bottom:1px solid var(--border)}
.thread-view-author{color:var(--muted);font-size:11px}
.thread-view-author a{color:var(--text-2);font-weight:bold}
.thread-view-dot{margin:0 3px;color:var(--muted)}
.thread-body{
  min-height:70px;
  padding:14px 0;
  color:var(--text-2);
  font-size:13px;
  line-height:1.7;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
}
.thread-no-replies{margin:0 0 14px!important;padding:9px 10px;border-left:2px solid var(--border-strong);background:var(--bg-2);color:var(--muted);font-size:11px}

.format-toolbar{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:2px;
  margin:0 0 5px;
  padding:4px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg-2);
}
.format-toolbar button,
.format-color{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:25px;
  height:24px;
  padding:0 5px;
  border:1px solid transparent;
  border-radius:var(--radius);
  background:none;
  color:var(--text-2);
  font:11px/1 var(--font);
  cursor:pointer;
}
.format-toolbar button:hover,
.format-color:hover{border-color:var(--border);background:#2B3036;color:var(--text)}
.format-toolbar button:focus-visible,
.format-color:focus-within{outline:1px solid var(--accent);outline-offset:1px}
.format-toolbar .format-hide{color:var(--accent);font-weight:bold}
.format-sep{display:inline-block;width:1px;height:16px;margin:0 3px;background:var(--border)}
.format-color{gap:3px;font-size:10px;color:var(--muted)}
.format-color input{width:19px;height:19px;padding:0;border:0;background:none;cursor:pointer}
.format-hint{margin:0 0 6px!important;color:var(--muted);font-size:10px;line-height:1.45}
.attachment-control{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 4px}
.attachment-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;opacity:0!important;overflow:hidden!important}
.attachment-button{margin:0!important;padding:3px 9px!important;font-size:10px!important}
.attachment-status{color:var(--muted);font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.thread-body p{margin:0 0 9px}
.thread-body p:last-child{margin-bottom:0}
.thread-body h2,
.thread-body h3{margin:14px 0 7px;font:bold 16px/1.35 var(--font-head);color:var(--text)}
.thread-body h3{font-size:14px}
.thread-body blockquote{margin:9px 0;padding:5px 10px;border-left:2px solid var(--accent);background:var(--bg-2);color:var(--muted)}
.thread-body ul,
.thread-body ol{margin:0 0 9px 22px;padding:0}
.thread-body li{margin:2px 0}
.thread-body pre{margin:8px 0;padding:9px;overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg)}
.thread-body code{padding:1px 4px;border-radius:3px;background:var(--bg-2);font-size:12px}
.thread-body pre code{padding:0;background:none}
.thread-body hr{margin:12px 0;border:0;border-top:1px solid var(--border-strong)}
.format-align-center{text-align:center}
.format-align-right{text-align:right}
.format-indent{padding-left:22px}
.format-hidden-content{padding:7px 9px;border:1px dashed var(--accent);border-radius:var(--radius);background:var(--bg-2)}
.hidden-content-locked{
  display:inline-block;
  padding:4px 8px;
  border:1px dashed var(--border-strong);
  border-radius:var(--radius);
  background:var(--bg-2);
  color:var(--muted);
  font-size:11px;
}

.thread-comments{margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}
.comments-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.comments-head h2{margin:0;font:bold 15px/1.3 var(--font-head);color:var(--text)}
.comments-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:0 5px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:10px}
.comment{padding:9px 0;border-bottom:1px solid var(--border)}
.comment:last-child{border-bottom:0}
.comment-meta{display:flex;align-items:center;gap:4px;margin-bottom:3px;color:var(--muted);font-size:10px}
.comment-avatar{width:17px;height:17px;font-size:8px;border:1px solid var(--border)}
.comment-author{color:var(--text-2);font-weight:bold;text-decoration:none}
.comment-author:hover{text-decoration:underline}
.comment-body{margin:0!important;color:var(--text-2);font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.comment-body p{margin:0 0 5px!important}
.comment-body p:last-child{margin-bottom:0!important}
.comment-body a{color:var(--accent)}
.comments-empty,.comments-signin{margin:8px 0!important;color:var(--muted);font-size:11px}
.comments-signin a{color:var(--accent)}
.comment-form{display:grid;gap:5px;margin-top:10px}
.comment-form label{font:bold 11px/1.4 var(--font-head);color:var(--text-2)}
.comment-form textarea{width:100%;min-height:72px;padding:7px 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);color:var(--text);font:12px/1.5 var(--font);resize:vertical}
.comment-form textarea:focus{outline:1px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.comment-form .btn{justify-self:start;margin:0}
.comment-status{min-height:14px;margin:0!important;color:var(--danger);font-size:10px}
.thread-back-row{display:flex;margin-top:12px}
.thread-back-row .btn{margin:0}
.thread-actions,.comment-actions{position:relative}
.thread-actions{margin-left:auto}
.comment-actions{margin-left:auto}
.menu-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:22px;
  padding:0 0 3px;
  border:1px solid transparent;
  border-radius:var(--radius);
  background:none;
  color:var(--muted);
  font:bold 19px/1 var(--font);
  cursor:pointer;
}
.menu-trigger:hover,
.menu-trigger[aria-expanded="true"]{border-color:var(--border);background:#2B3036;color:var(--text)}
.menu-trigger:focus-visible{outline:1px solid var(--accent);outline-offset:2px}
.action-menu,
.profile-actions-menu{
  position:absolute;
  top:calc(100% + 4px);
  right:0;
  z-index:20;
  min-width:152px;
  padding:4px 0;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--panel);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  text-align:left;
}
.action-menu button,
.profile-actions-menu button{
  display:block;
  width:100%;
  padding:6px 10px;
  border:0;
  background:none;
  color:var(--text-2);
  font:11px/1.5 var(--font);
  text-align:left;
  cursor:pointer;
}
.action-menu button:hover,
.profile-actions-menu button:hover{background:#2B3036;color:var(--text)}
.comment:target{background:rgba(74,144,194,.08)}
#thread-panel{scroll-margin-top:12px}
.report-dialog{
  width:min(440px,calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  padding:0;
  border:1px solid var(--border-strong);
  border-radius:var(--radius);
  background:var(--panel);
  color:var(--text);
  box-shadow:0 16px 48px rgba(0,0,0,.5);
}
.report-dialog::backdrop{background:rgba(0,0,0,.62)}
.report-form{display:grid;gap:6px;padding:14px}
.report-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.report-dialog-head h2{margin:0;font:bold 16px/1.3 var(--font-head);color:var(--text)}
.report-target{margin:0 0 3px!important;color:var(--muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.report-form label{font:bold 11px/1.4 var(--font-head);color:var(--text-2)}
.report-form select,
.report-form textarea{
  width:100%;
  padding:7px 8px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg);
  color:var(--text);
  font:12px/1.5 var(--font);
}
.report-form textarea{resize:vertical;min-height:64px}
.report-form select:focus,
.report-form textarea:focus{outline:1px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.report-status{min-height:14px;margin:0!important;color:var(--accent);font-size:11px}
.report-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:3px}
.report-actions .btn{margin:0}
.profile-actions{position:relative;align-self:flex-start;margin-left:auto}
.profile-actions-menu{width:190px}
.profile-actions-status{margin:4px 10px 2px!important;color:var(--muted);font-size:10px;line-height:1.4}

.moderation-search{margin:0 0 12px}
.moderation-search label{display:block;margin-bottom:4px;font:bold 11px/1.4 var(--font-head);color:var(--text-2)}
.moderation-search-row{display:flex;gap:5px;max-width:440px}
.moderation-search-row input{flex:1;min-width:0;padding:7px 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);color:var(--text);font:13px/1.5 var(--font)}
.moderation-search-row input:focus{outline:1px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.moderation-search-row .btn{margin:0}
.moderation-list{display:grid;gap:6px;margin:8px 0 12px}
.moderation-user{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-2)}
.moderation-identity{display:grid;gap:2px;min-width:0}
.moderation-username{color:var(--text);font-weight:bold;font-size:12px;text-decoration:none}
.moderation-username:hover{text-decoration:underline}
.moderation-user-meta{color:var(--muted);font-size:10px}
.moderation-user .btn{margin:0;flex:none}
.btn-danger{border-color:#7f3333;background:#3b2020;color:#ffb4b4}
.btn-danger:hover{border-color:#a94444;background:#4a2525;color:#ffd0d0}
.btn-danger:disabled{opacity:.6;cursor:not-allowed}

.board-pagination{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 8px;
  padding:7px 10px;
}
.page-btn,
.page-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:25px;
  height:24px;
  padding:0 7px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg);
  color:var(--text-2);
  font:11px/1 var(--font);
  text-decoration:none;
}
.page-btn:hover,
.page-num:hover{border-color:var(--border-strong);background:#2B3036;color:var(--text);text-decoration:none}
.page-btn.is-disabled{opacity:.45;cursor:not-allowed}
.page-num.is-current{background:var(--accent);border-color:var(--accent);color:#fff}
.page-numbers{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.page-ellipsis{min-width:auto;padding:0 2px;border-color:transparent;background:none;color:var(--muted);font-size:11px}
.page-jump{display:flex;align-items:center;gap:4px;margin-left:auto;color:var(--muted);font-size:10px}
.page-jump input{
  width:42px;
  height:24px;
  padding:2px 4px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg);
  color:var(--text);
  font:11px var(--font);
  text-align:center;
}
.page-jump input:focus{outline:1px solid var(--accent);outline-offset:1px}
.page-go{
  height:24px;
  padding:0 7px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg-2);
  color:var(--text-2);
  font:11px var(--font);
  cursor:pointer;
}
.page-go:hover{background:#2B3036;color:var(--text)}

.btn{
  display:inline-block;
  padding:5px 13px;
  border:1px solid var(--border-strong);
  border-radius:var(--radius);
  background:#2B3036;
  color:var(--text);
  font:bold 12px/1.5 var(--font-head);
  cursor:pointer;
  text-align:center;
  text-decoration:none;
  vertical-align:middle;
  transition:background-color .12s ease,border-color .12s ease;
}
.btn:hover{background:#333A41;border-color:#464D55;text-decoration:none}
.btn:active{background:#262B30}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btn:focus-visible{outline:1px solid var(--accent);outline-offset:2px}
.btn-primary{background:var(--accent);border-color:#3E7DA9;color:#fff}
.btn-primary:hover{background:var(--accent-hover);border-color:#376F96}
.btn-primary:active{background:#376F97}
.btn-block{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  height:36px;
  padding:0 12px;
}

.form-row{margin-bottom:12px}
label{
  display:block;
  margin-bottom:4px;
  font:bold 12px/1.4 var(--font-head);
  color:var(--text-2);
}
label .req{color:var(--accent);margin-left:2px}

input[type="text"],
input[type="email"],
input[type="password"]{
  width:100%;
  height:34px;
  padding:0 8px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg-2);
  color:var(--text);
  font:13px/1.4 var(--font);
  transition:border-color .12s ease,background-color .12s ease;
}
input::placeholder{color:var(--muted);opacity:1}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover{border-color:var(--border-strong)}
input:focus{outline:none;border-color:var(--accent);background:#23272C}
input[aria-invalid="true"]{border-color:var(--danger)}
input:-webkit-autofill{
  -webkit-text-fill-color:var(--text);
  -webkit-box-shadow:0 0 0 30px var(--bg-2) inset;
  caret-color:var(--text);
}

.input-wrap{display:flex}
.input-wrap input{
  flex:1;
  min-width:0;
  border-top-right-radius:0;
  border-bottom-right-radius:0;
}
.reveal{
  width:52px;
  height:34px;
  padding:0;
  border:1px solid var(--border);
  border-left:0;
  border-radius:0 var(--radius) var(--radius) 0;
  background:#2B3036;
  color:var(--text-2);
  font:bold 11px/1 var(--font-head);
  cursor:pointer;
  transition:background-color .12s ease,color .12s ease;
}
.reveal:hover{background:#333A41;color:var(--text)}
.reveal:focus-visible{outline:1px solid var(--accent);outline-offset:-2px}

.strength{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:5px;
  font-size:11px;
  color:var(--muted);
}
.strength-bars{display:flex;flex:0 0 54px;gap:2px}
.strength-bars i{flex:1;height:2px;background:var(--border);transition:background-color .12s ease}
.strength-bars i.on{background:var(--accent)}
.strength-label{font-size:11px;color:var(--muted)}

.hint{margin:4px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}

.privacy{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:2px 0 12px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-left:3px solid var(--accent);
  border-radius:var(--radius);
  background:var(--bg-2);
}
.lock{flex:0 0 auto;width:14px;height:14px;margin-top:1px;color:var(--text-2)}
.privacy-title{
  margin:0 0 3px;
  font:bold 10px/1.4 var(--font-head);
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--text);
}
.privacy-copy{margin:0;font-size:11.5px;line-height:1.55;color:var(--text-2)}

.field-error{margin:4px 0 0;font-size:11px;line-height:1.5;color:var(--danger);overflow-wrap:anywhere}

.captcha{display:flex;margin:12px 0}
altcha-widget{
  width:100%;
  --altcha-max-width:100%;
  --altcha-color-base:#202328;
  --altcha-color-base-content:#E0E0E0;
  --altcha-color-neutral:#25292E;
  --altcha-color-neutral-content:#E0E0E0;
  --altcha-color-primary:#4A90C2;
  --altcha-color-primary-content:#FFFFFF;
  --altcha-color-error:#C98080;
  --altcha-color-error-content:#17191C;
  --altcha-color-success:#4A90C2;
  --altcha-color-success-content:#FFFFFF;
  --altcha-border-width:1px;
  --altcha-border-color:#353A40;
  --altcha-border-radius:2px;
  --altcha-checkbox-border-color:#454B52;
  --altcha-checkbox-border-radius:2px;
  --altcha-input-background-color:#1B1E22;
  --altcha-input-border-radius:2px;
  --altcha-input-color:#E0E0E0;
  --altcha-padding:10px 12px;
  --altcha-shadow:none;
  --altcha-spinner-color:#4A90C2;
  --altcha-transition-duration:150ms;
}

.status{margin:0 0 10px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.status:empty{display:none}
.status[data-kind="error"]{
  padding:8px 10px;
  border:1px solid var(--border);
  border-left:3px solid var(--danger);
  border-radius:var(--radius);
  background:var(--bg-2);
  color:var(--text);
}
.status[data-kind="success"]{
  padding:8px 10px;
  border:1px solid var(--border);
  border-left:3px solid var(--accent);
  border-radius:var(--radius);
  background:var(--bg-2);
  color:var(--text);
}

.button-spinner{
  display:none;
  width:12px;
  height:12px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .8s linear infinite;
}
.btn.is-loading{cursor:wait;opacity:.85}
.btn.is-loading .button-spinner{display:inline-block}

@keyframes spin{to{transform:rotate(360deg)}}

.done{padding:2px 0}
.done:focus{outline:none}
.eyebrow{
  margin:0 0 6px;
  font:bold 10px/1.4 var(--font-head);
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
}
.done h2{
  margin:0 0 10px;
  font:bold 20px/1.3 var(--font-head);
  color:var(--text);
}
.done-account{margin:0 0 8px;font-size:13px;color:var(--text)}
.done .privacy-copy{margin:0 0 16px;font-size:12px}
.discord-invite{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-left:3px solid var(--accent);
  border-radius:var(--radius);
  background:var(--bg-2);
}
html.is-authed .discord-invite{display:flex}
.discord-invite p{margin:0;font-size:12px;line-height:1.5;color:var(--text-2)}
.discord-invite strong{color:var(--text)}
.discord-invite-button{flex:0 0 auto;white-space:nowrap;text-decoration:none}
.done-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.back-link{font-size:12px;font-weight:bold}
.back-link:hover{text-decoration:underline}

.account-profile{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.account-profile-copy{min-width:0}
.account-profile-name{
  margin:0 0 2px;
  font:bold 16px/1.3 var(--font-head);
  color:var(--text);
  overflow-wrap:anywhere;
}
.account-section-title{margin:0 0 4px;font:bold 12px/1.4 var(--font-head);color:var(--text-2)}
.swatches{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 4px}
.swatch{
  width:30px;
  height:30px;
  padding:0;
  border:2px solid var(--border);
  border-radius:var(--radius);
  cursor:pointer;
  transition:border-color .12s ease,box-shadow .12s ease;
}
.swatch:hover{border-color:var(--border-strong)}
.swatch[aria-pressed="true"]{border-color:var(--text);box-shadow:inset 0 0 0 2px #17191C}
.swatch:focus-visible{outline:1px solid var(--accent);outline-offset:2px}
.avatar-upload{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.avatar-upload input[type="file"]{max-width:100%;font:12px var(--font);color:var(--text-2)}
.avatar-upload input[type="file"]::file-selector-button{
  margin-right:8px;
  padding:5px 10px;
  border:1px solid var(--border-strong);
  border-radius:var(--radius);
  background:#2B3036;
  color:var(--text);
  font:bold 12px/1.4 var(--font-head);
  cursor:pointer;
}
.avatar-upload input[type="file"]::file-selector-button:hover{background:#333A41}
.avatar-upload .btn{display:inline-flex;align-items:center;gap:8px;margin:0}

.profile-card{
  margin-bottom:14px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:visible;
}
.profile-hero{
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px;
  background:linear-gradient(180deg,#2A2F35 0%,#25292E 100%);
  border-bottom:1px solid var(--border);
  border-radius:var(--radius) var(--radius) 0 0;
}
.profile-avatar{
  width:152px;
  height:152px;
  border:2px solid var(--border-strong);
  font-size:58px;
}
.profile-copy{min-width:0;flex:1}
.profile-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.profile-title-row h1{
  margin:0;
  font:bold 27px/1.2 var(--font-head);
  color:var(--text);
  overflow-wrap:anywhere;
}
.profile-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:2px 7px 2px 4px;
  border:1px solid var(--border-strong);
  border-radius:var(--radius);
  background:var(--bg-2);
  color:var(--text-2);
  font:bold 10px/1.4 var(--font-head);
  letter-spacing:.04em;
  text-transform:uppercase;
}
.profile-badge img{display:block;width:18px;height:18px;object-fit:contain}
.profile-badge[data-badge="owner"]{border-color:#3D5A74;background:#1F2B36;color:#8FB6D5}
.profile-badge[data-badge="staff"]{border-color:#3D5A74;background:#1F2B36;color:#8FB6D5}
.profile-rank{margin:2px 0 10px;font-size:12px;color:var(--text-2)}
.profile-level{
  display:flex;
  width:190px;
  max-width:100%;
  gap:1px;
  padding:1px;
  border:1px solid var(--border);
  background:var(--bg);
}
.profile-level i{flex:1;height:4px;background:var(--border)}
.profile-level i.on{background:var(--accent)}
.profile-level--owner i.on{background:#6F9FC4}
.profile-level--staff i.on{background:#6F9FC4}
.profile-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  padding:13px 8px;
  background:#23272C;
}
.profile-stats div{padding:2px 10px;border-left:1px solid var(--border);text-align:center}
.profile-stats div:first-child{border-left:0}
.profile-stats span{
  display:block;
  margin-bottom:2px;
  font:bold 10px/1.4 var(--font-head);
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--muted);
}
.profile-stats strong{font:bold 13px/1.4 var(--font-head);color:var(--text)}
.account-profile-actions{margin-top:5px}
.profile-moderation{position:relative;align-self:flex-start;margin-left:0}
.profile-moderation-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  padding:0 0 4px;
  border:1px solid transparent;
  border-radius:var(--radius);
  background:none;
  color:var(--muted);
  font:bold 22px/1 var(--font);
  cursor:pointer;
}
.profile-moderation-trigger:hover,
.profile-moderation-trigger[aria-expanded="true"]{border-color:var(--border);background:#2B3036;color:var(--text)}
.profile-moderation-trigger:focus-visible{outline:1px solid var(--accent);outline-offset:2px}
.profile-moderation-menu{
  position:absolute;
  top:calc(100% + 4px);
  right:0;
  z-index:20;
  width:222px;
  padding:4px 0;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--panel);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  text-align:left;
}
.profile-moderation-menu button{
  display:block;
  width:100%;
  padding:6px 10px;
  border:0;
  background:none;
  color:var(--text-2);
  font:11px/1.5 var(--font);
  text-align:left;
  cursor:pointer;
}
.profile-moderation-menu button:hover{background:#2B3036;color:var(--text)}
.profile-moderation-menu button:disabled{opacity:.5;cursor:wait}
.profile-moderation-menu button.is-danger{color:var(--danger)}
.profile-moderation-menu button.is-danger:hover{background:#382526;color:#E2A0A0}
.profile-moderation-status{margin:0!important;padding:5px 10px;border-bottom:1px solid var(--border);color:var(--muted);font-size:10px;line-height:1.45}
.profile-moderation-sep{display:block;height:1px;margin:3px 0;background:var(--border)}

.legal-doc{padding:18px 20px}
.legal-title{
  margin:0 0 10px;
  font:bold 24px/1.2 var(--font-head);
  color:var(--text);
}
.legal-doc h2{
  margin:24px 0 8px;
  padding-bottom:5px;
  border-bottom:1px solid var(--border);
  font:bold 17px/1.35 var(--font-head);
  color:var(--text);
}
.legal-doc h2:first-child{margin-top:0}
.legal-doc h3{
  margin:16px 0 6px;
  font:bold 13px/1.4 var(--font-head);
  color:var(--text);
}
.legal-doc p,
.legal-doc li{font-size:13px;line-height:1.65;color:var(--text-2)}
.legal-doc p{margin:0 0 10px}
.legal-doc ul,
.legal-doc ol{margin:0 0 12px;padding-left:22px}
.legal-doc li{margin:0 0 5px}
.legal-doc strong{color:var(--text)}
.legal-doc a{color:var(--accent)}
.legal-meta{
  margin:0 0 16px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-left:3px solid var(--accent);
  border-radius:var(--radius);
  background:var(--bg-2);
  font-size:11px;
  line-height:1.55;
  color:var(--muted);
}
.legal-placeholder{color:#D7B978;font-weight:bold}
.checkline{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:12px;
  line-height:1.5;
  color:var(--text-2);
  cursor:pointer;
}
.checkline input{
  flex:0 0 auto;
  width:15px;
  height:15px;
  margin:2px 0 0;
  accent-color:var(--accent);
}
.checkline a{color:var(--accent)}
.auth-legal{
  margin:10px 0 0;
  font-size:11px;
  line-height:1.5;
  text-align:center;
  color:var(--muted);
}
.auth-legal a{color:var(--accent)}
.legal-table{
  width:100%;
  margin:0 0 14px;
  border-collapse:collapse;
  font-size:12px;
}
.legal-table th,
.legal-table td{
  padding:7px 8px;
  border:1px solid var(--border);
  text-align:left;
  vertical-align:top;
  line-height:1.5;
}
.legal-table th{background:var(--bg-2);color:var(--text);font:bold 11px var(--font-head)}
.legal-table td{color:var(--text-2)}
.legal-doc code{
  padding:1px 4px;
  border:1px solid var(--border);
  border-radius:3px;
  background:var(--bg-2);
  color:#8FB6D5;
  font:11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;
  overflow-wrap:anywhere;
}
.legal-references{font-size:11.5px!important;line-height:1.55!important}
.legal-references li{margin-bottom:4px}
.cookie-consent{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:50;
  border-top:1px solid var(--border-strong);
  background:#202328;
  box-shadow:0 -4px 16px rgba(0,0,0,.3);
}
.cookie-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px 20px;
  width:100%;
  max-width:1000px;
  margin:0 auto;
  padding:10px 16px;
}
.cookie-copy{margin:0;font-size:12px;line-height:1.5;color:var(--text-2)}
.cookie-copy strong{color:var(--text)}
.cookie-actions{display:flex;flex:0 0 auto;gap:8px}
.cookie-actions .btn{white-space:nowrap}

.site-footer{
  background:var(--bg-2);
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:11px;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px 16px;
  flex-wrap:wrap;
  padding-top:9px;
  padding-bottom:9px;
}
.footer-inner a{color:var(--text-2)}
.footer-inner a:hover{color:var(--accent)}
.footer-links{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.footer-links .sep{color:var(--border-strong)}
.footer-disclaimer{padding-top:9px;font-size:10.5px;line-height:1.5}
.footer-disclaimer p{margin:0;color:#D98B8B}
.footer-disclaimer a{color:#EFA3A3;text-decoration:underline}

.reaction-button{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:22px;
  padding:1px 6px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg);
  color:var(--muted);
  font:bold 10px/1.4 var(--font-head);
  cursor:pointer;
}
.reaction-button:hover{border-color:var(--border-strong);background:#2B3036;color:var(--text)}
.reaction-button.is-reacted{border-color:#3D5A74;background:#1F2B36;color:#8FB6D5}
.reaction-button:disabled{opacity:.75;cursor:default}
.reaction-icon{display:block;flex:0 0 auto;width:16px;height:16px;object-fit:contain}
.reaction-count{font-size:10px;color:var(--text-2)}
.reaction-button.is-reacted .reaction-count{color:#B7D7EF}
.comment-meta .reaction-button{margin-left:auto}
.comment-meta .comment-actions{margin-left:0}

.profile-stats div:nth-child(3n+1){border-left:0}
.profile-trophies{border-top:1px solid var(--border);background:#23272C}
.profile-trophies-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:11px 14px 0}
.profile-trophies-head h2{margin:0;font:bold 14px/1.3 var(--font-head);color:var(--text)}
.profile-trophy-points{color:var(--muted);font-size:10px}
.profile-trophy-list{display:flex;flex-wrap:wrap;gap:5px;padding:8px 14px 11px}
.profile-trophy{
  display:inline-block;
  padding:2px 7px;
  border:1px solid #3D5A74;
  border-radius:var(--radius);
  background:#1F2B36;
  color:#8FB6D5;
  font:bold 10px/1.5 var(--font-head);
}

.help-title{margin:0;font:bold 24px/1.2 var(--font-head);color:var(--text)}
.help-intro{margin:3px 0 0;color:var(--text-2);font-size:12px}
.help-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px;align-items:start}
.help-nav{position:sticky;top:10px;margin-bottom:0}
.help-nav .panel-head{padding:8px 11px}
.help-nav nav{display:grid;padding:4px 0}
.help-nav a{display:block;padding:6px 11px;border-left:2px solid transparent;color:var(--text-2);font:11px/1.4 var(--font-head);text-decoration:none}
.help-nav a:hover{background:#2B3036;color:var(--text);text-decoration:none}
.help-nav a.is-active{border-left-color:var(--accent);background:#202B34;color:var(--text)}
.help-content{min-width:0}
.help-section{margin-bottom:10px}
.help-section .panel-body p{font-size:12px;line-height:1.6;color:var(--text-2)}
.help-section .panel-body a{color:var(--accent)}
.bb-table-wrap{overflow-x:auto;margin:8px 0 10px}
.bb-table{width:100%;border-collapse:collapse;font-size:11px;line-height:1.5}
.bb-table th,.bb-table td{padding:5px 7px;border:1px solid var(--border);text-align:left;vertical-align:top;color:var(--text-2)}
.bb-table th{background:var(--bg-2);color:var(--text);font:bold 10px var(--font-head)}
.bb-table code{padding:1px 4px;border:1px solid var(--border);border-radius:3px;background:var(--bg);color:#8FB6D5;font:10px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
.bb-table blockquote{margin:0;padding:2px 7px;border-left:2px solid var(--accent);color:var(--muted)}
.bb-table ul,.bb-table ol{margin:0;padding-left:16px}
.bb-table hr{margin:5px 0;border:0;border-top:1px solid var(--border-strong)}
.trophy-table td:first-child{width:180px;color:var(--text);font-weight:bold}
.trophy-table td:last-child,.trophy-table th:last-child{width:52px;text-align:right;white-space:nowrap}

.maintenance-body{
  min-height:100vh;
  display:grid;
  place-items:center;
  margin:0;
  padding:28px 18px;
  background:var(--bg);
}
.maintenance-main{max-width:430px;text-align:center}
.maintenance-main img{
  display:block;
  width:112px;
  height:112px;
  margin:0 auto 16px;
  border:0;
  background:none;
  mix-blend-mode:screen;
  object-fit:contain;
}
.maintenance-main h1{margin:0 0 10px;font:bold 25px/1.2 var(--font-head);color:var(--text)}
.maintenance-main p{margin:0 0 8px;color:var(--text-2);font-size:13px;line-height:1.6}
.maintenance-note{color:var(--muted)!important;font-size:11px!important}
.maintenance-actions{display:flex;justify-content:center;margin-top:16px}
.maintenance-actions .btn{margin:0;text-decoration:none}
.maintenance-staff{margin-top:18px!important;font-size:10px!important}
.maintenance-staff a{color:var(--muted)}

.moderation-tools{margin:0 0 14px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-2)}
.moderation-tools h2{margin:0 0 4px;font:bold 13px/1.3 var(--font-head);color:var(--text)}
.moderation-tools p{margin:0 0 8px!important;color:var(--muted);font-size:11px;line-height:1.5}
.moderation-tools .btn{margin:0}
.moderation-tools-status{min-height:14px;margin:7px 0 0!important;color:var(--accent)!important;font-size:10px!important}
.moderation-bans{display:grid;gap:6px;margin:8px 0 0}
.moderation-ban{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-2)}
.moderation-ban-copy{display:grid;gap:2px;min-width:0}
.moderation-ban-copy strong{color:var(--text);font:bold 11px/1.4 var(--font-head)}
.moderation-ban-copy span{color:var(--muted);font-size:10px;line-height:1.45;overflow-wrap:anywhere}
.moderation-ban .btn{margin:0;flex:none}
.action-menu button.is-danger{color:var(--danger)}
.action-menu button.is-danger:hover{background:#382526;color:#E2A0A0}

@media (max-width:720px){
  .wrap{padding:0 12px}
  .header-inner{flex-wrap:wrap;gap:8px;min-height:0;padding-top:9px;padding-bottom:9px}
  .brand img{width:28px}
  .brand-name{font-size:16px}
  .site-nav{
    width:100%;
    gap:14px;
    padding-top:7px;
    border-top:1px solid var(--border);
  }
  .account-name{max-width:90px}
  .account-dropdown{min-width:155px}
  .avatar-lg{width:56px;height:56px;font-size:22px}
  .profile-hero{flex-direction:column;align-items:flex-start;gap:12px;padding:14px}
  .profile-avatar{width:112px;height:112px;font-size:44px}
  .profile-title-row h1{font-size:22px}
  .profile-stats{padding:10px 4px}
  .profile-stats div{padding:2px 5px}
  .profile-stats strong{font-size:12px}
  .help-layout{grid-template-columns:1fr}
  .help-nav{position:static}
  .help-nav nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-moderation{align-self:flex-end;margin-left:0;margin-top:-38px}
  .maintenance-main h1{font-size:22px}
  .moderation-ban{display:block}
  .moderation-ban .btn{margin-top:7px}
  .profile-moderation-menu{width:210px}
  .footer-disclaimer{font-size:10px}
  .legal-doc{padding:14px 12px}
  html.is-authed .discord-invite{display:block}
  .discord-invite-button{display:inline-flex;margin-top:9px}
  .cookie-inner{display:block;padding:10px 12px}
  .cookie-actions{margin-top:8px;justify-content:flex-end}
  .avatar-upload{gap:6px}
  .guest-inner{display:block;padding-top:6px;padding-bottom:6px}
  .guest-inner > span{display:block}
  .guest-inner > span + span{margin-top:1px}
  .breadcrumb{padding:8px 0 7px}
  .welcome{flex-direction:column;align-items:flex-start;gap:12px;padding:14px}
  .welcome-logo{width:88px}
  .home-dashboard{grid-template-columns:1fr;gap:10px}
  .rules-boards{grid-template-columns:1fr}
  .board-hero{padding:12px;gap:12px}
  .board-title{font-size:22px}
  .board-actions{width:100%;justify-content:flex-start}
  .board-search{flex:1 1 100%}
  .board-search-input{flex:1;width:auto;min-width:0}
  .thread-row{grid-template-columns:minmax(0,1fr) 100px 120px;gap:8px;padding:8px}
  .lead{font-size:14px}
  .panel-body{padding:12px}
  .panel-head{padding:7px 10px}
  .panel-meta{white-space:normal}
  input[type="text"],
  input[type="email"],
  input[type="password"]{height:36px}
  .reveal{height:36px}
  .btn-block{height:38px}
  .privacy{padding:8px}
}

@media (max-width:600px){
  .thread-row{grid-template-columns:minmax(0,1fr);gap:3px}
  .thread-stats{display:flex;gap:12px;padding-left:40px}
  .thread-last{padding-left:40px;text-align:left}
  .thread-last-time,
  .thread-last-author{display:inline}
  .thread-last-author{margin-left:5px}
  .thread-view{padding:12px}
  .thread-form{padding:12px}
  .page-jump{width:100%;margin-left:0;padding-top:2px}
}

@media (max-width:400px){
  .panel-head h1,.panel-head h2{font-size:14px}
  .panel-meta{font-size:10px}
  .welcome-logo{width:76px}
  .account-name{max-width:70px}
  .footer-inner{display:block}
  .footer-links{margin-top:3px}
}

@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}
