@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Nunito:wght@500;700;800&display=swap");

:root {
  --brand-blue: #103b8a;
  --brand-green: #10a87f;
  --brand-green-strong: #0b8e6c;
  --brand-yellow: #ffc21c;
  --brand-yellow-soft: #ffd85c;
  --panel: #ffffff;
  --ink: #173a77;
  --muted: #4a6696;
  --line: #d9e5f8;
  --danger: #e2672a;
  --ok: #11895f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 1rem;
}

body.embed-view {
  background: transparent;
  padding: 0;
  display: block;
  min-height: 0;
}

.panel {
  width: min(920px, 100%);
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(16, 59, 138, 0.14);
  padding: 1.4rem;
  animation: rise 380ms ease-out;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: 0.01em;
  font-family: "Baloo 2", "Nunito", sans-serif;
}

p {
  margin: 0.3rem 0;
}

.small {
  font-size: 1rem;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn {
  border: 2px solid transparent;
  background: linear-gradient(160deg, var(--brand-green), var(--brand-green-strong));
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  padding: 0.72rem 1.08rem;
  font-weight: 800;
  font-family: "Nunito", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.big {
  font-size: 1.05rem;
  padding: 0.85rem 1.15rem;
}

.btn.ghost {
  background: #fff;
  color: var(--brand-blue);
  border-color: #9ec0f6;
}

.btn.help-btn {
  background: transparent;
  border: 5px solid var(--brand-yellow);
  margin: 0;
  padding: 0;
  border-radius: 999px;
  min-width: 0;
  line-height: 0;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  transition: none;
}

.btn.help-btn:hover {
  transform: none;
  filter: none;
}

.btn.help-btn.active {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 2px var(--brand-yellow);
}

.help-btn-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
}

.btn.help-btn.active .help-btn-icon {
  filter: none;
  opacity: 1;
}

.brand-logo {
  width: min(100%, 340px);
  height: auto;
  display: block;
  margin: 0 auto 0.45rem;
}

.brand-logo-small {
  width: min(100%, 280px);
  margin-left: 0;
}

.brand-title {
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.teacher-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.teacher-header-main {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 1;
}

.teacher-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  margin-top: -0.25rem;
  text-align: right;
}

.teacher-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.teacher-header-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.student-panel {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

#studentControls > .small:first-child {
  margin-bottom: 0.85rem;
}

.ready-btn {
  width: 100%;
  border: 0;
  border-radius: 22px;
  font-size: clamp(1.6rem, 7vw, 2.6rem);
  font-weight: 800;
  padding: 2rem 1rem;
  margin: 1rem 0 0.6rem;
  cursor: pointer;
  color: #fff;
  font-family: "Baloo 2", "Nunito", sans-serif;
  letter-spacing: 0.01em;
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.ready-btn.ready {
  background: linear-gradient(140deg, var(--brand-green), var(--brand-green-strong));
  box-shadow: 0 14px 28px rgba(17, 137, 95, 0.28);
}

.ready-btn.not-ready {
  background: linear-gradient(140deg, var(--brand-yellow), #f3b300);
  box-shadow: 0 14px 28px rgba(243, 179, 0, 0.28);
  color: #4b3400;
}

.ready-btn:hover {
  transform: translateY(-1px) scale(1.01);
}

.ready-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  cursor: pointer;
}

.ready-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem auto 0.65rem;
}

.ready-checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ready-checkbox-visual {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  border: 7px solid var(--brand-yellow);
  background: transparent;
  box-shadow: 0 8px 18px rgba(243, 179, 0, 0.24);
  position: relative;
}

.ready-check-svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: block;
}

.ready-check-base,
.ready-check-draw {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ready-check-base {
  stroke: #bcc6d8;
  opacity: 0.4;
}

.ready-check-draw {
  stroke: var(--brand-blue);
  stroke-dasharray: 56;
  stroke-dashoffset: 56;
  opacity: 0;
  transition: stroke-dashoffset 220ms ease, opacity 120ms ease;
}

.ready-checkbox-input:checked + .ready-checkbox-visual .ready-check-draw {
  stroke-dashoffset: 0;
  opacity: 1;
}

.ready-checkbox-label {
  display: inline-block;
  min-width: 7ch;
  text-align: left;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
}

.ready-checkbox-label.checked {
  color: var(--ok);
}

.exercise-step-label {
  margin: 0.15rem 0 0.2rem;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1.1rem, 4.2vw, 1.5rem);
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
}

.ready-checkbox-input:disabled + .ready-checkbox-visual,
.ready-checkbox-input:disabled + .ready-checkbox-visual + .ready-checkbox-label {
  opacity: 0.55;
}

.ready-checkbox-row.completed .ready-checkbox-input:disabled + .ready-checkbox-visual,
.ready-checkbox-row.completed .ready-checkbox-input:disabled + .ready-checkbox-visual + .ready-checkbox-label {
  opacity: 1;
}

.status-line {
  font-size: 1rem;
  min-height: 1.4rem;
}

.student-status-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.student-status-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.25rem auto 1rem;
  display: block;
  padding: 0.2rem;
}

#statusText {
  margin: 0.85rem 0 0.25rem;
}

#counterText {
  margin: 0 0 0.2rem;
}

.link-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.link-btn.reserved-space {
  visibility: hidden;
  pointer-events: none;
}

.keep-space-hidden {
  visibility: hidden;
}

.teacher-panel {
  max-width: 820px;
  margin-inline: auto;
}

.teacher-profile-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid #9ec0f6;
  background: #ffffff;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 59, 138, 0.12);
  transition: transform 120ms ease, filter 120ms ease;
}

.person-icon {
  width: 18px;
  height: 20px;
  position: relative;
  display: inline-block;
}

.person-icon::before,
.person-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-blue);
}

.person-icon::before {
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.person-icon::after {
  bottom: 0;
  width: 15px;
  height: 11px;
  border-radius: 8px 8px 6px 6px;
}

.teacher-profile-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.teacher-profile-btn:active {
  transform: translateY(0);
}

.teacher-profile-btn:focus-visible {
  outline: 3px solid #88abf0;
  outline-offset: 2px;
}

.connect-section {
  display: grid;
  gap: 0.6rem;
  max-width: 420px;
}

.connect-section input {
  border: 2px solid #c4d8fa;
  border-radius: 12px;
  padding: 0.7rem 0.72rem;
  font-size: 1rem;
  text-transform: uppercase;
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--brand-blue);
  background: #fcfeff;
}

.student-join {
  max-width: 360px;
  margin-inline: auto;
  text-align: left;
}

.room-code {
  margin: 0.15rem 0 0.8rem;
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--brand-blue);
  font-family: "Baloo 2", "Nunito", sans-serif;
  text-shadow: 0 2px 0 #ffffff;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.room-code:hover {
  text-decoration: underline;
}

.share-code-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.share-code-row > :first-child {
  justify-self: start;
}

.share-ready-label {
  justify-self: center;
  text-align: center;
}

.share-session-controls {
  justify-self: end;
  display: block;
}

.classroom-code-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

.classroom-code-row .room-code {
  margin: 0;
  justify-self: start;
  line-height: 1;
}

.classroom-ready-summary {
  display: block;
  justify-self: center;
  text-align: center;
}

.classroom-ready-summary .counter {
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  line-height: 1;
  margin: 0;
}

.classroom-session-name {
  margin: 0;
  justify-self: end;
  text-align: right;
  font-weight: 700;
}

.classroom-row-controls {
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  min-height: 36px;
}

.classroom-row-controls .btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
}

#resetSessionProgressBtn {
  color: #ff3b30;
}

#copyAllEmbedsBtn,
#copyNameEmbedBtn,
#copyHelpEmbedBtn,
#resetSessionProgressBtn {
  width: calc(13ch + 1.6rem);
  min-height: 36px;
  padding: 0.35rem 0.6rem;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
}

#confirmDeleteSessionBtn,
#confirmResetSessionProgressBtn {
  background: #ff3b30;
  color: #ffffff;
}

.cursor-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(12px, 14px);
  pointer-events: none;
  white-space: nowrap;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #fff;
  background: var(--brand-blue);
  border-radius: 8px;
  padding: 0.3rem 0.45rem;
  opacity: 0;
  visibility: hidden;
  z-index: 1100;
  transition: opacity 120ms ease;
}

.cursor-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.summary-row-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  min-height: 36px;
}

.exercise-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
}

.exercise-summary-row #exerciseSummary {
  margin: 0;
}

.exercise-summary-row .summary-row-actions {
  margin-left: auto;
}

.exercise-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.exercise-input-row input {
  width: 120px;
  border: 2px solid #c4d8fa;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--brand-blue);
}

.icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.icon-glyph {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
}

.require-name-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.require-name-row input {
  width: 1rem;
  height: 1rem;
}

.require-name-row.disabled-option {
  opacity: 0.5;
}

.require-name-row.disabled-option span {
  color: var(--muted);
}

.name-entry {
  display: grid;
  gap: 0.55rem;
}

.name-entry input {
  border: 2px solid #c4d8fa;
  border-radius: 12px;
  padding: 0.7rem 0.72rem;
  font-size: 1rem;
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--brand-blue);
  background: #fcfeff;
}

.teacher-session-name-row {
  margin-top: 0.75rem;
}

.counter {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 0;
  color: var(--brand-blue);
  font-family: "Baloo 2", "Nunito", sans-serif;
}

.exercise-identifier-section {
  margin: 0.4rem 0 1rem;
}

.embed-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  color: var(--muted);
}

.embed-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.embed-toggle-slider {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #c4d8fa;
  border: 2px solid #9ec0f6;
  position: relative;
  transition: background 140ms ease, border-color 140ms ease;
}

.embed-toggle-slider::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 59, 138, 0.25);
  transition: transform 140ms ease;
}

.embed-toggle-row input:checked ~ .embed-toggle-slider {
  background: var(--brand-green);
  border-color: var(--brand-green-strong);
}

.embed-toggle-row input:checked ~ .embed-toggle-slider::after {
  transform: translateX(18px);
}

.embed-toggle-row input:focus-visible ~ .embed-toggle-slider {
  outline: 3px solid #88abf0;
  outline-offset: 2px;
}

.embed-toggle-label {
  white-space: nowrap;
}

.embed-toggle-row input:checked ~ .embed-toggle-label {
  display: none;
}

.exercise-identifier-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.exercise-identifier-list li {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  color: var(--brand-blue);
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  font-family: "Nunito", "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.exercise-embed-btn {
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  min-width: 78px;
  font-size: 0.9rem;
}

.exercise-identifier-left {
  min-width: 0;
}

.exercise-identifier-meta {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.custom-sessions-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.custom-sessions-list li {
  margin: 0;
  padding: 0;
}

.custom-session-list-item {
  position: relative;
}

.custom-session-item-btn {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.55rem 3.6rem 0.55rem 0.7rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: border-color 120ms ease, transform 120ms ease;
}

.custom-session-item-btn:hover {
  border-color: #9ec0f6;
  transform: none;
}

.custom-session-item-btn:focus-visible {
  outline: 3px solid #88abf0;
  outline-offset: 2px;
}

.custom-session-delete-btn {
  width: 48px;
  min-width: 48px;
  padding: 0;
  border-radius: 0 12px 12px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: 2px;
  z-index: 2;
  border: 0;
  color: #ff3b30;
  background: #ffffff;
}

.custom-session-delete-btn .icon-glyph {
  color: #ff3b30;
}

.custom-session-delete-btn:hover {
  background: #dbeafe;
  transform: none;
  filter: none;
}

.custom-session-delete-btn:focus-visible {
  outline: 3px solid #fda29b;
  outline-offset: 1px;
}

.custom-session-code {
  font-weight: 800;
  color: var(--brand-blue);
}

.custom-session-meta {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.student-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.student-list li {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.student-list-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.badge {
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  border: 1px solid transparent;
}

.badge.ready {
  color: var(--ok);
  border-color: #85efcf;
  background: #ecfff7;
}

.badge.not-ready {
  color: #7b5a00;
  border-color: #ffd871;
  background: #fff9df;
}

.badge.progress {
  color: var(--brand-blue);
  border-color: #a8c4f3;
  background: #eff5ff;
}

.badge.help {
  color: #9d1010;
  border-color: #f0a5a5;
  background: #ffe9e9;
}

.error {
  min-height: 1.2rem;
  color: #b42318;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 59, 138, 0.35);
  z-index: 1000;
}

.modal-card {
  width: min(420px, 100%);
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(16, 59, 138, 0.25);
  padding: 1rem;
}

.modal-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.session-type-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

#customSessionBtn {
  background: #103b8a;
  color: #ffffff;
  border-color: #103b8a;
}

.login-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.login-form input {
  border: 2px solid #c4d8fa;
  border-radius: 12px;
  padding: 0.7rem 0.72rem;
  font-size: 1rem;
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--brand-blue);
  background: #fcfeff;
}

.embed-card {
  width: 300px;
  max-width: 300px;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 0.85rem;
  box-shadow: none;
}

.embed-title {
  margin: 0 0 0.3rem;
  font-weight: 800;
  color: var(--brand-blue);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.1rem;
}

.embed-card .btn {
  width: 100%;
  margin-top: 0.45rem;
}

.embed-card .ready-checkbox-row {
  margin-top: 0.45rem;
  width: 100%;
  justify-content: flex-end;
}

.embed-card .ready-checkbox-visual {
  width: 56px;
  height: 56px;
  border-width: 5px;
  border-radius: 14px;
  box-shadow: none;
}

.embed-card .ready-check-svg {
  width: 38px;
  height: 38px;
}

.embed-card .ready-checkbox-label {
  font-size: clamp(1.2rem, 4vw, 1.7rem);
}

.embed-card .name-entry {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.embed-card .name-entry label {
  display: none;
}

.embed-card .name-entry input {
  flex: 1;
  height: 42px;
  min-height: 42px;
  padding: 0.45rem 0.6rem;
}

.embed-card #embedSaveNameBtn {
  width: auto;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  margin-top: 0;
  padding: 0;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.embed-name-view .embed-card {
  width: 100%;
  max-width: none;
  padding: 0.6rem 0.4rem 0.45rem;
}

.embed-name-logo {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0 0 0.35rem;
}

.embed-name-view .embed-card .name-entry label {
  display: inline-block;
  font-weight: 700;
  color: var(--brand-blue);
  white-space: nowrap;
}

.embed-name-view .embed-card .name-entry {
  gap: 0.3rem;
}

.embed-offline {
  margin: 0.35rem 0 0.15rem;
  text-align: center;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: 0.06em;
}

.embed-help-card {
  width: 72px;
  max-width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.embed-exercise-view .embed-card {
  width: 72px;
  max-width: 72px;
  padding: 0.2rem;
}

.embed-exercise-view .ready-checkbox-row {
  margin-top: 0;
  justify-content: center;
}

.embed-exercise-view .ready-checkbox-label {
  display: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .panel {
    padding: 1rem;
    border-radius: 16px;
  }

  .teacher-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .teacher-header-main {
    width: 100%;
    align-items: flex-start;
  }

  .teacher-title {
    margin-top: 0;
    text-align: left;
  }

  .teacher-title-row {
    width: 100%;
    justify-content: space-between;
  }

  .teacher-header-actions {
    width: 100%;
    flex-direction: column;
  }

  .teacher-header-actions .btn {
    width: 100%;
  }

  .teacher-profile-btn {
    width: 42px;
    height: 42px;
  }

  .summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-code-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .share-code-row > :first-child {
    justify-self: auto;
  }

  .share-ready-label {
    justify-self: auto;
    text-align: left;
  }

  .share-session-controls {
    justify-self: auto;
    width: 100%;
  }

  .classroom-code-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .classroom-row-controls {
    width: 100%;
  }

  .classroom-ready-summary {
    text-align: left;
  }

  .classroom-session-name {
    text-align: left;
  }

  .summary-row .btn {
    width: 100%;
  }

  .summary-row-actions {
    width: 100%;
  }

  .exercise-summary-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .exercise-summary-row .summary-row-actions {
    width: auto;
    margin-left: auto;
  }

  .exercise-input-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .session-type-actions {
    grid-template-columns: 1fr;
  }

  .student-list-right {
    flex-wrap: wrap;
  }

  .student-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .ready-actions-row {
    flex-wrap: wrap;
  }

  .student-status-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .student-status-copy {
    align-items: center;
    text-align: center;
  }
}
