*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface-elevated: #232733;
  --border: #2e3344;
  --text: #e8eaef;
  --text-muted: #9aa3b5;
  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --green: #22c55e;
  --green-hover: #16a34a;
  --error: #f87171;
  --success: #4ade80;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
  --radius: 12px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(ellipse at top, #1a2035 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.5;
}

.dashboard {
  width: min(560px, calc(100% - 2rem));
  margin: 2.5rem auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dashboard__header {
  text-align: center;
}

.dashboard__header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dashboard__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.card__title {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.config-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.config-list__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface-elevated);
  border-radius: 8px;
}

.config-list dt {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.config-list dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  word-break: break-all;
  text-align: right;
}

.actions-card__hint {
  margin: -0.35rem 0 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--blue {
  background: var(--blue);
  color: #fff;
}

.btn--blue:hover:not(:disabled) {
  background: var(--blue-hover);
}

.btn--green {
  background: var(--green);
  color: #0f1117;
}

.btn--green:hover:not(:disabled) {
  background: var(--green-hover);
}

.btn--ghost {
  width: auto;
  padding: 0.35rem 0.65rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.log-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.log-card__header .card__title {
  margin-bottom: 0;
}

.log-output {
  margin: 0;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  padding: 1rem;
  background: #0a0c10;
  border: 1px solid #1e222d;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: #a8b0c4;
}

.log-output .log-entry {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1e222d;
}

.log-output .log-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.log-output .log-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.log-output .log-label--ok {
  color: var(--success);
}

.log-output .log-label--err {
  color: var(--error);
}
