.ant-remote-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 72px;
  z-index: 45;
  background: #050506;
  overflow: auto;
  padding: 20px 20px 48px;
  color: #e2e8f0;
  font-family: var(--staff-font, "DM Sans", system-ui, sans-serif);
}
@media (max-width: 820px) {
  .ant-remote-panel {
    left: 0;
    padding-top: 72px;
  }
}
.ant-remote-panel-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.ant-remote-panel h1 { font-size: 1.45rem; margin: 0 0 8px; }
.ant-remote-panel .lead { color: #94a3b8; font-size: 14px; margin: 0 0 16px; line-height: 1.45; }

.ant-remote-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}
@media (min-width: 960px) {
  .ant-remote-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  }
  .ant-remote-console-col {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
  }
}

.ant-remote-card {
  background: #0f0f12;
  border: 1px solid #2a2a33;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 0;
}
.ant-remote-main-col .ant-remote-card + .ant-remote-card {
  margin-top: 12px;
}

.ant-remote-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .ant-remote-grid { grid-template-columns: 1fr 1fr; }
}
.ant-remote-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .ant-remote-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.ant-remote-card label,
.ant-remote-section-title {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.ant-remote-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 14px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #2a2a33;
}
.ant-remote-section-title:first-child { margin-top: 0; }

.ant-remote-card select,
.ant-remote-card input[type="password"],
.ant-remote-card input[type="text"],
.ant-remote-card input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  background: #050506;
  border: 1px solid #2a2a33;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.ant-remote-card input[readonly] { opacity: 0.85; }

.ant-remote-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ant-remote-actions-list { display: flex; flex-direction: column; gap: 6px; }
.ant-remote-actions-list button {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

.ant-remote-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ant-remote-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ant-remote-btn-main { background: #7c3aed; color: #fff; }
.ant-remote-btn-ghost { background: #1e1e24; color: #e2e8f0; border: 1px solid #333; }
.ant-remote-btn-warn { background: #b45309; color: #fff; }
.ant-remote-btn-danger { background: #991b1b; color: #fff; }
.ant-remote-btn-sm { padding: 7px 10px; font-size: 12px; }

.ant-remote-console-col .ant-remote-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.ant-remote-console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ant-remote-console-head label { margin: 0; font-size: 13px; color: #cbd5e1; }

.ant-remote-out {
  flex: 1;
  background: #050506;
  border: 1px solid #2a2a33;
  border-radius: 10px;
  padding: 12px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  min-height: 240px;
  max-height: min(70vh, 640px);
}
.ant-remote-out-focus {
  border-color: #7c3aed;
  background: #0a0812;
  font-size: 13px;
  line-height: 1.55;
  color: #f1f5f9;
}

.ant-remote-err { color: #f87171; font-size: 13px; margin-top: 8px; }
.ant-remote-meta { font-size: 12px; color: #64748b; margin-top: 8px; line-height: 1.5; }
.ant-remote-meta a { color: #7dd3fc; }
.ant-remote-hint { color: #94a3b8; font-size: 11px; margin-top: 6px; line-height: 1.4; }
.ant-remote-reach { font-size: 12px; margin-top: 6px; }
.ant-remote-reach-ok { color: #86efac; }
.ant-remote-reach-bad { color: #fbbf24; }

.ant-remote-status {
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 4px;
  padding: 8px 10px;
  border-radius: 8px;
}
.ant-remote-status-off { background: #1e1e24; color: #94a3b8; border: 1px solid #333; }
.ant-remote-status-ok { background: rgba(34, 197, 94, 0.2); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.45); }
.ant-remote-status-busy {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
  animation: ant-remote-pulse 1.2s ease-in-out infinite;
}
@keyframes ant-remote-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.ant-remote-pass-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.ant-remote-pass-row input { flex: 1; min-width: 0; }
.ant-remote-pass-row button { flex-shrink: 0; align-self: stretch; }

.ant-remote-conn-feedback {
  font-size: 13px;
  line-height: 1.45;
  color: #fca5a5;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.ant-remote-status-ok + .ant-remote-conn-feedback,
.ant-remote-status-ok ~ .ant-remote-conn-feedback.ant-remote-conn-feedback-ok {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
}

.ant-remote-connect-row { margin-top: 10px; }
.ant-remote-link { color: #7dd3fc; text-decoration: none; }
.ant-remote-link:hover { text-decoration: underline; }

.ant-remote-scroll-actions {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
