/* ==========================================================================
   Our work, page only (loaded after styles.css): Cases 05 and 06 shown in
   Attest's own screens, and the plain mark in Case 01's admin. The rules for
   Attest's screens are copied from attest.css (the year office on a laptop, the
   student app on a phone, messages and bookings), since that sheet also restyles
   the shared case components for the Attest page. Inside the screens: Attest's
   colours (University Blue on warm white) for a made-up Aldermere University, in
   the site's own type; around them, the Nexivius colours.
   ========================================================================== */

/* ---------- 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);
  }
}

.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);
}
/* 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;
}

.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);
}
.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;
}

/* 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;
  }
}

.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__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__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;
}
.atx [data-m] {
  display: none;
}
.is-m1 .atx [data-m="1"],
.is-m2 .atx [data-m="2"] {
  display: block;
  animation: ax-pop 0.45s var(--ease-out) both;
}
.is-typing .atx [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 .atx [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%;
}

/* ==========================================================================
   Our work, Cases 05 and 06: Attest's own screens on the laptop and phone
   ========================================================================== */
/* The phone stands upright and still beside the laptop, touching only its bezel,
   so both screens read sharp (as on the Attest page) */
.scene--atx .ph__float {
  animation: none;
}

/* The steps over the visual are buttons: press one to jump to it */
.case__steps--jump {
  z-index: 3;
}
.case__steps--jump 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;
  cursor: pointer;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.case__steps--jump button:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.case__steps--jump button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.case__steps--jump button.is-done {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
}
.case__steps--jump button.is-on {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

/* The year office's pointer: positioned in the screen's own pixels */
.ad .cursor {
  transform: translate(86cqi, 52cqi);
}

/* ---------- Case 05: the year office's timetable ----------
   The week of one year group, drawn like a commercial calendar in Attest's colours:
   hairline grid, sessions tinted by kind with a thin bar (lectures navy, labs cobalt,
   seminars sky, placements green, reviews amber). The year office opens a session,
   Attest checks rooms, staff and every student's week for free slots, the session
   moves, and the students hear about it on their phones. Geometry is in cqi of the
   calendar, so an hour (--rh) and a day (--cw) stay in proportion at any size. */
.tt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  min-width: 0;
  min-height: 0;
  padding: 1.05em 1.2em 1em;
  overflow: hidden;
}
.tt__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1em;
}
.tt__head .ad__h {
  font-size: 1.7em;
}
.tt__head .ad__sub {
  margin-top: 0.3em;
  font-size: 0.76em;
  white-space: nowrap;
}
.tt__tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.tt__seg {
  display: flex;
  padding: 0.18em;
  border-radius: 0.55em;
  border: 1px solid var(--a-line);
  background: var(--a-sunk);
}
.tt__seg span {
  padding: 0.32em 0.62em;
  border-radius: 0.42em;
  font-size: 0.66em;
  font-weight: 600;
  color: var(--a-ink-3);
}
.tt__seg .is-on {
  background: var(--a-panel);
  color: var(--a-brand);
  box-shadow: 0 1px 2px rgba(12, 20, 40, 0.12);
}
.tt__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  height: 2.35em;
  padding: 0 0.8em;
  border-radius: 0.55em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  font-size: 0.66em;
  font-weight: 600;
  white-space: nowrap;
}
.tt__btn--pri {
  border-color: var(--a-brand);
  background: var(--a-brand);
  color: #fff;
}
.tt__btn svg {
  width: 1.15em;
  height: 1.15em;
}
.tt__cal {
  --gut: 8.5cqi;
  --rh: 6.1cqi;
  --cw: calc((100cqi - var(--gut)) / 5);
  flex: none;
  min-height: 0;
  border: 1px solid var(--a-line);
  border-radius: 0.75em;
  background: var(--a-panel);
  overflow: hidden;
  container-type: inline-size;
}
.tt__days {
  display: grid;
  grid-template-columns: var(--gut) repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--a-line);
}
.tt__days span {
  display: flex;
  align-items: center;
  gap: 0.4em;
  min-width: 0;
  height: 6cqi;
  padding: 0 0.7em;
  border-left: 1px solid var(--a-line);
  font-size: 0.66em;
  font-weight: 500;
  color: var(--a-ink-3);
  white-space: nowrap;
}
.tt__days span:first-child {
  border-left: 0;
}
.tt__days b {
  display: grid;
  place-items: center;
  min-width: 1.85em;
  height: 1.85em;
  border-radius: 50%;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--a-ink);
  font-variant-numeric: tabular-nums;
}
.tt__days .is-today {
  color: var(--a-cobalt);
  font-weight: 600;
}
.tt__days .is-today b {
  background: var(--a-brand);
  color: #fff;
}
.tt__grid {
  display: grid;
  grid-template-columns: var(--gut) minmax(0, 1fr);
  height: calc(8 * var(--rh));
}
.tt__hours {
  position: relative;
}
.tt__hours span {
  position: absolute;
  right: 0.8em;
  top: calc(var(--n) * var(--rh) + 0.35em);
  font-size: 0.6em;
  font-weight: 500;
  color: var(--a-ink-4);
  font-variant-numeric: tabular-nums;
}
.tt__cols {
  position: relative;
  border-left: 1px solid var(--a-line);
  background-image: linear-gradient(to bottom, var(--a-line) 1px, transparent 1px), linear-gradient(to right, var(--a-line) 1px, transparent 1px);
  background-size: 100% var(--rh), var(--cw) 100%;
  background-position: 0 0, calc(var(--cw) - 1px) 0;
}
/* Today's column is a shade warmer, with now drawn across it */
.tt__cols::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--today) * var(--cw));
  width: var(--cw);
  background: rgba(0, 83, 152, 0.035);
}
.tt__now {
  position: absolute;
  left: calc(var(--today) * var(--cw));
  top: calc(var(--s) * var(--rh));
  z-index: 2;
  width: var(--cw);
  height: 1.5px;
  background: var(--a-cobalt);
}
.tt__now::before {
  content: "";
  position: absolute;
  left: -0.3em;
  top: -0.25em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--a-cobalt);
}

/* A session: placed by day (--d), start (--s, hours after 09:00) and length (--h) */
.tev {
  --c: var(--a-brand);
  --w: #edeff3;
  position: absolute;
  left: calc(var(--d) * var(--cw) + 0.35cqi);
  top: calc(var(--s) * var(--rh) + 0.3cqi);
  z-index: 1;
  width: calc(var(--cw) - 0.9cqi);
  height: calc(var(--h) * var(--rh) - 0.6cqi);
  padding: 0.4em 0.5em;
  border-radius: 0.4em;
  border-left: 0.24em solid var(--c);
  background: var(--w);
  font-size: 0.62em;
  line-height: 1.25;
  overflow: hidden;
  transition: transform 0.95s cubic-bezier(0.65, 0, 0.35, 1), box-shadow 0.3s, opacity 0.4s;
}
.tev b,
.tev small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tev b {
  font-weight: 600;
  color: var(--a-ink);
}
.tev small {
  margin-top: 0.1em;
  font-size: 0.9em;
  color: var(--a-ink-3);
}
.tev--lab {
  --c: var(--a-cobalt);
  --w: #e6eef5;
}
.tev--sem {
  --c: #3b8dc5;
  --w: #e5f1fa;
}
.tev--pla {
  --c: var(--a-good-m);
  --w: #ebefe6;
}
.tev--rev {
  --c: var(--a-warn-m);
  --w: #f9f0e0;
}
.tev em {
  position: absolute;
  top: 0.45em;
  right: 0.45em;
  padding: 0.12em 0.45em;
  border-radius: 999px;
  background: var(--a-cobalt);
  color: #fff;
  font-size: 0.8em;
  font-style: normal;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.4s var(--a-spring);
}

/* The session that moves: picked, then glides from Wed 10:00 to Thu 14:00 */
.tev[data-t="move"] {
  z-index: 3;
}
.is-pick .tev[data-t="move"] {
  box-shadow: 0 0 0 0.16em var(--a-brand), 0 0.9em 1.6em -0.8em rgba(1, 20, 81, 0.5);
}
.is-moved .tev[data-t="move"] {
  transform: translate(calc(1 * var(--cw)), calc(4 * var(--rh)));
}
.is-landed .tev[data-t="move"] {
  box-shadow: 0 0 0 1px rgba(0, 83, 152, 0.35);
}
.is-landed .tev[data-t="move"] em {
  opacity: 1;
  transform: none;
}
/* Where it can go (dashed, once a slot is picked) and where it was (dashed, once moved) */
.tev--slot,
.tev--was {
  border: 1px dashed rgba(0, 83, 152, 0.55);
  border-left-width: 1px;
  background: rgba(0, 83, 152, 0.04);
  opacity: 0;
}
.is-opt .tev--slot {
  opacity: 1;
}
.is-moved .tev--slot {
  opacity: 0;
}
.is-moved .tev--was {
  opacity: 0.8;
}
.is-ltoast .tev--was {
  opacity: 0;
}

/* The office's toast sits bottom left, clear of Thursday afternoon */
.ad--tt .ad__toast {
  right: auto;
  left: 5.6em;
}

/* The session's sheet: who and where, then the free slots Attest found */
.tt__sheet {
  width: 38.5%;
  gap: 0.55em;
  padding: 1.1em 1em 1em;
}
.tt__sheet .ad__sh {
  font-size: 1.3em;
}
.tt__sheet .ad__sub {
  font-size: 0.74em;
  color: var(--a-ink-3);
}
.tt__facts {
  display: grid;
  gap: 0.45em;
  padding: 0.65em 0.75em;
  border-radius: 0.65em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
  font-size: 0.72em;
  color: var(--a-ink-2);
}
.tt__facts span {
  display: flex;
  align-items: center;
  gap: 0.55em;
  white-space: nowrap;
}
.tt__facts .ax-av {
  font-size: 0.82em;
}
.tt__facts svg {
  flex: none;
  width: 1.45em;
  height: 1.45em;
  padding: 0.25em;
  border-radius: 50%;
  background: var(--a-sunk);
  color: var(--a-ink-3);
}
.tt__check {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.15em;
  font-size: 0.7em;
  font-weight: 600;
  color: var(--a-ink-2);
}
.tt__check i {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  border: 0.16em solid var(--a-line-2);
  border-top-color: var(--a-cobalt);
}
.is-sheet .tt__check i {
  animation: tt-spin 0.8s linear infinite;
}
.tt__check svg {
  display: none;
  flex: none;
  width: 1.15em;
  height: 1.15em;
  color: var(--a-good);
}
.tt__check b + b,
.is-found .tt__check b:first-of-type {
  display: none;
}
.is-found .tt__check b + b {
  display: inline;
}
.is-found .tt__check i {
  display: none;
}
.is-found .tt__check svg {
  display: block;
}
@keyframes tt-spin {
  to {
    transform: rotate(1turn);
  }
}
.tt__opts {
  display: grid;
  gap: 0.4em;
}
.tt__opt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.1em 0.6em;
  padding: 0.55em 0.7em;
  border-radius: 0.6em;
  border: 1px solid var(--a-line-2);
  background: var(--a-panel);
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.35s, transform 0.45s var(--ease-out), border-color 0.3s, background 0.3s;
}
.tt__opt + .tt__opt {
  transition-delay: 0.16s, 0.16s, 0s, 0s;
}
.is-found .tt__opt {
  opacity: 1;
  transform: none;
}
.tt__opt b {
  font-size: 0.76em;
  font-variant-numeric: tabular-nums;
}
.tt__opt small {
  grid-column: 1;
  font-size: 0.64em;
  color: var(--a-ink-3);
}
.tt__opt > i {
  grid-row: 1 / 3;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--a-good-w);
  color: var(--a-good);
}
.tt__opt > i svg {
  width: 0.95em;
  height: 0.95em;
}
.is-opt .tt__opt[data-t="opt"] {
  border-color: var(--a-brand);
  background: var(--a-tint);
}
.tt__sheet .ax-btn {
  font-size: 0.78em;
}

/* The student's week on the phone: what changed lands as a push and in the list */
.ap__tth {
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6em;
  padding: 1em 1.1em 0.2em;
}
.ap__tth b {
  font-family: var(--a-display);
  font-weight: 400;
  font-size: 1.55em;
  letter-spacing: -0.02em;
  color: var(--a-brand);
}
.ap__tth small {
  font-size: 0.68em;
  font-weight: 600;
  color: var(--a-ink-3);
}
.ap__week {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3em;
  padding: 0.55em 1.1em 0.2em;
}
.ap__week span {
  display: grid;
  justify-items: center;
  gap: 0.15em;
  padding: 0.4em 0 0.45em;
  border-radius: 0.7em;
  font-size: 0.62em;
  font-weight: 600;
  color: var(--a-ink-3);
}
.ap__week b {
  font-size: 1.45em;
  color: var(--a-ink);
  font-variant-numeric: tabular-nums;
}
.ap__week .is-today {
  background: var(--a-brand);
  color: rgba(255, 255, 255, 0.75);
}
.ap__week .is-today b {
  color: #fff;
}
.ap__agenda {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42em;
  padding: 0.3em 1.1em 0.6em;
  overflow: hidden;
}
.ap__dayh {
  margin-top: 0.5em;
  font-size: 0.74em;
  font-weight: 700;
  color: var(--a-ink-3);
}
.ap__ev {
  --c: var(--a-brand);
  position: relative;
  display: grid;
  grid-template-columns: 2.9em minmax(0, 1fr);
  align-items: center;
  gap: 0.05em 0.5em;
  padding: 0.6em 0.7em 0.6em 0.85em;
  border-radius: 0.7em;
  border: 1px solid var(--a-line);
  background: var(--a-panel);
  overflow: hidden;
}
.ap__ev::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.24em;
  background: var(--c);
}
.ap__ev--lab {
  --c: var(--a-cobalt);
}
.ap__ev--sem {
  --c: #3b8dc5;
}
.ap__ev time {
  grid-row: 1 / 3;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--a-ink-2);
  font-variant-numeric: tabular-nums;
}
.ap__ev b,
.ap__ev small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap__ev b {
  font-size: 0.88em;
}
.ap__ev small {
  font-size: 0.72em;
  color: var(--a-ink-3);
}
.ap__ev em {
  position: absolute;
  top: 50%;
  right: 0.6em;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  background: var(--a-tint);
  color: var(--a-cobalt);
  font-size: 0.64em;
  font-style: normal;
  font-weight: 700;
  transform: translateY(-50%);
}
.ap__ev[data-ev="new"] {
  display: none;
  border-color: rgba(0, 83, 152, 0.35);
  background: #f2f7fb;
}
.is-told .ap__ev[data-ev="new"] {
  display: grid;
  animation: ax-pop 0.5s var(--ease-out) both;
}
.ap__ev[data-ev="old"] em {
  display: none;
}
.is-told .ap__ev[data-ev="old"] {
  opacity: 0.55;
}
.is-told .ap__ev[data-ev="old"] b {
  text-decoration: line-through;
}
.is-told .ap__ev[data-ev="old"] em {
  display: block;
  background: var(--a-sunk);
  color: var(--a-ink-3);
}
.ap__push {
  position: absolute;
  left: 0.65em;
  right: 0.65em;
  top: 0.55em;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  padding: 0.7em 0.8em;
  border-radius: 1.1em;
  border: 1px solid var(--a-line);
  background: #fff;
  box-shadow: 0 1em 2em -0.9em rgba(6, 12, 28, 0.45);
  opacity: 0;
  transform: translateY(-130%);
  transition: transform 0.55s var(--ease-out), opacity 0.3s;
}
.is-push .ap__push {
  opacity: 1;
  transform: none;
}
.ap__push > i {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 0.6em;
  background: var(--a-brand);
  color: #fff;
}
.ap__push .ax-mark {
  width: 1.4em;
  height: 1.4em;
}
.ap__push > span {
  min-width: 0;
}
.ap__push b,
.ap__push small {
  display: block;
}
.ap__push b {
  font-size: 0.84em;
}
.ap__push small {
  margin-top: 0.15em;
  font-size: 0.74em;
  line-height: 1.35;
  color: var(--a-ink-2);
}
.ap__push em {
  margin-left: auto;
  font-size: 0.66em;
  font-style: normal;
  color: var(--a-ink-4);
}

/* Back at a step's start, everything snaps into place instead of gliding backwards */
.is-snap .tev,
.is-snap .tev em,
.is-snap .tt__opt,
.is-snap .ad__sheet,
.is-snap .ad__toast,
.is-snap .ap__push {
  transition: none;
}

/* Case 01's admin keeps a plain mark in place of a client logo */
.adm__mark {
  position: relative;
  flex: none;
  width: 2.3em;
  height: 2.3em;
  border-radius: 0.65em;
  background: var(--ngm-navy);
}
.padm__brand .adm__mark {
  width: 2em;
  height: 2em;
}
.adm__mark::after {
  content: "";
  position: absolute;
  right: -0.15em;
  bottom: -0.15em;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: var(--ngm);
  box-shadow: 0 0 0 0.16em #fff;
}

/* With reduced motion nothing spins or glides: each step shows its finished moment */
@media (prefers-reduced-motion: reduce) {
  .tt__check i {
    animation: none;
  }
  .tev,
  .tt__opt,
  .ap__push {
    transition: none;
  }
}
