:root {
    --bg: #101a2a;
    --bg-alt: #1b2a3f;
    --panel: rgba(24, 35, 52, 0.88);
    --panel-strong: rgba(20, 30, 45, 0.94);
    --panel-muted: rgba(29, 43, 63, 0.78);
    --text: #f2f8ff;
    --text-muted: #bfd0e3;
    --line: rgba(118, 191, 255, 0.32);
    --accent: #56b7ff;
    --accent-strong: #b9e6ff;
    --accent-soft: #d8f1ff;
    --danger: #ff7272;
    --success: #76e3b2;
    --shadow: 0 20px 46px rgba(4, 10, 19, 0.35);
    --radius: 14px;
    --ink: #08131f;
    --mech-warning: #ffd35f;
    --mech-alert: #ff5a5a;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(1200px 640px at 6% -14%, rgba(94, 177, 255, 0.28), transparent 58%),
        radial-gradient(980px 500px at 108% 4%, rgba(240, 248, 255, 0.16), transparent 60%),
        radial-gradient(760px 340px at 52% 12%, rgba(255, 211, 95, 0.08), transparent 68%),
        linear-gradient(140deg, #101a2a 0%, #1a2a3f 44%, #22344c 76%, #172638 100%);
    color: var(--text);
    font-family: "Oxanium", "Rajdhani", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Oxanium", "Rajdhani", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

p {
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

textarea,
input,
select {
    width: 100%;
    border: 1px solid rgba(126, 185, 255, 0.18);
    border-radius: 14px;
    background: rgba(9, 14, 22, 0.9);
    color: var(--text);
    padding: 0.9rem 1rem;
}

textarea:focus,
input:focus,
select:focus,
.button:focus {
    outline: none;
    border-color: rgba(126, 185, 255, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(126, 185, 255, 0.12);
}

.material-symbols-rounded {
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.rg-site {
    min-height: 100vh;
    background:
        radial-gradient(1320px 680px at 8% -20%, rgba(86, 183, 255, 0.34), transparent 60%),
        radial-gradient(1040px 560px at 115% 8%, rgba(240, 247, 255, 0.18), transparent 60%),
        radial-gradient(760px 420px at 50% 18%, rgba(255, 211, 95, 0.08), transparent 64%),
        linear-gradient(120deg, rgba(20, 30, 45, 0.93), rgba(22, 34, 51, 0.89)),
        url('/images/mech_03.png') center/cover no-repeat fixed;
    position: relative;
    isolation: isolate;
}

.rg-site::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(18, 27, 41, 0.75) 0%, rgba(22, 34, 51, 0.32) 58%, rgba(18, 27, 41, 0.78) 100%),
        radial-gradient(700px 240px at 50% 0%, rgba(200, 229, 255, 0.12), transparent 72%);
    z-index: 0;
    pointer-events: none;
}

.rg-site::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(155, 220, 255, 0.04) 0,
            rgba(155, 220, 255, 0.04) 1px,
            transparent 1px,
            transparent 42px
        );
    mix-blend-mode: screen;
    opacity: 0.34;
    z-index: 0;
    pointer-events: none;
}

.rg-site > * {
    position: relative;
    z-index: 1;
}

.content {
    width: min(1380px, calc(100% - 2rem));
    margin: 0 auto;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.page-frame {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.page-section {
    display: flex;
    flex-direction: column;
    gap: 1.65rem;
}

.forum-page {
    gap: 1rem;
}

.forum-page__heading {
    margin-bottom: 0.25rem;
}

.forum-crumbs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(118, 191, 255, 0.3);
    background: rgba(28, 41, 60, 0.8);
    color: rgba(228, 239, 250, 0.86);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.forum-crumbs a:hover {
    color: #ffffff;
}

.kicker {
    color: rgba(211, 228, 244, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    font-weight: 700;
}

.hero-panel,
.content-split,
.chat-shell,
.home-hero-inner {
    display: grid;
    gap: 1.25rem;
}

.hero-panel,
.home-hero-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.95fr);
}

.hero-panel__copy,
.hero-panel__feature,
.content-card,
.home-hero-panel,
.home-hero-feature-card {
    min-width: 0;
}

.hero-panel__copy,
.content-card,
.stat-card,
.home-hero-panel,
.home-hero-feature-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(26, 39, 56, 0.92), rgba(21, 33, 49, 0.9)),
        radial-gradient(300px 150px at 0% 0%, rgba(104, 198, 255, 0.2), transparent 72%),
        linear-gradient(45deg, rgba(255, 211, 95, 0.07), transparent 42%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel__copy::before,
.content-card::before,
.stat-card::before,
.home-hero-panel::before,
.home-hero-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(86, 183, 255, 0.12), transparent 42%, rgba(255, 211, 95, 0.08)),
        linear-gradient(180deg, transparent 0 92%, rgba(255, 90, 90, 0.2) 92% 94%, transparent 94%);
    pointer-events: none;
}

.hero-panel__copy > *,
.content-card > *,
.stat-card > *,
.home-hero-panel > *,
.home-hero-feature-card > * {
    position: relative;
    z-index: 1;
}

.hero-panel__copy,
.home-hero-panel {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-panel__copy h1 {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 0.95;
}

.lede {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.content-card {
    padding: 1.55rem;
}

.content-card--accent {
    background:
        linear-gradient(180deg, rgba(7, 11, 18, 0.96), rgba(10, 16, 26, 0.94)),
        linear-gradient(135deg, rgba(126, 185, 255, 0.12), rgba(217, 228, 239, 0.12));
}

.content-card--hero {
    padding: 1.9rem;
}

.home-hero {
    padding-top: 0.35rem;
}

.home-hero-panel {
    min-height: 380px;
    justify-content: center;
}

.home-hero-tag {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.home-hero-title {
    font-size: clamp(2.4rem, 4.8vw, 4.25rem);
    line-height: 0.92;
    text-shadow: 0 0 18px rgba(76, 194, 255, 0.45);
}

.home-hero-subtitle {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 46rem;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.home-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.7rem;
    border-radius: 10px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-decoration: none;
    background:
        linear-gradient(135deg, var(--accent), var(--accent-strong)),
        linear-gradient(90deg, transparent, rgba(255, 211, 95, 0.55), transparent);
    box-shadow: 0 12px 28px rgba(54, 153, 217, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(217, 228, 239, 0.28);
}

.home-hero-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 32rem;
}

.home-hero-feature-card {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.home-hero-feature-copy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.forum-home-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-grid,
.category-grid,
.form-grid {
    display: grid;
    gap: 1rem;
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.stat-card .material-symbols-rounded {
    color: var(--accent);
}

.stat-card strong {
    font-size: 2rem;
    font-family: "Oxanium", sans-serif;
}

.stat-card span:last-child {
    color: var(--text-muted);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.content-card > .section-heading:first-child {
    padding-bottom: 0.95rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid rgba(126, 185, 255, 0.12);
}

.section-heading--compact {
    align-items: center;
}

.section-heading h1,
.section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button-row--toolbar {
    gap: 0.55rem;
}

.button,
.button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.button--compact {
    padding: 0.58rem 0.9rem;
    min-height: 40px;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background:
        linear-gradient(135deg, var(--accent), var(--accent-strong)),
        linear-gradient(90deg, transparent 0 74%, rgba(255, 211, 95, 0.75) 74% 80%, transparent 80%);
    color: var(--ink);
    box-shadow: 0 10px 22px rgba(56, 153, 218, 0.28);
}

.button--ghost {
    border-color: rgba(118, 191, 255, 0.34);
    background: rgba(31, 46, 67, 0.74);
    color: var(--text);
}

.button--danger {
    background: rgba(255, 124, 111, 0.14);
    border-color: rgba(255, 124, 111, 0.24);
    color: #ffd0c9;
}

.button--full {
    width: 100%;
}

.inline-link {
    color: var(--accent);
    font-weight: 700;
}

.meta-row,
.pill-row,
.checkbox-row,
.pagination-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.meta-row,
.subtle-copy,
small {
    color: var(--text-muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(86, 183, 255, 0.25);
    color: #ecf7ff;
    font-size: 0.82rem;
    font-weight: 700;
}

.pill--secondary {
    background: rgba(255, 211, 95, 0.18);
    color: #ffe8a2;
}

.category-card,
.category-panel {
    border-left: 1px solid rgba(126, 185, 255, 0.16);
    box-shadow: inset 2px 0 0 var(--accent);
}

.category-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
}

.category-panel {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.category-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin: 0;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(118, 191, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(38, 56, 80, 0.95), rgba(26, 40, 58, 0.95)),
        repeating-linear-gradient(
            90deg,
            transparent 0 24px,
            rgba(255, 211, 95, 0.08) 24px 26px
        );
}

.stack-list,
.thread-list,
.timeline-list,
.poll-list,
.post-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.stack-list__item,
.thread-list__item,
.timeline-list__item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 10px;
    border: 1px solid rgba(118, 191, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(33, 49, 71, 0.82), rgba(25, 37, 55, 0.9)),
        radial-gradient(180px 90px at 0% 0%, rgba(94, 184, 255, 0.16), transparent 75%);
    backdrop-filter: blur(10px);
}

.stack-list__item:hover,
.thread-list__item:hover,
.timeline-list__item:hover {
    border-color: rgba(126, 185, 255, 0.22);
    box-shadow: 0 12px 24px rgba(3, 7, 12, 0.24);
}

.stack-list__item > div,
.thread-list__item > div,
.timeline-list__item > div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.stack-list__item strong,
.thread-list__item strong,
.timeline-list__item strong {
    font-size: 1rem;
}

.stack-list__item span,
.thread-list__item span,
.timeline-list__item span {
    color: var(--text-muted);
}

.stack-list__count {
    align-self: center;
    white-space: nowrap;
}

.thread-list__meta {
    align-items: end;
    text-align: right;
    white-space: nowrap;
}

.thread-list--detailed .thread-list__item {
    align-items: center;
}

.forum-table {
    display: flex;
    flex-direction: column;
    margin: 0.85rem;
    border: 1px solid rgba(118, 191, 255, 0.24);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(24, 36, 53, 0.72);
}

.forum-table__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 110px minmax(230px, 0.85fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.7rem 0.95rem;
    border-bottom: 1px solid rgba(118, 191, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(46, 68, 97, 0.92), rgba(30, 46, 68, 0.95)),
        linear-gradient(90deg, rgba(255, 211, 95, 0.12), transparent 35%);
}

.forum-table__col,
.thread-table__col {
    color: rgba(221, 231, 241, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: right;
}

.forum-table__col--title,
.thread-table__col--title {
    text-align: left;
}

.forum-table__col--latest,
.thread-table__col--last {
    text-align: right;
}

.forum-table__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 110px minmax(230px, 0.85fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid rgba(118, 191, 255, 0.16);
    background: rgba(26, 40, 59, 0.74);
    transition: background-color 140ms ease, border-color 140ms ease;
}

.forum-table__row:last-child {
    border-bottom: 0;
}

.forum-table__row:hover {
    border-bottom-color: rgba(118, 191, 255, 0.34);
    background: rgba(36, 55, 80, 0.9);
}

.forum-table__title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.forum-table__status {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(118, 191, 255, 0.44);
    background:
        radial-gradient(circle at 50% 35%, rgba(207, 238, 255, 0.32), rgba(86, 183, 255, 0.24)),
        linear-gradient(180deg, rgba(255, 211, 95, 0.12), transparent);
}

.forum-table__status .material-symbols-rounded {
    font-size: 1.05rem;
    color: #eff6ff;
}

.forum-table__title > div {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.forum-table__title strong {
    font-size: 0.95rem;
}

.forum-table__stat,
.forum-table__latest {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    align-items: end;
    text-align: right;
    white-space: nowrap;
}

.forum-table__stat strong,
.forum-table__latest strong {
    font-size: 0.9rem;
}

.thread-table {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(118, 191, 255, 0.24);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(24, 36, 53, 0.72);
}

.thread-table__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 90px minmax(220px, 0.8fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.7rem 0.95rem;
    border-bottom: 1px solid rgba(118, 191, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(46, 68, 97, 0.92), rgba(30, 46, 68, 0.95)),
        linear-gradient(90deg, rgba(255, 211, 95, 0.12), transparent 35%);
}

.thread-table__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 90px minmax(220px, 0.8fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid rgba(118, 191, 255, 0.16);
    background: rgba(26, 40, 59, 0.74);
    transition: background-color 140ms ease, border-color 140ms ease;
}

.thread-table__row:last-child {
    border-bottom: 0;
}

.thread-table__row:hover {
    border-bottom-color: rgba(118, 191, 255, 0.34);
    background: rgba(36, 55, 80, 0.9);
}

.thread-table__title {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.thread-table__title strong {
    font-size: 0.95rem;
}

.thread-table__title span {
    color: var(--text-muted);
}

.thread-table__stat,
.thread-table__last {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: end;
    text-align: right;
    white-space: nowrap;
}

.thread-table__stat strong,
.thread-table__last strong {
    font-size: 0.9rem;
}

.thread-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    gap: 1.25rem;
    align-items: start;
}

.thread-hero__content {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.thread-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 1.05rem;
    border-radius: 10px;
    border: 1px solid rgba(118, 191, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(34, 50, 73, 0.9), rgba(25, 37, 55, 0.92)),
        radial-gradient(200px 90px at 0% 0%, rgba(86, 183, 255, 0.16), transparent 76%),
        linear-gradient(90deg, rgba(255, 211, 95, 0.09), transparent 46%);
}

.poll-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.poll-option__body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.poll-option__label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.poll-option__bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.poll-option__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.post-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

.post-card__aside,
.post-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.post-card__aside {
    padding: 1rem 0.95rem;
    border-right: 1px solid rgba(118, 191, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(39, 58, 84, 0.9), rgba(28, 41, 60, 0.94)),
        linear-gradient(180deg, rgba(255, 211, 95, 0.08), transparent 30%);
}

.post-card__body {
    padding: 0.95rem 1.05rem;
}

.post-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(118, 191, 255, 0.2);
}

.post-card__anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.1rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(118, 191, 255, 0.36);
    background: linear-gradient(135deg, rgba(86, 183, 255, 0.18), rgba(255, 211, 95, 0.14));
    color: rgba(228, 239, 255, 0.88);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.post-card__anchor:hover {
    border-color: rgba(126, 185, 255, 0.36);
    background: rgba(126, 185, 255, 0.16);
    color: #ffffff;
}

.post-card--muted {
    opacity: 0.72;
}

.rich-copy,
.signature-copy {
    white-space: pre-wrap;
    line-height: 1.7;
}

.signature-copy {
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
}

.reply-preview {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border-left: 3px solid rgba(126, 185, 255, 0.65);
    background:
        linear-gradient(180deg, rgba(126, 185, 255, 0.08), rgba(10, 16, 26, 0.4)),
        rgba(255, 255, 255, 0.02);
}

.reply-preview p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
    white-space: pre-wrap;
}

.reply-preview--composer {
    margin-bottom: 0.5rem;
}

.reply-preview__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.reply-preview__label {
    color: var(--accent-soft);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
}

.moderation-note,
.moderation-inline-panel {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 124, 111, 0.08);
    border: 1px solid rgba(255, 124, 111, 0.18);
}

.moderation-note strong {
    color: #ffd2ca;
}

.moderation-note span,
.moderation-note small {
    color: var(--text-muted);
}

.moderation-inline-panel {
    margin-top: 0.2rem;
}

.avatar-shell {
    width: 4rem;
    height: 4rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(126, 185, 255, 0.18), rgba(217, 228, 239, 0.22));
    display: grid;
    place-items: center;
    overflow: hidden;
    font-family: "Oxanium", sans-serif;
    font-size: 1.3rem;
}

.avatar-shell--small {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 16px;
    font-size: 1rem;
}

.avatar-shell--large {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 26px;
    font-size: 2rem;
}

.avatar-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alert-panel {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 124, 111, 0.26);
    background: rgba(255, 124, 111, 0.12);
    color: #ffd2ca;
}

.alert-panel--success {
    border-color: rgba(95, 209, 139, 0.26);
    background: rgba(95, 209, 139, 0.12);
    color: #d8ffe6;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background:
        linear-gradient(180deg, rgba(7, 11, 18, 0.96), rgba(9, 14, 22, 0.92)),
        radial-gradient(260px 140px at 0% 0%, rgba(126, 185, 255, 0.1), transparent 74%);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-field label {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid--search {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
}

.form-field--actions {
    justify-content: end;
}

.validation-message,
.validation-errors,
.validation-summary-errors {
    color: #ffd0c9;
}

.chat-shell {
    grid-template-columns: 280px minmax(0, 1fr);
}

.chat-shell__rooms,
.chat-shell__panel {
    min-height: 620px;
}

.room-pill {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(10, 16, 26, 0.72), rgba(6, 10, 18, 0.84)),
        radial-gradient(140px 70px at 0% 0%, rgba(126, 185, 255, 0.08), transparent 75%);
    color: var(--text);
}

.room-pill span,
.room-pill small {
    color: var(--text-muted);
}

.room-pill--active {
    border-color: rgba(126, 185, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(126, 185, 255, 0.14), rgba(9, 14, 22, 0.82)),
        radial-gradient(140px 70px at 0% 0%, rgba(217, 228, 239, 0.08), transparent 75%);
}

.chat-feed {
    min-height: 420px;
    max-height: 520px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-right: 0.35rem;
}

.chat-message {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
    padding: 1rem;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(10, 16, 26, 0.72), rgba(6, 10, 18, 0.84)),
        radial-gradient(140px 70px at 0% 0%, rgba(126, 185, 255, 0.08), transparent 75%);
}

.chat-message--muted {
    opacity: 0.7;
}

.chat-message__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.chat-composer {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.timeline-list__item--unread {
    border-color: rgba(126, 185, 255, 0.34);
}

.profile-hero {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.account-shell {
    max-width: 720px;
}

.account-card {
    padding: 2rem;
}

.identity-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.identity-shell__nav,
.identity-shell__content {
    min-width: 0;
}

.identity-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.identity-nav__link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.identity-nav__link:hover {
    color: var(--text);
    border-color: rgba(126, 185, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.identity-nav__link.active {
    color: var(--text);
    border-color: rgba(126, 185, 255, 0.28);
    background: linear-gradient(180deg, rgba(126, 185, 255, 0.12), rgba(217, 228, 239, 0.08));
    box-shadow: inset 0 0 0 1px rgba(126, 185, 255, 0.06);
}

.identity-shell__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.identity-shell__content hr {
    border: 0;
    border-top: 1px solid var(--line);
    opacity: 1;
}

.identity-shell__content .row {
    margin: 0;
}

.identity-shell__content .col-xl-6,
.identity-shell__content .col-lg-3,
.identity-shell__content .col-lg-9 {
    padding: 0;
}

.identity-shell__content .form-control,
.identity-shell__content .form-select {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(5, 13, 23, 0.8);
    color: var(--text);
    min-height: 54px;
}

.identity-shell__content .form-floating > label,
.identity-shell__content .form-label,
.identity-shell__content .control-label {
    color: var(--text-muted);
}

.identity-shell__content .btn {
    border-radius: 16px;
    border: 1px solid transparent;
    padding: 0.85rem 1.1rem;
    font-weight: 600;
}

.identity-shell__content .btn-primary {
    color: #041019;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-color: rgba(126, 185, 255, 0.24);
}

.identity-shell__content .btn-danger {
    color: #fff3f1;
    background: rgba(255, 124, 111, 0.16);
    border-color: rgba(255, 124, 111, 0.26);
}

.identity-shell__content .btn:hover {
    transform: translateY(-1px);
}

.identity-shell__content .alert {
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.identity-shell__content .alert-danger {
    border-color: rgba(255, 124, 111, 0.24);
    background: rgba(255, 124, 111, 0.1);
}

.identity-shell__content .alert-warning {
    border-color: rgba(255, 204, 92, 0.24);
    background: rgba(255, 204, 92, 0.1);
}

.identity-shell__content .text-danger {
    color: #ffb3aa !important;
}

.authenticator-setup {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-top: 1rem;
}

.authenticator-setup__qr,
.authenticator-setup__key {
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
}

.authenticator-setup__qr {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.authenticator-setup__qr-frame {
    display: grid;
    place-items: center;
    padding: 0.85rem;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(7, 19, 32, 0.06);
}

.authenticator-setup__qr-frame svg {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}

.authenticator-setup__qr-warning {
    margin-bottom: 0;
}

.authenticator-setup__key {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.staff-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.staff-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(126, 185, 255, 0.14);
    background:
        linear-gradient(135deg, rgba(10, 16, 26, 0.84), rgba(6, 10, 18, 0.94)),
        radial-gradient(140px 70px at 0% 0%, rgba(126, 185, 255, 0.14), transparent 75%);
    color: rgba(238, 244, 251, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.staff-nav__link:hover,
.staff-nav__link.active {
    color: #04111d;
    border-color: transparent;
    background: linear-gradient(135deg, rgba(126, 185, 255, 0.96), rgba(217, 228, 239, 0.92), rgba(171, 188, 207, 0.9));
    box-shadow: 0 14px 28px rgba(126, 185, 255, 0.2);
    transform: translateY(-1px);
}

.staff-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.authenticator-setup__secret {
    display: inline-flex;
    align-self: start;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    word-break: break-word;
}

.category-panel__header {
    margin-bottom: 0;
}

.pagination-row {
    justify-content: space-between;
    margin-top: 1rem;
}

.subtle-copy {
    font-size: 0.92rem;
}

.thread-list__item--actions {
    align-items: center;
}

#blazor-error-ui {
    background: rgba(255, 124, 111, 0.95);
    color: #fff;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1rem 1.4rem;
    border-radius: 18px;
    z-index: 1000;
}

#blazor-error-ui .dismiss,
#blazor-error-ui .reload {
    color: inherit;
    margin-left: 1rem;
}

@media (max-width: 1100px) {
    .hero-panel,
    .content-split,
    .chat-shell,
    .home-hero-inner,
    .thread-hero {
        grid-template-columns: 1fr;
    }

    .metric-grid,
    .category-grid,
    .form-grid,
    .form-grid--search,
    .identity-shell,
    .authenticator-setup {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .content {
        width: min(100% - 1rem, 1380px);
    }

    .staff-search-grid {
        grid-template-columns: 1fr;
    }

    .content-card,
    .hero-panel__copy,
    .stat-card,
    .home-hero-panel,
    .home-hero-feature-card {
        padding: 1.15rem;
        border-radius: 24px;
    }

    .thread-hero,
    .profile-hero,
    .post-card,
    .forum-table__row,
    .thread-table__row,
    .thread-list__item,
    .stack-list__item,
    .timeline-list__item,
    .chat-message {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .category-panel,
    .post-card {
        padding: 0;
    }

    .forum-table__head,
    .thread-table__head {
        display: none;
    }

    .thread-hero__actions {
        width: 100%;
    }

    .post-card__aside {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 1rem;
    }

    .forum-table__stat,
    .forum-table__latest,
    .thread-table__stat,
    .thread-table__last,
    .thread-list__meta {
        align-items: start;
        text-align: left;
        white-space: normal;
    }
}

/* Modern command-deck redesign layer */
:root {
    --bg: #05080d;
    --bg-alt: #0c1219;
    --panel: rgba(11, 17, 25, 0.88);
    --panel-strong: rgba(8, 13, 20, 0.96);
    --panel-muted: rgba(16, 25, 34, 0.78);
    --text: #edf7f8;
    --text-muted: #9fb1bc;
    --line: rgba(91, 237, 255, 0.22);
    --line-strong: rgba(91, 237, 255, 0.42);
    --accent: #47eaff;
    --accent-strong: #8fffd2;
    --accent-soft: #c8fff0;
    --warning: #ffd166;
    --danger: #ff5f7d;
    --success: #71f2a4;
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.44);
    --radius: 8px;
    --ink: #041014;
}

html {
    color-scheme: dark;
    scrollbar-gutter: stable;
}

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

body::selection {
    background: rgba(71, 234, 255, 0.28);
    color: #ffffff;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--accent-soft);
}

a:hover {
    color: #ffffff;
}

h1,
h2,
h3,
h4 {
    font-family: "Oxanium", "Public Sans", sans-serif;
    letter-spacing: 0.02em;
    text-wrap: balance;
}

h1 {
    color: #fbffff;
}

p,
.rich-copy,
.signature-copy {
    overflow-wrap: anywhere;
}

textarea,
input,
select,
.identity-shell__content .form-control,
.identity-shell__content .form-select {
    border-radius: 6px;
    border-color: rgba(91, 237, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(6, 11, 17, 0.94), rgba(11, 17, 25, 0.94)),
        repeating-linear-gradient(90deg, rgba(91, 237, 255, 0.035) 0 1px, transparent 1px 18px);
    color: var(--text);
    caret-color: var(--accent);
}

textarea::placeholder,
input::placeholder {
    color: rgba(159, 177, 188, 0.75);
}

textarea:focus,
input:focus,
select:focus,
.button:focus,
.identity-shell__content .form-control:focus,
.identity-shell__content .form-select:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 0.18rem rgba(71, 234, 255, 0.13);
}

input[type="checkbox"],
input[type="radio"],
.identity-shell__content .form-check-input {
    width: auto;
    min-width: 1rem;
    height: 1rem;
    padding: 0;
    border-radius: 3px;
    accent-color: var(--accent);
}

input[type="radio"] {
    border-radius: 999px;
}

.rg-site {
    min-height: 100vh;
    background-color: var(--bg);
    background-image:
        linear-gradient(180deg, rgba(4, 7, 11, 0.62) 0%, rgba(5, 8, 13, 0.9) 58%, rgba(5, 8, 13, 0.98) 100%),
        repeating-linear-gradient(90deg, rgba(91, 237, 255, 0.055) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(0deg, rgba(143, 255, 210, 0.035) 0 1px, transparent 1px 44px),
        url('/images/mech_03.png');
    background-position: center, center, center, center top;
    background-size: cover, 44px 44px, 44px 44px, cover;
    background-attachment: fixed;
}

.rg-site::before {
    background:
        linear-gradient(90deg, rgba(5, 8, 13, 0.95) 0%, rgba(5, 8, 13, 0.58) 42%, rgba(5, 8, 13, 0.86) 100%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
    opacity: 0.72;
}

.rg-site::after {
    background:
        linear-gradient(120deg, transparent 0 18%, rgba(71, 234, 255, 0.075) 18% 18.4%, transparent 18.4% 42%, rgba(255, 209, 102, 0.07) 42% 42.35%, transparent 42.35%),
        repeating-linear-gradient(90deg, transparent 0 30px, rgba(143, 255, 210, 0.045) 30px 31px, transparent 31px 72px);
    mix-blend-mode: screen;
    opacity: 0.55;
}

.content {
    width: min(1420px, calc(100% - 2rem));
    padding-top: 1.1rem;
    padding-bottom: 3rem;
}

.page-frame {
    gap: 1.25rem;
}

.page-section {
    gap: 1.25rem;
}

.kicker {
    color: var(--accent-strong);
    letter-spacing: 0.18em;
    font-size: 0.7rem;
}

.lede {
    color: var(--text-muted);
    max-width: 70ch;
}

.forum-crumbs {
    width: fit-content;
    max-width: 100%;
    border-radius: 6px;
    border-color: rgba(91, 237, 255, 0.22);
    background: rgba(7, 12, 18, 0.76);
    color: var(--text-muted);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.hero-panel__copy,
.content-card,
.stat-card,
.home-hero-panel,
.home-hero-feature-card {
    border-radius: var(--radius);
    border-color: var(--line);
    background:
        linear-gradient(180deg, rgba(13, 20, 29, 0.92), rgba(7, 12, 19, 0.96)),
        repeating-linear-gradient(135deg, rgba(91, 237, 255, 0.045) 0 1px, transparent 1px 16px);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
}

.hero-panel__copy::before,
.content-card::before,
.stat-card::before,
.home-hero-panel::before,
.home-hero-feature-card::before {
    background:
        linear-gradient(90deg, rgba(71, 234, 255, 0.16), transparent 28%, rgba(143, 255, 210, 0.08) 64%, rgba(255, 209, 102, 0.11)),
        linear-gradient(180deg, transparent 0 calc(100% - 2px), rgba(71, 234, 255, 0.42) calc(100% - 2px) 100%);
    opacity: 0.72;
}

.hero-panel__copy::after,
.content-card::after,
.stat-card::after,
.home-hero-panel::after,
.home-hero-feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(71, 234, 255, 0.32), transparent 24%) border-box,
        linear-gradient(315deg, rgba(255, 209, 102, 0.22), transparent 20%) border-box;
    mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.home-hero {
    padding-top: 0.1rem;
}

.home-hero-inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
    gap: 1rem;
}

.home-hero-panel {
    min-height: clamp(320px, 44vh, 480px);
    padding: clamp(1.35rem, 3vw, 2.6rem);
    justify-content: center;
}

.home-hero-tag {
    color: var(--accent-strong);
    letter-spacing: 0.22em;
}

.home-hero-title {
    font-size: clamp(2.25rem, 5vw, 5rem);
    line-height: 0.96;
    text-shadow: 0 0 26px rgba(71, 234, 255, 0.32);
}

.home-hero-subtitle {
    color: #c5d4da;
    max-width: 62ch;
}

.home-hero-note,
.subtle-copy,
small,
.meta-row {
    color: var(--text-muted);
}

.home-hero-feature-card {
    min-height: 100%;
}

.section-heading {
    align-items: end;
}

.section-heading h1,
.section-heading h2 {
    line-height: 1.05;
}

.content-card > .section-heading:first-child {
    border-bottom-color: rgba(91, 237, 255, 0.16);
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.category-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.stat-card {
    min-height: 132px;
    justify-content: space-between;
}

.stat-card .material-symbols-rounded {
    color: var(--accent-strong);
}

.stat-card strong {
    color: #ffffff;
    line-height: 1;
}

.button,
.button:visited,
.home-hero-button,
.staff-nav__link,
.identity-shell__content .btn {
    border-radius: 6px;
    min-height: 42px;
}

.button,
.button:visited,
.home-hero-button {
    position: relative;
    overflow: hidden;
    padding: 0.78rem 1.05rem;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
}

.button::after,
.home-hero-button::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong), var(--warning));
    transform: scaleX(0.28);
    transform-origin: left center;
    transition: transform 140ms ease;
}

.button:hover::after,
.home-hero-button:hover::after {
    transform: scaleX(1);
}

.button:hover,
.home-hero-button:hover,
.staff-nav__link:hover,
.identity-shell__content .btn:hover {
    transform: translateY(-1px);
}

.button--primary,
.home-hero-button,
.identity-shell__content .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(71, 234, 255, 0.18);
}

.button--ghost,
.staff-nav__link {
    border-color: rgba(91, 237, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(14, 23, 32, 0.82), rgba(8, 13, 20, 0.88)),
        repeating-linear-gradient(90deg, rgba(91, 237, 255, 0.035) 0 1px, transparent 1px 18px);
    color: var(--text);
}

.button--ghost:hover,
.staff-nav__link:hover,
.staff-nav__link.active {
    border-color: rgba(143, 255, 210, 0.42);
    background: linear-gradient(135deg, rgba(71, 234, 255, 0.18), rgba(143, 255, 210, 0.12));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(71, 234, 255, 0.14);
}

.button--danger,
.identity-shell__content .btn-danger {
    border-color: rgba(255, 95, 125, 0.34);
    background: rgba(255, 95, 125, 0.12);
    color: #ffd7de;
}

.button:disabled,
.home-hero-button:disabled,
.identity-shell__content .btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.inline-link {
    color: var(--accent-strong);
}

.inline-link:hover {
    color: #ffffff;
}

.pill {
    border-radius: 999px;
    border: 1px solid rgba(71, 234, 255, 0.22);
    background: rgba(71, 234, 255, 0.1);
    color: #dffcff;
    font-size: 0.76rem;
}

.pill--secondary {
    border-color: rgba(255, 209, 102, 0.28);
    background: rgba(255, 209, 102, 0.12);
    color: #ffe7a8;
}

.category-card,
.category-panel {
    border-left: 0;
    box-shadow: inset 3px 0 0 var(--accent), var(--shadow);
}

.category-card {
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(13, 20, 29, 0.88), rgba(8, 13, 20, 0.94)),
        repeating-linear-gradient(135deg, rgba(91, 237, 255, 0.035) 0 1px, transparent 1px 18px);
}

.category-card h3,
.category-panel__header h2 {
    color: #f2fbfb;
    font-family: "Public Sans", system-ui, sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-transform: none;
}

.category-panel {
    border-radius: var(--radius);
}

.category-panel__header {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 56%),
        linear-gradient(180deg, rgba(18, 29, 40, 0.96), rgba(10, 17, 25, 0.94));
    border-bottom-color: rgba(91, 237, 255, 0.18);
}

.stack-list__item,
.thread-list__item,
.timeline-list__item,
.forum-table__row,
.thread-table__row,
.room-pill,
.chat-message,
.poll-option,
.reply-preview,
.moderation-note,
.moderation-inline-panel,
.alert-panel,
.identity-nav__link,
.authenticator-setup__qr,
.authenticator-setup__key {
    border-radius: 7px;
}

.stack-list__item,
.thread-list__item,
.timeline-list__item,
.forum-table__row,
.thread-table__row,
.room-pill,
.chat-message {
    position: relative;
    border-color: rgba(91, 237, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(13, 22, 31, 0.78), rgba(7, 12, 19, 0.88)),
        repeating-linear-gradient(90deg, rgba(91, 237, 255, 0.03) 0 1px, transparent 1px 22px);
}

.stack-list__item:hover,
.thread-list__item:hover,
.timeline-list__item:hover,
.forum-table__row:hover,
.thread-table__row:hover,
.room-pill:hover,
.chat-message:hover {
    border-color: rgba(91, 237, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(18, 31, 43, 0.9), rgba(9, 16, 24, 0.94)),
        repeating-linear-gradient(90deg, rgba(91, 237, 255, 0.04) 0 1px, transparent 1px 22px);
}

.forum-table,
.thread-table {
    border-radius: var(--radius);
    border-color: rgba(91, 237, 255, 0.18);
    background: rgba(6, 11, 18, 0.74);
}

.forum-table__head,
.thread-table__head {
    background:
        linear-gradient(180deg, rgba(21, 35, 48, 0.96), rgba(10, 17, 25, 0.96)),
        repeating-linear-gradient(90deg, rgba(255, 209, 102, 0.07) 0 1px, transparent 1px 28px);
}

.forum-table__col,
.thread-table__col {
    color: var(--accent-strong);
}

.forum-table__status {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 7px;
    border-color: rgba(91, 237, 255, 0.34);
    background:
        linear-gradient(135deg, rgba(71, 234, 255, 0.16), rgba(143, 255, 210, 0.12)),
        rgba(5, 10, 16, 0.72);
}

.forum-table__title strong,
.thread-table__title strong,
.stack-list__item strong,
.thread-list__item strong,
.timeline-list__item strong {
    color: #f8ffff;
}

.forum-table__title span,
.forum-table__stat span,
.forum-table__latest span,
.thread-table__title span,
.thread-table__stat span,
.thread-table__last span,
.stack-list__item span,
.thread-list__item span,
.timeline-list__item span {
    color: var(--text-muted);
}

.thread-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}

.thread-hero__actions,
.post-card__aside {
    border-radius: 7px;
    border-color: rgba(91, 237, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(16, 28, 39, 0.9), rgba(7, 12, 19, 0.94)),
        repeating-linear-gradient(90deg, rgba(255, 209, 102, 0.045) 0 1px, transparent 1px 24px);
}

.post-card {
    border-radius: var(--radius);
}

.post-card__body {
    background: rgba(6, 11, 18, 0.38);
}

.post-card__header,
.post-card__actions,
.signature-copy {
    border-color: rgba(91, 237, 255, 0.16);
}

.post-card__anchor {
    border-radius: 5px;
    border-color: rgba(91, 237, 255, 0.26);
}

.avatar-shell {
    border-radius: 8px;
    border: 1px solid rgba(91, 237, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(71, 234, 255, 0.18), rgba(143, 255, 210, 0.12)),
        rgba(5, 10, 16, 0.76);
    color: #ffffff;
    box-shadow: inset 0 0 20px rgba(71, 234, 255, 0.08);
}

.avatar-shell--small {
    border-radius: 6px;
}

.avatar-shell--large {
    border-radius: 10px;
}

.poll-option {
    border: 1px solid rgba(91, 237, 255, 0.14);
    background: rgba(7, 12, 19, 0.72);
}

.poll-option__bar {
    height: 8px;
    background: rgba(91, 237, 255, 0.08);
}

.poll-option__fill {
    background: linear-gradient(90deg, var(--accent), var(--accent-strong), var(--warning));
}

.reply-preview {
    border-left-color: var(--accent);
    background: rgba(71, 234, 255, 0.07);
}

.moderation-note,
.moderation-inline-panel,
.alert-panel {
    border-color: rgba(255, 95, 125, 0.26);
    background: rgba(255, 95, 125, 0.1);
}

.alert-panel--success {
    border-color: rgba(113, 242, 164, 0.28);
    background: rgba(113, 242, 164, 0.1);
    color: #dfffea;
}

.form-card {
    gap: 1rem;
    background:
        linear-gradient(180deg, rgba(8, 13, 20, 0.96), rgba(6, 10, 16, 0.96)),
        repeating-linear-gradient(90deg, rgba(91, 237, 255, 0.035) 0 1px, transparent 1px 18px);
}

.form-field label,
.identity-shell__content .form-floating > label,
.identity-shell__content .form-label,
.identity-shell__content .control-label {
    color: #bdccd2;
}

.checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.chat-shell__panel {
    min-height: min(620px, calc(100vh - 220px));
}

.room-pill {
    align-items: start;
}

.room-pill--active {
    border-color: rgba(143, 255, 210, 0.44);
    background:
        linear-gradient(135deg, rgba(71, 234, 255, 0.16), rgba(143, 255, 210, 0.1)),
        rgba(7, 12, 19, 0.88);
}

.chat-feed {
    scrollbar-color: rgba(71, 234, 255, 0.55) rgba(7, 12, 19, 0.8);
}

.chat-message {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.profile-hero {
    align-items: start;
}

.identity-nav__link {
    background: rgba(7, 12, 19, 0.7);
}

.identity-nav__link:hover,
.identity-nav__link.active {
    border-color: rgba(91, 237, 255, 0.28);
    background: rgba(71, 234, 255, 0.1);
}

.identity-shell__content .alert {
    border-radius: 7px;
    background: rgba(7, 12, 19, 0.78);
}

.authenticator-setup__secret {
    border: 1px solid rgba(91, 237, 255, 0.18);
    border-radius: 6px;
    background: rgba(7, 12, 19, 0.86);
    color: var(--accent-soft);
}

.staff-nav__link {
    border-radius: 6px;
}

#blazor-error-ui {
    border-radius: 8px;
    border: 1px solid rgba(255, 95, 125, 0.4);
    background: rgba(93, 16, 31, 0.96);
}

@media (max-width: 1100px) {
    .hero-panel,
    .content-split,
    .chat-shell,
    .home-hero-inner,
    .thread-hero {
        grid-template-columns: 1fr;
    }

    .metric-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .rg-site {
        background-attachment: scroll;
        background-size: cover, 36px 36px, 36px 36px, cover;
    }

    .content {
        width: min(100% - 1rem, 1420px);
        padding-top: 0.85rem;
        padding-bottom: 1.5rem;
    }

    .home-hero-panel,
    .home-hero-feature-card,
    .content-card,
    .hero-panel__copy,
    .stat-card {
        border-radius: var(--radius);
        padding: 1rem;
    }

    .home-hero-title {
        font-size: clamp(2rem, 12vw, 3.4rem);
    }

    .home-hero-actions,
    .button-row {
        align-items: stretch;
    }

    .home-hero-actions > .button,
    .home-hero-actions > .home-hero-button,
    .button-row > .button,
    .button-row > button,
    .button-row > a {
        width: 100%;
    }

    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .metric-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .forum-table,
    .thread-table {
        margin: 0;
        border: 0;
        background: transparent;
        gap: 0.75rem;
    }

    .forum-table__row,
    .thread-table__row {
        border: 1px solid rgba(91, 237, 255, 0.16);
        border-radius: var(--radius);
    }

    .forum-table__stat,
    .forum-table__latest,
    .thread-table__stat,
    .thread-table__last,
    .thread-list__meta {
        align-items: start;
        text-align: left;
        white-space: normal;
    }

    .forum-table__stat::before,
    .forum-table__latest::before,
    .thread-table__stat::before,
    .thread-table__last::before {
        color: var(--accent-strong);
        content: "Info";
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .forum-table__row > .forum-table__stat:nth-child(2)::before {
        content: "Threads";
    }

    .forum-table__row > .forum-table__stat:nth-child(3)::before {
        content: "Posts";
    }

    .forum-table__latest::before {
        content: "Last Post";
    }

    .thread-table__row > .thread-table__stat:nth-child(2)::before {
        content: "Replies";
    }

    .thread-table__row > .thread-table__stat:nth-child(3)::before {
        content: "Views";
    }

    .thread-table__last::before {
        content: "Last Post";
    }

    .post-card__aside {
        border-right: 0;
        border-bottom: 1px solid rgba(91, 237, 255, 0.16);
    }

    .chat-message {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .chat-message .button {
        grid-column: 1 / -1;
    }
}
