/* Terminal view styles — owned by M1. Shared tokens live in ../app.css. */

.term-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.term-meta {
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
  margin-left: auto;
}

.term-notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: rgba(70, 212, 192, .06);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  display: grid;
  gap: 8px;
}
.term-notice[hidden] { display: none; }
.term-notice.error {
  border-left-color: var(--danger);
  background: rgba(239, 106, 102, .07);
  color: #ffc9c6;
}
.term-notice.warn {
  border-left-color: var(--warn);
  background: rgba(240, 182, 75, .07);
  color: #ffe2ab;
}
.term-notice-text { white-space: pre-wrap; }

.term-shell {
  background: #05080b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  height: calc(100vh - 230px);
  min-height: 340px;
  overflow: hidden;
}
.term-shell .xterm { height: 100%; }
.term-shell .xterm-viewport {
  /* The viewport scrolls, the shell does not. */
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
/* xterm's DOM renderer injects this rule through a <style> element, which the
   panel CSP blocks. The identical selector lives here instead. */
.term-shell .xterm-rows span {
  display: inline-block;
  height: 100%;
  vertical-align: top;
}
/* Same for the theme rule xterm injects (selection / inverted cells). */
.term-shell .xterm-selection div {
  background-color: rgba(70, 212, 192, .28);
}

.term-trust { display: grid; gap: 8px; }
.term-trust-title { font-weight: 650; }
.term-trust-label { color: var(--muted); font-size: 12px; }
.term-fingerprint {
  display: block;
  padding: 8px 10px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 12px;
  word-break: break-all;
  color: var(--text);
}
.term-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.term-check input { accent-color: var(--accent); }
.term-trust-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .term-shell { height: calc(100vh - 270px); min-height: 260px; }
  .term-meta { margin-left: 0; width: 100%; }
}
