:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #203c33;
  background: #f5f6f1;
  font-synthesis: none;
  --green: #143d32;
  --muted: #697a71;
  --border: #dfe5dc;
  --orange: #efad52;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 17px;
  background: white;
  color: var(--green);
  font-weight: 650;
}
button:hover {
  background: #eaf0e5;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #245646;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
}
.sun {
  font-size: 30px;
  color: var(--orange);
}
.shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  color: #f8fbf3;
  padding: 32px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar small {
  color: #b5c7b9;
}
.nav {
  display: grid;
  gap: 9px;
  margin-top: 52px;
}
.nav button {
  background: transparent;
  border: 0;
  color: #c9d7cf;
  text-align: left;
  padding: 14px;
}
.nav button.active {
  background: #ffffff17;
  color: #fff;
}
.nav button:hover {
  background: #ffffff12;
}
.account {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #ffffff26;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.account button {
  margin-top: 15px;
  background: transparent;
  color: #fff;
  border-color: #ffffff40;
}
.main {
  padding: 35px 44px;
  max-width: 1500px;
  width: 100%;
  margin: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 32px;
}
.live {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #699d65;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 750;
  color: #788a75;
}
h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -1.2px;
  margin: 9px 0 10px;
}
h2 {
  font-size: 20px;
  font-weight: 650;
  margin: 0 0 16px;
}
h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
}
.sub {
  color: var(--muted);
  margin: 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 25px;
}
.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 600;
  margin: 14px 0 4px;
  letter-spacing: -1px;
}
.stat small,
.muted {
  color: var(--muted);
}
.stat:first-child {
  background: #eaf0df;
  border-color: #dbe6cb;
}
.stat label {
  color: #607463;
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.plant-top,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tag {
  display: inline-block;
  border-radius: 30px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  background: #eef2e9;
  color: #557349;
  white-space: nowrap;
}
.tag.warn {
  background: #fff0d9;
  color: #925d16;
}
.tag.bad {
  background: #fbe7e2;
  color: #a94331;
}
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 23px 0;
}
.values strong {
  font-size: 27px;
  font-weight: 600;
  display: block;
}
.values span {
  color: var(--muted);
  font-size: 12px;
}
.plant-foot {
  border-top: 1px solid #edf0e9;
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.textbtn {
  padding: 5px 0;
  border: 0;
  background: none;
  color: var(--green);
}
.notice {
  border: 1px solid #e3d5b7;
  background: #fff8e9;
  color: #80602e;
  border-radius: 10px;
  padding: 13px 17px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.empty {
  text-align: center;
  padding: 55px 22px;
}
.empty .sun {
  font-size: 48px;
}
.empty p {
  color: var(--muted);
  max-width: 480px;
  margin: 14px auto 24px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar input {
  max-width: 280px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0;
  font-size: 13px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 13px;
  font-weight: 600;
}
.field small {
  font-weight: 400;
  color: var(--muted);
}
input,
select {
  width: 100%;
  border: 1px solid #ced8cd;
  background: #fff;
  border-radius: 9px;
  padding: 12px;
  color: #203c33;
  min-width: 0;
}
input:focus,
select:focus {
  border-color: #5d8d70;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.wide {
  grid-column: 1/-1;
}
.formcard {
  max-width: 760px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.error {
  color: #a23929;
  font-size: 13px;
  line-height: 1.5;
  min-height: 20px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  background: var(--green);
  color: white;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-art h1 {
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.08;
  max-width: 530px;
  position: relative;
  z-index: 1;
}
.auth-art p {
  color: #b7ccbd;
  max-width: 390px;
}
.orbit {
  width: 350px;
  height: 350px;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  position: absolute;
  right: -80px;
  top: 15%;
}
.orbit:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 135px;
  height: 135px;
  background: #efad52;
  top: 100px;
  left: 100px;
  box-shadow: 0 0 0 35px #ffffff05;
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 26px;
}
.auth-form {
  width: 100%;
  max-width: 380px;
}
.auth-form h1 {
  font-size: 30px;
}
.auth-form form {
  margin-top: 28px;
}
.auth-form .primary {
  width: 100%;
  margin: 5px 0 15px;
}
.auth-form .brand {
  margin-bottom: 35px;
}
.chart {
  width: 100%;
  height: 240px;
  display: block;
}
.chart text {
  font: 11px system-ui;
  fill: #788579;
}
.tablewrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  background: #f8faf5;
}
td,
th {
  padding: 15px 12px;
  border-bottom: 1px solid #ecf0e8;
}
td {
  max-width: 400px;
  overflow-wrap: anywhere;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--green);
  color: white;
  border-radius: 12px;
  box-shadow: 0 5px 35px #0002;
  padding: 0;
  max-width: 400px;
  z-index: 10;
}
#toast.show {
  padding: 17px 23px;
}
.offline {
  background: #fbe7e2;
  color: #913f32;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  margin: 18px 0;
}
.check input {
  width: auto;
}
details {
  margin: 18px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}
.owner {
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.footer-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 28px;
}
@media (max-width: 950px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 25px 14px;
  }
  .main {
    padding: 28px 24px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 40px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 15px 18px;
  }
  .sidebar > .brand {
    font-size: 21px;
  }
  .sidebar > small {
    display: none;
  }
  .nav {
    display: flex;
    margin: 15px 0 0;
    gap: 4px;
    overflow: auto;
  }
  .nav button {
    padding: 10px;
    white-space: nowrap;
    font-size: 13px;
  }
  .account {
    margin: 12px 0 0;
    padding: 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }
  .account button {
    margin: 0;
    padding: 6px 12px;
    font-size: 12px;
  }
  .main {
    padding: 22px 16px;
  }
  .topbar {
    margin-bottom: 22px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .stats {
    gap: 8px;
  }
  .card {
    padding: 18px;
  }
  .stat {
    padding: 14px 10px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat label,
  .stat small {
    font-size: 11px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .auth {
    display: block;
  }
  .auth-art {
    display: none;
  }
  .auth-panel {
    min-height: 100vh;
  }
  .values strong {
    font-size: 24px;
  }
  .toolbar input {
    max-width: none;
  }
  .topbar .date {
    display: none;
  }
  #toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .chart {
    height: 180px;
  }
}

@media (max-width: 650px) {
  .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
  .nav button {
    padding: 10px 2px;
    font-size: 11px;
    letter-spacing: -0.2px;
  }
}
