/* ==========================================================================
   Home only (index.html): the hero's layout, the products showcase (each product
   working live in its own window, on a light stage) and the run from "How we work"
   into the booking card. Shared components keep their rules in styles.css; everything
   here is scoped to a Home section or uses the hm- prefix.
   ========================================================================== */

/* ---------- Hero: two-line headline, so the buttons sit above the fold ---------- */
@media (min-width: 1025px) {
  .hm-hero .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  }
  /* "business flow." is 5.8em wide: sized to the column and to the screen's height */
  .hm-hero .display {
    font-size: clamp(56px, min(6.5vw, 12.4svh), 100px);
  }
}
.hm-hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted-2);
}
.hm-hero__note svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

/* ---------- The products: light stage, the chosen tab fills with ink ---------- */
.hm-products .tab {
  color: var(--muted);
}
.hm-products .tab::before {
  background: var(--ink);
  box-shadow: 0 18px 40px -24px rgba(10, 10, 10, 0.55);
}
.hm-products .tab__name .ltr {
  color: var(--muted-2);
}
.hm-products .tab:hover,
.hm-products .tab:hover .tab__name .ltr {
  color: var(--ink);
}
.hm-products .tab[aria-selected="true"],
.hm-products .tab[aria-selected="true"] .tab__name .ltr {
  color: #fff;
}
.hm-products .tab__text > span {
  color: #a9a9a9;
}
.hm-products .tab__bar {
  background: rgba(255, 255, 255, 0.12);
}
.hm-products .mock {
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.03), 0 34px 70px -34px rgba(10, 10, 10, 0.32);
}
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .hm-products .showcase__stage::before {
    background: radial-gradient(360px circle at var(--hx, 50%) var(--hy, 50%), rgba(255, 90, 31, 0.13), transparent 70%);
  }
}

/* The chosen product's spec label and link sit under the tabs */
.hm-show__side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hm-go {
  margin: 22px 22px 0;
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: 0.5s;
}
.js .showcase:not(.is-in) .hm-go {
  opacity: 0;
  transform: translateY(16px);
}
.hm-go__link {
  display: block;
}
.hm-go__link[hidden] {
  display: none;
}
.hm-go__link.is-in {
  animation: hm-rise 0.6s var(--ease-out) both;
}
.hm-go .spec {
  margin-top: 0;
  background: var(--paper);
}
.hm-go .spec__row {
  grid-template-columns: 48px minmax(0, 1fr);
}
.hm-go__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-bottom: 3px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.hm-go__cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--ease-out);
}
.hm-go__link:hover .hm-go__cta,
.hm-go__link:focus-visible .hm-go__cta {
  background-size: 100% 1.5px;
}
.hm-go__link:hover .hm-go__cta svg {
  transform: translateX(4px);
}

@keyframes hm-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Product windows: shared parts ---------- */
.hm-win {
  font-size: 12.5px;
}
.hm-win .mock__crumb {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hm-win .mock__live {
  flex: none;
}
@media (min-width: 1025px) {
  .hm-win .mock__body {
    height: 470px;
    min-height: 0;
  }
}
.hm-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--m-muted);
}
.hm-cap span {
  font-weight: 400;
  color: #a5a5a5;
}

/* ---------- Attest: the real year office, working ----------
   Attest's own screens, as on the Attest page: University Blue on warm white for the
   made-up Aldermere University, in the site's type. These rules are copied from
   attest.css (that sheet also restyles the Attest page around its screens, so Home
   doesn't load it) and sized in em: the window sets one font size and every part follows. */
.atx {
  --a-brand: #011451;
  --a-cobalt: #005398;
  --a-sky: #63aee0;
  --a-page: #fbfbf9;
  --a-panel: #fff;
  --a-sunk: #f3f3f0;
  --a-wash: #edeeea;
  --a-ink: #0c1428;
  --a-ink-2: #4e566b;
  --a-ink-3: #646b7e;
  --a-ink-4: #8a909f;
  --a-line: rgba(12, 20, 40, 0.1);
  --a-line-2: rgba(12, 20, 40, 0.17);
  --a-tint: rgba(0, 83, 152, 0.09);
  --a-good: #405d18;
  --a-good-w: rgba(64, 93, 24, 0.13);
  --a-warn: #9a3a06;
  --a-warn-w: rgba(154, 58, 6, 0.12);
  --a-crit: #7d2239;
  --a-crit-w: rgba(125, 34, 57, 0.11);
  --a-good-m: #4b6f1e;
  --a-warn-m: #c98500;
  --a-crit-m: #8c2640;
  --a-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --a-spring: cubic-bezier(0.3, 1.3, 0.5, 1);
  color: var(--a-ink);
  font-family: var(--font-sans);
  letter-spacing: -0.006em;
  line-height: 1.35;
}
.atx b {
  font-weight: 600;
}
.ax-mark,
.ax-shield {
  display: block;
  flex: none;
}
.ax-av {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: var(--a-sunk);
  border: 1px solid var(--a-line);
  color: var(--a-ink-2);
  font-size: 0.7em;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
}
.ax-av--lg {
  font-size: 0.9em;
}
.ax-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  height: 1.85em;
  padding: 0 0.7em;
  border-radius: 999px;
  background: var(--a-tint);
  color: var(--a-cobalt);
  font-size: 0.8em;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  white-space: nowrap;
}
.ax-chip::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: currentColor;
}
.ax-chip--info::before {
  display: none;
}
.ax-chip--good {
  background: var(--a-good-w);
  color: var(--a-good);
}
.ax-chip--warn {
  background: var(--a-warn-w);
  color: var(--a-warn);
}
.ax-chip--crit {
  background: var(--a-crit-w);
  color: var(--a-crit);
}
@keyframes ax-pop {
  from {
    opacity: 0;
    transform: translateY(0.6em) scale(0.97);
  }
}
@keyframes ax-bump {
  40% {
    transform: scale(1.12);
  }
}
@keyframes ax-dot {
  0%,
  60%,
  100% {
    opacity: 0.45;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-0.2em);
  }
}

/* The app fills the window: a navy rail, then one screen at a time */
.hm-at {
  position: relative;
  height: 470px;
  min-height: 0;
}
.yo {
  position: relative;
  display: grid;
  grid-template-columns: 14.4em minmax(0, 1fr);
  height: 100%;
  background: var(--a-page);
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.yo button {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.yo button:disabled {
  cursor: default;
}
.yo small {
  font-size: inherit;
}
.yo :focus-visible {
  outline: 2px solid var(--a-cobalt);
  outline-offset: 2px;
}
.yo__rail :focus-visible {
  outline-color: var(--a-sky);
}

/* Rail */
.yo__rail {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.2em 0.75em 0.9em;
  background: linear-gradient(176deg, #03217a 0%, var(--a-brand) 34%, #010a30 100%);
  color: #fff;
  isolation: isolate;
}
.yo__rail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(130% 55% at 0% 0%, rgba(99, 174, 224, 0.26), transparent 62%);
}
.yo__uni {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0 0.45em 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.22em;
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.yo__uni .ax-shield {
  width: 1.5em;
  height: 1.78em;
}
.yo__prod {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 0.5em 0.2em;
}
.yo__prod .ax-mark {
  width: 1.4em;
  height: 1.4em;
  color: var(--a-sky);
}
.yo__prod b {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.2em;
  letter-spacing: -0.01em;
}
.yo__prod small {
  margin-left: auto;
  padding: 0.22em 0.65em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}
.yo__nav {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  min-width: 0;
}
.yo__sec {
  padding: 1em 0.6em 0.4em;
  font-size: 0.74em;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}
.yo__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7em;
  width: 100%;
  padding: 0.55em 0.6em;
  border-radius: 0.6em;
  font-size: 0.98em;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.yo .yo__item {
  color: rgba(255, 255, 255, 0.78);
}
.yo__item svg {
  flex: none;
  width: 1.2em;
  height: 1.2em;
  opacity: 0.85;
}
.yo .yo__item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.yo .yo__item.is-on {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  color: #fff;
  font-weight: 600;
}
.yo__item.is-on::before {
  content: "";
  position: absolute;
  left: -0.75em;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--a-sky);
}
.yo__item em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.86em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
.yo__item em:empty {
  display: none;
}
.yo__item .yo__badge {
  display: grid;
  place-items: center;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 0.45em;
  border-radius: 999px;
  background: var(--a-sky);
  color: #06122e;
  font-weight: 700;
}
/* "Live" beside Attendance while a check-in is open */
.yo__item .yo__alert {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: #ffc4ad;
}
.yo__alert::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--orange);
}
.yo__item em.is-bump {
  animation: ax-bump 0.6s var(--a-spring);
}
.yo__me {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.85em 0.45em 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  white-space: nowrap;
}
.yo__me .ax-av {
  background: rgba(255, 255, 255, 0.14);
  border-color: transparent;
  color: #fff;
  font-size: 0.78em;
}
.yo__me b,
.yo__me small {
  display: block;
}
.yo__me b {
  font-size: 0.95em;
}
.yo__me small {
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.6);
}

/* Main: one screen at a time */
.yo__main {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.yo__view {
  height: 100%;
  min-width: 0;
  padding: 1.3em 1.5em 1.35em;
}
.yv {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1em;
  height: 100%;
  min-width: 0;
}
.yv.is-enter {
  animation: yo-in 0.34s var(--ease-out);
}
@keyframes yo-in {
  from {
    opacity: 0;
    transform: translateY(0.55em);
  }
}
.yv__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2em;
  min-width: 0;
}
.yv__head > div:first-child {
  min-width: 0;
}
.yv__h {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.25em;
  line-height: 1;
  letter-spacing: -0.024em;
  color: var(--a-brand);
}
.yv__sub {
  margin-top: 0.45em;
  font-size: 0.95em;
  color: var(--a-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yv__tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.yv__body {
  display: grid;
  gap: 0.85em;
  min-width: 0;
  min-height: 0;
}

/* Building blocks */
.yc {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-radius: 0.95em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
  box-shadow: 0 1px 0 rgba(12, 20, 40, 0.03), 0 0.9em 1.8em -1.5em rgba(12, 20, 40, 0.3);
  overflow: hidden;
}
.yc__h {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
  min-height: 2.8em;
  padding: 0.35em 1em 0.25em;
}
.yc__h > b {
  font-size: 0.98em;
  font-weight: 600;
  white-space: nowrap;
}
.yc__h > span {
  font-size: 0.88em;
  color: var(--a-ink-3);
  white-space: nowrap;
}
.yc__f {
  flex: none;
  margin-top: auto;
  padding: 0.65em 0.8em 0.8em;
}
.yb {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 2.45em;
  padding: 0 0.95em;
  border-radius: 0.6em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  font-size: 0.94em;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.16s var(--ease);
}
.yo .yb {
  text-align: center;
  color: var(--a-ink);
}
.yb svg {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}
.yb:hover {
  background: var(--a-sunk);
  border-color: rgba(12, 20, 40, 0.26);
}
.yb:active {
  transform: scale(0.97);
}
.yo .yb--pri {
  border-color: var(--a-brand);
  background: var(--a-brand);
  color: #fff;
  box-shadow: 0 0.5em 1em -0.6em rgba(1, 20, 81, 0.7);
}
.yo .yb--pri:hover {
  border-color: #0a2a8a;
  background: #0a2a8a;
}
.yb--sm {
  height: 2.15em;
  padding: 0 0.8em;
  font-size: 0.88em;
}
.yb--block {
  width: 100%;
}
.yo .yb:disabled {
  border-color: var(--a-line);
  background: var(--a-sunk);
  box-shadow: none;
  color: var(--a-ink-3);
  transform: none;
}
.yo .yb.is-done {
  border-color: transparent;
  background: var(--a-good-w);
  color: var(--a-good);
}
.yseg {
  flex: none;
  display: inline-flex;
  padding: 0.2em;
  border-radius: 0.7em;
  border: 1px solid var(--a-line);
  background: var(--a-sunk);
}
.yseg button {
  padding: 0.36em 0.75em;
  border-radius: 0.5em;
  font-size: 0.9em;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.yo .yseg button {
  color: var(--a-ink-2);
  text-align: center;
}
.yo .yseg button:hover {
  color: var(--a-ink);
}
.yo .yseg button.is-on {
  background: var(--a-brand);
  color: #fff;
  font-weight: 600;
}
.yseg--wide {
  display: flex;
}
.yseg--wide button {
  flex: 1;
}
.ybar {
  display: block;
  height: 0.38em;
  border-radius: 999px;
  background: var(--a-wash);
  overflow: hidden;
}
.ybar i {
  display: block;
  width: calc(var(--v, 0) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--a-cobalt);
  transition: width 0.8s var(--ease-out);
}
.yx {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 0.6em;
  transition: background 0.2s;
}
.yo .yx {
  color: var(--a-ink-3);
}
.yx:hover {
  background: var(--a-sunk);
}
.yx svg {
  width: 1.2em;
  height: 1.2em;
}
.yrow {
  display: flex;
  align-items: center;
  gap: 0.7em;
  width: 100%;
  min-width: 0;
  padding: 0.5em 1em;
  border-top: 1px solid var(--a-line);
  transition: background 0.2s;
}
button.yrow:hover {
  background: rgba(0, 83, 152, 0.05);
}
.yrow > span {
  flex: 1;
  min-width: 0;
}
.yrow b,
.yrow small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yrow b {
  font-size: 0.95em;
}
.yrow small {
  font-size: 0.86em;
  color: var(--a-ink-3);
}
.yrow > svg {
  flex: none;
  width: 1em;
  height: 1em;
  color: var(--a-ink-4);
}

/* The check-in that's open right now, in the overview's header: press it for the room code */
.ylive {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  height: 2.45em;
  padding: 0 0.9em 0 0.8em;
  border-radius: 999px;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  font-size: 0.92em;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.ylive:hover {
  border-color: rgba(0, 83, 152, 0.45);
  background: rgba(0, 83, 152, 0.04);
}
.ylive i,
.ysess__dot {
  position: relative;
  flex: none;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--orange);
}
/* The ring pulses on a layer of its own (transform and opacity), as the site's live dots do */
.ylive i::after,
.ysess__dot::after {
  content: "";
  position: absolute;
  border: 0.32em solid rgba(255, 90, 31, 0.2);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  animation: live-ring 1.6s ease-in-out infinite;
}
.ylive i::after,
.ysess__dot::after {
  inset: -0.32em;
}
.ylive span {
  color: var(--a-ink-3);
}
.ylive b {
  font-weight: 600;
  color: var(--a-brand);
  font-variant-numeric: tabular-nums;
}
.ylive em {
  font-style: normal;
  color: var(--a-ink-3);
}
.ylive svg {
  width: 1em;
  height: 1em;
  color: var(--a-ink-4);
}

/* Overview: every year, the trend, who needs a nudge, and what just happened */
.yo-ov {
  grid-template-rows: auto minmax(0, 1fr);
}
.yo-ov__years {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75em;
}
.ycard {
  display: grid;
  gap: 0.5em;
  min-width: 0;
  container-type: inline-size;
  padding: 0.75em 0.9em 0.8em;
  border-radius: 0.95em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
  box-shadow: 0 1px 0 rgba(12, 20, 40, 0.03), 0 0.9em 1.8em -1.5em rgba(12, 20, 40, 0.3);
  transition: transform 0.3s var(--ease-out), border-color 0.25s, box-shadow 0.3s;
}
.ycard:hover {
  border-color: rgba(0, 83, 152, 0.45);
  box-shadow: 0 1px 0 rgba(12, 20, 40, 0.03), 0 1.4em 2em -1.3em rgba(1, 20, 81, 0.45);
  transform: translateY(-2px);
}
.ycard__top {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}
.ycard__top b {
  flex: none;
  font-size: 0.98em;
  font-weight: 600;
  white-space: nowrap;
}
.ycard__top small {
  min-width: 0;
  font-size: 0.86em;
  color: var(--a-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ycard__top svg {
  align-self: center;
  width: 1em;
  height: 1em;
  margin-left: auto;
  color: var(--a-ink-4);
  transition: transform 0.3s var(--ease-out), color 0.25s;
}
.ycard:hover .ycard__top svg {
  color: var(--a-cobalt);
  transform: translateX(2px);
}
.ycard__mid {
  display: flex;
  align-items: flex-end;
  gap: 0.5em;
  min-width: 0;
}
.ycard__mid strong {
  flex: none;
  font-size: 1.95em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--a-brand);
}
.ycard__mid small {
  padding-bottom: 0.15em;
  font-size: 0.86em;
  color: var(--a-ink-3);
  white-space: nowrap;
}
.yspark {
  flex: 0 1 4.6em;
  min-width: 1.8em;
  height: 1.5em;
  margin-left: auto;
  overflow: visible;
}
.yspark path {
  fill: none;
  stroke: var(--a-cobalt);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
/* On track, at risk, behind: the gap between the parts is the surface showing through */
.ystack {
  display: flex;
  gap: 2px;
  height: 0.42em;
}
.ystack i {
  min-width: 0.5em;
  border-radius: 999px;
  background: var(--k);
}
.k-good {
  --k: var(--a-good-m);
}
.k-warn {
  --k: var(--a-warn-m);
}
.k-crit {
  --k: var(--a-crit-m);
}
.ykey {
  display: flex;
  justify-content: space-between;
  gap: 0.6em;
  min-width: 0;
  overflow: hidden;
}
.ykey em {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-style: normal;
  font-size: 0.8em;
  color: var(--a-ink-2);
  white-space: nowrap;
}
.ykey em::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--k);
}
@container (max-width: 200px) {
  .ykey {
    justify-content: flex-start;
    gap: 0.9em;
  }
  .ykey .k-good {
    display: none;
  }
}
@container (max-width: 160px) {
  .ycard__mid small {
    display: none;
  }
}
@container (max-width: 132px) {
  .ycard__top small {
    display: none;
  }
}
.yo-ov__row {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 0.75em;
  min-height: 0;
}
.ylegend {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.ylegend i {
  width: 1.1em;
  height: 2px;
  border-radius: 2px;
  background: var(--a-cobalt);
}
.ylegend i.k-prev {
  margin-left: 0.6em;
  height: 1.25px;
  background: var(--a-ink-4);
}
.ychart {
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.5em 0.65em;
  min-height: 0;
  padding: 0.6em 1.3em 0.8em 1em;
}
.ychart__y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.84em;
  color: var(--a-ink-3);
  font-variant-numeric: tabular-nums;
}
.ychart__y span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 0;
}
.ychart__plot {
  position: relative;
  min-height: 0;
  cursor: crosshair;
  touch-action: pan-y;
  background: linear-gradient(var(--a-line), var(--a-line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--a-line), var(--a-line)) 0 50% / 100% 1px no-repeat, linear-gradient(var(--a-line-2), var(--a-line-2)) 0 100% / 100% 1px no-repeat;
}
.ychart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ychart__area {
  fill: var(--a-cobalt);
  opacity: 0.1;
}
.ychart__now,
.ychart__prev {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ychart__now {
  stroke: var(--a-cobalt);
  stroke-width: 2;
}
.ychart__prev {
  stroke: var(--a-ink-4);
  stroke-width: 1.25;
}
.ychart__dot,
.ychart__pt {
  position: absolute;
  width: 0.72em;
  height: 0.72em;
  margin: -0.36em 0 0 -0.36em;
  border-radius: 50%;
  background: var(--a-cobalt);
  box-shadow: 0 0 0 2px var(--a-panel);
  pointer-events: none;
}
.ychart__pt {
  opacity: 0;
}
.ychart__pt--prev {
  background: var(--a-ink-4);
}
.ychart__val {
  position: absolute;
  right: 0.7em;
  margin-top: -2em;
  font-size: 0.92em;
  font-weight: 600;
  color: var(--a-ink);
  pointer-events: none;
  transition: opacity 0.2s;
}
.ychart__cross {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--a-ink-3);
  opacity: 0;
  pointer-events: none;
}
.ychart__tip {
  position: absolute;
  top: 0.2em;
  z-index: 3;
  display: grid;
  gap: 0.15em;
  min-width: 10.5em;
  padding: 0.55em 0.7em 0.6em;
  border-radius: 0.6em;
  background: rgba(10, 16, 34, 0.96);
  box-shadow: 0 1em 2em -1em rgba(6, 12, 28, 0.6);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.ychart__tip small {
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.66);
}
.ychart__tip span {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.88em;
  color: rgba(255, 255, 255, 0.75);
}
.ychart__tip span i {
  width: 0.9em;
  height: 2px;
  border-radius: 2px;
  background: var(--a-sky);
}
.ychart__tip span + span i {
  background: #aab0bd;
}
.ychart__tip span b {
  margin-left: auto;
  padding-left: 1em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ychart.is-hover .ychart__cross,
.ychart.is-hover .ychart__pt,
.ychart.is-hover .ychart__tip {
  opacity: 1;
}
.ychart.is-hover .ychart__val {
  opacity: 0;
}
.ychart__x {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  font-size: 0.84em;
  color: var(--a-ink-3);
  text-align: center;
  white-space: nowrap;
}
.yo-attn .yrow:first-of-type {
  border-top-color: transparent;
}
/* Rows that don't fit drop out whole (they wrap into a column that's clipped) */
.yo-attn__list,
.yfeed {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  min-height: 0;
  overflow: hidden;
}
.yfeed {
  margin: 0;
  padding: 0;
  list-style: none;
}
.yfeed li {
  display: flex;
  align-items: center;
  gap: 0.65em;
  width: 100%;
  min-height: 3.2em;
  padding: 0.35em 1em;
  border-top: 1px solid var(--a-line);
}
.yfeed li:first-child {
  border-top-color: transparent;
}
.yfeed li.is-new {
  animation: yo-feed 0.6s var(--ease-out);
}
@keyframes yo-feed {
  from {
    opacity: 0;
    transform: translateY(-0.7em);
    background: var(--a-tint);
  }
}
.yfeed__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--a-tint);
  color: var(--a-cobalt);
}
.yfeed__ico svg {
  width: 1.05em;
  height: 1.05em;
}
.yfeed li > span {
  flex: 1;
  min-width: 0;
}
.yfeed b,
.yfeed small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yfeed b {
  font-size: 0.93em;
}
.yfeed small {
  font-size: 0.86em;
  color: var(--a-ink-3);
}
.yfeed time {
  flex: none;
  font-size: 0.84em;
  color: var(--a-ink-3);
  font-variant-numeric: tabular-nums;
}

/* Register */
.yo-reg {
  grid-template-rows: auto minmax(0, 1fr);
}
.yfilters {
  display: flex;
  gap: 0.4em;
  min-width: 0;
}
.yfilters button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 2.3em;
  padding: 0 0.85em;
  border-radius: 999px;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  font-size: 0.92em;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.yfilters button b {
  color: var(--a-ink-3);
  font-variant-numeric: tabular-nums;
}
.yfilters button:hover {
  border-color: rgba(12, 20, 40, 0.3);
}
.yo .yfilters button.is-on {
  border-color: var(--a-brand);
  background: var(--a-brand);
  color: #fff;
}
.yfilters button.is-on b {
  color: rgba(255, 255, 255, 0.72);
}
.yfilters button[data-f]:not([data-f="all"])::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--k);
}
.yt {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.yt__r {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.9fr) 1em;
  align-items: center;
  gap: 1em;
  width: 100%;
  padding: 0 1em;
}
.yt__h {
  height: 2.5em;
  border-bottom: 1px solid var(--a-line);
  font-size: 0.86em;
  font-weight: 500;
  color: var(--a-ink-3);
  white-space: nowrap;
}
.yt__body {
  min-height: 0;
  overflow: hidden;
}
.yt__body .yt__r {
  height: 3.3em;
  border-bottom: 1px solid var(--a-line);
  transition: background 0.2s;
}
.yt__body .yt__r:hover {
  background: rgba(0, 83, 152, 0.05);
}
.yt__body .yt__r.is-new {
  animation: yo-feed 0.5s var(--ease-out) both;
  animation-delay: calc(var(--n, 0) * 0.03s);
}
.yt__r[data-s="warn"] {
  --bar: var(--a-warn-m);
}
.yt__r[data-s="crit"] {
  --bar: var(--a-crit-m);
}
.yt__who {
  display: flex;
  align-items: center;
  gap: 0.7em;
  min-width: 0;
}
.yt__who > span {
  min-width: 0;
}
.yt__who b,
.yt__who small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt__who b {
  font-size: 0.97em;
}
.yt__who small {
  font-size: 0.86em;
  color: var(--a-ink-3);
}
.yt__att {
  display: flex;
  align-items: center;
  gap: 0.65em;
}
.yt__att i {
  position: relative;
  flex: 1;
  max-width: 6.2em;
  height: 0.36em;
  border-radius: 999px;
  background: var(--a-wash);
  overflow: hidden;
}
.yt__att i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
  border-radius: inherit;
  background: var(--bar, var(--a-cobalt));
}
.yt__att b,
.yt__num {
  font-size: 0.94em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.yt__att b {
  min-width: 2.6em;
}
.yt__num small {
  color: var(--a-ink-3);
}
.yt__seen {
  font-size: 0.9em;
  color: var(--a-ink-3);
  white-space: nowrap;
}
.yt__r > svg {
  width: 1em;
  height: 1em;
  color: var(--a-ink-4);
}
.yt__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  height: 2.6em;
  padding: 0 1em;
  font-size: 0.9em;
  color: var(--a-ink-3);
  font-variant-numeric: tabular-nums;
}

/* Attendance: today's sessions, the check-in that's open, and who missed the lecture */
.yo-at {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}
.ysess {
  flex: 1;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  min-height: 0;
}
.ysess__r {
  position: relative;
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1.5fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9em;
  min-height: 0;
  padding: 0 1em;
  border-top: 1px solid var(--a-line);
}
.ysess__r[data-st="live"] {
  background: linear-gradient(90deg, rgba(0, 83, 152, 0.07), transparent 70%);
}
.ysess__r b,
.ysess__r small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ysess__t {
  position: relative;
}
.ysess__t b {
  font-size: 1.02em;
  font-variant-numeric: tabular-nums;
}
.ysess__dot {
  position: absolute;
  left: -0.85em;
  top: 0.45em;
}
.ysess__t small,
.ysess__w small,
.ysess__n small {
  font-size: 0.86em;
  color: var(--a-ink-3);
}
.ysess__w b {
  font-size: 0.97em;
}
.ysess__n {
  display: grid;
  gap: 0.4em;
}
.ysess__n small b {
  display: inline;
  color: var(--a-ink);
  font-variant-numeric: tabular-nums;
}
.ysess__a {
  display: flex;
  justify-content: flex-end;
  min-width: 6.8em;
}
.ysess__later {
  font-style: normal;
  font-size: 0.88em;
  color: var(--a-ink-3);
}
.yo-at__side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.75em;
  min-height: 0;
}
.yo-abs p {
  padding: 0 1em;
  font-size: 0.92em;
  line-height: 1.45;
  color: var(--a-ink-2);
}
.yo-abs p b {
  color: var(--a-ink);
}
/* Attendance across the term: one square a day, darker is fuller */
.yheat {
  flex: 1;
  display: grid;
  grid-template-columns: 1.6em repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(1em, 1fr)) auto;
  gap: 3px;
  min-height: 0;
  padding: 0.1em 1em 0;
}
.yheat > span {
  align-self: center;
  font-size: 0.8em;
  color: var(--a-ink-3);
}
.yheat > i {
  border-radius: 0.25em;
  background: var(--c);
}
.yheat > b {
  padding-top: 0.2em;
  font-size: 0.78em;
  font-weight: 400;
  color: var(--a-ink-3);
  text-align: center;
}
.hb0 {
  --c: #80b6e2;
}
.hb1 {
  --c: #4f9ad5;
}
.hb2 {
  --c: #2579bd;
}
.hb3 {
  --c: #005398;
}
.hb4 {
  --c: #011451;
}
.yheat__key {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1em 0.8em;
  font-size: 0.8em;
  color: var(--a-ink-3);
}
.yheat__key span {
  display: flex;
  gap: 2px;
}
.yheat__key i {
  width: 1.3em;
  height: 0.6em;
  border-radius: 0.15em;
  background: var(--c);
}

/* Sheets and the room code open over the screen */
.yo__layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  place-items: center;
}
.yo__layer.is-open {
  display: grid;
}
.yscrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 34, 0.42);
  opacity: 0;
  transition: opacity 0.3s;
}
.yo .yscrim {
  cursor: default;
}
.is-in > .yscrim {
  opacity: 1;
}
.ymodal {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9em;
  max-height: calc(100% - 2em);
  border-radius: 1.1em;
  background: var(--a-page);
  box-shadow: 0 2.5em 5em -2em rgba(6, 12, 28, 0.6), 0 0 0 1px var(--a-line);
  outline: 0;
  opacity: 0;
  transform: translateY(1em) scale(0.97);
  transition: opacity 0.25s, transform 0.4s var(--a-sheet);
}
.is-in > .ymodal {
  opacity: 1;
  transform: none;
}
.ymodal > .yx {
  position: absolute;
  top: 0.7em;
  right: 0.7em;
}
/* The room code, as the lecture screen shows it: it changes every few seconds */
.ymodal--code {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.6em;
  width: min(36em, calc(100% - 2.4em));
  padding: 1.6em 1.8em;
}
.ycode__qr {
  display: grid;
  justify-items: center;
  gap: 0.5em;
  padding: 0.85em 0.85em 0.75em;
  border-radius: 1em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
}
.ycode__qr svg {
  width: 9.5em;
  height: 9.5em;
  fill: var(--a-brand);
}
.ycode__qr small {
  font-size: 0.9em;
  font-weight: 600;
}
.ycode__sess b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.55em;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--a-brand);
}
.ycode__sess span,
.ycode__or {
  font-size: 0.92em;
  color: var(--a-ink-3);
}
.ycode__or {
  margin-top: 1em;
}
.ycode__big {
  font-size: 3.2em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--a-brand);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ycode__big.is-new {
  animation: ar-flip 0.5s var(--ease-out);
}
@keyframes ar-flip {
  from {
    opacity: 0;
    transform: translateY(0.25em);
  }
}
.ycode__count {
  display: block;
  max-width: 15em;
  height: 0.32em;
  margin-top: 0.5em;
  border-radius: 999px;
  background: var(--a-wash);
  overflow: hidden;
}
.ycode__count i {
  display: block;
  height: 100%;
  background: var(--a-cobalt);
  transform-origin: left;
}
.ycode__count i.is-run {
  animation: ar-count 6s linear forwards;
}
@keyframes ar-count {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
.ycode__in {
  margin-top: 0.85em;
  color: var(--a-ink-2);
}
.ycode__in b {
  font-size: 1.5em;
  color: var(--a-brand);
  font-variant-numeric: tabular-nums;
}
/* A sheet slides in from the right: a student, or a hand-in to mark */
.ydraw {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  width: min(27em, 100%);
  padding: 1.15em 1.2em 1.1em;
  background: var(--a-page);
  box-shadow: -2em 0 4em -2.5em rgba(6, 12, 28, 0.55), -1px 0 0 var(--a-line);
  outline: 0;
  transform: translateX(104%);
  transition: transform 0.5s var(--a-sheet);
}
.is-in > .ydraw {
  transform: none;
}
.ydraw__h {
  display: flex;
  align-items: center;
  gap: 0.75em;
  min-width: 0;
}
.ydraw__h > div {
  flex: 1;
  min-width: 0;
}
.ydraw__h b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.45em;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--a-brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ydraw__h small {
  display: block;
  margin-top: 0.2em;
  font-size: 0.88em;
  color: var(--a-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ydraw__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55em;
}
.ystat {
  display: grid;
  gap: 0.3em;
  align-content: start;
  padding: 0.7em 0.8em 0.75em;
  border-radius: 0.8em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
}
.ystat small {
  font-size: 0.84em;
  color: var(--a-ink-3);
}
.ystat b {
  font-size: 1.5em;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--a-brand);
}
.ystat b i {
  font-style: normal;
  font-size: 0.6em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--a-ink-3);
}
.ystat .yspark {
  width: 100%;
  height: 1.3em;
  margin: 0.15em 0 0;
}
.ystat .ybar {
  margin-top: 0.45em;
}
.ystat[data-s="warn"] .yspark path,
.ystat[data-s="crit"] .yspark path {
  stroke: var(--a-crit-m);
}
.ydraw__lab {
  margin-bottom: -0.35em;
  font-size: 0.9em;
  font-weight: 600;
}
.ydraw .yfeed {
  flex: 1;
  border-radius: 0.8em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
}
.ydraw .yfeed li {
  padding-inline: 0.8em;
}
.ydraw__f {
  display: flex;
  gap: 0.5em;
  margin-top: auto;
}
.ydraw__f .yb {
  flex: 1;
  padding: 0 0.5em;
}
/* The hand-in, as a page of lines, with the tutor's comment under it */
.ydoc {
  display: grid;
  gap: 0.5em;
  padding: 0.85em 0.95em;
  border-radius: 0.8em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
}
.ydoc b {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.2em;
  font-size: 0.92em;
}
.ydoc b svg {
  width: 1.15em;
  height: 1.15em;
  color: var(--a-cobalt);
}
.ydoc i {
  height: 0.42em;
  border-radius: 999px;
  background: var(--a-wash);
}
.ydoc i:nth-child(3) {
  width: 92%;
}
.ydoc i:nth-child(4) {
  width: 97%;
}
.ydoc i:nth-child(5) {
  width: 64%;
}
.ydraw__fb {
  padding: 0.65em 0.8em;
  border-radius: 0.7em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
  font-size: 0.92em;
  line-height: 1.45;
  color: var(--a-ink-2);
}

/* Submissions: each assignment, then the queue waiting for a mark */
.yo-sub {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}
.yasgs {
  flex: 1;
  display: grid;
  grid-auto-rows: 4.7em;
  align-content: start;
  min-height: 0;
  overflow: hidden;
}
.yasg {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1em;
  width: 100%;
  min-height: 0;
  padding: 0 1em;
  border-top: 1px solid var(--a-line);
  transition: background 0.2s;
}
.yasg:hover {
  background: rgba(0, 83, 152, 0.04);
}
.yasg.is-on {
  background: var(--a-tint);
}
.yasg.is-on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--a-cobalt);
}
.yasg b,
.yasg small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yasg small {
  font-size: 0.86em;
  color: var(--a-ink-3);
}
.yasg__p {
  display: grid;
  gap: 0.4em;
}
.yasg__p small b {
  display: inline;
  color: var(--a-ink);
  font-variant-numeric: tabular-nums;
}
.yasg__c {
  display: flex;
  justify-content: flex-end;
  min-width: 6.2em;
}
.yqs {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  min-height: 0;
  overflow: hidden;
}
.yq {
  display: flex;
  align-items: center;
  gap: 0.65em;
  width: 100%;
  min-height: 3.5em;
  padding: 0.3em 0.8em 0.3em 1em;
  border-top: 1px solid var(--a-line);
}
.yq.is-out {
  opacity: 0;
  transform: translateX(1em);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.yq > span {
  flex: 1;
  min-width: 0;
}
.yq b,
.yq small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yq b {
  font-size: 0.95em;
}
.yq small {
  font-size: 0.86em;
  color: var(--a-ink-3);
}
.yq .ax-chip {
  flex: none;
  font-size: 0.78em;
}
.yq__none {
  margin: auto;
  padding: 1.5em;
  max-width: 19em;
  color: var(--a-ink-3);
  text-align: center;
}

/* Messages: the threads, then the conversation with replies to pick from */
.yo-msg {
  display: grid;
  grid-template-columns: 15.5em minmax(0, 1fr);
}
.ythreads {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0.45em;
  border-right: 1px solid var(--a-line);
  overflow: hidden;
}
.ythr {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65em;
  width: 100%;
  padding: 0.6em 0.65em;
  border-radius: 0.7em;
  transition: background 0.2s;
}
.ythr:hover {
  background: var(--a-sunk);
}
.ythr.is-on {
  background: var(--a-tint);
}
.ythr > span {
  flex: 1;
  min-width: 0;
}
.ythr b,
.ythr small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ythr b {
  font-size: 0.95em;
}
.ythr small {
  font-size: 0.86em;
  color: var(--a-ink-3);
}
.ythr[data-unread="1"] small {
  font-weight: 600;
  color: var(--a-ink);
}
.ythr em {
  flex: none;
  align-self: flex-start;
  padding-top: 0.15em;
  font-style: normal;
  font-size: 0.8em;
  color: var(--a-ink-3);
}
.ythr[data-unread="1"]::after {
  content: "";
  position: absolute;
  right: 0.75em;
  bottom: 0.85em;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--a-cobalt);
}
.ychat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}
.ychat__h {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.65em 0.9em 0.65em 1em;
  border-bottom: 1px solid var(--a-line);
}
.ychat__h > span {
  flex: 1;
  min-width: 0;
}
.ychat__h b,
.ychat__h small {
  display: block;
  white-space: nowrap;
}
.ychat__h small {
  font-size: 0.86em;
  color: var(--a-ink-3);
}
.ychat__msgs {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5em;
  min-height: 0;
  padding: 0.85em 1em;
  overflow: hidden;
}
.ymsg {
  flex: none;
  max-width: 76%;
  padding: 0.55em 0.85em;
  border-radius: 1.05em;
  font-size: 0.95em;
  line-height: 1.4;
  overflow-wrap: anywhere;
  animation: ax-pop 0.4s var(--ease-out) both;
}
.ymsg--in {
  align-self: flex-start;
  border: 1px solid var(--a-line);
  border-bottom-left-radius: 0.3em;
  background: var(--a-panel);
}
.ymsg--out {
  align-self: flex-end;
  border-bottom-right-radius: 0.3em;
  background: var(--a-brand);
  color: #fff;
}
.ymsg--typing {
  display: inline-flex;
  gap: 0.28em;
  padding: 0.75em 0.85em;
}
.ymsg--typing i {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--a-ink-4);
  animation: ax-dot 1s ease-in-out infinite;
}
.ymsg--typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.ymsg--typing i:nth-child(3) {
  animation-delay: 0.3s;
}
.ybook {
  flex: none;
  align-self: flex-end;
  display: grid;
  gap: 0.35em;
  width: min(19em, 80%);
  padding: 0.7em 0.85em 0.75em;
  border-radius: 0.9em;
  border: 1px solid var(--a-line);
  border-left: 0.28em solid var(--a-brand);
  background: var(--a-panel);
  animation: ax-pop 0.4s var(--ease-out) both;
}
.ybook b {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.12em;
  color: var(--a-brand);
}
.ybook small {
  font-size: 0.86em;
  color: var(--a-ink-3);
}
.ybook span {
  display: flex;
  gap: 0.4em;
  margin-top: 0.15em;
}
.ybook span i {
  padding: 0.3em 0.75em;
  border-radius: 0.5em;
  border: 1px solid var(--a-line-2);
  font-style: normal;
  font-size: 0.9em;
  font-weight: 600;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.ybook span i.is-on {
  border-color: var(--a-good);
  background: var(--a-good);
  color: #fff;
}
.ybook em {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-style: normal;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--a-good);
}
.ybook em svg {
  width: 1.1em;
  height: 1.1em;
}
/* Replies to pick from, where the composer sits */
.ychat__comp {
  display: flex;
  align-items: center;
  gap: 0.45em;
  min-height: 3.6em;
  padding: 0.6em 0.8em 0.65em 1em;
  border-top: 1px solid var(--a-line);
  overflow: hidden;
}
.ychat__comp > small {
  flex: none;
  color: var(--a-ink-3);
  font-size: 0.86em;
}
.yquick {
  flex: none;
  height: 2.3em;
  padding: 0 0.85em;
  border-radius: 999px;
  border: 1px solid rgba(0, 83, 152, 0.35);
  background: var(--a-panel);
  font-size: 0.9em;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.yo .yquick {
  color: var(--a-cobalt);
}
.yo .yquick:hover {
  border-color: var(--a-brand);
  background: var(--a-brand);
  color: #fff;
}
.ychat__comp.is-wait .yquick {
  opacity: 0.45;
  pointer-events: none;
}

/* The dark toast, as Attest shows them: only for what the visitor just did */
.yo__toast {
  position: absolute;
  left: 50%;
  bottom: 1.1em;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 0.7em;
  max-width: calc(100% - 2.4em);
  padding: 0.6em 1.1em 0.6em 0.6em;
  border-radius: 0.85em;
  background: rgba(10, 16, 34, 0.96);
  box-shadow: 0 1.4em 2.6em -1.2em rgba(6, 12, 28, 0.65);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, 60%) scale(0.97);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
  pointer-events: none;
}
.yo__toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.yo__toast > i {
  flex: none;
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--a-sky);
  color: #06122e;
}
.yo__toast svg {
  width: 1.05em;
  height: 1.05em;
}
.yo__toast b,
.yo__toast small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yo__toast b {
  font-size: 0.94em;
}
.yo__toast small {
  font-size: 0.86em;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Prometheus: a panel interview with real interviewers ---------- */
.hm-pr {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
.hm-pr__call {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--m-line);
}
.hm-pr__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d0d;
}
/* A new interviewer comes in as the last one goes, through a quick dip, never two faces at once */
.hm-pr__stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.hm-pr__stage video.is-on {
  opacity: 1;
  transition: opacity 0.4s ease 0.2s;
}
.hm-pr__who,
.hm-pr__sound {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 9px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.58);
  color: #fff;
  font-size: 11.5px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hm-pr__who {
  left: 10px;
}
.hm-pr__who i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.hm-pr__who b {
  font-weight: 600;
}
.hm-pr__who span {
  color: rgba(255, 255, 255, 0.62);
}
.hm-pr__sound {
  right: 10px;
  cursor: pointer;
  transition: background 0.25s;
}
.hm-pr__sound:hover {
  background: rgba(10, 10, 10, 0.8);
}
.hm-pr__sound svg {
  width: 15px;
  height: 15px;
}
.hm-pr__sound .hm-pr__on,
.hm-pr__sound[aria-pressed="true"] .hm-pr__off {
  display: none;
}
.hm-pr__sound[aria-pressed="true"] .hm-pr__on {
  display: block;
}
.hm-win.is-still .hm-pr__sound {
  display: none;
}
.hm-pr__cap {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 0.25s;
}
.hm-pr__cap.is-hide {
  opacity: 0;
}
.hm-pr__strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.hm-pr__tile {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  background: #161616;
  cursor: pointer;
}
.hm-pr__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0.72;
  transition: opacity 0.3s;
}
.hm-pr__tile.is-on img,
.hm-pr__tile:hover img {
  opacity: 1;
}
.hm-pr__tile > span:last-child {
  position: absolute;
  left: 7px;
  bottom: 4px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.hm-pr__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px var(--orange);
  opacity: 0;
  transition: opacity 0.3s;
}
.hm-pr__tile.is-on::after {
  opacity: 1;
}
.hm-pr__tile--you {
  display: grid;
  place-items: center;
  background: #1d1d1d;
  cursor: default;
}
.hm-pr__mic {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  margin-bottom: 6px;
}
.hm-pr__mic i {
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: #5e5e5e;
  transition: background 0.3s;
}
.hm-pr__tile--you.is-talking::after {
  opacity: 1;
}
.hm-pr__tile--you.is-talking .hm-pr__mic i {
  background: var(--orange);
  animation: hm-mic 0.8s ease-in-out infinite;
}
.hm-pr__mic i:nth-child(2) { animation-delay: -0.3s; }
.hm-pr__mic i:nth-child(3) { animation-delay: -0.55s; }
.hm-pr__mic i:nth-child(4) { animation-delay: -0.15s; }
.hm-pr__mic i:nth-child(5) { animation-delay: -0.45s; }
@keyframes hm-mic {
  50% {
    transform: scaleY(2.8);
  }
}
.hm-pr__prog {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--m-muted);
  white-space: nowrap;
}
.hm-pr__prog b {
  font-weight: 600;
  color: var(--ink);
}
.hm-pr__prog i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--m-soft);
  overflow: hidden;
}
.hm-pr__prog em {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(var(--p, 0.03));
  transform-origin: left;
}
.hm-pr__clock {
  margin-left: 2px;
  color: var(--m-muted);
  font-variant-numeric: tabular-nums;
}
.hm-pr__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 14px 16px;
}
.hm-pr__rubric .hm-cap {
  margin-bottom: 4px;
}
.hm-pr__crit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 7px 10px;
  padding: 9px 0 10px;
  border-top: 1px solid var(--m-line);
}
.hm-pr__crit span {
  font-size: 12.5px;
}
.hm-pr__crit b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #b9b9b9;
  font-variant-numeric: tabular-nums;
}
.hm-pr__crit.is-asking b {
  font-weight: 500;
  color: var(--orange-deep);
}
.hm-pr__crit.is-asking b::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: hm-blink 1.2s ease-in-out infinite;
}
.hm-pr__crit.is-scored b {
  color: var(--ink);
}
.hm-pr__crit i {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 2px;
  background: var(--m-soft);
  overflow: hidden;
}
.hm-pr__crit em {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(var(--v, 0));
  transform-origin: left;
  transition: transform 0.9s var(--ease-out), background 0.4s;
}
/* The answer just marked is the one in orange */
.hm-pr__crit.is-last em {
  background: var(--orange);
}
@keyframes hm-blink {
  50% {
    opacity: 0.25;
  }
}
.hm-pr__total {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--m-line);
  font-size: 12.5px;
}
.hm-pr__total span {
  flex: 1;
}
.hm-pr__total b {
  min-width: 2.2em;
  text-align: right;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #b9b9b9;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s;
}
.hm-pr__total.is-ready b {
  color: var(--ink);
}
.hm-pr__total em {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.hm-pr__total.is-ready em {
  opacity: 1;
  transform: none;
}
.hm-pr__log {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.hm-pr__log ol {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 8px;
}
.hm-pr__log li {
  font-size: 12px;
  line-height: 1.45;
  color: var(--m-muted);
}
.hm-pr__log li.is-new {
  animation: hm-rise 0.5s var(--ease-out) both;
}
.hm-pr__log li b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.hm-pr__log li.is-you b {
  color: var(--orange-deep);
}

/* ---------- Nexidia: one piece of work, start to finish ----------
   The run on the left (each step ticks off as the orange line reaches it), what that step
   produced on the right (the chat, the booking, the record, the quote), and a person
   approving what matters at the end. Ink, warm grey and one orange, like the Nexidia page. */
.hm-nx {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
}
.hm-nx__run {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 16px 20px 16px;
  border-right: 1px solid var(--m-line);
}
.hm-nx__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hm-nx__seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--m-soft);
  box-shadow: inset 0 0 0 1px var(--m-line);
}
.hm-nx__seg button {
  height: 26px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--m-muted);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.hm-nx__seg button:hover {
  color: var(--ink);
}
.hm-nx__seg button.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.08), 0 0 0 1px var(--m-line);
}
.hm-nx__meta {
  font-size: 11.5px;
  color: var(--m-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hm-nx__meta b {
  font-weight: 500;
  color: var(--ink);
}
.hm-nx__head {
  margin-top: 16px;
}
.hm-nx__title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.hm-nx__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--m-muted);
}
.hm-nx__head.is-swap {
  animation: hm-rise 0.45s var(--ease-out) both;
}

/* The steps, joined by a line that fills in orange as the run reaches each one */
.hm-nx__steps {
  --n: 6;
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: repeat(var(--n), minmax(0, 1fr));
  min-height: 0;
  margin: 10px 0 12px;
}
.hm-nx__steps::before,
.hm-nx__steps::after {
  content: "";
  position: absolute;
  left: 15.5px;
  top: calc(50% / var(--n));
  bottom: calc(50% / var(--n));
  width: 1.5px;
  border-radius: 1px;
  background: var(--m-line);
}
.hm-nx__steps::after {
  background: var(--orange);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}
.hm-nx__step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  padding: 0;
  text-align: left;
  cursor: default;
}
.hm-nx__step[data-st="done"] {
  cursor: pointer;
}
.hm-nx__ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--m-line);
  color: #b5b1a9;
  transition: background 0.35s, color 0.35s;
}
.hm-nx__ico svg {
  width: 16px;
  height: 16px;
}
.hm-nx__txt {
  min-width: 0;
}
.hm-nx__txt b,
.hm-nx__txt small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.35s;
}
.hm-nx__txt b {
  font-size: 12.5px;
  font-weight: 600;
  color: #aaa69e;
}
.hm-nx__txt small {
  font-size: 11.5px;
  color: #bdb9b1;
}
.hm-nx__st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #bdb9b1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hm-nx__step:not([data-st="wait"]) .hm-nx__txt b {
  color: var(--ink);
}
.hm-nx__step:not([data-st="wait"]) .hm-nx__txt small,
.hm-nx__step[data-st="done"] .hm-nx__st {
  color: var(--m-muted);
}
/* Done: an ink tile and the time it took */
.hm-nx__step[data-st="done"] .hm-nx__ico {
  background: var(--ink);
  box-shadow: none;
  color: #fff;
}
.hm-nx__step[data-st="done"]:hover .hm-nx__txt b {
  color: var(--orange-deep);
}
.hm-nx__step.is-seen .hm-nx__ico {
  box-shadow: 0 0 0 3px var(--orange-soft);
}
/* Working: the tile warms and a small ring turns beside the time */
.hm-nx__step[data-st="run"] .hm-nx__ico {
  background: var(--orange-soft);
  box-shadow: inset 0 0 0 1px #ffd3c0;
  color: var(--orange-deep);
}
.hm-nx__step[data-st="run"] .hm-nx__st {
  color: var(--orange-deep);
}
.hm-nx__spin {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid #ffd3c0;
  border-top-color: var(--orange);
  animation: hm-spin 0.7s linear infinite;
}
@keyframes hm-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Waiting for a person */
.hm-nx__step[data-st="ask"] .hm-nx__ico {
  background: var(--orange);
  box-shadow: none;
  color: #fff;
}
.hm-nx__step[data-st="ask"] .hm-nx__st {
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 500;
}

/* Time on this piece of work: by hand, against Nexidia's run so far */
.hm-nx__save {
  display: grid;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--m-line);
}
.hm-nx__save p {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--m-muted);
}
.hm-nx__save i {
  height: 6px;
  border-radius: 3px;
  background: var(--m-soft);
  overflow: hidden;
}
.hm-nx__save em {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.hm-nx__hand {
  background: #cfcac2;
}
.hm-nx__ai {
  background: var(--orange);
  transform: scaleX(var(--p, 0));
}
.hm-nx__save b {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* What each step produced, on a soft grey desk */
.hm-nx__view {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 16px 18px 18px;
  background: var(--m-soft);
}
.hm-nx__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--m-muted);
}
.hm-nx__cap span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  color: var(--ink);
}
.hm-nx__cap svg {
  width: 14px;
  height: 14px;
}
.hm-nx__cap em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.hm-nx__stage {
  position: relative;
  flex: 1;
  display: grid;
  align-items: center;
  min-height: 0;
  margin-top: 12px;
}
/* This workflow's week: the hours it saved, and how many times it ran each day */
.hm-nx__week {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--m-line);
}
.hm-nx__week p {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.hm-nx__week span,
.hm-nx__week small {
  font-size: 11px;
  color: var(--m-muted);
  white-space: nowrap;
}
.hm-nx__week b {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.hm-nx__bars {
  display: grid;
  grid-template-columns: repeat(5, 14px);
  gap: 6px;
  align-items: end;
}
.hm-nx__bars i {
  display: grid;
  grid-template-rows: 34px auto;
  gap: 4px;
  justify-items: center;
  font-style: normal;
  font-size: 9.5px;
  color: #a5a5a5;
}
.hm-nx__bars i::before {
  content: "";
  align-self: end;
  width: 100%;
  height: calc(var(--v) * 100%);
  border-radius: 3px 3px 1px 1px;
  background: #d9d5ce;
  transform-origin: bottom;
  animation: hm-grow 0.6s var(--ease-out) both;
  animation-delay: calc(0.2s + var(--k) * 0.06s);
}
.hm-nx__bars i.is-today::before {
  background: var(--orange);
}
.hm-nx__bars i.is-today {
  color: var(--ink);
  font-weight: 600;
}
@keyframes hm-grow {
  from {
    transform: scaleY(0);
  }
}
.hm-nxc {
  min-width: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--m-line), 0 1px 0 rgba(10, 10, 10, 0.03), 0 20px 40px -26px rgba(10, 10, 10, 0.3);
  animation: hm-nxc-in 0.45s var(--ease-out) both;
}
@keyframes hm-nxc-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}
.hm-nxc__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--m-line);
}
.hm-nxc__head > span {
  flex: 1;
  min-width: 0;
}
.hm-nxc__head b,
.hm-nxc__head small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-nxc__head b {
  font-size: 12.5px;
  font-weight: 600;
}
.hm-nxc__head small {
  font-size: 11px;
  color: var(--m-muted);
}
.hm-nxc__head time {
  font-size: 11px;
  color: var(--m-muted);
}
.hm-nxc__av {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
}
.hm-nxc__av svg {
  width: 15px;
  height: 15px;
}
.hm-nxc__av--soft {
  border-radius: 50%;
  background: var(--m-soft);
  box-shadow: inset 0 0 0 1px var(--m-line);
  color: var(--ink);
}
.hm-nxc__tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--m-soft);
  box-shadow: inset 0 0 0 1px var(--m-line);
  font-size: 10.5px;
  font-weight: 500;
  font-style: normal;
  color: var(--ink);
}
.hm-nxc__tag--o {
  background: var(--orange-soft);
  box-shadow: none;
  color: var(--orange-deep);
}
.hm-nxc__foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--m-line);
  font-size: 11px;
  color: var(--m-muted);
}
.hm-nxc__foot svg {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--ink);
}

/* A chat on your website: the customer, then the AI agent */
.hm-nxc__online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hm-nxc__online::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f9e5b;
}
.hm-nxc__msgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}
.hm-nxc__msg {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.45;
  animation: hm-nxc-in 0.4s var(--ease-out) both;
}
.hm-nxc__msg small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 500;
}
.hm-nxc__msg small svg {
  width: 11px;
  height: 11px;
}
.hm-nxc__msg--in {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--m-soft);
}
.hm-nxc__msg--in small {
  color: var(--m-muted);
}
.hm-nxc__msg--ai {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--ink);
  color: #fff;
}
.hm-nxc__msg--ai small {
  color: #ffb08f;
}
.hm-nxc__msg--typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 13px;
}
.hm-nxc__msg--typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8d8d8d;
  animation: hm-dot 1s ease-in-out infinite;
}
.hm-nxc__msg--typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.hm-nxc__msg--typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes hm-dot {
  0%,
  60%,
  100% {
    opacity: 0.4;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
.hm-nxc__att {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}
.hm-nxc__att i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e4e0d8, #cfcac2);
  color: #8a857c;
}
.hm-nxc__att svg {
  width: 13px;
  height: 13px;
}
.hm-nxc__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 14px 14px;
  padding: 8px 8px 8px 12px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--m-line);
  font-size: 11.5px;
  color: #a5a5a5;
}
.hm-nxc__input i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
}
.hm-nxc__input svg {
  width: 12px;
  height: 12px;
}

/* A record: what the AI read or wrote, field by field */
.hm-nxc__rows {
  display: grid;
  padding: 4px 14px 6px;
}
.hm-nxc__rows div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 34px;
  border-top: 1px solid var(--m-line);
  font-size: 12px;
  animation: hm-nxc-in 0.4s var(--ease-out) both;
  animation-delay: calc(0.12s + var(--k, 0) * 0.09s);
}
.hm-nxc__rows div:first-child {
  border-top: 0;
}
.hm-nxc__rows dt {
  color: var(--m-muted);
}
.hm-nxc__rows dd {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-weight: 500;
}
.hm-nxc__rows dd svg {
  flex: none;
  width: 15px;
  height: 15px;
  padding: 2px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

/* A calendar week, with the new booking popping in */
.hm-nxc__week {
  display: grid;
  grid-template-columns: 34px repeat(5, minmax(0, 1fr));
  padding: 10px 12px 12px;
  font-size: 10.5px;
  color: var(--m-muted);
}
.hm-nxc__week > b {
  padding-bottom: 6px;
  font-weight: 500;
  text-align: center;
}
.hm-nxc__week > b.is-today {
  color: var(--ink);
  font-weight: 600;
}
.hm-nxc__hours {
  display: grid;
  grid-template-rows: repeat(6, 30px);
  padding-right: 6px;
  text-align: right;
}
.hm-nxc__hours span {
  transform: translateY(-6px);
}
.hm-nxc__days {
  position: relative;
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: repeating-linear-gradient(var(--m-line) 0 1px, transparent 1px 30px);
  border-bottom: 1px solid var(--m-line);
}
.hm-nxc__days > i {
  border-left: 1px solid var(--m-line);
}
.hm-nxc__ev {
  position: absolute;
  left: calc(var(--d) * 20% + 2px);
  width: calc(20% - 4px);
  top: calc(var(--s) * 30px + 2px);
  height: calc(var(--h) * 30px - 3px);
  padding: 2px 5px 2px 6px;
  overflow: hidden;
  border-radius: 5px;
  background: #efede9;
  box-shadow: inset 2px 0 0 #cfcac2;
  color: #6d6a64;
  font-size: 9.5px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hm-nxc__ev b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-nxc__ev--new {
  z-index: 1;
  background: var(--orange-soft);
  box-shadow: inset 2px 0 0 var(--orange), 0 8px 18px -10px rgba(255, 90, 31, 0.6);
  color: var(--orange-deep);
  animation: hm-pop 0.5s 0.25s var(--ease-out) both;
}
@keyframes hm-pop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* A document: the quote, line by line */
.hm-nxc__lines {
  padding: 6px 14px 4px;
}
.hm-nxc__lines p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--m-line);
  font-size: 12px;
  animation: hm-nxc-in 0.4s var(--ease-out) both;
  animation-delay: calc(0.12s + var(--k, 0) * 0.09s);
}
.hm-nxc__lines p:first-child {
  border-top: 0;
}
.hm-nxc__lines span {
  color: var(--m-muted);
}
.hm-nxc__lines b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.hm-nxc__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 14px;
  padding: 10px 0 12px;
  border-top: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 500;
}
.hm-nxc__total b {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* An email, arriving or drafted */
.hm-nxc__subj {
  padding: 12px 14px 0;
  font-size: 13px;
  font-weight: 600;
}
.hm-nxc__body {
  padding: 6px 14px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #555;
}
.hm-nxc__file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 8px 10px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px var(--m-line);
  font-size: 11.5px;
  font-weight: 500;
}
.hm-nxc__file svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
}
.hm-nxc__file small {
  margin-left: auto;
  font-weight: 400;
  color: var(--m-muted);
}

/* The one dark card: a person approves what matters */
.hm-nxc--ask {
  padding: 18px 18px 16px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 24px 48px -26px rgba(10, 10, 10, 0.6);
}
.hm-nxc__k {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #9d9d9d;
}
.hm-nxc__k i {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.hm-nxc__k i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 4px solid rgba(255, 90, 31, 0.22);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  animation: live-ring 1.6s ease-in-out infinite;
}
.hm-nxc__k.is-done i {
  background: #2f9e5b;
}
.hm-nxc__k.is-done i::after {
  display: none;
}
.hm-nxc__q {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.hm-nxc__q b {
  font-weight: 600;
}
.hm-nxc__m {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #9d9d9d;
}
.hm-nxc__go {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.hm-nxc__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s, transform 0.16s var(--ease);
}
.hm-nxc__btn:hover {
  background: var(--orange-deep);
}
.hm-nxc__btn:active {
  transform: scale(0.97);
}
.hm-nxc__go small {
  font-size: 11px;
  line-height: 1.35;
  color: #8a8a8a;
}
.hm-nxc__done {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  animation: hm-rise 0.45s var(--ease-out) both;
}
.hm-nxc__done::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2f9e5b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hm-nxc__done small {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 400;
  color: #9d9d9d;
}

/* ---------- How we work, then the booking card a full section gap below ---------- */
.hm-how {
  padding-bottom: clamp(88px, 11vw, 150px);
}
.hm-close {
  padding-top: 0;
}
.hm-close .cta .eyebrow {
  color: var(--muted-dark);
}
.hm-next {
  padding-top: 0;
  padding-bottom: clamp(64px, 8vw, 120px);
}

/* ---------- Attest by the window's own width ----------
   Narrower windows keep the rail's icons only; on phones the rail becomes a row of tabs
   over the screen and each screen keeps its main card, as the Attest page does. */
.hm-at {
  container: hm-at / inline-size;
}
@container hm-at (min-width: 640px) and (max-width: 819px) {
  .yo {
    grid-template-columns: 4.2em minmax(0, 1fr);
  }
  .yo__rail {
    align-items: center;
    padding: 1.1em 0.5em 0.9em;
  }
  .yo__uni {
    padding: 0 0 0.9em;
  }
  .yo__uni > span,
  .yo__prod b,
  .yo__prod small,
  .yo__sec,
  .yo__item > span,
  .yo__item em:not(.yo__badge),
  .yo__me > span {
    display: none;
  }
  .yo__prod {
    padding: 0.8em 0 0.6em;
  }
  .yo__nav {
    align-items: center;
    gap: 0.3em;
  }
  .yo__item {
    justify-content: center;
    width: 2.8em;
    height: 2.8em;
    padding: 0;
  }
  .yo__item.is-on::before {
    display: none;
  }
  .yo__item .yo__badge {
    position: absolute;
    top: -0.25em;
    right: -0.35em;
    min-width: 1.55em;
    height: 1.55em;
    font-size: 0.72em;
  }
  .yo__me {
    justify-content: center;
    padding: 0.8em 0 0;
    border-top: 0;
  }
}
@container hm-at (max-width: 639px) {
  .yo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .yo__rail {
    flex-direction: row;
    align-items: center;
    padding: 0.45em;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .yo__rail::-webkit-scrollbar {
    display: none;
  }
  .yo__rail::before {
    background: radial-gradient(60% 160% at 0% 0%, rgba(99, 174, 224, 0.22), transparent 70%);
  }
  .yo__uni {
    padding: 0 0.55em 0 0.35em;
    border-bottom: 0;
  }
  .yo__uni > span,
  .yo__prod,
  .yo__sec,
  .yo__me,
  .yo__item.is-on::before,
  .yo__item em:not(.yo__badge) {
    display: none;
  }
  .yo__nav {
    flex-direction: row;
    gap: 0.25em;
  }
  .yo__item {
    flex: none;
    width: auto;
    padding: 0.5em 0.8em;
  }
  .yo__view {
    padding: 1em 0.95em 0.95em;
  }
  .yv {
    gap: 0.85em;
  }
  .yv__head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6em;
  }
  .yv__tools {
    justify-content: flex-start;
  }
  .yv__h {
    font-size: 1.95em;
  }
  /* Overview: the years two by two, then who needs attention */
  .yo-ov__years {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6em;
  }
  .yo-ov__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .yo-chart,
  .yo-feed {
    display: none;
  }
  /* Register: three columns */
  .yfilters {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .yfilters::-webkit-scrollbar {
    display: none;
  }
  .yt__r {
    grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 0.55fr);
    gap: 0.7em;
    padding: 0 0.8em;
  }
  .yt__r > :nth-child(n + 4) {
    display: none;
  }
  .yt__att i {
    display: none;
  }
  /* Attendance: today's sessions */
  .yo-at {
    grid-template-columns: minmax(0, 1fr);
  }
  .yo-at__side {
    display: none;
  }
  .ysess__r {
    grid-template-columns: 3.7em minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-content: center;
    row-gap: 0.35em;
    padding: 0.55em 0.8em;
  }
  .ysess__t {
    grid-row: 1 / 3;
    align-self: center;
  }
  .ysess__w small {
    display: none;
  }
  .ysess__n {
    grid-column: 2;
    grid-row: 2;
  }
  .ysess__a {
    grid-column: 3;
    grid-row: 1 / 3;
    min-width: 0;
  }
  .ymodal--code {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 1em;
    padding: 1.4em 1.2em;
    text-align: center;
  }
  .ycode__qr svg {
    width: 7.5em;
    height: 7.5em;
  }
  .ycode__count {
    margin-inline: auto;
  }
  /* Submissions: the assignments, then the queue under them */
  .yo-sub {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .yasgs {
    grid-auto-rows: auto;
  }
  .yasg {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.4em;
    padding-block: 0.6em;
  }
  .yasg__p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .yasg__c {
    min-width: 0;
  }
  /* Messages: the threads shrink to faces */
  .yo-msg {
    grid-template-columns: 3.3em minmax(0, 1fr);
  }
  .ythreads {
    padding: 0.4em 0.3em;
  }
  .ythr {
    justify-content: center;
    padding: 0.45em 0;
  }
  .ythr > span,
  .ythr em {
    display: none;
  }
  .ythr[data-unread="1"]::after {
    top: 0.35em;
    right: 0.25em;
    bottom: auto;
  }
  .ychat__comp > small {
    display: none;
  }
  .ydraw__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ydraw__stats .ystat:nth-child(3) {
    display: none;
  }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1024px) {
  .hm-go {
    margin: 16px 0 6px;
  }
  .hm-go__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
  }
  .hm-go .spec {
    flex: 1 1 320px;
  }
  .hm-go__cta {
    margin-top: 0;
  }
}
@media (max-width: 760px) {
  .hm-at {
    height: 540px;
  }
  .hm-pr,
  .hm-nx {
    grid-template-columns: minmax(0, 1fr);
  }
  .hm-pr__call,
  .hm-nx__run {
    border-right: 0;
    border-bottom: 1px solid var(--m-line);
  }
  .hm-pr__stage {
    flex: none;
    aspect-ratio: 3 / 2;
  }
  .hm-pr__log {
    display: none;
  }
  .hm-pr__cap {
    font-size: 12px;
  }
  /* Nexidia: the run, then what each step produced under it */
  .hm-nx__run {
    padding: 14px 14px 14px;
  }
  .hm-nx__steps {
    grid-template-rows: repeat(var(--n), 46px);
  }
  .hm-nx__view {
    min-height: 330px;
    padding: 14px;
  }
  .hm-nx__week {
    display: none;
  }
}
@media (max-width: 420px) {
  .hm-pr__strip {
    gap: 5px;
  }
  .hm-pr__tile > span:last-child {
    display: none;
  }
  .hm-nx__top {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .hm-nx__save p {
    grid-template-columns: 76px minmax(0, 1fr) 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hm-nx__steps::after,
  .hm-nx__save em {
    transition: none;
  }
}
