/* ---------- TERMINAL PAGE ---------- */

.term-layout{
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: calc(100vh - 220px);
    min-height: 400px;
  }

  .term-panel{
    background: #0a0c10;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  }

  .term-panel-head{
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
  }

  .term-panel-title{
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
  }

  .term-session-state{
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    transition: color 0.2s var(--ease);
  }

  .term-session-state.active{ color: var(--ok); }
  .term-session-state.inactive{ color: var(--muted); }

  .term-output{
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.5;
    color: #d4d8de;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .term-screen{
    flex: 1;
    min-height: 0;
    padding: 10px 6px 6px 14px;
    background: #0d0f15;
  }
  .term-screen[hidden], .term-output[hidden], .term-input-row[hidden]{ display: none; }
  .term-screen .xterm{ height: 100%; }

  .term-mode{
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
  }
  .term-mode[hidden]{ display: none; }
  .term-mode.pty{ color: var(--ok); }

  .term-output .term-line-command{
    color: var(--accent);
  }

  .term-output .term-line-command::before{
    content: "$ ";
    color: var(--muted);
  }

  .term-input-row{
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    gap: 8px;
    background: var(--surface);
    transition: box-shadow 0.2s var(--ease);
  }

  .term-input-row:focus-within{
    box-shadow: inset 0 1px 0 var(--accent-dim);
  }

  .term-input-prefix{
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(108,99,255,0.4);
    flex-shrink: 0;
  }

  .term-input{
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 13px;
  }

  .term-input:disabled{
    color: var(--muted);
  }

  .term-empty{
    margin: auto;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
  }

  .term-empty .term-empty-icon{
    font-family: var(--mono);
    font-size: 26px;
    color: var(--border);
    margin-bottom: 8px;
  }

  .term-empty a{
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    text-decoration: none;
  }

  .term-empty a:hover{ text-decoration: underline; }

  .term-warning{
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    background: rgba(108,99,255,0.08);
    border: 1px solid var(--accent-dim);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 8px 12px;
    margin-bottom: 4px;
  }