/* Everyday Heroes Forums 4.0
   Public redesign: red / blue Hero Network system
   The database and forum logic remain unchanged. */

:root {
    --hf-bg: #02070c;
    --hf-bg-soft: #07131f;
    --hf-panel: rgba(3, 12, 20, .94);
    --hf-panel-strong: rgba(2, 10, 17, .985);
    --hf-panel-hover: rgba(8, 25, 39, .98);
    --hf-line: rgba(102, 155, 194, .25);
    --hf-line-strong: rgba(87, 181, 248, .54);
    --hf-red: #ee272c;
    --hf-red-dark: #8c070a;
    --hf-red-soft: #ff7a74;
    --hf-blue: #139ef2;
    --hf-blue-soft: #8bd5ff;
    --hf-text: #f7f8f9;
    --hf-muted: #a8b4c0;
    --hf-dim: #6e7d8c;
    --hf-gold: #e8b55b;
    --hf-display: "Arial Narrow", "Roboto Condensed", Impact, Haettenschweiler, sans-serif;
    --hf-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --hf-shadow: 0 22px 65px rgba(0, 0, 0, .56);
    --hf-radius: 12px;
}

* { box-sizing: border-box; }
html { min-height: 100%; color-scheme: dark; scroll-behavior: smooth; }
body {
    min-height: 100%;
    margin: 0;
    color: var(--hf-text);
    font-family: var(--hf-body);
    background-color: var(--hf-bg);
    background-image:
        linear-gradient(rgba(1, 6, 12, .29), rgba(1, 6, 12, .29)),
        url("site-background.png");
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% -15%, rgba(20, 116, 190, .15), transparent 42%),
        linear-gradient(180deg, rgba(0, 6, 12, .08), rgba(0, 6, 12, .48));
}
body.hf-modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Header */
.hf-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 88px;
    background: rgba(1, 7, 13, .99);
    border-top: 1px solid rgba(147, 160, 173, .52);
    border-bottom: 1px solid rgba(35, 104, 157, .42);
    box-shadow: 0 13px 35px rgba(0, 0, 0, .52);
    backdrop-filter: blur(16px);
}
.hf-header-inner {
    width: 100%;
    min-height: 87px;
    margin: 0 auto;
    padding: 0 7px;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 0;
}
.hf-header-brand {
    width: 390px;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 6px 15px 6px 12px;
    color: white;
    text-decoration: none;
    background: linear-gradient(90deg, rgba(2, 13, 23, .98), rgba(1, 9, 16, .96));
    border: 1px solid rgba(27, 101, 155, .62);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .018);
}
.hf-header-brand img {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.13));
}
.hf-header-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}
.hf-header-brand-copy strong {
    color: #f5f5f5;
    font-family: var(--hf-display);
    font-size: 29px;
    font-weight: 900;
    letter-spacing: .025em;
    text-transform: uppercase;
    white-space: nowrap;
}
.hf-header-brand-copy small {
    margin-top: 8px;
    color: #f12b36;
    font-family: var(--hf-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    white-space: nowrap;
}
.hf-main-nav {
    min-width: 0;
    height: 87px;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
}
.hf-nav-item {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: stretch;
}
.hf-main-nav > .hf-nav-item > a {
    position: relative;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #c9ced4;
    font-family: var(--hf-display);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .025em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}
.hf-main-nav > .hf-nav-item > a:hover,
.hf-main-nav > .hf-nav-item:focus-within > a {
    color: white;
    background: rgba(255,255,255,.022);
}
.hf-main-nav > .hf-nav-item > a.active {
    color: white;
    background: rgba(255,255,255,.026);
}
.hf-main-nav > .hf-nav-item > a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #db1723, #ff3150);
    box-shadow: 0 0 11px rgba(238, 39, 44, .8);
}
.hf-has-submenu > a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 5px;
    height: 5px;
    border-right: 1px solid rgba(181, 202, 218, .72);
    border-bottom: 1px solid rgba(181, 202, 218, .72);
    transform: translateX(-50%) rotate(45deg);
    opacity: .66;
}
.hf-submenu {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    z-index: 30;
    min-width: 205px;
    padding: 8px;
    display: grid;
    gap: 3px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    border: 1px solid rgba(42, 126, 187, .5);
    border-top: 2px solid var(--hf-red);
    border-radius: 0 0 9px 9px;
    background: rgba(2, 10, 17, .995);
    box-shadow: 0 20px 38px rgba(0, 0, 0, .62), 0 0 20px rgba(20, 124, 193, .1);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.hf-nav-item:hover > .hf-submenu,
.hf-nav-item:focus-within > .hf-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.hf-submenu a {
    min-height: 39px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #d9dee3;
    font-family: var(--hf-display);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
    text-decoration: none;
    border-left: 2px solid transparent;
    background: rgba(255,255,255,.012);
}
.hf-submenu a:hover,
.hf-submenu a:focus-visible {
    color: white;
    border-left-color: var(--hf-blue);
    background: rgba(19, 158, 242, .1);
    outline: none;
}
.hf-header-search,
.hf-menu-toggle {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 0;
    cursor: pointer;
}
.hf-header-search {
    justify-self: end;
    margin-right: 6px;
    background: linear-gradient(180deg, #c61522, #81030c);
    border-left: 1px solid rgba(255, 82, 89, .55);
    border-right: 1px solid rgba(255, 82, 89, .45);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.hf-header-search:hover { filter: brightness(1.12); }
.hf-header-search svg { width: 25px; height: 25px; stroke-width: 2; }
.hf-menu-toggle {
    display: none;
    justify-self: end;
    border-radius: 8px;
    background: rgba(15, 38, 56, .92);
    border: 1px solid rgba(64, 147, 207, .32);
}
.hf-search-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 13px;
    width: min(520px, calc(100% - 24px));
    padding: 12px;
    border-radius: 12px;
    background: rgba(2, 10, 17, .99);
    border: 1px solid var(--hf-line-strong);
    box-shadow: var(--hf-shadow);
}
.hf-search-panel.open { display: block; }
.hf-search-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.hf-search-form input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: white;
    outline: none;
    border-radius: 8px;
    background: #030b12;
    border: 1px solid rgba(103, 150, 184, .3);
}
.hf-search-form input:focus {
    border-color: var(--hf-blue);
    box-shadow: 0 0 0 3px rgba(19,158,242,.13);
}

/* Shared shell */
.hf-page {
    width: min(calc(100% - 24px), 1500px);
    margin: 0 auto;
    padding: 12px 0 46px;
}
.hf-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--hf-radius);
    background: linear-gradient(180deg, rgba(4, 16, 26, .975), rgba(2, 10, 17, .97));
    border: 1px solid var(--hf-line);
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.hf-panel-accent::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    z-index: 4;
    background: linear-gradient(90deg, var(--hf-blue), transparent 38%, transparent 62%, var(--hf-red));
    opacity: .9;
}
.hf-panel-heading {
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--hf-line);
}
.hf-panel-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: white;
    font-family: var(--hf-display);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.hf-panel-title svg { width: 20px; height: 20px; color: var(--hf-blue); }
.hf-panel-link,
.hf-panel-count {
    color: var(--hf-blue-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .045em;
    text-decoration: none;
    text-transform: uppercase;
}
.hf-panel-link:hover { color: white; }
.hf-panel-kicker,
.hf-side-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--hf-blue);
    font-family: var(--hf-display);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.hf-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--hf-display);
    font-weight: 900;
    background: linear-gradient(135deg, #951015, #0a74b5);
}

/* Hero */
.hf-command-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(224, 49, 49, .35);
    background: #080b0e;
    box-shadow: var(--hf-shadow), 0 0 30px rgba(211, 26, 31, .12);
}
.hf-command-hero img {
    width: 100%;
    height: auto;
    min-height: 230px;
    max-height: 320px;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Stats rail */
.hf-command-stats {
    position: relative;
    z-index: 4;
    width: calc(100% - 100px);
    margin: -2px auto 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(260px, 1.12fr);
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    background: rgba(3, 13, 22, .985);
    border: 1px solid var(--hf-line-strong);
    box-shadow: 0 16px 42px rgba(0,0,0,.42);
}
.hf-command-stat {
    min-width: 0;
    min-height: 74px;
    display: grid;
    grid-template-columns: 44px minmax(0,1fr);
    align-items: center;
    gap: 12px;
    padding: 11px 17px;
    color: white;
    text-decoration: none;
    border-right: 1px solid var(--hf-line);
    transition: background .18s ease;
}
a.hf-command-stat:hover { background: rgba(19, 158, 242, .055); }
.hf-command-stat:nth-child(even) .hf-stat-icon {
    color: var(--hf-red);
    border-color: rgba(238,39,44,.42);
    background: rgba(238,39,44,.075);
}
.hf-stat-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hf-blue);
    border-radius: 50%;
    border: 1px solid rgba(19,158,242,.45);
    background: rgba(19,158,242,.075);
}
.hf-stat-icon svg { width: 21px; height: 21px; }
.hf-stat-label {
    display: block;
    color: #c4ced8;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.hf-stat-value {
    display: block;
    margin-top: 2px;
    font-family: var(--hf-display);
    font-size: 28px;
    line-height: .9;
}
.hf-stat-sub {
    display: block;
    margin-top: 5px;
    color: var(--hf-dim);
    font-size: 9px;
}
.hf-open-case-button {
    min-height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
    color: white;
    cursor: pointer;
    border: 0;
    background: linear-gradient(135deg, #df2026, #a7070d);
    box-shadow: inset 1px 0 0 rgba(255,112,112,.45);
    text-transform: uppercase;
}
.hf-open-case-button:hover { filter: brightness(1.1); }
.hf-open-case-button svg { width: 24px; height: 24px; }
.hf-open-case-button span {
    display: grid;
    gap: 3px;
    text-align: left;
    font-family: var(--hf-display);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .045em;
}
.hf-open-case-button small {
    color: rgba(255,255,255,.72);
    font-family: var(--hf-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .015em;
    text-transform: none;
}

/* Main forum layout */
.hf-forum-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 14px;
    align-items: start;
}
.hf-forum-main,
.hf-forum-sidebar { min-width: 0; }
.hf-forum-sidebar {
    display: grid;
    gap: 12px;
}
.hf-welcome-card { padding: 17px; }
.hf-welcome-card p {
    margin: 0;
    color: var(--hf-muted);
    font-size: 12px;
    line-height: 1.5;
}
.hf-welcome-card > strong {
    display: block;
    margin-top: 7px;
    color: white;
    font-size: 11px;
}
.hf-welcome-card .hf-primary-button {
    width: 100%;
    margin-top: 15px;
}

/* Category board */
.hf-category-heading { min-height: 56px; }
.hf-category-table-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px 76px 250px;
    gap: 0;
    padding: 9px 16px 9px 78px;
    color: #7d8b99;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,.055);
}
.hf-category-table-head span:not(:first-child) { text-align: center; }
.hf-category-row {
    min-height: 72px;
    display: grid;
    grid-template-columns: 50px minmax(0,1fr) 76px 76px 250px;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(114, 156, 187, .15);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.hf-category-row:hover {
    background: linear-gradient(90deg, rgba(19,158,242,.075), rgba(255,255,255,.015), rgba(238,39,44,.055));
    border-bottom-color: rgba(89, 180, 244, .3);
}
.hf-category-row:last-child { border-bottom: 0; }
.hf-category-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hf-blue);
    border-radius: 50%;
    background: rgba(8, 26, 40, .9);
    border: 1px solid rgba(19,158,242,.32);
}
.hf-category-row:nth-child(even) .hf-category-icon {
    color: var(--hf-red);
    border-color: rgba(238,39,44,.32);
}
.hf-category-icon svg { width: 22px; height: 22px; }
.hf-category-copy { min-width: 0; }
.hf-category-copy strong,
.hf-category-copy small { display: block; }
.hf-category-copy strong {
    font-family: var(--hf-display);
    font-size: 17px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.hf-category-copy small {
    margin-top: 4px;
    color: var(--hf-muted);
    font-size: 10px;
    line-height: 1.35;
}
.hf-category-metric { text-align: center; }
.hf-category-metric strong {
    display: block;
    color: #dbe2e8;
    font-size: 13px;
}
.hf-category-metric small {
    display: none;
    margin-top: 3px;
    color: var(--hf-dim);
    font-size: 8px;
    text-transform: uppercase;
}
.hf-category-last {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0,1fr);
    align-items: center;
    gap: 9px;
}
.hf-category-avatar,
.hf-topic-avatar,
.hf-leader-avatar,
.hf-activity-avatar,
.hf-author-avatar {
    object-fit: cover;
    border-radius: 50%;
    background: #091722;
    border: 1px solid rgba(255,255,255,.15);
}
.hf-category-avatar { width: 36px; height: 36px; }
.hf-category-last > span { min-width: 0; }
.hf-category-last strong,
.hf-category-last small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hf-category-last strong { font-size: 10px; }
.hf-category-last small {
    margin-top: 3px;
    color: var(--hf-dim);
    font-size: 8px;
}
.hf-no-posts {
    grid-column: 1 / -1;
    color: #667583;
    font-size: 9px;
    font-style: italic;
}
.hf-category-toggle {
    width: 100%;
    min-height: 40px;
    color: var(--hf-blue);
    cursor: pointer;
    border: 0;
    border-top: 1px solid var(--hf-line);
    background: rgba(2, 10, 17, .9);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hf-category-toggle:hover { color: white; background: rgba(19,158,242,.05); }

/* Active cases */
.hf-cases-toolbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) 260px;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--hf-line);
}
.hf-case-tabs {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hf-case-tab {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    color: #8695a4;
    border-radius: 6px;
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.hf-case-tab:hover { color: white; background: rgba(255,255,255,.04); }
.hf-case-tab.active {
    color: white;
    background: linear-gradient(180deg, #df272d, #9f080d);
}
.hf-forum-search {
    display: grid;
    grid-template-columns: minmax(0,1fr) 40px;
}
.hf-forum-search input {
    min-width: 0;
    color: white;
    outline: 0;
    padding: 0 11px;
    border-radius: 7px 0 0 7px;
    background: #020a11;
    border: 1px solid rgba(96, 145, 180, .3);
}
.hf-forum-search input:focus { border-color: var(--hf-blue); }
.hf-forum-search button {
    color: white;
    cursor: pointer;
    border: 0;
    border-radius: 0 7px 7px 0;
    background: #0d6fa9;
}
.hf-forum-search button svg { width: 18px; height: 18px; }
.hf-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 15px;
    color: #93a1af;
    font-size: 10px;
    background: rgba(19,158,242,.035);
    border-bottom: 1px solid var(--hf-line);
}
.hf-clear-filter {
    color: var(--hf-red-soft);
    font-weight: 800;
    text-decoration: none;
}
.hf-topic-list { padding: 0 12px; }
.hf-topic-row {
    min-height: 70px;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 58px 58px 180px;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(112, 153, 184, .16);
}
.hf-topic-row:hover { background: rgba(19,158,242,.045); }
.hf-topic-avatar { width: 40px; height: 40px; }
.hf-topic-main { min-width: 0; }
.hf-topic-title-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}
.hf-topic-title-line svg { width: 14px; height: 14px; color: var(--hf-red); }
.hf-topic-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--hf-display);
    font-size: 16px;
    letter-spacing: .025em;
    text-transform: uppercase;
}
.hf-topic-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    color: var(--hf-dim);
    font-size: 9px;
}
.hf-topic-sub strong { color: #aebbc7; }
.hf-topic-badge {
    flex: 0 0 auto;
    padding: 3px 6px;
    color: #ffb2ad;
    border-radius: 999px;
    border: 1px solid rgba(238,39,44,.35);
    background: rgba(145, 8, 12, .35);
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
}
.hf-topic-metric { text-align: center; }
.hf-topic-metric strong { display: block; font-size: 13px; }
.hf-topic-metric small {
    display: block;
    margin-top: 3px;
    color: #617180;
    font-size: 7px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hf-topic-last {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr);
    align-items: center;
    gap: 8px;
}
.hf-topic-last .hf-topic-avatar { width: 30px; height: 30px; }
.hf-topic-last-copy { min-width: 0; }
.hf-topic-last-copy strong,
.hf-topic-last-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hf-topic-last-copy strong { font-size: 9px; }
.hf-topic-last-copy small { margin-top: 3px; color: var(--hf-dim); font-size: 8px; }

/* Sidebar */
.hf-leader-list,
.hf-activity-list { padding: 7px 12px; }
.hf-leader-row {
    min-height: 52px;
    display: grid;
    grid-template-columns: 25px 36px minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(255,255,255,.055);
}
.hf-leader-row:last-child { border-bottom: 0; }
.hf-leader-position {
    color: var(--hf-blue);
    font-family: var(--hf-display);
    font-size: 19px;
    text-align: center;
}
.hf-leader-row:nth-child(2) .hf-leader-position,
.hf-leader-row:nth-child(3) .hf-leader-position { color: var(--hf-red); }
.hf-leader-avatar { width: 34px; height: 34px; }
.hf-leader-copy { min-width: 0; }
.hf-leader-copy strong,
.hf-leader-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hf-leader-copy strong { font-size: 10px; }
.hf-leader-copy small { margin-top: 3px; color: var(--hf-dim); font-size: 8px; }
.hf-leader-score { color: #9cabb9; font-size: 8px; white-space: nowrap; }
.hf-activity-row {
    min-height: 49px;
    display: grid;
    grid-template-columns: 32px minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,.055);
}
.hf-activity-row:last-child { border-bottom: 0; }
.hf-activity-avatar { width: 31px; height: 31px; }
.hf-activity-copy {
    min-width: 0;
    color: #8f9eac;
    font-size: 9px;
    line-height: 1.35;
}
.hf-activity-copy strong { color: #d6dde3; }
.hf-activity-copy a { color: #a5dcff; text-decoration: none; }
.hf-activity-time { color: #5f6e7c; font-size: 7px; white-space: nowrap; }

/* Bring Your Weird */
.hf-bring-weird {
    position: relative;
    overflow: hidden;
    min-height: 92px;
    margin-top: 14px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 14px 18px;
    border-radius: var(--hf-radius);
    background:
        linear-gradient(90deg, rgba(183, 8, 15, .9), rgba(4, 15, 24, .96) 38%, rgba(4, 15, 24, .96) 65%, rgba(0, 67, 153, .88)),
        url("site-background.png") center / cover;
    border: 1px solid rgba(88, 174, 236, .42);
    box-shadow: var(--hf-shadow);
}
.hf-bring-weird::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,.025), transparent 30%, transparent 70%, rgba(255,255,255,.025));
}
.hf-bring-weird > * { position: relative; z-index: 1; }
.hf-bring-weird-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}
.hf-bring-weird-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.14));
}
.hf-bring-weird-brand span {
    color: white;
    font-family: var(--hf-display);
    font-size: clamp(27px, 3vw, 46px);
    line-height: .9;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}
.hf-bring-weird p {
    max-width: 600px;
    margin: 0;
    color: #edf2f6;
    font-size: 14px;
    line-height: 1.45;
}
.hf-bring-weird-button {
    min-width: 260px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    color: white;
    border-radius: 7px;
    text-decoration: none;
    background: linear-gradient(180deg, #eb2d32, #a4070c);
    border: 1px solid rgba(255,91,91,.45);
    font-family: var(--hf-display);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.hf-bring-weird-button:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* Buttons and forms */
.hf-primary-button,
.hf-secondary-button,
.hf-danger-button,
.hf-small-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    color: white;
    cursor: pointer;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.11);
    text-decoration: none;
    font-family: var(--hf-display);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
    transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.hf-primary-button:hover,
.hf-secondary-button:hover,
.hf-danger-button:hover,
.hf-small-button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.hf-primary-button { background: linear-gradient(180deg, #ec3035, #9f080c); border-color: rgba(238,39,44,.48); }
.hf-secondary-button { background: #0c314a; border-color: rgba(19,158,242,.36); }
.hf-danger-button { background: linear-gradient(180deg, #d5282d, #650408); border-color: rgba(238,39,44,.5); }
.hf-small-button { min-height: 33px; padding: 7px 10px; font-size: 10px; background: rgba(10, 31, 47, .92); }
.hf-primary-button svg,
.hf-secondary-button svg,
.hf-danger-button svg,
.hf-small-button svg { width: 16px; height: 16px; }

.hf-form { display: grid; gap: 14px; }
.hf-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.hf-form-grid .full { grid-column: 1 / -1; }
.hf-form label {
    display: grid;
    gap: 7px;
    color: var(--hf-blue-soft);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hf-form input,
.hf-form select,
.hf-form textarea {
    width: 100%;
    color: white;
    outline: none;
    border-radius: 8px;
    background: #020a11;
    border: 1px solid rgba(99, 147, 183, .31);
    padding: 11px 12px;
    text-transform: none;
    letter-spacing: normal;
}
.hf-form select option { color: #111; }
.hf-form textarea { min-height: 175px; line-height: 1.55; resize: vertical; }
.hf-form input:focus,
.hf-form select:focus,
.hf-form textarea:focus {
    border-color: var(--hf-blue);
    box-shadow: 0 0 0 3px rgba(19,158,242,.12);
}
.hf-form-help { margin: 0; color: #95a4b2; font-size: 12px; line-height: 1.5; }
.hf-empty {
    padding: 24px 18px;
    color: #82909e;
    font-size: 12px;
    text-align: center;
}
.hf-flash {
    margin-bottom: 12px;
    padding: 12px 15px;
    color: #d7ffe8;
    border-radius: 8px;
    border: 1px solid rgba(82, 215, 146, .35);
    background: rgba(24, 109, 69, .24);
    font-size: 12px;
}
.hf-flash.error {
    color: #ffd9d6;
    border-color: rgba(238,39,44,.44);
    background: rgba(129, 8, 12, .28);
}

/* Modal */
.hf-dialog {
    width: min(680px, calc(100% - 24px));
    max-height: calc(100vh - 30px);
    padding: 0;
    overflow: hidden;
    color: white;
    border-radius: 14px;
    background: #06121c;
    border: 1px solid var(--hf-line-strong);
    box-shadow: 0 35px 100px rgba(0,0,0,.75);
}
.hf-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.hf-dialog-header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(183, 8, 13, .55), rgba(5, 17, 27, .96), rgba(6, 78, 126, .4));
    border-bottom: 1px solid var(--hf-line);
}
.hf-dialog-header h2 {
    margin: 0;
    font-family: var(--hf-display);
    font-size: 31px;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.hf-dialog-close {
    width: 36px;
    height: 36px;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(0,0,0,.24);
}
.hf-dialog-body { padding: 20px; overflow-y: auto; }

/* Thread pages */
.hf-thread-shell { display: grid; gap: 14px; }
.hf-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.hf-back-link,
.hf-text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d0d8df;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hf-back-link:hover,
.hf-text-link:hover { color: white; }
.hf-back-link svg,
.hf-text-link svg { width: 16px; height: 16px; }
.hf-thread-header {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(7, 29, 46, .97), rgba(4, 14, 23, .97), rgba(66, 5, 8, .92)),
        url("site-background.png") center / cover;
    border: 1px solid var(--hf-line-strong);
    box-shadow: var(--hf-shadow);
}
.hf-thread-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--hf-blue), transparent 45%, var(--hf-red));
}
.hf-thread-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.hf-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    color: var(--hf-blue-soft);
    border-radius: 999px;
    border: 1px solid rgba(19,158,242,.3);
    background: rgba(19,158,242,.055);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.hf-pill svg { width: 13px; height: 13px; }
.hf-pill.red { color: #ffaaa5; border-color: rgba(238,39,44,.34); background: rgba(238,39,44,.055); }
.hf-pill.green { color: #a6f2c7; border-color: rgba(92,222,151,.32); background: rgba(92,222,151,.05); }
.hf-thread-title {
    margin: 13px 0 12px;
    font-family: var(--hf-display);
    font-size: clamp(45px, 6vw, 84px);
    line-height: .92;
    letter-spacing: .025em;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 rgba(116, 5, 9, .78);
}
.hf-thread-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #b2bdc7;
    font-size: 11px;
}
.hf-thread-summary span { display: inline-flex; align-items: center; gap: 6px; }
.hf-thread-summary svg { width: 14px; height: 14px; color: var(--hf-blue); }
.hf-post-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 190px minmax(0,1fr);
    border-radius: 12px;
    background: var(--hf-panel-strong);
    border: 1px solid var(--hf-line);
    box-shadow: 0 15px 40px rgba(0,0,0,.28);
}
.hf-author-rail {
    padding: 20px 15px;
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 31, 47, .94), rgba(4, 14, 22, .98));
    border-right: 1px solid var(--hf-line);
}
.hf-author-avatar {
    width: 82px;
    height: 82px;
    margin: 0 auto 12px;
    border: 2px solid rgba(238,39,44,.55);
    box-shadow: 0 0 22px rgba(238,39,44,.12);
}
.hf-author-name { display: block; font-size: 13px; font-weight: 900; }
.hf-author-rank {
    display: block;
    margin-top: 4px;
    color: var(--hf-blue-soft);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hf-author-stats {
    display: grid;
    gap: 7px;
    margin-top: 16px;
    padding-top: 13px;
    color: #7c8b99;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: 9px;
}
.hf-author-stats strong { color: #c2ccd5; }
.hf-post-main { min-width: 0; padding: 19px 23px; }
.hf-post-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    color: #7b8996;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: 9px;
}
.hf-post-number {
    color: var(--hf-red-soft);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hf-post-body {
    max-width: 920px;
    padding: 19px 0 10px;
    color: #e0e5e9;
    font-size: 16px;
    line-height: 1.72;
    overflow-wrap: anywhere;
}
.hf-post-body p { margin: 0 0 1.15em; }
.hf-post-body p:last-child { margin-bottom: 0; }
.hf-post-body blockquote {
    margin: 18px 0;
    padding: 12px 15px;
    color: #bac8d4;
    background: rgba(19,158,242,.05);
    border-left: 3px solid var(--hf-blue);
}
.hf-post-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.hf-replies-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 2px 4px;
}
.hf-replies-heading h2 {
    margin: 0;
    font-family: var(--hf-display);
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1;
    letter-spacing: .035em;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(124, 5, 9, .82);
}
.hf-reply-list { display: grid; gap: 12px; }
.hf-reply-composer { padding: 20px; }
.hf-reply-composer h2 {
    margin: 0 0 7px;
    font-family: var(--hf-display);
    font-size: 37px;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.hf-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.hf-related-card {
    padding: 15px;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    background: var(--hf-panel);
    border: 1px solid var(--hf-line);
}
.hf-related-card:hover { border-color: var(--hf-line-strong); }
.hf-related-card strong { display: block; margin-top: 9px; font-size: 12px; line-height: 1.35; }
.hf-related-card small { display: block; margin-top: 8px; color: var(--hf-dim); font-size: 9px; }

/* Admin */
.hf-admin-hero {
    padding: 28px;
    margin-bottom: 14px;
    background:
        linear-gradient(90deg, rgba(6, 29, 47, .94), rgba(4, 14, 23, .96), rgba(73, 5, 8, .87)),
        url("site-background.png") center / cover;
}
.hf-admin-title {
    margin: 0;
    font-family: var(--hf-display);
    font-size: clamp(48px, 7vw, 88px);
    line-height: .9;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.hf-admin-copy {
    max-width: 850px;
    margin: 12px 0 0;
    color: #a2afbb;
    font-size: 13px;
    line-height: 1.5;
}
.hf-admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hf-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 13px; }
.hf-admin-card {
    padding: 17px;
    border-radius: 11px;
    background: var(--hf-panel);
    border: 1px solid var(--hf-line);
}
.hf-admin-card h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.15; }
.hf-admin-card p { margin: 0; color: #9eabb7; font-size: 12px; line-height: 1.5; }
.hf-admin-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.hf-section-title {
    margin: 23px 0 12px;
    font-family: var(--hf-display);
    font-size: 44px;
    line-height: 1;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.hf-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.hf-meta span {
    padding: 5px 8px;
    color: #a0adba;
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    font-size: 8px;
}

/* Legacy classes retained so older admin markup stays sane */
.hf-command-grid { display: grid; grid-template-columns: 260px minmax(0,1fr) 320px; gap: 14px; align-items: start; }
.hf-sidebar-stack { display: grid; gap: 12px; }
.hf-side-card { padding: 16px; }
.hf-side-card-copy { margin: 0; color: var(--hf-muted); font-size: 11px; line-height: 1.45; }
.hf-category-list { display: grid; }
.hf-category-item {
    min-height: 57px;
    display: grid;
    grid-template-columns: 37px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.hf-category-item.active { background: rgba(19,158,242,.07); }
.hf-category-total { color: var(--hf-red-soft); font-size: 9px; }
.hf-archive-link,
.hf-list-footer a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px;
    color: var(--hf-blue);
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hf-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.hf-quick-card {
    min-height: 78px;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    align-items: center;
    gap: 11px;
    padding: 13px;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    background: var(--hf-panel);
    border: 1px solid var(--hf-line);
}
.hf-quick-icon {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--hf-blue); border-radius: 8px; background: rgba(19,158,242,.06); border: 1px solid rgba(19,158,242,.25);
}
.hf-quick-copy strong,
.hf-quick-copy small { display: block; }
.hf-quick-copy strong { font-family: var(--hf-display); font-size: 15px; text-transform: uppercase; }
.hf-quick-copy small { margin-top: 4px; color: var(--hf-dim); font-size: 9px; }

/* Footer */
.hf-site-footer {
    width: min(calc(100% - 24px), 1500px);
    margin: 0 auto 18px;
    color: #71808e;
    border-top: 1px solid rgba(255,255,255,.08);
}
.hf-footer-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 10px;
}
.hf-footer-inner strong {
    color: #b9c4ce;
    font-size: 10px;
    letter-spacing: .09em;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1380px) {
    .hf-header-inner { grid-template-columns: 330px minmax(0,1fr) 58px; }
    .hf-header-brand { width: 323px; }
    .hf-header-brand-copy strong { font-size: 24px; }
    .hf-header-brand-copy small { font-size: 9px; letter-spacing: .09em; }
    .hf-main-nav > .hf-nav-item > a { padding-inline: 11px; font-size: 14px; }
    .hf-command-stats { width: calc(100% - 40px); }
    .hf-forum-layout { grid-template-columns: minmax(0,1fr) 315px; }
    .hf-category-table-head { grid-template-columns: minmax(0,1fr) 65px 65px 210px; }
    .hf-category-row { grid-template-columns: 46px minmax(0,1fr) 65px 65px 210px; }
}
@media (max-width: 1100px) {
    .hf-menu-toggle { display: inline-flex; grid-column: 2; }
    .hf-header-inner {
        width: min(calc(100% - 14px), 1080px);
        min-height: 70px;
        padding: 0;
        grid-template-columns: 58px minmax(0,1fr) 52px;
        gap: 8px;
    }
    .hf-site-header { min-height: 71px; }
    .hf-header-brand {
        width: 56px;
        height: 56px;
        padding: 3px;
        justify-content: center;
        border-color: transparent;
        background: transparent;
    }
    .hf-header-brand img { width: 50px; height: 50px; flex-basis: 50px; }
    .hf-header-brand-copy { display: none; }
    .hf-main-nav {
        display: none;
        position: absolute;
        left: 12px;
        right: 12px;
        top: 70px;
        height: auto;
        max-height: calc(100vh - 82px);
        overflow-y: auto;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        border-radius: 12px;
        background: rgba(2, 9, 15, .995);
        border: 1px solid var(--hf-line-strong);
        box-shadow: var(--hf-shadow);
    }
    .hf-main-nav.open { display: flex; }
    .hf-nav-item { display: block; }
    .hf-main-nav > .hf-nav-item > a {
        width: 100%;
        min-height: 42px;
        justify-content: flex-start;
        padding: 0 14px;
        font-size: 15px;
    }
    .hf-main-nav > .hf-nav-item > a.active::after {
        left: 0;
        right: auto;
        top: 7px;
        bottom: 7px;
        width: 3px;
        height: auto;
    }
    .hf-has-submenu > a::before { display: none; }
    .hf-submenu {
        position: static;
        min-width: 0;
        margin: 0 0 6px 14px;
        padding: 4px 6px 5px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        border: 0;
        border-left: 1px solid rgba(19, 158, 242, .4);
        border-radius: 0;
        background: rgba(10, 25, 37, .46);
        box-shadow: none;
    }
    .hf-nav-item:hover > .hf-submenu,
    .hf-nav-item:focus-within > .hf-submenu { transform: none; }
    .hf-submenu a { min-height: 36px; font-size: 13px; }
    .hf-header-search { margin-right: 0; }
    .hf-command-stats { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .hf-open-case-button { grid-column: 1 / -1; min-height: 62px; }
    .hf-forum-layout { grid-template-columns: 1fr; }
    .hf-forum-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hf-welcome-card { grid-column: 1 / -1; }
    .hf-category-table-head { grid-template-columns: minmax(0,1fr) 70px 70px 240px; }
    .hf-category-row { grid-template-columns: 46px minmax(0,1fr) 70px 70px 240px; }
    .hf-bring-weird { grid-template-columns: minmax(0,1fr) auto; }
    .hf-bring-weird p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
    body { background-attachment: scroll; }
    .hf-page,
    .hf-site-footer { width: min(calc(100% - 14px), 720px); }
    .hf-page { padding-top: 7px; }
    .hf-command-hero img { min-height: 190px; height: 42vw; object-position: center; }
    .hf-command-stats {
        width: 100%;
        margin-top: 8px;
        grid-template-columns: repeat(2, minmax(0,1fr));
        border-radius: 12px;
    }
    .hf-command-stat { min-height: 68px; padding: 10px 12px; grid-template-columns: 37px minmax(0,1fr); gap: 9px; }
    .hf-command-stat:nth-child(even) { border-right: 0; }
    .hf-stat-icon { width: 35px; height: 35px; }
    .hf-stat-value { font-size: 25px; }
    .hf-forum-sidebar { grid-template-columns: 1fr; }
    .hf-welcome-card { grid-column: auto; }
    .hf-category-table-head { display: none; }
    .hf-category-row {
        grid-template-columns: 42px minmax(0,1fr) auto;
        min-height: 68px;
        padding: 9px 12px;
    }
    .hf-category-metric { display: none; }
    .hf-category-last { display: none; }
    .hf-category-copy strong { font-size: 15px; }
    .hf-category-copy small { font-size: 9px; }
    .hf-cases-toolbar { grid-template-columns: 1fr; }
    .hf-topic-row { grid-template-columns: 37px minmax(0,1fr) 48px; gap: 9px; }
    .hf-topic-row .views,
    .hf-topic-last { display: none; }
    .hf-topic-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; }
    .hf-bring-weird { grid-template-columns: 1fr; text-align: center; }
    .hf-bring-weird-brand { justify-content: center; }
    .hf-bring-weird p { grid-column: auto; grid-row: auto; margin-inline: auto; }
    .hf-bring-weird-button { min-width: 0; width: 100%; }
    .hf-form-grid { grid-template-columns: 1fr; }
    .hf-form-grid .full { grid-column: auto; }
    .hf-thread-header { padding: 22px 17px; }
    .hf-thread-title { font-size: clamp(39px, 13vw, 62px); }
    .hf-post-card { grid-template-columns: 1fr; }
    .hf-author-rail {
        display: grid;
        grid-template-columns: 54px minmax(0,1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        text-align: left;
        border-right: 0;
        border-bottom: 1px solid var(--hf-line);
    }
    .hf-author-avatar { width: 52px; height: 52px; margin: 0; }
    .hf-author-stats { margin: 0; padding: 0; border: 0; text-align: right; }
    .hf-author-stats span:nth-child(n+2) { display: none; }
    .hf-post-main { padding: 15px; }
    .hf-post-body { font-size: 15px; line-height: 1.66; }
    .hf-related-grid { grid-template-columns: 1fr; }
    .hf-footer-inner { flex-direction: column; justify-content: center; gap: 7px; padding: 18px 0; text-align: center; }
}
@media (max-width: 430px) {
    .hf-header-inner { grid-template-columns: 48px minmax(0,1fr) 46px; }
    .hf-header-brand { width: 46px; height: 46px; }
    .hf-header-brand img { width: 42px; height: 42px; flex-basis: 42px; }
    .hf-header-search,
    .hf-menu-toggle { width: 44px; height: 44px; }
    .hf-command-stat { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .hf-stat-sub { display: none; }
    .hf-command-hero img { height: 50vw; min-height: 170px; }
    .hf-panel-heading { padding-inline: 13px; }
    .hf-panel-title { font-size: 17px; }
    .hf-category-row { grid-template-columns: 38px minmax(0,1fr); }
    .hf-category-icon { width: 36px; height: 36px; }
    .hf-topic-sub { font-size: 8px; }
    .hf-topic-list { padding-inline: 7px; }
    .hf-bring-weird-brand { flex-direction: column; gap: 8px; }
    .hf-bring-weird-brand img { width: 62px; height: 62px; }
    .hf-bring-weird-brand span { white-space: normal; }
}
