:root {
  --bg: #0b0d11;
  --panel: #171a20;
  --panel-2: #20242b;
  --ink: #eef2f5;
  --muted: #9aa2af;
  --line: #2a2f38;
  --teal: #119c9b;
  --teal-2: #24c8c2;
  --red: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

button {
  border: 0;
  border-radius: 999px;
  background: rgba(17, 156, 155, 0.18);
  color: #dffefa;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
}

button.danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.console-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.console-header p,
.console-header h1 {
  margin: 0;
}

.console-header p {
  color: var(--muted);
  margin-bottom: 6px;
}

.console-header h1 {
  font-size: 34px;
}

.header-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.input-row input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0f1116;
  color: var(--ink);
  font: inherit;
  padding: 10px 14px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.status-strip div,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.status-strip div {
  padding: 14px;
}

.status-strip span,
.panel-title span {
  display: block;
  color: var(--muted);
}

.status-strip strong {
  display: block;
  font-size: 24px;
  margin-top: 8px;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  padding: 16px;
  min-height: 300px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-title strong {
  font-size: 22px;
}

pre {
  margin: 14px 0 0;
  min-height: 150px;
  overflow: auto;
  border-radius: 8px;
  background: #0f1116;
  color: #d8dee9;
  padding: 12px;
  line-height: 1.45;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.list article {
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
}

.list article.warning {
  border-left-color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}

.list strong,
.list span,
.list small {
  display: block;
}

.list span {
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.list small {
  color: var(--teal-2);
  margin-top: 8px;
}

@media (max-width: 820px) {
  .console-header {
    display: grid;
  }

  .status-strip,
  .control-grid,
  .input-row {
    grid-template-columns: 1fr;
  }
}
