:root {
  color-scheme: light;
  --ink: #182d28;
  --green: #087755;
  --muted: #596e65;
  --line: #cbd7ce;
  --paper: #f0f4ed;
  --white: #fff;
  --lime: #c7f686;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.48 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
header {
  background: #173d31;
  color: white;
}
.bar,
main {
  max-width: 1260px;
  margin: auto;
  padding: 0 5vw;
}
.bar {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 42px;
}
.brand {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -1.3px;
}
.brand i {
  display: inline-block;
  width: 26px;
  height: 27px;
  background: linear-gradient(
    110deg,
    transparent 16%,
    var(--lime) 17% 32%,
    transparent 33% 45%,
    var(--lime) 46% 61%,
    transparent 62% 74%,
    var(--lime) 75% 90%,
    transparent 91%
  );
}
nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
button,
a,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 600;
}
button:hover,
a:hover {
  filter: brightness(0.93);
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #29aa80;
  outline-offset: 2px;
}
nav button,
.logout {
  background: transparent;
  border: 0;
  color: #d6e4db;
}
nav button.active {
  background: #315747;
  color: white;
}
.logout {
  margin-left: auto;
}
.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 46px 0 25px;
  gap: 12px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.055em;
  line-height: 1.18;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.7px;
}
small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin-bottom: 7px;
}
.status {
  font:
    13px ui-monospace,
    monospace;
  color: var(--muted);
}
.status.on {
  color: var(--green);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: white;
  background: #214b3e;
  border-radius: 12px;
  margin-bottom: 24px;
  padding: 23px 2px;
}
.metrics div {
  padding: 0 24px;
  border-right: 1px solid #557565;
}
.metrics div:last-child {
  border: 0;
}
.metrics b {
  font-size: 30px;
  color: var(--lime);
  letter-spacing: -1px;
  display: block;
}
.metrics span {
  color: #e0eae3;
  font-size: 13px;
}
.cols {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr);
  gap: 20px;
}
.panel,
article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  margin-bottom: 16px;
}
.panel p,
.sub {
  color: var(--muted);
}
.empty {
  padding: 52px 12px;
  text-align: center;
}
.empty strong {
  display: block;
  margin-bottom: 7px;
}
.source,
.member,
.legs div,
.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e5ebe5;
}
.source:last-child,
.member:last-child {
  border: 0;
}
.source b,
.num {
  font-variant-numeric: tabular-nums;
}
.pct {
  color: var(--green);
  font-weight: 750;
}
.legs a {
  color: var(--green);
}
.legs {
  margin: 15px 0;
}
.legs div {
  flex-wrap: wrap;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.primary {
  background: #166649;
  color: white;
  border-color: #166649;
}
.settings {
  max-width: 800px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
input {
  width: 100%;
  padding: 10px;
  border: 1px solid #a9bcb0;
  border-radius: 6px;
  background: #fbfdfb;
  color: var(--ink);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 17px 0;
}
.wallet {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
}
.login-inner {
  padding: 42px;
}
.login-inner label {
  margin: 24px 0 16px;
}
#login {
  max-width: 470px;
  margin: 12vh auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.login-stripe {
  height: 10px;
  background: repeating-linear-gradient(
    115deg,
    #254f40 0 14px,
    #c7f686 14px 28px
  );
}
#notice:not(:empty) {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #183d30;
  color: white;
  border-radius: 8px;
  padding: 12px 18px;
  max-width: 90vw;
}
form .primary {
  margin-top: 12px;
}
details {
  margin: 12px 0;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .bar {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 10px;
  }
  nav {
    order: 3;
    width: 100%;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
    font-size: 13px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .title {
    margin: 24px 0 18px;
    align-items: start;
    flex-wrap: wrap;
  }
  .metrics div {
    padding: 0 10px;
  }
  .metrics b {
    font-size: 23px;
  }
  .metrics span,
  .status {
    font-size: 12px;
  }
  .panel,
  article {
    padding: 16px;
  }
  .wallet {
    grid-template-columns: 0.85fr 1fr 1fr;
  }
  .login-inner {
    padding: 26px;
  }
  .legs div {
    font-size: 14px;
  }
}

#autoControls {
  margin-bottom: 1rem;
}
#autoControls label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-right: 1rem;
}
#autoOpen {
  width: auto;
}
#autoMessage {
  display: block;
}
