.site-console {
  min-height: 100vh;
}

.console-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 132px 0 48px;
}

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

.console-head h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.console-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(241, 186, 99, 0.12);
}

.console-status.is-online .console-status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(98, 217, 137, 0.13);
}

.console-status.is-offline .console-status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 113, 113, 0.12);
}

.console-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(16, 24, 30, 0.68);
  padding: 16px;
  box-shadow: var(--shadow);
}

.console-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.console-toolbar .forum-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 900;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.console-toolbar .forum-action-btn:hover {
  border-color: rgba(98, 217, 137, 0.24);
  background: rgba(98, 217, 137, 0.10);
  color: var(--text-strong);
}

.console-output {
  overflow: auto;
  min-height: 460px;
  max-height: 62vh;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.32);
  padding: 14px;
  color: rgba(235, 244, 255, 0.9);
  font-family: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  user-select: text;
  -webkit-user-select: text;
}

.console-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.console-line + .console-line {
  margin-top: 4px;
}

.console-line.is-error {
  color: #ffb4b4;
}

.console-line.is-success {
  color: #b7ffd0;
}

.console-line.is-command {
  color: #8bdcff;
}

.console-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 10px;
}

.console-form input {
  min-height: 48px;
  padding: 0 14px;
}

.console-form .auth-main-btn {
  min-height: 48px;
}

@media (max-width: 720px) {
  .console-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 118px;
  }

  .console-head,
  .console-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .console-form {
    grid-template-columns: 1fr;
  }
}
