/* ============================================================================
   view-as.css — the floating admin view-as banner (see view-as.js).
   Marked Script: cream paper, examiner-red accent (this IS a margin note from
   the examiner to himself: "you are not yourself right now"). Bottom-LEFT so
   it can never collide with the tester note pill (bottom-right, z-index 80);
   sits one layer beneath it.
   ============================================================================ */

.va-banner {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(560px, calc(100vw - 110px));
  padding: 9px 12px 10px;
  background: var(--surface, #fbf7ef);
  color: var(--ink, #210706);
  border: 2px solid var(--accent, #891d1a);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(33, 7, 6, 0.22);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.35;
}

.va-flag {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent, #891d1a);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.va-text {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 6px;
  align-items: baseline;
}

.va-verb {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #891d1a);
}

.va-who {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.va-clock {
  font-size: 12px;
  color: var(--ink-soft, #43291e);
  font-variant-numeric: tabular-nums;
}

.va-note {
  font-size: 12px;
  color: var(--accent, #891d1a);
  font-weight: 600;
}
.va-note:empty { display: none; }

.va-link {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent, #891d1a);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 6px 2px;
}

.va-exit {
  flex: 0 0 auto;
  appearance: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 14px;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid var(--accent, #891d1a);
  background: var(--accent, #891d1a);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.va-exit:hover { background: var(--accent-strong, #6e1613); }
.va-exit:focus-visible,
.va-link:focus-visible {
  outline: 2px solid var(--ink, #210706);
  outline-offset: 2px;
}
.va-exit:disabled { opacity: 0.5; cursor: wait; }

/* Small screens: stay clear of the tester pill (right side) and thumb reach.
   Verified at 390px. */
@media (max-width: 480px) {
  .va-banner {
    left: 10px;
    bottom: 10px;
    max-width: calc(100vw - 96px);
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 8px 10px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .va-banner, .va-banner * { transition: none !important; }
}
