/* Terminal */

/* Terminal */
.view-terminal { display: flex; flex-direction: column; }
.term-page { display: flex; flex-direction: column; gap: 12px; height: calc(100dvh / var(--zoom, 1) - 64px - 56px); min-height: 360px; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.term-bar .icon-btn { width: auto; padding: 0 8px; font: 600 13px var(--mono); }
.term-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 550; color: var(--text-2); min-width: 0; }
.term-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-status i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.term-status.is-on i { background: #22c55e; }
.term-status.is-wait i { background: var(--warning); animation: term-blink 1s infinite alternate; }
.term-status.is-off i { background: var(--danger); }
.term-wrap { flex: 1; min-height: 0; padding: 10px; background: #14151f; border-color: #232536; overflow: hidden; }
.term-slot, .term-host { width: 100%; height: 100%; }
.term-host .xterm { height: 100%; }
.term-host .xterm-viewport { scrollbar-width: thin; }
.term-keys { display: none; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.term-keys button { flex: none; min-width: 42px; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font: 600 14px var(--mono); }
.term-keys button.on { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.term-help { margin: 0; }
.term-help code { padding: 1px 5px; border-radius: 5px; background: var(--surface-3); font-family: var(--mono); font-size: 12px; }
@keyframes term-blink { to { opacity: .35; } }
@media (max-width: 860px) {
  .term-page { height: calc(100dvh - 56px - 32px); gap: 8px; }
  .term-keys { display: flex; }
  .term-help { display: none; }
  .term-bar .btn span { display: none; }
  .term-wrap { padding: 6px; }
}
