:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #d1d5db;
  --accent: #0f766e;
}

.hidden {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, #eef3f2, #f9fafb);
}

header {
  padding: 20px;
  background: #0b3d3a;
  color: #fff;
}

header h1 {
  margin: 0;
}

header p {
  margin: 8px 0 0;
  color: #d1fae5;
}

#session-controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

main {
  padding: 16px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

input,
select,
textarea,
button {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

textarea {
  min-height: 88px;
}

button {
  background: var(--accent);
  border-color: #0b5b54;
  color: #fff;
  cursor: pointer;
  margin-top: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 8px 4px;
  font-size: 13px;
  text-align: left;
}

code {
  font-size: 12px;
}

.status-online {
  color: #047857;
  font-weight: 600;
}

.danger {
  background: #b91c1c;
  border-color: #7f1d1d;
}

.status-offline {
  color: #b91c1c;
  font-weight: 600;
}

pre {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  max-height: 260px;
  overflow: auto;
  font-size: 12px;
}
