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

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

.sh-term-scroll .out { color: #b8c4d0; }
.sh-term-scroll .err { color: #f5a8a8; }
.sh-term-scroll .muted { color: #7a8a9a; }

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

.sh-prompt {
  color: #7dcea0;
  flex-shrink: 0;
}

.sh-isearch-label {
  color: #f0c674;
  flex-shrink: 0;
  font-size: 0.8rem;
}

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

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

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

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

.shortcut-table kbd,
.kbd-chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface2);
  white-space: nowrap;
}

.hist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  max-height: 16rem;
  overflow: auto;
}

.hist-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.5rem;
  padding: 0.28rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.hist-list .n {
  color: var(--muted);
  text-align: right;
}

.hist-list li.is-match {
  background: rgba(125, 206, 160, 0.12);
}

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

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

.hint-list code {
  font-size: 0.85em;
}
