:root {
    --hxc-navy: #0b1e3d;
    --hxc-navy-2: #102744;
    --hxc-cyan: #00c5dc;
    --hxc-cyan-dark: #07899e;
    --hxc-ink: #132742;
    --hxc-copy: #43566f;
    --hxc-line: #c4d2e0;
    --hxc-soft: #f2f5f9;
    --hxc-white: #fff;
    --hxc-success: #18794e;
    --hxc-warning: #a15c00;
    --hxc-danger: #b42318;
}

.hxc-community,
.hxc-community * {
    box-sizing: border-box;
}

.hxc-community {
    width: 100%;
    color: var(--hxc-ink);
    background: var(--hxc-soft);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

.hxc-community a {
    color: inherit;
    text-decoration: none;
}

.hxc-community button,
.hxc-community input,
.hxc-community select,
.hxc-community textarea {
    font: inherit;
}

.hxc-community button {
    cursor: pointer;
}

.hxc-community img {
    max-width: 100%;
}

.hxc-container {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
}

.hxc-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--hxc-line);
}

.hxc-breadcrumb .hxc-container {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #64758b;
    font-size: 14px;
}

.hxc-breadcrumb a:hover {
    color: var(--hxc-cyan-dark);
}

.hxc-breadcrumb em {
    color: var(--hxc-ink);
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hxc-section {
    padding: 56px 0 72px;
}

.hxc-section-soft {
    background: var(--hxc-soft);
}

.hxc-eyebrow {
    color: var(--hxc-cyan-dark);
    font: 600 11px/1.4 "DM Mono", monospace;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hxc-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 76% 46%, rgba(0, 197, 220, .18), transparent 30%),
        linear-gradient(115deg, #071632 0%, #0b1e3d 58%, #183858 100%);
}

.hxc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}

.hxc-hero-grid {
    position: relative;
    z-index: 1;
    min-height: 410px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .8fr);
    align-items: center;
    gap: 70px;
    padding-top: 54px;
    padding-bottom: 54px;
}

.hxc-hero .hxc-eyebrow {
    color: var(--hxc-cyan);
}

.hxc-hero h1,
.hxc-page-heading h1,
.hxc-topic-header h1,
.hxc-profile-header h1,
.hxc-auth-brand h1,
.hxc-gate h1 {
    margin: 10px 0 14px;
    color: inherit;
    font-family: "Rajdhani", "DM Sans", sans-serif;
    font-weight: 700;
    line-height: 1.06;
}

.hxc-hero h1 {
    max-width: 700px;
    font-size: clamp(44px, 5vw, 72px);
}

.hxc-hero-copy > p {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 18px;
}

.hxc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.hxc-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--hxc-ink);
    font-weight: 700;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

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

.hxc-button:disabled {
    cursor: wait;
    opacity: .58;
    transform: none;
}

.hxc-button-primary {
    background: var(--hxc-cyan);
    border-color: var(--hxc-cyan);
    color: var(--hxc-navy);
}

.hxc-button-primary:hover {
    background: #13d5e9;
    border-color: #13d5e9;
}

.hxc-button-outline,
.hxc-button-outline-light {
    border-color: var(--hxc-line);
    background: #fff;
}

.hxc-button-outline:hover {
    border-color: var(--hxc-cyan-dark);
    color: var(--hxc-cyan-dark);
}

.hxc-button-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,.55);
    background: transparent;
}

.hxc-button-outline-light:hover {
    border-color: #fff;
    background: rgba(255,255,255,.08);
}

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

.hxc-lidar-art {
    position: relative;
    min-height: 280px;
}

.hxc-lidar-sensor {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 48%;
    width: 150px;
    height: 145px;
    transform: translate(-50%, -50%);
    border-radius: 18px 18px 38px 38px;
    background: linear-gradient(145deg, #edf4f8 0%, #9fb2c4 62%, #536d85 100%);
    box-shadow: 0 30px 55px rgba(0,0,0,.35), inset -12px -10px 20px rgba(11,30,61,.35);
}

.hxc-lidar-sensor::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 42px;
    height: 37px;
    border-radius: 8px;
    background: linear-gradient(90deg, #0d1b2f, #132d49);
    box-shadow: inset 0 0 16px rgba(0,197,220,.26);
}

.hxc-lidar-sensor::after {
    content: "HONG XIN";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 25px;
    color: var(--hxc-navy);
    text-align: center;
    font: 700 12px/1 "DM Mono", monospace;
    letter-spacing: .12em;
}

.hxc-lidar-sensor span,
.hxc-lidar-sensor i {
    position: absolute;
    z-index: 1;
    top: 54px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--hxc-cyan);
    box-shadow: 0 0 18px var(--hxc-cyan);
}

.hxc-lidar-sensor span { left: 39px; }
.hxc-lidar-sensor i { right: 39px; }

.hxc-scan-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(0,197,220,.42);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(67deg);
    box-shadow: 0 0 22px rgba(0,197,220,.12);
}

.hxc-ring-one { width: 240px; height: 240px; }
.hxc-ring-two { width: 360px; height: 360px; }
.hxc-ring-three { width: 490px; height: 490px; }

.hxc-point-cloud {
    position: absolute;
    inset: 0;
    opacity: .45;
    background-image: radial-gradient(circle, var(--hxc-cyan) 1.3px, transparent 1.6px);
    background-size: 31px 26px;
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 68%);
}

.hxc-search-form {
    min-height: 64px;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    margin: 0 auto 30px;
    border: 1px solid var(--hxc-line);
    background: #fff;
    box-shadow: 0 16px 38px rgba(11,30,61,.09);
}

.hxc-community[data-hxc-page="home"] .hxc-search-form {
    margin: -88px auto 38px;
}

.hxc-search-form > span {
    color: var(--hxc-cyan-dark);
    text-align: center;
    font-size: 26px;
}

.hxc-search-form input {
    min-width: 0;
    height: 62px;
    padding: 0 8px;
    border: 0;
    outline: 0;
    color: var(--hxc-ink);
    background: transparent;
    font-size: 16px;
}

.hxc-search-form button {
    align-self: stretch;
    min-width: 118px;
    padding: 0 25px;
    border: 0;
    background: var(--hxc-navy);
    color: #fff;
    font-weight: 700;
}

.hxc-search-form button:hover {
    background: var(--hxc-navy-2);
}

.hxc-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--hxc-line);
    border-left: 1px solid var(--hxc-line);
    margin-bottom: 42px;
}

.hxc-category-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 28px;
    border-right: 1px solid var(--hxc-line);
    border-bottom: 1px solid var(--hxc-line);
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hxc-category-card:hover {
    position: relative;
    z-index: 2;
    border-color: var(--hxc-cyan);
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(11,30,61,.09);
}

.hxc-category-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--hxc-cyan-dark);
    background: #e8fafd;
}

.hxc-category-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hxc-category-card strong,
.hxc-category-card small,
.hxc-category-card em {
    display: block;
}

.hxc-category-card strong {
    margin-bottom: 8px;
    color: var(--hxc-navy);
    font: 700 21px/1.15 "Rajdhani", "DM Sans", sans-serif;
}

.hxc-category-card small {
    min-height: 62px;
    color: var(--hxc-copy);
    font-size: 13px;
    line-height: 1.55;
}

.hxc-category-card em {
    margin-top: 13px;
    color: var(--hxc-cyan-dark);
    font: normal 600 11px/1 "DM Mono", monospace;
    text-transform: uppercase;
}

.hxc-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    align-items: start;
}

.hxc-panel {
    border: 1px solid var(--hxc-line);
    background: #fff;
}

.hxc-panel-heading,
.hxc-section-heading {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 24px;
    border-bottom: 1px solid var(--hxc-line);
}

.hxc-panel-heading h2,
.hxc-section-heading h2,
.hxc-compact-panel h3 {
    margin: 0;
    color: var(--hxc-navy);
    font: 700 24px/1.15 "Rajdhani", "DM Sans", sans-serif;
}

.hxc-panel-heading a {
    color: var(--hxc-cyan-dark);
    font-size: 13px;
    font-weight: 700;
}

.hxc-topic-row {
    min-height: 136px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px 82px 128px;
    align-items: stretch;
    border-bottom: 1px solid var(--hxc-line);
}

.hxc-topic-row:last-child {
    border-bottom: 0;
}

.hxc-topic-row.is-featured {
    box-shadow: inset 3px 0 var(--hxc-cyan);
}

.hxc-topic-main {
    min-width: 0;
    padding: 20px 24px;
}

.hxc-topic-title {
    display: block;
    color: var(--hxc-navy);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.hxc-topic-title:hover {
    color: var(--hxc-cyan-dark);
}

.hxc-topic-main > p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 7px 0 11px;
    color: var(--hxc-copy);
    font-size: 13px;
}

.hxc-pin {
    display: inline-block;
    margin: 0 8px 6px 0;
    padding: 3px 6px;
    color: #087f96;
    background: #e5f9fc;
    font: 700 9px/1 "DM Mono", monospace;
    letter-spacing: .08em;
}

.hxc-topic-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #748398;
    font-size: 11px;
}

.hxc-mini-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.hxc-topic-stat,
.hxc-topic-activity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--hxc-line);
    color: var(--hxc-copy);
    text-align: center;
}

.hxc-topic-stat strong {
    color: var(--hxc-navy);
    font-size: 18px;
}

.hxc-topic-stat small,
.hxc-topic-activity {
    font-size: 10px;
}

.hxc-topic-activity {
    gap: 7px;
    padding: 8px;
}

.hxc-sidebar {
    display: grid;
    gap: 20px;
}

.hxc-compact-panel {
    padding: 23px;
}

.hxc-compact-panel h3 {
    margin-bottom: 18px;
    font-size: 20px;
}

.hxc-popular-list,
.hxc-rule-list,
.hxc-search-ideas {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hxc-popular-list li {
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8ef;
    font-size: 12px;
}

.hxc-popular-list li:last-child { border-bottom: 0; }
.hxc-popular-list li > span { color: var(--hxc-cyan-dark); font: 700 13px/1.4 "DM Mono", monospace; }
.hxc-popular-list a:hover { color: var(--hxc-cyan-dark); }
.hxc-popular-list em { color: #8491a3; font-style: normal; }

.hxc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hxc-tags a,
.hxc-tags > span {
    padding: 5px 9px;
    border: 1px solid var(--hxc-line);
    color: var(--hxc-copy);
    background: var(--hxc-soft);
    font-size: 11px;
}

.hxc-tags a:hover {
    color: var(--hxc-cyan-dark);
    border-color: var(--hxc-cyan);
}

.hxc-page-heading {
    display: flex;
    justify-content: space-between;
    gap: 35px;
    align-items: flex-end;
    margin-bottom: 30px;
}

.hxc-page-heading h1 {
    color: var(--hxc-navy);
    font-size: clamp(38px, 4vw, 54px);
}

.hxc-page-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--hxc-copy);
}

.hxc-page-heading .hxc-actions {
    flex: 0 0 auto;
}

.hxc-counts,
.hxc-results-heading {
    margin-top: 11px;
    color: #78879a;
    font: 500 11px/1.4 "DM Mono", monospace;
    text-transform: uppercase;
}

.hxc-filter-bar {
    min-height: 58px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--hxc-line);
    border-bottom: 0;
    background: #fff;
}

.hxc-filter-bar nav {
    align-self: stretch;
    display: flex;
}

.hxc-filter-bar nav a {
    display: flex;
    align-items: center;
    padding: 0 19px;
    border-right: 1px solid var(--hxc-line);
    color: var(--hxc-copy);
    font-size: 13px;
    font-weight: 700;
}

.hxc-filter-bar nav a.is-active,
.hxc-filter-bar nav a:hover {
    color: var(--hxc-navy);
    box-shadow: inset 0 -3px var(--hxc-cyan);
}

.hxc-filter-bar form {
    display: flex;
    margin-right: 9px;
    border: 1px solid var(--hxc-line);
}

.hxc-filter-bar input {
    min-width: 210px;
    height: 34px;
    padding: 0 10px;
    border: 0;
    outline: 0;
}

.hxc-filter-bar button {
    width: 38px;
    border: 0;
    background: var(--hxc-navy);
    color: #fff;
}

.hxc-topic-table-head {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px 82px 128px;
    align-items: center;
    color: #718198;
    background: #edf2f6;
    font: 600 10px/1.2 "DM Mono", monospace;
    text-transform: uppercase;
}

.hxc-topic-table-head span { padding: 0 20px; }
.hxc-topic-table-head span:not(:first-child) { padding: 0 5px; text-align: center; }

.hxc-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-style: normal;
}

.hxc-status-solved {
    color: var(--hxc-success) !important;
    background: #e9f7ef !important;
    border-color: #b8dfc8 !important;
}

.hxc-topic-card {
    overflow: hidden;
}

.hxc-topic-header {
    padding: 28px 30px;
    border-bottom: 1px solid var(--hxc-line);
}

.hxc-topic-header h1 {
    color: var(--hxc-navy);
    font-size: clamp(30px, 3.3vw, 44px);
}

.hxc-post {
    position: relative;
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    grid-template-areas: "author body" "author actions";
    border-bottom: 1px solid var(--hxc-line);
}

.hxc-post.is-solution {
    box-shadow: inset 4px 0 var(--hxc-success);
    background: #fbfffc;
}

.hxc-official-label {
    grid-column: 1 / -1;
    padding: 9px 24px;
    color: var(--hxc-success);
    border-bottom: 1px solid #cfe9d9;
    background: #e9f7ef;
    font-size: 12px;
    font-weight: 700;
}

.hxc-author {
    grid-area: author;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 26px 18px;
    border-right: 1px solid var(--hxc-line);
    background: #f8fafc;
    text-align: center;
}

.hxc-author > img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
}

.hxc-author > span,
.hxc-author small {
    display: block;
}

.hxc-author a {
    color: var(--hxc-navy);
    font-size: 13px;
    font-weight: 700;
}

.hxc-author i {
    display: inline-grid;
    width: 16px;
    height: 16px;
    place-items: center;
    margin-left: 4px;
    border-radius: 50%;
    color: var(--hxc-navy);
    background: var(--hxc-cyan);
    font-size: 10px;
    font-style: normal;
}

.hxc-author small {
    margin-top: 5px;
    color: #7a899c;
    font-size: 10px;
    line-height: 1.55;
}

.hxc-post-body {
    grid-area: body;
    min-height: 154px;
    padding: 28px 30px;
    color: #273d58;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.hxc-post-body > :first-child { margin-top: 0; }
.hxc-post-body > :last-child { margin-bottom: 0; }
.hxc-post-body pre,
.hxc-post-body code {
    font-family: "DM Mono", Consolas, monospace;
}

.hxc-post-body pre {
    overflow: auto;
    padding: 15px;
    color: #e8f4fa;
    background: var(--hxc-navy);
}

.hxc-post-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 49px;
    padding: 7px 22px;
    border-top: 1px solid #e5ebf1;
}

.hxc-post-actions button {
    padding: 6px 8px;
    border: 0;
    color: #63758c;
    background: transparent;
    font-size: 11px;
}

.hxc-post-actions button:hover,
.hxc-post-actions button.is-active {
    color: var(--hxc-cyan-dark);
    background: #eaf9fb;
}

.hxc-post-metrics {
    margin-left: auto;
    color: #8491a2;
    font-size: 10px;
}

.hxc-replies .hxc-section-heading {
    background: #f8fafc;
}

.hxc-reply-composer {
    padding: 26px 30px 32px;
}

.hxc-reply-form > label {
    display: block;
    margin-bottom: 9px;
    color: var(--hxc-navy);
    font-weight: 700;
}

.hxc-reply-form textarea {
    width: 100%;
    min-height: 130px;
    padding: 14px;
    border: 1px solid var(--hxc-line);
    outline: 0;
    resize: vertical;
}

.hxc-reply-form textarea:focus {
    border-color: var(--hxc-cyan-dark);
    box-shadow: 0 0 0 2px rgba(0,197,220,.12);
}

.hxc-signin-callout,
.hxc-gate {
    padding: 44px;
    text-align: center;
}

.hxc-signin-callout p,
.hxc-gate p { color: var(--hxc-copy); }
.hxc-gate h1 { color: var(--hxc-navy); font-size: 38px; }
.hxc-gate .hxc-actions { justify-content: center; }

.hxc-details {
    margin: 0;
}

.hxc-details > div {
    display: grid;
    gap: 2px;
    padding: 11px 0;
    border-bottom: 1px solid #e1e7ee;
}

.hxc-details dt { color: #758398; font-size: 10px; text-transform: uppercase; }
.hxc-details dd { margin: 0; color: var(--hxc-navy); font-size: 13px; font-weight: 700; }
.hxc-details a:hover { color: var(--hxc-cyan-dark); }
.hxc-support-card { background: var(--hxc-navy); border-color: var(--hxc-navy); }
.hxc-support-card h3 { color: #fff; }
.hxc-support-card p { color: rgba(255,255,255,.73); font-size: 13px; }

.hxc-topic-form {
    padding: 30px;
}

.hxc-topic-form > label,
.hxc-form-grid label,
.hxc-auth-card label {
    position: relative;
    display: block;
    margin-bottom: 22px;
    color: var(--hxc-navy);
    font-size: 13px;
    font-weight: 700;
}

.hxc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.hxc-topic-form input[type="text"],
.hxc-topic-form input:not([type]),
.hxc-topic-form select,
.hxc-topic-form textarea,
.hxc-auth-card input[type="text"],
.hxc-auth-card input[type="email"],
.hxc-auth-card input[type="password"],
.hxc-auth-card input:not([type]) {
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    border: 1px solid var(--hxc-line);
    border-radius: 0;
    outline: 0;
    color: var(--hxc-ink);
    background: #fff;
    font-weight: 400;
}

.hxc-topic-form textarea {
    display: block;
    min-height: 260px;
    margin-top: 0;
    resize: vertical;
}

.hxc-topic-form input:focus,
.hxc-topic-form select:focus,
.hxc-topic-form textarea:focus,
.hxc-auth-card input:focus {
    border-color: var(--hxc-cyan-dark);
    box-shadow: 0 0 0 2px rgba(0,197,220,.12);
}

.hxc-topic-form label > small,
.hxc-auth-card label > small {
    display: block;
    margin-top: 5px;
    color: #8491a2;
    font-size: 10px;
    font-weight: 400;
}

.hxc-topic-form label > small:first-of-type {
    text-align: right;
}

.hxc-editor-toolbar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 7px;
    padding: 0 7px;
    border: 1px solid var(--hxc-line);
    border-bottom: 0;
    background: #f3f6f9;
}

.hxc-editor-toolbar button {
    min-width: 32px;
    height: 30px;
    border: 0;
    color: var(--hxc-copy);
    background: transparent;
}

.hxc-editor-toolbar button:hover { background: #fff; color: var(--hxc-cyan-dark); }

.hxc-upload {
    position: relative;
    margin: 8px 0 22px;
    border: 1px dashed #9aacbe;
    background: #f8fafc;
}

.hxc-upload > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.hxc-upload > label {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--hxc-copy);
    cursor: pointer;
}

.hxc-upload > label strong { color: var(--hxc-navy); }
.hxc-upload > label small { color: #8390a0; font-size: 10px; }
.hxc-upload-list { display: grid; gap: 6px; padding: 0 16px 12px; }
.hxc-upload-list:empty { display: none; }
.hxc-upload-item { display: flex; justify-content: space-between; gap: 15px; padding: 7px 10px; background: #fff; border: 1px solid #d9e2ea; color: var(--hxc-copy); font-size: 11px; }
.hxc-upload-item.is-error { color: var(--hxc-danger); border-color: #f1b7b2; }

.hxc-checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;
    font-weight: 400 !important;
}

.hxc-checkbox input { flex: 0 0 auto; margin-top: 4px !important; }
.hxc-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.hxc-form-message { flex: 1; color: var(--hxc-danger); font-size: 12px; }
.hxc-form-message.is-success { color: var(--hxc-success); }
.hxc-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.hxc-rule-list { counter-reset: hxc-rules; }
.hxc-rule-list li { position: relative; padding: 10px 0 10px 31px; border-bottom: 1px solid #e2e8ef; color: var(--hxc-copy); font-size: 12px; }
.hxc-rule-list li::before { counter-increment: hxc-rules; content: counter(hxc-rules); position: absolute; left: 0; top: 9px; width: 20px; height: 20px; display: grid; place-items: center; color: var(--hxc-cyan-dark); border: 1px solid var(--hxc-cyan); font: 700 9px/1 "DM Mono", monospace; }
.hxc-tip-card ul { margin: 0; padding: 0; list-style: none; }
.hxc-tip-card li { padding: 6px 0; color: var(--hxc-copy); font-size: 12px; }
.hxc-tip-card li::first-letter { color: var(--hxc-success); }

.hxc-results-heading { margin: 0 0 14px; }
.hxc-search-results { padding: 0 26px; }
.hxc-search-results mark { padding: 0 2px; color: var(--hxc-navy); background: #bff6fc; }
.hxc-search-result { padding: 25px 0; border-bottom: 1px solid var(--hxc-line); }
.hxc-search-result:last-child { border-bottom: 0; }
.hxc-search-result h2 { margin: 7px 0; color: var(--hxc-navy); font: 700 24px/1.2 "Rajdhani", "DM Sans", sans-serif; }
.hxc-search-result h2 a:hover { color: var(--hxc-cyan-dark); }
.hxc-search-result > p { margin: 0 0 12px; color: var(--hxc-copy); font-size: 13px; }
.hxc-search-ideas { counter-reset: hxc-searches; }
.hxc-search-ideas li { counter-increment: hxc-searches; padding: 9px 0; border-bottom: 1px solid #e2e8ef; font-size: 13px; }
.hxc-search-ideas li::before { content: "0" counter(hxc-searches); margin-right: 10px; color: var(--hxc-cyan-dark); font: 600 10px/1 "DM Mono", monospace; }

.hxc-pagination { display: flex; justify-content: center; gap: 6px; margin: 24px 0; }
.hxc-pagination a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--hxc-line); background: #fff; color: var(--hxc-copy); font-size: 12px; }
.hxc-pagination a:hover,
.hxc-pagination a.is-active { color: #fff; border-color: var(--hxc-navy); background: var(--hxc-navy); }

.hxc-profile-header {
    display: grid;
    grid-template-columns: 116px minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 25px;
    margin-bottom: 26px;
    padding: 28px;
}

.hxc-profile-header > img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid #e5ebf1; }
.hxc-profile-header h1 { color: var(--hxc-navy); font-size: 36px; }
.hxc-profile-identity p { margin: 0; color: var(--hxc-copy); }
.hxc-profile-identity small { color: #8290a2; }
.hxc-verified { display: inline-flex; align-items: center; margin-left: 10px; padding: 5px 8px; color: #087f96; background: #e6f9fc; vertical-align: middle; font: 700 10px/1 "DM Sans", sans-serif; }
.hxc-profile-stats { display: flex; border-left: 1px solid var(--hxc-line); }
.hxc-profile-stats > div { min-width: 105px; display: flex; flex-direction: column; align-items: center; padding: 13px; border-right: 1px solid var(--hxc-line); }
.hxc-profile-stats strong { color: var(--hxc-navy); font-size: 22px; }
.hxc-profile-stats span { color: #738297; font-size: 10px; }
.hxc-tabs { display: flex; min-height: 58px; border-bottom: 1px solid var(--hxc-line); background: #f7f9fb; }
.hxc-tabs button { padding: 0 21px; border: 0; border-right: 1px solid var(--hxc-line); background: transparent; color: var(--hxc-copy); font-size: 12px; font-weight: 700; }
.hxc-tabs button.is-active { color: var(--hxc-navy); background: #fff; box-shadow: inset 0 3px var(--hxc-cyan); }
.hxc-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hxc-badges > span { min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d8e1e9; color: var(--hxc-cyan-dark); font-size: 22px; }
.hxc-badges small { color: var(--hxc-copy); font-size: 8px; text-align: center; }
.hxc-moderator { display: flex; align-items: center; gap: 10px; }
.hxc-moderator strong,
.hxc-moderator small { display: block; }
.hxc-moderator strong { color: var(--hxc-navy); font-size: 13px; }
.hxc-moderator small { color: #7b899b; font-size: 10px; }

.hxc-auth-page { background: linear-gradient(115deg, #071632 0, #0b1e3d 46%, var(--hxc-soft) 46%, var(--hxc-soft) 100%); }
.hxc-auth-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.hxc-auth-brand { position: relative; min-height: 520px; display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; }
.hxc-auth-brand h1 { font-size: 48px; }
.hxc-auth-brand ul { margin: 20px 0 0; padding: 0; list-style: none; }
.hxc-auth-brand li { margin: 12px 0; color: rgba(255,255,255,.8); }
.hxc-auth-brand li::first-letter { color: var(--hxc-cyan); }
.hxc-auth-art { position: absolute; right: -100px; bottom: -90px; width: 290px; height: 290px; border: 1px solid rgba(0,197,220,.32); border-radius: 50%; box-shadow: 0 0 0 45px rgba(0,197,220,.05), 0 0 0 90px rgba(0,197,220,.03); }
.hxc-auth-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hxc-auth-card { padding: 28px; }
.hxc-auth-card h2 { margin: 0 0 24px; color: var(--hxc-navy); font: 700 30px/1.1 "Rajdhani", "DM Sans", sans-serif; }

.hxc-attachments { display: grid; gap: 8px; margin-top: 20px; }
.hxc-attachments a { display: grid; grid-template-columns: 30px 1fr; grid-template-areas: "icon name" "icon mime"; gap: 0 8px; max-width: 430px; padding: 10px; border: 1px solid var(--hxc-line); background: #f7f9fb; }
.hxc-attachments a > span { grid-area: icon; align-self: center; color: var(--hxc-cyan-dark); font-size: 20px; }
.hxc-attachments strong { grid-area: name; color: var(--hxc-navy); font-size: 12px; }
.hxc-attachments small { grid-area: mime; color: #7f8c9b; font-size: 9px; }

.hxc-empty { padding: 42px 25px; color: var(--hxc-copy); text-align: center; }
.hxc-empty strong { color: var(--hxc-navy); font-size: 18px; }
.hxc-empty p { margin-bottom: 0; }

.hxc-toast {
    position: fixed;
    z-index: 100002;
    right: 24px;
    bottom: 24px;
    max-width: min(390px, calc(100% - 48px));
    padding: 14px 18px;
    color: #fff;
    background: var(--hxc-navy);
    box-shadow: 0 14px 40px rgba(0,0,0,.25);
    font-size: 13px;
}

.hxc-toast.is-error { background: var(--hxc-danger); }

.hxc-modal-backdrop {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5,17,37,.68);
}

.hxc-modal {
    width: min(600px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 28px;
    border: 1px solid var(--hxc-line);
    background: #fff;
    box-shadow: 0 25px 80px rgba(0,0,0,.28);
}

.hxc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.hxc-modal-head h2 { margin: 0; color: var(--hxc-navy); font: 700 28px/1.1 "Rajdhani", sans-serif; }
.hxc-modal-close { width: 36px; height: 36px; border: 1px solid var(--hxc-line); background: #fff; }
.hxc-modal label { display: block; margin-bottom: 16px; color: var(--hxc-navy); font-size: 12px; font-weight: 700; }
.hxc-modal input,
.hxc-modal textarea,
.hxc-modal select { width: 100%; margin-top: 5px; padding: 10px; border: 1px solid var(--hxc-line); }
.hxc-modal textarea { min-height: 110px; resize: vertical; }

/* Navigation links are injected because the compiled React menu intentionally
   filters unknown WordPress menu entries. These rules match the current shell. */
header nav .hxc-community-nav {
    display: inline-flex;
    align-items: center;
    padding: .5rem .75rem;
    border-radius: .125rem;
    color: rgba(255,255,255,.76);
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 600;
    transition: color .2s, background-color .2s;
}

header nav .hxc-community-nav:hover,
header nav .hxc-community-nav.is-active {
    color: var(--hxc-cyan);
    background: rgba(255,255,255,.05);
}

header .hxc-mobile-community-nav {
    display: block;
    padding: .75rem 1.5rem;
    color: rgba(255,255,255,.85);
    font-size: .875rem;
    font-weight: 600;
}

header .hxc-mobile-community-nav.is-active,
header .hxc-mobile-community-nav:hover {
    color: var(--hxc-cyan);
    background: rgba(255,255,255,.05);
}

footer .hxc-footer-community-link {
    display: block;
    margin-top: .5rem;
}

@media (max-width: 1180px) {
    .hxc-container { width: min(100% - 40px, 1160px); }
    .hxc-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hxc-profile-header { grid-template-columns: 100px 1fr auto; }
    .hxc-profile-header > .hxc-button { grid-column: 2 / -1; justify-self: start; }
}

@media (max-width: 900px) {
    .hxc-hero-grid { grid-template-columns: 1fr; min-height: 560px; }
    .hxc-lidar-art { position: absolute; inset: auto 0 -25px 45%; opacity: .75; }
    .hxc-hero-copy { position: relative; z-index: 5; max-width: 650px; }
    .hxc-content-grid { grid-template-columns: 1fr; }
    .hxc-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hxc-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hxc-profile-header { grid-template-columns: 100px 1fr; }
    .hxc-profile-stats { grid-column: 1 / -1; border: 1px solid var(--hxc-line); }
    .hxc-profile-stats > div { flex: 1; }
    .hxc-profile-header > .hxc-button { grid-column: 1 / -1; }
    .hxc-auth-page { background: var(--hxc-soft); }
    .hxc-auth-grid { grid-template-columns: 1fr; gap: 30px; }
    .hxc-auth-brand { min-height: 280px; padding: 35px; background: var(--hxc-navy); }
}

@media (max-width: 700px) {
    .hxc-community { font-size: 15px; }
    .hxc-container { width: min(100% - 28px, 680px); }
    .hxc-breadcrumb .hxc-container { min-height: 56px; }
    .hxc-section { padding: 38px 0 52px; }
    .hxc-hero-grid { min-height: 510px; padding-top: 44px; padding-bottom: 44px; }
    .hxc-hero h1 { font-size: 43px; }
    .hxc-hero-copy > p { font-size: 16px; }
    .hxc-search-form { grid-template-columns: 42px 1fr auto; }
    .hxc-community[data-hxc-page="home"] .hxc-search-form { margin-top: -70px; }
    .hxc-search-form button { min-width: 76px; padding: 0 12px; }
    .hxc-category-grid { grid-template-columns: 1fr; }
    .hxc-category-card { min-height: 0; display: grid; grid-template-columns: 46px 1fr; }
    .hxc-category-card small { min-height: 0; }
    .hxc-topic-row { grid-template-columns: 1fr 1fr 1fr; }
    .hxc-topic-main { grid-column: 1 / -1; }
    .hxc-topic-stat,
    .hxc-topic-activity { min-height: 54px; border-top: 1px solid var(--hxc-line); }
    .hxc-topic-stat:first-of-type { border-left: 0; }
    .hxc-topic-table-head { display: none; }
    .hxc-sidebar { grid-template-columns: 1fr; }
    .hxc-page-heading { align-items: flex-start; flex-direction: column; }
    .hxc-page-heading .hxc-actions { margin-top: 0; }
    .hxc-filter-bar { align-items: stretch; flex-direction: column; gap: 0; padding-bottom: 9px; }
    .hxc-filter-bar nav { min-height: 50px; overflow-x: auto; }
    .hxc-filter-bar nav a { white-space: nowrap; }
    .hxc-filter-bar form { margin-left: 9px; }
    .hxc-filter-bar input { min-width: 0; width: 100%; }
    .hxc-post { grid-template-columns: 1fr; grid-template-areas: "author" "body" "actions"; }
    .hxc-author { flex-direction: row; align-items: center; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--hxc-line); text-align: left; }
    .hxc-author > img { width: 44px; height: 44px; }
    .hxc-post-body { min-height: 0; padding: 22px 20px; }
    .hxc-post-actions { padding: 7px 12px; }
    .hxc-reply-composer { padding: 22px 20px; }
    .hxc-form-grid { grid-template-columns: 1fr; gap: 0; }
    .hxc-topic-form { padding: 20px; }
    .hxc-form-actions { flex-wrap: wrap; }
    .hxc-form-actions .hxc-form-message { flex-basis: 100%; order: -1; }
    .hxc-profile-header { grid-template-columns: 72px 1fr; gap: 16px; padding: 20px; }
    .hxc-profile-header > img { width: 70px; height: 70px; }
    .hxc-profile-header h1 { font-size: 28px; }
    .hxc-profile-stats { overflow-x: auto; }
    .hxc-profile-stats > div { min-width: 94px; }
    .hxc-tabs { overflow-x: auto; }
    .hxc-tabs button { min-width: max-content; }
    .hxc-auth-brand { min-height: 245px; margin: 0 -14px; padding: 28px; }
    .hxc-auth-brand h1 { font-size: 38px; }
    .hxc-auth-cards { grid-template-columns: 1fr; }
    .hxc-signin-callout,
    .hxc-gate { padding: 30px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .hxc-community *,
    .hxc-community *::before,
    .hxc-community *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
