.ht {
  --mint: #9edbaf;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  color: #eff4ef;
  font:
    15px/1.5 system-ui,
    sans-serif;
  background:
    radial-gradient(ellipse at 80% 15%, #50634766, transparent 45%),
    linear-gradient(155deg, #162c29, #111b23 50%, #252636);
  isolation: isolate;
}
.ht * {
  box-sizing: border-box;
}
.ht::before {
  content: "";
  position: fixed;
  inset: 45% 0 0;
  z-index: -1;
  opacity: 0.2;
  background: #7e9d83;
  clip-path: polygon(
    0 55%,
    13% 20%,
    28% 65%,
    45% 0,
    65% 60%,
    80% 15%,
    100% 50%,
    100% 100%,
    0 100%
  );
}
.ht a {
  color: var(--mint);
  text-decoration: none;
}
.ht-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #ffffff17;
  padding-bottom: 20px;
}
.ht-header > span,
.ht-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #a6b9af;
}
.ht-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 38px 0 24px;
}
.ht h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -1.4px;
  margin: 10px 0;
}
.ht p {
  color: #aebeb6;
}
.ht h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 15px;
}
.ht h3 {
  font-size: 14px;
}
.ht button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 1px solid #ffffff25;
  border-radius: 10px;
  padding: 9px 14px;
  background: #ffffff0a;
}
.ht button:hover {
  background: #9edbaf25;
}
.ht button:disabled {
  opacity: 0.45;
  cursor: wait;
}
.ht button:focus-visible,
.ht input:focus-visible,
.ht select:focus-visible,
.ht textarea:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
.ht-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #0003;
  border: 1px solid #ffffff16;
  border-radius: 14px;
  width: fit-content;
}
.ht-tabs button {
  border: 0;
  min-width: 100px;
}
.ht-tabs [aria-pressed="true"] {
  background: var(--mint);
  color: #17291e;
}
.ht-message {
  margin: 18px 0 8px;
  color: #bed5c5;
  font-size: 12px;
  min-height: 20px;
}
.ht-period {
  margin: 16px 0 20px;
  font-size: 17px;
}
.ht-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ht-card {
  background: #152420b8;
  border: 1px solid #d5f8df22;
  box-shadow: 0 14px 35px #0002;
  backdrop-filter: blur(18px);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 18px;
  min-width: 0;
}
.ht-grid .ht-card {
  margin: 0;
}
.ht-grid {
  margin-bottom: 20px;
}
.ht-card-top {
  display: flex;
  justify-content: space-between;
}
.ht-dot {
  background: var(--mint);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
}
.ht-value {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -1px;
}
.ht small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: #b3c4b8;
}
.ht-value small {
  display: block;
  margin-top: 5px;
}
.ht-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.ht label {
  display: block;
  color: #bbc9c0;
  font-size: 13px;
}
.ht input,
.ht select,
.ht textarea {
  display: block;
  width: 100%;
  margin: 7px 0 12px;
  border: 1px solid #ffffff26;
  border-radius: 9px;
  background: #0b1717;
  color: #f0f4ef;
  padding: 12px;
  font: inherit;
  min-height: 44px;
}
.ht input[type="checkbox"] {
  display: inline-block;
  width: 20px;
  min-height: 20px;
  vertical-align: middle;
}
.ht textarea {
  min-height: 92px;
}
.ht-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid #ffffff17;
}
.ht-entry p {
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.ht-entry button {
  font-size: 12px;
  margin: 3px;
}
.ht-settings {
  margin-top: 20px;
}
.ht summary {
  cursor: pointer;
}
.ht progress {
  display: block;
  width: 100%;
  height: 8px;
  accent-color: var(--mint);
  margin-top: 10px;
}
.ht-goal {
  margin-top: 16px;
  font-size: 12px;
  color: #a9bfb0;
}
.ht-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}
.ht-calendar button {
  background: rgb(135 210 157 / var(--activity));
  height: 66px;
}
.ht-calendar small {
  display: block;
}
.ht-chart {
  height: 190px;
  display: flex;
  gap: 4px;
  padding: 10px 0 24px;
}
.ht-chart button {
  position: relative;
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.ht-chart button > span {
  position: absolute;
  bottom: 0;
  left: 12%;
  width: 76%;
  background: linear-gradient(#b7e6a4, #658d83);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.ht-chart small {
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  font-size: 9px;
}
.ht-footer {
  text-align: center;
  font-size: 11px;
  padding: 12px;
}
.ht [hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .ht {
    padding: 20px 16px;
  }
  .ht-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ht-header > span {
    display: none;
  }
  .ht-intro {
    display: block;
  }
  .ht-date {
    max-width: 220px;
    margin-top: 24px;
  }
  .ht-fields {
    grid-template-columns: 1fr;
  }
  .ht-entry {
    align-items: start;
    flex-direction: column;
  }
  .ht-card {
    padding: 18px;
  }
  .ht-tabs {
    width: 100%;
  }
  .ht-tabs button {
    flex: 1;
    min-width: 0;
  }
  .ht-calendar {
    gap: 4px;
  }
  .ht-calendar button {
    padding: 5px;
    height: 54px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ht * {
    scroll-behavior: auto !important;
  }
}
.ht .ht-tabs [aria-pressed="true"],
.ht .ht-tabs [aria-pressed="true"]:hover {
  background: var(--mint);
  color: #17291e;
}
