/* Isolated OLED "Recent" list for the Hardware carousel.
   Scoped to .hw-fx__screen.is-recent so teaser.css / theme.css stay untouched. */

.hw-fx__recent {
  display: none;
}

.hw-fx__screen.is-recent .hw-fx__inner {
  display: flex;
  flex-direction: column;
}

.hw-fx__screen.is-recent .hw-fx__recent {
  display: flex;
  flex: none;
  align-items: center;
  height: 18%;
  padding: 0 5%;
  box-sizing: border-box;
  font-family: Manrope, Inter, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 8cqw;
  letter-spacing: 0.02em;
  color: #7fcfa2;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.hw-fx__screen.is-recent .hw-fx__list {
  display: block;
  height: 82%;
  flex: 1 1 auto;
  overflow: hidden;
  container-type: size;
}

.hw-fx__screen.is-recent .hw-fx__code { display: none; }

.hw-fx__screen.is-recent .hw-fx__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35em;
  height: 33.333cqh;
  margin: 0;
  padding: 0 5%;
  box-sizing: border-box;
  font-family: Manrope, Inter, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 9.2cqw;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #7fcfa2;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 8% / 18%;
}

.hw-fx__screen.is-recent .hw-fx__row.is-hi {
  opacity: 1;
  color: #c9ecd9;
  background: rgba(127, 207, 162, 0.18);
}

.hw-fx__name {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hw-fx__screen.is-recent .hw-fx__row:not(.is-hi) .hw-fx__name {
  color: rgba(127, 207, 162, 0.72);
}

.hw-fx__screen.is-recent .hw-fx__row.is-hi .hw-fx__name {
  color: #c9ecd9;
}

/* Recency ramp (newest to oldest, never red). Colour only the time, not the name. */
.hw-fx__when {
  flex: none;
  font-size: 7.2cqw;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
  margin-left: 0.3em;
}

.hw-fx__when.age-1 { color: #7fcfa2; } /* under 1 hour */
.hw-fx__when.age-2 { color: #a8c99a; } /* 1 to 6 hours */
.hw-fx__when.age-3 { color: #c6c48c; } /* 6 to 24 hours */
.hw-fx__when.age-4 { color: #d6b97e; } /* 1 to 3 days */
.hw-fx__when.age-5 { color: #d9a872; } /* 3 to 7 days */
.hw-fx__when.age-6 { color: #c99568; } /* older than 7 days */

/* Live code view on the 0.91" overlay: site, digits, countdown bar (not a seconds label). */
.hw-fx__screen.is-code .hw-fx__code {
  padding: 9% 7% 11%;
  box-sizing: border-box;
  gap: 0;
}
.hw-fx__screen.is-code .hw-fx__secs { display: none; }
.hw-fx__bar {
  display: none;
}
.hw-fx__screen.is-code .hw-fx__bar {
  display: block;
  width: 100%;
  height: 9%;
  min-height: 2px;
  margin-top: 4%;
  background: rgba(127, 207, 162, 0.18);
  border-radius: 1px;
  overflow: hidden;
}
.hw-fx__barfill {
  display: block;
  height: 100%;
  width: 0;
  background: #7fcfa2;
  transition: width 1s linear;
}
.hw-fx__screen.is-code .hw-fx__digits {
  font-size: 17cqw;
  letter-spacing: 0.02em;
  overflow: visible;
}
.hw-fx__screen.is-code .hw-fx__site {
  font-size: 10.5cqw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Always cover the product photo's baked-in screen (it shows a company name). */
.hw-teaser .hw-fx--oled.is-live .hw-fx__screen {
  opacity: 1;
  transition: none;
}
