.ssh-server-list {
  margin: 18px clamp(24px, 7vw, 105px) 42px;
  border: 1px solid var(--line);
  background: #fff;
}

.ssh-list-head,
.ssh-list-row {
  display: grid;
  grid-template-columns: 110px minmax(260px, 2fr) minmax(150px, 1fr) 70px 170px;
  align-items: center;
  column-gap: 18px;
}

.ssh-list-head {
  min-height: 38px;
  padding: 0 20px;
  background: #edf1f2;
  color: #667278;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ssh-list-row {
  min-height: 62px;
  padding: 8px 20px;
  border-top: 1px solid var(--line);
}

.ssh-list-row strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.ssh-list-row code,
.ssh-port {
  color: #536168;
  font-size: 13px;
}

.ssh-list-action {
  display: inline-flex;
  justify-content: space-between;
  gap: 12px;
  color: #078db9;
  font-weight: 700;
  text-decoration: none;
}

.ssh-list-action:hover { color: #005f7e; }
.ssh-list-empty { display: grid; gap: 5px; padding: 22px; }
.ssh-list-empty span { color: #667278; }

body.ssh-modal-open { overflow: hidden; }
.ssh-modal-terminal { overflow: hidden; background: #182025; }
.ssh-modal-terminal > .topbar, .ssh-modal-terminal > footer { display: none; }
.ssh-modal-terminal .terminal-shell { height: 100vh; padding: 0; }
.ssh-modal-terminal .terminal-shell iframe { height: calc(100vh - 34px); min-height: 0; }
.ssh-modal-terminal .terminal-note { height: 34px; padding: 6px 10px; }
.ssh-modal[hidden] { display: none; }
.ssh-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 32px; }
.ssh-modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(11, 20, 24, .68); cursor: default; }
.ssh-modal-dialog { position: relative; display: flex; flex-direction: column; width: min(1080px, 78vw); height: min(700px, 76vh); min-height: 480px; overflow: hidden; border: 1px solid #536168; background: #10171b; box-shadow: 0 22px 70px rgba(0, 0, 0, .42); }
.ssh-modal-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; padding: 8px 16px; background: #263239; color: #fff; }
.ssh-modal-head div { display: grid; gap: 2px; min-width: 0; }
.ssh-modal-head span { color: #5cd4f7; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ssh-modal-head strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ssh-modal-head button { border: 0; border-bottom: 2px solid #18aed7; padding: 5px 0; background: transparent; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.ssh-modal-dialog > iframe { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #10171b; }

@media (max-width: 800px) {
  .ssh-list-head { display: none; }
  .ssh-server-list { margin-inline: 18px; }
  .ssh-list-row {
    grid-template-columns: 1fr auto;
    gap: 5px 16px;
    padding: 13px 16px;
  }
  .ssh-list-row .server-state { grid-column: 1; grid-row: 1; }
  .ssh-list-row strong { grid-column: 1 / -1; grid-row: 2; }
  .ssh-list-row code { grid-column: 1; grid-row: 3; }
  .ssh-list-row .ssh-port { grid-column: 1; grid-row: 4; }
  .ssh-list-row .ssh-port::before { content: "Port "; }
  .ssh-list-action { grid-column: 2; grid-row: 1 / 5; align-self: center; }
  .ssh-modal { padding: 14px; }
  .ssh-modal-dialog { width: calc(100vw - 28px); height: min(680px, calc(100vh - 28px)); min-height: 400px; }
}
