/* The homepage's business tools: a bento of the tools, each tile with the product inside it, and
   a closing tile that plays one day on one balance. The pictures (`.htu-*`) are drawn like the
   product in plain CSS; home-tools.js plays each tile's moment and the day. Before the script
   runs (or without it) everything shows in its finished state. */

.ht {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hair: rgba(11, 16, 32, 0.07);
  --lift-1: 0 1px 1px rgba(11, 16, 32, 0.03), 0 2px 8px -2px rgba(11, 16, 32, 0.06);
  --lift-2: 0 1px 2px rgba(11, 16, 32, 0.04), 0 16px 40px -16px rgba(11, 16, 32, 0.18);
  background: linear-gradient(180deg, #fff 0%, var(--ink-50) 100%);
}
.ht .h2 {
  text-wrap: balance;
}
.ht-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* The grid */
.ht__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 300px;
  gap: 16px;
  max-width: 1120px;
  margin: 56px auto 0;
}
.ht-t {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--hair),
    var(--lift-1);
  overflow: hidden;
  isolation: isolate;
  color: inherit;
  transition:
    box-shadow 0.5s var(--ease),
    transform 0.6s var(--ease);
}
.ht-t:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--hair),
    var(--lift-2);
}
.ht-t:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 3px;
}
.ht-t--store {
  grid-column: span 2;
  grid-row: span 2;
}
.ht-t--wide {
  grid-column: span 2;
}
.ht-t--full {
  grid-column: 1 / -1;
}
.ht-t__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink-900);
  text-wrap: balance;
}
.ht-t--store .ht-t__title {
  max-width: 340px;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.ht-t__go {
  position: absolute;
  top: 28px;
  right: 28px;
  display: grid;
  color: var(--ink-900);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
}
.ht-t:hover .ht-t__go,
.ht-t:focus-visible .ht-t__go {
  opacity: 1;
  transform: none;
}
.ht-t__vis {
  position: relative;
  flex: 1;
  margin-top: 20px;
}

/* Each tile's picture */
.ht-store {
  position: absolute;
  top: 0;
  right: -28px;
  bottom: -28px;
  left: 0;
}
/* The shop window fills the tile and runs off its bottom and right edges, like a page that
   scrolls on; the new order floats over its lower left. */
.ht-store > .htu {
  position: absolute;
  inset: 0;
}
.ht-store .htu-win {
  height: 100%;
  border-radius: 14px 0 0 0;
}
.ht-store .htu-chip {
  position: absolute;
  bottom: 52px;
  left: 20px;
  max-width: calc(100% - 68px);
  box-shadow:
    0 0 0 1px var(--hair),
    0 24px 48px -16px rgba(11, 16, 32, 0.32);
}
.ht-book,
.ht-till {
  position: absolute;
  top: 0;
  right: -28px;
  bottom: -28px;
  left: -28px;
  border-top: 1px solid var(--hair);
}
.ht-till {
  background: #fbfbfd;
}
.ht-spend {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 20px;
  align-items: end;
}
.ht-books {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}
.ht-t--full .ht-books {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.ht-t--full .htu-apps {
  max-width: 340px;
}
.ht-t--hw {
  background: #eef1f8;
}
.ht-t--hw .ht-t__title {
  position: relative;
  z-index: 1;
  max-width: 230px;
}
.ht-hw {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 52%;
  height: calc(100% + 132px);
  z-index: -1;
  overflow: hidden;
}
.ht-hw img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 62%;
  transform: scale(1.55);
  transform-origin: 64% 66%;
}
.ht-hw__soon {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-500);
}
.ht-hw__soon b {
  font-weight: 600;
  color: var(--ink-800);
}

/* The parts of the pictures */
.htu {
  font-size: 13px;
  color: var(--ink-900);
}
.htu-win {
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--hair),
    var(--lift-2);
  overflow: hidden;
}
.htu-win__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--hair);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
}
.htu-win__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-100);
}
.htu-win__bar span {
  margin-left: 8px;
}
.htu-ok {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint-500);
  color: #fff;
}
.htu-ok .icon {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}
.htu-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--hair),
    var(--lift-2);
  font-size: 13px;
  white-space: nowrap;
}
.htu-chip b {
  font-weight: 600;
}
.htu-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-500);
}
.htu-chip em {
  margin-left: auto;
  padding-left: 12px;
  font-style: normal;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.htu-pm {
  flex: none;
  width: auto;
  height: 18px;
  margin-left: 2px;
}
.htu-shop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}
.htu-shop figure {
  margin: 0;
}
.htu-shop figcaption {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 8px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.htu-shop figcaption span {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-500);
}
.htu-ph {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}
.htu-ph::before,
.htu-ph::after {
  content: "";
  position: absolute;
}
.htu-ph--tote {
  background: linear-gradient(160deg, #efe7da, #e3d5bf);
}
.htu-ph--tote::after {
  top: 30%;
  right: 31%;
  bottom: 18%;
  left: 31%;
  border-radius: 3px 3px 6px 6px;
  background: #cdb48d;
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.22);
}
.htu-ph--tote::before {
  top: 18%;
  right: 39%;
  left: 39%;
  height: 18%;
  border: 2px solid #cdb48d;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.htu-ph--mug {
  background: linear-gradient(160deg, #e6ebf0, #d5dde6);
}
.htu-ph--mug::after {
  top: 34%;
  bottom: 24%;
  left: 32%;
  width: 30%;
  border-radius: 2px 2px 8px 8px;
  background: #8ea1b5;
}
.htu-ph--mug::before {
  top: 42%;
  left: 58%;
  width: 12%;
  height: 20%;
  border: 2px solid #8ea1b5;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}
.htu-ph--vase {
  background: linear-gradient(160deg, #f0e6e1, #e5d3cb);
}
.htu-ph--vase::after {
  top: 24%;
  right: 38%;
  bottom: 20%;
  left: 38%;
  border-radius: 40% 40% 30% 30% / 30% 30% 40% 40%;
  background: #c79b88;
}
.htu-ph--plate {
  background: linear-gradient(160deg, #e7ece4, #d6dfd2);
}
.htu-ph--plate::after {
  top: 22%;
  right: 22%;
  bottom: 22%;
  left: 22%;
  border-radius: 50%;
  background: #f4f6f1;
  box-shadow:
    0 6px 14px -6px rgba(40, 60, 30, 0.35),
    inset 0 0 0 7px #e9eee5;
}
.htu-ph--candle {
  background: linear-gradient(160deg, #f3ebdf, #e8dac6);
}
.htu-ph--candle::after {
  top: 38%;
  right: 34%;
  bottom: 20%;
  left: 34%;
  border-radius: 6px 6px 8px 8px;
  background: linear-gradient(180deg, #fdfaf5 0 18%, #d9c3a3 18%);
}
.htu-ph--candle::before {
  top: 24%;
  left: 48%;
  width: 4%;
  height: 12%;
  border-radius: 50% 50% 40% 40%;
  background: #e9a54b;
}
.htu-ph--towel {
  background: linear-gradient(160deg, #e2e7ef, #d0d8e4);
}
.htu-ph--towel::after {
  top: 26%;
  right: 28%;
  bottom: 22%;
  left: 28%;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #f6f8fb 0 10px, #7c93b3 10px 13px);
}
.htu-ph--board {
  background: linear-gradient(160deg, #efe9e1, #e2d8cb);
}
.htu-ph--board::after {
  top: 30%;
  right: 22%;
  bottom: 30%;
  left: 22%;
  border-radius: 10px 30px 30px 10px;
  background: linear-gradient(180deg, #c99d6c, #b5875a);
}
.htu-ph--board::before {
  top: 45%;
  right: 25%;
  z-index: 1;
  width: 7%;
  height: 10%;
  border-radius: 50%;
  background: #e2d8cb;
}
.htu-ph--book {
  background: linear-gradient(160deg, #e9e6ef, #d9d4e4);
}
.htu-ph--book::after {
  top: 22%;
  right: 30%;
  bottom: 18%;
  left: 30%;
  border-radius: 3px 6px 6px 3px;
  background: linear-gradient(90deg, #2f3550 0 82%, #c94f3d 82% 90%, #2f3550 90%);
}
.htu-day__row {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  min-height: 38px;
  border-top: 1px solid var(--hair);
}
.htu-day__row:first-child {
  border-top: 0;
}
.htu-day__row > span {
  padding-left: 12px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-400);
}
.htu-appt {
  margin: 4px 10px 4px 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--lilac-100);
  color: var(--lilac-700);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.htu-appt small {
  display: block;
  font-weight: 500;
  opacity: 0.8;
}
.htu-appt--new {
  background: var(--ink-900);
  color: #fff;
}
.htu-till {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px 10px;
}
.htu-till span {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--hair);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.3s;
}
.htu-till span::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--c);
}
.htu-till small {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-500);
}
.htu-till span.is-hit {
  transform: scale(0.95);
  box-shadow: 0 0 0 1.5px var(--ink-900);
}
.htu-pay {
  position: relative;
  height: 40px;
  margin: 0 16px 16px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ink-900);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.htu-pay span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.55s var(--ease),
    opacity 0.35s;
}
.htu-pay span:last-child {
  background: var(--mint-600);
  transform: translateY(100%);
}
.htu-pay.is-paid span:first-child {
  transform: translateY(-100%);
  opacity: 0;
}
.htu-pay.is-paid span:last-child {
  transform: none;
}
.htu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1.586;
  padding: 14px 16px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(140deg, #29d3b0 0%, #00a888 55%, #00866d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 24px 40px -24px rgba(0, 80, 60, 0.55);
  color: #fff;
}
.htu-card::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 58%
  );
  transform: translateX(-60%);
  transition: transform 1.4s var(--ease);
}
.htu-card.is-shine::after {
  transform: translateX(60%);
}
.htu-card b {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.htu-card small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.85;
}
.htu-exp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--hair);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
}
.htu-exp__to {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e6f6fc;
  color: #0b6e98;
  transition:
    background 0.35s,
    color 0.35s;
}
.htu-exp__to img {
  margin-left: -4px;
  transition:
    filter 0.35s,
    opacity 0.35s;
}
.htu-exp__list,
.htu-ledger {
  margin: 0;
  padding: 0;
  list-style: none;
}
.htu-exp__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  transition: opacity 0.4s var(--ease);
}
.htu-exp__list li + li,
.htu-ledger li + li {
  border-top: 1px solid var(--hair);
}
.htu-exp__m {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.htu-exp__list b {
  min-width: 64px;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.htu-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 11.5px;
  font-weight: 600;
  transition:
    background 0.35s,
    color 0.35s;
}
.htu-ledger li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink-700);
}
.htu-ledger li b {
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}
.htu-ledger .htu-ok {
  transition:
    background 0.35s,
    color 0.35s;
}
.htu-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: end;
  gap: 8px;
}
.htu-apps > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--hair);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-700);
  transition:
    box-shadow 0.4s,
    transform 0.4s var(--ease);
}
.htu-apps i {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
}
.htu-apps img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.htu-apps > span.is-on {
  box-shadow:
    0 0 0 1.5px var(--ink-900),
    0 10px 20px -12px rgba(11, 16, 32, 0.35);
  transform: translateY(-1px);
}

/* Starting states, only once the script is here to play them */
.js .ht.is-live [data-in] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.7s var(--ease);
}
.js .ht.is-live [data-in].is-in {
  opacity: 1;
  transform: none;
}
.js .ht.is-live .htu-exp__list li {
  opacity: 0.35;
}
.js .ht.is-live .htu-exp__list li.is-on {
  opacity: 1;
}
.js .ht.is-live .htu-exp__list li:not(.is-on) .htu-tag,
.js .ht.is-live .htu-exp__to:not(.is-on) {
  background: var(--ink-50);
  color: var(--ink-500);
}
.js .ht.is-live .htu-exp__to:not(.is-on) img {
  filter: grayscale(1);
  opacity: 0.55;
}
.js .ht.is-live .htu-ledger li:not(.is-on) .htu-ok {
  background: var(--ink-100);
  color: transparent;
}

/* One balance, one day */
.ht-day {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 32px 36px 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--hair),
    var(--lift-1);
}
.ht-day__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.ht-day__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink-900);
  text-wrap: balance;
}
.ht-bal {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 14px;
}
.ht-bal__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}
.ht-bal__delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.3s,
    transform 0.5s var(--ease),
    background 0.3s,
    color 0.3s;
}
.ht-bal__delta:empty {
  display: none;
}
.ht-bal__delta.is-in {
  opacity: 1;
  transform: none;
}
.ht-bal__delta.is-up {
  background: var(--mint-50);
  color: var(--mint-700);
}
.ht-bal__delta.is-down {
  background: var(--ink-50);
  color: var(--ink-700);
}
.ht-bal__delta img {
  width: 16px;
  height: 16px;
  margin-left: -4px;
}
.ht-track {
  position: relative;
  margin-top: 24px;
  padding: 0 88px;
}
.ht-rail {
  position: relative;
  height: 140px;
}
.ht-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-100);
}
.ht-line i {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--x, 100%);
  height: 100%;
  border-radius: 2px;
  background: var(--ink-900);
}
.ht-now {
  position: absolute;
  bottom: -5px;
  left: var(--x, 100%);
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--ink-900);
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 5px var(--ink-100);
}
.ht-ev {
  position: absolute;
  bottom: 0;
  left: var(--at);
  width: 0;
}
.ht-ev__dot {
  position: absolute;
  bottom: -3px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ink-900);
  transition: box-shadow 0.3s;
}
.ht-ev__stem {
  position: absolute;
  bottom: 10px;
  left: -0.5px;
  width: 1px;
  height: 22px;
  background: var(--ink-200);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}
.ht-ev__c {
  position: absolute;
  bottom: 36px;
  left: -84px;
  width: 168px;
  padding: 11px 13px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--hair),
    var(--lift-2);
  transition:
    opacity 0.3s var(--ease),
    transform 0.45s var(--ease);
}
.ht-ev__k {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-400);
}
.ht-ev__k .icon {
  color: var(--ink-500);
}
.ht-ev__t {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-900);
}
.ht-ev__a {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--mint-700);
}
.ht-ev__a--out {
  color: var(--ink-700);
}
.ht-hours {
  position: relative;
  height: 28px;
  margin-top: 12px;
}
.ht-hours span {
  position: absolute;
  top: 0;
  left: var(--at);
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-400);
}
.js .ht.is-live .ht-ev:not(.is-in) .ht-ev__dot {
  box-shadow: 0 0 0 2px var(--ink-200);
}
.js .ht.is-live .ht-ev:not(.is-in) .ht-ev__stem {
  transform: scaleY(0);
}
.js .ht.is-live .ht-ev:not(.is-in) .ht-ev__c {
  opacity: 0;
  transform: translateY(8px);
}

/* Narrower: two tiles a row, and the day runs down its tile */
@media (max-width: 1040px) {
  .ht-rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;
  }
  .ht-track {
    margin-top: 24px;
    padding: 0 0 0 28px;
  }
  .ht-line {
    top: 6px;
    right: auto;
    bottom: 6px;
    left: -24px;
    width: 2px;
    height: auto;
  }
  .ht-line i {
    width: 100%;
    height: var(--x, 100%);
  }
  .ht-now {
    top: var(--x, 100%);
    bottom: auto;
    left: -5px;
    margin: -6px 0 0;
  }
  .ht-ev {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
  }
  .ht-ev__dot,
  .ht-ev__stem,
  .ht-hours {
    display: none;
  }
  .ht-ev__c {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
  }
  .js .ht.is-live .ht-ev:not(.is-in) .ht-ev__c {
    opacity: 0.38;
    transform: none;
  }
  .ht-day {
    padding: 24px;
    border-radius: 24px;
  }
  .ht-day__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ht-day__title {
    font-size: 22px;
  }
  .ht-bal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
@media (min-width: 641px) and (max-width: 1040px) {
  .ht-day {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 32px;
    padding: 32px;
  }
  .ht-track {
    margin: 0;
  }
}
@media (min-width: 641px) and (max-width: 1180px) {
  /* The store spans the whole row here: four products across, not three. */
  .ht-store .htu-shop {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Below about 1180px four columns leave Bookings and the till too narrow (their tiles fall
   under 270px), so the grid goes to two. */
@media (max-width: 1180px) {
  .ht__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 280px;
  }
}
@media (max-width: 640px) {
  .ht__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 12px;
    margin-top: 36px;
  }
  .ht-t,
  .ht-t--store,
  .ht-t--wide,
  .ht-t--full {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
    padding: 24px;
    border-radius: 24px;
  }
  .ht-t--store {
    min-height: 440px;
  }
  .ht-t--store .ht-t__title {
    font-size: 26px;
  }
  .ht-t__title {
    font-size: 20px;
  }
  .ht-t__go {
    top: 24px;
    right: 24px;
    color: var(--ink-400);
    opacity: 1;
    transform: none;
  }
  .ht-store {
    right: -24px;
    bottom: -24px;
  }
  .ht-store .htu-chip {
    bottom: 44px;
    left: 12px;
    max-width: calc(100% - 48px);
  }
  .ht-store .htu-chip b {
    display: none;
  }
  .ht-book,
  .ht-till {
    right: -24px;
    bottom: -24px;
    left: -24px;
  }
  .ht-t[data-play="spend"] .ht-t__vis,
  .ht-t[data-play="books"] .ht-t__vis {
    display: flex;
    align-items: flex-end;
  }
  .ht-spend,
  .ht-books,
  .ht-t--full .ht-books {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
  }
  .ht-spend {
    justify-items: start;
  }
  .ht-spend .htu-card {
    width: 184px;
  }
  .ht-spend .htu-exp {
    width: 100%;
  }
  .ht-t--hw .ht-t__vis {
    display: flex;
    flex-direction: column;
  }
  .ht-hw__soon {
    position: relative;
  }
  .ht-hw {
    position: relative;
    right: auto;
    bottom: auto;
    order: 2;
    z-index: 0;
    width: auto;
    height: 200px;
    margin: 16px -24px -24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ht *,
  .ht *::after {
    transition-duration: 0s !important;
  }
}
