:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #f6f7f9;
  color: #1e252e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

.topbar,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  font-weight: 720;
}

h2 {
  font-size: 17px;
}

p,
label,
th,
td,
#statusText {
  color: #66717f;
}

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

.token-form {
  grid-template-columns: minmax(190px, 260px) auto;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0 16px;
}

.metrics div,
.panel {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 31, 45, 0.04);
}

.metrics div {
  padding: 16px;
}

.metrics span {
  display: block;
  font-size: 26px;
  font-weight: 740;
}

.metrics label {
  display: block;
  margin-top: 2px;
}

.panel {
  padding: 18px;
  margin-top: 16px;
}

form.panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

input,
select,
textarea,
button {
  min-height: 38px;
  border-radius: 6px;
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd4df;
  background: #fff;
  color: #1e252e;
  padding: 8px 10px;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

button {
  border: 0;
  background: #1467c9;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
}

button:hover {
  background: #0f57ad;
}

.check {
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.check input {
  min-height: 18px;
}

.table-wrap {
  overflow: auto;
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid #edf0f3;
  padding: 10px 8px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

th {
  color: #4d5967;
  font-weight: 680;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #e8f4ec;
  color: #1d6f42;
  font-size: 12px;
  font-weight: 650;
}

.badge.off,
.badge.failed {
  background: #fff0ee;
  color: #ad3326;
}

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

.message {
  border: 1px solid #edf0f3;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.message header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.message strong {
  display: block;
  color: #1e252e;
}

.message small {
  color: #66717f;
}

.message pre {
  margin: 10px 0 0;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font: 13px/1.5 Consolas, "SFMono-Regular", monospace;
  color: #2f3b48;
}

@media (max-width: 760px) {
  .topbar,
  .grid,
  .token-form,
  .metrics {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }
}
