.help-appbar-btn.mud-button {
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.help-doc-page {
    margin: -1rem -1rem 0;
    min-height: calc(100vh - 4rem);
    background: var(--vms-bg);
    color: var(--vms-text);
}

.help-doc-hero {
    background: var(--vms-surface);
    border-bottom: 1px solid var(--vms-border);
    color: var(--vms-text);
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: var(--vms-shadow-sm);
}

.help-doc-hero-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.help-doc-hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--vms-accent-soft);
    border: 1px solid var(--vms-border);
    color: var(--vms-accent);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.65rem;
}

.help-doc-hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 600;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
    color: var(--vms-text);
}

.help-doc-hero-lead {
    font-size: 1rem;
    color: var(--vms-text-secondary);
    max-width: 42rem;
    margin: 0;
    line-height: 1.55;
}

.help-doc-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    align-items: start;
}

.help-doc-sidebar {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.help-doc-sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vms-text-secondary);
    margin: 0 0 0.75rem;
}

.help-doc-toc {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-doc-toc li {
    margin: 0;
}

.help-doc-toc a {
    display: block;
    padding: 0.4rem 0.65rem;
    border-radius: var(--vms-radius-sm);
    color: var(--vms-text);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.35;
    border-left: 2px solid transparent;
    transition: background-color var(--vms-motion-fast) var(--vms-motion-ease),
        color var(--vms-motion-fast) var(--vms-motion-ease);
}

.help-doc-toc a:hover {
    background: var(--vms-accent-hover);
    color: var(--vms-accent);
}

.help-doc-toc a.active {
    background: var(--vms-accent-soft);
    color: var(--vms-accent);
    border-left-color: var(--vms-accent);
    font-weight: 600;
}

.help-doc-toc .toc-sub a {
    padding-left: 1.25rem;
    font-size: 0.85rem;
}

.help-doc-article {
    background: var(--vms-surface);
    border: 1px solid var(--vms-border);
    border-radius: var(--vms-radius-lg);
    box-shadow: var(--vms-shadow-sm);
    padding: 2rem 2.25rem;
}

.help-doc-section {
    scroll-margin-top: 5.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--vms-border);
}

.help-doc-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.help-doc-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vms-text);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.help-doc-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vms-text);
    margin: 1.5rem 0 0.5rem;
}

.help-doc-section p,
.help-doc-section li {
    color: var(--vms-text-secondary);
    line-height: 1.65;
    font-size: 0.98rem;
}

.help-doc-section ul,
.help-doc-section ol {
    margin: 0.5rem 0 1rem;
    padding-left: 1.35rem;
}

.help-doc-section li {
    margin-bottom: 0.35rem;
}

.help-doc-callout {
    border-radius: var(--vms-radius-md);
    padding: 1rem 1.15rem;
    margin: 1rem 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.help-doc-callout-info {
    background: var(--vms-accent-soft);
    border: 1px solid var(--vms-border);
    color: var(--vms-text);
}

.help-doc-callout-tip {
    background: var(--vms-surface-elevated);
    border: 1px solid var(--vms-border);
    color: var(--vms-text);
}

.help-doc-callout-warn,
.help-doc-callout-warning {
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: var(--vms-text);
}

html[data-vms-theme="dark"] .help-doc-callout-warn,
html[data-vms-theme="dark"] .help-doc-callout-warning {
    background: rgba(201, 162, 39, 0.15);
    border-color: rgba(201, 162, 39, 0.4);
}

.help-doc-callout strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--vms-text);
}

.help-doc-link {
    color: var(--vms-accent);
    font-weight: 600;
    text-decoration: none;
}

.help-doc-link:hover {
    text-decoration: underline;
}

.help-doc-steps {
    counter-reset: help-step;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.help-doc-steps li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.85rem;
    counter-increment: help-step;
    color: var(--vms-text-secondary);
}

.help-doc-steps li::before {
    content: counter(help-step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: var(--vms-accent);
    color: var(--vms-surface);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 960px) {
    .help-doc-layout {
        grid-template-columns: 1fr;
        padding: 1.25rem 1rem 2rem;
    }

    .help-doc-sidebar {
        position: static;
        max-height: none;
        background: var(--vms-surface);
        border: 1px solid var(--vms-border);
        border-radius: var(--vms-radius-md);
        padding: 1rem;
        box-shadow: var(--vms-shadow-sm);
    }

    .help-doc-article {
        padding: 1.25rem 1.15rem;
    }
}

.help-hub-coordinator-note {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    color: var(--vms-text-secondary);
}

.help-doc-hero-compact {
    padding: 1.25rem 1.5rem 1.15rem;
}

.help-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
    color: var(--vms-text-secondary);
}

.help-breadcrumb-link {
    color: var(--vms-text-secondary);
    text-decoration: none;
    transition: color var(--vms-motion-fast) var(--vms-motion-ease);
}

.help-breadcrumb-link:hover {
    color: var(--vms-accent);
    text-decoration: underline;
}

.help-breadcrumb-sep,
.help-breadcrumb-current {
    color: var(--vms-text-secondary);
}

.help-breadcrumb-current {
    font-weight: 500;
    color: var(--vms-text);
}

.help-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 3rem;
}

.help-hub-card {
    border: 1px solid var(--vms-border) !important;
    border-radius: var(--vms-radius-lg) !important;
    background: var(--vms-surface) !important;
    box-shadow: var(--vms-shadow-sm) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color var(--vms-motion-fast) var(--vms-motion-ease),
        box-shadow var(--vms-motion-fast) var(--vms-motion-ease);
}

.help-hub-card:hover {
    border-color: var(--vms-accent) !important;
    box-shadow: var(--vms-shadow-md) !important;
}

.help-hub-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--vms-radius-sm);
    background: var(--vms-accent-soft);
    color: var(--vms-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.help-hub-card-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vms-accent);
    background: var(--vms-accent-soft);
    border-radius: var(--vms-radius-sm);
    padding: 0.15rem 0.45rem;
    margin-bottom: 0.5rem;
}

.help-hub-card-title {
    font-weight: 600 !important;
    color: var(--vms-text) !important;
    margin-bottom: 0.35rem !important;
    letter-spacing: -0.02em;
}

.help-hub-card-desc {
    color: var(--vms-text-secondary) !important;
    line-height: 1.5 !important;
}

.help-topic-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 2rem;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 3rem;
    align-items: start;
}

.help-topic-article {
    min-width: 0;
}

.help-topic-section {
    margin-bottom: 2rem;
}

.help-topic-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--vms-text);
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
}

.help-topic-overview p {
    color: var(--vms-text-secondary);
    line-height: 1.65;
    margin: 0 0 1rem;
}

.help-topic-panels {
    margin: 1.25rem 0;
}

.help-topic-panels .mud-expansion-panel {
    border: 1px solid var(--vms-border) !important;
    border-radius: var(--vms-radius-md) !important;
    margin-bottom: 0.5rem;
    background: var(--vms-surface) !important;
}

.help-topic-panels .mud-expansion-panel-header {
    color: var(--vms-text);
}

.help-topic-related {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--vms-border);
}

.help-topic-related h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vms-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.help-topic-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.help-doc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.help-doc-card {
    background: var(--vms-surface-elevated);
    border: 1px solid var(--vms-border);
    border-radius: var(--vms-radius-md);
    padding: 1rem 1.15rem;
}

.help-doc-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vms-text);
    margin: 0 0 0.35rem;
}

.help-doc-card p {
    font-size: 0.9rem;
    color: var(--vms-text-secondary);
    line-height: 1.55;
    margin: 0;
}

.help-doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.25rem;
    font-size: 0.92rem;
}

.help-doc-table th,
.help-doc-table td {
    border: 1px solid var(--vms-border);
    padding: 0.55rem 0.75rem;
    text-align: left;
    vertical-align: top;
    color: var(--vms-text-secondary);
}

.help-doc-table th {
    background: var(--vms-surface-elevated);
    font-weight: 600;
    color: var(--vms-text);
}

.help-scenario {
    background: var(--vms-surface-elevated);
    border: 1px solid var(--vms-border);
    border-left: 4px solid var(--vms-accent);
    border-radius: 0 var(--vms-radius-md) var(--vms-radius-md) 0;
    padding: 1.15rem 1.25rem;
    margin: 1.25rem 0;
}

.help-scenario-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--vms-text);
    margin: 0 0 0.65rem;
}

.help-scenario-body p {
    margin: 0 0 0.65rem;
    color: var(--vms-text-secondary);
    line-height: 1.6;
}

.help-scenario-body p:last-child {
    margin-bottom: 0;
}

.help-screenshot-gallery-panels {
    margin-top: 2rem;
    border: 1px solid var(--vms-border);
    border-radius: var(--vms-radius-md);
    overflow: hidden;
    background: var(--vms-surface);
}

.help-screenshot-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    padding: 0.5rem 0 0.25rem;
}

.help-screenshot-figure {
    margin: 0;
}

.help-screenshot-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    border-radius: var(--vms-radius-sm);
    overflow: hidden;
}

.help-screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--vms-border);
    border-radius: var(--vms-radius-sm);
}

.help-screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 1rem;
    border: 2px dashed var(--vms-border);
    border-radius: var(--vms-radius-sm);
    background: var(--vms-surface-elevated);
    text-align: center;
}

.help-screenshot-placeholder-icon {
    color: var(--vms-accent);
    font-size: 2rem !important;
    margin-bottom: 0.5rem;
}

.help-screenshot-placeholder-file {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--vms-text);
    word-break: break-all;
}

.help-screenshot-placeholder-hint {
    font-size: 0.72rem;
    color: var(--vms-text-secondary);
    margin-top: 0.25rem;
}

.help-screenshot-caption {
    font-size: 0.82rem;
    color: var(--vms-text-secondary);
    margin-top: 0.45rem;
    line-height: 1.4;
}

.help-screenshot-lightbox-img {
    max-width: min(95vw, 1200px);
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--vms-radius-sm);
    box-shadow: var(--vms-shadow-md);
}

.help-lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.help-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    border: 1px solid var(--vms-border);
    background: var(--vms-surface-elevated);
    color: var(--vms-text);
    font-size: 2rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
}

.help-lightbox-caption {
    color: var(--vms-text);
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: center;
    max-width: 40rem;
}

@media (max-width: 960px) {
    .help-topic-layout {
        grid-template-columns: 1fr;
        padding: 1.25rem 1rem 2rem;
    }

    .help-topic-sidebar {
        position: static;
        max-height: none;
        background: var(--vms-surface);
        border: 1px solid var(--vms-border);
        border-radius: var(--vms-radius-md);
        padding: 1rem;
        box-shadow: var(--vms-shadow-sm);
    }

    .help-doc-grid-2 {
        grid-template-columns: 1fr;
    }

    .help-hub-grid {
        padding: 1.25rem 1rem 2rem;
    }

    .help-doc-hero {
        padding: 1.25rem 1rem 1rem;
    }
}
