/* ==========================================================================
   Attest line page (/catalogue/attest): the product on a computer and a phone.
   Loaded after styles.css on this page only. The product screens keep Attest's
   own palette (University Blue on warm white) in the site's own type: Newsreader
   for screen titles and Inter for everything else. The page around them stays in
   the Nexivius style. Screens are sized in em, so the same parts work full size
   in the hero and scaled down inside the devices.
   ========================================================================== */

/* ---------- Attest's own tokens ---------- */
.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-display: var(--font-serif);
  --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;
}
.atx [data-f]:empty::before,
.atx [data-cin]:empty::before {
  content: attr(data-ph);
  color: var(--a-ink-4);
}
.ax-mark,
.ax-shield {
  display: block;
  flex: none;
}
.ax-chev {
  width: 1em;
  height: 1em;
  flex: none;
  color: var(--a-ink-4);
}
.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-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;
  transition: background 0.4s, color 0.4s;
}
.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);
}
.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 3em;
  padding: 0 1.1em;
  border-radius: 0.6em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  color: var(--a-ink);
  font-size: 0.92em;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.3s, box-shadow 0.3s;
}
.ax-btn--pri {
  background: var(--a-brand);
  border-color: var(--a-brand);
  color: #fff;
}
.atx .is-press {
  transform: scale(0.95);
}
.ax-meter {
  display: block;
  height: 0.32em;
  border-radius: 999px;
  background: var(--a-wash);
  overflow: hidden;
}
.ax-meter i {
  display: block;
  width: calc(var(--v, 0) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--a-brand);
}
@keyframes ax-pop {
  from {
    opacity: 0;
    transform: translateY(0.6em) scale(0.97);
  }
}
@keyframes ax-bump {
  40% {
    transform: scale(1.12);
  }
}

/* ==========================================================================
   Desktop: the year office (rail + main), as in the laptops of each part
   ========================================================================== */
.ad {
  position: relative;
  display: grid;
  grid-template-columns: 15.5em minmax(0, 1fr);
  background: var(--a-page);
  overflow: hidden;
}
.ad__rail {
  display: flex;
  flex-direction: column;
  gap: 0.12em;
  min-width: 0;
  padding: 1.2em 0.75em 0.9em;
  background: linear-gradient(180deg, var(--a-brand), #010b33);
  color: #fff;
}
.ad__uni {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.1em 0.5em 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--a-display);
  font-weight: 500;
  font-size: 1.08em;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.ad__uni .ax-shield {
  width: 1.65em;
  height: 1.95em;
}
.ad__prod {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.85em 0.5em 0.35em;
}
.ad__prod .ax-mark {
  width: 1.4em;
  height: 1.4em;
}
.ad__prod b {
  font-family: var(--a-display);
  font-weight: 500;
}
.ad__prod small {
  margin-left: auto;
  font-size: 0.74em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.ad__sec {
  padding: 0.95em 0.55em 0.35em;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}
.ad__item {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.5em 0.55em;
  border-radius: 0.55em;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.93em;
  white-space: nowrap;
}
.ad__item svg {
  width: 1.12em;
  height: 1.12em;
  flex: none;
  opacity: 0.85;
}
.ad__item.is-on {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-weight: 600;
}
.ad__item em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.6);
}
.ad__item .ad__alert {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: #ffc9d4;
}
.ad__alert i {
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: currentColor;
}
.ad__item .ad__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: #08111e;
  font-weight: 700;
}
.ad__badge.is-bump {
  animation: ax-bump 0.6s var(--a-spring);
}
.ad__me {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 0.45em 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.ad__me .ax-av {
  background: rgba(255, 255, 255, 0.14);
  border-color: transparent;
  color: #fff;
}
.ad__me b {
  display: block;
  font-size: 0.9em;
}
.ad__me small {
  display: block;
  font-size: 0.74em;
  color: rgba(255, 255, 255, 0.6);
}

.ad__main {
  display: flex;
  flex-direction: column;
  gap: 1.05em;
  min-width: 0;
  padding: 1.5em 1.7em;
}
.ad__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1em;
}
.ad__h {
  font-family: var(--a-display);
  font-weight: 400;
  font-size: 2.05em;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--a-brand);
}
.ad__sub {
  margin-top: 0.4em;
  font-size: 0.86em;
  color: var(--a-ink-2);
}
.ad__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75em;
}
.ad__kpis--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ad__kpi {
  min-width: 0;
  padding: 0.85em 1em 0.8em;
  border-radius: 0.9em;
  background: var(--a-panel);
  border: 1px solid var(--a-line);
}
.ad__kpi small,
.ad__kpi span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--a-ink-3);
}
.ad__kpi small {
  font-size: 0.78em;
  font-weight: 500;
}
.ad__kpi span {
  font-size: 0.72em;
}
.ad__kpi b {
  display: block;
  margin-top: 0.1em;
  font-weight: 600;
  font-size: 1.85em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--a-brand);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s;
}
.ad__kpi b.is-bump {
  color: var(--a-cobalt);
}

/* A dark toast, as Attest shows them */
.ad__toast {
  position: absolute;
  right: 1.4em;
  bottom: 1.4em;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.7em;
  max-width: calc(100% - 2.8em);
  padding: 0.7em 1.1em 0.7em 0.7em;
  border-radius: 0.85em;
  background: rgba(10, 16, 34, 0.95);
  color: #fff;
  box-shadow: 0 1.4em 2.6em -1.2em rgba(6, 12, 28, 0.6);
  opacity: 0;
  transform: translateY(40%) scale(0.97);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
  pointer-events: none;
}
.ad__toast > i {
  flex: none;
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--a-sky);
  color: #08111e;
}
.ad__toast svg {
  width: 1.05em;
  height: 1.05em;
}
.ad__toast > span {
  min-width: 0;
}
.ad__toast b,
.ad__toast small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad__toast b {
  font-size: 0.88em;
}
.ad__toast small {
  font-size: 0.74em;
  color: rgba(255, 255, 255, 0.7);
}
.ad.is-toast .ad__toast,
.is-ltoast .ad__toast {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Hero: the year office, working. A window you can click through: attest.js
   draws each screen from a sample cohort, so the register filters and sorts,
   students open, work gets set and marked, and messages send. Sizes are in em
   of .yo, so the whole app steps down with the window.
   ========================================================================== */
.lhero__mock--demo {
  padding: clamp(10px, 1.7vw, 22px);
}
.demo__head {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.demo__tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}
.demo__tag i,
.yo-win__live i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
/* The live dots pulse with a ring that only moves transform and opacity */
.demo__tag i::after,
.yo-win__live i::after,
.ysess__r[data-st="live"]::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 5px solid rgba(255, 90, 31, 0.18);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  animation: live-ring 1.6s ease-in-out infinite;
  pointer-events: none;
}
.demo__say {
  font-size: 13px;
  color: var(--muted-dark);
  white-space: nowrap;
}
.demo__try {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-left: auto;
}
.demo__try > span {
  flex: none;
  margin-right: 4px;
  font-size: 12.5px;
  color: var(--muted-dark);
}
.demo__try button {
  flex: none;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.18s var(--ease);
}
.demo__try button:hover,
.demo__try button:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.demo__try button:active {
  transform: scale(0.96);
}

/* The browser window */
.yo-win {
  position: relative;
  border-radius: 14px;
  background: #fbfbf9;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 6px rgba(255, 255, 255, 0.04), 0 50px 100px -40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.yo-win__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: #f1f1ee;
  border-bottom: 1px solid rgba(12, 20, 40, 0.1);
}
.yo-win__dots {
  display: flex;
  gap: 6px;
}
.yo-win__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8d8d4;
}
.yo-win__dots i:first-child {
  background: var(--orange);
}
.yo-win__url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 24px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(12, 20, 40, 0.1);
  font-size: 11.5px;
  letter-spacing: 0;
  color: #646b7e;
  white-space: nowrap;
}
.yo-win__url svg {
  flex: none;
  width: 11px;
  height: 11px;
  color: #405d18;
}
.yo-win__url span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.yo-win__url b {
  font-weight: 500;
  color: #0c1428;
}
.yo-win__live {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

/* The app */
.yo {
  --yo-h: clamp(500px, calc(100svh - 214px), 600px);
  position: relative;
  display: grid;
  grid-template-columns: 16.2em minmax(0, 1fr);
  height: var(--yo-h);
  background: var(--a-page);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.yo button {
  font: inherit;
  color: inherit;
  text-align: left;
}
.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.3em 0.8em 0.95em;
  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 1.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  font-family: var(--a-display);
  font-weight: 500;
  font-size: 1.24em;
  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.95em 0.5em 0.35em;
}
.yo__prod .ax-mark {
  width: 1.4em;
  height: 1.4em;
  color: var(--a-sky);
}
.yo__prod b {
  font-family: var(--a-display);
  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: 1.05em 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.52em 0.6em;
  border-radius: 0.6em;
  color: rgba(255, 255, 255, 0.78);
  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.8em;
  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;
}
.yo__item .yo__alert {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: #ffc9d4;
}
.yo__alert::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: currentColor;
}
.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);
}

/* The phone's status bar and app bar: only drawn when the demo is a phone (below) */
.yo__hd,
.demo__say-tap {
  display: none;
}

/* 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.5em 1.9em 1.5em;
}
.yv {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1.05em;
  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(--a-display);
  font-weight: 400;
  font-size: 2.35em;
  line-height: 1;
  letter-spacing: -0.024em;
  color: var(--a-brand);
}
.yv__sub {
  margin-top: 0.5em;
  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.9em;
  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.9em;
  padding: 0.35em 1.05em 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.7em 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), box-shadow 0.2s;
}
.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);
  cursor: default;
  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.8em;
  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;
}
.ax-av--lg {
  font-size: 0.9em;
}
.yrow {
  display: flex;
  align-items: center;
  gap: 0.7em;
  width: 100%;
  min-width: 0;
  padding: 0.5em 1.05em;
  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);
}

/* 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.8em;
}
.ycard {
  display: grid;
  gap: 0.55em;
  min-width: 0;
  container-type: inline-size;
  padding: 0.8em 0.95em 0.85em;
  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;
  transition: flex-grow 0.8s var(--ease-out);
}
.k-good {
  --k: var(--a-good-m);
}
.k-warn {
  --k: var(--a-warn-m);
}
.k-crit {
  --k: var(--a-crit-m);
}
.ystack i {
  background: var(--k);
}
.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: 176px) {
  .ycard__mid small {
    display: none;
  }
}
@container (max-width: 146px) {
  .ycard__top small {
    display: none;
  }
}
@container (max-width: 125px) {
  .ykey {
    flex-wrap: wrap;
    row-gap: 0.2em;
  }
}
.yo-ov__row {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.8em;
  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 + i,
.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.7em;
  min-height: 0;
  padding: 0.7em 1.5em 0.8em 1.05em;
}
.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;
  font-weight: 600;
  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;
}
.yo-attn__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  min-height: 0;
  overflow: hidden;
}
/* Rows that don't fit drop out whole (they wrap into a column that's clipped) */
.yfeed {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}
.yfeed li {
  display: flex;
  align-items: center;
  gap: 0.65em;
  width: 100%;
  min-height: 3.25em;
  padding: 0.35em 1.05em;
  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__ico[data-k="ok"] {
  background: var(--a-good-w);
  color: var(--a-good);
}
.yfeed__ico[data-k="miss"] {
  background: var(--a-crit-w);
  color: var(--a-crit);
}
.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);
}
.yo-reg__bar {
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-width: 0;
}
.yfilters {
  flex: none;
  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 {
  font-weight: 600;
  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);
}
.ysearch {
  flex: 0 1 15em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  min-width: 7em;
  height: 2.3em;
  margin-left: auto;
  padding: 0 0.75em;
  border-radius: 0.6em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  color: var(--a-ink-3);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ysearch:focus-within {
  border-color: var(--a-cobalt);
  box-shadow: 0 0 0 3px var(--a-tint);
}
.ysearch svg {
  flex: none;
  width: 1.1em;
  height: 1.1em;
}
.ysearch input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: 0;
  font-size: 0.94em;
  color: var(--a-ink);
}
.ysearch input::placeholder {
  color: var(--a-ink-4);
}
.ysearch input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.yt {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.yt__r {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 0.8fr) minmax(0, 0.95fr) minmax(0, 0.8fr) 1em;
  align-items: center;
  gap: 1em;
  width: 100%;
  padding: 0 1.05em;
}
.yt__h {
  height: 2.6em;
  border-bottom: 1px solid var(--a-line);
}
.yt__h button {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  justify-self: start;
  font-size: 0.86em;
  font-weight: 500;
  white-space: nowrap;
}
.yo .yt__h button {
  color: var(--a-ink-3);
}
.yo .yt__h button:hover,
.yo .yt__h button.is-on {
  color: var(--a-ink);
}
.yt__h button svg {
  width: 0.9em;
  height: 0.9em;
  opacity: 0;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.yt__h button.is-on svg {
  opacity: 1;
}
.yt__h button[data-dir="-1"] svg {
  transform: rotate(180deg);
}
.yt__body {
  min-height: 0;
  overflow: hidden;
}
.yt__body .yt__r {
  height: var(--rowh, 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-flash {
  animation: yo-flash 1.5s var(--ease);
}
@keyframes yo-flash {
  0%,
  35% {
    background: var(--a-tint);
  }
}
.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__none {
  padding: 2.2em 1.05em;
  color: var(--a-ink-3);
  text-align: center;
}
.yt__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  height: 2.75em;
  padding: 0 0.6em 0 1.05em;
  font-size: 0.9em;
  color: var(--a-ink-3);
  font-variant-numeric: tabular-nums;
}
.yt__pg {
  display: flex;
  gap: 0.3em;
}
.yt__pg button {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 0.55em;
  transition: background 0.2s;
}
.yo .yt__pg button {
  color: var(--a-ink-2);
}
.yt__pg button:hover {
  background: var(--a-sunk);
}
.yo .yt__pg button:disabled {
  color: var(--a-ink-4);
  opacity: 0.5;
  cursor: default;
  background: none;
}
.yt__pg svg {
  width: 1.1em;
  height: 1.1em;
}
.yt__pg button:first-child svg {
  transform: rotate(180deg);
}

/* Attendance */
.yo-at {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.ysess {
  flex: 1;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  min-height: 0;
}
.ysess__r {
  display: grid;
  grid-template-columns: 3.6em minmax(0, 1.5fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1em;
  min-height: 0;
  padding: 0 1.05em;
  border-top: 1px solid var(--a-line);
}
.ysess__r b,
.ysess__r small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ysess__t b {
  font-size: 1.02em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.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;
  font-weight: 600;
  color: var(--a-ink);
  font-variant-numeric: tabular-nums;
}
.ysess__n small b.is-bump {
  color: var(--a-good);
}
.ysess__a {
  display: flex;
  justify-content: flex-end;
  min-width: 7.6em;
}
.ysess__later {
  font-style: normal;
  font-size: 0.88em;
  color: var(--a-ink-3);
}
.ysess__r[data-st="live"] {
  background: linear-gradient(90deg, rgba(0, 83, 152, 0.07), transparent 70%);
}
.ysess__r {
  position: relative;
}
.ysess__r[data-st="live"]::before {
  content: "";
  position: absolute;
  left: 0.42em;
  top: 50%;
  width: 0.4em;
  height: 0.4em;
  margin-top: -0.2em;
  border-radius: 50%;
  background: var(--orange);
}
.ysess__r[data-st="live"]::after {
  left: calc(0.42em - 5px);
  top: calc(50% - 0.2em - 5px);
  right: auto;
  bottom: auto;
  width: 0.4em;
  height: 0.4em;
  box-sizing: content-box;
}
.yo-at__side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.8em;
  min-height: 0;
}
.yheat {
  display: grid;
  grid-template-columns: 1.2em repeat(6, minmax(0, 1fr));
  gap: 2px;
  padding: 0.1em 1.05em 0;
}
.yheat > span {
  font-size: 0.8em;
  line-height: 1.25em;
  color: var(--a-ink-3);
}
.yheat > i {
  height: 1em;
  border-radius: 0.2em;
  background: var(--c);
  transition: transform 0.15s, box-shadow 0.15s;
}
.yheat > i:hover {
  box-shadow: 0 0 0 2px var(--a-panel), 0 0 0 3px var(--a-ink);
  transform: scale(1.06);
}
.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.45em 1.05em 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);
}
.yheat__tip {
  margin-left: auto;
  font-weight: 500;
  color: var(--a-ink);
  white-space: nowrap;
}
.yo-abs p {
  padding: 0 1.05em;
  font-size: 0.92em;
  line-height: 1.45;
  color: var(--a-ink-2);
}
.yo-abs p b {
  color: var(--a-ink);
}

/* The room code, as the lecture screen shows it */
.ymodal {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9em;
  width: min(32em, calc(100% - 2.4em));
  max-height: calc(100% - 2em);
  padding: 1.3em 1.4em 1.3em;
  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.8em;
  right: 0.8em;
}
.ymodal--code {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.8em;
  width: min(41em, calc(100% - 2.4em));
  padding: 1.8em 2em;
}
.ycode__qr {
  display: grid;
  justify-items: center;
  gap: 0.5em;
  padding: 0.9em 0.9em 0.8em;
  border-radius: 1em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
}
.ycode__qr svg {
  width: 10.5em;
  height: 10.5em;
  fill: var(--a-brand);
}
.ycode__qr small {
  font-size: 0.9em;
  font-weight: 600;
}
.ycode__sess b {
  display: block;
  font-family: var(--a-display);
  font-weight: 500;
  font-size: 1.6em;
  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: 1.1em;
}
.ycode__big {
  font-size: 3.5em;
  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);
}
.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;
}
.ycode__in {
  margin-top: 0.9em;
  color: var(--a-ink-2);
}
.ycode__in b {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--a-brand);
  font-variant-numeric: tabular-nums;
}

/* Submissions */
.yo-sub {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.yasgs {
  flex: 1;
  display: grid;
  grid-auto-rows: 4.9em;
  align-content: start;
  min-height: 0;
  overflow: hidden;
}
.yasg {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1em;
  width: 100%;
  min-height: 0;
  padding: 0 1.05em;
  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.is-new {
  animation: yo-feed 0.7s var(--ease-out);
}
.yasg b,
.yasg small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yasg__t b {
  font-size: 1em;
}
.yasg small {
  font-size: 0.86em;
  color: var(--a-ink-3);
}
.yasg__p {
  display: grid;
  gap: 0.4em;
}
.yasg__p small b {
  display: inline;
  font-weight: 600;
  color: var(--a-ink);
  font-variant-numeric: tabular-nums;
}
.yasg__c {
  display: flex;
  justify-content: flex-end;
  min-width: 6.6em;
}
.yq {
  display: flex;
  align-items: center;
  gap: 0.65em;
  width: 100%;
  min-height: 3.6em;
  padding: 0.3em 0.8em 0.3em 1.05em;
  border-top: 1px solid var(--a-line);
}
.yq.is-new {
  animation: yo-feed 0.6s 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;
}
.yqs {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  min-height: 0;
  overflow: hidden;
}
.yq__more {
  flex: none;
  padding: 0.7em 1.05em 0.8em;
  border-top: 1px solid var(--a-line);
  font-size: 0.88em;
  color: var(--a-ink-3);
}
.yq__none {
  margin: auto;
  padding: 1.5em;
  max-width: 19em;
  color: var(--a-ink-3);
  text-align: center;
}

/* Sheets that slide in from the right: a student, a hand-in to mark */
.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;
  cursor: default;
}
.is-in > .yscrim {
  opacity: 1;
}
.ydraw {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
  width: min(29em, 100%);
  padding: 1.25em 1.3em 1.2em;
  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(--a-display);
  font-weight: 500;
  font-size: 1.5em;
  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.55em;
  font-weight: 600;
  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;
}
.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;
  font-size: 0.9em;
  color: var(--a-ink-2);
}
.ydoc b svg {
  width: 1.15em;
  height: 1.15em;
  color: var(--a-cobalt);
}
.ydoc i {
  height: 0.4em;
  border-radius: 999px;
  background: var(--a-wash);
}
.ydoc i:nth-of-type(2) {
  width: 92%;
}
.ydoc i:nth-of-type(4) {
  width: 84%;
}
.ydoc i:nth-of-type(5) {
  width: 58%;
}
.yta,
.yin {
  width: 100%;
  border-radius: 0.6em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  font: inherit;
  font-size: 0.95em;
  color: var(--a-ink);
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.yta {
  flex: 1;
  min-height: 4.6em;
  padding: 0.6em 0.75em;
  line-height: 1.45;
  resize: none;
}
.yin {
  height: 2.6em;
  padding: 0 0.8em;
}
.yta:focus,
.yin:focus {
  border-color: var(--a-cobalt);
  box-shadow: 0 0 0 3px var(--a-tint);
}
.yta::placeholder,
.yin::placeholder {
  color: var(--a-ink-4);
}

/* New assignment */
.ymodal__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ymodal__h b {
  font-family: var(--a-display);
  font-weight: 500;
  font-size: 1.6em;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--a-brand);
}
.yfield {
  display: grid;
  grid-template-columns: 5.4em minmax(0, 1fr);
  align-items: center;
  gap: 0.8em;
}
.yfield > span {
  font-size: 0.9em;
  font-weight: 500;
  color: var(--a-ink-2);
}
.ypills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}
.ypills button {
  height: 2.3em;
  padding: 0 0.8em;
  border-radius: 0.6em;
  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, box-shadow 0.2s;
}
.ypills button:hover {
  border-color: rgba(12, 20, 40, 0.3);
}
.ypills button.is-on {
  border-color: var(--a-brand);
  background: var(--a-tint);
  box-shadow: inset 0 0 0 1px var(--a-brand);
}
.yattach {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  justify-self: start;
  height: 2.3em;
  padding: 0 0.8em;
  border-radius: 0.6em;
  border: 1.5px dashed var(--a-line-2);
  font-size: 0.92em;
  font-weight: 600;
}
.yo .yattach {
  color: var(--a-cobalt);
}
.yattach svg {
  width: 1.1em;
  height: 1.1em;
}
.yo .yattach.is-on {
  border-style: solid;
  border-color: var(--a-line);
  background: var(--a-panel);
  color: var(--a-ink);
}
.ymodal__f {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-top: 0.2em;
  padding-top: 0.95em;
  border-top: 1px solid var(--a-line);
}
.ymodal__f small {
  font-size: 0.88em;
  color: var(--a-ink-3);
}

/* Messages */
.yo-msg {
  display: grid;
  grid-template-columns: 17.5em minmax(0, 1fr);
}
.ythreads {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  min-width: 0;
  min-height: 0;
  padding: 0.5em;
  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.is-new {
  animation: yo-feed 0.6s var(--ease-out);
}
.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.7em 0.9em 0.7em 1.05em;
  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.9em 1.05em;
  overflow: hidden;
}
.ymsg {
  flex: none;
  max-width: 74%;
  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(20em, 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(--a-display);
  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;
}
.ychat__comp {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 0.8em 0.7em;
  border-top: 1px solid var(--a-line);
}
.ychat__comp .yin {
  flex: 1;
  min-width: 0;
  height: 2.45em;
}
.ysend {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.45em;
  height: 2.45em;
  border-radius: 0.6em;
  background: var(--a-brand);
  transition: background 0.2s, transform 0.16s var(--ease);
}
.yo .ysend {
  color: #fff;
}
.ysend:hover {
  background: #0a2a8a;
}
.ysend:active {
  transform: scale(0.94);
}
.ysend svg {
  width: 1.2em;
  height: 1.2em;
}

/* Flags */
.yo-fl {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.yflags {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  min-height: 0;
  overflow: hidden;
}
.yflag {
  display: flex;
  align-items: center;
  gap: 0.75em;
  width: 100%;
  min-height: 4.1em;
  padding: 0.55em 1.05em;
  border-top: 1px solid var(--a-line);
}
.yflag[data-open="true"] {
  flex-wrap: wrap;
  row-gap: 0.6em;
  padding-block: 0.85em;
  background: linear-gradient(90deg, rgba(125, 34, 57, 0.07), transparent 75%);
}
.yflag__t {
  flex: 1;
  min-width: 0;
}
.yflag b,
.yflag small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yflag b {
  font-size: 0.97em;
}
.yflag small {
  font-size: 0.88em;
  color: var(--a-ink-2);
}
.yflag small + small {
  color: var(--a-ink-3);
}
.yflag__a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  width: 100%;
  padding-left: 2.6em;
}
.yflag .ax-chip {
  flex: none;
}
.yrules {
  flex: 1;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  min-height: 0;
}
.yrule {
  display: flex;
  align-items: center;
  gap: 0.9em;
  width: 100%;
  padding: 0 1.05em;
  border-top: 1px solid var(--a-line);
  font-size: 0.95em;
  line-height: 1.35;
  transition: background 0.2s;
}
.yrule:hover {
  background: rgba(0, 83, 152, 0.04);
}
.yrule span {
  flex: 1;
}
.ysw {
  position: relative;
  flex: none;
  width: 2.5em;
  height: 1.45em;
  border-radius: 999px;
  background: var(--a-line-2);
  transition: background 0.25s;
}
.ysw::after {
  content: "";
  position: absolute;
  top: 0.15em;
  left: 0.15em;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 20, 40, 0.3);
  transition: transform 0.3s var(--a-spring);
}
[aria-checked="true"] > .ysw {
  background: var(--a-cobalt);
}
[aria-checked="true"] > .ysw::after {
  transform: translateX(1.05em);
}
.yrules__note {
  flex: none;
  padding: 0.75em 1.05em 0.85em;
  border-top: 1px solid var(--a-line);
  font-size: 0.88em;
  color: var(--a-ink-3);
}

/* Reports */
.yo-rep {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.yreps {
  flex: 1;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  min-height: 0;
}
.yrep {
  display: flex;
  align-items: center;
  gap: 0.8em;
  min-height: 0;
  padding: 0 0.9em 0 1.05em;
  border-top: 1px solid var(--a-line);
}
.yrep > i {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 0.7em;
  background: var(--a-tint);
  color: var(--a-cobalt);
}
.yrep > i svg {
  width: 1.25em;
  height: 1.25em;
}
.yrep > span {
  flex: 1;
  min-width: 0;
}
.yrep b,
.yrep small {
  display: block;
}
.yrep b {
  font-size: 0.98em;
}
.yrep small {
  font-size: 0.88em;
  line-height: 1.35;
  color: var(--a-ink-3);
}
.yrep .yb {
  min-width: 6.4em;
}
.ypack__who {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
}
.ypack__who button {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.5em;
}
.ypack__who button:hover {
  background: var(--a-sunk);
}
.ypack__who svg {
  width: 1em;
  height: 1em;
}
.ypack__who button:first-child svg {
  transform: rotate(180deg);
}
.ypage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  min-height: 0;
  margin: 0 1.05em;
  padding: 0.9em 1em 0.8em;
  border-radius: 0.5em;
  border: 1px solid var(--a-line);
  background: linear-gradient(180deg, #fff, #fdfdfb);
  box-shadow: 0 0.6em 1.4em -1em rgba(12, 20, 40, 0.35);
  overflow: hidden;
}
.ypage__h {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding-bottom: 0.65em;
  border-bottom: 1px solid var(--a-line);
}
.ypage__h .ax-shield {
  width: 1.5em;
  height: 1.78em;
  color: var(--a-brand);
}
.ypage__h span {
  flex: 1;
  min-width: 0;
}
.ypage__h b {
  display: block;
  font-family: var(--a-display);
  font-weight: 500;
  font-size: 1.2em;
  line-height: 1.1;
  color: var(--a-brand);
}
.ypage__h small {
  display: block;
  font-size: 0.86em;
  color: var(--a-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ypage__h em {
  padding: 0.2em 0.5em;
  border-radius: 0.35em;
  background: var(--a-crit-w);
  color: var(--a-crit);
  font-style: normal;
  font-size: 0.78em;
  font-weight: 700;
}
.ypage dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35em;
  margin: 0;
}
.ypage dl div {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  font-size: 0.9em;
}
.ypage dt {
  color: var(--a-ink-3);
}
.ypage dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ypage__sig {
  display: flex;
  align-items: flex-end;
  gap: 0.7em;
  margin-top: auto;
  padding-top: 0.5em;
  border-top: 1px solid var(--a-line);
  font-size: 0.82em;
  color: var(--a-ink-3);
}
.ypage__sig svg {
  flex: none;
  width: 6.5em;
  height: 2.2em;
  overflow: visible;
}
.ypage__sig path {
  fill: none;
  stroke: var(--a-brand);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ypack__f {
  display: flex;
  align-items: center;
  gap: 0.8em;
  min-height: 3.9em;
  padding: 0.7em 1.05em 0.8em;
}
.ypack__f small {
  flex: 1;
  min-width: 0;
  font-size: 0.88em;
  color: var(--a-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yprog {
  flex: 1;
  height: 0.38em;
  border-radius: 999px;
  background: var(--a-wash);
  overflow: hidden;
}
.yprog i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--a-cobalt);
  transform-origin: left;
  animation: yo-prog 1.5s cubic-bezier(0.3, 0.1, 0.3, 1) forwards;
}
@keyframes yo-prog {
  from {
    transform: scaleX(0);
  }
}

/* The dark toast, as Attest shows them: only for what the visitor just did */
.yo__toast {
  position: absolute;
  left: 50%;
  bottom: 1.2em;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 0.7em;
  max-width: calc(100% - 2.4em);
  padding: 0.65em 1.1em 0.65em 0.65em;
  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);
}

/* ==========================================================================
   Phone: the student app (all sizes in em of the phone's own width)
   ========================================================================== */
.atx-ph .ph__screen {
  --bw-bg: #fbfbf9;
  --bw-ink: #0c1428;
}
.ap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--a-page);
  font-size: 3.85cqi;
}
.ap__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  height: 3.4em;
  padding: 0 1.1em;
  border-bottom: 1px solid var(--a-line);
}
.ap__uni {
  display: flex;
  align-items: center;
  gap: 0.45em;
  min-width: 0;
  font-family: var(--a-display);
  font-weight: 500;
  font-size: 0.9em;
  line-height: 1.05;
  color: var(--a-brand);
  white-space: nowrap;
}
.ap__uni .ax-shield {
  width: 1.45em;
  height: 1.7em;
}
.ap__uni small {
  display: block;
  margin-top: 0.15em;
  font-family: var(--font-sans);
  font-size: 0.74em;
  font-weight: 600;
  color: var(--a-ink-3);
}
.ap__prod {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-family: var(--a-display);
  font-weight: 500;
  font-size: 0.8em;
}
.ap__prod .ax-mark {
  width: 1.45em;
  height: 1.45em;
  color: var(--a-cobalt);
}

/* Home */
.ap__home {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  padding: 1.1em 1.1em 0;
}
.ap__hi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}
.ap__hi b {
  font-family: var(--a-display);
  font-weight: 400;
  font-size: 1.6em;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--a-brand);
}
.ap__card {
  padding: 0.85em 1em;
  border-radius: 1em;
  background: var(--a-panel);
  border: 1px solid var(--a-line);
}
.ap__place p:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
}
.ap__place b {
  font-size: 0.95em;
}
.ap__place p:first-child span {
  font-size: 0.76em;
  font-weight: 600;
  color: var(--a-ink-3);
  white-space: nowrap;
}
.ap__place small {
  display: block;
  margin-top: 0.15em;
  font-size: 0.76em;
  color: var(--a-ink-3);
}
.ap__prog {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 0.65em;
}
.ap__prog .ax-meter {
  flex: 1;
}
.ap__prog small {
  margin: 0;
  white-space: nowrap;
}
.ap__go {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1em;
  border-radius: 1em;
  background: var(--a-tint);
  transition: transform 0.18s var(--ease);
}
.ap__go > span {
  flex: 1;
  min-width: 0;
}
.ap__go b,
.ap__next b {
  display: block;
  font-size: 0.95em;
}
.ap__go small,
.ap__next small {
  display: block;
  font-size: 0.76em;
  color: var(--a-ink-2);
}
.ap__go .ax-chev {
  color: var(--a-cobalt);
}
.ap__next {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.8em 1em;
  border-radius: 1em;
  background: var(--a-sunk);
}
.ap__next > i {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  border: 1.5px dashed var(--a-ink-4);
}
.ap__next em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.84em;
  font-weight: 600;
  color: var(--a-ink-2);
}
.ap__lab {
  margin-top: 0.3em;
  font-size: 0.82em;
  font-weight: 600;
}
.ap__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5em;
}
.ap__tiles--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ap__tiles span {
  padding: 0.6em 0.7em;
  border-radius: 0.85em;
  background: var(--a-panel);
  border: 1px solid var(--a-line);
}
.ap__tiles b {
  display: block;
  font-weight: 600;
  font-size: 1.45em;
  line-height: 1.15;
  color: var(--a-brand);
}
.ap__tiles b.is-bump {
  color: var(--a-good);
  animation: ax-bump 0.6s var(--a-spring);
}
.ap__tiles small {
  display: block;
  font-size: 0.66em;
  line-height: 1.25;
  color: var(--a-ink-3);
}
.ap__tabs {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 4.2em;
  padding-bottom: 0.7em;
  border-top: 1px solid var(--a-line);
  background: var(--a-panel);
}
.ap__tabs span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  min-width: 0;
  font-size: 0.56em;
  font-weight: 500;
  color: var(--a-ink-3);
  white-space: nowrap;
}
.ap__tabs svg {
  width: 2.3em;
  height: 2.3em;
}
.ap__tabs .is-on {
  color: var(--a-cobalt);
  font-weight: 700;
}
.ap__tabs .is-on::before {
  content: "";
  position: absolute;
  top: 0;
  width: 2.8em;
  height: 0.28em;
  border-radius: 0 0 0.2em 0.2em;
  background: currentColor;
}

/* Sheets and their panes */
.ap__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(6, 10, 22, 0.5);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.ap:not([data-sheet=""]) .ap__scrim {
  opacity: 1;
}
.ap__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 100%;
  z-index: 4;
  overflow: hidden;
  border-radius: 1.25em 1.25em 0 0;
  background: var(--a-page);
  box-shadow: 0 -0.9em 1.4em -0.8em rgba(12, 20, 40, 0.2);
  transition: top 0.6s var(--a-sheet);
}
.ap[data-sheet="what"] .ap__sheet {
  top: 50%;
}
.ap[data-sheet="proc"] .ap__sheet {
  top: 9%;
}
.ap[data-sheet="hand"] .ap__sheet {
  top: 50%;
}
.ap[data-sheet="who"] .ap__sheet,
.ap[data-sheet="reg"] .ap__sheet,
.ap[data-sheet="how"] .ap__sheet,
.ap[data-sheet="sign"] .ap__sheet {
  top: 6%;
}
.ap[data-sheet="done"] .ap__sheet {
  top: 30%;
}
.ap__pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1.35em 1.15em 1.15em;
  background: var(--a-page);
  visibility: hidden;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.55s var(--a-sheet), opacity 0.55s var(--a-sheet), visibility 0s 0.55s;
}
.ap__pane.is-out {
  transform: translate3d(-28%, 0, 0);
  opacity: 0.35;
}
.ap__pane.is-on {
  visibility: visible;
  transform: none;
  opacity: 1;
  box-shadow: -1.2em 0 2em -1.6em rgba(12, 20, 40, 0.28);
  transition-delay: 0s;
}
.ap__st {
  font-family: var(--a-display);
  font-weight: 400;
  font-size: 1.42em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--a-brand);
}
.ap__ss {
  margin-top: 0.35em;
  font-size: 0.8em;
  line-height: 1.4;
  color: var(--a-ink-2);
}
.ap__ss b {
  color: var(--a-ink);
}
.ap__pane .ap__lab {
  margin: 1.35em 0 0.5em;
  font-size: 0.86em;
}
.ap__list {
  display: flex;
  flex-direction: column;
  margin-top: 0.9em;
  border-radius: 0.9em;
  background: var(--a-panel);
  border: 1px solid var(--a-line);
  overflow: hidden;
}
.ap__pane .ap__lab + .ap__list {
  margin-top: 0;
}
.ap__li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1em;
  border-top: 1px solid var(--a-line);
  transition: background 0.25s;
}
.ap__li:first-child {
  border-top: 0;
}
.ap__li > span {
  flex: 1;
  min-width: 0;
}
.ap__li b {
  display: block;
  font-size: 0.92em;
}
.ap__li small {
  display: block;
  font-size: 0.74em;
  color: var(--a-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap__li .ax-chip {
  font-size: 0.66em;
}
.ap__li.is-press {
  transform: none;
  background: var(--a-sunk);
}
.ap__search {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.9em;
  height: 2.7em;
  padding: 0 0.9em;
  border-radius: 0.6em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  font-size: 0.84em;
  color: var(--a-ink-4);
}
.ap__search svg {
  width: 1.15em;
  height: 1.15em;
}

/* The sign-off flow */
.ap__fh {
  display: flex;
  justify-content: space-between;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--a-ink-2);
}
.ap__fp {
  display: block;
  height: 0.22em;
  margin: 0.7em 0 1.35em;
  border-radius: 999px;
  background: var(--a-wash);
  overflow: hidden;
}
.ap__fp::after {
  content: "";
  display: block;
  width: calc(var(--p) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--a-brand);
}
.ap__ft {
  margin-bottom: 0.6em;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--a-ink-2);
}
.ap__in {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  min-height: 2.3em;
  padding: 0.35em 0.1em;
  border-bottom: 0.12em solid var(--a-brand);
  font-size: 1.12em;
  white-space: nowrap;
  overflow: hidden;
}
.ap__in > i {
  font-style: normal;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--a-ink-3);
}
.ap__note {
  margin-top: 1em;
  font-size: 0.78em;
  color: var(--a-ink-2);
}
.ap__note u {
  color: var(--a-cobalt);
  text-decoration: none;
}
.ap__opts {
  display: grid;
  gap: 0.55em;
}
.ap__opt {
  display: block;
  padding: 1em 1em;
  border-radius: 0.6em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  font-size: 0.92em;
  font-weight: 500;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.18s var(--ease);
}
.ap__opt b,
.ap__opt small {
  display: block;
}
.ap__opt small {
  font-size: 0.8em;
  color: var(--a-ink-3);
}
.ap__opt.is-sel {
  background: var(--a-tint);
  border-color: var(--a-brand);
  box-shadow: inset 0 0 0 1px var(--a-brand);
  animation: ax-sel 0.45s var(--a-spring);
}
@keyframes ax-sel {
  45% {
    transform: scale(1.025);
  }
}
.ap__target {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-top: 1.1em;
  padding: 0.8em 1em;
  border-radius: 0.6em;
  background: var(--a-tint);
  font-size: 0.78em;
  color: var(--a-ink);
}
.ap__target b {
  font-size: 0.86em;
  color: var(--a-cobalt);
}
.ap__btns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 0.55em;
  margin-top: auto;
  padding-top: 0.9em;
  border-top: 1px solid var(--a-line);
}
.ap__btns .ax-btn {
  height: 3.4em;
  padding: 0 0.6em;
  font-size: 0.9em;
}
.ap__pass {
  display: grid;
  gap: 0.7em;
  margin-top: 1.3em;
  margin-bottom: 1.2em;
  padding: 1.4em 1.2em;
  border-radius: 0.75em;
  background: var(--a-brand);
  color: #fff;
  text-align: center;
}
.ap__pass b {
  font-family: var(--a-display);
  font-weight: 500;
  font-size: 1.1em;
}
.ap__pass span {
  font-size: 0.78em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}
.ap__decl {
  margin-top: 1.1em;
  padding: 1em 1.05em;
  border-radius: 0.7em;
  background: var(--a-sunk);
  font-size: 0.8em;
  line-height: 1.5;
  color: var(--a-ink-2);
}
.ap__decl b {
  color: var(--a-ink);
}
.ap__pad {
  position: relative;
  margin-top: 1.1em;
  height: 9.2em;
  border-radius: 0.7em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
}
.ap__hint {
  position: absolute;
  left: 0;
  right: 0;
  top: 36%;
  text-align: center;
  font-size: 0.74em;
  color: var(--a-ink-4);
  transition: opacity 0.3s;
}
.ap__pad.is-signed .ap__hint {
  opacity: 0;
}
.ap__line {
  position: absolute;
  left: 1.3em;
  right: 1.3em;
  bottom: 1.4em;
  height: 1px;
  background: var(--a-line-2);
}
.ap__line::before {
  content: "×";
  position: absolute;
  left: 0;
  bottom: 0.15em;
  font-size: 0.9em;
  line-height: 1;
  color: var(--a-ink-3);
}
.ap__sig {
  position: absolute;
  left: 7%;
  top: 4%;
  width: 86%;
  aspect-ratio: 3;
  height: auto;
  overflow: visible;
}
.ap__sig path {
  fill: none;
  stroke: var(--a-brand);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ap__pad .ap__sig path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.ap__padmeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.45em;
  font-size: 0.7em;
  color: var(--a-ink-3);
}
.ap__padmeta span:first-child {
  padding: 0.3em 0.75em;
  border-radius: 0.45em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  font-weight: 600;
  color: var(--a-ink);
}
.ap__pane--done {
  align-items: center;
  text-align: center;
  padding-top: 1.7em;
}
.ap__ok {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.8em;
  height: 3.8em;
  margin-bottom: 0.7em;
  border-radius: 50%;
  background: var(--a-good);
  color: #fff;
  opacity: 0;
  transform: scale(0.4);
  transition: transform 0.55s var(--a-spring), opacity 0.3s;
}
.ap__ok svg {
  width: 1.9em;
  height: 1.9em;
}
.ap__ok::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 0.14em solid var(--a-good);
  opacity: 0;
}
.ap__pane--done.is-on .ap__ok::after,
.is-checked .ap__cidone .ap__ok::after {
  animation: ax-ring 1.2s var(--ease-out) 0.4s;
}
@keyframes ax-ring {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.9);
  }
}
.ap__pane--done .ap__st {
  font-size: 1.6em;
}
.ap__pane--done.is-on .ap__ok {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}
.ap__by {
  margin-top: 0.6em;
  font-size: 0.78em;
  font-weight: 600;
}
.ap__sig--done {
  position: static;
  width: 52%;
  margin: 0.3em 0 0.6em;
}
.ap__sig--done path {
  stroke-width: 3.4;
}
.ap__pane--done .ax-chip {
  margin-bottom: 0.5em;
  font-size: 0.76em;
}
.ap__pane--done .ap__ss {
  max-width: 21em;
  font-size: 0.82em;
}
.ap__full {
  width: 100%;
  margin-top: auto;
}

/* The keyboard: slides up when a field is tapped; each key lights as it's typed */
.ap__kb {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  padding: 0.6em 0.22em 1.9em;
  background: #d3d6dc;
  box-shadow: 0 -1px 0 rgba(12, 20, 40, 0.08);
  transform: translate3d(0, 105%, 0);
  transition: transform 0.42s var(--a-sheet);
}
.ap[data-kb="abc"] .ap__kb,
.ap[data-kb="123"] .ap__kb {
  transform: none;
}
.ap[data-kb="123"] .ap__kb-l,
.ap:not([data-kb="123"]) .ap__kb-n {
  display: none;
}
.ap__kr {
  display: flex;
  justify-content: center;
  gap: 0.3em;
}
.ap__kr + .ap__kr {
  margin-top: 0.55em;
}
.ap__kr--mid {
  padding: 0 1.1em;
}
.ap__kb i {
  position: relative;
  flex: 1;
  max-width: 2.25em;
  height: 2.7em;
  display: grid;
  place-items: center;
  border-radius: 0.34em;
  background: #fff;
  box-shadow: 0 0.09em 0 rgba(12, 20, 40, 0.3);
  color: var(--a-ink);
  font-size: 1em;
  font-style: normal;
  line-height: 1;
  transition: background 0.12s;
}
.ap__kb i svg {
  width: 1.2em;
  height: 1.2em;
}
.ap__kb .ap__kf {
  max-width: 3.1em;
  background: #adb2bd;
}
.ap__kb .ap__kf--w {
  max-width: 4.2em;
  font-size: 0.74em;
}
.ap__kb .ap__kgo {
  background: var(--a-brand);
  color: #fff;
}
.ap__kb .ap__ksp {
  flex: 4;
  max-width: none;
  font-size: 0.74em;
  color: var(--a-ink-3);
}
.ap__kb i.is-hit {
  background: #c3c7cf;
}
.ap__kb .ap__kgo.is-hit {
  background: var(--a-cobalt);
}
/* The letter pops up over the key, as on a phone */
.ap__kb-l i[data-k].is-hit:not(.ap__ksp)::after {
  content: attr(data-k);
  position: absolute;
  left: 50%;
  bottom: 92%;
  min-width: 1.5em;
  padding: 0.22em 0.35em 0.3em;
  border-radius: 0.4em;
  background: #fff;
  box-shadow: 0 0.25em 0.7em rgba(12, 20, 40, 0.25);
  font-size: 1.45em;
  text-align: center;
  transform: translateX(-50%);
}
.ap__kb-n i {
  max-width: none;
  height: 2.75em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1em;
  font-size: 1.2em;
}
.ap__kb-n i small {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--a-ink-3);
}
.ap__kb-n .ap__kf--blank {
  background: transparent;
  box-shadow: none;
}

/* The finger that uses the phone. Only the outer element moves, so a press (which
   scales the dot inside it) never shifts where it points; while signing, the dot
   narrows to a pen tip that sits on the ink. */
.ap__finger {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9;
  width: 2.4em;
  height: 2.4em;
  margin: -1.2em 0 0 -1.2em;
  opacity: 0;
  transform: translate3d(var(--fx, 0), var(--fy, 0), 0);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s;
  pointer-events: none;
}
.ap__finger::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(1, 20, 81, 0.14);
  border: 0.14em solid rgba(1, 20, 81, 0.32);
  box-shadow: 0 0 0 0.45em rgba(1, 20, 81, 0.05);
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.ap__finger.is-show {
  opacity: 1;
}
.ap__finger.is-down::before {
  transform: scale(0.78);
  background: rgba(1, 20, 81, 0.26);
}
.ap__finger.is-trace {
  transition: opacity 0.3s;
}
.ap__finger.is-trace::before {
  transform: scale(0.3);
  background: rgba(1, 20, 81, 0.6);
  border-color: transparent;
  box-shadow: 0 0 0 0.6em rgba(1, 20, 81, 0.07);
}
.ap__ripple {
  position: absolute;
  z-index: 8;
  width: 3.2em;
  height: 3.2em;
  margin: -1.6em 0 0 -1.6em;
  border-radius: 50%;
  border: 0.14em solid rgba(0, 83, 152, 0.55);
  pointer-events: none;
  animation: ax-ripple 0.6s var(--ease-out) forwards;
}
@keyframes ax-ripple {
  from {
    transform: scale(0.3);
    opacity: 1;
  }
  to {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ==========================================================================
   The sign-off: a stepper beside a phone that plays every step, on a light
   stage, with the record it makes filling in beside it
   ========================================================================== */
.so {
  --phh: clamp(470px, calc(100svh - 152px), 620px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.so__side {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.so__steps {
  display: grid;
  gap: 2px;
}
.so__steps li {
  position: relative;
}
.so__step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  width: 100%;
  padding: 11px 14px 13px 10px;
  border-radius: 16px;
  text-align: left;
  transition: background 0.3s;
}
.so__step:hover,
.so__step.is-on {
  background: var(--paper-2);
}
.so__step:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.so__n {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: background 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.so__n > * {
  grid-area: 1 / 1;
}
.so__n i {
  font-style: normal;
  transition: opacity 0.25s;
}
.so__n svg {
  width: 15px;
  height: 15px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}
.so__step.is-done .so__n {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.so__step.is-done .so__n i {
  opacity: 0;
}
.so__step.is-done .so__n svg {
  opacity: 1;
  transform: none;
}
.so__step.is-on .so__n {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 90, 31, 0.16);
}
.so__t {
  padding-top: 1px;
}
.so__t b {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.so__t span {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}
.so__who {
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.35s, color 0.35s;
}
.so__step.is-on .so__who {
  border-color: var(--line-2);
  color: var(--ink);
}
/* The line between the steps fills down in orange while each one plays */
.so__steps li:not(:last-child)::after,
.so__bar {
  position: absolute;
  left: 27px;
  top: 51px;
  bottom: -9px;
  width: 2px;
  border-radius: 2px;
}
.so__steps li:not(:last-child)::after {
  content: "";
  background: var(--line);
}
.so__bar {
  z-index: 1;
  overflow: hidden;
}
.so__steps li:last-child .so__bar {
  display: none;
}
.so__bar i {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
}
.so__step.is-done .so__bar i {
  transform: none;
}
.so__step.is-on .so__bar i {
  animation: so-down var(--d, 4s) linear forwards;
}
.so.is-paused .so__step.is-on .so__bar i {
  animation: none;
  transform: none;
}
@keyframes so-down {
  to {
    transform: scaleY(1);
  }
}

/* Play, pause and step */
.so__ctl {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
}
.so__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.18s var(--ease);
}
.so__btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.so__btn:active {
  transform: scale(0.94);
}
.so__btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.so__btn svg {
  width: 17px;
  height: 17px;
}
.so__btn--play {
  width: 46px;
  height: 46px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.so__btn--play:hover {
  border-color: var(--orange);
  background: var(--orange);
}
.so__btn--play svg {
  width: 16px;
  height: 16px;
}
.so__iplay,
.so__btn--play[aria-pressed="true"] .so__ipause {
  display: none;
}
.so__btn--play[aria-pressed="true"] .so__iplay {
  display: block;
}
.so__hint {
  margin-left: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}

/* The stage: the phone, upright and still, and the record it writes */
.so__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(28px, 72px) minmax(0, 290px);
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 26px clamp(20px, 3vw, 44px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background-color: var(--paper-2);
  background-image: radial-gradient(rgba(10, 10, 10, 0.1) 1px, transparent 1.2px), radial-gradient(70% 55% at 30% 112%, rgba(255, 90, 31, 0.2), transparent 70%);
  background-size: 18px 18px, 100% 100%;
  isolation: isolate;
  overflow: hidden;
}
.so__dev {
  position: relative;
  width: calc(var(--phh) * 0.46875);
  container-type: inline-size;
}
.so__ph {
  position: relative;
  font-size: 4.1667cqi;
  transition: transform 0.5s var(--ease-out);
}
.so__ph .ph__frame {
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.08), inset 0 0 0 0.18em #000, 0 3em 4.5em -2.4em rgba(10, 10, 10, 0.5);
}
.so__stage.is-pass .so__ph {
  transform: translate3d(0, -10px, 0);
}
/* On "Sign", the pad takes a mouse or a finger */
.so[data-step="4"] .ap__pad {
  cursor: crosshair;
  touch-action: none;
}
.so.is-yours .ap__pad {
  border-color: var(--a-cobalt);
  animation: so-pad 1.6s var(--ease) infinite;
}
@keyframes so-pad {
  50% {
    box-shadow: 0 0 0 0.35em rgba(0, 83, 152, 0.16);
  }
}
.ap__sig .ap__own {
  display: none;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}
.so.is-own .ap__own {
  display: inline;
}
.so.is-own .ap__pad .ap__sig path:not(.ap__own),
.so.is-own [data-rec-sig] {
  display: none;
}

/* The record travels down the wire to the year office */
.so__wire {
  position: relative;
  height: 2px;
  margin: 0 6px;
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.4px);
  background-size: 7px 2px;
}
.so__wire i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.2), 0 0 14px rgba(255, 90, 31, 0.7);
  opacity: 0;
}
.so__stage.is-send .so__wire i {
  animation: so-packet 0.9s var(--ease) forwards;
}
@keyframes so-packet {
  0% {
    left: 0;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
.so__meta {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.so__chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.so__holder,
.so__clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.so__holder {
  min-width: 0;
  padding: 0 13px 0 4px;
}
.so__holder span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.so__clock {
  flex: none;
  padding: 0 12px 0 10px;
  font-variant-numeric: tabular-nums;
}
.so__clock svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
}
.so__clock b {
  font-weight: 600;
}
.so__av {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  transition: background 0.4s;
}
.so__stage[data-holder="signer"] .so__av {
  background: var(--orange);
}
.so__rec {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  overflow: hidden;
}
.so__rec header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 11px;
  border-bottom: 1px solid var(--a-line);
}
.so__rec header b {
  font-family: var(--a-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--a-brand);
}
.so__rec header small {
  font-size: 12px;
  color: var(--a-ink-3);
}
.so__rec dl {
  margin: 0;
  padding: 4px 16px;
}
.so__rec dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--a-line);
}
.so__rec dt {
  flex: none;
  color: var(--a-ink-3);
}
.so__rec dd {
  position: relative;
  min-width: 4em;
  margin: 0;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.so__rec dd::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 3.4em;
  height: 0.5em;
  margin-top: -0.25em;
  border-radius: 999px;
  background: var(--a-wash);
  transition: opacity 0.3s;
}
.so__rec dd span {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.so__rec [data-rec].is-on dd::before {
  opacity: 0;
}
.so__rec [data-rec].is-on dd span {
  opacity: 1;
}
.so__recsig {
  height: 62px;
  margin: 6px 16px 0;
  border-bottom: 1px solid var(--a-line-2);
}
.so__recsig svg {
  width: 62%;
  height: 100%;
  overflow: visible;
}
.so__recsig path {
  fill: none;
  stroke: var(--a-brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.so__recsig [data-rec-sig] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.so__recst {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  font-size: 12.5px;
  color: var(--a-ink-3);
}
.so__got {
  display: none;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--a-good);
}
.so__got svg {
  width: 15px;
  height: 15px;
}
.so__stage.is-synced .so__wait {
  display: none;
}
.so__stage.is-synced .so__got {
  display: inline-flex;
  animation: ax-pop 0.45s var(--ease-out);
}
/* Where the steps sit under the phone, the stage names the step it's on */
.so__now {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.so__now b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Inside the app: each part on a laptop and a phone (Our work scenes)
   ========================================================================== */
.bw--atx {
  --bw-bg: #fbfbf9;
}
.ad--lap {
  position: absolute;
  inset: 0;
  grid-template-columns: 4em minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  font-size: 0.9em;
}
.ad--lap .ad__rail {
  align-items: center;
  gap: 0.35em;
  padding: 1.1em 0.5em;
  overflow: hidden;
}
.ad--lap .ad__uni {
  padding: 0 0 0.8em;
}
.ad--lap .ad__uni > span,
.ad--lap .ad__prod b,
.ad--lap .ad__prod small,
.ad--lap .ad__sec,
.ad--lap .ad__item > span,
.ad--lap .ad__item em:not(.ad__badge),
.ad--lap .ad__me > span {
  display: none;
}
.ad--lap .ad__prod {
  padding: 0.5em 0 0.6em;
}
.ad--lap .ad__item {
  position: relative;
  justify-content: center;
  width: 2.6em;
  height: 2.6em;
  padding: 0;
}
.ad--lap .ad__item .ad__badge {
  position: absolute;
  top: -0.15em;
  right: -0.25em;
  min-width: 1.5em;
  height: 1.5em;
  font-size: 0.72em;
}
.ad--lap .ad__me {
  justify-content: center;
  padding: 0.8em 0 0;
  border-top: 0;
}
.ad--lap .ad__main {
  gap: 0.85em;
  padding: 1.3em 1.4em;
}
.ad--lap .ad__h {
  font-size: 1.8em;
}
.ad--lap .ad__kpi b {
  font-size: 1.6em;
}
.ad__lab {
  font-size: 0.8em;
  font-weight: 600;
}
.ad__queue {
  display: flex;
  flex-direction: column;
  border-radius: 0.9em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
  overflow: hidden;
}
.ad__q {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.9em;
  border-top: 1px solid var(--a-line);
}
.ad__q:first-child {
  border-top: 0;
}
.ad__q > span {
  flex: 1;
  min-width: 0;
}
.ad__q b,
.ad__q small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad__q b {
  font-size: 0.86em;
}
.ad__q small {
  font-size: 0.72em;
  color: var(--a-ink-3);
}
.ad__q .ax-chip {
  font-size: 0.7em;
}
.ad__q[data-qnew] {
  display: none;
  background: var(--a-tint);
}
.is-queued .ad__q[data-qnew] {
  display: flex;
  animation: ax-pop 0.5s var(--ease-out);
}
.is-marked .ad__q[data-qnew] {
  display: none;
}
.ad__sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  width: 50%;
  padding: 1.3em 1.3em 1.2em;
  border-left: 1px solid var(--a-line);
  background: var(--a-page);
  box-shadow: -1.5em 0 3em -2em rgba(12, 20, 40, 0.35);
  transform: translateX(104%);
  transition: transform 0.6s var(--a-sheet);
}
.is-sheet .ad__sheet {
  transform: none;
}
.ad__sh {
  font-family: var(--a-display);
  font-weight: 500;
  font-size: 1.35em;
  letter-spacing: -0.02em;
  color: var(--a-brand);
}
.ad__sheet .ad__sub {
  margin-top: -0.3em;
}
.ad__doc {
  display: grid;
  gap: 0.45em;
  padding: 0.8em 0.9em;
  border-radius: 0.7em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
}
.ad__doc b {
  font-size: 0.76em;
  color: var(--a-ink-2);
}
.ad__doc i {
  height: 0.36em;
  border-radius: 999px;
  background: var(--a-wash);
}
.ad__doc i:nth-child(3) {
  width: 92%;
}
.ad__doc i:nth-child(5) {
  width: 84%;
}
.ad__doc i:last-child {
  width: 58%;
}
.ad__outs {
  display: flex;
  gap: 0.4em;
}
.ad__outs span {
  padding: 0.45em 0.75em;
  border-radius: 0.5em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  font-size: 0.76em;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.18s var(--ease);
}
.is-pass .ad__outs [data-t="pass"] {
  background: var(--a-good);
  border-color: var(--a-good);
  color: #fff;
}
.ad__fb {
  min-height: 4.4em;
  padding: 0.6em 0.75em;
  border-radius: 0.6em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  font-size: 0.78em;
  line-height: 1.4;
}
.ad__sheet .ax-btn {
  margin-top: auto;
  height: 2.6em;
  font-size: 0.84em;
}

/* Messages on the desktop */
.ad__inbox {
  display: grid;
  grid-template-columns: 15em minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
.ad__threads {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  min-width: 0;
  padding: 1.3em 0.7em;
  border-right: 1px solid var(--a-line);
  overflow: hidden;
}
.ad__threads .ad__h {
  padding: 0 0.3em 0.45em;
  font-size: 1.5em;
}
.ad__thr {
  display: flex;
  align-items: center;
  gap: 0.55em;
  min-width: 0;
  padding: 0.55em 0.5em;
  border-radius: 0.6em;
}
.ad__thr > span {
  flex: 1;
  min-width: 0;
}
.ad__thr b,
.ad__thr small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad__thr b {
  font-size: 0.84em;
}
.ad__thr small {
  font-size: 0.7em;
  color: var(--a-ink-3);
}
.ad__thr em {
  align-self: flex-start;
  font-style: normal;
  font-size: 0.64em;
  color: var(--a-ink-4);
}
.ad__thr[data-thnew] {
  display: none;
  background: var(--a-tint);
}
.ad__thr[data-thnew] em {
  color: var(--a-cobalt);
  font-weight: 700;
}
.is-m1 .ad__thr[data-thnew] {
  display: flex;
  animation: ax-pop 0.45s var(--ease-out);
}
.ad__chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.ad__chead {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.2em;
  border-bottom: 1px solid var(--a-line);
  background: var(--a-panel);
}
.ad__chead b,
.ad__chead small {
  display: block;
}
.ad__chead b {
  font-size: 0.9em;
}
.ad__chead small {
  font-size: 0.72em;
  color: var(--a-ink-3);
}
.ad__msgs {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5em;
  padding: 1em 1.2em;
  overflow: hidden;
}
.ad__comp {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1em;
  border-top: 1px solid var(--a-line);
  background: var(--a-panel);
}
.ad__cin {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 2.4em;
  padding: 0 0.9em;
  border-radius: 0.6em;
  border: 1px solid var(--a-line-2);
  font-size: 0.84em;
  white-space: nowrap;
  overflow: hidden;
}
.ad__offer {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  height: 2.4em;
  padding: 0 0.8em;
  border-radius: 0.6em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  font-size: 0.78em;
  font-weight: 600;
  color: var(--a-cobalt);
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s, transform 0.18s var(--ease);
}
.ad__offer svg {
  width: 1.2em;
  height: 1.2em;
}
.is-offer .ad__offer {
  background: var(--a-tint);
  border-color: var(--a-brand);
}
.ad__send,
.ap__send {
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 0.6em;
  background: var(--a-brand);
  color: #fff;
  transition: transform 0.18s var(--ease);
}
.ad__send {
  width: 2.4em;
  height: 2.4em;
}
.ad__send svg,
.ap__send svg {
  width: 1.1em;
  height: 1.1em;
}

/* Messages and bookings, shared by both screens */
.ax-msg {
  max-width: 82%;
  padding: 0.6em 0.8em;
  border-radius: 1.05em;
  font-size: 0.78em;
  line-height: 1.38;
}
.ax-msg--in {
  align-self: flex-start;
  border: 1px solid var(--a-line);
  border-bottom-left-radius: 0.3em;
  background: var(--a-panel);
}
.ax-msg--out {
  align-self: flex-end;
  border-bottom-right-radius: 0.3em;
  background: var(--a-brand);
  color: #fff;
}
.ax-msg small {
  display: block;
  margin-top: 0.3em;
  font-size: 0.78em;
  text-align: right;
  color: rgba(255, 255, 255, 0.72);
}
.ad .ax-msg {
  max-width: 72%;
  font-size: 0.84em;
}
[data-m] {
  display: none;
}
.is-m1 [data-m="1"],
.is-m2 [data-m="2"] {
  display: block;
  animation: ax-pop 0.45s var(--ease-out) both;
}
.is-typing [data-m="typing"] {
  display: inline-flex;
}
.ap__typing {
  align-self: flex-start;
  gap: 0.28em;
  padding: 0.7em 0.85em;
  border-radius: 1em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
}
.ap__typing i {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--a-ink-4);
  animation: ax-dot 1s ease-in-out infinite;
}
.ap__typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.ap__typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes ax-dot {
  0%,
  60%,
  100% {
    opacity: 0.45;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-0.25em);
  }
}
.ax-book {
  align-self: flex-start;
  gap: 0.4em;
  width: 82%;
  padding: 0.75em 0.85em;
  border-radius: 0.9em;
  border: 1px solid var(--a-line);
  border-left: 0.28em solid var(--a-brand);
  background: var(--a-panel);
  font-size: 0.78em;
}
.is-m3 [data-m="3"] {
  display: grid;
  animation: ax-pop 0.45s var(--ease-out) both;
}
.ad .ax-book {
  align-self: flex-end;
  width: 58%;
  font-size: 0.84em;
}
.ax-book b {
  font-family: var(--a-display);
  font-weight: 500;
  font-size: 1.05em;
  color: var(--a-brand);
}
.ax-book small {
  font-size: 0.85em;
  color: var(--a-ink-3);
}
.ax-book__times {
  display: flex;
  gap: 0.4em;
}
.ax-book__times i {
  padding: 0.35em 0.7em;
  border-radius: 0.45em;
  border: 1px solid var(--a-line-2);
  font-style: normal;
  font-size: 0.9em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.18s var(--ease);
}
.is-picked .ax-book__times [data-t="t1430"] {
  background: var(--a-tint);
  border-color: var(--a-brand);
  color: var(--a-brand);
}
.ax-book__go,
.ax-book__ok {
  display: none;
  align-items: center;
  font-weight: 600;
}
.ax-book__go {
  justify-content: center;
  height: 2.5em;
  border-radius: 0.5em;
  background: var(--a-brand);
  color: #fff;
  font-size: 0.9em;
  transition: transform 0.18s var(--ease);
}
.is-picked .ax-book__go {
  display: flex;
}
.ax-book__ok {
  gap: 0.4em;
  color: var(--a-good);
}
.ax-book__ok svg {
  width: 1.15em;
  height: 1.15em;
}
.is-booked .ax-book__times,
.is-booked .ax-book__go {
  display: none;
}
.is-booked .ax-book__ok {
  display: flex;
}
.ad .ax-book__go {
  display: none;
}

/* Messages on the phone */
.ap__chead {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.55em;
  height: 3.6em;
  padding: 0 1em 0 0.6em;
  border-bottom: 1px solid var(--a-line);
  background: var(--a-panel);
}
.ap__chead > svg {
  width: 1.2em;
  height: 1.2em;
  color: var(--a-cobalt);
}
.ap__chead b,
.ap__chead small {
  display: block;
}
.ap__chead b {
  font-size: 0.88em;
}
.ap__chead small {
  font-size: 0.7em;
  color: var(--a-ink-3);
}
.ap__msgs {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45em;
  padding: 0.8em 0.9em;
  overflow: hidden;
}
.ap__day {
  align-self: center;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: var(--a-sunk);
  font-size: 0.64em;
  font-weight: 600;
  color: var(--a-ink-3);
}
.ap__comp {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 0.7em;
  border-top: 1px solid var(--a-line);
  background: var(--a-panel);
}
.ap__cin {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 2.5em;
  padding: 0 0.85em;
  border-radius: 999px;
  background: var(--a-sunk);
  font-size: 0.78em;
  white-space: nowrap;
  overflow: hidden;
}
.ap__send {
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
}

/* Attendance: the lecture screen on the laptop, check-in on the phone */
.ar {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--a-page);
}
.ar__top {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.85em 1.4em;
  border-bottom: 1px solid var(--a-line);
}
.ar__uni,
.ar__prod {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--a-display);
  font-weight: 500;
  white-space: nowrap;
}
.ar__uni {
  color: var(--a-brand);
}
.ar__uni .ax-shield {
  width: 1.4em;
  height: 1.65em;
}
.ar__prod {
  padding-left: 0.8em;
  border-left: 1px solid var(--a-line-2);
  font-size: 0.9em;
}
.ar__prod .ax-mark {
  width: 1.4em;
  height: 1.4em;
  color: var(--a-cobalt);
}
.ar__full {
  margin-left: auto;
  padding: 0.45em 0.8em;
  border-radius: 0.5em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  font-size: 0.78em;
  font-weight: 600;
}
.ar__main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2em;
  padding: 1.2em 2em;
}
.ar__qr {
  display: grid;
  justify-items: center;
  gap: 0.6em;
  padding: 1em 1em 1.1em;
  border-radius: 1.1em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
  box-shadow: 0 1em 2em -1.4em rgba(12, 20, 40, 0.3);
}
.ar__qr p {
  font-size: 0.9em;
  font-weight: 600;
}
.ar__qr svg {
  width: 10.5em;
  height: 10.5em;
  fill: var(--a-brand);
  transition: opacity 0.3s;
}
.ar__sess b {
  display: block;
  font-family: var(--a-display);
  font-weight: 500;
  font-size: 1.55em;
  letter-spacing: -0.02em;
  color: var(--a-brand);
}
.ar__sess span {
  font-size: 0.86em;
  color: var(--a-ink-2);
}
.ar__or {
  margin-top: 1.1em;
  font-size: 0.78em;
  color: var(--a-ink-3);
}
.ar__big {
  margin-top: 0.15em;
  font-weight: 700;
  font-size: 3.4em;
  line-height: 1.08;
  letter-spacing: 0.06em;
  color: var(--a-brand);
  white-space: nowrap;
}
.ar__big.is-new {
  animation: ar-flip 0.5s var(--ease-out);
}
@keyframes ar-flip {
  from {
    opacity: 0;
    transform: translateY(0.25em);
  }
}
.ar__count {
  display: block;
  max-width: 15em;
  height: 0.32em;
  margin-top: 0.55em;
  border-radius: 999px;
  background: var(--a-wash);
  overflow: hidden;
}
.ar__count i {
  display: block;
  height: 100%;
  background: var(--a-cobalt);
  transform-origin: left;
}
.ar__count i.is-run {
  animation: ar-count 9s linear forwards;
}
@keyframes ar-count {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
.ar__in {
  margin-top: 0.9em;
  font-size: 0.95em;
  color: var(--a-ink-2);
}
.ar__in b {
  font-weight: 600;
  font-size: 1.5em;
  color: var(--a-brand);
  font-variant-numeric: tabular-nums;
}
.ar__in b.is-bump {
  color: var(--a-good);
}
.ar__feed {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2em;
  padding: 0.6em 1.4em;
  border-top: 1px solid var(--a-line);
}
.ar__new {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.3em 0.85em 0.3em 0.3em;
  border-radius: 999px;
  background: var(--a-good-w);
  color: var(--a-good);
  font-size: 0.8em;
  font-weight: 600;
  opacity: 0;
  transform: translateY(60%);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.ar__new .ax-av {
  font-size: 0.8em;
  background: #fff;
}
.is-checked .ar__new {
  opacity: 1;
  transform: none;
}
.ap__ci,
.ap__item {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1.2em 1.1em 0.9em;
}
.ap__ci .ap__lab {
  margin: 1.2em 0 0.4em;
}
.ap__in--code {
  font-weight: 700;
  font-size: 1.55em;
  letter-spacing: 0.12em;
}
.ap__small {
  margin-top: 0.75em;
  font-size: 0.68em;
  line-height: 1.45;
  color: var(--a-ink-3);
}
.ap__ci-go {
  display: grid;
}
.ap__ci-go > span {
  grid-area: 1 / 1;
  transition: opacity 0.3s;
}
.ap__ci-go > span + span,
.is-checking .ap__ci-go > span:first-child {
  opacity: 0;
}
.is-checking .ap__ci-go > span + span {
  opacity: 1;
}
.ap__cidone {
  position: absolute;
  inset: 3.4em 0 4.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  text-align: center;
  background: var(--a-page);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0s 0.4s;
}
.is-checked .ap__cidone {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.is-checked .ap__cidone .ap__ok {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

/* Submissions on the phone */
.ap__eb {
  margin-bottom: 0.3em;
  font-size: 0.7em;
  font-weight: 600;
  color: var(--a-ink-3);
}
.ap__notice {
  display: none;
  margin-top: 0.9em;
  padding: 0.7em 0.85em;
  border-radius: 0.7em;
  font-size: 0.72em;
  line-height: 1.42;
  color: var(--a-ink-2);
}
.ap__notice b,
.ap__notice small {
  display: block;
}
.ap__notice b {
  margin-bottom: 0.15em;
  font-size: 1.08em;
}
.ap__notice small {
  margin-top: 0.35em;
  color: var(--a-ink-3);
}
.ap__notice--with {
  background: var(--a-tint);
}
.ap__notice--with b {
  color: var(--a-cobalt);
}
.ap__notice--pass {
  background: var(--a-good-w);
}
.ap__notice--pass b {
  color: var(--a-good);
}
.is-handed .ap__notice--with {
  display: block;
  animation: ax-pop 0.45s var(--ease-out);
}
.is-passed .ap__notice--with {
  display: none;
}
.is-passed .ap__notice--pass {
  display: block;
  animation: ax-pop 0.45s var(--ease-out);
}
.ap__upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 3em;
  margin-top: 1em;
  border-radius: 0.7em;
  border: 1.5px dashed var(--a-line-2);
  color: var(--a-cobalt);
  font-size: 0.84em;
  font-weight: 600;
  transition: transform 0.18s var(--ease), background 0.3s;
}
.ap__upload svg {
  width: 1.2em;
  height: 1.2em;
}
.ap__file {
  position: relative;
  display: none;
  align-items: center;
  gap: 0.6em;
  margin-top: 1em;
  padding: 0.6em 0.8em;
  border-radius: 0.7em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
  overflow: hidden;
}
.is-file .ap__file {
  display: flex;
  animation: ax-pop 0.4s var(--ease-out);
}
.is-file .ap__upload {
  display: none;
}
.ap__file > i {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.9em;
  border-radius: 0.35em;
  background: var(--a-crit-w);
  color: var(--a-crit);
  font-size: 0.62em;
  font-weight: 700;
  font-style: normal;
}
.ap__file > span {
  flex: 1;
  min-width: 0;
}
.ap__file b,
.ap__file small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap__file b {
  font-size: 0.78em;
}
.ap__file small {
  font-size: 0.68em;
  color: var(--a-ink-3);
}
.ap__file em {
  font-style: normal;
  font-size: 0.7em;
  font-weight: 600;
  color: var(--a-cobalt);
}
.ap__prog2 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.18em;
  transition: opacity 0.3s;
}
.ap__prog2 i {
  display: block;
  height: 100%;
  background: var(--a-cobalt);
  transform: scaleX(0);
  transform-origin: left;
}
.is-file .ap__prog2 i {
  transform: scaleX(1);
  transition: transform 1.1s cubic-bezier(0.3, 0.1, 0.3, 1);
}
.is-handed .ap__prog2,
.is-handed .ap__file em,
.is-handed .ap__item .ap__btns,
.is-handed .ap__item .ap__small {
  opacity: 0;
}
.ap__item .ap__btns {
  transition: opacity 0.3s;
}
.ap__toast {
  position: absolute;
  left: 50%;
  bottom: 5em;
  z-index: 6;
  padding: 0.6em 1em;
  border-radius: 0.7em;
  background: rgba(10, 16, 34, 0.95);
  color: #fff;
  font-size: 0.72em;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 40%);
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.is-ptoast .ap__toast {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* The floating card in front of each scene */
.scene.is-toast .ptoast {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Inside the app: the phone in each part stands upright and still beside the
   laptop, touching only its bezel, so both screens read sharp
   ========================================================================== */
.case .scene {
  --lapw: 79%;
  --phw: 23%;
  --pht: 19%;
}
.case .ph {
  transform: translate3d(calc(var(--px) * -2.2em), calc(var(--py) * -1.6em), 0);
}
.js .case .scene:not(.is-in) .ph {
  transform: translate3d(-16%, 12%, 0);
}
.case .ph__float {
  animation: none;
}
/* The steps over each part are buttons: press one to jump to it */
.case__steps {
  z-index: 3;
}
.case__steps button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.case__steps button:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.case__steps button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.case__steps button.is-done {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
}
.case__steps button.is-on {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
/* While the parts stack, each moves as its own layer, so scrolling stays smooth */
@media (min-width: 901px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  [data-cases] .case {
    will-change: transform;
  }
  [data-cases] .case__shade {
    will-change: opacity;
  }
}

/* ==========================================================================
   Every school: three phones doing three jobs, worded for the school you pick
   ========================================================================== */
.schools-wrap {
  /* The phones' width over height: a real phone's, wider than the shared frame's 9 / 19.2 */
  --sr: 0.485;
  /* The middle phone's height: from the screen's height, but never so tall that
     three phones side by side (the outer two at 0.92) are wider than the page */
  --sh: min(clamp(440px, calc(100svh - 215px), 610px), calc((100vw - 2 * var(--gutter) - 2 * clamp(20px, 4.4vw, 64px) - 24px) / (var(--sr) * 2.84)));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 40px);
}
.schools__pick {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
}
.schools__lab {
  font-size: 13px;
  color: var(--muted-dark);
}
.schools__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.schools__tabs button {
  flex: none;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-dark);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.schools__tabs button:hover {
  color: #fff;
}
.schools__tabs button.is-on {
  background: #fff;
  color: var(--ink);
}
.schools__tabs button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.schools {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(20px, 4.4vw, 64px);
}
.school {
  display: grid;
  justify-items: center;
  gap: 20px;
  width: calc(var(--sh) * var(--sr) * 0.92);
  min-width: 0;
  container-type: inline-size;
}
.school--mid {
  width: calc(var(--sh) * var(--sr));
}
.school__ph {
  width: 100%;
  font-size: 4.1667cqi;
}
.school__ph .ph__frame {
  aspect-ratio: var(--sr);
}
.school__ph .ph__view,
.school figcaption span {
  transition: opacity 0.24s var(--ease);
}
.schools-wrap.is-swap .school__ph .ph__view,
.schools-wrap.is-swap figcaption span {
  opacity: 0;
}
.school figcaption {
  text-align: center;
}
.school figcaption b {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.school figcaption span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: var(--muted-dark);
}
.ap--mini .ap__home {
  gap: 0.75em;
}

/* ==========================================================================
   Evidence: the pack fills in, line by line
   ========================================================================== */
.evpack.is-wait li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-out);
}
.evpack.is-wait li.is-on {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Sizes
   ========================================================================== */
@media (max-width: 1240px) {
  .demo__say {
    display: none;
  }
}
@media (max-width: 1180px) {
  /* The record card drops out; the chips sit along the top of the stage */
  .so__stage {
    grid-template-columns: auto;
    padding-top: 66px;
  }
  .so__wire,
  .so__rec {
    display: none;
  }
  .so__meta {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 3;
  }
  .so {
    --phh: clamp(440px, calc(100svh - 176px), 580px);
  }
}
@media (max-width: 1100px) {
  .yo {
    grid-template-columns: 14em minmax(0, 1fr);
  }
  .yo-ov__row {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
  .yo-feed {
    display: none;
  }
  .yt__r {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.95fr) 1em;
  }
  .yt__r > :nth-child(6) {
    display: none;
  }
  .yo-msg {
    grid-template-columns: 15em minmax(0, 1fr);
  }
}
/* Small laptops and tablets: the rail keeps only its icons */
@media (min-width: 861px) and (max-width: 980px) {
  .yo {
    grid-template-columns: 4.4em 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;
  }
}
@media (max-width: 960px) {
  /* Sign-off: the phone first, the controls right under it, then the steps */
  .so {
    grid-template-columns: minmax(0, 1fr);
  }
  .so__stage {
    order: -1;
  }
  .so__side {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .so__ctl {
    order: -1;
    justify-content: center;
  }
  .so__now {
    display: inline-flex;
  }
  .so__holder {
    display: none;
  }
  .so__chips {
    justify-content: flex-end;
  }
}
/* Phones and small tablets: the rail becomes a row of tabs over the screen */
@media (max-width: 860px) {
  .demo__head {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .demo__try {
    width: 100%;
    margin-left: 0;
    padding: 1px 24px 3px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
  .demo__try::-webkit-scrollbar {
    display: none;
  }
  .yo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 600px;
  }
  .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,
  .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: filters scroll, search on its own line, three columns */
  .yo-reg__bar {
    flex-wrap: wrap;
  }
  .yfilters {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .yfilters::-webkit-scrollbar {
    display: none;
  }
  .ysearch {
    width: 100%;
    margin-left: 0;
  }
  .yo-reg__bar > .yb {
    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.1em 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 {
    grid-column: 2;
  }
  .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;
  }
  /* Submissions: the assignments, then the marking 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,
  .ychat__h .yb,
  .ychat__comp .yb span {
    display: none;
  }
  .ythr[data-unread="1"]::after {
    top: 0.35em;
    right: 0.25em;
    bottom: auto;
  }
  /* Flags and reports keep their main card */
  .yo-fl,
  .yo-rep {
    grid-template-columns: minmax(0, 1fr);
  }
  .yo-fl > :last-child,
  .yo-rep > :first-child {
    display: none;
  }
  .yflag__a {
    flex-wrap: wrap;
    padding-left: 0;
  }
  /* Sheets fill the screen */
  .ydraw {
    width: 100%;
    padding: 1em;
  }
  .ymodal {
    width: calc(100% - 1.6em);
    padding: 1.1em 1em;
  }
  .ymodal--code {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0.8em;
    padding: 1.3em 1em;
    text-align: center;
  }
  .ycode__qr svg {
    width: 7.5em;
    height: 7.5em;
  }
  .ycode__count {
    margin-inline: auto;
  }
  .ycode__big {
    font-size: 2.6em;
  }
  .yfield {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35em;
  }
  .ymodal__f small {
    display: none;
  }
}
@media (max-width: 700px) {
  /* Every school: the phones become a row to swipe through */
  .schools-wrap {
    --sh: calc(66vw / var(--sr));
  }
  .schools {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px 17vw 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .schools::-webkit-scrollbar {
    display: none;
  }
  .school,
  .school--mid {
    flex: none;
    width: 66vw;
    scroll-snap-align: center;
  }
  .school figcaption b {
    font-size: 22px;
  }
  .schools__tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 22px;
  }
  .schools__tabs::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 600px) {
  .lhero__mock--demo {
    padding: 8px;
    border-radius: 20px;
  }
  .demo__head {
    padding: 2px 4px 0;
  }
  .yo-win {
    border-radius: 11px;
  }
  .yo-win__bar {
    height: 32px;
    gap: 8px;
    padding: 0 10px;
  }
  .yo-win__dots i {
    width: 8px;
    height: 8px;
  }
  .yo-win__url {
    height: 21px;
    padding: 0 10px;
    font-size: 10.5px;
  }
  .yo-win__live {
    font-size: 10px;
  }
  .yo {
    height: 580px;
    font-size: 12px;
  }
  .ycard__top small,
  .ycard__mid small {
    display: none;
  }
  .ydraw__f .yb svg {
    display: none;
  }
  .so__step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px 12px 8px;
  }
  .so__n {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .so__steps li:not(:last-child)::after,
  .so__bar {
    left: 23px;
    top: 46px;
  }
  .so__who {
    display: none;
  }
  .so__t b {
    font-size: 16px;
  }
  .so__t span {
    font-size: 14px;
  }
  .so__stage {
    padding: 62px 12px 18px;
    border-radius: 22px;
  }
  .so__hint {
    display: none;
  }
}

/* Phones: the year office as the phone app. The window becomes an upright phone,
   the rail a tab bar along the bottom (five tabs, as Attest's own phone app), and
   the brand moves to a navy app bar under the status bar. Sizes in .yo are in cqi
   of the screen, so the app scales with the phone. */
@media (max-width: 760px) {
  .lhero__mock--demo {
    padding: 22px 16px 30px;
    border-radius: 0;
  }
  .demo__head {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 14px;
    max-width: 440px;
    margin: 0 auto 18px;
    padding: 0 2px;
  }
  .demo__say {
    display: block;
    font-size: 12.5px;
  }
  .demo__say-full {
    display: none;
  }
  .demo__say-tap {
    display: inline;
  }
  .demo__try {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .demo__try > span,
  .demo__try [data-try="assign"],
  .demo__try [data-try="pack"] {
    display: none;
  }
  .demo__try button {
    min-width: 0;
    height: 34px;
    padding: 0 6px;
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* The phone */
  .yo-win {
    display: flex;
    flex-direction: column;
    width: min(100%, 330px, max(280px, calc((100vh - 88px) * 0.494)));
    width: min(100%, 330px, max(280px, calc((100svh - 88px) * 0.494)));
    aspect-ratio: 9 / 18.2;
    margin-inline: auto;
    padding: 9px;
    border-radius: 50px;
    background: linear-gradient(160deg, #2c2c2c, #121212 55%, #1c1c1c);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 0 0 2px #000, 0 40px 70px -30px rgba(0, 0, 0, 0.9);
    container-type: inline-size;
    overflow: visible;
  }
  .yo-win::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 19px;
    z-index: 10;
    width: 29%;
    height: 25px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #000;
  }
  .yo-win__bar {
    display: none;
  }
  .yo {
    flex: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: auto;
    min-height: 0;
    border-radius: 41px;
    font-size: 3.8cqi;
  }
  /* Status bar and app bar */
  .yo__hd {
    display: block;
    grid-row: 1;
    background: linear-gradient(176deg, #03217a, var(--a-brand) 80%);
    color: #fff;
  }
  .yo__status {
    height: 13cqi;
    padding-top: 1.4cqi;
  }
  .yo__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8em;
    padding: 0.2em 1.15em 0.85em;
  }
  .yo__topuni {
    display: flex;
    align-items: center;
    gap: 0.5em;
    min-width: 0;
    font-family: var(--a-display);
    font-weight: 500;
    font-size: 1.12em;
    line-height: 1.05;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  .yo__topuni .ax-shield {
    flex: none;
    width: 1.35em;
    height: 1.6em;
  }
  .yo__top .ax-av {
    flex: none;
    background: rgba(255, 255, 255, 0.14);
    border-color: transparent;
    color: #fff;
    font-size: 0.74em;
  }
  .yo__main {
    grid-row: 2;
  }
  /* The rail becomes the tab bar */
  .yo__rail {
    grid-row: 3;
    display: block;
    padding: 0 0.4em 1.5em;
    overflow: visible;
    background: var(--a-panel);
    border-top: 1px solid var(--a-line);
    color: var(--a-ink-3);
  }
  .yo__rail::before {
    display: none;
  }
  .yo__nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }
  .yo__nav [data-v="flags"],
  .yo__nav [data-v="reports"] {
    display: none;
  }
  .yo .yo__item {
    flex-direction: column;
    justify-content: center;
    gap: 0.3em;
    width: 100%;
    min-width: 0;
    padding: 0.7em 0 0.35em;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--a-ink-3);
    font-size: 0.72em;
    font-weight: 500;
  }
  .yo .yo__item:hover {
    background: none;
    color: var(--a-ink);
  }
  .yo .yo__item.is-on {
    background: none;
    box-shadow: none;
    color: var(--a-cobalt);
    font-weight: 650;
  }
  .yo__item > span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .yo__item svg {
    width: 1.95em;
    height: 1.95em;
    opacity: 1;
  }
  .yo__item.is-on::before {
    display: block;
    left: 50%;
    top: 0;
    bottom: auto;
    width: 2.4em;
    height: 2.5px;
    border-radius: 0 0 3px 3px;
    background: currentColor;
    transform: translateX(-50%);
  }
  .yo__item .yo__badge {
    position: absolute;
    top: 0.45em;
    left: calc(50% + 0.6em);
    min-width: 1.6em;
    height: 1.6em;
    padding: 0 0.4em;
    background: var(--a-cobalt);
    color: #fff;
    font-size: 0.86em;
  }
  .yo__view {
    padding: 1.1em 1.05em 1em;
  }
  /* Register: the four filters fit across the screen */
  .yfilters {
    gap: 0.3em;
  }
  .yfilters button {
    gap: 0.4em;
    padding: 0 0.7em;
    font-size: 0.86em;
  }
  .yfilters button[data-f]:not([data-f="all"])::before {
    display: none;
  }
}

/* ==========================================================================
   Reduced motion: every screen shows a finished moment and stays still
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .atx *,
  .atx *::before,
  .atx *::after,
  .so__ph,
  .so__wire i,
  .so__bar i,
  .school__ph,
  .school__ph .ph__view,
  .evpack li {
    animation: none !important;
    transition: none !important;
  }
  .ap__finger,
  .ap__ripple {
    display: none;
  }
  .so__step.is-on .so__bar i {
    transform: none;
  }
}
