:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  background: #fff;
  font-synthesis: none;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
  color: inherit;
  border-radius: 0;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  background: #fff;
  border: 1px solid #000;
  padding: 11px 16px;
}
button:hover,
button.primary {
  background: #000;
  color: #fff;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}
input {
  width: 100%;
  border: 1px solid #000;
  padding: 12px;
  background: #fff;
  min-width: 0;
}
input[type="email"] {
  text-transform: lowercase;
}
label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.1;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.6px;
  font-weight: 400;
}
h3 {
  font-size: 15px;
  font-weight: 400;
}
.shell {
  max-width: 1040px;
  padding: 0 40px;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0;
  border-bottom: 1px solid #000;
}
.wordmark {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: -1.5px;
  text-decoration: none;
}
.dot {
  font-family: serif;
}
.tagline,
.muted,
.eyebrow,
footer {
  font-size: 12px;
}
.eyebrow {
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.intro {
  padding: 56px 0 34px;
}
.intro p {
  margin-top: 16px;
  line-height: 1.7;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 70px;
  padding: 72px 0 100px;
}
.auth-copy {
  padding-top: 35px;
}
.auth-copy p {
  line-height: 1.8;
  max-width: 330px;
  margin-top: 24px;
}
.note {
  border-top: 1px solid #000;
  margin-top: 48px;
  padding-top: 16px;
  font-size: 12px;
  line-height: 1.7;
}
.auth-panel {
  border: 1px solid #000;
  padding: 28px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #000;
  gap: 24px;
  margin-bottom: 26px;
}
.tabs button {
  border: 0;
  padding: 0 0 13px;
  background: white;
  color: black;
}
.tabs button[aria-selected="true"] {
  box-shadow: inset 0 -3px #000;
}
.field {
  margin: 20px 0;
}
.full {
  width: 100%;
}
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin: 20px 0;
}
.or:before,
.or:after {
  content: "";
  height: 1px;
  background: #000;
  flex: 1;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav button {
  border: 0;
  padding: 8px 0;
}
.nav button[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.nav button:hover {
  background: #fff;
  color: #000;
}
.datebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 8px 0 30px;
}
.datebar input {
  width: 160px;
  font-size: 13px;
  padding: 9px;
}
.datebar button {
  padding: 8px 12px;
}
.habit-list {
  border-top: 1px solid #000;
}
.habit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 67px;
  border-bottom: 1px solid #000;
}
.check {
  width: 26px;
  height: 26px;
  padding: 0;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.check[aria-pressed="true"] {
  background: #000;
  color: #fff;
}
.habit-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 17px;
  letter-spacing: -0.3px;
}
.habit-row.done .habit-name {
  text-decoration: line-through;
}
.row-actions {
  display: flex;
  gap: 4px;
}
.row-actions button {
  border: 0;
  padding: 9px;
  font-size: 13px;
}
.add-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.add-form button {
  white-space: nowrap;
  flex-shrink: 0;
}
.add-form input {
  border: 0;
  border-bottom: 1px solid #000;
  padding-left: 0;
}
.list-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
  font-size: 12px;
}
.empty {
  padding: 36px 0;
  line-height: 1.8;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #000;
  margin: 4px 0 38px;
}
.stat {
  padding: 24px;
  border-right: 1px solid #000;
}
.stat:last-child {
  border: 0;
}
.stat strong {
  display: block;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -1.5px;
  margin: 0 0 10px;
}
.stat span {
  font-size: 12px;
}
.section {
  margin: 34px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}
.activity {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
}
.activity button {
  aspect-ratio: 1;
  padding: 0;
  min-width: 0;
  font-size: 10px;
  border: 1px solid #000;
}
.activity button.active {
  background: #000;
  color: #fff;
}
.activity button[disabled] {
  opacity: 1;
  background: #fff;
  color: #000;
  border-style: dotted;
}
.legend {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 11px;
}
.habit-stat {
  padding: 16px 0;
  border-bottom: 1px solid #000;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.habit-stat span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.habit-stat span:last-child {
  font-size: 12px;
}
.bar {
  grid-column: 1/-1;
  height: 5px;
  border: 1px solid #000;
}
.bar-fill {
  height: 100%;
  background: #000;
}
.account-line {
  padding: 20px 0;
  border-bottom: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.account-line span {
  overflow-wrap: anywhere;
}
.account-note {
  margin-top: 24px;
  line-height: 1.7;
  font-size: 13px;
}
#message {
  min-height: 24px;
  line-height: 1.6;
  margin: 20px 0;
}
#message.error {
  font-weight: bold;
}
footer {
  border-top: 1px solid #000;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 36px;
  margin-top: 60px;
}
main {
  min-height: 400px;
}
.small {
  font-size: 12px;
  line-height: 1.7;
}
.spaced {
  margin-top: 22px;
}
@media (max-width: 700px) {
  .shell {
    padding: 0 22px;
  }
  header {
    padding: 24px 0;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
  .auth-copy {
    padding: 0;
  }
  .auth-copy h1 {
    max-width: 350px;
  }
  .auth-copy p {
    margin-top: 16px;
  }
  .auth-copy .note {
    display: none;
  }
  .auth-panel {
    padding: 24px;
  }
  .intro {
    padding-top: 38px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid #000;
  }
  .stat {
    padding: 20px;
  }
  .habit-row {
    gap: 12px;
  }
  .row-actions {
    gap: 0;
  }
  .row-actions button {
    padding: 9px 7px;
  }
  .activity {
    gap: 4px;
  }
  .activity button {
    font-size: 8px;
  }
  .nav-links {
    gap: 18px;
  }
  footer {
    flex-direction: column;
    margin-top: 40px;
  }
  .tagline {
    font-size: 11px;
  }
  .list-meta {
    line-height: 1.7;
  }
  .datebar {
    gap: 8px;
  }
  .datebar input {
    width: 150px;
  }
}
progress {
  appearance: none;
  height: 5px;
  border: 1px solid #000;
  background: #fff;
  grid-column: 1/-1;
}
progress::-webkit-progress-bar {
  background: #fff;
}
progress::-webkit-progress-value {
  background: #000;
}
progress::-moz-progress-bar {
  background: #000;
}
