:root {
  font-family:
    system-ui,
    -apple-system,
    "PingFang SC",
    sans-serif;
  color: #213331;
  background: #f4f7f6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 28px max(24px, calc((100vw - 1260px) / 2));
  background: #123f38;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h1 {
  margin: 8px 0;
  font-size: 28px;
}
small {
  color: #b1d9cb;
}
main {
  max-width: 1260px;
  margin: auto;
  padding: 24px;
}
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 24px;
}
section {
  background: #fff;
  border: 1px solid #d8e5e0;
  border-radius: 14px;
  padding: 24px;
}
button {
  padding: 10px 16px;
  border: 0;
  border-radius: 7px;
  background: #136c57;
  color: white;
  cursor: pointer;
  font: inherit;
}
button:disabled {
  background: #a1b6ae;
  cursor: default;
}
button.secondary {
  background: #e9f2ed;
  color: #174838;
}
input,
select,
textarea {
  border: 1px solid #cbdcd4;
  border-radius: 6px;
  padding: 9px;
  font: inherit;
  max-width: 100%;
}
textarea {
  display: block;
  width: 100%;
  height: 140px;
  margin: 12px 0;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}
.split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  margin-top: 24px;
}
.table {
  overflow: auto;
  margin-top: 15px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e2ebe7;
  vertical-align: top;
}
th {
  background: #f0f6f3;
}
td img,
.card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  float: left;
  margin-right: 12px;
}
.card {
  border: 1px solid #d9e7e1;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  overflow: hidden;
}
.muted {
  font-size: 13px;
  color: #627a70;
}
.screen {
  overflow: auto;
  background: #f0f2f1;
  margin-top: 20px;
  min-height: 60px;
}
.screen img {
  display: block;
  max-width: 100%;
  touch-action: none;
  user-select: none;
}
#notice {
  padding: 12px;
  border-radius: 8px;
  white-space: pre-wrap;
}
#notice:not(:empty) {
  background: #e0eee7;
}
.error {
  color: #a33225;
}
.good {
  color: #116b4b;
}
h2 {
  margin-top: 0;
}
a {
  color: #136c57;
}
@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
  main {
    padding: 12px;
  }
  section {
    padding: 16px;
  }
  header {
    padding: 20px;
  }
  #status {
    max-width: 40%;
    font-size: 12px;
  }
}

#diagnostics {white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:180px;overflow:auto;}

.screen {overflow:auto;}
.screen.expanded img {max-width:none;width:1280px;height:900px;}
#remote-status {min-width:180px;}
