.help-community-page {
    --hc-bg: #0d1014;
    --hc-surface: #14191f;
    --hc-surface-2: #191f26;
    --hc-border: rgba(190, 205, 218, 0.16);
    --hc-border-strong: rgba(190, 205, 218, 0.28);
    --hc-text: #f2f5f8;
    --hc-muted: #9aa7b2;
    --hc-subtle: #788590;
    --hc-accent: #66d7bd;
    --hc-accent-ink: #09231d;
    background: var(--hc-bg);
    overflow-x: clip;
}

.help-community-page main {
    padding-block: 0 5rem;
}

.help-community-container {
    max-width: none;
    padding-inline: 0;
}

.hc-shell,
.hc-detail {
    color: var(--hc-text);
}

.hc-shell :where(button, input, textarea, select),
.hc-detail :where(button, input, textarea, select) {
    font: inherit;
}

.hc-shell :where(button, a),
.hc-detail :where(button, a) {
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.hc-shell button,
.hc-detail button {
    cursor: pointer;
}

.hc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
    min-height: 340px;
    border-bottom: 1px solid var(--hc-border);
}

.hc-hero__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 6vw, 6.5rem);
}

.hc-hero h1 {
    max-width: 720px;
    margin: 0 0 1.25rem;
    font-size: clamp(2.8rem, 5.7vw, 5.8rem);
    font-weight: 760;
    line-height: 0.94;
    letter-spacing: -0.015em;
}

.hc-hero__main > p {
    max-width: 620px;
    margin: 0 0 1.75rem;
    color: var(--hc-muted);
    font-size: 1.08rem;
}

.hc-search {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    max-width: 720px;
    padding: 0.45rem 0.45rem 0.45rem 1rem;
    border: 1px solid var(--hc-border-strong);
    border-radius: 12px;
    background: var(--hc-surface);
}

.hc-search:focus-within {
    border-color: var(--hc-accent);
}

.hc-search > span,
.hc-search > span svg {
    width: 21px;
    height: 21px;
    color: var(--hc-muted);
}

.hc-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--hc-text);
}

.hc-search button,
.hc-create-button,
.hc-dialog button[type="submit"],
.hc-docs__head button,
.hc-activity__head button,
.hc-reply button,
.hc-reply a {
    min-height: 40px;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(148, 239, 218, 0.72);
    border-radius: 9px;
    background: var(--hc-accent);
    color: var(--hc-accent-ink);
    font-weight: 700;
    text-decoration: none;
}

.hc-search button:hover,
.hc-create-button:hover,
.hc-dialog button[type="submit"]:hover,
.hc-docs__head button:hover,
.hc-activity__head button:hover,
.hc-reply button:hover,
.hc-reply a:hover {
    background: #80e2cb;
    transform: translateY(-1px);
}

.hc-popular {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    align-items: center;
    margin-top: 0.85rem;
    color: var(--hc-subtle);
    font-size: 0.82rem;
}

.hc-popular button {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hc-accent);
}

.hc-notification-center {
    position: fixed;
    right: clamp(0.8rem, 2vw, 1.4rem);
    bottom: clamp(0.8rem, 2vw, 1.4rem);
    z-index: 8500;
}

.hc-notification-center__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-height: 42px;
    padding: 0;
    border: 1px solid var(--hc-border-strong);
    border-radius: 12px;
    background: rgba(20, 25, 31, 0.94);
    color: var(--hc-text);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.hc-notification-center__button svg {
    width: 18px;
    height: 18px;
    color: var(--hc-accent);
}

.hc-notification-center__button b {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 20px;
    min-height: 20px;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    background: var(--hc-accent);
    color: var(--hc-accent-ink);
    font-size: 0.7rem;
    text-align: center;
}

.hc-notification-center__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.6rem);
    width: min(380px, calc(100vw - 1.6rem));
    overflow: hidden;
    border: 1px solid var(--hc-border-strong);
    border-radius: 10px;
    background: #10151a;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
}

.hc-notification-center__panel[hidden] {
    display: none;
}

.hc-notification-center__panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid var(--hc-border);
}

.hc-notification-center__panel header button {
    min-height: 30px;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--hc-border);
    border-radius: 7px;
    background: transparent;
    color: var(--hc-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.hc-notification-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.82rem 0.95rem;
    border-bottom: 1px solid rgba(190, 205, 218, 0.1);
    color: var(--hc-text);
    text-decoration: none;
}

.hc-notification-item:hover {
    background: rgba(102, 215, 189, 0.055);
}

.hc-notification-item span {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    justify-content: space-between;
}

.hc-notification-item small {
    color: var(--hc-subtle);
    font-size: 0.68rem;
    white-space: nowrap;
}

.hc-notification-item p {
    margin: 0;
    color: var(--hc-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.hc-notification-item.is-unread strong::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 0.4rem;
    border-radius: 999px;
    background: var(--hc-accent);
}

.hc-activity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem);
    border-left: 1px solid var(--hc-border);
    background: rgba(17, 22, 27, 0.64);
}

.hc-activity__head {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.hc-activity__head h2,
.hc-ranked h2,
.hc-docs h2,
.hc-thread h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.hc-activity__head button {
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
}

.hc-activity__list {
    display: grid;
}

.hc-activity__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: start;
    padding: 0.8rem 0;
    border-top: 1px solid var(--hc-border);
    color: var(--hc-text);
    text-decoration: none;
}

.hc-activity__item:hover strong {
    color: var(--hc-accent);
}

.hc-activity__icon,
.hc-activity__icon svg {
    width: 19px;
    height: 19px;
    color: var(--hc-accent);
}

.hc-activity__item span {
    display: grid;
    gap: 0.15rem;
}

.hc-activity__item small,
.hc-activity__item time {
    color: var(--hc-subtle);
    font-size: 0.73rem;
}

.hc-activity__item strong {
    font-size: 0.83rem;
    font-weight: 650;
}

.hc-workspace {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    border-bottom: 1px solid var(--hc-border);
}

.hc-categories,
.hc-ranked {
    padding: 1.6rem clamp(1rem, 2.8vw, 2.6rem);
    background: rgba(17, 22, 27, 0.38);
}

.hc-categories {
    border-right: 1px solid var(--hc-border);
}

.hc-ranked {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    border-top: 1px solid var(--hc-border);
    border-left: 0;
    padding-block: 1rem;
}

.hc-side-title {
    display: flex;
    gap: 0.35rem;
    flex-direction: column;
    margin-bottom: 1rem;
    color: var(--hc-muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hc-side-title small {
    color: var(--hc-subtle);
    font-size: 0.62rem;
    letter-spacing: 0;
    text-transform: none;
}

.hc-category,
.hc-manage {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.7rem;
    width: 100%;
    min-height: 42px;
    padding: 0.55rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--hc-muted);
    text-align: left;
}

.hc-category-group {
    display: grid;
    gap: 0.18rem;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(190, 205, 218, 0.1);
}

.hc-category-group h3 {
    margin: 0 0 0.25rem;
    color: var(--hc-subtle);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hc-category:hover,
.hc-category.is-active,
.hc-manage:hover {
    border-color: rgba(102, 215, 189, 0.32);
    background: var(--hc-surface);
    color: var(--hc-text);
}

.hc-category__code {
    color: var(--hc-accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.hc-category span:last-child,
.hc-manage span {
    display: grid;
}

.hc-category strong,
.hc-manage strong {
    font-size: 0.82rem;
    font-weight: 700;
}

.hc-category small,
.hc-manage small {
    color: var(--hc-subtle);
    font-size: 0.67rem;
    line-height: 1.35;
}

.hc-manage {
    margin-top: 1.4rem;
    border: 1px solid var(--hc-border);
    border-radius: 9px;
}

.hc-manage svg {
    width: 18px;
    height: 18px;
    color: var(--hc-accent);
}

.hc-feed {
    min-width: 0;
}

.hc-tabs {
    display: flex;
    gap: 0.1rem;
    align-items: center;
    min-height: 64px;
    padding: 0.7rem 1.4rem 0;
    border-bottom: 1px solid var(--hc-border);
    overflow-x: auto;
}

.hc-tabs button {
    min-height: 48px;
    padding: 0.65rem 0.8rem;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--hc-muted);
    white-space: nowrap;
}

.hc-tabs button:hover,
.hc-tabs button.is-active {
    border-bottom-color: var(--hc-accent);
    color: var(--hc-text);
}

.hc-tabs .hc-create-button {
    min-height: 36px;
    margin-left: auto;
    border: 1px solid rgba(148, 239, 218, 0.72);
    border-radius: 9px;
    color: var(--hc-accent-ink);
}

.hc-sort {
    min-height: 36px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background: var(--hc-surface);
    color: var(--hc-text);
}

.hc-entry {
    display: grid;
    grid-template-columns: 46px 36px minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: start;
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid var(--hc-border);
    color: var(--hc-text);
    text-decoration: none;
}

.hc-entry a {
    color: inherit;
    text-decoration: none;
}

.hc-entry:hover {
    background: rgba(102, 215, 189, 0.045);
}

.hc-entry__id {
    color: var(--hc-accent);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
}

.hc-author-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--hc-border-strong);
    border-radius: 9px;
    background: var(--hc-surface);
    color: var(--hc-accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

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

.hc-author-avatar--entry {
    margin-top: -0.08rem;
}

.hc-entry__copy {
    display: grid;
    gap: 0.25rem;
}

.hc-entry__copy strong {
    font-size: 0.96rem;
}

.hc-entry__copy > span {
    color: var(--hc-muted);
    font-size: 0.82rem;
}

.hc-entry__copy small,
.hc-entry__signal {
    color: var(--hc-subtle);
    font-size: 0.7rem;
}

.hc-entry__copy small a {
    color: var(--hc-accent);
}

.hc-entry__signal {
    display: grid;
    gap: 0.15rem;
    align-self: center;
    justify-items: end;
    white-space: nowrap;
}

.hc-entry__signal b {
    color: var(--hc-text);
    font-size: 1rem;
}

.hc-no-results,
.hc-empty {
    padding: 2rem 1.5rem;
    color: var(--hc-muted);
}

.hc-ranked section {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--hc-border);
}

.hc-ranked h2 {
    margin-bottom: 0.7rem;
}

.hc-ranked__item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 0.55rem 0;
    color: var(--hc-text);
    text-decoration: none;
}

.hc-ranked__item:hover strong {
    color: var(--hc-accent);
}

.hc-ranked__item span {
    color: var(--hc-accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.hc-ranked__item strong {
    font-size: 0.75rem;
    font-weight: 600;
}

.hc-ranked__item small {
    color: var(--hc-subtle);
    font-size: 0.68rem;
}

.hc-contributor {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.35rem 0.55rem;
    padding: 0.65rem 0;
    color: var(--hc-text);
    text-decoration: none;
}

.hc-contributor > span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(102, 215, 189, 0.35);
    border-radius: 999px;
    color: var(--hc-accent);
    font-size: 0.7rem;
    font-weight: 700;
}

.hc-contributor strong {
    font-size: 0.76rem;
}

.hc-contributor small {
    grid-column: 2;
    color: var(--hc-subtle);
    font-size: 0.68rem;
}

.hc-staff-docs > span,
.hc-staff-docs > span svg {
    width: 24px;
    height: 24px;
    color: var(--hc-muted);
}

.hc-staff-docs p {
    color: var(--hc-muted);
    font-size: 0.78rem;
}

.hc-staff-docs a,
.hc-doc-lane a,
.hc-doc-lane button {
    color: var(--hc-accent);
    font-size: 0.75rem;
    text-decoration: none;
}

.hc-docs {
    padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 4rem);
    max-width: 1480px;
    margin: 0 auto;
}

.hc-docs__head {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.hc-docs__head p {
    margin: 0.35rem 0 0;
    color: var(--hc-muted);
    font-size: 0.84rem;
}

.hc-docs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

.hc-doc-lane {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    min-height: 190px;
    padding: 1rem;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
        rgba(17, 22, 27, 0.78);
}

.hc-doc-lane:hover {
    border-color: rgba(102, 215, 189, 0.32);
    background:
        linear-gradient(180deg, rgba(102, 215, 189, 0.045), transparent),
        rgba(17, 22, 27, 0.92);
}

.hc-doc-lane header {
    display: grid;
    gap: 0.25rem;
}

.hc-doc-lane h3 {
    margin: 0;
    font-size: 0.84rem;
}

.hc-doc-lane header small,
.hc-doc-lane > p {
    margin: 0;
    color: var(--hc-subtle);
    font-size: 0.72rem;
    line-height: 1.45;
}

.hc-doc-lane h3 span,
.hc-doc-lane a span {
    color: var(--hc-accent);
    font-family: var(--font-mono);
}

.hc-doc-lane a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    color: var(--hc-muted);
}

.hc-doc-lane a:hover {
    color: var(--hc-accent);
}

.hc-doc-lane button {
    justify-self: start;
    align-self: end;
    margin-top: auto;
    padding: 0.42rem 0.58rem;
    border: 1px solid rgba(102, 215, 189, 0.24);
    border-radius: 7px;
    background: rgba(102, 215, 189, 0.055);
}

.hc-modal[hidden] {
    display: none;
}

.hc-create-form[hidden],
.hc-create-choices[hidden] {
    display: none;
}

.hc-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}

.hc-modal__scrim {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: 0;
    background: rgba(3, 7, 10, 0.78);
    backdrop-filter: blur(7px);
}

.hc-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    border: 1px solid var(--hc-border-strong);
    border-radius: 14px;
    background: #12171d;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}

.hc-dialog--small {
    width: min(520px, 100%);
}

.hc-dialog header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    padding: 1.35rem 1.4rem;
    border-bottom: 1px solid var(--hc-border);
}

.hc-dialog header small {
    color: var(--hc-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hc-dialog h2 {
    margin: 0.2rem 0 0;
    font-size: 1.35rem;
}

.hc-dialog header > button {
    width: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid var(--hc-border);
    background: transparent;
    color: var(--hc-muted);
}

.hc-create-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1.4rem;
}

.hc-create-choice {
    display: grid;
    gap: 0.65rem;
    min-height: 170px;
    padding: 1rem;
    border: 1px solid var(--hc-border);
    border-radius: 10px;
    background: var(--hc-surface);
    color: var(--hc-text);
    text-align: left;
}

.hc-create-choice:hover {
    border-color: var(--hc-accent);
    background: var(--hc-surface-2);
    transform: translateY(-2px);
}

.hc-create-choice > span,
.hc-create-choice svg {
    width: 24px;
    height: 24px;
    color: var(--hc-accent);
}

.hc-create-choice small {
    color: var(--hc-muted);
    line-height: 1.4;
}

.hc-create-form {
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
}

.hc-create-form label,
.hc-reply {
    display: grid;
    gap: 0.4rem;
    color: var(--hc-text);
    font-size: 0.78rem;
    font-weight: 600;
}

.hc-create-form label small {
    color: var(--hc-subtle);
    font-weight: 500;
}

.hc-create-form :where(input, textarea, select),
.hc-reply textarea {
    width: 100%;
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--hc-border-strong);
    border-radius: 9px;
    outline: none;
    background: #0c1014;
    color: var(--hc-text);
    font-weight: 500;
}

.hc-composer {
    display: grid;
    gap: 0;
}

.hc-formatbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    align-items: center;
    padding: 0.42rem;
    border: 1px solid var(--hc-border-strong);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: #11171c;
}

.hc-formatbar button,
.hc-image-attach {
    display: grid;
    width: 31px;
    height: 31px;
    min-height: 31px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--hc-border);
    border-radius: 7px;
    background: transparent;
    color: var(--hc-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.hc-formatbar button:hover:not(:disabled),
.hc-image-attach:hover {
    border-color: rgba(102, 215, 189, 0.55);
    color: var(--hc-accent);
}

.hc-image-attach input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hc-composer textarea {
    border-radius: 0 0 9px 9px;
}

.hc-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.hc-attachment-chip {
    display: inline-grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    gap: 0.45rem;
    align-items: center;
    max-width: min(100%, 360px);
    padding: 0.35rem;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background: var(--hc-surface);
}

.hc-attachment-chip img {
    width: 34px;
    height: 28px;
    object-fit: cover;
    border-radius: 5px;
}

.hc-attachment-chip strong,
.hc-attachment-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-attachment-chip strong {
    color: var(--hc-text);
    font-size: 0.72rem;
}

.hc-attachment-chip small {
    color: var(--hc-subtle);
    font-size: 0.68rem;
}

.hc-attachment-chip button {
    width: 26px;
    min-height: 26px;
    padding: 0;
    border: 1px solid var(--hc-border);
    border-radius: 6px;
    background: transparent;
    color: var(--hc-muted);
}

.hc-create-form :where(input, textarea, select):focus,
.hc-reply textarea:focus {
    border-color: var(--hc-accent);
}

.hc-ai-note {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    padding: 0.8rem;
    border: 1px solid rgba(102, 215, 189, 0.22);
    border-radius: 9px;
    background: rgba(102, 215, 189, 0.055);
}

.hc-ai-note svg {
    width: 20px;
    height: 20px;
    color: var(--hc-accent);
}

.hc-ai-note span {
    display: grid;
    gap: 0.15rem;
}

.hc-ai-note small {
    color: var(--hc-muted);
}

.hc-create-form footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.hc-secondary {
    padding: 0.65rem 1rem;
    border: 1px solid var(--hc-border-strong);
    background: transparent;
    color: var(--hc-text);
}

.hc-form-status {
    min-height: 1.2rem;
    margin: 0;
    color: var(--hc-muted);
    font-size: 0.75rem;
}

.hc-form-status[data-tone="error"] {
    color: #ff9c9c;
}

.hc-form-status[data-tone="success"] {
    color: var(--hc-accent);
}

.hc-detail {
    max-width: 1120px;
    padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 4vw, 3rem);
    margin: 0 auto;
}

.hc-detail__back {
    color: var(--hc-accent);
    font-size: 0.78rem;
    text-decoration: none;
}

.hc-detail__hero {
    padding: 3rem 0 2.2rem;
    border-bottom: 1px solid var(--hc-border);
}

.hc-detail__hero > div {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    color: var(--hc-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hc-detail__id {
    color: var(--hc-accent);
    font-family: var(--font-mono);
}

.hc-detail__hero h1 {
    max-width: 850px;
    margin: 1rem 0;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.015em;
}

.hc-detail__hero p {
    max-width: 750px;
    color: var(--hc-muted);
    font-size: 1.05rem;
}

.hc-detail__hero small {
    color: var(--hc-subtle);
}

.hc-detail__hero small a {
    color: var(--hc-accent);
    text-decoration: none;
}

.hc-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 3rem;
    padding: 2.5rem 0;
}

.hc-detail__body {
    color: #dbe3e9;
    font-size: 1rem;
    line-height: 1.8;
}

.hc-detail__layout aside {
    align-self: start;
    padding: 1rem;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background: var(--hc-surface);
}

.hc-detail__layout aside p {
    color: var(--hc-muted);
    font-size: 0.78rem;
}

.hc-detail__layout aside a {
    color: var(--hc-accent);
    font-size: 0.75rem;
    text-decoration: none;
}

.hc-thread {
    padding-top: 2.5rem;
    border-top: 1px solid var(--hc-border);
}

.hc-thread__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hc-thread__head p {
    margin: 0.2rem 0 0;
    color: var(--hc-muted);
    font-size: 0.75rem;
}

.hc-thread__head > span {
    color: var(--hc-subtle);
    font-size: 0.75rem;
}

.hc-thread__messages {
    border-top: 1px solid var(--hc-border);
}

.hc-thread-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}

.hc-thread-main {
    min-width: 0;
}

.hc-thread-side {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    grid-row: 1;
}

.hc-thread-side section,
.hc-best-solution {
    padding: 0.95rem;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background: rgba(17, 22, 27, 0.82);
}

.hc-thread-side section {
    min-width: 0;
}

.hc-thread-side h3 {
    margin: 0 0 0.7rem;
    font-size: 0.78rem;
}

.hc-thread-side p {
    margin: 0;
    color: var(--hc-muted);
    font-size: 0.74rem;
    line-height: 1.55;
}

.hc-thread-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.hc-thread-metrics span {
    display: grid;
    gap: 0.15rem;
    padding: 0.6rem;
    border: 1px solid rgba(190, 205, 218, 0.1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
}

.hc-thread-metrics small {
    color: var(--hc-subtle);
    font-size: 0.66rem;
}

.hc-thread-metrics strong {
    font-size: 0.82rem;
}

.hc-best-solution {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
    border-color: rgba(102, 215, 189, 0.35);
    background: linear-gradient(180deg, rgba(102, 215, 189, 0.085), rgba(17, 22, 27, 0.84));
}

.hc-best-solution > span,
.hc-solution-node span,
.hc-solution-root {
    color: var(--hc-accent);
    font-size: 0.68rem;
    font-weight: 700;
}

.hc-best-solution strong {
    font-size: 0.95rem;
}

.hc-best-solution p {
    margin: 0;
    color: var(--hc-muted);
    font-size: 0.78rem;
}

.hc-best-solution a {
    color: var(--hc-accent);
    font-size: 0.72rem;
    text-decoration: none;
}

.hc-solution-tree {
    display: grid;
    gap: 0.55rem;
}

.hc-solution-root {
    display: inline-flex;
    width: max-content;
    padding: 0.28rem 0.45rem;
    border: 1px solid rgba(102, 215, 189, 0.26);
    border-radius: 6px;
    background: rgba(102, 215, 189, 0.055);
}

.hc-solution-node {
    position: relative;
    display: grid;
    gap: 0.18rem;
    padding: 0.65rem 0.7rem 0.65rem 1.05rem;
    border: 1px solid var(--hc-border);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--hc-text);
    text-decoration: none;
}

.hc-solution-node::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: -0.55rem;
    bottom: 50%;
    width: 1px;
    background: rgba(102, 215, 189, 0.35);
}

.hc-solution-node:hover {
    border-color: rgba(102, 215, 189, 0.44);
}

.hc-solution-node strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.76rem;
}

.hc-solution-node small {
    color: var(--hc-subtle);
    font-size: 0.67rem;
}

.hc-message {
    padding: 1rem;
    border-bottom: 1px solid var(--hc-border);
    background: rgba(17, 22, 27, 0.28);
}

.hc-message__row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.85rem;
}

.hc-message__content {
    min-width: 0;
}

.hc-message-group__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 0.45rem;
}

.hc-message-group__meta a {
    color: var(--hc-text);
    text-decoration: none;
}

.hc-message-group__meta time,
.hc-message-group__meta span,
.hc-message-line__stamp time {
    color: var(--hc-subtle);
    font-size: 0.7rem;
}

.hc-message-line {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.hc-message-line + .hc-message-line {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(190, 205, 218, 0.1);
}

.hc-message-line--compact {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(190, 205, 218, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.hc-message-line__stamp {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: space-between;
}

.hc-message__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.hc-message__actions {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}

.hc-message__actions button {
    min-height: 30px;
    padding: 0.32rem 0.55rem;
    border: 1px solid var(--hc-border);
    border-radius: 7px;
    background: transparent;
    color: var(--hc-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.hc-message__actions button:hover {
    border-color: rgba(102, 215, 189, 0.55);
    color: var(--hc-accent);
}

.hc-reply-context {
    display: inline-flex;
    max-width: 100%;
    margin-top: 0.55rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--hc-border);
    border-radius: 7px;
    color: var(--hc-muted);
    font-size: 0.72rem;
    text-decoration: none;
}

.hc-message__meta > span {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.hc-message__meta a {
    color: var(--hc-text);
    text-decoration: none;
}

.hc-message time {
    color: var(--hc-subtle);
    font-size: 0.7rem;
}

.hc-message p {
    margin-bottom: 0;
    color: #dbe3e9;
}

.hc-message.is-accepted {
    padding-inline: 1rem;
    border: 1px solid rgba(102, 215, 189, 0.35);
    border-radius: 8px;
    background: rgba(102, 215, 189, 0.055);
}

.hc-message-line.is-accepted {
    padding: 0.8rem;
    border: 1px solid rgba(102, 215, 189, 0.35);
    border-radius: 8px;
    background: rgba(102, 215, 189, 0.055);
}

.hc-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 260px));
    gap: 0.65rem;
    margin-top: 1rem;
}

.hc-attachment {
    display: grid;
    gap: 0.35rem;
    overflow: hidden;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background: var(--hc-surface);
    color: var(--hc-muted);
    font-size: 0.72rem;
    text-decoration: none;
}

.hc-attachment img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #0b1014;
}

.hc-attachment span {
    overflow: hidden;
    padding: 0 0.55rem 0.55rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-accepted-badge {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    color: var(--hc-accent);
    font-size: 0.7rem;
}

.hc-accepted-badge svg {
    width: 14px;
    height: 14px;
}

.hc-accept-answer {
    min-height: 32px;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--hc-border-strong);
    border-radius: 8px;
    background: transparent;
    color: var(--hc-accent);
    font-size: 0.72rem;
    font-weight: 700;
}

.hc-votes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 1rem;
}

.hc-solution-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.3rem;
}

.hc-solution-actions span {
    color: var(--hc-subtle);
    font-size: 0.7rem;
}

.hc-solution-badge,
.hc-solution-actions button,
.hc-solution-actions select {
    min-height: 30px;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--hc-border);
    border-radius: 7px;
    background: transparent;
    color: var(--hc-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.hc-solution-badge {
    border-color: rgba(102, 215, 189, 0.36);
    color: var(--hc-accent);
    background: rgba(102, 215, 189, 0.055);
}

.hc-solution-actions button:hover:not(:disabled),
.hc-solution-actions button.is-active,
.hc-solution-actions select:focus {
    border-color: rgba(102, 215, 189, 0.72);
    color: var(--hc-accent);
}

.hc-votes button {
    min-height: 30px;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background: transparent;
    color: var(--hc-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.hc-votes button:hover:not(:disabled),
.hc-votes button.is-active {
    border-color: rgba(102, 215, 189, 0.72);
    color: var(--hc-accent);
}

.hc-votes strong {
    min-width: 2ch;
    text-align: center;
}

.hc-helpful-vote {
    margin-left: 0.2rem;
}

.hc-thread-empty {
    padding: 2rem 0;
    color: var(--hc-muted);
}

.hc-thread-empty p {
    margin: 0.3rem 0 0;
}

.hc-reply {
    margin-top: 2rem;
}

.hc-intent-assist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid rgba(102, 215, 189, 0.32);
    border-radius: 8px;
    background: rgba(102, 215, 189, 0.07);
}

.hc-intent-assist[hidden] {
    display: none;
}

.hc-intent-assist > span {
    flex: 1 1 260px;
    color: var(--hc-muted);
    font-size: 0.75rem;
}

.hc-intent-assist strong {
    color: var(--hc-text);
}

.hc-intent-assist button {
    min-height: 32px;
    padding: 0.38rem 0.6rem;
    border: 1px solid var(--hc-border);
    border-radius: 7px;
    background: rgba(13, 16, 20, 0.75);
    color: var(--hc-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.hc-intent-assist button:first-of-type {
    border-color: rgba(102, 215, 189, 0.65);
    color: var(--hc-accent);
}

.hc-reply-target {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(102, 215, 189, 0.3);
    border-radius: 8px;
    background: rgba(102, 215, 189, 0.06);
    color: var(--hc-muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.hc-reply-target[hidden] {
    display: none;
}

.hc-reply-target button {
    width: 28px;
    min-height: 28px;
    padding: 0;
    border: 1px solid var(--hc-border);
    border-radius: 6px;
    background: transparent;
    color: var(--hc-muted);
}

.hc-reply > div {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.hc-reply > div span {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    color: var(--hc-subtle);
    font-size: 0.72rem;
    font-weight: 550;
}

.hc-reply > div span svg {
    width: 18px;
    height: 18px;
    color: var(--hc-accent);
}

.hc-profile-hero {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) minmax(180px, auto);
    gap: 1.4rem;
    align-items: center;
    padding: 2.4rem 0;
    border-bottom: 1px solid var(--hc-border);
}

.hc-profile-avatar {
    display: block;
    width: 104px;
    height: 104px;
    overflow: hidden;
    border: 1px solid var(--hc-border-strong);
    border-radius: 16px;
    background: var(--hc-surface);
}

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

.hc-profile-kicker,
.hc-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hc-profile-kicker span,
.hc-chip-row span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(102, 215, 189, 0.24);
    border-radius: 999px;
    color: var(--hc-accent);
    font-size: 0.7rem;
    font-weight: 700;
}

.hc-profile-hero h1 {
    margin: 0.65rem 0;
    font-size: clamp(2.5rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.015em;
}

.hc-profile-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--hc-muted);
}

.hc-profile-hero aside {
    padding: 1rem;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background: var(--hc-surface);
    text-align: right;
}

.hc-profile-hero aside strong {
    display: block;
    font-size: 1.8rem;
}

.hc-profile-hero aside span {
    color: var(--hc-subtle);
    font-size: 0.72rem;
}

.hc-reputation-progress {
    max-width: 420px;
    height: 7px;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hc-reputation-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--hc-accent);
}

.hc-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 2rem;
    border: 1px solid var(--hc-border);
    background: var(--hc-border);
}

.hc-profile-grid article {
    min-width: 0;
    padding: 1.2rem;
    background: var(--hc-bg);
}

.hc-profile-grid h2 {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
}

.hc-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.hc-profile-stats span,
.hc-profile-facts span {
    display: grid;
    gap: 0.15rem;
}

.hc-profile-stats strong,
.hc-profile-facts strong {
    color: var(--hc-text);
}

.hc-profile-stats small,
.hc-profile-facts small,
.hc-chip-row small {
    color: var(--hc-subtle);
    font-size: 0.72rem;
}

.hc-profile-facts,
.hc-profile-list {
    display: grid;
    gap: 0.75rem;
}

.hc-profile-card {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    color: var(--hc-text);
    text-decoration: none;
}

.hc-profile-card:hover {
    border-color: rgba(102, 215, 189, 0.5);
}

.hc-profile-card span {
    color: var(--hc-subtle);
    font-size: 0.74rem;
}

.hc-profile-drawer[hidden] {
    display: none;
}

.hc-profile-drawer {
    position: fixed;
    inset: 0;
    z-index: 9100;
    display: grid;
    justify-items: end;
}

.hc-profile-drawer__scrim {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: 0;
    background: rgba(3, 7, 10, 0.62);
    backdrop-filter: blur(5px);
}

.hc-profile-drawer__panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    height: 100vh;
    height: 100dvh;
    overflow: auto;
    padding: 1rem;
    border-left: 1px solid var(--hc-border-strong);
    background: #10151a;
    box-shadow: -28px 0 80px rgba(0, 0, 0, 0.45);
}

.hc-profile-drawer__panel [data-profile-panel-content] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
}

.hc-profile-panel-mini {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hc-border);
}

.hc-profile-panel-mini img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border: 1px solid var(--hc-border-strong);
    border-radius: 12px;
}

.hc-profile-panel-mini strong,
.hc-profile-panel-mini small {
    display: block;
}

.hc-profile-panel-mini small,
.hc-profile-drawer__panel p {
    color: var(--hc-muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.hc-profile-panel-mini a,
.hc-profile-panel-actions a {
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--hc-border);
    border-radius: 7px;
    color: var(--hc-accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.hc-profile-panel-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 1rem 0;
}

.hc-profile-panel-stats span {
    display: grid;
    gap: 0.12rem;
    padding: 0.75rem;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.hc-profile-panel-stats small {
    color: var(--hc-subtle);
    font-size: 0.68rem;
}

.hc-profile-drawer__panel section {
    padding: 1rem 0;
    border-top: 1px solid var(--hc-border);
}

.hc-reward-grid,
.hc-profile-mod__state {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.hc-reward-grid span,
.hc-profile-mod__state span {
    display: grid;
    gap: 0.12rem;
    padding: 0.65rem;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.hc-reward-grid small,
.hc-profile-mod__state small {
    color: var(--hc-subtle);
    font-size: 0.67rem;
}

.hc-profile-panel-link {
    display: inline-flex;
    width: max-content;
    margin-top: 0.75rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--hc-border);
    border-radius: 7px;
    color: var(--hc-accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.hc-profile-mod {
    grid-column: 1 / -1;
}

.hc-profile-mod form,
.hc-profile-mod label {
    display: grid;
    gap: 0.5rem;
}

.hc-profile-mod form {
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: end;
}

.hc-profile-mod__state,
.hc-profile-mod__actions,
.hc-profile-mod .hc-form-status {
    grid-column: 1 / -1;
}

.hc-profile-mod input,
.hc-profile-mod select {
    min-height: 38px;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background: rgba(13, 16, 20, 0.74);
    color: var(--hc-text);
}

.hc-profile-mod__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hc-profile-mod__actions button {
    min-height: 34px;
    padding: 0.42rem 0.68rem;
    border: 1px solid var(--hc-border);
    border-radius: 7px;
    background: transparent;
    color: var(--hc-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.hc-profile-mod__actions button:hover {
    border-color: rgba(102, 215, 189, 0.55);
    color: var(--hc-accent);
}

.hc-profile-drawer__panel h3 {
    margin: 0 0 0.6rem;
    font-size: 0.82rem;
}

.hc-profile-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 1100px) {
    .hc-hero {
        grid-template-columns: 1fr;
    }

    .hc-activity {
        border-top: 1px solid var(--hc-border);
        border-left: 0;
    }

    .hc-workspace {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .hc-ranked {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
        border-top: 1px solid var(--hc-border);
        border-left: 0;
    }

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

    .hc-thread-layout {
        grid-template-columns: 1fr;
    }

    .hc-thread-side {
        position: static;
        grid-row: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hc-hero__main {
        padding-block: 3rem;
    }

    .hc-hero h1 {
        font-size: clamp(3rem, 16vw, 5rem);
    }

    .hc-search {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .hc-search button {
        grid-column: 1 / -1;
    }

    .hc-workspace {
        display: block;
    }

    .hc-categories {
        display: flex;
        gap: 0.35rem;
        padding: 1rem;
        border-right: 0;
        border-bottom: 1px solid var(--hc-border);
        overflow-x: auto;
    }

    .hc-side-title,
    .hc-category-group h3,
    .hc-category small,
    .hc-manage small {
        display: none;
    }

    .hc-category-group {
        display: contents;
    }

    .hc-category,
    .hc-manage {
        grid-template-columns: auto auto;
        min-width: max-content;
        min-height: 40px;
        padding: 0.55rem 0.7rem;
        border: 1px solid var(--hc-border);
        border-radius: 8px;
    }

    .hc-manage {
        margin-top: 0;
    }

    .hc-entry {
        grid-template-columns: 42px 34px minmax(0, 1fr);
    }

    .hc-entry__signal {
        display: none;
    }

    .hc-sort {
        order: 8;
        width: 100%;
    }

    .hc-ranked {
        display: block;
    }

    .hc-docs__head,
    .hc-thread__head,
    .hc-reply > div {
        align-items: stretch;
        flex-direction: column;
    }

    .hc-docs__grid,
    .hc-create-choices {
        grid-template-columns: 1fr;
    }

    .hc-create-choice {
        min-height: 120px;
    }

    .hc-detail__layout {
        grid-template-columns: 1fr;
    }

    .hc-profile-hero,
    .hc-profile-grid,
    .hc-profile-stats {
        grid-template-columns: 1fr;
    }

    .hc-profile-hero aside {
        text-align: left;
    }

    .hc-message__row {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .hc-author-avatar {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .hc-message__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .hc-message-line__stamp,
    .hc-solution-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hc-attachments {
        grid-template-columns: minmax(0, 1fr);
    }

    .hc-thread-metrics,
    .hc-profile-panel-stats,
    .hc-profile-drawer__panel [data-profile-panel-content],
    .hc-thread-side,
    .hc-profile-mod form {
        grid-template-columns: 1fr;
    }

    .hc-notification-center {
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }

    .hc-notification-center__button span {
        display: none;
    }

    /* iOS zoom guard: these inputs receive a sub-16px size via `font: inherit`
       on a class-level shell rule the global 16px rule cannot outrank, so raise
       them explicitly at phone widths. */
    .hc-create-form :where(input, textarea, select),
    .hc-reply textarea,
    .hc-search input,
    .hc-sort,
    .hc-solution-actions select,
    .hc-profile-mod :where(input, select) {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hc-shell *,
    .hc-detail * {
        transition-duration: 0.01ms !important;
    }
}

/* ---- July 2026 thread clarity pass ------------------------------------ */

/* Word-labeled formatting buttons (Quote / List / Link / Image) need their
   natural width; the 31px square is only right for glyph buttons. */
.hc-formatbar .hc-format-word {
    width: auto;
    min-width: 31px;
    padding: 0 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Lead message of a group: the header row above already carries author,
   time, and actions, the line itself is pure content. */
.hc-message-line--lead {
    display: grid;
    gap: 0.5rem;
}

/* Threaded replies: indented with a spine so the conversation reads as a
   tree instead of a flat list. */
.hc-message-line.has-parent {
    margin-left: 0.9rem;
    padding-left: 0.85rem;
    border-left: 2px solid rgba(102, 215, 189, 0.3);
}

.hc-reply-context {
    gap: 0.35rem;
    align-items: baseline;
    background: rgba(102, 215, 189, 0.05);
    border-color: rgba(102, 215, 189, 0.22);
}

.hc-reply-context:hover {
    border-color: rgba(102, 215, 189, 0.5);
    color: var(--hc-accent);
}

.hc-reply-context em {
    overflow: hidden;
    max-width: 34ch;
    font-style: normal;
    opacity: 0.75;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-reply-context__arrow {
    color: var(--hc-accent);
    font-weight: 700;
}

/* Solution feedback: quiet single line until it has real signal. */
.hc-solution-actions {
    row-gap: 0.35rem;
}

.hc-solution-prompt {
    color: var(--hc-muted);
    font-size: 0.72rem;
}

.hc-solution-score {
    color: var(--hc-accent);
    font-size: 0.72rem;
    font-weight: 700;
}

/* Group header actions sit at the row end. */
.hc-message-group__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.hc-message-group__meta .hc-message__actions {
    margin-left: auto;
}

/* Quiet actions: on hover-capable devices, Reply/Accept fade in when the
   reader is on the message. Keyboard focus always reveals them; touch
   devices keep them visible. */
@media (hover: hover) and (pointer: fine) {
    .hc-message .hc-message__actions {
        opacity: 0;
        transition: opacity 140ms ease;
    }

    .hc-message:hover .hc-message__actions,
    .hc-message:focus-within .hc-message__actions {
        opacity: 1;
    }
}

/* ---- Mobile touch targets (coarse pointers) --------------------------- */
/* Grow hit areas on touch devices without touching desktop layout or the
   visible glyph sizes. */
@media (pointer: coarse) {
    .hc-notification-center__panel header button,
    .hc-activity__head button,
    .hc-tabs .hc-create-button,
    .hc-sort,
    .hc-doc-lane button,
    .hc-message__actions button,
    .hc-accept-answer,
    .hc-solution-actions button,
    .hc-solution-actions select,
    .hc-votes button,
    .hc-intent-assist button,
    .hc-profile-mod input,
    .hc-profile-mod select,
    .hc-profile-mod__actions button {
        min-height: 44px;
    }

    /* Square icon buttons: keep the glyph, grow the tappable box. */
    .hc-formatbar button,
    .hc-image-attach {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }

    /* Standalone dialog close button. */
    .hc-dialog header > button {
        min-width: 44px;
        min-height: 44px;
    }

    /* Small in-row dismiss buttons: widen the box, keep it shallow. */
    .hc-reply-target button,
    .hc-attachment-chip button {
        min-width: 44px;
        min-height: 40px;
    }

    /* Link-style pills in the profile drawer. */
    .hc-profile-panel-mini a,
    .hc-profile-panel-actions a,
    .hc-profile-panel-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}
