/* ==========================================================================
   Healthchecks styles.

   A small hand-written design system (tokens.css + app.css), cut down to
   what these pages use. Every value comes from a token in tokens.css: if you
   need a colour or a size here, add it there first.

   Sections: document and reset, typography, skip link, top bar, page shell,
   cards, buttons, forms, alerts, toasts, empty states, utilities, responsive,
   sign-in, health checks.
   ========================================================================== */

/* -------------------------------------------------- 1. Document and reset --- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--text);
  font: var(--w-normal) var(--t-base) / var(--lh) var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}

img,
svg {
  vertical-align: middle;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* Kills the 300ms tap delay on touch devices. */
a,
button {
  touch-action: manipulation;
}

/* Harvest's own focus state is a recoloured native outline, which on an input
   is nearly indistinguishable from hover. In an application where people tab
   across seven day cells in a row, that isn't good enough, so this is a real
   ring. It is the one place the visual system deliberately exceeds Harvest. */
:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 2px;
}

*:disabled {
  cursor: not-allowed;
  opacity: .7;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------- 2. Typography --- */

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: var(--w-semi);
  text-wrap: balance;
}

h1 {
  font-size: var(--t-xxl);
  line-height: var(--lh-tight);
  letter-spacing: -.4px;
}

/* Card titles, which is what h2 nearly always is here. */
h2 {
  font-size: var(--t-md);
}

h3 {
  font-size: var(--t-base);
}

p {
  margin: 0 0 var(--s-md);
}

b,
strong {
  font-weight: var(--w-bold);
}

a {
  color: var(--text-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Figures that sit in a column must line up, or scanning them is guesswork. */
.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hint,
.sml {
  font-size: var(--t-sm);
  line-height: var(--lh);
  color: var(--text-muted);
}

.lede {
  font-size: var(--t-md);
  color: var(--text-muted);
}

.micro {
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
  color: var(--text-muted);
}

kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  border: 1px solid var(--a-25);
  border-bottom-width: 2px;
  border-radius: var(--r-sm);
  background: var(--white);
  font: var(--w-semi) var(--t-xs) / 1.5 var(--font-mono);
  text-align: center;
}

/* ---------------------------------------------------------- 3. Skip link --- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--s-sm) var(--s-md);
  background: var(--charcoal);
  color: var(--white);
  border-radius: 0 0 var(--r) 0;
  text-decoration: none;
}

.skip:focus {
  left: 0;
}

/* ------------------------------------------------------------ Top bar ---
   The bar has no section links: brand left, account right. */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--a-25);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: var(--s-xs);
  height: var(--nav-height);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--s-md);
}

.brand {
  font-size: var(--t-md);
  font-weight: var(--w-bold);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav .brand {
  display: flex;
  align-items: center;
  margin-right: var(--s-sm);
}

.brand span {
  border-bottom: 0;
  background: var(--orange-100);
  color: var(--text);
  font-weight: var(--w-semi);
}

.nav-right {
  display: flex;
  align-items: center;
  flex: none;
  gap: var(--s-md);
  margin-left: auto;
}

.avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 100%;
  background: var(--orange-100);
  color: var(--orange-600);
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
}

/* --------------------------------------------------------- 5. Page shell --- */

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--s-lg) var(--s-md) var(--s-xl);
}

.page-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-md);
  margin-bottom: var(--s-md);
}

.spacer {
  margin-left: auto;
}

.two {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--s-md);
  align-items: start;
}

.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-md);
}

/* -------------------------------------------------------------- 6. Cards --- */

.card {
  margin-bottom: var(--s-md);
  border: 1px solid var(--a-25);
  border-radius: var(--r);
  background: var(--white);
  overflow: hidden;
}

.card-pad {
  padding: var(--s-md);
}

.card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-sm);
  padding: var(--s-md);
  border-bottom: 1px solid var(--a-25);
}

.card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-sm);
  padding: var(--s-sm) var(--s-md);
  border-top: 1px solid var(--a-25);
  background: var(--a-07);
}

/* ------------------------------------------------------------ 7. Buttons ---
   Hover darkens only the border; the fill stays put. Loud hover states make a
   dense table feel jumpy when the pointer crosses it. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-xs);
  height: var(--h);
  padding: 0 var(--s-md);
  border: 1px solid var(--a-25);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--sh-control);
  color: var(--gray-900);
  font-size: var(--t-base);
  font-weight: var(--w-semi);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--a-62);
  color: var(--gray-900);
}

.btn:active {
  background: var(--a-07);
}

/* Primary is green, not orange. See the note at the top of tokens.css. */
.btn--primary {
  border-color: transparent;
  background: var(--green);
  color: var(--white);
}

.btn--primary:hover {
  border-color: transparent;
  background: var(--green-600);
  color: var(--white);
}

.btn--primary:active {
  background: var(--green-700);
}

.btn--dark {
  border-color: transparent;
  background: var(--charcoal);
  color: var(--white);
}

.btn--dark:hover {
  border-color: transparent;
  background: #1d1e1ce6;
  color: var(--white);
}

.btn--danger {
  border-color: transparent;
  background: var(--red);
  color: var(--white);
}

.btn--danger:hover {
  border-color: transparent;
  background: var(--red-600);
  color: var(--white);
}

.btn--quiet {
  border-color: transparent;
  background: none;
  box-shadow: none;
  color: var(--text-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn--quiet:hover {
  border-color: transparent;
  background: var(--a-07);
  color: var(--text-blue);
}

.btn--lg {
  height: var(--h-lg);
  font-size: var(--t-md);
}

.btn--sm {
  height: var(--h-sm);
  padding: 0 var(--s-sm);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
}

.btn--xs {
  height: var(--h-xs);
  padding: 0 var(--s-sm);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  border-color: var(--a-25);
  background: var(--a-07);
  box-shadow: none;
  color: var(--a-62);
}

/* -------------------------------------------------------------- 8. Forms ---
   An input carries an inset well and a select carries an outward shadow, so a
   field never reads as the same kind of object as a control.

   `input[type="text"]` does not match `<input>` with no type attribute, even
   though HTML defaults it to text. Those fall through to the browser's native
   field. Include the implicit case, and the other textual types we use. */

.input,
input:not([type]),
input[type="text"],
input[type="email"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea {
  width: 100%;
  height: var(--h);
  padding: 0 var(--s-sm);
  border: 1px solid var(--a-30);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--sh-well);
  color: var(--text);
  font-size: var(--t-base);
}

textarea {
  height: auto;
  padding: 6px var(--s-sm);
  line-height: var(--lh);
  resize: vertical;
}

::placeholder {
  color: var(--a-62);
}

select {
  width: auto;
  max-width: 100%;
  height: var(--h);
  padding: 0 var(--s-xl) 0 var(--s-sm);
  border: 1px solid var(--a-30);
  border-radius: var(--r);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231d1e1c' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat calc(100% - 8px) 50%;
  box-shadow: var(--sh-control);
  color: var(--text);
  font-size: var(--t-base);
  appearance: none;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--a-62);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(250, 93, 0, .25);
}

input[readonly] {
  border-color: var(--a-25);
  background: var(--a-07);
  color: var(--text-muted);
}

.field {
  margin-bottom: var(--s-md);
}

.phone-row {
  display: flex;
  gap: var(--s-sm);
  align-items: stretch;
}

.phone-row select {
  flex: 0 1 14rem;
  min-width: 9rem;
}

.phone-row input {
  flex: 1 1 8rem;
  min-width: 0;
}

/* A GBP amount. One outer well, with the pound sign as a prefix addon — not
   a "GBP" hint under a plain box. The focus ring wraps the whole control so
   the prefix and the input do not light up as two objects. */
.money {
  display: flex;
  width: 100%;
  height: var(--h);
  overflow: hidden;
  border: 1px solid var(--a-30);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--sh-well);
}

.money-prefix {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: var(--h);
  padding: 0 var(--s-sm);
  border-right: 1px solid var(--a-30);
  background: var(--a-07);
  color: var(--text-muted);
  font-weight: var(--w-semi);
  user-select: none;
}

.money > input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.money:hover {
  border-color: var(--a-62);
}

.money:hover .money-prefix {
  border-right-color: var(--a-62);
}

.money:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(250, 93, 0, .25);
}

.money:focus-within .money-prefix {
  border-right-color: var(--orange);
}

.money > input:hover,
.money > input:focus {
  border: 0;
  box-shadow: none;
}

.money:has(> .is-invalid) {
  border-color: var(--red);
  background: var(--red-100);
}

.money:has(> .is-invalid) .money-prefix {
  border-right-color: var(--red);
  background: var(--red-100);
}

.field > label {
  display: block;
  margin-bottom: var(--s-xs);
  font-weight: var(--w-semi);
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
}

.field-row > * {
  flex: 1;
  min-width: 160px;
}

/* Helper text and the error message are the same slot, so validation firing
   never reflows the form. */
.field-note {
  display: block;
  margin-top: var(--s-xs);
  font-size: var(--t-sm);
  color: var(--text-muted);
}

.field-note.is-error {
  color: var(--red);
}

/* An invalid field fills as well as reddening, so it is visible peripherally
   and without relying on colour vision. */
.is-invalid {
  border-color: var(--red);
  background: var(--red-100);
}

input[type="checkbox"],
input[type="radio"] {
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--a-30);
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: none;
  transform: translateY(2px);   /* optical alignment against 15px text */
  appearance: none;
}

input[type="radio"] {
  border-radius: 100%;
}

td input[type="checkbox"],
td input[type="radio"] {
  transform: none;
}

/* Selection, so orange. */
input[type="checkbox"]:checked {
  border-color: var(--orange);
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat 50%;
}

input[type="radio"]:checked {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 3px var(--white);
}

/* Segmented control — Day | Week | Month, Yes | No. The selected segment is
   the one flash of orange in an otherwise green and white toolbar. */
.segment {
  display: inline-flex;
}

.segment button,
.segment a {
  height: var(--h);
  margin-left: -1px;
  padding: 0 var(--s-md);
  border: 1px solid var(--a-25);
  border-radius: 0;
  background: var(--white);
  box-shadow: var(--sh-control);
  color: var(--gray-900);
  font-size: var(--t-base);
  font-weight: var(--w-semi);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.segment > :first-child {
  margin-left: 0;
  border-radius: var(--r) 0 0 var(--r);
}

.segment > :last-child {
  border-radius: 0 var(--r) var(--r) 0;
}

.segment > :only-child {
  border-radius: var(--r);
}

.segment .is-active {
  position: relative;
  z-index: 2;
  border-color: var(--orange);
  background: var(--orange-100);
  color: var(--charcoal);
}

/* Chips and statuses ------------------------------------------------------ */

.chip {
  display: inline-block;
  padding: var(--s-xs) var(--s-sm);
  border-radius: var(--r-pill);
  background: var(--a-07);
  color: var(--a-80);
  font-size: var(--t-xs);
  line-height: 1;
}

.chip--ok { background: var(--green-100); color: var(--text-green); }
.chip--warn { background: var(--yellow-100); color: var(--text-yellow); }
.chip--bad { background: var(--red-100); color: var(--text-red); }
.chip--info { background: var(--blue-100); color: var(--text-blue); }
.chip--accent { background: var(--orange-100); color: var(--orange-600); }

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: var(--t-sm);
  color: var(--text-muted);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background: var(--gray-500);
}

.status--ok::before { background: var(--green); }
.status--warn::before { background: var(--yellow-600); }
.status--bad::before { background: var(--red); }

/* ------------------------------------------------------------ 13. Alerts ---
   Five variants. A tinted card and a tinted banner share one colour language,
   so a warning reads the same wherever it appears. */

.callout {
  display: grid;
  grid-template-columns: min-content 1fr;
  gap: var(--s-sm) var(--s-md);
  margin: 0 0 var(--s-md);
  padding: var(--s-md);
  border: 1px solid var(--gray-300);
  border-radius: var(--r);
  background: var(--white);
}

.callout::before {
  content: "i";
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 100%;
  background: var(--gray-500);
  color: var(--white);
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
}

.callout > * {
  grid-column: 2;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
  margin-top: var(--s-md);
}

.callout--info { border-color: var(--blue-300); background: var(--blue-100); }
.callout--info::before { background: var(--blue); }

.callout--good { border-color: var(--green-200); background: var(--green-100); }
.callout--good::before { content: "\2713"; background: var(--green); }

.callout--warn { border-color: var(--yellow); background: var(--yellow-100); }
.callout--warn::before { content: "!"; background: var(--yellow-600); }

.callout--bad { border-color: var(--red-300); background: var(--red-100); }
.callout--bad::before { content: "!"; background: var(--red); }

/* ------------------------------------------------------------ 14. Toasts ---
   Shrink-to-fit chips, not full-width bars: a banner reports state, a chip
   acknowledges that something happened. Same colour language as the alerts. */

.toast-host {
  position: fixed;
  right: var(--s-md);
  bottom: var(--s-md);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-sm);
  max-width: 380px;
}

.toast {
  display: inline-block;
  padding: var(--s-sm) var(--s-md);
  border: 1px solid var(--gray-300);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--sh-toast);
  transition: opacity .2s;
}

.toast--good { border-color: var(--green-200); background: var(--green-100); }
.toast--warn { border-color: var(--yellow); background: var(--yellow-100); }
.toast--bad { border-color: var(--red-300); background: var(--red-100); }
.toast--info { border-color: var(--blue-300); background: var(--blue-100); }

.toast strong {
  display: block;
}

.toast.is-leaving {
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------ 17. Empty states ---
   The panel carries the personality; the actions live outside it, in the page
   chrome. An empty state with its own call to action inside is how you end up
   with two competing primary buttons. */

.empty {
  padding: var(--s-xl);
  border-radius: var(--r-lg);
  background: var(--a-07);
  color: var(--text-muted);
  font-size: var(--t-md);
  text-align: center;
  text-wrap: balance;
}

.empty .big {
  margin-bottom: var(--s-sm);
  color: var(--text);
  font-weight: var(--w-semi);
}

@media (min-width: 768px) {
  .empty {
    padding: var(--s-xxl);
  }
}

/* --------------------------------------------------------- 18. Utilities ---
   Deliberately few. A utility for every property is how a design system stops
   being one. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

.stack > * + * {
  margin-top: var(--s-md);
}

/* -------------------------------------------------------------- Responsive --- */

@media (max-width: 768px) {
  h1 {
    font-size: var(--t-lg);
  }
}

@media (max-width: 544px) {
  .callout {
    grid-template-columns: 1fr;
    padding: var(--s-sm);
  }

  .callout::before,
  .callout > * {
    grid-column: 1;
  }

  .toast-host {
    left: var(--s-md);
    right: var(--s-md);
    max-width: none;
  }

  .nav-user {
    display: none;
  }
}

/* ----------------------------------------------------------- 20. Sign-in ---
   The only page in the application with no navigation and one control. */

.signin {
  max-width: var(--signin-max);
  margin: var(--s-xxl) auto;
  text-align: center;
}

.signin .brand {
  display: inline-block;
  margin-bottom: var(--s-xl);
  font-size: var(--t-xxl);
}

.signin .btn {
  width: 100%;
}

.signin .card {
  text-align: left;
}

.signin form .btn {
  margin-top: var(--s-sm);
}

.nav-user {
  color: var(--text-muted);
  font-size: var(--t-sm);
}

/* ------------------------------------------------------ Health checks ---
   Dead-man's check-ins. Green tick is healthy, blue question is missing or
   waiting, grey pause is held. Orange stays off these marks on purpose. */

.hb-mark {
  display: inline-flex;
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}
.hb-mark svg { width: 100%; height: 100%; }
.hb-mark--ok { color: var(--green); }
.hb-mark--missing { color: var(--blue); }
.hb-mark--paused { color: var(--gray-500); }

.hb-list { overflow: hidden; }
.hb-row {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: var(--s-sm) var(--s-md);
  border-bottom: 1px solid var(--a-15);
}
.hb-row:last-child { border-bottom: 0; }
.hb-row:hover { background: var(--a-07); }
.hb-row-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--s-md);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.hb-row-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hb-row-interval {
  flex: none;
  width: 4.5rem;
  text-align: right;
}
.hb-row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.hb-row-actions form { margin: 0; }
.hb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--text-blue);
  cursor: pointer;
}
.hb-icon svg { width: 18px; height: 18px; }
.hb-icon:hover { background: var(--a-07); }
.hb-icon--danger { color: var(--red); }

.hb-head-tabs {
  display: flex;
  gap: var(--s-md);
}
.hb-head-tabs a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--t-sm);
}
.hb-head-tabs a svg { width: 16px; height: 16px; }
.hb-head-tabs a:hover,
.hb-head-tabs a.is-active { color: var(--text); }
.hb-head-tabs a.is-active { font-weight: var(--w-semi); }

.hb-detail {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) 1fr;
  gap: var(--s-lg);
  align-items: start;
}
@media (max-width: 800px) {
  .hb-detail { grid-template-columns: 1fr; }
}

.hb-dl {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
.hb-dl > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--s-md);
}
.hb-dl .k { color: var(--text-muted); }

.hb-code {
  margin: 0;
  padding: var(--s-sm) var(--s-md);
  border-radius: var(--r-sm);
  background: var(--a-07);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--t-sm);
}

.hb-activity h3 {
  margin: var(--s-md) 0 var(--s-sm);
  color: var(--text-blue);
  font-size: var(--t-base);
  font-weight: var(--w-semi);
}
.hb-activity h3:first-child { margin-top: 0; }
.hb-period {
  display: grid;
  grid-template-columns: 6.5rem 1fr 6.5rem;
  gap: var(--s-sm);
  align-items: center;
  margin-bottom: var(--s-lg);
}
.hb-period-end { font-size: var(--t-xs); }
.hb-period-end:last-child { text-align: right; }
.hb-period-track {
  position: relative;
  height: 2px;
  background: var(--a-25);
}
.hb-period-check {
  position: absolute;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.hb-period-tick {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: var(--green);
  box-shadow: inset 0 0 0 2px var(--white), 0 0 0 1px var(--green);
}

