/* Help view, Manager drawer and Dash "?" panel (shared by Manager and Dash; uses their zinc / emerald colours, with fallbacks). */
.help { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.help-label { font-size: 0.85rem; font-weight: 700; color: var(--zinc-300, #d4d4d8); }
.help-q { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0.6rem 0.8rem; border-radius: 0.7rem; border: 1px solid var(--zinc-700, #3f3f46); background: var(--zinc-950, #09090b); color: #fff; font: inherit; font-size: 1.05rem; color-scheme: dark; }
.help-q:focus { outline: 2px solid var(--emerald-400, #34d399); outline-offset: 1px; }
.help-status { margin: 0; min-height: 1.2em; font-size: 0.9rem; color: var(--zinc-400, #a1a1aa); }
.help-status[data-testid='help-none'] { color: var(--amber, #fbbf24); font-weight: 600; }
.help-body { min-width: 0; }
.help-h { font-size: 1rem; margin: 0.4rem 0; color: var(--zinc-300, #d4d4d8); }
.help-area h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--zinc-400, #a1a1aa); margin: 0.9rem 0 0.3rem; }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.help-az .help-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.help-item { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; width: 100%; min-height: 44px; padding: 0.55rem 0.8rem; border-radius: 0.7rem; border: 1px solid var(--zinc-800, #27272a); background: var(--zinc-900, #18181b); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.help-item:hover, .help-item[aria-selected='true'] { border-color: var(--emerald-600, #059669); background: var(--zinc-800, #27272a); }
.help-item:focus-visible, .help-chip:focus-visible, .help-btn:focus-visible { outline: 3px solid var(--emerald-300, #6ee7b7); outline-offset: 2px; }
.help-item-title { font-weight: 700; }
.help-item-sub { font-size: 0.85rem; color: var(--zinc-400, #a1a1aa); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.help-topic { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.help-topic h2 { margin: 0.2rem 0 0; font-size: 1.35rem; outline: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.help-tag { font-size: 0.72rem; font-weight: 600; color: var(--amber, #fbbf24); border: 1px solid var(--amber, #fbbf24); border-radius: 999px; padding: 0.1rem 0.55rem; }
.help-note { margin: 0; font-size: 0.85rem; color: var(--zinc-400, #a1a1aa); }
.help-summary { margin: 0; font-size: 1.05rem; line-height: 1.55; max-width: 70ch; }
.help-toggle { min-height: 44px; }
.help-rules { width: 100%; max-width: 70ch; }
.help-rules h3 { font-size: 0.95rem; margin: 0.8rem 0 0.2rem; color: var(--emerald-300, #6ee7b7); }
.help-rules ul { margin: 0; padding-left: 1.2rem; line-height: 1.5; }
.help-rules li { margin: 0.2rem 0; }
.help-related h3 { font-size: 0.85rem; margin: 0.3rem 0; color: var(--zinc-400, #a1a1aa); }
.help-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.help-chip { min-height: 44px; padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--zinc-700, #3f3f46); background: var(--zinc-900, #18181b); color: var(--emerald-300, #6ee7b7); font: inherit; font-weight: 600; cursor: pointer; }
.help-src { font-size: 0.8rem; color: var(--zinc-500, #71717a); }
.help-src summary { cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; }
.help-src p { margin: 0.2rem 0 0; }
.help-fail { padding: 0.8rem 1rem; border-radius: 0.8rem; border: 1px solid var(--amber, #fbbf24); background: var(--amber-bg, rgba(251, 191, 36, 0.12)); }
.help-fail p { margin: 0 0 0.6rem; color: var(--amber, #fbbf24); font-weight: 600; }

/* "?" button in the top bars */
.help-btn { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--zinc-700, #3f3f46); background: transparent; color: var(--zinc-200, #e4e4e7); font: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.help-btn:hover, .help-btn[aria-expanded='true'] { background: var(--zinc-800, #27272a); border-color: var(--emerald-600, #059669); }

/* Drawer (Manager) and panel (Dash): a sibling of #app, so the app's redraws never touch it */
.help-overlay { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; background: rgba(0, 0, 0, 0.45); }
.help-overlay[hidden] { display: none; }
.help-sheet { box-sizing: border-box; width: min(520px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--zinc-950, #09090b); border-left: 1px solid var(--zinc-800, #27272a);
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) 16px; color: #fff; }
.help-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.help-sheet-head h2 { margin: 0; font-size: 1.2rem; }
.help-close { width: 44px; height: 44px; border-radius: 0.6rem; border: 1px solid var(--zinc-700, #3f3f46); background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; }
@media (max-width: 699px), (orientation: landscape) and (max-height: 500px) {
  .help-sheet { width: 100%; border-left: 0; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
}
@supports (height: 100dvh) { .help-sheet { height: 100dvh; } }

/* Manager Help page */
.help-page { max-width: 900px; }
