:root {
  color-scheme: light;
  --bg: #f5f6f7;
  --paper: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: #d9dee5;
  --accent: #28666e;
  --accent-strong: #1f4f55;
  --danger: #9f2d2d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

a {
  color: var(--accent);
}

.topbar {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.topbar nav {
  align-items: center;
  display: flex;
  gap: 16px;
}

.topbar form {
  margin: 0;
}

.layout {
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px 20px 64px;
}

.heading-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

h1 {
  font-size: 28px;
  margin: 0 0 24px;
}

h2 {
  border-top: 1px solid var(--line);
  font-size: 20px;
  margin: 32px 0 16px;
  padding-top: 24px;
}

button,
.button {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  padding: 9px 13px;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: var(--accent-strong);
}

.link-button {
  background: transparent;
  color: var(--danger);
  padding-left: 0;
}

.link-button:hover {
  background: transparent;
  text-decoration: underline;
}

table {
  background: var(--paper);
  border-collapse: collapse;
  border: 1px solid var(--line);
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef2f4;
  color: #344054;
  font-weight: 700;
}

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

.metric {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 18px;
  text-decoration: none;
}

.metric span {
  display: block;
  font-size: 32px;
  font-weight: 700;
}

.metric small {
  color: var(--muted);
}

.stack,
.row-form,
.zone-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px;
}

.stack {
  display: grid;
  gap: 14px;
}

.row-form {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 72px 1fr auto;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  padding: 9px 10px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.checkbox {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.checkbox input {
  width: auto;
}

.text-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
  padding: 18px;
  white-space: pre-wrap;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  max-width: 380px;
  padding: 24px;
  width: calc(100vw - 32px);
}

.error {
  color: var(--danger);
  margin: 0;
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
  }

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

