.hc-page {
    background: var(--ui-surface-page);
    color: var(--ui-text-primary);
    scroll-behavior: smooth;
}

.hc-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--ui-space-16);
}

.hc-header {
    position: sticky;
    top: 0;
    z-index: var(--ui-z-head);
    background: var(--ui-surface);
    border-bottom: 1px solid var(--ui-border-subtle);
}

.hc-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ui-space-12);
    height: 64px;
}

.hc-hero {
    padding: var(--ui-space-32) 0 var(--ui-space-16);
    text-align: center;
}

.hc-hero h1 {
    margin: 0;
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hc-hero h1 span {
    color: var(--ui-text-accent);
}

.hc-hero > p {
    margin: var(--ui-space-10) 0 0;
    color: var(--ui-text-secondary);
    font-size: 16px;
    line-height: 24px;
}

.hc-help {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--ui-space-16);
    margin: var(--ui-space-20) 0 var(--ui-space-4);
    padding: var(--ui-space-16) var(--ui-space-20);
    border: 2px solid var(--ui-border-accent);
    border-radius: var(--ui-radius-xl);
    box-shadow: var(--ui-shadow-accent);
    color: var(--ui-text-primary);
    text-align: left;
    text-decoration: none;
}

.hc-help-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ui-fill-accent);
    color: var(--ui-text-on-accent);
}

.hc-help-icon > .ui-glyph {
    width: 26px;
    height: 26px;
}

.hc-help-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ui-space-2);
    min-width: 0;
}

.hc-help-text > b {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.hc-help-text > span {
    color: var(--ui-text-secondary);
    font-size: 15px;
    line-height: 22px;
}

.hc-help-text > .hc-help-handle {
    margin-top: var(--ui-space-4);
    padding: 3px var(--ui-space-10);
    border-radius: var(--ui-radius-s);
    background: var(--ui-tint-accent);
    color: var(--ui-text-accent);
    font-weight: 700;
}

.hc-help-go {
    flex: none;
    margin-left: auto;
}

.hc-tools {
    position: sticky;
    top: 64px;
    z-index: var(--ui-z-sticky);
    padding: var(--ui-space-12) 0 var(--ui-space-14);
    background: var(--ui-surface-page);
}

.hc-tools input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.hc-chips {
    flex-wrap: nowrap;
    margin-top: var(--ui-space-12);
    overflow-x: auto;
    scrollbar-width: none;
}

.hc-chips::-webkit-scrollbar {
    display: none;
}

.hc-chips > .ui-chip {
    flex: none;
    gap: var(--ui-space-6);
}

.hc-list {
    display: flex;
    flex-direction: column;
    gap: var(--ui-space-10);
    padding-bottom: var(--ui-space-40);
}

.hc-item {
    padding: var(--ui-space-16) var(--ui-space-20);
    scroll-margin-top: 200px;
}

.hc-item[open] {
    border-color: var(--ui-border-accent-soft);
}

.hc-item[hidden],
.hc-group[hidden],
.hc-page .ui-empty[hidden] {
    display: none;
}

.hc-item > summary {
    gap: var(--ui-space-14);
}

.hc-icon {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--ui-radius-m);
    background: var(--ui-tint-accent);
    font-size: 20px;
    line-height: 1;
}

.hc-crown {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ui-gradient-premium);
    color: var(--ui-text-on-fill);
}

.hc-crown > .ui-glyph {
    width: 11px;
    height: 11px;
}

.hc-icon > .hc-crown {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--ui-surface);
}

.hc-icon > .hc-crown > .ui-glyph {
    width: 13px;
    height: 13px;
}

.hc-crown.m {
    width: 28px;
    height: 28px;
}

.hc-crown.m > .ui-glyph {
    width: 15px;
    height: 15px;
}

.hc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ui-space-6);
    font-weight: 600;
}

.hc-answer {
    display: flex;
    flex-direction: column;
    gap: var(--ui-space-12);
    padding-left: 56px;
    font-size: 16px;
    line-height: 24px;
}

.hc-answer p {
    margin: 0;
}

.hc-answer a {
    color: var(--ui-text-accent);
    overflow-wrap: anywhere;
}

.hc-tabs {
    margin-bottom: var(--ui-space-4);
}

.hc-pane {
    display: flex;
    flex-direction: column;
    gap: var(--ui-space-12);
}

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

.hc-step {
    display: flex;
    align-items: flex-start;
    gap: var(--ui-space-12);
}

.hc-step b {
    font-weight: 700;
}

.hc-step-n {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: -1px;
    border-radius: 50%;
    background: var(--ui-fill-accent);
    color: var(--ui-text-on-accent);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.hc-note {
    padding-left: 38px;
    color: var(--ui-text-secondary);
    font-size: 15px;
    line-height: 22px;
}

.hc-callout {
    display: flex;
    align-items: center;
    gap: var(--ui-space-10);
    padding: var(--ui-space-12) var(--ui-space-14);
    border-radius: var(--ui-radius-l);
    background: var(--ui-tint-accent);
    font-size: 15px;
    line-height: 22px;
}

.hc-callout b {
    color: var(--ui-text-accent);
}

.hc-callout.premium {
    padding: var(--ui-space-10) var(--ui-space-14);
    border: 1.5px solid var(--ui-border-accent-soft);
    background: var(--ui-gradient-premium-tint);
    font-weight: 600;
}

.hc-sub {
    margin-top: var(--ui-space-6);
    font-size: 16px;
    font-weight: 700;
}

.hc-bullets {
    margin: 0;
    padding-left: var(--ui-space-20);
}

.hc-bullets li + li {
    margin-top: var(--ui-space-4);
}

.hc-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: var(--ui-space-6);
    padding: var(--ui-space-6) var(--ui-space-12);
    border-radius: var(--ui-radius-m);
    background: var(--ui-surface-sunken);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.hc-answer .hc-link:hover {
    background: var(--ui-surface-sunken-hover);
}

.hc-done {
    padding: var(--ui-space-14) var(--ui-space-16);
    border-radius: var(--ui-radius-l);
    background: var(--ui-fill-ink);
    color: var(--ui-text-on-ink);
    font-size: 15px;
    line-height: 22px;
}

.hc-done > b {
    display: flex;
    align-items: center;
    gap: var(--ui-space-6);
    margin-bottom: var(--ui-space-2);
    font-size: 16px;
}

.hc-done > b > .ui-glyph {
    width: 18px;
    height: 18px;
    color: var(--ui-fill-success);
}

.hc-shot {
    margin: 0;
}

.hc-shot > img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    margin: 0 auto;
    border: 1px solid var(--ui-border-subtle);
    border-radius: var(--ui-radius-l);
    cursor: zoom-in;
}

.hc-group {
    margin: var(--ui-space-20) var(--ui-space-4) var(--ui-space-2);
}

.hc-group h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hc-group p {
    margin: var(--ui-space-2) 0 0;
    color: var(--ui-text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.hc-group .ui-tag {
    vertical-align: middle;
}

.hc-footer {
    padding: var(--ui-space-10) var(--ui-space-16) var(--ui-space-40);
    color: var(--ui-text-secondary);
    font-size: 14px;
    text-align: center;
}

.hc-footer a {
    color: var(--ui-text-accent);
}

.hc-fab {
    position: fixed;
    right: var(--ui-space-16);
    bottom: var(--ui-space-16);
    z-index: var(--ui-z-float);
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--ui-fill-accent);
    color: var(--ui-text-on-accent);
    box-shadow: var(--ui-shadow-accent);
}

.hc-fab:hover {
    background: var(--ui-fill-accent-hover);
}

.hc-fab > .ui-glyph {
    width: 28px;
    height: 28px;
}

@media (max-width: 560px) {
    .hc-help-go {
        display: none;
    }

    .hc-answer {
        padding-left: 0;
    }

    .hc-note {
        padding-left: 0;
    }
}
