:root {
  color-scheme: dark;
  --bg: #111511;
  --surface: #1b211b;
  --surface2: #242c23;
  --line: #30392d;
  --text: #f1f3e9;
  --muted: #a1ad99;
  --lime: #c5f674;
  --peach: #efb795;
  --blue: #a9bfe8;
  --radius: 25px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
button:active:not(:disabled) {
  transform: scale(0.98);
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1.2px;
  line-height: 1.2;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}
small {
  font-size: 12px;
}
strong {
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 520px;
  margin: auto;
  padding: 0 22px;
  min-height: 100dvh;
}
.topbar {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: env(safe-area-inset-top);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1.2px;
}
.brand-dot {
  color: var(--lime);
}
.brand img {
  border-radius: 11px;
}
.connection {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-block;
}
.connection.offline .dot {
  background: var(--peach);
}
main {
  padding: 7px 0 118px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 23px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.9px;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 8px;
}
.date-chip {
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 9px 12px;
  font-size: 11px;
  white-space: nowrap;
  color: #c5cfbf;
}
.hero {
  background: var(--lime);
  color: #203017;
  border-radius: 30px;
  padding: 23px 24px 25px;
  position: relative;
  overflow: hidden;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.6px;
}
.live-pill {
  display: flex;
  gap: 6px;
  align-items: center;
  background: #20301712;
  border: 1px solid #2030171a;
  padding: 6px 9px;
  border-radius: 20px;
  letter-spacing: 0.6px;
  font-size: 9px;
}
.live-pill .dot {
  background: #263b19;
  width: 5px;
  height: 5px;
}
.clock-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 21px 0 20px;
}
.clock {
  font-size: clamp(66px, 18vw, 85px);
  letter-spacing: -5px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.clock-goal {
  font-size: 20px;
  color: #385325;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.progress-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 9px;
}
.progress-track {
  height: 6px;
  border-radius: 9px;
  background: #263b1926;
  overflow: hidden;
}
.progress-track span {
  display: block;
  background: #263b19;
  height: 100%;
  border-radius: 9px;
  transition: width 0.6s;
}
.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  font-size: 11px;
  color: #3f582e;
}
.hero-footer svg {
  width: 15px;
  height: 15px;
}
.hero-footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 12px 0 24px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 17px 16px;
}
.metric-label {
  color: var(--muted);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.metric-label svg {
  width: 14px;
  height: 14px;
}
.metric-value {
  display: block;
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
  margin: 9px 0 4px;
}
.metric:first-child .metric-value {
  color: var(--peach);
}
.metric p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 14px;
}
.section-title h2 {
  font-size: 17px;
}
.text-button {
  color: var(--muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.text-button svg {
  width: 14px;
  height: 14px;
}
.session {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 15px;
  background: var(--surface);
}
.session-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}
.category-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #c5f67412;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  flex-shrink: 0;
}
.category-icon.house {
  color: var(--peach);
  background: #efb79510;
}
.category-icon.social {
  color: var(--blue);
  background: #a9bfe815;
}
.session-text {
  flex: 1;
  min-width: 0;
}
.session-text small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}
.session-text strong {
  overflow-wrap: anywhere;
}
.switch {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.switch svg {
  width: 18px;
  height: 18px;
}
.primary {
  background: var(--lime);
  color: #203017;
  font-weight: 650;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.primary svg {
  width: 18px;
  height: 18px;
}
.pause {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid #3e4a36;
}
.secondary {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 45px;
  padding: 12px 15px;
  width: 100%;
  margin-top: 10px;
}
.breakdown {
  display: grid;
  gap: 16px;
}
.category-row {
  display: flex;
  gap: 11px;
  align-items: center;
}
.category-row .category-icon {
  height: 38px;
  width: 38px;
  border-radius: 12px;
}
.category-row .category-icon svg {
  height: 18px;
  width: 18px;
}
.row-main {
  flex: 1;
  min-width: 0;
}
.row-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  align-items: baseline;
}
.row-head > span {
  overflow-wrap: anywhere;
}
.row-head strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mini-track {
  height: 3px;
  background: var(--surface2);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}
.mini-track span {
  height: 100%;
  display: block;
  background: var(--lime);
  border-radius: 3px;
}
.mini-track.house span {
  background: var(--peach);
}
.mini-track.social span {
  background: var(--blue);
}
.hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 15px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 520px);
  display: flex;
  justify-content: space-around;
  padding: 12px 10px calc(13px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #151b15f5;
  backdrop-filter: blur(18px);
  z-index: 4;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #889580;
  font-size: 10px;
  width: 30%;
  padding: 4px;
}
.nav-item.selected {
  color: var(--lime);
}
.nav-item.selected svg {
  stroke-width: 2;
}
.nav-item svg {
  width: 22px;
  height: 22px;
}
.preview-note {
  background: #efb79515;
  color: var(--peach);
  font-size: 10px;
  border: 1px solid #efb79530;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.empty {
  padding: 28px 15px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.empty svg {
  margin: 0 auto 12px;
  color: var(--lime);
}
.loading {
  padding: 85px 0;
  text-align: center;
}
.loading h1 {
  font-size: 22px;
  margin-top: 24px;
}
.loading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 14px 0;
}
.spinner {
  display: inline-block;
  width: 27px;
  height: 27px;
  border: 2px solid var(--line);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.periods {
  display: flex;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 22px;
}
.periods button {
  flex: 1;
  color: var(--muted);
  padding: 9px 6px;
  font-size: 12px;
  border-radius: 9px;
}
.periods button.active {
  background: var(--lime);
  color: #203017;
  font-weight: 650;
}
.history-total {
  font-size: 46px;
  letter-spacing: -2px;
  margin: 7px 0;
}
.history-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 20px;
}
.history-sub {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  gap: 10px;
}
.bars {
  height: 132px;
  display: flex;
  align-items: stretch;
  gap: 7px;
  margin: 23px 0 0;
  padding-top: 14px;
}
.bar-day {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  padding: 0;
}
.bar-day .bar {
  width: 100%;
  max-width: 33px;
  background: #3c502e;
  border-radius: 6px 6px 3px 3px;
  min-height: 3px;
}
.bar-day.reached .bar {
  background: var(--lime);
}
.bar-day small {
  color: var(--muted);
  font-size: 9px;
}
.group-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.group-list .row-head {
  font-size: 12px;
}
.day-list {
  display: grid;
  gap: 8px;
}
.day-item {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
}
.day-date {
  background: var(--surface2);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 17px;
  min-width: 39px;
  text-align: center;
}
.day-detail {
  flex: 1;
}
.day-detail strong {
  font-size: 12px;
}
.day-detail p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.day-item > strong {
  font-size: 14px;
  white-space: nowrap;
}
.day-item svg {
  width: 15px;
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  font-size: 12px;
  color: var(--muted);
}
.pagination button {
  border: 1px solid var(--line);
  padding: 10px 13px;
  border-radius: 10px;
}
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.category-tile {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  min-height: 125px;
  position: relative;
}
.category-tile .category-icon {
  margin-bottom: 15px;
}
.category-tile strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.category-tile small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.category-tile.chosen {
  border-color: var(--lime);
}
.category-tile.chosen:after {
  content: "✓";
  position: absolute;
  top: 16px;
  right: 15px;
  color: var(--lime);
}
dialog {
  color: var(--text);
  background: #1b211b;
  border: 1px solid #3a4534;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  width: min(100%, 520px);
  max-width: 100%;
  margin: auto auto 0;
  padding: 26px 22px calc(28px + env(safe-area-inset-bottom));
  max-height: 85dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(5px);
}
.sheet-handle {
  height: 4px;
  width: 36px;
  background: #46523e;
  border-radius: 5px;
  margin: -14px auto 24px;
}
.close-button {
  position: absolute;
  right: 16px;
  top: 18px;
  border-radius: 50%;
  font-size: 24px;
  color: var(--muted);
  width: 34px;
  height: 34px;
  background: var(--surface2);
}
dialog h2 {
  padding-right: 32px;
  margin-bottom: 9px;
}
dialog .hint {
  margin: 0 0 20px;
}
dialog .category-grid {
  margin: 20px 0;
}
.field {
  display: block;
  margin: 20px 0 15px;
  font-size: 12px;
  color: var(--muted);
}
.field input,
.field select {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--bg);
  border: 1px solid #44513b;
  border-radius: 12px;
  color: var(--text);
  margin-top: 8px;
  outline: none;
  min-height: 48px;
}
.field input:focus,
.field select:focus {
  border-color: var(--lime);
}
.quick-minutes {
  display: flex;
  gap: 8px;
  margin: 13px 0 20px;
}
.quick-minutes button {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 103px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  border: 1px solid #566448;
  background: #2a3426;
  box-shadow: 0 8px 35px #0007;
  color: var(--text);
  padding: 14px 18px;
  border-radius: 14px;
  z-index: 10;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 21px;
}
.back-link svg {
  width: 16px;
}
.summary-label {
  font-size: 11px;
  color: var(--muted);
}
.sheet-error {
  color: var(--peach);
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0;
}
.category-help {
  margin: 23px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.complete-note {
  color: var(--lime);
  text-align: center;
  font-size: 12px;
  margin-top: 18px;
}
@media (min-width: 700px) {
  .shell {
    margin: 25px auto;
    border: 1px solid var(--line);
    border-radius: 35px;
    padding: 0 26px;
    min-height: calc(100vh - 50px);
  }
  .bottom-nav {
    bottom: 25px;
    width: 518px;
    border-radius: 0 0 34px 34px;
  }
  dialog {
    margin: auto;
    border-bottom: 1px solid var(--line);
    border-radius: 28px;
    max-height: 85vh;
  }
}
@media (max-width: 355px) {
  .shell {
    padding: 0 15px;
  }
  .hero {
    padding: 20px;
  }
  .clock {
    font-size: 67px;
  }
  .metric {
    padding: 14px 12px;
  }
  .heading h1 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
