/* Help: setup guides (/guides and the Help tab), the request form, and support conversations (also in Admin → Support) */

/* ---- guides ---- */
.guide-area-title { margin: 18px 0 6px; }
.guide-area h2 { margin-top: 28px; }
details.guide { border: 1px solid var(--line, #2f2f35); border-radius: 10px; margin: 8px 0; background: var(--bg, #0e0e10); }
details.guide > summary { position: relative; cursor: pointer; padding: 10px 14px 10px 30px; list-style: none; display: flex; flex-direction: column; gap: 2px; }
details.guide > summary::-webkit-details-marker { display: none; }
details.guide > summary::before { content: '▸'; position: absolute; left: 13px; top: 10px; color: var(--muted, #a0a0ab); }
details.guide[open] > summary::before { content: '▾'; }
.guide-title { font-weight: 700; color: var(--text, #efeff1); }
.guide-sub { font-size: 13px; color: var(--muted, #a0a0ab); }
details.guide > summary:hover .guide-title { color: #fff; }
.guide-body { padding: 0 16px 12px 30px; }
.guide-summary { display: none; }
.guide-steps { margin: 4px 0 8px; padding-left: 20px; }
.guide-steps li { margin: 6px 0; line-height: 1.55; }
.guide-tips { margin: 6px 0 0; padding-left: 18px; color: var(--muted, #a0a0ab); font-size: 13px; }
.guide-tips li { margin: 3px 0; }
.guide-body a { color: #5ec3e6; }
.guide-more { margin-top: 28px; }

/* ---- the request form (Help tab) ---- */
.help-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.help-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line, #2f2f35); border-radius: 10px; background: var(--bg, #0e0e10); }
.help-kind span { font-size: 12px; color: var(--muted, #a0a0ab); font-weight: 400; }
.help-kind[aria-checked="true"] { border-color: var(--accent, #006c90); background: rgba(0, 108, 144, 0.18); }
.help-kind:focus-visible { outline: 2px solid var(--accent, #006c90); outline-offset: 2px; }
#helpContact .field { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 10px; }
#helpContact .field label { font-weight: 600; font-size: 13px; }
#helpContact textarea, .help-thread textarea, .sup-reply textarea { resize: vertical; min-height: 70px; }
.help-suggest { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--accent, #006c90); background: var(--panel2, #1f1f23); border-radius: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.help-suggest[hidden] { display: none; }
.help-suggest .hint { margin: 0; flex-basis: 100%; }
.help-suggest a { color: #5ec3e6; }
.help-tech { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.help-tech-show { margin: 4px 0 8px 22px; font-size: 12px; color: var(--muted, #a0a0ab); }
.help-tech-show summary { cursor: pointer; }
.help-tech-show pre, .sup-context pre { white-space: pre-wrap; word-break: break-word; font: 12px/1.45 ui-monospace, Consolas, monospace; background: var(--bg, #0e0e10); border: 1px solid var(--line, #2f2f35); border-radius: 6px; padding: 8px 10px; margin: 6px 0 0; max-height: 260px; overflow: auto; }
.help-count { margin: 0; }

/* ---- requests and conversations ---- */
.help-list { list-style: none; margin: 0; padding: 0; }
.help-item { border: 1px solid var(--line, #2f2f35); border-radius: 10px; margin: 0 0 8px; background: var(--bg, #0e0e10); }
.help-item.unread { border-color: var(--accent, #006c90); }
.help-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; background: none; border: 0; text-align: left; flex-wrap: wrap; }
.help-head:hover .help-title { color: #fff; }
.help-title { flex: 1 1 200px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.help-when { margin: 0; }
.help-kind-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #a0a0ab); }
.help-status { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #2f2f35; color: #d6d6dc; white-space: nowrap; }
.help-status.wait { background: #3d3412; color: #f1d36b; }
.help-status.ok { background: #0f3a4a; color: #86d3ef; }
.help-status.you { background: #4a2a10; color: #ffb27a; }
.help-status.planned { background: #2c2350; color: #c9b8ff; }
.help-status.fixed { background: #183d2a; color: #8de0b0; }
.help-dot { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--accent, #006c90); color: #fff; }
.help-thread { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.help-msg { padding: 8px 12px; border-radius: 8px; background: var(--panel2, #1f1f23); max-width: 92%; }
.help-msg.admin { align-self: flex-end; background: rgba(0, 108, 144, 0.22); border: 1px solid rgba(0, 108, 144, 0.45); }
.help-msg.internal { background: #33290f; border: 1px dashed #8a6d1e; }
.help-msg-head { font-size: 12px; color: var(--muted, #a0a0ab); margin-bottom: 3px; }
.help-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
