.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid label,
.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.form-grid input,
.form-grid select,
.field input {
  width: 100%;
  padding: 12px;
  border: 1px solid #b9cfde;
  border-radius: 9px;
  color: var(--ink);
  background: white;
}
.form-grid .full {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.stack {
  display: grid;
  gap: 12px;
}
.inline-error {
  padding: 14px;
  border-radius: 9px;
  background: #fff1e9;
  color: #8c342c;
  font-size: 13px;
  margin-bottom: 16px;
}
.code-sheet {
  background: #e8f7f0;
  border: 1px solid #b6dac9;
}
.code-sheet code {
  display: block;
  font-size: 19px;
  letter-spacing: 1px;
  margin: 7px 0;
}
.team-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.team-actions button {
  font-size: 11px;
  padding: 7px;
}
.saved-turn {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.saved-turn small {
  font-size: 11px;
  color: var(--muted);
}
.flag {
  color: #8a5720;
  background: #fff3d9;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 11px;
}
.login-actions {
  display: grid;
  gap: 12px;
  margin: 25px 0;
}
.login-actions .button {
  white-space: normal;
}
.entry .panel p {
  font-size: 14px;
}
.profile-tag {
  font-size: 11px;
  color: var(--muted);
}
.grant {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.grant:first-child {
  border: 0;
}
.grant input[type="checkbox"] {
  width: auto;
}
.grant-labels {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  margin: 12px 0;
}
.team .button {
  width: auto;
}
.teams .team {
  display: block;
}
.team code {
  overflow-wrap: anywhere;
  font-size: 15px;
}
.chat-panel .message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.login-page {
  max-width: 520px;
}
.expired-banner {
  padding: 18px;
  background: #fff1e9;
  color: #8c342c;
}
.section-top .actions {
  justify-content: flex-end;
}
.working {
  opacity: 0.6;
  pointer-events: none;
}
@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .section-top {
    flex-wrap: wrap;
  }
  .header {
    height: auto;
    min-height: 75px;
    flex-wrap: wrap;
    padding: 15px 20px;
  }
  .nav {
    flex-wrap: wrap;
  }
  .code-sheet code {
    font-size: 16px;
  }
  .role-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-actions .button {
    width: auto;
  }
  .page-intro {
    margin-top: 12px;
  }
}
/* Print just the issued team slips, without dashboard content or controls. */
@media print {
  @page {
    margin: 0;
  }
  body {
    background: #fff;
    padding: 12mm;
    color: #000;
  }
  body > :not(.print-code-sheet),
  .code-sheet > :not(.teams):not(.print-heading) {
    display: none !important;
  }
  .print-code-sheet {
    display: block !important;
  }
  main.layout {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .code-sheet {
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }
  .code-sheet .teams {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8mm;
  }
  .code-sheet .team {
    display: block;
    border: 1px dashed #777;
    border-radius: 0;
    padding: 8mm;
    break-inside: avoid;
  }
  .code-sheet .team strong {
    font-size: 14pt;
  }
  .code-sheet code {
    color: #000;
    font-size: 18pt;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
  }
}

.section-card summary {
  cursor: pointer;
  list-style-position: outside;
}
.section-card summary h2 {
  display: inline-block;
  margin: 8px 0;
}
.section-card summary .eyebrow,
.section-card summary .muted {
  display: block;
}
.section-card[open] summary {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.reopen-form {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.reopen-form label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  flex: 1;
  min-width: 140px;
}
.reopen-form select {
  padding: 10px;
  border: 1px solid #b9cfde;
  border-radius: 8px;
  width: 100%;
  background: white;
  color: var(--ink);
}
.delete-area {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 12px;
  font-size: 12px;
}
.code-sheet .team strong,
.code-sheet .team small {
  display: block;
}
.print-heading {
  margin-bottom: 18px;
}

.teacher-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  max-width: 760px;
}
.teacher-picker select {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9cfde;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.explore-grid .panel {
  margin: 0;
}
.saved-code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.6 monospace;
  background: #f4f8fb;
  padding: 14px;
  border-radius: 8px;
  max-height: 420px;
  overflow: auto;
}
.project-brief summary,
.cost-controls summary {
  cursor: pointer;
  padding: 12px 0;
}
.project-brief form {
  margin-top: 18px;
}
.form-grid textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #b9cfde;
  border-radius: 9px;
  min-height: 80px;
  resize: vertical;
  color: var(--ink);
  background: white;
}
.cost-controls {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 8px;
}
.usage-table-wrap {
  overflow-x: auto;
}
.usage-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin-top: 15px;
}
.usage-table th,
.usage-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.explore-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.chat-activity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 20px 16px;
  padding: 16px;
  background: #e8f6fd;
  border: 1px solid #bedfec;
  border-radius: 12px;
  color: var(--navy);
}
.chat-activity strong {
  font-size: 14px;
}
.chat-activity p {
  font-size: 12px;
  margin: 4px 0;
}
.chat-activity small {
  font-size: 11px;
  color: var(--muted);
}
.thinking-dots {
  display: flex;
  gap: 4px;
  padding-top: 7px;
}
.thinking-dots i {
  width: 7px;
  height: 7px;
  background: #007aa5;
  border-radius: 50%;
  animation: thinking-pulse 1.2s ease-in-out infinite;
}
.thinking-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.thinking-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes thinking-pulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .thinking-dots i {
    animation: none;
    opacity: 1;
  }
}
.create-section summary {
  cursor: pointer;
}
.create-section summary h2 {
  display: inline;
  margin: 0;
  font-size: 19px;
}
.create-section summary .eyebrow {
  display: block;
  margin-bottom: 5px;
}
.create-section[open] summary {
  margin-bottom: 18px;
}
.editable-heading,
.section-card summary h2.editable-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  flex-wrap: wrap;
}
.name-label {
  overflow-wrap: anywhere;
  min-width: 0;
}
.edit-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #55778d;
  padding: 5px;
  vertical-align: middle;
}
.edit-name:hover {
  background: #e8f3f8;
  color: var(--navy);
}
.edit-name:focus-visible {
  outline: 2px solid #007aa5;
  outline-offset: 2px;
}
.inline-name-editor {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  max-width: 100%;
}
.inline-name-editor input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 8px 10px;
  border: 1px solid #89b4ca;
  border-radius: 7px;
  background: white;
  width: 260px;
  max-width: 100%;
  min-width: 0;
}
.team .editable-heading {
  margin-bottom: 10px;
}
.inline-name-editor .button {
  font-size: 12px;
  padding: 7px 10px;
}
.create-section {
  padding: 18px 24px;
}
.create-section[open] {
  padding: 24px;
}

/* Keep helper identities consistent in the picker and saved conversation. */
.helper-ada {
  --helper-paper: #f2edfc;
  --helper-accent: #7050a0;
}
.helper-hopper {
  --helper-paper: #e9f6ee;
  --helper-accent: #28734c;
}
.helper-turing {
  --helper-paper: #fff3dc;
  --helper-accent: #8b601c;
}
.message.helper-message {
  background: var(--helper-paper, #f0f6fa);
  border-left: 4px solid var(--helper-accent, #4c748d);
}
.message.helper-message strong {
  color: var(--helper-accent, #4c748d);
}
.role-button .role-avatar {
  background: var(--helper-paper);
  color: var(--helper-accent);
}
.role-button.active {
  border-color: var(--helper-accent);
  box-shadow: inset 3px 0 var(--helper-accent);
}
.team-review-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  min-width: 0;
  height: 30px;
}
.team-review-row > .button {
  width: auto;
  flex: 1;
  min-width: 0;
  font-size: 10px;
  padding: 6px 5px;
}
.attention-icons {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}
.attention-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 28px;
  border: 1px solid #e1c98d;
  border-radius: 7px;
  background: #fff5dc;
  color: #795315;
  padding: 3px;
  font-size: 10px;
  font-weight: 700;
}
.attention-icon span {
  position: absolute;
  right: -2px;
  top: -6px;
  background: #795315;
  color: white;
  border-radius: 10px;
  min-width: 12px;
  font-size: 8px;
  padding: 0 2px;
}
.attention-icon:hover,
.attention-icon:focus-visible {
  background: #ffe7a6;
  outline: 2px solid #795315;
  outline-offset: 2px;
}
.attention-wellbeing,
.attention-unsafe-activity {
  color: #963e32;
  background: #fff0eb;
  border-color: #dfb4aa;
}
.attention-team-interaction {
  color: #7050a0;
  background: #f2edfc;
  border-color: #d2c4e5;
}
.attention-personal-information {
  color: #235f83;
  background: #e9f4fc;
  border-color: #b7d4e8;
}
.review-panel {
  padding: 0;
  overflow: hidden;
}
.review-toolbar {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: #f9fcfe;
}
.review-toolbar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.review-toolbar-title h2 {
  font-size: 19px;
}
.review-toolbar-title > span {
  font-size: 12px;
  color: #795315;
  white-space: nowrap;
}
.review-toolbar .help {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 16px;
}
.review-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.review-navigation label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
}
.review-navigation select {
  padding: 9px;
  border: 1px solid #b9cfde;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  max-width: 100%;
  min-width: 0;
}
.review-jump {
  flex: 1;
  min-width: 180px;
}
.review-jump select {
  width: 100%;
}
.review-navigation .actions {
  gap: 6px;
}
.review-navigation .button {
  font-size: 11px;
  padding: 7px 9px;
}
.review-transcript {
  height: 65vh;
  min-height: 340px;
  max-height: 800px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px 24px 24px;
  position: relative;
  scrollbar-gutter: stable;
}
.review-transcript > .saved-turn {
  border-radius: 10px;
  padding: 18px 12px;
  outline-offset: -2px;
}
.review-transcript > .review-selected {
  background: #f5f9fc;
  box-shadow: inset 3px 0 #377a9c;
}
.review-transcript .message {
  max-width: 92%;
}
.attention-marker {
  margin: 10px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fafb;
}
.attention-marker.unreviewed {
  border-color: #e7ce91;
  background: #fffbf1;
}
.attention-labels {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.attention-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 6px;
}
.attention-marker p {
  font-size: 12px;
  margin: 8px 0 10px;
  color: #58697b;
}
.attention-marker .actions {
  gap: 7px;
}
.attention-marker .button {
  font-size: 11px;
  padding: 6px 9px;
}
#review-empty {
  margin: 12px 0 0;
}
#review-error {
  margin-top: 12px;
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .review-toolbar {
    padding: 16px;
  }
  .review-transcript {
    padding: 8px 10px 20px;
  }
  .review-navigation label {
    flex: 1;
    min-width: 140px;
  }
  .review-toolbar-title {
    align-items: start;
  }
  .team-review-row > .button {
    font-size: 11px;
  }
}

.checkpoints summary {
  cursor: pointer;
}
.checkpoints[open] summary {
  margin-bottom: 18px;
}
.checkpoint-save {
  padding: 16px;
  background: #f3faf6;
  border: 1px solid #c8e1d2;
  border-radius: 12px;
  margin-bottom: 18px;
}
.checkpoint-save > label:first-child {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.checkpoint-save input:not([type="checkbox"]),
.checkpoints select {
  width: 100%;
  padding: 10px;
  border: 1px solid #b9cfde;
  border-radius: 8px;
  background: white;
  color: var(--ink);
}
.checkpoint-confirm {
  display: flex;
  align-items: start;
  gap: 9px;
  font-size: 12px;
  margin: 12px 0;
}
.checkpoint-confirm input {
  margin-top: 4px;
}
.checkpoint-restore-confirm {
  padding: 16px;
  background: #fff7e5;
  border: 1px solid #e7ce91;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 13px;
}
.checkpoints > .muted {
  font-size: 13px;
}
.checkpoints .saved-code {
  max-height: 300px;
}
.checkpoints .inline-error {
  margin-top: 12px;
}

.adult-access-card {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.adult-access-card:first-child {
  border-top: 0;
}
.adult-access-card .grant {
  padding: 0 0 12px;
  border: 0;
}
.live-ai-grant {
  border-left: 3px solid #3a8269;
  padding: 12px 16px;
  background: #f3faf6;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.live-ai-grant label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.live-ai-grant p {
  flex-basis: 100%;
  margin: 0;
}

.add-teams {
  margin: 14px 0 18px;
  font-size: 12px;
}
.add-teams summary,
.team-options summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.add-teams form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.add-teams label {
  display: grid;
  gap: 5px;
}
.add-teams input {
  width: 95px;
  padding: 8px;
  border: 1px solid #b9cfde;
  border-radius: 8px;
  color: var(--ink);
}
.team-options {
  margin-top: 12px;
  font-size: 11px;
}
.team-options .team-actions {
  margin-top: 8px;
}
.team-code-reveal {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 9px;
}
.team-code-reveal small,
.team-code-reveal code {
  display: block;
  overflow-wrap: anywhere;
}
.team-code-reveal small {
  color: var(--muted);
  font-size: 11px;
}
.team-code-reveal code {
  margin: 6px 0 0;
  font-weight: 700;
}
.editor-button {
  margin-top: 16px;
  text-decoration: none;
  background: #edf7ff;
  border-color: #c4deef;
}
.composer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.workspace + .project-brief {
  margin-top: 24px;
}
.school-it-card {
  margin-top: 24px;
}
@media (max-width: 760px) {
  .columns > aside {
    display: block;
  }
  .columns > aside > .panel:not(.school-it-card),
  .columns > aside > .note {
    display: none;
  }
  .composer-actions {
    width: 100%;
  }
  .composer-actions .button {
    flex: 1;
    white-space: normal;
  }
  .editor-button {
    width: 100%;
  }
}
@media print {
  .team-code-reveal {
    display: none !important;
  }
}
.audience-entry {
  max-width: 640px;
}
.student-welcome {
  text-align: left;
}
.student-entry-button {
  display: flex;
  width: 100%;
  padding: 19px 16px;
  font-size: 17px;
  white-space: normal;
  text-align: center;
}
.audience-entry .help {
  text-align: left;
  margin-bottom: 0;
}
.adult-signin summary {
  cursor: pointer;
  display: grid;
  gap: 4px;
  color: var(--navy);
}
.adult-signin summary:before {
  content: "▸ Teachers & adults";
  font-weight: 800;
}
.adult-signin summary > strong {
  display: none;
}
.adult-signin[open] summary:before {
  content: "▾ Teachers & adults";
}
.adult-signin summary span {
  font-size: 12px;
  color: var(--muted);
}
.adult-signin[open] summary {
  margin-bottom: 20px;
}
.password-access {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.password-access h2 {
  font-size: 18px;
  margin-bottom: 16px;
}
.password-access form {
  display: grid;
  gap: 14px;
}
.password-access label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.password-access input {
  width: 100%;
  padding: 12px;
  border: 1px solid #b9cfde;
  border-radius: 9px;
}
.password-mode-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.password-mode-actions button {
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: underline;
}
.identity-check {
  display: block;
  padding: 12px;
  background: #fff5df;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 13px;
}
.password-reset-result {
  padding: 14px;
  background: #fff5df;
  border-radius: 8px;
  margin-top: 12px;
}
.password-reset-result code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.activity-branch {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
}
.activity-branch p:last-child {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .activity-branch {
    flex-wrap: wrap;
  }
}

.microbit-classes > summary {
  cursor: pointer;
  list-style-position: outside;
}
.microbit-classes > summary > h2 {
  display: inline;
  font-size: 21px;
  margin: 0;
}
.microbit-classes > summary > .muted {
  display: block;
  font-size: 12px;
  margin: 9px 0 0 18px;
}
.microbit-classes[open] > summary {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.microbit-class-content {
  min-width: 0;
}
.microbit-class-content > .section-card:last-child {
  margin-bottom: 0;
}
.microbit-class-content .section-card > summary > h2 {
  margin-top: 0;
}
.section-card > summary > .eyebrow {
  margin: 5px 0 6px 18px;
}
.section-card > summary > .muted {
  font-size: 12px;
  margin-left: 18px;
}
.toolkit-guide .timeline {
  margin-top: 18px;
}
.toolkit-guide .timeline li:last-child {
  padding-bottom: 0;
}
.toolkit-guide .timeline small {
  font-size: 12px;
  line-height: 1.6;
}

@media screen {
  .print-code-sheet {
    display: none !important;
  }
}
.button.success {
  color: #226447;
  background: #e5f5eb;
  border-color: #8ec6a5;
}
.button.success:hover {
  background: #cfebda;
}
.section-card .code-sheet {
  margin: 22px 0 0;
  padding: 20px;
}
.section-card .code-sheet .team {
  background: #fff;
}

.team-access-status.access-ready {
  color: #226447;
  background: #e5f5eb;
}
.team-access-status.access-closed {
  color: #805711;
  background: #fff1d6;
}
.team-access-status.access-revoked {
  color: #9c3e34;
  background: #fde9e5;
}

.class-access-actions {
  align-items: flex-end;
}
.class-access-actions .reopen-form {
  margin: 0;
}
.section-card .code-sheet {
  scroll-margin-top: 24px;
}

.class-code-dropdown {
  margin: 14px 0;
  font-size: 12px;
}
.class-code-dropdown > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.class-code-content {
  margin-top: 12px;
}
.class-code-dropdown .code-sheet {
  margin: 0;
}
.class-code-dropdown > summary {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.code-print-actions {
  margin: 0 0 16px;
}

.viewing-space {
  background: #eaf5fc;
  border-color: #a7cce0;
}
.viewing-space p {
  margin: 10px 0;
}
.selected-adult-access {
  outline: 2px solid #3686ab;
  outline-offset: 8px;
  scroll-margin-top: 24px;
}

.project-picker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.project-picker-row label {
  flex: 1;
  min-width: 200px;
  font-weight: 700;
}
.project-picker select {
  width: 100%;
  margin-top: 6px;
}
.new-project,
.editor-help,
.hardware-options {
  margin-top: 16px;
}
.new-project summary,
.editor-help summary,
.hardware-options summary {
  cursor: pointer;
  font-weight: 700;
}
.hardware-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.hardware-option input {
  width: auto;
}

/* Give the access window and reopen action room to wrap comfortably. */
.lesson-reopen-form {
  gap: 16px;
  padding: 10px 0;
}
.reopen-form .button {
  padding: 11px 18px;
}

.adult-access-card > summary {
  cursor: pointer;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.adult-access-card > summary .pill {
  margin-left: 10px;
}
.adult-access-card[open] > summary {
  margin-bottom: 14px;
}

.activity-branch:has(.lesson-access) {
  align-items: flex-start;
}
.activity-branch > div {
  min-width: 0;
  flex: 1;
}
.lesson-access {
  margin-top: 16px;
}
.lesson-access > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.lesson-access [data-lesson-panel] {
  margin-top: 14px;
}
.lesson-access .profile-tag {
  margin-top: 14px;
}
.lesson-access .lesson-code {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
}

/* Adult credentials use compact form styling, independent of student code input. */
.entry .password-access {
  padding-top: 16px;
}
.entry .password-access h2 {
  margin-bottom: 12px;
}
.entry .password-access form {
  gap: 12px;
}
.entry .password-access label {
  display: grid;
  gap: 5px;
  margin: 0;
}
.entry .password-access input {
  min-height: 44px;
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
}
.entry .password-access form > .button {
  margin-top: 2px;
}
.entry .password-mode-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 12px 0 0;
}
.entry .password-mode-actions .text-link {
  align-self: flex-end;
}
.entry .password-mode-actions .create-account-button {
  order: 2;
  margin-top: 6px;
  border: 1px solid #67b9dc;
  border-radius: 9px;
  background: #e4f5ff;
  color: var(--navy);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.entry .password-mode-actions .create-account-button:hover {
  background: #ccecff;
}

/* Both entry doors return to the public Quarkmine home. */
.home-logo {
  display: inline-flex;
  margin-bottom: 32px;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 160ms ease;
}
.entry .home-logo .brand { margin-bottom: 0; }
.home-logo:hover { transform: translateY(-2px) scale(1.02); }
.home-logo:focus-visible { outline: 3px solid var(--navy); outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) {
  .home-logo { transition: none; }
  .home-logo:hover { transform: none; }
}
