/* Signed: ASDHEM | AMXME community layer – forum, profiles, member control center, messages, auth.
   Uses only the kit tokens (--bg --surface --surface-2 --ink --muted --line --brand --on-brand --brand-text
   --brand-soft --brand-line --radius --font-display --font-body), so every theme (light or dark) restyles it
   by setting tokens; themes add their own layout on top (static/themes/<slug>.css). */
.cwrap { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 96px); --c-r: min(var(--radius), 14px); --c-card: var(--bg); --c-hover: var(--surface); }
.wrap-mid { max-width: 880px; } .wrap-narrow { max-width: 640px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); } .small { font-size: 13.5px; }
.eyebrow { font: 650 12.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 12px; }
.btn-block { width: 100%; justify-content: center; } .btn-link { --b-bg: transparent; --b-fg: var(--muted); box-shadow: none !important; }
.btn .ic { margin-right: 2px; } .btn.on { --b-bg: var(--brand-soft); --b-fg: var(--brand-text); }
.btn-icon { padding-inline: 10px; }

/* ---------- avatars, names, tags, badges ---------- */
.cav { --s: 40px; position: relative; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; overflow: visible; }
.cav img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; background: var(--surface-2); }
.cav-i { background: hsl(var(--hue) 70% 90%); color: hsl(var(--hue) 55% 30%); font: 700 calc(var(--s) * .4)/1 var(--font-body); }
[data-scheme=dark] .cav-i { background: hsl(var(--hue) 40% 24%); color: hsl(var(--hue) 85% 86%); }
.cav-xs { --s: 22px; } .cav-sm { --s: 30px; } .cav-md { --s: 40px; } .cav-lg { --s: 56px; } .cav-xl { --s: 132px; }
.cav-dot, .prof-online { position: absolute; right: 2%; bottom: 2%; width: 26%; height: 26%; min-width: 9px; min-height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px var(--bg); }
.uname { color: var(--ink); font-weight: 650; text-decoration: none; } .uname:hover { color: var(--brand-text); }
.uname[data-gc] { color: var(--gc); } [data-scheme=dark] .uname[data-gc] { color: color-mix(in srgb, var(--gc) 75%, white); }
.gtag, .gname { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: color-mix(in srgb, var(--gc, var(--brand)) 14%, transparent); color: color-mix(in srgb, var(--gc, var(--brand-text)) 85%, var(--ink)); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; margin-right: 6px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: 2px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag .ic { width: 12px; height: 12px; }
.tag-ann { background: color-mix(in srgb, #f59e0b 18%, transparent); color: color-mix(in srgb, #b45309 85%, var(--ink)); }
.tag-pin { background: var(--brand-soft); color: var(--brand-text); }
.tag-ok { background: color-mix(in srgb, #22c55e 16%, transparent); color: color-mix(in srgb, #15803d 85%, var(--ink)); }
.tag-warn { background: color-mix(in srgb, #ef4444 14%, transparent); color: color-mix(in srgb, #b91c1c 85%, var(--ink)); }
.tag-pre { background: var(--ink); color: var(--bg); }
.bdg { --bc: #f5b342; position: relative; width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center; color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--bc) 70%, white), var(--bc) 55%, color-mix(in srgb, var(--bc) 70%, black));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 4px 14px color-mix(in srgb, var(--bc) 35%, transparent); }
.bdg .ic { width: 22px; height: 22px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .25)); }
.bdg-gold { border-radius: 50%; } .bdg-platinum { border-radius: 50%; outline: 2px solid color-mix(in srgb, var(--bc) 50%, white); outline-offset: 2px; }
.bdg-silver { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); border-radius: 0; }
.bdg-sm { width: 22px; height: 22px; border-radius: 7px; margin-left: 4px; vertical-align: -6px; } .bdg-sm .ic { width: 13px; height: 13px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgb(34 197 94 / .6); animation: cpulse 2s infinite; vertical-align: 1px; margin-right: 6px; }
@keyframes cpulse { 70% { box-shadow: 0 0 0 7px rgb(34 197 94 / 0); } 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------- page heads, breadcrumbs, tabs, chips ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--brand-text); }
.chero { display: grid; gap: 24px; align-items: end; margin-bottom: 26px; } .chero .page-h { margin: 0 0 8px; } .chero .lead { margin: 0; max-width: 60ch; }
@media (min-width: 900px) { .chero { grid-template-columns: 1fr minmax(320px, 420px); } }
.chero-side { display: grid; gap: 12px; } .chero-stats { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; color: var(--muted); font-size: 14px; } .chero-stats b { color: var(--ink); font-size: 16px; }
.cpage-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; } .cpage-h .page-h { margin: 0; } .cpage-h .lead { margin: 6px 0 0; }
.cpage-t { display: flex; gap: 16px; align-items: center; } .cpage-t .nd-ic { width: 54px; height: 54px; } .cpage-t .nd-ic .ic { width: 26px; height: 26px; }
.csearch { position: relative; display: flex; align-items: center; } .csearch .ic { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.csearch input { width: 100%; min-height: 44px; padding-left: 40px; border-radius: 999px; background: var(--surface); }
.ftabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 0 24px; scrollbar-width: none; }
.ftabs a { display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ftabs a:hover { color: var(--ink); } .ftabs a[aria-current] { color: var(--ink); border-color: var(--brand); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.chips a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.chips a:hover { color: var(--ink); border-color: var(--brand-line); } .chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ctools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; } .ctools .chips { margin: 0; }
.ctools select, .csort select { min-height: 38px; width: auto; padding: 6px 30px 6px 12px; font-size: 14px; }
.ctools .csearch { flex: 1; min-width: 220px; }

/* ---------- layout ---------- */
.clayout { display: grid; gap: 28px; } @media (min-width: 1040px) { .clayout { grid-template-columns: minmax(0, 1fr) 310px; } }
.cmain { min-width: 0; display: grid; gap: 28px; align-content: start; }
.cblock-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.cblock-h h2 { display: flex; align-items: center; gap: 8px; font: 700 15px/1.2 var(--font-body); letter-spacing: .04em; text-transform: uppercase; margin: 0; color: var(--ink); }
.cblock-h h2 .ic { color: var(--brand-text); } .cblock-h a { font-size: 13.5px; color: var(--brand-text); text-decoration: none; font-weight: 600; }
.cempty { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 34px 20px; color: var(--muted); text-align: center; margin: 0; flex-wrap: wrap; }
.cnote { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--c-r); background: var(--surface); color: var(--muted); margin: 0 0 16px; }
.cnote-warn { background: color-mix(in srgb, #f59e0b 12%, var(--bg)); color: var(--ink); }
.ccard { background: var(--c-card); border: 1px solid var(--line); border-radius: var(--c-r); padding: clamp(16px, 2.4vw, 24px); }
.ccard > h2 { display: flex; gap: 8px; align-items: center; font: 700 18px/1.3 var(--font-body); margin: 0 0 14px; }
.ccard-danger { border-color: color-mix(in srgb, #ef4444 40%, var(--line)); }

/* ---------- forum nodes (categories) ---------- */
.nlist, .tlist { border: 1px solid var(--line); border-radius: var(--c-r); background: var(--c-card); overflow: hidden; }
.ncat { margin-bottom: 18px; } .ncat-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 700 13px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ncat-h small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.nd { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.nd:last-child { border-bottom: 0; } .nd:hover { background: var(--c-hover); }
@media (min-width: 820px) { .nd { grid-template-columns: 46px minmax(0, 1fr) 150px minmax(0, 240px); } }
.nd-ic { --hue: 212; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: hsl(var(--hue) 80% 94%); color: hsl(var(--hue) 60% 38%); }
[data-scheme=dark] .nd-ic { background: hsl(var(--hue) 45% 20%); color: hsl(var(--hue) 85% 78%); }
.nd-ic[data-nc] { background: color-mix(in srgb, var(--nc) 16%, var(--bg)); color: color-mix(in srgb, var(--nc) 80%, var(--ink)); }
.nd-ic .ic { width: 22px; height: 22px; }
.nd-main { min-width: 0; } .nd-name { font: 650 16.5px/1.3 var(--font-body); color: var(--ink); text-decoration: none; } .nd-name:hover { color: var(--brand-text); }
.nd-desc { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.nd-subs { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 7px 0 0; font-size: 13.5px; } .nd-subs .ic { color: var(--muted); }
.nd-subs a { color: var(--brand-text); text-decoration: none; font-weight: 600; } .nd-subs a:hover { text-decoration: underline; }
.nd-stats { display: none; margin: 0; gap: 12px; text-align: center; } .nd-stats div { display: flex; flex-direction: column-reverse; } .nd-stats dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .nd-stats dd { margin: 0; font: 700 17px/1.2 var(--font-body); font-variant-numeric: tabular-nums; }
.nd-last { display: none; gap: 10px; align-items: center; min-width: 0; } .nd-last > span { display: grid; min-width: 0; }
.nd-last-t { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nd-last small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 820px) { .nd-stats { display: grid; grid-template-columns: 1fr 1fr; } .nd-last { display: flex; } }
.nd-compact { padding: 12px 16px; }

/* ---------- topic list ---------- */
.ti { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); position: relative; }
.ti:last-child { border-bottom: 0; } .ti:hover { background: var(--c-hover); }
@media (min-width: 820px) { .ti { grid-template-columns: 40px minmax(0, 1fr) 130px 130px; } }
.ti-unread .ti-title { font-weight: 750; } .ti-unread::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.ti-ann { background: color-mix(in srgb, #f59e0b 5%, var(--c-card)); }
.ti-main { min-width: 0; } .ti-title { color: var(--ink); text-decoration: none; font: 620 15.5px/1.4 var(--font-body); } .ti-title:hover { color: var(--brand-text); }
.ti-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 3px 0 0; font-size: 13px; color: var(--muted); } .ti-meta .uname { font-weight: 600; color: var(--muted); }
.ti-forum { color: var(--brand-text); text-decoration: none; font-weight: 600; }
.ti-stats { display: none; margin: 0; grid-template-columns: 1fr 1fr; text-align: center; } .ti-stats div { display: flex; flex-direction: column-reverse; } .ti-stats dt { font-size: 11.5px; color: var(--muted); } .ti-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.ti-last { display: none; text-align: right; font-size: 13px; } .ti-last a { color: var(--ink); text-decoration: none; font-weight: 600; } .ti-last small { display: block; color: var(--muted); }
@media (min-width: 820px) { .ti-stats { display: grid; } .ti-last { display: block; } }
@media (max-width: 520px) { .ti > .cav { display: none; } .ti { grid-template-columns: minmax(0, 1fr); } }
.ti-wrap { display: flex; align-items: center; border-bottom: 1px solid var(--line); } .ti-wrap .ti { flex: 1; border: 0; } .ti-x { padding-right: 12px; } .ti-wrap:last-child { border: 0; }

/* featured strip */
.cfeat { display: grid; gap: 14px; } @media (min-width: 760px) { .cfeat { grid-template-columns: repeat(3, 1fr); } }
.cfeat-card { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--c-r); border: 1px solid var(--line); background: linear-gradient(160deg, var(--brand-soft), var(--c-card) 70%); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.cfeat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); } .cfeat-card strong { font: 700 17px/1.3 var(--font-display); }
.cfeat-x { color: var(--muted); font-size: 14px; } .cfeat-m { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 4px; } .cfeat-card .tag { justify-self: start; }

/* ---------- sidebar ---------- */
.cside { display: grid; gap: 16px; align-content: start; }
.cbox { border: 1px solid var(--line); border-radius: var(--c-r); padding: 18px; background: var(--c-card); }
.cbox-h { display: flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.cbox-h small { margin-left: auto; font-size: 12px; color: var(--ink); } .cbox-h .ic { color: var(--brand-text); }
.cbox-join { background: linear-gradient(150deg, var(--brand), var(--brand-accent)); color: var(--on-brand); border: 0; display: grid; gap: 10px; }
.cbox-join h2 { margin: 0; font: 700 20px/1.25 var(--font-display); color: inherit; } .cbox-join p { margin: 0; opacity: .9; font-size: 14.5px; }
.cbox-join .btn { --b-bg: var(--on-brand); --b-fg: var(--brand); } .cbox-join .btn-ghost { --b-bg: transparent; --b-fg: var(--on-brand); border-color: currentColor; }
.cstats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; text-align: center; gap: 6px; } .cstats div { display: flex; flex-direction: column-reverse; } .cstats dt { font-size: 12px; color: var(--muted); } .cstats dd { margin: 0; font: 750 22px/1.2 var(--font-display); }
.cnewest { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); } .cnewest > span { display: grid; } .cnewest small { color: var(--muted); font-size: 12px; }
.avstack { display: flex; flex-wrap: wrap; gap: 6px; } .avstack a { display: inline-flex; }
.cmore { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--brand-text); text-decoration: none; }
.clist { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 12px; }
.clist li { counter-increment: c; display: grid; grid-template-columns: 22px 1fr; gap: 0 8px; } .clist li::before { content: counter(c); grid-row: span 2; font: 800 15px/1.3 var(--font-display); color: var(--brand-text); }
.clist a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.35; } .clist a:hover { color: var(--brand-text); } .clist small { color: var(--muted); font-size: 12.5px; }
.cfeed { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; } .cfeed li { display: flex; gap: 10px; align-items: center; } .cfeed li > span { display: grid; min-width: 0; }
.cfeed a { color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; } .cfeed small { color: var(--muted); font-size: 12px; }
.f-rules { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }

/* ---------- user menu (header) ---------- */
.umenu { display: flex; align-items: center; gap: 6px; }
.umenu-ic { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--ink); }
.umenu-ic:hover { background: var(--surface-2); } .umenu-ic .ic { width: 20px; height: 20px; }
.cnt { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font: 700 10.5px/17px var(--font-body); text-align: center; }
.acc-nav .cnt { position: static; margin-left: auto; }
.umenu-dd { position: relative; } .umenu-dd summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 999px; color: var(--ink); }
.umenu-dd summary::-webkit-details-marker { display: none; } .umenu-dd summary:hover { background: var(--surface-2); } .umenu-name { font-weight: 600; font-size: 14px; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umenu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 16px 40px rgb(0 0 0 / .16); display: grid; }
.umenu-panel a, .umenu-panel button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 14.5px/1.2 var(--font-body); background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.umenu-panel a:hover, .umenu-panel button:hover { background: var(--surface); } .umenu-panel .ic { color: var(--muted); }
@media (max-width: 640px) { .umenu-name { display: none; } }

/* ---------- topic view ---------- */
.ttl { display: grid; gap: 10px; margin-bottom: 22px; } .ttl .page-h { margin: 0; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; }
.ttl-tags:empty { display: none; }
.ttl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; color: var(--muted); font-size: 14px; } .ttl-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ttl-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .ttl-actions form { display: contents; }
.modbox { position: relative; } .modbox summary { list-style: none; } .modbox summary::-webkit-details-marker { display: none; }
.modbox-p { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: min(320px, 90vw); display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 16px 40px rgb(0 0 0 / .16); }
@media (max-width: 640px) { .modbox-p { left: 0; right: auto; } }
.modbox-p button, .pa-menu button, .pa-menu a { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 14px/1.2 var(--font-body); cursor: pointer; text-align: left; text-decoration: none; }
.modbox-p button:hover, .pa-menu button:hover, .pa-menu a:hover { background: var(--surface); } .modbox-p .danger, .pa-menu [data-confirm] { color: #dc2626; }
.modbox-p label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); margin-top: 6px; } .modbox-p select, .modbox-p input { min-height: 36px; font-size: 14px; }
.solbox { display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--c-r); border: 1px solid color-mix(in srgb, #22c55e 40%, var(--line)); background: color-mix(in srgb, #22c55e 8%, var(--bg)); color: var(--ink); text-decoration: none; margin-bottom: 18px; }
.solbox .ic { color: #16a34a; width: 22px; height: 22px; } .solbox span { display: grid; gap: 4px; font-size: 14.5px; }
.posts { display: grid; gap: 16px; margin: 16px 0; }
.post { display: grid; border: 1px solid var(--line); border-radius: var(--c-r); background: var(--c-card); overflow: visible; scroll-margin-top: 90px; }
@media (min-width: 820px) { .post-side { grid-template-columns: 190px minmax(0, 1fr); } }
.post-user { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); border-radius: var(--c-r) var(--c-r) 0 0; }
@media (min-width: 820px) { .post-side .post-user { flex-direction: column; align-items: center; text-align: center; padding: 22px 16px; border-bottom: 0; border-right: 1px solid var(--line); border-radius: var(--c-r) 0 0 var(--c-r); }
  .post-side .post-uinfo { justify-items: center; } .post-side .post-ustats { display: grid; } }
.post-av { display: inline-flex; text-decoration: none; } .post-anchor { display: block; scroll-margin-top: 90px; } @media (max-width: 819px) { .post-user .cav-lg { --s: 40px; } }
.post-uinfo { display: grid; gap: 4px; } .post-name { font-size: 15.5px; }
.post-ustats { display: none; grid-template-columns: 1fr; gap: 3px; margin: 8px 0 0; font-size: 12.5px; color: var(--muted); width: 100%; }
.post-ustats div { display: flex; justify-content: space-between; gap: 12px; } .post-ustats dd { margin: 0; color: var(--ink); font-weight: 600; }
.post-body { min-width: 0; padding: 16px clamp(16px, 2.4vw, 26px) 12px; display: grid; gap: 12px; align-content: start; }
.post-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.post-when a { color: var(--muted); text-decoration: none; } .post-hname { display: none; align-items: center; gap: 6px; font-size: 15px; } .post-n { margin-left: auto; color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; }
.post-text { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; } .post-text > :first-child { margin-top: 0; } .post-text > :last-child { margin-bottom: 0; }
.post-text img { max-width: 100%; height: auto; border-radius: 8px; }
.post-text blockquote, .cquote { margin: 12px 0; padding: 10px 16px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 8px 8px 0; color: var(--ink); font-size: 15px; }
.post-text blockquote p:first-child strong { font-size: 13px; color: var(--brand-text); } .post-text blockquote a[href^="/forum/p/"] { text-decoration: none; }
.post-text pre, .post-text code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--surface-2); border-radius: 6px; } .post-text code { padding: 1px 5px; } .post-text pre { padding: 12px 14px; overflow-x: auto; } .post-text pre code { padding: 0; background: none; }
.post-text a[href^="/members/"] { font-weight: 650; text-decoration: none; background: var(--brand-soft); padding: 0 4px; border-radius: 4px; color: var(--brand-text); }
.post-sig { border-top: 1px dashed var(--line); padding-top: 10px; font-size: 13.5px; color: var(--muted); }
.post-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.post-actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; } .post-actions form { display: contents; }
.pa { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 8px; border: 0; background: none; color: var(--muted); font: 600 13px/1 var(--font-body); text-decoration: none; cursor: pointer; list-style: none; }
.pa::-webkit-details-marker { display: none; } .pa:hover { background: var(--surface); color: var(--ink); } .pa.on { color: #16a34a; }
@media (max-width: 560px) { .pa span { display: none; } }
.pa-more { position: relative; } .pa-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 200px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 16px 40px rgb(0 0 0 / .16); display: grid; }
.prof-more .pa-menu { bottom: auto; top: calc(100% + 6px); }
.post-solution { border-color: color-mix(in srgb, #22c55e 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, #22c55e 30%, transparent); }
.post-hidden { opacity: .65; } .post-pending { border-style: dashed; } .post-first .post-text { font-size: 16.5px; }
.post-ignored summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.patt { display: flex; flex-wrap: wrap; gap: 10px; } .patt-img img { width: auto; max-width: min(100%, 360px); max-height: 260px; border-radius: 8px; display: block; border: 1px solid var(--line); object-fit: cover; }
.patt-file { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; } .patt-file span { display: grid; font-weight: 600; font-size: 14px; } .patt-file small { color: var(--muted); font-weight: 400; }
/* reactions */
.rx { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rx-n { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.rx-n.on { border-color: var(--brand-line); background: var(--brand-soft); } .rx-n b { font-weight: 700; font-size: 12.5px; }
.rx-who { font-size: 12.5px; color: var(--muted); } .rx-pick { position: relative; } .rx-pick summary { list-style: none; display: inline-flex; gap: 5px; align-items: center; padding: 6px 10px; border-radius: 999px; color: var(--muted); font: 600 13px/1 var(--font-body); cursor: pointer; }
.rx-pick summary::-webkit-details-marker { display: none; } .rx-pick summary:hover { background: var(--surface); color: var(--ink); }
.rx-menu { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 12px 30px rgb(0 0 0 / .16); }
.rx-menu button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 22px; cursor: pointer; transition: transform .12s; } .rx-menu button:hover { transform: scale(1.25); background: var(--surface); } .rx-menu button.on { background: var(--brand-soft); }
/* reply */
.creply { margin-top: 28px; } .creply h2 { font: 700 20px/1.3 var(--font-display); margin: 0 0 12px; }
.creply-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; } @media (max-width: 560px) { .creply-row { grid-template-columns: 1fr; } .creply-row > .cav { display: none; } }
.cjoin { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 24px; border-radius: var(--c-r); background: linear-gradient(140deg, var(--brand-soft), var(--surface)); }
.cjoin h2 { margin: 0 0 4px; } .cjoin p { margin: 0; color: var(--muted); } .cjoin > div:last-child { display: flex; gap: 8px; }
.simlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-radius: var(--c-r); overflow: hidden; }
.simlist li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); } .simlist li:last-child { border: 0; }
.simlist a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .simlist small { color: var(--muted); white-space: nowrap; font-size: 12.5px; }
.cpager { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0; } .cpager a, .cpager span { min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.cpager a[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } .cpager span { border: 0; }

/* ---------- forms & editor ---------- */
.cform { display: grid; gap: 16px; } .cfield { display: grid; gap: 6px; } .cfield > span { font-weight: 650; font-size: 14px; } .cfield-sm { max-width: 280px; }
.cform input:not([type=checkbox]):not([type=radio]):not([type=file]), .cform select, .cform textarea { width: 100%; }
.cform-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sticky-actions { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; }
.cgrid2, .cgrid3 { display: grid; gap: 14px; } @media (min-width: 700px) { .cgrid2 { grid-template-columns: 1fr 1fr; } .cgrid3 { grid-template-columns: repeat(3, 1fr); } }
.cchecks { border: 1px solid var(--line); border-radius: var(--c-r); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; } .cchecks legend { font-weight: 650; font-size: 14px; padding: 0 6px; }
.cchecks label, .ccheck { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; }
.ced { border: 1.5px solid var(--line); border-radius: var(--c-r); background: var(--bg); position: relative; min-width: 0; }
.ced:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ced-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface); border-radius: var(--c-r) var(--c-r) 0 0; }
.ced-bar button, .ced-up { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border: 0; border-radius: 7px; background: none; color: var(--ink); font: 600 14px/1 var(--font-body); cursor: pointer; }
.ced-bar button:hover, .ced-up:hover { background: var(--surface-2); } .ced-bar button.on { background: var(--brand-soft); color: var(--brand-text); }
.ced-up input { position: absolute; width: 1px; height: 1px; opacity: 0; } .ced-up:focus-within { outline: 2px solid var(--brand); }
.ced-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; } .ced-status { margin-left: auto; font-size: 12px; color: var(--muted); padding-right: 6px; }
.ced-area { min-height: calc(var(--min, 8) * 1.65em); max-height: 70vh; overflow-y: auto; padding: 14px 16px; outline: none; font-size: 16px; line-height: 1.65; }
.ced-area:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.ced-area blockquote { margin: 8px 0; padding: 6px 14px; border-left: 3px solid var(--brand); background: var(--surface); }
.ced-area img { max-width: 100%; max-height: 300px; border-radius: 6px; }
.ced-src { display: block; border: 0 !important; border-radius: 0 0 var(--c-r) var(--c-r); min-height: 160px; }
.ced[data-ready] .ced-src { display: none; }
.ced-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px; } .ced-files:not(:empty) { padding: 10px 12px; border-top: 1px solid var(--line); }
.ced-file { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface); font-size: 13px; } .ced-file img { width: 36px; height: 36px; object-fit: cover; border-radius: 5px; }
.ced-file button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 15px; } .ced-file.err { color: #dc2626; }
.ced-pop { position: absolute; z-index: 40; min-width: 200px; padding: 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 14px 34px rgb(0 0 0 / .18); }
.ced-pop button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--ink); cursor: pointer; font: 500 14px/1 var(--font-body); } .ced-pop button:hover, .ced-pop button.on { background: var(--surface); }
.pwmeter { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-top: -8px; } .pwmeter span { display: block; height: 100%; width: 0; background: #ef4444; transition: width .2s, background .2s; }
.ctable { width: 100%; border-collapse: collapse; font-size: 14px; } .ctable th, .ctable td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; } .ctable td:not(:first-child), .ctable th:not(:first-child) { text-align: center; width: 80px; }

/* ---------- advanced search, result lists, member cards ---------- */
.csearch-adv { display: grid; gap: 14px; margin-bottom: 20px; } .csa-q { position: relative; display: flex; align-items: center; } .csa-q .ic { position: absolute; left: 14px; color: var(--muted); }
.csa-q input { min-height: 52px; padding-left: 44px; font-size: 17px; }
.csa-f { display: grid; gap: 10px; align-items: end; } @media (min-width: 760px) { .csa-f { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; } }
.csa-f label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--muted); } .csa-f input, .csa-f select { min-height: 40px; font-size: 14px; }
.rlist { display: grid; border: 1px solid var(--line); border-radius: var(--c-r); overflow: hidden; background: var(--c-card); }
.rpost { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; } .rpost:last-child { border: 0; } .rpost:hover { background: var(--c-hover); }
.rpost > span { display: grid; gap: 4px; min-width: 0; } .rpost-x { color: var(--muted); }
.mgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.mcard { position: relative; display: grid; justify-items: center; gap: 6px; padding: 0 14px 18px; border: 1px solid var(--line); border-radius: var(--c-r); background: var(--c-card); color: var(--ink); text-decoration: none; text-align: center; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.mcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); } .mcard > b { font-size: 15.5px; } .mcard > small { color: var(--muted); }
.mcard-cover { display: block; width: calc(100% + 28px); height: 64px; margin-bottom: -30px; background: var(--cover, linear-gradient(120deg, var(--brand), var(--brand-accent))) center / cover; }
.mcard:not(:has(.mcard-cover)) { padding-top: 18px; } .mcard .cav { box-shadow: 0 0 0 3px var(--c-card); border-radius: 50%; }
.mcard-s { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 4px; } .mcard-s b { color: var(--ink); }
.ulist { list-style: none; margin: 0; padding: 0; display: grid; } .ulist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ulist li > span { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .ulist li > small { margin-left: auto; color: var(--muted); font-size: 12.5px; } .ulist-x { font-size: 20px; } .ulist form { margin-left: auto; }
.annbar { background: var(--brand); color: var(--on-brand); font-size: 14.5px; } .annbar-success { background: #15803d; color: #fff; } .annbar-warning { background: #b45309; color: #fff; }
.annbar .wrap { display: flex; align-items: center; gap: 10px; padding-block: 10px; } .annbar a { color: inherit; font-weight: 700; } .annbar-x { margin-left: auto; border: 0; background: none; color: inherit; cursor: pointer; }
.annbar[hidden] { display: none; }

/* ---------- PROFILE ---------- */
.prof { padding: clamp(16px, 3vw, 32px) 0 clamp(48px, 7vw, 96px); --c-r: min(var(--radius), 16px); }
.prof-hd { position: relative; border: 1px solid var(--line); border-radius: var(--c-r); background: var(--bg); overflow: visible; margin-bottom: 24px; }
.prof-cover { position: relative; height: clamp(150px, 26vw, 300px); border-radius: var(--c-r) var(--c-r) 0 0; overflow: hidden;
  background: var(--cover, none) center / cover, radial-gradient(90% 140% at 15% 0%, color-mix(in srgb, var(--brand-accent) 70%, transparent), transparent 60%), linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 40%, #0b1020)); }
.prof-cover:not([data-has-cover])::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgb(255 255 255 / .05) 0 2px, transparent 2px 14px); }
.prof-cover[data-has-cover]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(0 0 0 / .35)); }
.prof-edit-cover { position: absolute; right: 14px; top: 14px; z-index: 2; background: rgb(0 0 0 / .45); color: #fff; backdrop-filter: blur(6px); }
.prof-id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 22px; padding: 0 clamp(16px, 3vw, 32px); }
@media (min-width: 900px) { .prof-id { grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; } }
.prof-av { position: relative; margin-top: -66px; z-index: 3; width: max-content; } .prof-av .cav { box-shadow: 0 0 0 5px var(--bg), 0 10px 30px rgb(0 0 0 / .25); border-radius: 50%; }
.prof-av .prof-online { right: 9%; bottom: 9%; width: 20px; height: 20px; box-shadow: 0 0 0 4px var(--bg); }
.prof-av-edit { position: absolute; left: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: 0 0 0 3px var(--bg); }
.prof-name { padding: 14px 0 4px; min-width: 0; } .prof-name h1 { margin: 0; font: var(--h-weight, 700) clamp(26px, 3.4vw, 38px)/1.1 var(--font-display); letter-spacing: var(--h-track); overflow-wrap: anywhere; }
.prof-staff .ic { color: var(--brand-text); width: .8em; height: .8em; vertical-align: 0; }
.prof-rank { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 0; }
.prof-seen { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; color: var(--muted); font-size: 14px; } .prof-seen > span { display: inline-flex; align-items: center; gap: 5px; }
.online-txt { color: #16a34a; font-weight: 650; }
.prof-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 4px; } .prof-actions form { display: contents; }
@media (min-width: 900px) { .prof-actions { grid-column: auto; padding: 0 0 6px; justify-content: flex-end; } }
@media (max-width: 600px) { .prof-id { grid-template-columns: 1fr; justify-items: center; text-align: center; } .prof-av { margin-top: -58px; } .prof-av .cav-xl { --s: 108px; }
  .prof-rank, .prof-seen, .prof-actions { justify-content: center; } }
.prof-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 18px 0 0; padding: 0 clamp(8px, 2vw, 20px); border-top: 1px solid var(--line); }
.prof-stats > div { display: flex; flex-direction: column-reverse; padding: 14px clamp(12px, 2vw, 22px); text-align: left; }
.prof-stats dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; } .prof-stats dd { margin: 0; font: 750 22px/1.2 var(--font-display); font-variant-numeric: tabular-nums; } .prof-stats .rep { color: var(--brand-text); }
.prof-actlink { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-weight: 650; font-size: 14px; text-decoration: none; }
@media (max-width: 700px) { .prof-stats { display: grid; grid-template-columns: repeat(3, 1fr); } .prof-stats > div { text-align: center; padding: 12px 6px; } .prof-actlink { grid-column: 1 / -1; justify-content: center; margin: 0 0 12px; } }
.prof-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 clamp(8px, 2vw, 20px); border-top: 1px solid var(--line); scrollbar-width: none; }
.prof-tabs a { padding: 14px 14px 13px; color: var(--muted); font-weight: 650; font-size: 14.5px; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.prof-tabs a small { font-weight: 600; opacity: .7; } .prof-tabs a:hover { color: var(--ink); } .prof-tabs a[aria-current] { color: var(--ink); border-color: var(--brand); }
.prof-body { display: grid; gap: 24px; } @media (min-width: 980px) { .prof-body { grid-template-columns: 320px minmax(0, 1fr); align-items: start; } .prof-side { position: sticky; top: 90px; } }
.prof-side { display: grid; gap: 16px; } @media (max-width: 979px) { .prof-side { order: 2; } }
.pbox { border: 1px solid var(--line); border-radius: var(--c-r); padding: 18px; background: var(--bg); }
.pbox-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; } .pbox-h h2 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 15px/1.2 var(--font-body); } .pbox-h .ic { color: var(--brand-text); }
.pbox-n { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--surface); padding: 3px 9px; border-radius: 999px; }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; } .bitem { display: grid; justify-items: center; gap: 6px; text-align: center; } .bitem small { font-size: 11.5px; line-height: 1.25; color: var(--muted); }
.avgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; } .avgrid a { display: inline-flex; } .avgrid .cav { --s: 100%; aspect-ratio: 1; height: auto; }
.pbio { margin: 0 0 12px; white-space: pre-line; font-size: 14.5px; }
.pinfo { margin: 0; display: grid; gap: 10px; font-size: 14px; } .pinfo div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; }
.pinfo dt { color: var(--muted); display: flex; gap: 6px; align-items: center; } .pinfo dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; } .pinfo-wide div { grid-template-columns: 180px 1fr; }
.psocial { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; } .psocial .tag { text-transform: none; }
.pabout { display: grid; gap: 14px; } .modrow { display: flex; flex-wrap: wrap; gap: 8px; }
/* activity timeline */
.tl { position: relative; display: grid; gap: 14px; }
.tl-item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--c-r); background: var(--bg); }
.tl-av { position: relative; } .tl-av .cav { --s: 46px; }
.tl-kind { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 3px var(--bg); } .tl-kind .ic { width: 13px; height: 13px; }
.tl-reaction .tl-kind { background: #ec4899; color: #fff; } .tl-badge .tl-kind { background: #f59e0b; color: #fff; } .tl-follow .tl-kind { background: #0ea5e9; color: #fff; } .tl-join .tl-kind { background: #22c55e; color: #fff; }
.tl-body { min-width: 0; display: grid; gap: 8px; } .tl-head { margin: 0; font-size: 15px; line-height: 1.45; } .tl-head a:not(.uname) { color: var(--ink); font-weight: 650; text-decoration: none; } .tl-head a:not(.uname):hover { color: var(--brand-text); }
.tl-when { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); }
.tl-preview { padding: 12px 14px; border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 14.5px; line-height: 1.55; border-left: 3px solid var(--brand-line); }
.tl-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); } .tl-img-avatar { width: 120px; height: 120px; border-radius: 50%; }
.tl-badge { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: var(--surface); } .tl-badge span { display: grid; } .tl-badge small { color: var(--muted); }
.tl-user { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; width: max-content; max-width: 100%; } .tl-user span { display: grid; } .tl-user small { color: var(--muted); }
.tl-foot { display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--muted); } .tl-foot > span { display: inline-flex; gap: 4px; align-items: center; }
.tl-like button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font: 600 13px/1 var(--font-body); }
.tl-like button:hover { color: #ec4899; border-color: #ec4899; } .tl-like button.on { color: #ec4899; border-color: color-mix(in srgb, #ec4899 40%, var(--line)); background: color-mix(in srgb, #ec4899 8%, transparent); }
.tl-more { margin-top: 4px; }
@media (max-width: 560px) { .tl-item { grid-template-columns: 1fr; } .tl-av { display: none; } }
/* badge wall */
.bwall { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.bcard { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--c-r); background: var(--bg); opacity: .62; filter: grayscale(.85); }
.bcard.earned { opacity: 1; filter: none; border-color: var(--brand-line); } .bcard p { margin: 3px 0 6px; font-size: 13.5px; color: var(--muted); } .bcard small { font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.bprog { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; } .bprog span { display: block; height: 100%; background: var(--brand); }

/* ---------- member control center ---------- */
.acc-grid { display: grid; gap: 24px; } @media (min-width: 960px) { .acc-grid { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } .acc-nav { position: sticky; top: 90px; } }
.acc-nav { border: 1px solid var(--line); border-radius: var(--c-r); padding: 10px; background: var(--bg); display: grid; gap: 6px; }
.acc-me { display: flex; gap: 12px; align-items: center; padding: 8px 8px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; } .acc-me span { display: grid; } .acc-me small { color: var(--brand-text); font-size: 12.5px; }
.acc-nav nav { display: grid; gap: 2px; } .acc-nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.acc-nav nav a:hover { background: var(--surface); color: var(--ink); } .acc-nav nav a[aria-current] { background: var(--brand-soft); color: var(--brand-text); }
@media (max-width: 959px) { .acc-nav nav { display: flex; overflow-x: auto; scrollbar-width: none; } .acc-nav nav a { white-space: nowrap; } }
.acc-main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.acc-h { margin-bottom: 4px; } .acc-h h1 { margin: 0; font: var(--h-weight, 700) clamp(24px, 3vw, 34px)/1.15 var(--font-display); } .acc-h p { margin: 6px 0 0; }
.acc-h-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; } .row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.kpi { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: var(--c-r); background: var(--bg); color: var(--ink); text-decoration: none; }
.kpi b { font: 750 26px/1.1 var(--font-display); } .kpi span { color: var(--muted); font-size: 13px; } a.kpi:hover { border-color: var(--brand-line); }
.acc-cols { display: grid; gap: 18px; } @media (min-width: 900px) { .acc-cols { grid-template-columns: 1fr 1fr; } }
.nlist2 { list-style: none; margin: 0; padding: 0; } .nlist2 li a { display: flex; gap: 12px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14.5px; }
.nlist2 li:last-child a { border: 0; } .nlist2 li a > span { display: grid; gap: 2px; } .nlist2 small { color: var(--muted); font-size: 12.5px; display: flex; gap: 4px; align-items: center; }
.nlist2 li.unread a { font-weight: 650; } .nlist2 li.unread a::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.nlist2.ccard { padding: 6px 14px; }
.slist { list-style: none; margin: 0; padding: 0; } .slist li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.slist li:last-child { border: 0; } .slist li > span { display: grid; gap: 3px; min-width: 0; } .slist small { color: var(--muted); font-size: 12.5px; }
.rxsum { display: flex; flex-wrap: wrap; gap: 10px; } .rxsum span { display: grid; justify-items: center; gap: 2px; min-width: 78px; padding: 12px; border-radius: 12px; background: var(--surface); font-weight: 700; } .rxsum b { font-size: 24px; } .rxsum small { color: var(--muted); font-weight: 500; font-size: 12px; }
.pimg { display: grid; gap: 18px; } @media (min-width: 760px) { .pimg { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.pimg-cover { position: relative; height: 150px; border-radius: 12px; background: var(--cover, linear-gradient(120deg, var(--brand), var(--brand-accent))) center / cover; }
.pimg-av { position: absolute; left: 18px; bottom: -34px; } .pimg-av .cav-xl { --s: 92px; box-shadow: 0 0 0 4px var(--bg); border-radius: 50%; }
.pimg-f { display: grid; gap: 12px; padding-top: 40px; } @media (min-width: 760px) { .pimg-f { padding-top: 0; } }
/* conversations */
.clist2 { list-style: none; margin: 0; padding: 6px 0; } .clist2 li a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.clist2 li:last-child a { border: 0; } .clist2 li a:hover { background: var(--surface); } .clist2 .avstack { flex-wrap: nowrap; } .clist2 .avstack .cav + .cav { margin-left: -14px; box-shadow: 0 0 0 2px var(--bg); border-radius: 50%; }
.clist2-m { display: grid; gap: 2px; min-width: 0; } .clist2-m small { color: var(--muted); } .clist2-x { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clist2-w { font-size: 12.5px; color: var(--muted); display: grid; justify-items: end; gap: 6px; } .clist2 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.clist2 li.unread b { font-weight: 800; }
.chat { display: grid; gap: 14px; } .chat-m { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; max-width: 860px; }
.chat-b { border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 12px 16px; background: var(--bg); min-width: 0; } .chat-b header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; } .chat-b header small { color: var(--muted); }
.chat-m.mine { margin-left: auto; grid-template-columns: minmax(0, 1fr) 40px; } .chat-m.mine > .cav { order: 2; } .chat-m.mine .chat-b { background: var(--brand-soft); border-color: var(--brand-line); border-radius: 16px 4px 16px 16px; }
.chat-r { margin-left: auto; color: var(--muted); } .cinvite { display: flex; gap: 10px; align-items: end; max-width: 420px; }
/* auth */
.cauth-grid { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--c-r); overflow: hidden; background: var(--bg); max-width: 1000px; margin: 0 auto; box-shadow: var(--shadow); }
@media (min-width: 860px) { .cauth-grid { grid-template-columns: 1fr 1.05fr; } }
.cauth-side { position: relative; padding: clamp(28px, 4vw, 48px); color: #fff; background: radial-gradient(100% 120% at 0% 0%, color-mix(in srgb, var(--brand-accent) 80%, transparent), transparent 60%), linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 35%, #070b18)); display: grid; gap: 14px; align-content: start; }
.cauth-side h2 { margin: 18px 0 0; font: 700 clamp(24px, 3vw, 34px)/1.15 var(--font-display); color: #fff; } .cauth-side p { margin: 0; opacity: .88; }
.cauth-brand { display: inline-flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; font-weight: 700; }
.cauth-perks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; } .cauth-perks li { display: flex; gap: 10px; align-items: center; } .cauth-perks .ic { width: 22px; height: 22px; padding: 4px; box-sizing: content-box; border-radius: 8px; background: rgb(255 255 255 / .16); }
@media (max-width: 859px) { .cauth-perks, .cauth-side p { display: none; } .cauth-side { padding: 22px; } .cauth-side h2 { margin: 6px 0 0; font-size: 22px; } }
.cauth-card { padding: clamp(24px, 4vw, 48px); display: grid; gap: 14px; align-content: start; } .cauth-card h1 { margin: 0; font: var(--h-weight, 700) clamp(26px, 3vw, 34px)/1.15 var(--font-display); }
.cauth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; } .cauth-alt { margin: 0; color: var(--muted); font-size: 14.5px; }
