:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #24372e;
  background: #f6f8f5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #96be77;
  outline-offset: 3px;
}
button {
  border: 1px solid #dbe2d9;
  background: white;
  border-radius: 9px;
  padding: 11px 16px;
  color: inherit;
}
button:hover {
  background: #eef3eb;
}
.primary {
  background: #345e46;
  color: white;
  border-color: #345e46;
}
.primary:hover {
  background: #254c36;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 16px;
}
p {
  color: #738075;
  line-height: 1.6;
}
small,
.muted {
  color: #7a867c;
  font-size: 13px;
}
input,
select,
textarea {
  padding: 12px;
  border: 1px solid #d9e0d7;
  border-radius: 8px;
  background: #fff;
  color: #24372e;
  max-width: 100%;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  margin: 13px 0;
}
textarea {
  width: 100%;
  min-height: 210px;
  font: 13px monospace;
}
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
aside {
  background: #fff;
  border-right: 1px solid #e4e9e0;
  padding: 33px 22px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.8px;
  display: flex;
  gap: 11px;
  align-items: center;
}
.logo {
  background: #365c42;
  color: #d6edbc;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 24px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-size: 10px;
  font-weight: 700;
  color: #8c9689;
  margin-bottom: 12px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  text-align: left;
  border: 0;
  color: #738075;
  padding: 13px;
}
.nav button.active {
  background: #eaf1e5;
  color: #365e40;
  font-weight: 650;
}
.sidebar-bottom {
  margin-top: auto;
  background: #f4f6f0;
  padding: 16px;
  border-radius: 12px;
  font-size: 13px;
}
.sidebar-bottom p {
  font-size: 12px;
  margin: 7px 0 0;
}
main {
  min-width: 0;
}
header {
  height: 80px;
  border-bottom: 1px solid #e4e9e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fff9;
}
.user {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  background: #e7eddf;
  color: #5d744e;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-weight: 650;
}
.content {
  padding: 36px 42px;
  max-width: 1500px;
  margin: auto;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.intro {
  margin-bottom: 26px;
}
.intro p {
  margin: 8px 0 0;
}
.card {
  background: white;
  border: 1px solid #e2e7dd;
  border-radius: 14px;
  padding: 24px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: #e6eedc;
  min-height: 205px;
  margin-bottom: 25px;
  padding: 32px;
  display: flex;
  align-items: center;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0 0 0 46%;
  background:
    linear-gradient(90deg, #e6eedc, transparent 55%),
    url("/assets/grove.webp") center/cover;
  opacity: 0.8;
}
.hero > div {
  position: relative;
  z-index: 1;
  max-width: 55%;
}
.hero h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.hero p {
  color: #5b7053;
  font-size: 14px;
  margin-bottom: 0;
}
.badge {
  display: inline-block;
  background: #fff9;
  color: #4f7143;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 5px;
  margin-bottom: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin: 22px 0;
}
.stat .value {
  font-size: 30px;
  font-weight: 650;
  margin: 12px 0 7px;
  letter-spacing: -1px;
}
.stat small {
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
  margin: 22px 0;
}
.chart {
  height: 185px;
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 10px;
  padding: 25px 0 28px;
  border-bottom: 1px solid #e6ebe2;
}
.bar-group {
  height: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: end;
  position: relative;
}
.bar {
  background: #8eac79;
  width: 60%;
  max-width: 38px;
  border-radius: 5px 5px 0 0;
  min-height: 2px;
}
.bar-group small {
  position: absolute;
  bottom: -24px;
  font-size: 11px;
}
.boxes {
  display: flex;
  gap: 6px;
  margin: 25px 0 16px;
  align-items: end;
  height: 95px;
}
.box {
  flex: 1;
  border-radius: 6px;
  background: #edf2e7;
  text-align: center;
  font-size: 11px;
  display: grid;
  align-content: end;
  padding-bottom: 8px;
  min-height: 28px;
}
.box b {
  display: block;
  color: #45673a;
}
.listrow {
  padding: 17px 0;
  border-top: 1px solid #edf0e9;
  display: flex;
  align-items: center;
  gap: 14px;
}
.flag {
  background: #eef2e9;
  border-radius: 9px;
  padding: 12px;
  font-size: 20px;
}
.grow {
  flex: 1;
}
.pill {
  background: #eef4e8;
  color: #547142;
  font-size: 11px;
  border-radius: 30px;
  padding: 5px 10px;
}
.empty {
  padding: 35px 10px;
  text-align: center;
  color: #84907e;
  font-size: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid #edf0e9;
}
th {
  color: #889180;
  font-size: 11px;
  font-weight: 500;
}
dialog {
  border: 1px solid #dbe3d4;
  border-radius: 17px;
  padding: 30px;
  width: 580px;
  max-width: 94vw;
  max-height: 90vh;
  overflow: auto;
  color: inherit;
}
dialog::backdrop {
  background: #17261e66;
  backdrop-filter: blur(3px);
}
.checks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.checks label {
  display: flex;
  align-items: center;
}
.auth {
  max-width: 440px;
  margin: 9vh auto;
  padding: 30px;
}
.auth .brand {
  margin-bottom: 35px;
}
.auth h1 {
  font-size: 28px;
}
.auth input {
  width: 100%;
}
.auth button.primary {
  width: 100%;
  margin-top: 15px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #243e2e;
  color: white;
  padding: 13px 22px;
  border-radius: 10px;
  z-index: 5;
  display: none;
  max-width: 90vw;
}
.key {
  word-break: break-all;
  background: #f0f4ea;
  padding: 18px;
  border-radius: 8px;
}
.learn {
  max-width: 650px;
  margin: 30px auto;
}
.flashcard {
  min-height: 300px;
  text-align: center;
  display: grid;
  place-content: center;
  background:
    linear-gradient(#ffffffec, #ffffffec),
    url("/assets/grove.webp") center/cover;
}
.flashcard h1 {
  font-size: 40px;
}
.flashcard input {
  text-align: center;
  margin-top: 20px;
}
.error {
  color: #a7493a;
  font-size: 13px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.hint {
  font-size: 12px;
  background: #f1f5eb;
  border-radius: 8px;
  padding: 14px;
  line-height: 1.6;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .content {
    padding: 25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  header {
    padding: 0 25px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  aside {
    padding: 15px;
    gap: 15px;
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .nav button {
    white-space: nowrap;
    font-size: 12px;
    padding: 10px;
  }
  .sidebar-bottom,
  aside .eyebrow {
    display: none;
  }
  header {
    height: auto;
    padding: 15px;
  }
  .content {
    padding: 20px 15px;
  }
  .hero {
    padding: 24px;
  }
  .hero > div {
    max-width: 80%;
  }
  .hero:after {
    opacity: 0.3;
    left: 20%;
  }
  .hero h2 {
    font-size: 23px;
  }
  .stats {
    gap: 10px;
  }
  .card {
    padding: 18px;
  }
  .user small {
    display: none;
  }
  h1 {
    font-size: 26px;
  }
  table {
    font-size: 11px;
  }
  th,
  td {
    padding: 10px 4px;
  }
}
