/* Help guide — theme-aware deck (light + dark) */

.help-deck {
    display: flex;
    flex-direction: column;
    gap: 0;
    outline: none;
    --hd-card: var(--card, #fff);
    --hd-bg: var(--bg, #f4f6f9);
    --hd-alt: var(--bg-alt, #eef2f7);
    --hd-text: var(--text, #111);
    --hd-muted: var(--text-muted, #64748b);
    --hd-border: var(--panel-border, rgba(0, 0, 0, 0.08));
    --hd-accent: var(--accent, #2563eb);
    --hd-glow: color-mix(in srgb, var(--hd-accent) 28%, transparent);
    --hd-soft: color-mix(in srgb, var(--hd-accent) 10%, var(--hd-card));
    --hd-soft-2: color-mix(in srgb, var(--hd-accent) 16%, var(--hd-alt));
    --help-tab-h: 2.6rem;
}

.help-deck-shell {
    background: var(--hd-card);
    border: 1px solid color-mix(in srgb, var(--hd-accent) 18%, var(--hd-border));
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--hd-accent) 10%, transparent);
    color: var(--hd-text);
}

.help-deck-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1rem 1.15rem 0.9rem;
    background: linear-gradient(165deg, var(--hd-soft), var(--hd-card) 70%);
    border-bottom: 1px solid color-mix(in srgb, var(--hd-accent) 14%, var(--hd-border));
}

.help-deck-top-title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 780;
    color: var(--hd-text);
}

.help-deck-top-lead {
    margin: 0.35rem 0 0;
    max-width: 44rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--hd-muted);
}

.help-deck-status { margin: 0.55rem 1.15rem 0; }

/* Module tabs */
.help-deck-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.15rem;
    overflow-x: auto;
    padding: 0.35rem 0.55rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--hd-accent) 14%, var(--hd-border));
    background: color-mix(in srgb, var(--hd-alt) 55%, var(--hd-card));
    scrollbar-width: thin;
}

.help-deck-tab {
    position: relative;
    flex: 0 0 auto;
    height: var(--help-tab-h);
    padding: 0 0.95rem;
    border: none;
    border-radius: 10px 10px 0 0;
    background: transparent;
    color: var(--hd-muted);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 680;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.help-deck-tab::after {
    content: "";
    position: absolute;
    inset-inline: 0.4rem;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
}

.help-deck-tab:hover {
    color: var(--hd-text);
    background: color-mix(in srgb, var(--hd-accent) 10%, transparent);
}

.help-deck-tab.is-active {
    color: var(--hd-accent);
    background: color-mix(in srgb, var(--hd-accent) 12%, var(--hd-card));
    font-weight: 760;
}

.help-deck-tab.is-active::after {
    background: var(--hd-accent);
}

/* Screens rail + stage */
.help-deck-body {
    display: grid;
    grid-template-columns: minmax(210px, 248px) minmax(0, 1fr);
    min-height: 30rem;
    background: var(--hd-card);
}

@media (max-width: 960px) {
    .help-deck-body { grid-template-columns: 1fr; }
}

.help-deck-aside {
    display: flex;
    flex-direction: column;
    border-inline-end: 1px solid color-mix(in srgb, var(--hd-accent) 12%, var(--hd-border));
    background: color-mix(in srgb, var(--hd-alt) 65%, var(--hd-card));
}

.help-deck-aside-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.8rem 0.9rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 780;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hd-muted);
}

.help-deck-aside-head em {
    font-style: normal;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 780;
    color: #fff;
    background: var(--hd-accent);
}

.help-deck-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    max-height: min(68vh, 620px);
    overflow: auto;
    padding: 0.2rem 0.55rem 0.9rem;
}

.help-deck-thumb {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    text-align: start;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 12px;
    padding: 0.58rem 0.62rem;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.help-deck-thumb-idx {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 780;
    color: var(--hd-accent);
    background: color-mix(in srgb, var(--hd-accent) 16%, var(--hd-card));
}

.help-deck-thumb-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.help-deck-thumb-text strong {
    font-size: 0.86rem;
    font-weight: 740;
    color: var(--hd-text);
    line-height: 1.3;
}

.help-deck-thumb-text em {
    font-style: normal;
    font-size: 0.66rem;
    color: var(--hd-muted);
    direction: ltr;
    text-align: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.92;
}

.help-deck-thumb:hover {
    background: color-mix(in srgb, var(--hd-accent) 10%, var(--hd-card));
    border-color: color-mix(in srgb, var(--hd-accent) 18%, transparent);
}

.help-deck-thumb.is-active {
    background: color-mix(in srgb, var(--hd-accent) 16%, var(--hd-card));
    border-color: color-mix(in srgb, var(--hd-accent) 32%, transparent);
    box-shadow: inset 3px 0 0 var(--hd-accent);
}

html[dir="rtl"] .help-deck-thumb.is-active {
    box-shadow: inset -3px 0 0 var(--hd-accent);
}

.help-deck-thumb.is-active .help-deck-thumb-idx {
    color: #fff;
    background: var(--hd-accent);
}

.help-deck-thumb .help-custom-badge {
    grid-column: 1 / -1;
    justify-self: start;
}

.help-deck-stage {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 28rem;
    display: flex;
    flex-direction: column;
    background: var(--hd-card);
}

.help-deck-stage .help-guide-detail-head,
.help-deck-stage .help-edit-grid {
    padding: 1rem 1.15rem;
}

.help-slide-shell {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 1.05rem 1.2rem 0.5rem;
    display: flex;
}

.help-slide {
    width: 100%;
    animation: helpSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.help-slide--next { animation-name: helpSlideNext; }
.help-slide--prev { animation-name: helpSlidePrev; }

@keyframes helpSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
@keyframes helpSlideNext {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: none; }
}
@keyframes helpSlidePrev {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: none; }
}

html[dir="rtl"] .help-slide--next { animation-name: helpSlidePrev; }
html[dir="rtl"] .help-slide--prev { animation-name: helpSlideNext; }

.help-slide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--hd-accent);
    font-weight: 780;
    margin-bottom: 0.45rem;
}

.help-slide-kicker-sep { opacity: 0.5; }

.help-slide-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 0.95rem;
}

.help-slide-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.28rem, 2.2vw, 1.72rem);
    line-height: 1.3;
    font-weight: 780;
    color: var(--hd-text);
}

.help-slide-summary,
.help-slide-summary.help-html,
.help-deck .help-html {
    color: var(--hd-muted);
}

.help-slide-summary {
    max-width: 46rem;
    font-size: 0.94rem;
    line-height: 1.6;
}

.help-slide-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 780;
    color: var(--hd-text);
    margin-bottom: 0.35rem;
}

.help-slide-section-icon { color: var(--hd-accent); }

.help-slide-flow-lead {
    margin: 0 0 0.9rem;
    font-size: 0.8rem;
    color: var(--hd-muted);
    line-height: 1.55;
    max-width: 42rem;
}

.help-slide-step-badge {
    display: inline-grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    margin-inline-end: 0.4rem;
    border-radius: 9px;
    font-size: 0.9rem;
    color: #fff;
    background: var(--hd-accent);
    vertical-align: middle;
}

.help-slide-body,
.help-slide-body.help-html {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--hd-text);
}

.help-slide-step-media {
    margin-top: 0.85rem;
    border-radius: 14px;
    overflow: hidden;
    background: var(--hd-soft);
    border: 1px dashed color-mix(in srgb, var(--hd-accent) 30%, transparent);
    padding: 0.65rem;
    max-width: 28rem;
}

.help-slide-step-copy--full {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.help-related-grid--deck { margin-top: 0.75rem; }

.help-deck-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid color-mix(in srgb, var(--hd-accent) 12%, var(--hd-border));
    background: color-mix(in srgb, var(--hd-alt) 50%, var(--hd-card));
}

.help-deck-nav-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--hd-accent) 28%, var(--hd-border));
    background: var(--hd-card);
    color: var(--hd-accent);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.help-deck-nav-btn:hover:not(:disabled) {
    background: var(--hd-soft);
}

.help-deck-nav-btn:disabled { opacity: 0.35; cursor: default; }

.help-deck-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    max-width: 14rem;
}

.help-deck-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: color-mix(in srgb, var(--hd-muted) 45%, transparent);
    cursor: pointer;
    transition: width 0.2s, background 0.15s;
}

.help-deck-dot.is-active {
    width: 1.25rem;
    background: var(--hd-accent);
}

.help-deck-progress {
    font-size: 0.76rem;
    color: var(--hd-muted);
    min-width: 3.2rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Process diagram — theme safe */
.help-slide-flow--drama {
    margin-top: 0.55rem;
    padding: 1rem 0.9rem 1.05rem;
    border-radius: 16px;
    background: linear-gradient(165deg, var(--hd-soft), var(--hd-card) 62%);
    border: 1px solid color-mix(in srgb, var(--hd-accent) 18%, var(--hd-border));
    color: var(--hd-text);
}

.help-slide-flow--drama .help-slide-section-label { color: var(--hd-text); }
.help-slide-flow--drama .help-slide-flow-lead { color: var(--hd-muted); }

.hv-diagram {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 12px;
    padding: 0.85rem 0.35rem 0.55rem;
    scrollbar-width: thin;
}
.hv-diagram-bg { display: none; }

.hv-track {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-width: max-content;
    margin-inline: auto;
    padding-inline: 0.35rem;
}

.hv-stage {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    animation: hvStageIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--hv-delay, 0s);
}

@keyframes hvStageIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: none; }
}

.hv-stage-card {
    position: relative;
    width: 8rem;
    min-height: 8.6rem;
    padding: 1.35rem 0.5rem 0.7rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    background: var(--hd-card);
    border: 1px solid color-mix(in srgb, var(--hd-accent) 16%, var(--hd-border));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--hd-accent) 12%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s, border-color 0.2s;
}

.hv-stage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px color-mix(in srgb, var(--hd-accent) 18%, transparent);
}

.hv-stage-num {
    position: absolute;
    top: -0.55rem;
    inset-inline-start: 50%;
    translate: -50% 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 820;
    color: #fff;
    background: var(--hd-accent);
    box-shadow: 0 4px 12px var(--hd-glow);
    z-index: 2;
}

.hv-stage-icon-wrap {
    position: relative;
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
}

.hv-stage-icon {
    position: relative;
    z-index: 1;
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    animation: hvIconBob 2.4s ease-in-out infinite;
}

.hv-stage-icon svg { width: 28px; height: 28px; }

.hv-stage-ripple {
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    border: 2px solid currentColor;
    opacity: 0;
    animation: hvRipple 2.4s ease-out infinite;
}

@keyframes hvIconBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes hvRipple {
    0% { transform: scale(0.9); opacity: 0.45; }
    100% { transform: scale(1.3); opacity: 0; }
}

.hv-stage-label {
    font-size: 0.8rem;
    font-weight: 780;
    color: var(--hd-text);
    line-height: 1.35;
}

.hv-stage-hint {
    font-size: 0.7rem;
    font-weight: 560;
    color: var(--hd-muted);
    line-height: 1.4;
}

.hv-tone-1 .hv-stage-icon { background: linear-gradient(145deg, #38bdf8, #0284c7); }
.hv-tone-1 .hv-stage-num { background: #0284c7; }
.hv-tone-1 .hv-connector { color: #0ea5e9; }
.hv-tone-1 .hv-stage-ripple { color: #38bdf8; }

.hv-tone-2 .hv-stage-icon { background: linear-gradient(145deg, #fb923c, #ea580c); }
.hv-tone-2 .hv-stage-num { background: #ea580c; }
.hv-tone-2 .hv-connector { color: #f97316; }
.hv-tone-2 .hv-stage-ripple { color: #fb923c; }

.hv-tone-3 .hv-stage-icon { background: linear-gradient(145deg, #34d399, #059669); }
.hv-tone-3 .hv-stage-num { background: #059669; }
.hv-tone-3 .hv-connector { color: #10b981; }
.hv-tone-3 .hv-stage-ripple { color: #34d399; }

.hv-tone-4 .hv-stage-icon { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.hv-tone-4 .hv-stage-num { background: #7c3aed; }
.hv-tone-4 .hv-connector { color: #8b5cf6; }
.hv-tone-4 .hv-stage-ripple { color: #a78bfa; }

.hv-tone-5 .hv-stage-icon { background: linear-gradient(145deg, #f472b6, #db2777); }
.hv-tone-5 .hv-stage-num { background: #db2777; }
.hv-tone-5 .hv-connector { color: #ec4899; }
.hv-tone-5 .hv-stage-ripple { color: #f472b6; }

.hv-tone-6 .hv-stage-icon { background: linear-gradient(145deg, #facc15, #ca8a04); color: #1e293b; }
.hv-tone-6 .hv-stage-num { background: #ca8a04; }
.hv-tone-6 .hv-connector { color: #eab308; }
.hv-tone-6 .hv-stage-ripple { color: #facc15; }

.hv-stage.is-active .hv-stage-card {
    border-color: var(--hd-accent);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--hd-accent) 28%, transparent),
        0 14px 28px color-mix(in srgb, var(--hd-accent) 20%, transparent);
    transform: translateY(-5px) scale(1.03);
}

.hv-stage.is-past .hv-stage-card { opacity: 0.82; }
.hv-stage.is-past .hv-stage-num { background: #16a34a; }

.hv-connector {
    position: relative;
    width: 2.6rem;
    height: 1.25rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hv-connector-line {
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 0;
    border-top: 2.5px dotted currentColor;
    opacity: 0.9;
    animation: hvDashMove 1s linear infinite;
}

.hv-connector-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: hvRunnerX 1.6s linear infinite;
    z-index: 1;
}

.hv-connector-arrow {
    position: absolute;
    inset-inline-end: -1px;
    width: 0;
    height: 0;
    border-block: 5px solid transparent;
    border-inline-start: 7px solid currentColor;
}

html[dir="rtl"] .hv-connector-arrow {
    inset-inline-end: auto;
    inset-inline-start: -1px;
    border-inline-start: none;
    border-inline-end: 7px solid currentColor;
}

@keyframes hvDashMove { to { border-spacing: 12px; } }
@keyframes hvRunnerX {
    0% { transform: translateX(-0.7rem); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(0.7rem); opacity: 0; }
}

html[dir="rtl"] .hv-connector-dot {
    animation-name: hvRunnerXRtl;
}
@keyframes hvRunnerXRtl {
    0% { transform: translateX(0.7rem); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(-0.7rem); opacity: 0; }
}

.hv-diagram--compact .hv-stage-card {
    width: 6.2rem;
    min-height: 6.4rem;
    padding: 1.1rem 0.3rem 0.5rem;
}
.hv-diagram--compact .hv-stage-icon-wrap,
.hv-diagram--compact .hv-stage-icon { width: 2.45rem; height: 2.45rem; }
.hv-diagram--compact .hv-stage-icon svg { width: 22px; height: 22px; }
.hv-diagram--compact .hv-stage-label { font-size: 0.7rem; }
.hv-diagram--compact .hv-stage-hint { display: none; }
.hv-diagram--compact .hv-connector { width: 1.7rem; }

.help-step-mini-flow {
    border-radius: 14px;
    padding: 0.7rem 0.45rem 0.55rem;
    background: var(--hd-soft);
    border: 1px solid color-mix(in srgb, var(--hd-accent) 16%, var(--hd-border));
    margin-bottom: 0.4rem;
    overflow-x: auto;
}

/* Formulas — readable Arabic (no monospace) */
.help-formula-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.help-formula-card {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: var(--hd-card);
    border: 1px solid color-mix(in srgb, var(--hd-accent) 16%, var(--hd-border));
    box-shadow: 0 8px 16px color-mix(in srgb, var(--hd-accent) 8%, transparent);
    animation: hvStageIn 0.45s ease both;
    color: var(--hd-text);
}

.help-formula-card-top {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}

.help-formula-badge {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 820;
    font-size: 0.95rem;
    color: #fff;
    background: var(--hd-accent);
    flex-shrink: 0;
}

.help-formula-name {
    font-size: 0.95rem;
    font-weight: 760;
    color: var(--hd-text);
    line-height: 1.35;
}

.help-formula-expr {
    display: block;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--hd-text);
    background: var(--hd-soft);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

.help-formula-tip {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: var(--hd-muted);
    line-height: 1.5;
}

/* legacy grid classname unused but keep safe */
.help-formula-grid { display: contents; }

.help-tips-panel {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.help-tips-group {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    border: 1px solid color-mix(in srgb, var(--hd-accent) 14%, var(--hd-border));
    background: var(--hd-card);
    color: var(--hd-text);
}

.help-tips-group--org { border-inline-start: 4px solid var(--hd-accent); }
.help-tips-group--supplier { border-inline-start: 4px solid #10b981; }
.help-tips-group--both { border-inline-start: 4px solid #f59e0b; }

.help-tips-group h4 {
    margin: 0 0 0.45rem;
    font-size: 0.9rem;
    color: var(--hd-text);
}

.help-tips-group ul {
    margin: 0;
    padding-inline-start: 1.1rem;
    display: grid;
    gap: 0.35rem;
}

.help-tips-group li {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--hd-text);
}

/* Related cards in deck */
.help-deck .help-related-card {
    background: var(--hd-card);
    border: 1px solid color-mix(in srgb, var(--hd-accent) 16%, var(--hd-border));
    color: var(--hd-text);
}

.help-deck .help-related-card strong { color: var(--hd-accent); }
.help-deck .help-related-card span { color: var(--hd-muted); }

/* Dark themes: stronger borders + clearer muted text */
.theme-obsidian .help-deck,
.theme-midnight .help-deck,
.theme-zad .help-deck,
.theme-copper .help-deck,
body.theme-obsidian .help-deck,
body.theme-midnight .help-deck,
body.theme-zad .help-deck,
body.theme-copper .help-deck {
    --hd-muted: color-mix(in srgb, var(--text-muted, #cbd5e1) 88%, #fff);
}

.theme-obsidian .help-deck-shell,
.theme-midnight .help-deck-shell,
.theme-zad .help-deck-shell,
.theme-copper .help-deck-shell,
body.theme-obsidian .help-deck-shell,
body.theme-midnight .help-deck-shell,
body.theme-zad .help-deck-shell,
body.theme-copper .help-deck-shell {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.theme-obsidian .hv-stage-card,
.theme-midnight .hv-stage-card,
.theme-zad .hv-stage-card,
.theme-copper .hv-stage-card,
body.theme-obsidian .hv-stage-card,
body.theme-midnight .hv-stage-card,
body.theme-zad .hv-stage-card,
body.theme-copper .hv-stage-card {
    background: color-mix(in srgb, var(--hd-card) 88%, #000);
    border-color: color-mix(in srgb, var(--hd-accent) 28%, rgba(255, 255, 255, 0.12));
}

.theme-obsidian .help-deck-tab.is-active,
.theme-midnight .help-deck-tab.is-active,
.theme-zad .help-deck-tab.is-active,
.theme-copper .help-deck-tab.is-active,
body.theme-obsidian .help-deck-tab.is-active,
body.theme-midnight .help-deck-tab.is-active,
body.theme-zad .help-deck-tab.is-active,
body.theme-copper .help-deck-tab.is-active {
    background: color-mix(in srgb, var(--hd-accent) 18%, var(--hd-card));
}

@media (prefers-reduced-motion: reduce) {
    .help-slide,
    .hv-stage,
    .hv-stage-icon,
    .hv-stage-ripple,
    .hv-dot-path,
    .hv-runner,
    .hv-chevron {
        animation: none !important;
    }
}
