.forum-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 28px;
  transition: background var(--dur-fast) var(--ease);
}
.forum-row + .forum-row { border-top: 1px solid var(--hairline); }
a.forum-row:hover { background: var(--fill); }
a.forum-row:active { background: var(--fill-2); }

.forum-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--fill-2);
  color: var(--text-2);
}
.forum-icon svg { width: 21px; height: 21px; }
.forum-icon.tone-accent { background: var(--accent-soft); color: var(--accent-text); }
.forum-icon.tone-ok { background: var(--ok-soft); color: var(--ok); }
.forum-icon.tone-warn { background: var(--warn-soft); color: var(--warn); }
.forum-icon.tone-danger { background: var(--danger-soft); color: var(--danger); }
.forum-icon.tone-violet { background: var(--violet-soft); color: var(--violet); }
.forum-icon.tone-cyan { background: var(--cyan-soft); color: var(--cyan); }

.forum-body { min-width: 0; }
.forum-title {
  font-size: 15.5px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.forum-desc { font-size: 13px; color: var(--text-3); line-height: 1.45; margin-top: 3px; }
.forum-meta {
  display: flex; flex-wrap: wrap; gap: 2px 14px;
  margin-top: 6px;
  font-size: 12.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.forum-meta span { display: inline-flex; align-items: center; gap: 5px; }
.forum-meta svg { width: 13px; height: 13px; opacity: .7; }

.forum-last { display: flex; align-items: center; gap: 10px; max-width: 230px; min-width: 0; }
.forum-last-body { min-width: 0; text-align: right; }
.forum-last-title {
  font-size: 13px; color: var(--text-2); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.forum-last-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; white-space: nowrap; }
@media (max-width: 900px) { .forum-last { display: none; } }
@media (max-width: 720px) {
  .forum-row { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 13px 16px; align-items: flex-start; }
  .forum-icon { width: 40px; height: 40px; border-radius: 12px; }
  .forum-icon svg { width: 19px; height: 19px; }
  .forum-title { font-size: 15px; }
  .forum-desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
}

.topic-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 28px;
  position: relative;
  transition: background var(--dur-fast) var(--ease);
}
.topic-row + .topic-row { border-top: 1px solid var(--hairline); }

.topic-title > a::after { content: ""; position: absolute; inset: 0; }
.topic-meta a, .topic-tags a, .topic-last a, .topic-body .chip { position: relative; z-index: 1; }
.topic-row:hover { background: var(--fill); }

.topic-body { min-width: 0; }
.topic-title {
  font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.topic-title a { transition: color var(--dur-fast) var(--ease); }
.topic-row:hover .topic-title a { color: var(--accent-text); }
.topic-title .mark-icon { width: 15px; height: 15px; flex-shrink: 0; }
.topic-title .mark-pin { color: var(--warn); }
.topic-title .mark-lock { color: var(--text-3); }
.topic-title .mark-solved { color: var(--ok); }
.topic-row.is-read .topic-title { color: var(--text-2); font-weight: 500; }

.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.topic-excerpt {
  font-size: 13.5px; color: var(--text-3); line-height: 1.5; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.topic-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px;
  margin-top: 7px;
  font-size: 12.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.topic-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.topic-meta svg { width: 13px; height: 13px; opacity: .75; flex-shrink: 0; }
.topic-meta a { color: var(--text-2); }
.topic-meta a:hover { color: var(--text); }
.topic-meta .sep { opacity: .4; }

.topic-side { display: flex; align-items: center; gap: 20px; padding-top: 2px; }
.topic-count { text-align: center; min-width: 46px; }
.topic-count b {
  display: block; font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.topic-count span { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; }
.topic-count.hot b { color: var(--warn); }
.topic-last { display: flex; align-items: center; gap: 9px; min-width: 132px; }
.topic-last-body { min-width: 0; }
.topic-last-name { font-size: 12.5px; color: var(--text-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-last-time { font-size: 12px; color: var(--text-3); white-space: nowrap; }

@media (max-width: 900px) { .topic-last { display: none; } }
@media (max-width: 719px) {
  .topic-row { grid-template-columns: 36px minmax(0, 1fr); gap: 11px; padding: 13px 16px; }
  .topic-side { display: none; }
  .topic-title { font-size: 15px; }
}

.list-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 0 28px 12px;
}
.list-toolbar .search-wrap { flex: 1 1 220px; }
@media (max-width: 720px) { .list-toolbar { padding: 0 16px 10px; } }

.forum-hero {
  display: flex; align-items: flex-start; gap: 16px;
}
.forum-hero .forum-icon { width: 52px; height: 52px; border-radius: 15px; }
.forum-hero .forum-icon svg { width: 25px; height: 25px; }
.forum-hero-body { flex: 1; min-width: 0; }
@media (max-width: 600px) {
  .forum-hero { gap: 13px; }
  .forum-hero .forum-icon { width: 44px; height: 44px; border-radius: 13px; }
  .forum-hero .forum-icon svg { width: 21px; height: 21px; }
}

.thread-title {
  font-size: clamp(22px, 3.6vw, 28px);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.2;
  overflow-wrap: anywhere;
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
}
.thread-title .mark-icon { width: 20px; height: 20px; margin-top: 5px; flex-shrink: 0; }
.thread-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px;
  font-size: 13px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.thread-meta span { display: inline-flex; align-items: center; gap: 5px; }
.thread-meta svg { width: 14px; height: 14px; opacity: .75; }

.posts { display: flex; flex-direction: column; }
.post {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.post:first-child { border-top: none; padding-top: 4px; }
.post:last-child { padding-bottom: 4px; }
.post:target { animation: postFlash 1.6s var(--ease); }
@keyframes postFlash { 0% { background: var(--accent-soft); } 100% { background: transparent; } }

.post-aside { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.post-main { min-width: 0; }
.post-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-author { font-size: 15px; font-weight: 600; letter-spacing: -.01em; display: inline-flex; align-items: center; min-height: 30px; }
.post-author:hover { color: var(--accent-text); }
.post-time { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.post-head .spacer { flex: 1; }

.post-body { margin-top: 9px; font-size: 15px; line-height: 1.68; color: var(--text); overflow-wrap: anywhere; }
.post-body > * + * { margin-top: 13px; }
.post-body p { margin: 0; }
.post-body b, .post-body strong { font-weight: 600; }
.post-body a { color: var(--accent-text); }
.post-body a:hover { text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.post-body ul li { list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-body li::marker { color: var(--text-3); }
.post-body h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; }
.post-body code {
  font-family: var(--mono); font-size: 13px;
  background: var(--fill); padding: 2px 6px; border-radius: 6px; color: var(--text-2);
}
.post-body pre {
  font-family: var(--mono); font-size: 13px; line-height: 1.55;
  background: var(--fill); padding: 14px 16px; border-radius: var(--r-md);
  overflow-x: auto; color: var(--text-2);
}
.post-body pre code { background: none; padding: 0; }
.post-body img { border-radius: var(--r-md); }
.post-body hr { height: 1px; background: var(--hairline); border: none; }

.quote {
  background: var(--fill);
  border-radius: var(--r-md);
  padding: 12px 15px;
  font-size: 14px; color: var(--text-2); line-height: 1.6;
}
.quote-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--text-3); font-weight: 600;
  margin-bottom: 6px;
}
.quote-head svg { width: 13px; height: 13px; opacity: .7; }

.attach {
  display: grid; place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--surface-2), #0f1116);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text-3);
  font-size: 13px; font-weight: 600;
  gap: 8px;
  text-align: center;
  padding: 16px;
}
.attach svg { width: 26px; height: 26px; opacity: .5; }

.post-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 13px; }
.react-btn {
  appearance: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--fill);
  color: var(--text-2);
  font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.react-btn svg { width: 15px; height: 15px; }
.react-btn:hover { background: var(--fill-2); color: var(--text); }
.react-btn:active { transform: scale(.96); }
.react-btn.is-on { background: var(--accent-soft); color: var(--accent-text); }
.react-btn.ghost { background: transparent; }
.react-btn.ghost:hover { background: var(--fill); }
@media (max-width: 600px) { .react-btn { height: 36px; } }

.post.is-solution .post-main { position: relative; }
.solution-flag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 9px;
  font-size: 12.5px; font-weight: 600; color: var(--ok);
}
.solution-flag svg { width: 15px; height: 15px; }

@media (max-width: 600px) {
  .post { grid-template-columns: 36px minmax(0, 1fr); gap: 11px; padding: 18px 0; }
  .post-body { font-size: 14.5px; }
  .post-time { width: 100%; }
}

.composer { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
.composer-box {
  background: var(--fill);
  border-radius: var(--r-lg);
  padding: 10px 12px 12px;
  transition: box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.composer-box:focus-within { background: var(--fill-2); box-shadow: var(--focus); }
.composer-box textarea {
  background: none; border: none; padding: 4px 4px 6px; min-height: 84px; box-shadow: none !important;
  font-size: 15px;
}
.composer-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--hairline); }
.composer-toolbar .spacer { flex: 1; }
.tool-btn {
  appearance: none; border: none; cursor: pointer;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: transparent; color: var(--text-3);
  display: inline-grid; place-items: center;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.tool-btn svg { width: 17px; height: 17px; }
.tool-btn:hover { background: var(--fill-2); color: var(--text); }
.composer-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.composer-hint { font-size: 12.5px; color: var(--text-3); }
@media (max-width: 600px) {
  .composer { grid-template-columns: 1fr; gap: 10px; }
  .composer > .avatar-wrap { display: none; }
  .composer-foot .btn { flex: 1; }
}

.editor-box { background: var(--fill); border-radius: var(--r-lg); padding: 10px 12px 12px; }
.editor-box:focus-within { background: var(--fill-2); box-shadow: var(--focus); }
.editor-box textarea { background: none; border: none; min-height: 240px; box-shadow: none !important; padding: 6px 4px; }
.editor-preview {
  border-radius: var(--r-lg);
  background: var(--fill);
  padding: 16px 18px;
  font-size: 15px; line-height: 1.68;
}

.pf-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar body actions"
    "avatar meta actions"
    "avatar note actions";
  column-gap: 22px;
  align-items: start;
}
.pf-avatar { grid-area: avatar; }
.pf-body { grid-area: body; padding-top: 4px; min-width: 0; }
.pf-meta { grid-area: meta; }
.pf-note { grid-area: note; }
.pf-actions { grid-area: actions; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 6px; }

.pf-name { font-size: 29px; font-weight: 700; letter-spacing: -.032em; line-height: 1.1; overflow-wrap: anywhere; }
.pf-handle { font-size: 14.5px; color: var(--text-3); margin-top: 3px; }
.pf-role { margin-top: 9px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-meta {
  margin-top: 13px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px;
  font-size: 13.5px; color: var(--text-3);
}
.pf-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pf-meta svg { width: 14px; height: 14px; opacity: .75; }
.pf-meta b { font-weight: 500; color: var(--text-2); }
.pf-note { margin-top: 12px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; max-width: 60ch; }

@media (max-width: 720px) {
  .pf-identity {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "avatar body"
      "meta meta"
      "note note"
      "actions actions";
    column-gap: 15px;
  }
  .pf-name { font-size: 23px; }
  .pf-body { padding-top: 2px; }
  .pf-meta { margin-top: 14px; gap: 4px 14px; font-size: 13px; }
  .pf-actions { padding-top: 14px; }
  .pf-actions .btn { flex: 1; }
}

.pf-divider { border-top: 1px solid var(--hairline); padding-top: 20px; }

.act-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.act-row:first-child { border-top: none; padding-top: 2px; }
.act-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fill-2); color: var(--text-2);
}
.act-icon svg { width: 16px; height: 16px; }
.act-icon.tone-accent { background: var(--accent-soft); color: var(--accent-text); }
.act-icon.tone-ok { background: var(--ok-soft); color: var(--ok); }
.act-icon.tone-warn { background: var(--warn-soft); color: var(--warn); }
.act-icon.tone-violet { background: var(--violet-soft); color: var(--violet); }
.act-body { min-width: 0; }
.act-title { font-size: 14.5px; line-height: 1.45; }
.act-title a { font-weight: 600; }
.act-title a:hover { color: var(--accent-text); }
.act-time { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.act-quote { margin-top: 7px; font-size: 13.5px; color: var(--text-3); line-height: 1.5; padding-left: 12px; border-left: 2px solid var(--fill-3); }

.members { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }
.member-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--fill);
  border-radius: 16px;
  padding: 14px 15px;
  min-width: 0;
  transition: background var(--dur-fast) var(--ease);
}
a.member-card:hover { background: var(--fill-2); }
.member-body { min-width: 0; }
.member-name { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-role { font-size: 12.5px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-stat { font-size: 12px; color: var(--text-3); margin-top: 5px; font-variant-numeric: tabular-nums; }

.rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hairline); }
.rank-row:first-child { border-top: none; padding-top: 0; }
.rank-num { width: 18px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: center; flex-shrink: 0; }
.rank-body { flex: 1; min-width: 0; }
.rank-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-sub { font-size: 12px; color: var(--text-3); }
.rank-value { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 600; }

.notif-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: flex-start; gap: 12px;
  padding: 14px 28px;
  transition: background var(--dur-fast) var(--ease);
}
.notif-row + .notif-row { border-top: 1px solid var(--hairline); }
.notif-row:hover { background: var(--fill); }
.notif-row.is-new { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.notif-row.is-new:hover { background: color-mix(in srgb, var(--accent) 11%, transparent); }
.notif-body { min-width: 0; }
.notif-text { font-size: 14.5px; line-height: 1.5; }
.notif-text a { font-weight: 600; }
.notif-text a:hover { color: var(--accent-text); }
.notif-excerpt { font-size: 13px; color: var(--text-3); line-height: 1.5; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-time { font-size: 12.5px; color: var(--text-3); white-space: nowrap; padding-top: 2px; }
.notif-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }
@media (max-width: 719px) {
  .notif-row { grid-template-columns: 36px minmax(0, 1fr); padding: 13px 16px; }
  .notif-time { grid-column: 2; font-size: 12px; margin-top: 4px; }
}

.result-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 15px 28px; }
.result-row + .result-row { border-top: 1px solid var(--hairline); }
.result-row:hover { background: var(--fill); }
.result-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.result-title:hover { color: var(--accent-text); }
.result-snippet { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin-top: 5px; }
.result-meta { font-size: 12.5px; color: var(--text-3); margin-top: 7px; display: flex; flex-wrap: wrap; gap: 3px 12px; }
mark { background: rgba(245, 165, 36, .26); color: inherit; border-radius: 4px; padding: 0 3px; }
@media (max-width: 719px) { .result-row { padding: 14px 16px; } }

.widget { background: var(--surface); border-radius: var(--r-xl); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.widget-title { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.widget-body { display: flex; flex-direction: column; }
.widget-cta { display: flex; flex-direction: column; gap: 10px; }
.online-avatars { display: flex; flex-wrap: wrap; gap: 7px; }
@media (max-width: 720px) { .widget { border-radius: var(--r-lg); padding: 16px 16px 18px; } }

.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-item { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.mini-item svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; margin-top: 2px; }

.kit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kit-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kit-swatch { border-radius: var(--r-md); padding: 12px; background: var(--fill); display: flex; flex-direction: column; gap: 8px; }
.kit-color { height: 46px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--hairline); }
.kit-name { font-size: 12.5px; font-weight: 600; }
.kit-value { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.kit-label { font-size: 12px; color: var(--text-3); font-family: var(--mono); }

.act-icon.tone-danger { background: var(--danger-soft); color: var(--danger); }
.act-icon.tone-cyan { background: var(--cyan-soft); color: var(--cyan); }
