:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; }
.hb-root {
  --paper: #eef2ee;
  --panel: #fff;
  --ink: #17231d;
  --muted: #56665d;
  --line: #d3ddd6;
  --accent: #2c7a56;
  --accent-soft: #dcece3;
  --mark: #b87814;
  --mark-soft: #f4e6cc;
  --bar-muted: #b9c7be;
  --danger: #9c2f2f;
  --grey-pin: #8a948e;
  --red-pin: #c8402f;
  --blue-pin: #2f63c8;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  padding-block: 32px 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  font-size: 16px;
  line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  .hb-root {
    --paper: #111814;
    --panel: #18221c;
    --ink: #e4ebe6;
    --muted: #9aaca1;
    --line: #2b3a31;
    --accent: #5cbf8d;
    --accent-soft: #1f3a2c;
    --mark: #e3a64a;
    --mark-soft: #3a2e19;
    --bar-muted: #3c4d43;
    --danger: #ffb4b4;
    color-scheme: dark;
  }
}
.hb-wrap { gap: 28px; max-width: 60rem; margin-inline: auto; display: grid; }
.hb-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.hb-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.hb-nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 0; }
.hb-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.hb-logout button {
  font: inherit;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  padding: 8px;
}
.hb-sample {
  background: var(--mark-soft);
  border: 1px solid var(--mark);
  border-radius: 8px;
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
}
.hb-eyebrow {
  font-family: var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.hb-title {
  font-family: var(--display);
  text-wrap: balance;
  letter-spacing: .01em;
  margin: 4px 0 0;
  font-size: clamp(40px, 7vw, 60px);
  font-weight: 700;
  line-height: 1;
}
.hb-lede { text-wrap: pretty; max-width: 42rem; margin: 12px 0 0; font-size: 19px; }
.hb-lede b { font-variant-numeric: tabular-nums; font-weight: 600; }
.hb-asof { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.hb-filter { flex-wrap: wrap; align-items: center; gap: 10px; display: flex; }
.hb-filter label { color: var(--muted); font-size: 14px; }
.hb-select {
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 13rem;
  max-width: 100%;
  padding: 8px 10px;
  font-size: 16px;
}
.hb-select:focus-visible, .hb-chip:focus-visible, .hb-chart a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hb-chip {
  font: inherit;
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  text-decoration: none;
}
.hb-chip:hover { color: var(--ink); border-color: var(--muted); }
.hb-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 14px; display: grid; }
.hb-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 18px 20px;
  display: grid;
}
.hb-label { color: var(--muted); font-size: 14px; }
.hb-big {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.05;
}
.hb-big.is-good { color: var(--accent); }
.hb-big small { color: var(--muted); margin-left: 6px; font-size: 22px; font-weight: 500; }
.hb-note { color: var(--muted); margin: 0; font-size: 13px; }
.hb-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  display: grid;
}
.hb-card h2 {
  font-family: var(--display);
  letter-spacing: .01em;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}
.hb-card p { margin: 0; }
.hb-next { border-left: 4px solid var(--accent); gap: 8px; }
.hb-next-label {
  font-family: var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.hb-next h2 { font-size: 30px; }
.hb-next p { text-wrap: pretty; max-width: 42rem; }
.hb-meter {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 34px;
  position: relative;
  overflow: hidden;
}
.hb-meter-fill { background: var(--accent); border-radius: 5px 0 0 5px; position: absolute; inset: 0 auto 0 0; }
.hb-meter-tick { background: var(--mark); width: 2px; position: absolute; top: 0; bottom: 0; }
.hb-meter-scale { height: 40px; color: var(--muted); font-size: 13px; position: relative; }
.hb-meter-scale span { white-space: nowrap; text-align: center; line-height: 1.25; position: absolute; top: 4px; transform: translate(-50%); }
.hb-meter-scale span.is-end { text-align: right; transform: translate(-100%); }
.hb-meter-scale span.is-start { text-align: left; transform: none; }
.hb-meter-scale b { color: var(--mark); font-weight: 600; }
.hb-chart { min-height: 200px; position: relative; }
.hb-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.hb-axis-text { fill: var(--muted); font-size: 12px; font-family: var(--body); }
.hb-grid { stroke: var(--line); stroke-width: 1px; }
.hb-ref { stroke: var(--mark); stroke-width: 1.5px; stroke-dasharray: 6 4; }
.hb-ref-text { fill: var(--mark); font-size: 12px; font-family: var(--body); font-weight: 600; }
.hb-bar { fill: var(--accent); }
.hb-bar.is-dim { fill: var(--bar-muted); }
.hb-tablewrap { overflow-x: auto; }
.hb-table { border-collapse: collapse; font-variant-numeric: tabular-nums; width: 100%; font-size: 15px; }
.hb-table th {
  text-align: left;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
}
.hb-table td { border-bottom: 1px solid var(--line); vertical-align: top; padding: 10px; }
.hb-table tr:last-child td { border-bottom: 0; }
.hb-num { text-align: right; }
.hb-table tfoot td { border-top: 1px solid var(--line); border-bottom: 0; font-weight: 600; }
.hb-table tr.is-zero { color: var(--muted); }
.hb-pill { border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 0 9px; font-size: 12px; display: inline-block; }
.hb-pill.is-live { color: var(--accent); background: var(--accent-soft); border-color: currentColor; }
.hb-days > summary {
  cursor: pointer;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  list-style: none;
  display: flex;
  min-height: 44px;
}
.hb-days > summary::-webkit-details-marker { display: none; }
.hb-days > summary:focus-visible { outline: 2px solid var(--muted); outline-offset: 4px; border-radius: 4px; }
.hb-days-hint { color: var(--muted); white-space: nowrap; font-size: 14px; }
.hb-days-hide, .hb-days[open] .hb-days-show { display: none; }
.hb-days[open] .hb-days-hide { display: inline; }
.hb-days-chev { margin-left: 6px; display: inline-block; }
.hb-days[open] .hb-days-chev { transform: rotate(180deg); }
.hb-days:not([open]) { gap: 0; }
.hb-log-scroll {
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
  scrollbar-gutter: stable;
  max-height: 26rem;
  padding-right: 8px;
  overflow-y: auto;
}
.hb-log { margin: 0; padding: 0; list-style: none; display: grid; }
.hb-log li {
  border-bottom: 1px dashed var(--line);
  grid-template-columns: 7.5rem 1fr auto;
  align-items: baseline;
  gap: 4px 16px;
  padding: 12px 0;
  display: grid;
}
.hb-log li:last-child { border-bottom: 0; }
.hb-log .day { font-family: var(--display); font-size: 18px; font-weight: 600; }
.hb-log .what { min-width: 0; }
.hb-log .hrs { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; font-size: 14px; }
@media (width <= 520px) {
  .hb-log li { grid-template-columns: 1fr auto; }
  .hb-log .hrs { grid-area: 1 / 2; }
  .hb-log .what { grid-area: 2 / 1 / auto / -1; }
  .hb-big { font-size: 42px; }
}
.hb-foot { color: var(--muted); max-width: 42rem; margin: 0; font-size: 14px; }
.hb-state { text-align: center; color: var(--muted); padding: 48px 0; }
.hb-login {
  max-width: 22rem;
  margin: 8vh auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: grid;
  gap: 8px;
}
.hb-login input, .hb-login button {
  font: inherit;
  font-size: 16px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.hb-login button { background: var(--accent); color: #fff; border: 0; cursor: pointer; margin-top: 8px; }
.hb-error { color: var(--danger); margin: 0; }
.tp-root { padding-block: 20px 40px; }
.tp-wrap { gap: 14px; max-width: 52rem; }
.tp-head .hb-title { font-size: clamp(34px, 6vw, 48px); }
.tp-lede { color: var(--muted); margin: 6px 0 0; font-size: 16px; }
.tp-strip { flex-wrap: wrap; gap: 8px; display: flex; }
.tp-next {
  background: var(--panel);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  font-size: 15px;
  display: inline-flex;
}
.tp-next-label {
  font-family: var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.tp-card { gap: 8px; padding: 14px 16px; }
.tp-card h2 { flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 20px; display: flex; }
.tp-sub { font-family: var(--body); color: var(--muted); letter-spacing: 0; font-size: 13px; font-weight: 400; }
.tp-root details > summary { cursor: pointer; list-style: none; }
.tp-root details > summary::-webkit-details-marker { display: none; }
.tp-root details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.tp-chev { color: var(--muted); flex: none; }
.tp-root details[open] > summary .tp-chev { transform: rotate(180deg); }
.tp-rows { margin: 0; padding: 0; list-style: none; display: grid; }
.tp-rows > li + li { border-top: 1px solid var(--line); }
.tp-row > summary {
  grid-template-columns: 9.5rem 1fr 16px;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  display: grid;
  min-height: 44px;
}
.tp-time {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  display: grid;
}
.tp-time small { font-family: var(--body); color: var(--muted); font-size: 12px; font-weight: 400; }
.tp-what { min-width: 0; line-height: 1.3; display: grid; }
.tp-what b { font-weight: 600; }
.tp-what span { color: var(--muted); font-size: 14px; }
.tp-row.is-next .tp-time { color: var(--accent); }
.tp-row.is-next .tp-what b::after {
  content: "Next";
  color: var(--accent);
  background: var(--accent-soft);
  vertical-align: 1px;
  border-radius: 999px;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
}
.tp-detail { gap: 3px; margin: 0 0 10px calc(9.5rem + 12px); padding-left: 1.1em; font-size: 14px; display: grid; }
@media (width <= 560px) {
  .tp-row > summary { grid-template-columns: 6.5rem 1fr 16px; gap: 10px; }
  .tp-time { font-size: 15px; }
  .tp-detail { margin-left: 0; }
}
.tp-grey p { margin: 0; font-size: 15px; }
.tp-legend {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  list-style: none;
  display: flex;
}
.tp-legend li { align-items: center; gap: 6px; display: inline-flex; }
.tp-dot { width: 12px; height: 12px; box-shadow: 0 0 0 1px var(--line); border-radius: 50%; flex: none; }
.tp-dot.is-red { background: var(--red-pin); }
.tp-dot.is-blue { background: var(--blue-pin); }
.tp-dot.is-grey { background: var(--grey-pin); }
.tp-two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  align-items: start;
  gap: 14px;
  display: grid;
}
.tp-items { margin: 0; padding: 0; list-style: none; display: grid; }
.tp-items > li + li { border-top: 1px dashed var(--line); }
.tp-item > summary {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  font-size: 15px;
  display: flex;
  min-height: 44px;
}
.tp-item > summary span:first-child::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.tp-two > section:last-child .tp-item > summary span:first-child::before { content: "•"; color: var(--muted); }
.tp-item p { color: var(--muted); margin: 0 0 8px 22px; font-size: 14px; }
.tp-upnext .tp-item > summary span:first-child { flex: 1; }
.tp-upnext .tp-item > summary span:first-child::before { content: "→"; }
.tp-tag {
  font-style: normal;
  font-family: var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
}
.tp-tag.is-now { color: var(--accent); border-color: currentColor; }
.tp-block > summary { justify-content: space-between; align-items: center; gap: 10px; display: flex; min-height: 44px; }
.tp-block:not([open]) { gap: 0; }
.tp-block p { margin: 0; font-size: 15px; }
.tp-counts { gap: 2px; margin: 0; padding: 0; font-size: 15px; list-style: none; display: grid; }
.tp-counts li { grid-template-columns: 2.5rem 1fr; align-items: baseline; gap: 10px; display: grid; }
.tp-count-n {
  font-family: var(--display);
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: 19px;
  font-weight: 600;
}
.tp-never { gap: 3px; margin: 0; padding-left: 1.1em; font-size: 14px; display: grid; }
.tp-foot { color: var(--muted); margin: 0; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .tp-chev, .hb-days-chev { transition: none; }
}
