/* ============================================================
   help.css — Support assistant (no-LLM)
   ============================================================ */

.help-assistant-overlay .help-assistant-modal {
    width: min(92vw, 560px);
    max-height: min(88dvh, 720px);
}

.help-assistant-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.help-assistant-lead {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.help-assistant-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
}

.help-assistant-input:focus {
    outline: 2px solid var(--accent-light);
    outline-offset: 1px;
}

.help-assistant-tree-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.help-assistant-tree-hint code {
    font-size: 10px;
    background: var(--bg-tertiary);
    padding: 1px 5px;
    border-radius: 4px;
}

.help-assistant-chips-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.help-assistant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.help-chip {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.help-chip:hover {
    border-color: var(--accent-light);
    background: var(--accent-light);
    color: var(--bg-primary);
}

.help-assistant-results,
.help-assistant-detail {
    flex: 1;
    overflow-y: auto;
    min-height: 120px;
    max-height: 42vh;
}

.help-results-heading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.help-result-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.help-result-item {
    text-align: left;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: border-color var(--transition);
}

.help-result-item:hover {
    border-color: var(--accent);
}

.help-result-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.help-result-summary {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.help-search-mark {
    background: var(--accent-light);
    color: var(--bg-primary);
    padding: 0 2px;
    border-radius: 2px;
}

.help-assistant-empty {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.help-assistant-empty-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.help-back-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    cursor: pointer;
    padding: 0 0 10px;
    margin-bottom: 4px;
}

.help-article-full h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.help-article-summary {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 12px;
}

.help-article-full p {
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 10px;
}

.help-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.help-feedback-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.help-feedback-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    cursor: pointer;
    font-size: 16px;
}

.help-assistant-foot {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.help-assistant-link {
    color: var(--accent);
    text-decoration: none;
}

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

.help-assistant-foot-sep {
    margin: 0 6px;
    opacity: 0.5;
}

.help-tree-result,
.help-tree-ambiguous {
    font-size: 14px;
    line-height: 1.5;
}

.help-tree-foot,
.help-tree-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.help-tree-error {
    color: var(--text-muted);
    font-size: 13px;
}

.help-tree-ambiguous .help-tree-pick {
    display: block;
    width: 100%;
    text-align: left;
    margin: 6px 0;
}

.help-flow-title {
    margin: 0 0 8px;
    font-size: 15px;
}

.help-flow-question {
    margin: 0 0 12px;
    font-size: 14px;
}

.help-flow-actions {
    display: flex;
    gap: 8px;
}

.help-flow-result p {
    font-size: 14px;
    line-height: 1.5;
}
