:root {
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 16px;
  color: #1d302c;
  background: #f5f6f2;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid #c8d2c9;
  border-radius: 6px;
  background: #fff;
  padding: 0.5rem 0.8rem;
}
button:hover {
  border-color: #23745a;
  background: #eef5ee;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #c58b43;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: #156147;
}
#shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: #102923;
  color: #eaf2e9;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.9rem 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  margin: 0 0.25rem 2.1rem;
}
.brand small {
  font:
    0.76rem "Segoe UI",
    sans-serif;
  display: block;
  color: #a8bdb0;
  margin-top: 0.22rem;
  letter-spacing: 0.06em;
}
.coin {
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  color: #edc888;
  border: 2px double #d4a968;
  border-radius: 50%;
  font: bold 1.05rem Georgia;
  box-shadow:
    inset 0 0 0 3px #17372f,
    inset 0 0 0 4px #a88b5c;
}
.navbtn,
footer button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #c2d3c6;
  border: 1px solid transparent;
  border-radius: 6px;
  margin: 0.15rem 0;
  padding: 0.64rem 0.75rem;
  font-size: 0.92rem;
}
.navbtn.active,
.navbtn:hover,
footer button:hover {
  color: white;
  background: #224438;
  border-color: #345546;
}
.navicon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
footer {
  margin-top: auto;
  padding: 0.8rem 0.4rem 0;
  border-top: 1px solid #375044;
  color: #abc0b3;
}
footer span {
  display: block;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
}
main {
  min-width: 0;
}
header {
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d8dfd7;
  padding: 0 clamp(1rem, 3vw, 3.3rem);
  font-size: 0.85rem;
  color: #576c60;
  background: #fff;
}
header b {
  font-weight: 400;
  color: #a0ada4;
  margin: 0 0.6rem;
}
#environment {
  font-size: 0.8rem;
  color: #536859;
}
#view {
  max-width: 1540px;
  margin: auto;
  padding: 1.6rem clamp(1rem, 3vw, 3.3rem) 4rem;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.05rem, 3.3vw, 3.25rem);
  line-height: 1.1;
}
h2 {
  font-size: 1.55rem;
}
h3 {
  font-size: 1.24rem;
}
.title,
.panel-head,
.row,
.links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.title {
  margin: 0.3rem 0 1.4rem;
  flex-wrap: wrap;
}
.title p,
.sub,
.muted,
small {
  color: #5e7166;
}
.sub,
.title p {
  margin-top: 0.4rem;
  font-size: 0.94rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid #d6ded4;
  background: #d6ded4;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 1rem;
}
.stat {
  padding: 1rem 1.2rem;
  background: white;
}
.stat span,
.eyebrow {
  font-size: 0.79rem;
  letter-spacing: 0.045em;
  color: #54695c;
}
.stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: 0.35rem;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(235px, 1fr);
  gap: 1rem;
}
.panel,
.chart {
  border: 1px solid #d5ded3;
  border-radius: 9px;
  background: #fff;
  padding: 1.25rem;
  margin-bottom: 1rem;
  min-width: 0;
}
.chart {
  background: #15382f;
  color: #f4f1df;
  border-color: #274d3e;
}
.chart .eyebrow,
.chart small {
  color: #b7c9b8;
}
.chart strong {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 2.05rem;
}
.chart select {
  background: #1e473c;
  border: 1px solid #577561;
  color: #fff;
  border-radius: 5px;
  padding: 0.35rem;
}
.chart canvas {
  width: 100%;
  height: 145px;
  display: block;
  margin-top: 0.7rem;
}
.chart .row {
  margin-top: 0.35rem;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font: 0.75rem monospace;
  color: #bed1be;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 0.18rem 0.45rem;
  background: #edf3ed;
  color: #2e694a;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge.amber {
  background: #f7eddc;
  color: #815c29;
}
.signal {
  padding: 0.8rem 0;
  border-top: 1px solid #e3e8df;
}
.signal:first-of-type {
  margin-top: 0.7rem;
}
.signal p {
  margin: 0.43rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.signal time,
small {
  font-size: 0.8rem;
}
.panel-head {
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.textbtn {
  border: 0;
  background: transparent;
  padding: 0.25rem 0;
  color: #25674b;
  font-weight: 600;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  padding: 0.7rem 0.55rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #e3e9e1;
}
th {
  color: #607366;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  background: #f7f9f5;
}
td:first-child {
  font-weight: 500;
}
tbody tr:last-child td {
  border: 0;
}
.money {
  white-space: nowrap;
}
.money i {
  font-style: normal;
  color: #8a7139;
  font-size: 0.78em;
}
.empty {
  padding: 1.5rem 0.35rem;
  color: #617569;
  line-height: 1.55;
}
.primary {
  background: #236448;
  border-color: #236448;
  color: white;
}
.primary:hover {
  background: #184b37;
  color: white;
}
.forms {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: end;
}
label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: #4c6456;
}
input,
textarea,
select {
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid #c5d2c6;
  border-radius: 5px;
  color: #183329;
  background: #fff;
}
.forms label {
  flex: 1;
  min-width: 110px;
}
.forms .wide {
  min-width: 220px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.8rem;
  margin: 0.8rem 0 1rem;
}
.stack {
  display: grid;
  gap: 0.8rem;
  max-width: 700px;
}
.stack .primary {
  justify-self: start;
}
#message:not(:empty) {
  margin: 0.8rem 3vw;
  padding: 0.65rem 0.9rem;
  background: #fbefd5;
  border: 1px solid #dfc797;
  border-radius: 5px;
}
.hint {
  font-size: 0.88rem;
  color: #647768;
  margin: 0.55rem 0;
  line-height: 1.5;
}
.answer {
  line-height: 1.65;
  white-space: pre-line;
}
.links {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}
.links a {
  font-size: 0.85rem;
}
.signal h3 {
  margin-top: 0.4rem;
}
.positive {
  color: #27734d;
}
.negative {
  color: #9a5338;
}
dialog {
  border: 1px solid #c9d4c9;
  border-radius: 10px;
  padding: 2rem;
  max-width: 370px;
  color: #1f352b;
}
dialog::backdrop {
  background: #10271fd9;
}
dialog form {
  display: grid;
  gap: 1rem;
}
dialog .coin {
  background: #15352c;
}
dialog p {
  line-height: 1.5;
}
#loginError {
  color: #99482d;
}
@media (max-width: 1050px) {
  #shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  aside {
    padding: 1.3rem 0.6rem;
  }
  .columns {
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, 1fr);
  }
}
@media (max-width: 780px) {
  #shell {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    padding: 0.8rem 1rem;
  }
  .brand {
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
  }
  .brand small,
  footer {
    display: none;
  }
  nav {
    display: flex;
    gap: 0.2rem;
    overflow: auto;
  }
  nav .navbtn {
    width: auto;
    white-space: nowrap;
    margin: 0;
    padding: 0.4rem 0.6rem;
  }
  nav .navicon {
    display: none;
  }
  header {
    height: 43px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .columns {
    display: block;
  }
  .stat {
    padding: 0.7rem 1rem;
  }
  #view {
    padding-top: 1rem;
  }
}
