.context-help-source { display: none !important; }
.context-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0 0 0 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  vertical-align: middle;
}
.context-help-button > span {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font: 600 10px/1 Inter, sans-serif;
}
.context-help-button:hover { color: var(--text); background: var(--amber-soft); }
.context-help-button:focus-visible, .nora-help-panel button:focus-visible, .nora-help-panel input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.context-help-heading { display: inline !important; }
.head-title { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.sidebar-scroll .nav-group-title.context-help-heading { line-height: 28px; }
.nora-help-panel {
  box-sizing: border-box;
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(430px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--text);
  background: var(--navy-2);
  box-shadow: -16px 0 64px rgb(0 0 0 / 25%);
  font-family: Inter, sans-serif;
}
.nora-help-panel[open] { display: flex; flex-direction: column; }
.nora-help-panel::backdrop { background: rgb(0 0 0 / 35%); }
.nora-help-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px; border-bottom: 1px solid var(--line); }
.nora-help-eyebrow { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nora-help-header h2 { margin: 8px 0 0; font-size: 19px; line-height: 1.3; letter-spacing: -.03em; overflow-wrap: anywhere; }
.nora-help-close { flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 8px; font-size: 24px; cursor: pointer; }
.nora-help-close:hover { background: var(--card); }
.nora-help-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; }
.nora-help-guide { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.nora-help-guide p, .nora-help-message p { margin: 10px 0 0; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.nora-help-links:not([hidden]) { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.nora-help-links a { color: var(--amber); font-size: 12px; text-underline-offset: 3px; }
.nora-help-message { padding: 18px 0; border-bottom: 1px solid var(--line); }
.nora-help-message--user { color: var(--muted); }
.nora-help-message--assistant > .nora-help-eyebrow { color: var(--amber); }
#noraHelpStatus { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
#noraHelpStatus:empty { display: none; }
#noraHelpError { font-size: 12px; line-height: 1.6; margin-top: 16px; }
#noraHelpError[hidden] { display: none; }
.nora-help-form { padding: 20px 24px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.nora-help-form label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.nora-help-form > div { display: flex; gap: 8px; }
.nora-help-form input { box-sizing: border-box; flex: 1; min-width: 0; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--navy-3); color: var(--text); font: inherit; font-size: 14px; }
.nora-help-form button:disabled { opacity: .5; cursor: wait; }
#aiFooterBar, #aiFooterBar:hover { flex-wrap: wrap; background: var(--navy-2); color: var(--text); }
@media (pointer: coarse) {
  .context-help-button { width: 36px; height: 36px; flex-basis: 36px; }
  .nora-help-close { width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  .nora-help-header, .nora-help-scroll { padding: 20px; }
  .nora-help-form { padding-inline: 20px; }
  .nora-help-form input { font-size: 16px; }
}
