.help-term {
  font-family: var(--mono);
  font-size: 0.84rem;
  background: #1a222c;
  color: #e8eef4;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.help-scroll {
  flex: 1;
  overflow: auto;
  padding: 0.75rem 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.help-scroll .out { color: #b8c4d0; }
.help-scroll .err { color: #f5a8a8; }
.help-scroll .muted { color: #7a8a9a; }
.help-scroll .hl {
  background: #5b4b1e;
  color: #ffe9a8;
}

.help-prompt-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-top: 1px solid #2a3542;
  background: #141b23;
}

.help-prompt { color: #7dcea0; flex-shrink: 0; }
.help-prompt.pager { color: #f0c674; }

.help-line {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #e8eef4;
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.pager-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-top: 1px solid #2a3542;
  background: #10161d;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #9aabbc;
}

.pager-bar button {
  font-family: inherit;
  font-size: inherit;
  padding: 0.2rem 0.45rem;
  border: 1px solid #3a4654;
  border-radius: 4px;
  background: #1e2833;
  color: #e8eef4;
  cursor: pointer;
}

.pager-bar button:hover { border-color: #7dcea0; color: #7dcea0; }

.cmd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cmd-chips button {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.cmd-chips button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cheat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cheat-table th,
.cheat-table td {
  text-align: left;
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.hint-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hint-list li { margin: 0.35rem 0; }

.status-line {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}
