* { box-sizing: border-box; }
:root {
    color-scheme: light;
    --bg: #f5f5f6;
    --paper: #fff;
    --subtle: #fafafa;
    --ink: #202532;
    --muted: #596273;
    --line: #e4e6eb;
    --brand: #bf360f;
    --orange: #c33812;
    --orange-hover: #a82d0c;
    --tint: #fff1e9;
    --blue: #25537b;
    --radius: 10px;
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: 15px;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #171a20;
    --paper: #20242c;
    --subtle: #252a33;
    --ink: #f3f4f6;
    --muted: #b4bfce;
    --line: #373e4b;
    --brand: #ff9a6b;
    --orange: #c33812;
    --orange-hover: #a82d0c;
    --tint: #382824;
    --blue: #a2cef3;
}
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--brand); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .75; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: 1.04rem; letter-spacing: -.015em; }
.icon { width: 1.13em; height: 1.13em; flex: 0 0 auto; vertical-align: -.16em; }
.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; z-index: 2; background: var(--paper); padding: 10px; }
.skip:focus { top: 0; }
.topbar { background: linear-gradient(104deg, #b82413 0%, #dc480d 48%, #e88308 100%); color: #fff; }
.topbar-inner, .top-actions, .header-inner, .footer-inner { display: flex; align-items: center; }
.topbar-inner { min-height: 44px; justify-content: space-between; gap: 8px; }
.topbar a { color: #fff; }
.top-rules { display: inline-flex; align-items: center; gap: 7px; font-size: .79rem; font-weight: 650; }
.top-actions { gap: 7px; }
.top-actions > a, .top-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 31px; padding: 4px 10px; border: 1px solid #ffffff55; border-radius: 5px; color: #fff; font-size: .77rem; font-weight: 650; }
.top-actions > a:hover, .top-actions button:hover { background: #43150f76; }
.top-login { background: #222332; }
.top-register, .theme-toggle { background: #57200bd9; }
.top-actions .avatar { width: 20px; height: 20px; font-size: .7rem; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 69px; gap: 26px; }
.wordmark, .footer-brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-size: 1.7rem; font-weight: 850; line-height: .9; letter-spacing: -.07em; white-space: nowrap; }
.wordmark small { display: block; margin-top: 7px; font-size: .52rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.brand-accent { color: var(--brand); }
.brand-icon { display: inline-grid; place-items: center; width: 43px; height: 43px; background: linear-gradient(145deg,#e95024,#aa270e); border-radius: 12px; color: white; font-size: 23px; box-shadow: 0 2px 5px #9a241530; }
.searchbox { display: flex; min-width: 170px; width: 265px; margin-right: auto; }
.searchbox input { width: 100%; min-width: 0; border: 1px solid var(--line); border-inline-end: 0; border-radius: 7px 0 0 7px; background: var(--subtle); padding: 9px 11px; font-size: .82rem; }
.searchbox button { border: 1px solid var(--line); background: var(--subtle); border-radius: 0 7px 7px 0; padding: 0 12px; color: var(--muted); }
.header-inner nav { display: flex; gap: 4px; flex: 0 0 auto; }
.header-inner nav a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 650; border-radius: 7px; padding: 9px 12px; white-space: nowrap; }
.header-inner nav a.active, .header-inner nav a:hover { color: var(--brand); background: var(--tint); }
.secondary-bar { border-bottom: 1px solid var(--line); background: var(--subtle); }
.secondary-nav { display: flex; gap: 6px 19px; flex-wrap: wrap; align-items: center; min-height: 35px; padding-block: 5px; }
.secondary-nav a { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted); font-weight: 650; }
.secondary-nav a:hover, .secondary-nav a[aria-current] { color: var(--brand); }
.main { flex: 1; padding-block: 18px 40px; }
.community-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(105deg,#28233d,#4a2644 57%,#6b2a36); color: #fef2f3; padding: 8px 12px; min-height: 43px; border-radius: 7px; font-size: .83rem; }
.community-strip > span, .community-strip a { display: inline-flex; align-items: center; gap: 9px; }
.community-strip > span > .icon { color: #ffab73; }
.strip-divider { height: 13px; width: 1px; background: #ffffff57; }
.community-strip a { padding: 4px 9px; color: #fff1e9; background: #ffffff20; border-radius: 4px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.community-strip a:hover { background: #ffffff35; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block: 13px 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.page-heading p { color: var(--muted); font-size: .87rem; margin-top: 5px; }
.home-heading { position: relative; overflow: hidden; isolation: isolate; }
.home-heading::before, .home-heading::after { content: ""; position: absolute; z-index: -1; right: 48px; top: -85px; width: 160px; height: 160px; border-radius: 50%; border: 20px solid var(--tint); }
.home-heading::after { right: 20px; top: -66px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); padding: 8px 12px; border-radius: 6px; background: var(--subtle); color: var(--ink); font-weight: 650; font-size: .85rem; white-space: nowrap; }
.button:hover, .button[aria-pressed="true"] { color: var(--brand); background: var(--tint); }
.button.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.button.primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.button.small { padding: 4px 7px; font-size: .75rem; }
.button.danger { color: var(--brand); }
.home-grid { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 16px; }
.main-column, .sidebar { min-width: 0; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.promo { min-height: 104px; display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; overflow: hidden; border-radius: var(--radius); color: white; isolation: isolate; position: relative; }
.promo::after { content: ""; width: 152px; height: 152px; opacity: .2; position: absolute; right: -33px; top: -34px; border: 22px solid #ffffff66; border-radius: 50%; z-index: -1; }
.promo:hover { color: #fff; filter: brightness(1.12); }
.promo-dev { background: linear-gradient(118deg,#11263d,#23456b 70%,#276088); }
.promo-market { background: linear-gradient(118deg,#264338,#316354 72%,#3a7460); }
.promo-seo { background: linear-gradient(118deg,#39264c,#613865 73%,#805083); }
.promo-hosting { background: linear-gradient(118deg,#43311c,#775121 74%,#926329); }
.promo div { display: grid; gap: 1px; }
.promo strong { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.03em; }
.promo small { margin-top: 3px; font-size: .73rem; }
.promo > .icon { width: 43px; height: 43px; color: #d6f1f2aa; margin-left: 7px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.section-head { min-height: 47px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.section-head h2 { display: inline-flex; align-items: center; gap: 7px; }
.section-head h2 .icon { color: var(--brand); }
.section-head > a, .sidebar-link { color: var(--brand); font-weight: 700; font-size: .77rem; white-space: nowrap; }
.section-head a:hover, .sidebar-link:hover { text-decoration: underline; }
.topic-columns, .topic-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,21%) 53px 103px; gap: 10px; align-items: center; padding-inline: 13px; }
.topic-columns { min-height: 28px; background: var(--subtle); color: var(--muted); text-transform: uppercase; letter-spacing: .045em; font-size: .65rem; font-weight: 750; }
.topic-row { min-height: 49px; border-top: 1px solid var(--line); padding-block: 6px; }
.topic-row:hover, .forum-row:hover { background: var(--subtle); }
.topic-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.topic-main > div { min-width: 0; }
.topic-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: .87rem; font-weight: 680; }
.topic-author { display: block; width: fit-content; font-size: .72rem; }
.topic-forum { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 4px; background: var(--subtle); padding: 2px 5px; font-size: .71rem; font-weight: 650; }
.topic-count, .topic-time { font-size: .75rem; color: var(--muted); }
.topic-time { white-space: nowrap; }
.topic-time a, .topic-count small { display: block; color: var(--muted); }
.topic-time .last-writer { max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: var(--blue); font-weight: 650; }
.topic-time a:hover { text-decoration: underline; }
.topic-count small { font-size: .67rem; }
.activity-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--subtle); }
.activity-tabs a { display: block; padding: 9px 12px 7px; border-bottom: 2px solid transparent; color: var(--muted); font-size: .77rem; font-weight: 700; white-space: nowrap; }
.activity-tabs a:hover, .activity-tabs a[aria-current] { color: var(--brand); background: var(--tint); }
.activity-tabs a[aria-current] { border-bottom-color: var(--brand); }
.activity-tabs a:focus-visible { outline-offset: -3px; }
.mini-pin { display: inline-block; color: var(--brand); margin-right: 4px; }
.mobile-label { display: none; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; font-size: .84rem; font-weight: 800; background: #f6dfd4; color: #874029; }
.avatar.large { width: 61px; height: 61px; font-size: 1.5rem; border-radius: 13px; }
.tone-0 { background: #ece0f5; color: #684395; }
.tone-1 { background: #dce9f8; color: #2d5190; }
.tone-2 { background: #f7e1dc; color: #873b35; }
.tone-3 { background: #dcece4; color: #255b46; }
.tone-4 { background: #f6ebcf; color: #73531f; }
.tone-5 { background: #ede1f8; color: #684484; }
.sidebar > .panel + .panel { margin-top: 13px; }
.featured-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; border-bottom: 1px solid var(--line); }
.featured-row:last-child { border-bottom: 0; }
.featured-row .avatar { width: 27px; height: 27px; font-size: .76rem; }
.featured-row a { display: block; color: var(--ink); font-size: .81rem; font-weight: 700; line-height: 1.36; overflow-wrap: anywhere; }
.featured-row small { display: block; margin-top: 3px; font-size: .69rem; color: var(--muted); }
.stats { margin: 0; padding: 5px 12px; }
.stats div { display: flex; justify-content: space-between; gap: 8px; padding-block: 6px; font-size: .8rem; color: var(--muted); }
.stats div + div { border-top: 1px solid var(--line); }
.stats dd { margin: 0; color: var(--ink); font-weight: 750; }
.new-members { display: flex; gap: 5px; flex-wrap: wrap; padding: 11px; }
.sidebar-link { display: block; padding: 7px 11px 10px; }
.member-leader { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); padding: 7px 11px; font-size: .76rem; }
.member-leader .avatar { width: 24px; height: 24px; font-size: .68rem; }
.member-leader a { overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.member-leader span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.category-heading { border: 0; padding-inline: 3px; margin-top: 9px; }
.forum-group { margin-bottom: 12px; }
.group-title { display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: var(--tint); color: var(--brand); font-weight: 750; font-size: .88rem; }
.group-title a { color: inherit; }
.group-title small { display: block; color: var(--muted); font-weight: 450; font-size: .73rem; }
.forum-row { display: grid; grid-template-columns: 35px minmax(0,1fr) 96px minmax(130px,24%); gap: 10px; align-items: center; min-height: 63px; padding: 8px 13px; border-top: 1px solid var(--line); }
.forum-row > div a { font-weight: 700; color: var(--ink); }
.forum-row p, .muted { color: var(--muted); font-size: .8rem; }
.forum-counts { display: flex; gap: 12px; margin: 0; font-size: .72rem; color: var(--muted); }
.forum-counts dd { margin: 0; font-weight: 750; color: var(--ink); }
.forum-latest { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .75rem; }
.forum-latest div { min-width: 0; }
.forum-latest .avatar { width: 25px; height: 25px; font-size: .71rem; }
.forum-latest div > span { display: block; color: var(--muted); font-size: .67rem; overflow-wrap: anywhere; }
.forum-latest div > span a { color: var(--blue); }
.truncate { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subforums { display: flex; align-items: center; gap: 3px 7px; flex-wrap: wrap; margin-top: 5px; color: var(--muted); font-size: .69rem; }
.subforums a { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; }
.forum-row a:hover { color: var(--brand); }
.guest-welcome { margin-top: 14px; padding: 15px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.guest-welcome p { font-size: .85rem; color: var(--muted); }
.forum-icon { color: var(--brand); background: var(--tint); border-radius: 7px; display: grid; place-items: center; height: 35px; }
.site-footer { background: var(--paper); color: var(--muted); border-top: 1px solid var(--line); padding-block: 18px; }
.footer-inner { justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner > div { display: flex; gap: 13px; flex-wrap: wrap; font-size: .8rem; }
.footer-brand { font-size: 1rem; letter-spacing: -.02em; }
.footer-brand .brand-icon { width: 27px; height: 27px; font-size: 15px; border-radius: 7px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .78rem; color: var(--muted); }
.crumbs .icon { width: .8em; }
.actions, .post-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.discovery-form { margin-bottom: 13px; }
.discovery-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 8px; }
.discovery-fields label { min-width: 0; }
.discovery-actions { display: flex; align-items: center; gap: 8px 13px; flex-wrap: wrap; }
.discovery-form .discovery-actions { margin-top: 12px; }
.discovery-form .discovery-actions > * { margin: 0; }
.forum-filter { padding: 8px 13px; border-bottom: 1px solid var(--line); font-size: .79rem; }
.forum-filter input:not([type="hidden"]), .forum-filter select { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; }
.forum-filter input { max-width: 180px; }
.members-toolbar { margin-bottom: 12px; }
.reply-feed-row { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 9px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.reply-feed-row p { font-size: .87rem; overflow-wrap: anywhere; }
.reply-feed-row small { color: var(--muted); font-size: .75rem; }
.share-actions { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 7px; margin-top: 8px; }
.related-topics { margin-top: 13px; }
.community-footer { background: #ededee; color: #273b51; border-bottom: 2px solid #ff4310; }
.footer-welcome, .footer-metrics { background: linear-gradient(105deg,#ff3010 0%,#ff6800 52%,#ffb800 100%); color: white; border-radius: 2px; }
.footer-welcome { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 21px 32px; min-height: 122px; margin-bottom: 9px; }
.footer-welcome > div:first-child { max-width: 790px; }
.footer-welcome h2 { font-size: 1.7rem; font-style: italic; font-weight: 750; margin-bottom: 7px; }
.footer-welcome p { font-size: .87rem; font-weight: 550; }
.footer-auth { display: flex; flex-shrink: 0; }
.footer-auth a { display: block; padding: 9px 22px; color: white; font-size: .8rem; font-weight: 700; background: #c77a00; }
.footer-auth a:last-child { background: #df2909; }
.footer-auth a:hover { background: #a92d0d; }
.footer-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); min-height: 95px; padding: 16px 14px; gap: 15px; margin-bottom: 9px; }
.footer-metric { display: flex; align-items: center; gap: 15px; min-width: 0; }
.footer-metric > .icon { width: 54px; height: 54px; color: #fff8; filter: drop-shadow(0 12px 3px #5c31005a); }
.footer-metric > div { min-width: 0; }
.footer-metric strong, .footer-metric a { display: block; color: white; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.footer-metric span { display: block; font-size: .7rem; font-weight: 650; margin-top: 3px; }
.footer-metric a:hover { text-decoration: underline; }
.footer-help-band, .footer-base { background: #e6e6e8; }
.footer-help { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; padding-block: 20px; }
.footer-help > a { display: flex; align-items: center; gap: 14px; min-width: 0; color: #273b51; font-size: 1.05rem; line-height: 1.3; }
.footer-help > a:hover { color: #ab320e; }
.footer-help .icon { width: 33px; height: 33px; color: #3c414c; }
.footer-help small { display: block; font-size: .7rem; margin-top: 3px; }
.footer-rankings { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 55px; padding-block: 55px 48px; }
.footer-rankings section { min-width: 0; }
.community-footer h2:not(.footer-welcome h2) { text-transform: uppercase; font-size: .8rem; font-weight: 550; letter-spacing: .025em; margin-bottom: 12px; }
.footer-list-row { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 7px; min-height: 25px; font-size: .8rem; }
.footer-list-row > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-list-row > span:last-child, .footer-list-row time { font-size: .75rem; font-variant-numeric: tabular-nums; }
.footer-list-row .avatar { width: 20px; height: 20px; border-radius: 3px; font-size: .72rem; font-weight: 550; }
.footer-topic-icon { display: grid; place-items: center; width: 20px; height: 20px; background: #ffd09b; border-radius: 3px; color: #a4370c; }
.footer-list-caption { display: block; margin: 8px 0 0 27px; font-size: .67rem; color: #566172; }
.footer-base-grid { display: grid; grid-template-columns: minmax(0,2.65fr) repeat(3,minmax(0,1fr)); gap: 27px; padding-block: 35px; }
.footer-about { display: grid; grid-template-columns: 130px minmax(0,1fr); align-content: start; column-gap: 20px; font-size: .75rem; }
.footer-about .wordmark { grid-row: 1 / 4; font-size: 1.12rem; gap: 6px; align-self: start; }
.footer-about .brand-icon { width: 28px; height: 28px; font-size: 16px; border-radius: 7px; }
.footer-about .wordmark small { font-size: .38rem; letter-spacing: .03em; }
.footer-about p + p { margin-top: 4px; }
.footer-copyright { grid-column: 1 / -1; margin-top: 19px; padding-top: 8px; border-top: 1px solid #d3d5d9; text-align: center; font-size: .69rem; font-weight: 650; }
.footer-base nav { min-width: 0; }
.footer-base ul { margin: 0; padding-left: 16px; font-size: .83rem; }
.footer-base li { margin-bottom: 5px; }
.footer-base a:hover, .footer-rankings a:hover { text-decoration: underline; }
[data-theme="dark"] .community-footer { background: #1c2028; color: #c5d0e1; }
[data-theme="dark"] .footer-help-band, [data-theme="dark"] .footer-base { background: #232831; }
[data-theme="dark"] .footer-help > a, [data-theme="dark"] .footer-help .icon { color: #c5d0e1; }
[data-theme="dark"] .footer-list-caption { color: #aebbd0; }
[data-theme="dark"] .footer-copyright { border-color: #3b4351; }
@media (max-width: 920px) {
    .footer-rankings { gap: 22px; padding-block: 35px; }
    .footer-welcome { padding-inline: 20px; gap: 15px; }
    .footer-welcome h2 { font-size: 1.4rem; }
    .footer-auth a { padding-inline: 13px; }
    .footer-metric { gap: 9px; }
    .footer-metric > .icon { width: 38px; height: 38px; }
    .footer-metric strong, .footer-metric a { font-size: 1.25rem; }
    .footer-help { gap: 12px; }
    .footer-help > a { gap: 8px; font-size: .9rem; }
    .footer-base-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
    .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .footer-welcome { flex-direction: column; align-items: flex-start; padding: 18px; }
    .footer-metrics, .footer-help { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-metrics { gap: 22px 12px; padding: 20px 12px; }
    .footer-help { row-gap: 22px; padding-block: 20px; }
    .footer-rankings { grid-template-columns: minmax(0,1fr); gap: 25px; padding-block: 28px; }
    .footer-base-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-about { grid-template-columns: minmax(0,1fr); gap: 10px; }
    .footer-about .wordmark { grid-row: auto; }
    .footer-copyright { margin-top: 5px; text-align: left; }
}
.empty { padding: 22px 15px; color: var(--muted); }
.pagination { display: flex; align-items: center; gap: 9px; padding: 10px 3px; color: var(--muted); font-size: .82rem; }
.panel > .pagination { padding-inline: 12px; }
.form-card { padding: 19px; margin-top: 14px; }
.form-card label:not(.check) { display: block; margin: 11px 0 4px; font-size: .85rem; font-weight: 700; }
.form-card input:not([type="checkbox"]), .form-card textarea, .form-card select, .admin-form input:not([type="checkbox"]), .admin-form select { width: 100%; background: var(--subtle); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.form-card textarea { resize: vertical; }
.form-card .primary { margin-top: 13px; }
.form-card p { margin-top: 7px; }
.auth-card { max-width: 475px; margin: 20px auto; }
.auth-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; margin-top: 13px; }
.check { display: flex; align-items: center; gap: 5px; margin-top: 9px; font-size: .83rem; }
.check input { accent-color: var(--orange); }
.editor-toolbar { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 5px; }
.editor small { display: block; }
.danger-form { margin-top: 14px; }
.feedback { margin-bottom: 12px; background: var(--subtle); border: 1px solid var(--line); border-radius: 7px; padding: 10px 13px; }
.feedback ul { margin: 0; padding-left: 20px; }
.feedback.success { border-inline-start: 4px solid #328452; }
.feedback.error { border-inline-start: 4px solid #c33528; }
.post { display: grid; grid-template-columns: 155px minmax(0,1fr); margin-bottom: 12px; scroll-margin-top: 10px; }
.post-user { padding: 17px 10px; text-align: center; background: var(--subtle); border-inline-end: 1px solid var(--line); }
.post-user a { display: grid; justify-items: center; gap: 4px; overflow-wrap: anywhere; }
.post-content { padding: 14px; }
.post-meta { display: flex; justify-content: space-between; gap: 9px; color: var(--muted); font-size: .77rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.prose { overflow-wrap: anywhere; }
.post-content .prose { padding-block: 11px; min-height: 80px; }
.post-attachment { margin: 0 0 10px; }
.post-attachment img { display: block; max-width: 100%; max-height: 560px; }
.post-attachment figcaption { color: var(--muted); font-size: .76rem; margin-top: 4px; }
.private-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.prose p + p { margin-top: 10px; }
.prose img { max-width: 100%; }
.prose pre { padding: 10px; overflow-x: auto; background: var(--subtle); }
.prose blockquote { border-inline-start: 3px solid var(--brand); background: var(--subtle); margin-inline: 0; padding: 8px 12px; }
.account-grid { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 16px; align-items: start; }
.account-nav { display: grid; padding: 5px; }
.account-nav a { padding: 7px 9px; border-radius: 5px; }
.account-nav a[aria-current] { color: var(--brand); background: var(--tint); font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 9px; margin-bottom: 12px; }
.metric { display: grid; gap: 4px; padding: 10px; color: var(--muted); font-size: .77rem; }
.metric strong { color: var(--ink); font-size: 1.45rem; }
.notice-row { display: grid; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.notice-row span { color: var(--muted); font-size: .77rem; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 10px; }
.member-card { display: flex; gap: 9px; align-items: center; color: var(--ink); padding: 10px; }
.member-card span { min-width: 0; overflow-wrap: anywhere; }
.member-card small { display: block; font-size: .76rem; color: var(--muted); }
.member-card > .icon { margin-left: auto; }
.profile-card { margin-block: 12px; }
.profile-cover { height: 123px; background: radial-gradient(ellipse at 85% 12%, #c84d24, transparent 57%), linear-gradient(113deg,#253552,#602739); }
.profile-info { display: flex; gap: 12px; align-items: center; padding: 12px; }
.profile-info p, .profile-bio { color: var(--muted); font-size: .84rem; }
.profile-bio { padding: 0 12px 12px; white-space: pre-wrap; }
.admin-form { display: grid; gap: 8px; align-items: end; padding: 10px 13px; border-bottom: 1px solid var(--line); grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); }
.admin-form label { font-size: .79rem; }
.admin-list { margin-top: 13px; }
.admin-form .admin-label { min-width: 0; overflow-wrap: anywhere; }
.campaign-form { grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); }
.ad-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.watched-row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 7px; }
.advertisement { display: grid; gap: 2px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-block: 8px; padding: 8px 11px; overflow-wrap: anywhere; }
.advertisement > span { text-transform: uppercase; letter-spacing: .04em; font-size: .66rem; font-weight: 700; }
.advertisement > a { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; font-size: .83rem; }
.advertisement img { display: block; width: 100%; max-height: 180px; object-fit: contain; background: var(--subtle); border-radius: 5px; }
.ad-creative { padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.ad-creative summary { cursor: pointer; color: var(--blue); }
.ad-creative .admin-form { padding-inline: 0; border-bottom: 0; }
.ad-mobile { display: none; }
@media (max-width: 730px) {
    .ad-mobile { display: grid; }
    .ad-desktop { display: none; }
}
@media (max-width: 920px) {
    .header-inner { gap: 12px; }
    .searchbox { min-width: 126px; }
    .header-inner nav a { padding: 8px; }
    .activity-tabs { flex-wrap: wrap; }
    .activity-tabs a { flex: 1 0 max-content; text-align: center; }
    .home-grid { grid-template-columns: minmax(0,1fr) 220px; gap: 10px; }
    .topic-columns, .topic-row { grid-template-columns: minmax(0,1fr) minmax(82px,20%) 43px 77px; gap: 6px; }
}
@media (max-width: 730px) {
    .wrap { width: calc(100% - 24px); }
    .header-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding-block: 10px 5px; gap: 8px; }
    .searchbox { width: 100%; min-width: 0; margin: 0; }
    .header-inner nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; }
    .header-inner nav a { justify-content: center; gap: 4px; padding: 7px 2px; font-size: .74rem; }
    .main { padding-top: 12px; }
    .home-grid { display: block; }
    .sidebar { margin-top: 13px; display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 8px; }
    .sidebar > .panel + .panel { margin: 0; }
    .forum-row { grid-template-columns: 35px minmax(0,1fr) 92px; }
    .forum-latest { grid-column: 2 / -1; }
    .topic-title { white-space: normal; overflow-wrap: anywhere; }
    .account-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
    .account-nav { display: flex; flex-wrap: wrap; }
}
@media (max-width: 470px) {
    .wrap { width: calc(100% - 18px); }
    .top-actions { gap: 4px; }
    .top-actions > a, .top-actions button { padding-inline: 5px; }
    .top-rules { font-size: .72rem; }
    .wordmark { font-size: 1.28rem; gap: 6px; }
    .wordmark small { font-size: .46rem; letter-spacing: .055em; margin-top: 4px; }
    .brand-icon { width: 32px; height: 32px; border-radius: 8px; font-size: 19px; }
    .community-strip { padding: 6px; font-size: .7rem; }
    .community-strip > span { gap: 4px; flex-wrap: wrap; }
    .community-strip a { font-size: .65rem; gap: 2px; padding: 4px; }
    .page-heading { padding: 11px; flex-wrap: wrap; }
    .page-heading p { font-size: .79rem; }
    .promo-grid { gap: 6px; }
    .promo { padding: 8px; min-height: 89px; }
    .promo > .icon { display: none; }
    .promo strong { font-size: 1rem; }
    .promo small { font-size: .69rem; }
    .topic-columns { display: none; }
    .topic-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(64px,auto); padding: 7px 8px; }
    .topic-main { grid-column: 1 / -1; }
    .topic-title { white-space: normal; overflow-wrap: anywhere; }
    .topic-forum { margin-left: 40px; }
    .topic-count { justify-self: end; }
    .topic-time { display: none; }
    .has-activity .topic-time { display: block; grid-column: 1 / -1; margin-left: 40px; }
    .has-activity .topic-time a { display: inline-block; vertical-align: middle; margin-right: 5px; }
    .has-activity .topic-time .last-writer { max-width: 55%; }
    .forum-row { grid-template-columns: 32px minmax(0,1fr); }
    .forum-counts { grid-column: 2; }
    .share-actions { grid-template-columns: minmax(0,1fr) auto; }
    .share-actions input { grid-column: 1 / -1; }
    .mobile-label { display: inline; }
    .post { grid-template-columns: minmax(0,1fr); }
    .post-user { border-inline-end: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 7px 9px; }
    .post-user a { display: flex; align-items: center; }
    .post-user .avatar { width: 30px; height: 30px; font-size: .8rem; border-radius: 6px; }
}
