/* ---- Help System ---- */
.help-toggle {
    background: none; border: 1px solid var(--border); border-radius: 50%;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--text-muted);
    transition: all .12s; margin-left: .5rem;
}
.help-toggle:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.help-toggle.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.help-panel {
    position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw; height: 100vh;
    background: var(--surface); border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg); z-index: 600; transition: right .25s ease;
    display: flex; flex-direction: column;
}
.help-panel.open { right: 0; }

.help-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: .9rem 1.25rem; border-bottom: 1px solid var(--border);
}
.help-panel-header h2 { margin: 0; font-size: 1rem; }
.help-panel-body {
    flex: 1; overflow-y: auto; padding: 1.25rem;
}
.help-panel-body h3 {
    font-size: .95rem; margin: 1rem 0 .5rem; color: var(--primary);
}
.help-panel-body h3:first-child { margin-top: 0; }
.help-panel-body p, .help-panel-body li {
    font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: .5rem;
}
.help-panel-body ul { padding-left: 1.2rem; margin-bottom: .5rem; }
.help-panel-body li { margin-bottom: .25rem; }
.help-section-links { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1rem; }
.help-section-links a, .help-section-links button {
    font-size: .75rem; padding: .2rem .5rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text); cursor: pointer; text-decoration: none;
}
.help-section-links a:hover, .help-section-links button:hover { background: var(--primary-light); color: var(--primary); }
.help-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 599;
    display: none;
}
.help-overlay.open { display: block; }

@media (max-width: 480px) {
    .help-panel { width: 100vw; max-width: 100vw; right: -100vw; }
}
