/* help.css — the context-aware "?" how-to button + its modal panel (REQ-SAGE-019). */

.app-help {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
    font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; margin-right: 8px;
    display: inline-flex; align-items: center; justify-content: center;
}
.app-help:hover { color: var(--text); border-color: var(--accent, #4aa3ff); }

.sage-help-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 8vh 16px 16px;
}
.sage-help-overlay[hidden] { display: none; }

.sage-help-panel {
    position: relative; width: 100%; max-width: 560px; max-height: 80vh; overflow-y: auto;
    background: var(--bg, #11151c); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); padding: 22px 24px 24px;
}
.sage-help-close {
    position: absolute; top: 12px; right: 12px; width: 26px; height: 26px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
    border-radius: 6px; cursor: pointer; font-size: 13px; line-height: 1;
}
.sage-help-close:hover { color: var(--text); }
.sage-help-title { margin: 0 30px 12px 0; font-size: 16px; color: var(--text); }
.sage-help-body { font-size: 13px; color: var(--text); line-height: 1.6; }
.sage-help-body p { margin: 0 0 10px; }
.sage-help-body ul { margin: 0 0 10px; padding-left: 20px; }
.sage-help-body li { margin: 4px 0; }
.sage-help-body code { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.sage-help-body strong { color: var(--text); }
.sage-help-body em { color: var(--text-dim); font-style: normal; }
