body:not(.workspace-mode) .functional-shell {
  display: none;
}
a {
  color: inherit;
  text-decoration: none;
}
.cover:has(> .project-cover-image) {
  position: relative;
  overflow: hidden;
}
.project-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-cover.no-cover {
  display: none;
}
.site-header nav a {
  padding: 12px 18px;
  font-weight: 700;
}
.round-content a {
  color: var(--yellow);
  font-weight: 800;
}
.featured-card:empty {
  min-height: 480px;
  background: linear-gradient(145deg, #54ccc6, #1e86ae);
}
.featured-card {
  display: block;
  cursor: pointer;
}
.featured-card .game-scene,
.project-image.cover {
  background-position: center;
  background-size: cover;
}
.featured-card .game-scene.no-cover,
.project-image.no-cover,
.modal-image.no-cover {
  background: linear-gradient(145deg, #54ccc6, #1e86ae);
}
.form-message {
  min-height: 20px;
  color: var(--teal-dark);
  font:
    13px/1.45 system-ui,
    sans-serif;
}
.form-message.error {
  color: #aa3028;
}
#account-settings-form > button[type='submit'],
#student-details-form > button[type='submit'] {
  margin-top: 24px;
}
.functional-shell.active {
  display: grid !important;
}
.functional-shell .app-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  min-height: 0;
}
.functional-shell .app-sidebar nav {
  overflow-y: auto;
  min-height: 0;
}
.functional-shell .user-chip {
  flex-shrink: 0;
}
.functional-shell .user-chip > div {
  min-width: 0;
}
.functional-shell .user-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-sidebar a {
  color: inherit;
}
.app-sidebar nav a {
  width: 100%;
  border-radius: 11px;
  padding: 13px 14px;
  display: flex;
  gap: 13px;
  align-items: center;
  color: #c7cede;
}
.user-chip button {
  margin-left: auto;
  border: 0;
  color: white;
  background: transparent;
  font-size: 20px;
}
.empty-state {
  max-width: 900px;
  margin: 50px auto;
  text-align: center;
}
.empty-icon {
  width: 75px;
  height: 75px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--yellow);
  background: var(--teal);
  font-size: 35px;
}
.empty-state h2 {
  margin: 22px 0 8px;
  font-size: 34px;
}
.empty-state > p {
  color: var(--ink-soft);
  font-family: system-ui, sans-serif;
}
.team-choice {
  margin-top: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}
.team-choice form {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}
.team-choice label,
.auth-form label,
.admin-forms label {
  display: block;
  margin: 15px 0;
  font:
    700 12px system-ui,
    sans-serif;
}
.team-choice input,
.auth-form input,
.auth-form select,
.admin-forms input,
.admin-forms select {
  margin-top: 7px;
}
.current-project {
  min-height: 400px;
}
.current-project .project-banner {
  position: relative;
  overflow: hidden;
}
.current-project .project-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.current-project:not(:has(.project-banner img)) {
  grid-template-columns: 1fr;
  min-height: 0;
}
.current-project .project-banner:not(:has(img)) {
  min-height: 0;
  padding: 24px 34px 0;
}
.current-project .project-banner:not(:has(img)) .status-pill {
  position: static;
}
.current-project .current-content {
  grid-column: auto;
}
.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 24px;
}
.teacher-comments {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.teacher-comments h2 {
  margin-top: 0;
}
.teacher-comment + .teacher-comment {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.teacher-comment p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.teacher-comment small {
  color: var(--ink-soft);
}
.teacher-comment .status-pill {
  margin-left: 12px;
}
.project-actions .link-button {
  padding: 10px 4px;
}
.member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0ed;
  font:
    12px system-ui,
    sans-serif;
}
.member span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-size: 9px;
  font-weight: 800;
}
.member small {
  display: block;
  color: var(--ink-soft);
  margin-top: 2px;
}
.code-display {
  padding: 14px;
  border-radius: 12px;
  color: var(--navy);
  background: #fff0bc;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.standalone-editor {
  max-width: 820px;
  margin: 40px auto;
}
.cover-preview {
  min-height: 0;
  margin-top: 10px;
  border-radius: 16px;
  background-position: center;
  background-size: cover;
}
.cover-preview.has-image {
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
}
.video-preview,
.project-video {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--navy);
}
.video-preview {
  margin-top: 10px;
}
#school-project-detail > .project-video {
  display: block;
  margin: 20px 0;
}
#school-project-detail > a.secondary {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
}
.modal-copy .project-video,
.review-preview .project-video {
  margin: 20px 0;
}
.notification-panel:empty::before,
.record-list:empty::before {
  content: 'Nothing to show yet.';
  display: block;
  padding: 40px;
  color: var(--ink-soft);
  text-align: center;
}
.functional-review {
  grid-template-columns: 270px 1fr 330px;
}
.empty-copy {
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}
.record-list {
  display: grid;
  gap: 12px;
}
.student-record {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.student-record > div {
  flex: 1;
}
.student-record h3 {
  margin: 0 0 5px;
}
.student-record p {
  margin: 0;
  color: var(--ink-soft);
  font:
    12px system-ui,
    sans-serif;
}
.student-record button {
  margin-left: 7px;
}
.admin-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 25px;
}
.admin-forms .editor-form {
  padding: 26px;
}
.wide-form {
  grid-column: 1/-1;
}
.check-list {
  max-height: 300px;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.check-list label {
  margin: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.check-list input {
  width: 18px;
  min-height: 18px;
}
.category-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font:
    12px system-ui,
    sans-serif;
}
.admin-management {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.admin-management .editor-form {
  max-height: 520px;
  overflow: auto;
}
.management-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font:
    12px system-ui,
    sans-serif;
}
.management-row > div {
  flex: 1;
}
.management-row strong,
.management-row small {
  display: block;
}
.management-row small {
  color: var(--ink-soft);
  margin-top: 3px;
}
.management-row button {
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}
.signin-grid {
  min-height: 540px;
  padding: 35px;
}
.signin-grid > section {
  max-width: 560px;
  margin: auto;
}
.auth-form {
  padding: 20px 8px;
}
.auth-form h2 {
  font-size: 30px;
}
.check {
  display: flex !important;
  align-items: start;
  gap: 10px;
}
.check input {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--teal);
}
.tab-list {
  display: flex;
  gap: 5px;
  padding: 5px;
  border-radius: 14px;
  background: #ecefeb;
}
.tab-list button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 11px;
  background: transparent;
  font-weight: 800;
}
.tab-list button.active {
  background: white;
  box-shadow: 0 3px 10px rgba(22, 35, 63, 0.08);
}
.project-card button {
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
  padding: 0;
}
.empty-projects {
  grid-column: 1/-1;
  padding: 70px 20px;
  text-align: center;
  color: var(--ink-soft);
}
.ballot-card {
  display: block;
}
.ballot-card .card-body {
  cursor: pointer;
}
.ballot-selection {
  display: block;
  cursor: pointer;
}
.ballot-details {
  padding: 0 20px 20px;
}
.ballot-details button {
  width: 100%;
}
.leaderboard-details {
  margin-top: 12px;
  padding: 9px 14px;
}
.results-navigation {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.sticky-vote[hidden] {
  display: none;
}
@media (max-width: 900px) {
  .functional-shell.active {
    padding-bottom: 140px;
  }
  .functional-shell .app-sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    height: auto;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .functional-shell .user-chip {
    display: flex;
    margin-top: 7px;
    padding-top: 10px;
  }
  .team-choice,
  .admin-forms,
  .admin-management,
  .functional-review {
    grid-template-columns: 1fr;
  }
  .functional-review .review-list {
    display: flex;
  }
  .wide-form {
    grid-column: auto;
  }
  .app-sidebar nav a {
    width: auto;
    min-width: 58px;
    padding: 8px;
    flex-direction: column;
    gap: 3px;
    font-size: 16px;
  }
  .app-sidebar nav a span {
    font-size: 9px;
  }
}
@media (max-width: 560px) {
  .team-choice,
  .check-list {
    grid-template-columns: 1fr;
  }
  .student-record {
    align-items: start;
    flex-wrap: wrap;
  }
  .student-record > div {
    min-width: calc(100% - 55px);
  }
  .signin-grid {
    padding: 25px 15px;
  }
  .tab-list {
    flex-direction: column;
  }
  .editor-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .editor-top > div:first-child {
    flex-wrap: wrap;
  }
  .project-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
