:root {
  font-family: system-ui, sans-serif;
  color: #192c33;
  background: #f4f6f5;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #163d3a;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
header strong {
  font-size: 1.6rem;
}
#connectivity {
  margin-left: auto;
  font-size: 0.85rem;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 1.5rem;
}
nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #bbc9c5;
  padding-bottom: 1rem;
}
button {
  background: #176a59;
  color: white;
  border: 0;
  border-radius: 5px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
nav button {
  background: white;
  color: #163d3a;
  border: 1px solid #b8cac4;
}
nav button[aria-current='page'] {
  background: #163d3a;
  color: white;
}
h1 {
  font-size: 1.7rem;
}
h2 {
  font-size: 1.2rem;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}
input,
select,
textarea {
  padding: 0.55rem;
  border: 1px solid #829b93;
  border-radius: 4px;
  background: white;
  font: inherit;
  min-width: 0;
}
input[type='checkbox'] {
  align-self: start;
}
form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  align-items: end;
}
#login {
  max-width: 520px;
  margin: 3rem auto;
}
#login form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
section.panel,
details {
  background: white;
  border: 1px solid #d1ddd8;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
td,
th {
  padding: 0.65rem;
  text-align: left;
  border-bottom: 1px solid #d9e2dd;
  max-width: 350px;
  overflow-wrap: anywhere;
}
.scroll {
  overflow: auto;
}
dl {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 3fr;
  gap: 0.5rem;
}
dt {
  color: #526b63;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.badge {
  padding: 0.3rem 0.6rem;
  background: #e5efea;
  border-radius: 5px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}
.cards article {
  padding: 1rem;
  background: white;
  border: 1px solid #cfdbd5;
  border-radius: 8px;
}
.cards strong {
  font-size: 2rem;
  display: block;
}
#message {
  white-space: pre-wrap;
  color: #8b321d;
}
canvas {
  border: 1px solid #78998b;
  touch-action: none;
  background: white;
  max-width: 100%;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
small {
  color: #526b63;
}
a {
  color: #176a59;
}
@media (max-width: 650px) {
  main {
    padding: 0.8rem;
  }
  header {
    padding: 1rem;
  }
  dl {
    grid-template-columns: 1fr;
  }
  dd {
    margin-bottom: 0.5rem;
  }
}
