body.tt-page {
  --tt-accent: #16a34a;
  --tt-accent-dark: #15803d;
  --tt-accent-soft: #ecfdf3;
  --tt-accent-line: #bbf7d0;
  --tt-accent-muted: #4d7c5d;
  /* background intentionally omitted — falls through to base.css's
     site-wide warm paper grid, matching home.php and other major pages. */
  color: #0f172a;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.tt-page #top-controls {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}

/* Board view only: sit flush against the fixed 54px header, skipping the
   sitewide 64px reservation (a 10px gap meant for scrolling content pages).
   Setup view keeps the normal sitewide spacing. */
body.tt-page.tt-board-active {
  padding-top: 54px;
  overflow: hidden;
}

.tt-app {
  min-height: calc(100vh - 64px);
}

/* ---- Setup view: card near top, not vertically centered ---- */

.tt-setup-view {
  padding: 0 20px 60px;
  overflow: auto;
}

.tt-setup-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.tt-setup-panel {
  width: min(100%, 420px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.09);
  padding: 28px 28px 24px;
}

/* ---- Header ---- */

.tt-setup-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.tt-tool-mark {
  width: 52px;
  height: 52px;
  display: block;
  flex: 0 0 auto;
}

.tt-tool-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tt-setup-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 1000;
}

/* ---- Section label ---- */

.tt-section-label {
  margin: 0 0 10px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Load-a-class picker ---- */

.tt-class-picker {
  margin-bottom: 18px;
}

.tt-class-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tt-class-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 96px;
  padding: 8px 14px;
  border: 1.5px solid var(--tt-accent-line);
  border-radius: 12px;
  background: var(--tt-accent-soft);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 120ms ease, border-color 120ms ease, transform 100ms ease;
}

.tt-class-btn:hover:not(:disabled) {
  background: #dcfce7;
  border-color: #86efac;
}

.tt-class-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.tt-class-btn:focus-visible {
  outline: 2px solid var(--tt-accent);
  outline-offset: 2px;
}

.tt-class-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tt-class-btn-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--tt-accent-dark);
}

.tt-class-btn-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--tt-accent-muted);
}

/* ---- Paste zone / chip input ---- */

.tt-paste-zone {
  display: flex;
  align-items: stretch;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  cursor: text;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}

.tt-paste-zone:focus-within {
  border-color: var(--tt-accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.13);
}

.tt-chip-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  resize: none;
  line-height: 1.6;
  padding: 0;
}

.tt-chip-input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.tt-input-hint {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

/* ---- Roster bar (count + utility buttons) ---- */

.tt-roster-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tt-count-text {
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.tt-roster-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Segmented control ---- */

.tt-sort-seg {
  display: flex;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.tt-seg-btn {
  height: 28px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: background 130ms ease, color 130ms ease;
}

.tt-seg-btn + .tt-seg-btn {
  border-left: 1.5px solid #e2e8f0;
}

.tt-seg-btn[aria-pressed="true"] {
  background: #0f172a;
  color: #ffffff;
}

.tt-seg-btn[aria-pressed="false"]:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* ---- Clear button ---- */

.tt-btn-util {
  height: 28px;
  padding: 0 11px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.tt-btn-util:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.tt-btn-util--danger:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* ---- Warning banner ---- */

.tt-chip-warning {
  margin-top: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 13px;
  font-weight: 800;
}

/* ---- Chip grid ---- */

.tt-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  min-height: 0;
}

.tt-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 200px;
  padding: 5px 4px 5px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  transition: border-color 120ms ease, background 120ms ease;
}

.tt-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.tt-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.tt-chip-remove {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 110ms ease, color 110ms ease;
}

.tt-chip-remove:hover {
  background: #e2e8f0;
  color: #334155;
}

/* ---- "+" tile (opens the add-students pane) ---- */

.tt-chip-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 100ms ease;
}

.tt-chip-add:hover {
  background: var(--tt-accent-soft);
  border-color: #86efac;
  color: var(--tt-accent-dark);
}

.tt-chip-add:active {
  transform: scale(0.94);
}

.tt-chip-add:focus-visible {
  outline: 2px solid var(--tt-accent);
  outline-offset: 2px;
}

.tt-chip-add[aria-expanded="true"] {
  background: #0f172a;
  border-style: solid;
  border-color: #0f172a;
  color: #ffffff;
}

/* ---- Add-students pane (toggled by the "+" tile) ---- */

.tt-add-pane {
  margin-top: 14px;
}

/* ---- Fair toggle + setup actions ---- */

.tt-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}

.tt-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--tt-accent);
  flex: 0 0 auto;
}

.tt-fair-check {
  margin-top: 16px;
}

.tt-setup-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.tt-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 100ms ease, background 130ms ease, color 130ms ease, opacity 130ms ease, box-shadow 130ms ease;
}

.tt-btn:active {
  transform: scale(0.97);
}

.tt-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tt-btn-primary {
  min-height: 44px;
  padding: 0 22px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

.tt-btn-primary:hover:not(:disabled) {
  background: #1e293b;
}

.tt-btn-soft {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.tt-btn-soft:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

.tt-star-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.tt-btn-star-award {
  width: 46px;
  padding: 0;
  background: #1e293b;
  border: 1.5px solid #0f172a;
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: #fde047;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.55);
  transition: background 130ms ease, transform 100ms ease, opacity 130ms ease;
}

.tt-btn-star-award:hover:not(:disabled) {
  background: #334155;
}

.tt-btn-star-remove {
  width: 30px;
  padding: 0;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 0 10px 10px 0;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  transition: background 130ms ease, color 130ms ease, border-color 130ms ease, opacity 130ms ease;
}

.tt-btn-star-remove:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #fecaca;
  color: #ef4444;
}

.tt-btn-icon {
  width: 40px;
  padding: 0;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.tt-btn-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================================================================
   BOARD
   ================================================================ */

.tt-board-view {
  height: calc(100vh - 54px);
  display: flex;
  flex-direction: column;
  background: transparent;
}

.tt-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  z-index: 10;
}

.tt-board-brand {
  min-width: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 2px;
}

.tt-board-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 4px rgba(15, 23, 42, 0.12));
}

.tt-board-brand span {
  color: #0f172a;
  font-size: 19px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.tt-toolbar-actions {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tt-toolbar-actions::-webkit-scrollbar {
  display: none;
}

.tt-pick-btn {
  background: var(--tt-accent);
}

.tt-pick-btn:hover:not(:disabled) {
  background: var(--tt-accent-dark);
}

.tt-board-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.tt-grid {
  --tt-cols: 1;
  --tt-rows: 1;
  --tt-name-size: 36px;
  --tt-mascot-size: 92px;
  --tt-score-size: 26px;
  --tt-control-size: 31px;
  --tt-star-lane-top: 42px;
  --tt-star-lane-bottom: 56px;
  --tt-star-bank-width: 26px;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--tt-cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--tt-rows), minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  justify-items: stretch;
}

/* ================================================================
   TILES
   ================================================================ */

.tt-tile {
  --tile-a: var(--tt-accent);
  --tile-ink: #ffffff;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: var(--tile-ink);
  background: var(--tile-a);
  isolation: isolate;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.tt-tile::before {
  content: none;
}

.tt-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  border: 12px solid rgba(255, 255, 255, 0.98);
  border-radius: 0;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.48),
    0 0 46px rgba(255, 255, 255, 0.9),
    inset 0 0 30px rgba(255, 255, 255, 0.32);
  pointer-events: none;
  transition: opacity 140ms ease;
}

.tt-tile.is-active {
  z-index: 3;
  border-radius: 0;
  transform: none;
  box-shadow: 0 0 38px rgba(255, 255, 255, 0.76), 0 14px 40px rgba(15, 23, 42, 0.24);
}

.tt-tile.is-active::after,
.tt-tile.is-shuffling::after {
  opacity: 1;
}

.tt-tile.is-picked:not(.is-active) {
  filter: saturate(0.86) brightness(0.94);
}

.tt-tile.is-shuffling {
  z-index: 2;
  border-radius: 0;
  transform: scale(1.01);
}

.tt-grid.is-picking .tt-tile.is-active:not(.is-shuffling) {
  border-radius: 0;
  transform: none;
  box-shadow: none;
}

.tt-grid.is-picking .tt-tile.is-active:not(.is-shuffling)::after {
  opacity: 0;
  transition: none;
}

.tt-tile:focus-visible {
  z-index: 5;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.82), 0 0 0 3px rgba(22, 163, 74, 0.45);
}

.tt-tile-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vmin, 22px);
  padding: clamp(18px, 4.5vmin, 34px) 14px clamp(18px, 4.5vmin, 44px);
}

/* ================================================================
   STARS
   ================================================================ */

.tt-stars {
  position: absolute;
  top: var(--tt-star-lane-top);
  right: 0;
  bottom: var(--tt-star-lane-bottom);
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  padding: 0 clamp(6px, 1.4vmin, 14px);
  pointer-events: none;
}

.tt-stars-col {
  width: var(--tt-star-bank-width);
  height: 100%;
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--tt-star-bank-rows, 8), var(--tt-star-size, 18px));
  grid-auto-columns: calc(var(--tt-star-size, 18px) * 1.18);
  align-content: center;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: var(--tt-star-gap, 2px) calc(var(--tt-star-gap, 2px) * 0.7);
  overflow: hidden;
}

.tt-stars-col-left  { justify-content: start; }
.tt-stars-col-right { direction: rtl; justify-content: end; }

.tt-star {
  flex: 0 0 auto;
  width: calc(var(--tt-star-size, 18px) * 1.18);
  height: var(--tt-star-size, 18px);
  direction: ltr;
  color: #fde047;
  font-size: var(--tt-star-size, 18px);
  font-weight: 1000;
  line-height: 0.9;
  text-align: center;
  text-shadow:
    0 0 8px rgba(253, 224, 71, 0.78),
    0 1px 3px rgba(15, 23, 42, 0.34);
}

/* ================================================================
   MASCOT
   ================================================================ */

.tt-mascot-wrap {
  position: relative;
  width: var(--tt-mascot-size);
  height: var(--tt-mascot-size);
  max-width: 86%;
  max-height: 62%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.86;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.22));
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: opacity 140ms ease, transform 140ms ease;
}

.tt-mascot-wrap:disabled { cursor: default; }

.tt-mascot-wrap:focus-visible {
  outline: 4px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
  border-radius: 18px;
}

.tt-tile.is-active .tt-mascot-wrap {
  opacity: 1;
  transform: translateY(-2px) scale(1.03);
}

.tt-mascot-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.tt-initials {
  width: min(100%, 112px);
  aspect-ratio: 1;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: currentColor;
  font-size: calc(var(--tt-name-size) * 0.8);
  font-weight: 1000;
}

.tt-name {
  position: relative;
  z-index: 2;
  width: min(94%, 720px);
  overflow: visible;
  color: #ffffff;
  font-size: var(--tt-name-size);
  font-weight: 1000;
  line-height: 1.04;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px rgba(15, 23, 42, 0.34);
}

.tt-mascot-wrap.has-fallback img    { display: none; }
.tt-mascot-wrap.has-fallback .tt-initials { display: flex; }

.tt-tile.is-landing .tt-mascot-wrap {
  animation: ttMascotLandingPulse 760ms cubic-bezier(0.2, 0.9, 0.18, 1) both;
  transform-origin: center;
}

.tt-tile.is-landing .tt-name {
  animation: ttLandingPulse 760ms cubic-bezier(0.2, 0.9, 0.18, 1) both;
  animation-delay: 60ms;
  transform-origin: center;
}

@keyframes ttLandingPulse {
  0%   { transform: scale(1); }
  38%  { transform: scale(1.18); }
  62%  { transform: scale(0.94); }
  82%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes ttMascotLandingPulse {
  0%   { transform: translateY(-2px) scale(1.03); }
  38%  { transform: translateY(-2px) scale(1.22); }
  62%  { transform: translateY(-2px) scale(0.97); }
  82%  { transform: translateY(-2px) scale(1.12); }
  100% { transform: translateY(-2px) scale(1.03); }
}

/* ================================================================
   MODAL
   ================================================================ */

.tt-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.tt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.44);
}

.tt-modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  padding: 22px;
}

.tt-modal-card h2 {
  margin: 0 34px 12px 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 1000;
}

.tt-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tt-modal-body {
  color: #334155;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.tt-shortcut-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.tt-shortcut-list div {
  display: grid;
  grid-template-columns: minmax(72px, max-content) 1fr;
  gap: 12px;
  align-items: center;
}

.tt-shortcut-list kbd {
  min-width: 42px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 -2px 0 rgba(15, 23, 42, 0.08);
}

.tt-key-hint {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  margin-left: 4px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.75);
  vertical-align: middle;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  .tt-toolbar {
    min-height: 56px;
    align-items: stretch;
  }

  .tt-board-brand {
    align-items: center;
  }

  .tt-board-brand img {
    width: 38px;
    height: 38px;
  }

  .tt-board-brand span {
    font-size: 17px;
  }

  .tt-btn {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }

  .tt-btn-icon {
    width: 38px;
    padding: 0;
  }
}

@media (max-width: 640px) {
  .tt-setup-view {
    padding: 16px 12px 40px;
  }

  .tt-setup-panel {
    padding: 18px 16px 18px;
    border-radius: 16px;
  }

  .tt-setup-head h1 {
    font-size: 22px;
  }

  .tt-chip {
    font-size: 12px;
  }

  .tt-toolbar {
    padding: 7px;
    gap: 6px;
  }

  .tt-board-brand {
    gap: 8px;
    padding-right: 8px;
  }

  .tt-board-brand span {
    font-size: 16px;
  }
}

@media (max-height: 620px) {
  .tt-toolbar {
    min-height: 50px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

/* Student View shared popup picks up Turn Taker's own green accent. */
body.tt-page { --sv-accent: var(--tt-accent); --sv-accent-dark: var(--tt-accent-dark); }
