/* Approved full-product redesign layer. Kept separate from the recovered baseline. */
:root {
  --mj-ink: #07301b;
  --mj-muted: #536657;
  --mj-paper: #fffaf0;
  --mj-mint: #dce9d9;
  --mj-peach: #f4cdb4;
  --mj-blue: #d9e9f2;
  --mj-coral: #eb775f;
  --mj-sun: #efc25c;
  --mj-line: #89927a;
  --mj-shadow: #747b65;
  --mj-space-1: 8px;
  --mj-space-2: 12px;
  --mj-space-3: 16px;
  --mj-space-4: 24px;
  --mj-space-5: 32px;
  --mj-target: 44px;
  --mj-mobile-nav-clearance: calc(96px + env(safe-area-inset-bottom));
  font-family: "Patrick Hand", "Trebuchet MS", sans-serif;
}

#app,
#app button,
#app input,
#app select,
#app textarea {
  font-family: "Patrick Hand", "Trebuchet MS", sans-serif;
}

#app h1,
#app h2,
#app h3,
#app .meja-mini-wordmark,
#app .audience-round strong,
#app .audience-speaker-panel strong,
#app .audience-topic-panel strong,
#app .audience-timer-panel > strong,
#app .host-remote-header h1,
#app .host-person-card strong,
#app .arcade-button.primary {
  font-family: "DynaPuff", "Arial Rounded MT Bold", sans-serif !important;
  letter-spacing: 0;
}

#app .history-page h1,
#app .setup-page h1,
#app .info-page h1 {
  font-family: "DynaPuff", "Arial Rounded MT Bold", sans-serif !important;
}

#app :where(a, button, input, select, textarea, [role="button"]):focus-visible {
  outline: 3px solid #147ad6;
  outline-offset: 3px;
}

#app :where(input, select, textarea):focus {
  outline: 3px solid #147ad6;
  outline-offset: 3px;
  box-shadow: inset 0 0 0 3px #147ad6;
}

#app :where(.panel, .history-row, .library-row, .option-card, .topic-card, .arcade-button),
#app :where(.panel, .history-row, .library-row, .option-card, .topic-card, .arcade-button) * {
  min-width: 0;
  overflow-wrap: anywhere;
}

#app .arcade-button,
#app .icon-toggle,
#app .mini-toggle {
  min-width: 44px;
  min-height: 44px;
  border-color: var(--mj-line);
  box-shadow: 0 4px 0 var(--mj-shadow);
}

#app .arcade-button:active,
#app .icon-toggle:active,
#app .mini-toggle:active {
  translate: 0 3px;
  box-shadow: 0 1px 0 var(--mj-shadow);
}

#app .history-copy {
  min-width: 0;
}

#app .history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mj-space-1) var(--mj-space-2);
  min-width: 0;
  overflow: visible;
}

#app .history-meta span {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

#app .history-row.history-card {
  height: auto;
  min-height: 176px;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  overflow: visible;
}

#app .history-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mj-space-1) var(--mj-space-2);
  align-items: center;
}

#app .history-actions {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: var(--mj-space-2);
}

#app .setup-view-nav {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 auto 16px;
  padding: 5px;
  border: 1.5px solid var(--mj-line);
  border-radius: 16px;
  background: rgb(255 250 240 / 72%);
}

#app .setup-view-nav button {
  min-width: 0;
  min-height: 44px;
  padding: 7px 8px;
  color: inherit;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-size: 19px;
  line-height: 1;
  overflow-wrap: anywhere;
}

#app .setup-view-nav button.active {
  background: var(--mj-mint);
  box-shadow: inset 0 -3px 0 rgb(116 123 101 / 40%);
}

#app .setup-page[data-setup-view="overview"] .topic-editor-panel,
#app .setup-page[data-setup-view="overview"] .topic-library-panel,
#app .setup-page[data-setup-view="create"] .setup-topic-card,
#app .setup-page[data-setup-view="create"] .setup-clubhouse-card,
#app .setup-page[data-setup-view="create"] .topic-library-panel,
#app .setup-page[data-setup-view="library"] .setup-topic-card,
#app .setup-page[data-setup-view="library"] .setup-clubhouse-card,
#app .setup-page[data-setup-view="library"] .topic-editor-panel {
  display: none !important;
}

/* Audience: one display-only 16:9 composition. */
body:has(.audience-display-page) {
  height: 100dvh !important;
  min-height: 100dvh !important;
  display: grid;
  place-items: center;
  overflow: hidden !important;
  background: #d9e3d2;
}

body:has(.audience-display-page) #app,
body:has(.audience-display-page) .app-shell,
body:has(.audience-display-page) .app-main {
  width: 100%;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#app .app-shell-focus:has(.audience-display-page) .app-main {
  display: grid;
  place-items: center;
  padding: 14px !important;
}

#app .audience-display-page {
  width: min(calc(100vw - 28px), calc((100dvh - 28px) * 16 / 9));
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 2vw, 28px);
  padding: clamp(18px, 3vw, 48px);
  overflow: hidden;
  color: var(--mj-ink);
  background:
    radial-gradient(circle at 4% 8%, rgb(244 205 180 / 45%), transparent 22%),
    radial-gradient(circle at 96% 92%, rgb(189 215 231 / 55%), transparent 28%),
    var(--mj-paper);
  border: 2px solid var(--mj-line);
  border-radius: clamp(12px, 2vw, 28px);
  box-shadow: 0 10px 0 var(--mj-shadow), 0 24px 60px rgb(18 47 27 / 20%);
}

#app .audience-display-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--mj-space-4);
}

#app .audience-display-header .meja-mini-wordmark {
  font-size: clamp(20px, 2.4vw, 40px);
  text-shadow: none;
}

#app .audience-round {
  display: grid;
  justify-items: center;
  line-height: 1;
}

#app .audience-round span {
  color: var(--mj-muted);
  font-size: clamp(14px, 1.4vw, 23px);
}

#app .audience-round strong {
  margin-top: 3px;
  font-size: clamp(30px, 4.2vw, 68px);
  line-height: 0.95;
}

#app .audience-mode {
  justify-self: end;
  max-width: 100%;
  padding: clamp(7px, 0.9vw, 14px) clamp(12px, 1.5vw, 24px);
  border: 1.5px solid var(--mj-line);
  border-radius: 999px;
  background: var(--mj-peach);
  font-size: clamp(15px, 1.55vw, 25px);
  line-height: 1;
  text-align: center;
}

#app .audience-stage,
#app .audience-live-composition {
  min-height: 0;
  width: 100%;
}

#app .audience-stage {
  display: block;
  overflow: hidden;
}

#app .audience-live-composition {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(360px, 1.55fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(14px, 2.4vw, 36px);
}

#app .audience-speaker-panel,
#app .audience-topic-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid var(--mj-line);
  border-radius: clamp(14px, 2vw, 28px);
  box-shadow: 0 clamp(4px, 0.65vw, 10px) 0 var(--mj-shadow);
}

#app .audience-speaker-panel {
  align-items: center;
  padding: clamp(16px, 2.4vw, 38px);
  text-align: center;
  background: var(--mj-mint);
}

#app .audience-speaker-icon {
  width: clamp(58px, 6.5vw, 104px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: clamp(8px, 1.4vw, 20px);
  border: 1.5px solid var(--mj-line);
  border-radius: 50%;
  background: rgb(255 250 240 / 72%);
}

#app .audience-speaker-icon .simple-icon,
#app .audience-speaker-icon svg {
  width: 58%;
  height: 58%;
}

#app .audience-speaker-panel > span:not(.audience-speaker-icon),
#app .audience-topic-panel > span {
  color: var(--mj-muted);
  font-size: clamp(15px, 1.7vw, 27px);
}

#app .audience-speaker-panel strong {
  max-width: 100%;
  margin-top: 4px;
  font-size: clamp(30px, 4.5vw, 72px);
  line-height: 1;
}

#app .audience-topic-panel {
  padding: clamp(22px, 3.5vw, 56px);
  background: rgb(255 253 247 / 96%);
}

#app .audience-topic-panel strong {
  max-width: 100%;
  margin-top: clamp(8px, 1.3vw, 20px);
  font-size: clamp(27px, 4vw, 64px);
  line-height: 1.12;
  text-wrap: balance;
}

#app .audience-paged-text {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  display: grid;
  align-content: center;
  gap: 4px;
  padding-bottom: 2px;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#app .audience-topic-panel > .audience-paged-text {
  width: 100%;
  flex: 1 1 auto;
}

#app .audience-text-page {
  min-width: 0;
  max-width: 100%;
  display: block;
  padding-block: 2px;
  line-height: 1.27;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#app .audience-page-indicator {
  justify-self: end;
  color: var(--mj-muted);
  font-family: "Patrick Hand", "Trebuchet MS", sans-serif;
  font-size: clamp(11px, 1vw, 16px);
  font-weight: 400;
  line-height: 1;
  padding-block: 1px;
}

#app .audience-timer-panel {
  min-width: 0;
  min-height: 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto;
  gap: clamp(12px, 2vw, 30px);
  align-items: center;
  overflow: hidden;
}

#app .audience-timer-panel > strong {
  min-width: 2.7ch;
  font-size: clamp(30px, 4.5vw, 72px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

#app .audience-timer-track {
  height: clamp(18px, 2.2vw, 34px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  overflow: hidden;
  border: 1.5px solid var(--mj-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--mj-sage) 42%, white);
}

#app .audience-timer-track i {
  background: transparent;
  transition: background-color 220ms ease, filter 220ms ease;
}

#app .audience-timer-track.signal-green .strip-green { background: #62a16a; }
#app .audience-timer-track.signal-yellow .strip-yellow { background: var(--mj-sun); }
#app .audience-timer-track.signal-red .strip-red { background: var(--mj-coral); }

#app .audience-timer-track.signal-flash.signal-green .strip-green,
#app .audience-timer-track.signal-flash.signal-yellow .strip-yellow,
#app .audience-timer-track.signal-flash.signal-red:not(.signal-blink) .strip-red {
  animation: timer-band-flash 680ms ease-out;
}

#app .audience-timer-track.signal-blink .strip-red {
  animation: timer-red-blink 760ms ease-in-out infinite;
}

#app .audience-timer-panel em {
  max-width: 18ch;
  color: var(--mj-muted);
  font-size: clamp(14px, 1.6vw, 25px);
  font-style: normal;
  line-height: 1;
  text-align: right;
}

/* Host: mobile first, one viewport, low-frequency controls in More. */
body:has(.host-remote-page) {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: #d9e3d2;
}

body:has(.host-remote-page) #app,
body:has(.host-remote-page) .app-shell,
body:has(.host-remote-page) .app-main {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

#app .app-shell-focus:has(.host-remote-page) .app-main {
  padding: 0 !important;
}

#app .host-remote-page {
  width: min(100%, 430px);
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  color: var(--mj-ink);
  background:
    linear-gradient(105deg, rgb(220 233 217 / 82%), transparent 42%),
    var(--mj-paper);
  border-inline: 1px solid var(--mj-line);
}

#app .host-remote-header {
  position: static;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: var(--mj-space-2);
  align-items: center;
  padding: 12px 16px 9px;
  background: transparent;
  backdrop-filter: none;
}

#app .host-remote-header > div {
  display: grid;
  justify-items: center;
  gap: 2px;
}

#app .host-remote-header > div > span {
  padding: 3px 9px;
  border: 1px solid var(--mj-line);
  border-radius: 999px;
  background: var(--mj-peach);
  font-size: 14px;
  line-height: 1;
}

#app .host-remote-header h1 {
  margin: 4px 0 0;
  font-size: clamp(24px, 7vw, 31px);
  line-height: 1;
}

#app .host-round-content {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: var(--mj-space-2);
  padding: 6px 16px 14px;
  overflow: hidden;
}

#app .remote-sync-status {
  margin: 0;
  overflow: hidden;
  color: var(--mj-muted);
  font-size: 14px;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app .host-person-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px;
  gap: var(--mj-space-2);
  align-items: center;
  padding: 10px 12px;
  border: 1.5px solid var(--mj-line);
  border-radius: 16px;
  background: var(--mj-mint);
  box-shadow: 0 4px 0 var(--mj-shadow);
}

#app .host-person-icon {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--mj-line);
  border-radius: 50%;
  background: rgb(255 250 240 / 72%);
}

#app .host-person-icon .simple-icon,
#app .host-person-icon svg {
  width: 30px;
  height: 30px;
}

#app .host-person-card > span:nth-child(2) {
  display: grid;
}

#app .host-person-card em {
  color: var(--mj-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1;
}

#app .host-person-card strong {
  max-width: 100%;
  font-size: clamp(23px, 7vw, 30px);
  line-height: 1;
}

#app .host-topic-card {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  overflow: hidden;
  border: 1.5px solid var(--mj-line);
  border-radius: 16px;
  background: #fffdf7;
  box-shadow: 0 4px 0 var(--mj-shadow);
}

#app .host-topic-card .audience-topic-card {
  min-height: 0;
  width: 100%;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 10px;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#app .host-topic-card .audience-topic-card strong {
  max-height: 4.2em;
  overflow: hidden;
  font-size: clamp(22px, 6.5vw, 30px);
  line-height: 1.05;
}

#app .host-topic-card .remote-topic-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#app .host-topic-card .remote-topic-choice-grid .arcade-button {
  min-height: 42px;
  padding: 6px 8px;
  font-size: 17px;
}

#app .host-round-content > .live-time-strip {
  margin: 0;
}

#app .host-round-content .time-strip-heading {
  margin-bottom: 3px;
}

#app .host-round-content .time-strip-heading strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

#app .host-round-content .time-strip-bar {
  min-height: 30px;
}

#app .remote-primary-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

#app .remote-primary-controls .arcade-button.lg {
  min-height: 54px;
  padding: 9px 12px;
  font-size: clamp(19px, 5.5vw, 23px);
}

#app .host-control-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--mj-line);
  background: rgb(255 250 240 / 98%);
}

#app .host-control-nav button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 5px 2px;
  color: inherit;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-size: 15px;
  line-height: 1;
}

#app .host-control-nav button.active {
  background: #e3e6cf;
}

#app .host-control-nav .simple-icon,
#app .host-control-nav svg {
  width: 25px;
  height: 25px;
}

#app .remote-more-sheet {
  position: absolute;
  z-index: 20;
  inset: auto 12px calc(76px + env(safe-area-inset-bottom)) 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--mj-line);
  border-radius: 18px;
  background: var(--mj-paper);
  box-shadow: 0 6px 0 var(--mj-shadow), 0 20px 40px rgb(18 47 27 / 20%);
}

#app .remote-more-sheet .arcade-button {
  min-height: 48px;
  padding: 7px 9px;
  font-size: 17px;
}

@media (min-width: 700px) {
  #app .host-remote-page {
    margin-block: 10px;
    height: calc(100dvh - 20px);
    border: 1.5px solid var(--mj-line);
    border-radius: 28px;
    box-shadow: 0 8px 0 var(--mj-shadow), 0 24px 54px rgb(18 47 27 / 20%);
  }
}

@media (max-height: 720px) {
  #app .host-remote-header { padding-block: 8px 6px; }
  #app .host-remote-header h1 { font-size: 23px; }
  #app .host-round-content { gap: 7px; padding-bottom: 9px; }
  #app .host-person-card { padding-block: 7px; }
  #app .host-control-nav button { min-height: 52px; }
  #app .host-round-content .time-strip-bar { min-height: 24px; }
}

@media (max-width: 760px) {
  #app .history-row.history-card {
    min-height: 0;
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 14px;
  }

  #app .history-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
  }
}

/* MEJA-115: contextual proportional scroll indicators. */
:root {
  --mj-scroll-track: color-mix(in oklch, var(--mj-line) 16%, transparent);
  --mj-scroll-thumb: color-mix(in oklch, var(--mj-ink) 42%, transparent);
  --mj-scroll-thumb-active: color-mix(in oklch, var(--mj-ink) 68%, var(--mj-sage));
}

@media (min-width: 920px) {
  html[data-scroll-indicator="page"]::-webkit-scrollbar {
    display: block !important;
    width: 10px;
  }

  html[data-scroll-indicator="page"]::-webkit-scrollbar-track {
    background: var(--mj-scroll-track);
  }

  html[data-scroll-indicator="page"]::-webkit-scrollbar-thumb {
    min-height: 32px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--mj-scroll-thumb);
    background-clip: padding-box;
  }

  #app [data-scroll-indicator="panel"] {
    scrollbar-width: thin !important;
    scrollbar-color: var(--mj-scroll-thumb) var(--mj-scroll-track) !important;
    scrollbar-gutter: stable !important;
    padding-inline-end: max(12px, var(--mj-space-3)) !important;
  }

  #app [data-scroll-indicator="panel"]::-webkit-scrollbar {
    display: block !important;
    width: 6px;
  }

  #app [data-scroll-indicator="panel"]::-webkit-scrollbar-track {
    background: var(--mj-scroll-track);
    border-radius: 999px;
  }

  #app [data-scroll-indicator="panel"]::-webkit-scrollbar-thumb {
    min-height: 32px;
    border-radius: 999px;
    background: var(--mj-scroll-thumb);
  }

  #app [data-scroll-indicator="panel"]:is(:hover, :focus-within),
  #app [data-scroll-indicator="panel"].scroll-indicator-active {
    scrollbar-color: var(--mj-scroll-thumb-active) var(--mj-scroll-track) !important;
  }
}

@media (max-width: 919px) {
  #app :is(#bulkParticipants, #bulkRole):focus {
    outline-offset: -3px;
  }

  #app [data-scroll-indicator="mobile"] {
    scrollbar-width: thin !important;
    scrollbar-color: transparent transparent !important;
  }

  html[data-scroll-indicator="mobile"]::-webkit-scrollbar,
  #app [data-scroll-indicator="mobile"]::-webkit-scrollbar {
    display: block !important;
    width: 3px;
  }

  html[data-scroll-indicator="mobile"]::-webkit-scrollbar-track,
  #app [data-scroll-indicator="mobile"]::-webkit-scrollbar-track {
    background: transparent;
  }

  html[data-scroll-indicator="mobile"]::-webkit-scrollbar-thumb,
  #app [data-scroll-indicator="mobile"]::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: transparent;
  }

  #app [data-scroll-indicator="mobile"].scroll-indicator-active {
    scrollbar-color: var(--mj-scroll-thumb-active) transparent !important;
  }

  html[data-scroll-indicator="mobile"].scroll-indicator-active::-webkit-scrollbar-thumb,
  #app [data-scroll-indicator="mobile"].scroll-indicator-active::-webkit-scrollbar-thumb {
    background: var(--mj-scroll-thumb-active);
  }
}

/* MEJA-124: Living Stage gives one material phase the visual center at a time. */
.sr-only {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#app .living-stage-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--mj-space-3, 14px);
  padding: clamp(14px, 3vw, 22px);
  border: 1px solid color-mix(in oklch, var(--mj-line, var(--line)) 48%, transparent);
  border-radius: 18px;
  background: color-mix(in oklch, var(--mj-sage, var(--sage)) 56%, var(--mj-paper, var(--paper)));
  box-shadow: inset 0 -3px 0 color-mix(in oklch, var(--mj-line, var(--line)) 18%, transparent);
}

#app .living-stage-identity > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#app .living-stage-identity em {
  color: color-mix(in oklch, var(--mj-ink, var(--ink)) 62%, transparent);
  font-style: normal;
  font-weight: 900;
}

#app .living-stage-identity h2 {
  margin: 0 !important;
}

#app .living-stage-identity > strong {
  font-family: 'DynaPuff', 'Patrick Hand', cursive;
  font-size: clamp(2.1rem, 8vw, 4.7rem);
  line-height: 0.9;
  white-space: nowrap;
}

#app .living-stage-topic-context {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: clamp(12px, 2.5vw, 18px);
  border: 1px solid color-mix(in oklch, var(--mj-line, var(--line)) 46%, transparent);
  border-radius: 16px;
  background: color-mix(in oklch, var(--mj-card, var(--surface)) 88%, var(--mj-sage, var(--sage)));
}

#app .living-stage-topic-context span {
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

#app .living-stage-topic-context strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.22rem, 4.6vw, 1.65rem);
  line-height: 1.08;
}

#app .speech-cue .topic-card--face-down {
  opacity: 0.58;
  transform: scale(0.96);
}

#app .speech-cue .topic-card--face-down:is(:hover, :focus-visible) {
  opacity: 1;
  transform: translate(-2px, -2px) scale(0.98);
}

@media (max-width: 919px) {
  #app .speech-cue .live-topic-grid {
    grid-template-columns: 1fr;
  }

  #app .speech-cue .topic-card--face-down {
    min-height: 88px;
  }

  #app .living-stage-identity {
    padding: 13px 15px;
  }

  #app .living-stage-identity > strong {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }
}

@media (min-width: 920px) {
  #app .desktop-stage-column .round-ready-cue .round-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #app .desktop-stage-column .round-ready-cue .assignment-card {
    min-height: 68px;
    padding: 10px 13px;
  }

  #app .desktop-stage-column .speech-cue .live-topic-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr) !important;
  }

  #app .desktop-stage-column .living-stage-topic-context {
    justify-self: stretch;
  }

  #app .desktop-stage-column :is(.speech-cue, .evaluation-cue) .living-stage-identity h2 {
    font-size: clamp(2.5rem, 4vw, 4.5rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app .speech-cue .topic-card--face-down,
  #app .speech-cue .topic-card--face-down:is(:hover, :focus-visible) {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  html[data-scroll-indicator],
  #app [data-scroll-indicator] {
    scrollbar-color: CanvasText Canvas !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-scroll-indicator],
  #app [data-scroll-indicator] {
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* MEJA-114: approved balanced spacing, scrolling, and reachability contract. */
#app .arcade-button,
#app .icon-toggle,
#app .mini-toggle,
#app .setup-view-nav button,
#app .host-control-nav button,
#app .manage-topic-link,
#app .sync-warning-banner .warning-dismiss,
#app .host-topic-card .remote-topic-choice-grid .arcade-button,
#app .live-app-header .header-actions .icon-toggle {
  min-inline-size: var(--mj-target) !important;
  min-block-size: var(--mj-target) !important;
}

#app .manage-topic-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
}

html:has(.landing-page),
body:has(.landing-page),
#app .app-shell:not(:has(.audience-display-page)) .app-main,
#app .host-round-content,
#app .desktop-stage-column > .live-cue-card,
#app .desktop-drawer-body,
#app .desktop-drawer-body .people-add-panel,
#app .desktop-drawer-body .participant-list,
#app .desktop-drawer-body .topic-tool-panel,
#app .desktop-drawer-body .timer-tools,
#app .desktop-drawer-body .progress-panel {
  scrollbar-width: none;
  scrollbar-gutter: auto !important;
}

html:has(.landing-page)::-webkit-scrollbar,
body:has(.landing-page)::-webkit-scrollbar,
#app .app-shell:not(:has(.audience-display-page)) .app-main::-webkit-scrollbar,
#app .host-round-content::-webkit-scrollbar,
#app .desktop-stage-column > .live-cue-card::-webkit-scrollbar,
#app .desktop-drawer-body::-webkit-scrollbar,
#app .desktop-drawer-body .people-add-panel::-webkit-scrollbar,
#app .desktop-drawer-body .participant-list::-webkit-scrollbar,
#app .desktop-drawer-body .topic-tool-panel::-webkit-scrollbar,
#app .desktop-drawer-body .timer-tools::-webkit-scrollbar,
#app .desktop-drawer-body .progress-panel::-webkit-scrollbar {
  display: none;
}

html:has(:is(.device-choice-page, .setup-page, .history-page, .info-page)),
body:has(:is(.device-choice-page, .setup-page, .history-page, .info-page)) {
  height: auto !important;
  min-height: 100dvh;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body:has(:is(.device-choice-page, .setup-page, .history-page, .info-page)) #app,
body:has(:is(.device-choice-page, .setup-page, .history-page, .info-page)) .app-shell,
body:has(:is(.device-choice-page, .setup-page, .history-page, .info-page)) .app-main {
  height: auto !important;
  min-height: 100dvh;
  overflow: visible !important;
}

#app .device-choice-page {
  gap: var(--mj-space-5);
}

#app .device-choice-actions {
  gap: var(--mj-space-3);
}

#app .device-choice-action {
  min-height: 148px;
  padding: var(--mj-space-4);
}

#app .pairing-page {
  min-height: 100%;
  align-content: center;
  padding: 24px 32px;
  overflow: visible;
}

#app .pairing-panel {
  width: min(960px, 100%);
  display: block;
  padding: 32px;
  text-align: left;
}

#app .pairing-actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(220px, 280px);
  column-gap: 32px;
  row-gap: 24px;
  align-items: center;
}

#app .pairing-copy {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: var(--mj-space-2);
  text-align: left;
}

#app .pairing-copy h1,
#app .pairing-copy p {
  margin: 0;
}

#app .pairing-visual {
  display: grid;
  place-items: center;
}

#app .pairing-qr {
  width: clamp(220px, 24vw, 280px);
  max-width: 100%;
  padding: 12px;
}

#app .pairing-copy-link {
  width: fit-content;
  min-height: var(--mj-target);
}

#app .pairing-copy-feedback {
  min-height: 1.2em;
  color: var(--mj-muted);
  font-weight: 800;
  line-height: 1.2;
}

#app .pairing-continue {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
}

#app .app-shell-landing .app-main {
  padding-inline: clamp(32px, 4vw, 48px) !important;
}

#app .app-shell-landing .landing-page {
  gap: var(--mj-space-5);
}

#app .hero-copy {
  gap: var(--mj-space-2);
}

#app .hero-actions,
#app .home-menu-grid {
  gap: var(--mj-space-3);
}

#app .landing-board {
  margin-top: var(--mj-space-5);
}

#app .info-page {
  gap: var(--mj-space-5);
}

#app .rule-list,
#app .use-case-grid {
  gap: var(--mj-space-4);
}

#app .setup-page,
#app .history-page {
  gap: var(--mj-space-5);
}

#app .setup-view-nav {
  gap: var(--mj-space-1);
  margin-bottom: var(--mj-space-4);
}

#app .setup-stack,
#app .history-list {
  gap: var(--mj-space-3);
}

#app .setup-page .panel,
#app .history-page .panel {
  padding: var(--mj-space-4);
}

#app .panel-title {
  margin-bottom: var(--mj-space-3);
}

#app .topic-set-feature {
  min-height: 56px;
  gap: var(--mj-space-2);
}

#app .history-title-line,
#app .history-meta {
  gap: var(--mj-space-1) var(--mj-space-2);
}

#app .history-actions,
#app .history-empty-state .cue-actions {
  gap: var(--mj-space-2);
}

#app .setup-cue-content {
  display: contents;
}

@media (min-width: 920px) {
  #app .app-shell:not(.app-shell-game):not(.app-shell-focus) > .bottom-nav {
    position: absolute !important;
  }

  #app .app-shell-game .desktop-live-page {
    height: calc(100dvh - 132px) !important;
  }

  #app .desktop-status-strip {
    gap: var(--mj-space-1);
    margin-bottom: var(--mj-space-2);
  }

  #app .desktop-game-workbench {
    gap: var(--mj-space-4);
  }

  #app .desktop-stage-column > .live-cue-card,
  #app .desktop-drawer-body {
    padding: var(--mj-space-4);
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  #app .desktop-drawer-body .add-list-card textarea {
    height: 84px;
    min-height: 84px;
  }

  #app .desktop-stage-column .setup-cue {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  #app .desktop-stage-column .setup-cue-content {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: var(--mj-space-3);
    padding-bottom: var(--mj-space-3);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  #app .desktop-stage-column .setup-cue-content::-webkit-scrollbar {
    display: none;
  }

  #app .desktop-stage-column .setup-cue .cue-actions {
    position: static;
    z-index: 3;
    width: 100% !important;
    margin-top: 0 !important;
    padding-top: var(--mj-space-3);
    border-top: 1px solid color-mix(in oklch, var(--mj-line) 42%, transparent);
    background: var(--mj-paper);
  }

  #app .desktop-stage-column .setup-cue .cue-actions .arcade-button.primary.lg {
    width: 100%;
    min-height: 56px !important;
  }

  #app .first-timer-flow {
    gap: var(--mj-space-1);
  }

  #app .first-timer-flow span {
    min-height: var(--mj-target);
  }
}

body:has(.host-remote-page),
body:has(.host-remote-page) #app,
body:has(.host-remote-page) .app-shell,
body:has(.host-remote-page) .app-main {
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#app .app-shell-focus:has(.host-remote-page) .app-main {
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#app .host-remote-page {
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative;
}

#app .host-remote-header {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: var(--mj-space-2);
  padding: 12px 16px;
}

#app .host-round-content {
  min-height: 0;
  grid-template-rows: none;
  align-content: start;
  gap: var(--mj-space-2);
  padding: 8px 16px 20px;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

#app .host-round-base {
  display: contents;
}

#app .host-round-base[inert] {
  pointer-events: none;
}

#app .host-person-card,
#app .host-topic-card {
  gap: var(--mj-space-1);
}

#app .host-topic-card {
  overflow: visible;
}

#app .host-topic-card .audience-topic-card strong {
  max-height: none;
  overflow: visible;
}

#app .remote-primary-controls {
  gap: var(--mj-space-2);
}

#app .remote-primary-controls .arcade-button.lg {
  min-height: 56px;
}

#app .host-control-nav {
  gap: var(--mj-space-1);
}

#app .host-control-nav button {
  min-height: 58px !important;
}

#app .remote-more-sheet {
  bottom: calc(112px + env(safe-area-inset-bottom));
  gap: var(--mj-space-2);
}

#app .app-shell-focus:has(.audience-display-page) .app-main {
  padding: clamp(14px, 2vh, 22px) clamp(16px, 2.6vw, 30px) !important;
}

#app .audience-display-page {
  width: min(100%, calc((100dvh - 44px) * 16 / 9));
  max-width: 100%;
  gap: clamp(20px, 2.4vh, 24px);
  padding: clamp(20px, 3vw, 40px);
}

#app .audience-display-header {
  gap: clamp(20px, 2.4vw, 24px);
}

#app .audience-live-composition {
  gap: clamp(24px, 2.5vw, 32px);
}

#app .audience-timer-panel {
  gap: clamp(16px, 2vw, 24px);
}

@media (min-width: 920px) and (max-width: 1110px) {
  #app .desktop-game-workbench {
    gap: var(--mj-space-3);
  }
}

@media (min-width: 920px) and (min-height: 761px) {
  #app .audience-timer-panel {
    height: clamp(76px, 5.5vw, 88px);
  }

  #app .audience-paged-name .audience-text-page {
    line-height: 88px;
  }

  #app .audience-paged-topic .audience-text-page {
    line-height: 79px;
  }
}

@media (min-width: 700px) and (max-width: 919px) {
  #app .app-shell:has(.pairing-page) {
    width: 100%;
    margin-block: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #app .audience-paged-text {
    position: relative;
    display: block;
    padding: 1px 48px 1px 0;
  }

  #app .audience-text-page {
    padding-block: 0;
    line-height: 1.34;
  }

  #app .audience-page-indicator {
    position: absolute;
    right: 0;
    bottom: 1px;
  }

  #app .audience-live-composition {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: var(--mj-space-2);
  }

  #app .audience-speaker-panel {
    height: 82px;
    min-height: 82px;
    display: grid;
    grid-template-columns: 52px auto minmax(0, 1fr);
    gap: var(--mj-space-2);
    align-items: center;
    justify-content: initial;
    padding: 12px;
    text-align: left;
  }

  #app .audience-speaker-icon {
    width: 52px;
    margin: 0;
  }

  #app .audience-speaker-panel > span:not(.audience-speaker-icon) {
    font-size: 17px;
  }

  #app .audience-speaker-panel strong {
    height: 100%;
    align-self: stretch;
    margin: 0;
    font-size: 28px;
  }

  #app .audience-topic-panel {
    padding: 20px;
  }

  #app .audience-topic-panel > span {
    font-size: 17px;
  }

  #app .audience-topic-panel strong {
    margin-top: var(--mj-space-1);
    font-size: 30px;
  }

  #app .audience-timer-panel {
    height: 64px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--mj-space-1) var(--mj-space-2);
  }

  #app .audience-timer-panel em {
    grid-column: 1 / -1;
    max-width: none;
    font-size: 15px;
    text-align: center;
  }
}

@media (max-width: 699px) {
  #app .app-shell-landing .app-main {
    padding-inline: 16px !important;
    padding-bottom: var(--mj-mobile-nav-clearance) !important;
  }

  #app .app-shell-landing .landing-page {
    gap: var(--mj-space-4);
    padding-bottom: var(--mj-mobile-nav-clearance) !important;
  }

  #app .hero-actions,
  #app .home-menu-grid {
    gap: var(--mj-space-2);
  }

  #app .landing-board {
    margin-top: var(--mj-space-4);
    padding-bottom: calc(var(--mj-mobile-nav-clearance) + var(--mj-space-1));
  }

  #app .landing-page :where(a, button) {
    scroll-margin-bottom: var(--mj-mobile-nav-clearance);
  }

  #app .device-choice-page {
    gap: var(--mj-space-4);
    padding-inline: 16px;
    padding-bottom: var(--mj-mobile-nav-clearance);
  }

  #app .device-choice-actions {
    gap: var(--mj-space-2);
  }

  #app .device-choice-action {
    min-height: 112px;
    padding: var(--mj-space-3);
  }

  #app .pairing-page {
    align-content: start;
    padding: 20px 16px;
  }

  #app .pairing-panel {
    padding: 20px;
  }

  #app .pairing-actions {
    grid-template-columns: 1fr;
    gap: var(--mj-space-3);
  }

  #app .pairing-copy {
    justify-items: stretch;
  }

  #app .pairing-copy-link {
    width: 100%;
  }

  #app .pairing-qr {
    width: min(240px, calc(100vw - 72px));
  }

  #app .pairing-continue {
    grid-column: 1;
  }

  #app .setup-page,
  #app .history-page,
  #app .info-page {
    gap: var(--mj-space-4);
    padding-inline: 16px;
    padding-bottom: var(--mj-mobile-nav-clearance) !important;
  }

  #app .setup-page .panel,
  #app .history-page .panel {
    padding: var(--mj-space-3);
  }

  #app .audience-display-page {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    gap: var(--mj-space-2);
    padding: 12px;
  }

  #app .audience-display-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--mj-space-1);
  }

  #app .audience-display-header .meja-mini-wordmark {
    font-size: 20px;
  }

  #app .audience-round span,
  #app .audience-mode {
    font-size: 14px;
  }

  #app .audience-round strong {
    font-size: 28px;
  }

  #app .audience-mode {
    max-width: 11ch;
    padding: 6px 8px;
  }

  #app .audience-live-composition {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: var(--mj-space-2);
  }

  #app .audience-speaker-panel {
    height: clamp(96px, 14dvh, 116px);
    min-height: 82px;
    display: grid;
    grid-template-columns: 48px auto minmax(0, 1fr);
    gap: var(--mj-space-2);
    align-items: center;
    justify-content: initial;
    padding: 12px;
    text-align: left;
  }

  #app .audience-speaker-icon {
    width: 48px;
    margin: 0;
  }

  #app .audience-speaker-panel > span:not(.audience-speaker-icon) {
    font-size: 16px;
  }

  #app .audience-speaker-panel strong {
    height: 100%;
    align-self: stretch;
    margin: 0;
    font-size: 26px;
  }

  #app .audience-topic-panel {
    padding: 20px;
  }

  #app .audience-topic-panel > span {
    font-size: 16px;
  }

  #app .audience-topic-panel strong {
    margin-top: var(--mj-space-1);
    font-size: 28px;
  }

  #app .audience-timer-panel {
    height: 88px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--mj-space-1) var(--mj-space-2);
  }

  #app .audience-timer-panel > strong {
    font-size: 30px;
  }

  #app .audience-timer-panel em {
    grid-column: 1 / -1;
    max-width: none;
    font-size: 14px;
    text-align: center;
  }
}

@media (min-width: 920px) and (max-height: 760px) {
  #app .app-shell-game .desktop-live-page {
    height: calc(100dvh - 140px) !important;
  }

  #app .pairing-page {
    padding: 16px 24px;
  }

  #app .pairing-panel {
    padding: 24px;
  }

  #app .pairing-actions {
    grid-template-columns: minmax(300px, 1fr) 220px;
    column-gap: 24px;
    row-gap: 16px;
  }

  #app .pairing-qr {
    width: 220px;
  }

  #app .desktop-stage-column > .live-cue-card,
  #app .desktop-drawer-body {
    padding: var(--mj-space-3);
  }

  #app .desktop-drawer-body .people-manager {
    height: auto;
    min-height: 100%;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-rows: auto auto auto;
    gap: var(--mj-space-2);
    overflow: visible;
  }

  #app .desktop-drawer-body .people-add-panel {
    grid-column: 1;
    grid-row: 1 / 4;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  #app .desktop-drawer-body .participant-tools {
    grid-column: 2;
    grid-row: 1;
  }

  #app .desktop-drawer-body .participant-list {
    grid-column: 2;
    grid-row: 2;
    min-height: 112px;
    overflow: visible;
  }

  #app .desktop-drawer-body .first-timer-next {
    grid-column: 2;
    grid-row: 3;
  }

  #app .desktop-drawer-body .people-add-panel .participant-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px var(--mj-space-2);
  }

  #app .desktop-drawer-body .people-add-panel .participant-form .arcade-button {
    grid-column: 1 / -1;
  }

  #app .desktop-stage-column .setup-cue {
    gap: 0 !important;
  }

  #app .desktop-stage-column .setup-cue-content {
    gap: var(--mj-space-2);
  }

  #app .app-shell-focus:has(.audience-display-page) .app-main {
    padding: 10px 16px !important;
  }

  #app .audience-display-page {
    gap: 16px;
    padding: 18px;
  }

  #app .audience-live-composition {
    grid-template-rows: minmax(0, 1fr) 68px;
    gap: 20px;
  }

  #app .audience-speaker-panel strong {
    font-size: 34px;
  }

  #app .audience-topic-panel strong {
    font-size: 38px;
  }

  #app .audience-timer-panel {
    gap: 12px;
  }
}

@media (max-width: 919px) {
  #app .bottom-nav {
    gap: var(--mj-space-1);
  }

  #app .bottom-nav-link {
    padding-inline: 4px;
    font-size: 0.82rem;
  }

  #app .bottom-nav-link span {
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
    line-height: 1.05;
  }

  #app .landing-board {
    padding-bottom: calc(var(--mj-mobile-nav-clearance) + var(--mj-space-2));
  }

  #app .landing-page :where(a, button) {
    scroll-margin-bottom: calc(var(--mj-mobile-nav-clearance) + var(--mj-space-2));
  }

  #app :is(.device-choice-page, .setup-page, .history-page, .info-page) {
    padding-bottom: calc(var(--mj-mobile-nav-clearance) + var(--mj-space-1)) !important;
  }

  #app :is(.device-choice-page, .setup-page, .history-page, .info-page) :where(a, button, input, select, textarea) {
    scroll-margin-bottom: calc(var(--mj-mobile-nav-clearance) + var(--mj-space-2));
  }

  #app .game-page :where(a, button, input, select, textarea) {
    scroll-margin-bottom: calc(var(--mj-mobile-nav-clearance) + var(--mj-space-3));
  }

  #app .game-page .first-timer-next {
    margin-bottom: calc(var(--mj-mobile-nav-clearance) + var(--mj-space-3));
  }

  #app .game-page .participant-tools {
    margin-top: calc(var(--mj-space-3) + var(--mj-space-2) + var(--mj-space-1));
  }
}

@media (max-width: 640px) {
  #app .setup-app-header h1 {
    font-size: 2.25rem;
    line-height: 1.02;
    text-wrap: balance;
  }
}

@media (max-width: 370px) {
  #app .pairing-page {
    padding-top: 12px;
  }

  #app .pairing-panel {
    padding: var(--mj-space-3);
  }

  #app .pairing-actions {
    gap: var(--mj-space-2);
  }

  #app .pairing-qr {
    width: min(192px, calc(100vw - 72px));
  }
}

@media (max-height: 720px) {
  #app .host-round-content {
    gap: var(--mj-space-1);
    padding: 8px 16px 16px;
  }

  #app .host-person-card,
  #app .host-topic-card {
    padding: var(--mj-space-3);
  }

  #app .host-control-nav button {
    min-height: 58px !important;
  }
}

@media (max-width: 919px) {
  #app .round-ready-cue {
    gap: 10px;
    padding: 14px 14px 20px;
  }

  #app .round-ready-cue .round-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #app .round-ready-cue .role-section {
    min-width: 0;
  }

  #app .round-ready-cue .role-section > .role-label {
    display: none;
  }

  #app .round-ready-cue .assignment-card {
    min-height: 70px;
    grid-template-columns: 38px minmax(0, 1fr) 44px;
    gap: 5px;
    padding: 8px;
  }

  #app .round-ready-cue .assignment-card .avatar-token.role-icon-token {
    width: 36px;
    height: 36px;
  }

  #app .round-ready-cue .assignment-card > span:not(.avatar-token),
  #app .round-ready-cue .assignment-card > strong,
  #app .round-ready-cue .assignment-card > em {
    grid-column: 2;
  }

  #app .round-ready-cue .assignment-card > span:not(.avatar-token) {
    overflow-wrap: normal;
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
  }

  #app .round-ready-cue .assignment-card > strong {
    margin: -2px 0 0;
    font-size: clamp(1.18rem, 6vw, 1.42rem);
    line-height: 1;
  }

  #app .round-ready-cue .assignment-card > .icon-toggle {
    grid-column: 3;
    grid-row: 1 / 4;
    align-self: center;
  }
}
