/* "Name · Role" on every signed-in screen (shared/who.js, 10 Oct 2026).
   A colour per role so an owner, a member of staff and a teacher read apart
   at a glance; the role is also in words, never colour alone. */
.who-chip {
  display: inline-flex; align-items: center; flex: none;
  border: 1px solid var(--border-card); border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-size: var(--type-label); line-height: 1.2;
  overflow: hidden; white-space: nowrap; max-width: 100%;
}
.who-chip__name {
  padding: 4px 10px; color: var(--deep-ink); font-weight: 600; background: var(--warm-white);
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.who-chip__role { padding: 4px 10px; font-weight: 700; color: var(--deep-ink); border-left: 1px solid var(--border-card); }
.who-chip--owner .who-chip__role { background: var(--deep-ink); color: var(--parchment); }
.who-chip--staff .who-chip__role { background: var(--sand); }
.who-chip--teacher .who-chip__role { background: var(--sage); }
.who-chip--author .who-chip__role { background: var(--lilac); }
.who-chip--other .who-chip__role { background: var(--parchment); }

/* THE STRIP: signed in on a family's page (shared/who.js Who.strip; signed-in
   audit, 15 Oct 2026). One slim bar at the very top of every family page,
   sticky, sand like the staff chip it carries. It is in the page's flow, so
   it pushes the page down rather than covering a heading. The safe area is
   added to its own padding, so on a notched phone it starts below the status
   bar. At 390 px it wraps to three short lines: chip, sentence, actions. */
.viewing-strip {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 900;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  box-sizing: border-box; width: 100%; margin: 0;
  padding: 8px 16px;
  padding-top: calc(8px + env(safe-area-inset-top));
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
  background: var(--sand); border-bottom: 1px solid var(--border-card);
  font-family: var(--font-ui); font-size: var(--type-label); line-height: 1.45;
  color: var(--deep-ink); text-align: left;
}
.viewing-strip__text { flex: 1 1 320px; min-width: 0; margin: 0; }
.viewing-strip__text strong { font-weight: 700; }
.viewing-strip__said { font-weight: 700; }
.viewing-strip__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.viewing-strip__act {
  font: inherit; font-weight: 700; color: var(--deep-ink); background: none; border: 0;
  padding: 6px 0; margin: 0; cursor: pointer; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 2px;
}
.viewing-strip__act:hover { text-decoration-thickness: 2px; }
.viewing-strip__act:focus-visible { outline: 2px solid var(--deep-ink); outline-offset: 2px; }
.viewing-strip__act:disabled { opacity: 0.6; cursor: default; }
/* Where homework is taken back (row 473): a quiet link in the strip's ink. */
.viewing-strip__homework a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.viewing-strip__homework a:focus-visible { outline: 2px solid var(--deep-ink); outline-offset: 2px; }
/* Inside the exam room the strip sits ABOVE the CBT header, as one more row
   of the room's column (the in-class bar's place, shell.css .class-call-bar),
   so the header and the paper keep their own space below it and nothing is
   ever drawn over the header. */
.viewing-strip.viewing-strip--in-room { position: static; flex: 0 0 auto; }
/* A family button drawn as the family sees it, which nobody here can press:
   the access door's Begin when there is nothing for this account to open. */
.viewing-off { opacity: 0.5; cursor: not-allowed; }
