/* Student workspace visual refresh. Business events and data stay in StudentDashboard.vue. */
html body .student-dashboard.student-tech-workspace {
  grid-template-columns: 204px minmax(0, 1fr);
  min-height: calc(100vh - 66px);
  color: #18324b;
  background: #f4f7fb;
  background-image: none;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail {
  height: calc(100vh - 66px);
  min-height: calc(100vh - 66px);
  padding: 18px 12px 20px;
  border-right: 1px solid #e4eaf2;
  background: #ffffff;
  box-shadow: none;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail::before {
  display: none;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .student-profile {
  padding: 10px 8px 16px;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .student-profile::after {
  right: 12px;
  left: 12px;
  background: #e8edf4;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .student-avatar-wrap {
  width: 68px;
  height: 68px;
  margin-bottom: 10px;
  padding: 2px;
  border-radius: 8px;
  background: #dff5ff;
  box-shadow: 0 8px 20px rgba(40, 109, 164, .13);
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .student-avatar-wrap::before,
html body .student-dashboard.student-tech-workspace .student-learning-rail .student-avatar-wrap::after {
  display: none;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .student-avatar {
  border: 2px solid #ffffff;
  border-radius: 6px;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .avatar-upload-trigger {
  right: -5px;
  bottom: -5px;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .avatar-camera-button {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #2376db;
  box-shadow: 0 5px 12px rgba(35, 118, 219, .22);
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .student-name {
  color: #18324b;
  font-size: 16px;
  font-weight: 800;
}

html body .student-dashboard.student-tech-workspace .student-menu {
  gap: 5px;
  margin-top: 14px;
}

html body .student-dashboard.student-tech-workspace .student-menu .menu-item {
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 7px;
  color: #5d6e80;
  font-size: 13px;
  font-weight: 700;
}

html body .student-dashboard.student-tech-workspace .student-menu .menu-item::before {
  display: none;
}

html body .student-dashboard.student-tech-workspace .student-menu .menu-item .anticon {
  width: 25px;
  height: 25px;
  line-height: 25px;
  border-radius: 6px;
  color: #2376db;
  background: #e9f2ff;
}

html body .student-dashboard.student-tech-workspace .student-menu .menu-item:nth-child(2) .anticon {
  color: #ad6200;
  background: #fff2d7;
}

html body .student-dashboard.student-tech-workspace .student-menu .menu-item:nth-child(3) .anticon {
  color: #6f48c9;
  background: #f0eaff;
}

html body .student-dashboard.student-tech-workspace .student-menu .menu-item:nth-child(4) .anticon {
  color: #13806f;
  background: #e1f7f2;
}

html body .student-dashboard.student-tech-workspace .student-menu .menu-item:nth-child(5) .anticon {
  color: #c34870;
  background: #ffe8f0;
}

html body .student-dashboard.student-tech-workspace .student-menu .menu-item:nth-child(6) .anticon {
  color: #9b6900;
  background: #fff0bd;
}

html body .student-dashboard.student-tech-workspace .student-menu .menu-item:hover,
html body .student-dashboard.student-tech-workspace .student-menu .menu-item.active {
  color: #155cae;
  background: #eef6ff;
  box-shadow: inset 3px 0 0 #2d82e5;
}

html body .student-dashboard.student-tech-workspace .student-menu .menu-item.active .anticon {
  color: #ffffff;
  background: #2d82e5;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .student-assistant-entry {
  right: 12px;
  bottom: 16px;
  left: 12px;
  min-height: 68px;
  padding: 9px;
  grid-template-columns: 38px minmax(0, 1fr) 14px;
  border: 1px solid #dbe8f6;
  border-radius: 8px;
  color: #18324b;
  background: #f2f8ff;
  box-shadow: none;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .student-assistant-entry:hover {
  border-color: #b9d5f3;
  background: #eaf4ff;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .student-assistant-entry img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .student-assistant-entry strong {
  color: #173653;
  font-size: 13px;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .student-assistant-entry em {
  color: #718296;
  font-size: 10px;
}

html body .student-dashboard.student-tech-workspace .student-learning-rail .student-assistant-entry > .anticon {
  color: #287edc;
}

html body .student-dashboard.student-tech-workspace .dashboard-main {
  max-width: 1540px;
  padding: 24px 26px 42px;
}

html body .student-dashboard.student-tech-workspace .student-command-strip {
  min-height: 184px;
  margin-bottom: 14px;
  padding: 26px 30px;
  grid-template-columns: minmax(0, 1fr) 260px;
  border: 1px solid #d7e8f5;
  border-radius: 8px;
  color: #18324b;
  background: #edf8ff;
  box-shadow: 0 10px 26px rgba(42, 87, 126, .08);
}

html body .student-dashboard.student-tech-workspace .student-command-strip::before {
  background: linear-gradient(90deg, rgba(45, 130, 229, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(45, 130, 229, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, #000 0%, #000 70%, transparent 100%);
}

html body .student-dashboard.student-tech-workspace .command-eyebrow {
  margin-bottom: 10px;
  color: #1669c6;
  background: #dbeeff;
}

html body .student-dashboard.student-tech-workspace .command-copy h1 {
  color: #173653;
  font-size: 31px;
  line-height: 1.2;
}

html body .student-dashboard.student-tech-workspace .command-copy p {
  margin-top: 8px;
  color: #607489;
  font-size: 14px;
}

html body .student-dashboard.student-tech-workspace .command-meta {
  gap: 8px;
  margin-top: 15px;
}

html body .student-dashboard.student-tech-workspace .command-meta span {
  min-height: 30px;
  padding: 0 10px;
  border-color: #d4e5f3;
  border-radius: 6px;
  color: #285578;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

html body .student-dashboard.student-tech-workspace .command-visual {
  align-items: flex-end;
}

html body .student-dashboard.student-tech-workspace .scan-board {
  width: 250px;
  height: 164px;
  border: 0;
  border-radius: 0;
  background: url('/default-avatar.lossless.webp') center 48% / 178px 178px no-repeat;
  box-shadow: none;
}

html body .student-dashboard.student-tech-workspace .scan-board .scan-line,
html body .student-dashboard.student-tech-workspace .scan-board .scan-node,
html body .student-dashboard.student-tech-workspace .scan-board .scan-core {
  display: none;
}

html body .student-dashboard.student-tech-workspace .student-progress-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

html body .student-dashboard.student-tech-workspace .overview-card {
  min-height: 88px;
  padding: 14px 15px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

html body .student-dashboard.student-tech-workspace .overview-card::after {
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: 3px;
  border-radius: 0;
}

html body .student-dashboard.student-tech-workspace .overview-card.lavender::after { background: #6a7ee8; }
html body .student-dashboard.student-tech-workspace .overview-card.cream::after { background: #f3a23b; }
html body .student-dashboard.student-tech-workspace .overview-card.pink::after { background: #ee6f9f; }
html body .student-dashboard.student-tech-workspace .overview-card.violet::after { background: #775bd5; }

html body .student-dashboard.student-tech-workspace .overview-copy {
  gap: 5px;
}

html body .student-dashboard.student-tech-workspace .overview-label {
  color: #718092;
  font-size: 12px;
}

html body .student-dashboard.student-tech-workspace .overview-value {
  color: #18324b;
  font-size: 23px;
}

html body .student-dashboard.student-tech-workspace .overview-icon {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  font-size: 17px;
}

html body .student-dashboard.student-tech-workspace .overview-message {
  grid-column: 1 / -1;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #f2dfaa;
  border-radius: 7px;
  color: #6f5515;
  background: #fff8df;
  box-shadow: none;
}

html body .student-dashboard.student-tech-workspace .message-bubble {
  color: #6f5515;
  font-size: 13px;
}

html body .student-dashboard.student-tech-workspace .student-quick-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

html body .student-dashboard.student-tech-workspace .student-quick-panel .workshop-card {
  min-height: 94px;
  padding: 15px 16px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

html body .student-dashboard.student-tech-workspace .student-quick-panel .workshop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(36, 74, 111, .13);
}

html body .student-dashboard.student-tech-workspace .student-quick-panel .workshop-card.theme-jcode { background: #f17624; }
html body .student-dashboard.student-tech-workspace .student-quick-panel .workshop-card.theme-scratch { background: #2d79dc; }
html body .student-dashboard.student-tech-workspace .student-quick-panel .workshop-card.theme-python { background: #7053ca; }
html body .student-dashboard.student-tech-workspace .student-quick-panel .workshop-card.theme-cpp { background: #119789; }

html body .student-dashboard.student-tech-workspace .student-quick-panel .workshop-copy h3 {
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 15px;
}

html body .student-dashboard.student-tech-workspace .student-quick-panel .workshop-copy p {
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
}

html body .student-dashboard.student-tech-workspace .student-quick-panel .workshop-art {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 7px;
  color: #ffffff;
  background: rgba(255, 255, 255, .15);
  font-size: 19px;
}

html body .student-dashboard.student-tech-workspace .student-home-content {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

html body .student-dashboard.student-tech-workspace .student-home-content .sub-section + .sub-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e8edf3;
}

html body .student-dashboard.student-tech-workspace .student-home-content .sub-section-head {
  margin-bottom: 13px;
}

html body .student-dashboard.student-tech-workspace .student-home-content .sub-section-head h3 {
  color: #18324b;
  font-size: 16px;
}

html body .student-dashboard.student-tech-workspace .student-home-content .homework-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

html body .student-dashboard.student-tech-workspace .student-home-content .homework-card {
  min-height: 154px;
  padding: 17px;
  border: 1px solid #eadcae;
  border-radius: 7px;
  background: #fffaf0;
  box-shadow: none;
}

html body .student-dashboard.student-tech-workspace .student-home-content .work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

html body .student-dashboard.student-tech-workspace .student-home-content .work-card {
  border: 1px solid #e1e7ee;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

html body .student-dashboard.student-tech-workspace .student-home-content .work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(41, 72, 105, .1);
}

html body .student-dashboard.student-tech-workspace .student-home-content .work-cover {
  aspect-ratio: 16 / 10;
}

html body .student-dashboard.student-tech-workspace .student-home-content .work-body {
  padding: 13px;
}

html body .student-dashboard.student-tech-workspace .student-home-content .work-body h3 {
  color: #18324b;
  font-size: 14px;
}

html body .student-dashboard.student-tech-workspace .student-home-content .work-meta-row {
  margin-top: 10px;
  font-size: 11px;
}

html body .student-dashboard.student-tech-workspace .student-home-content .work-scene-tag,
html body .student-dashboard.student-tech-workspace .student-home-content .work-status-tag {
  top: 9px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
}

html body .student-dashboard.student-tech-workspace .student-home-content .work-scene-tag { left: 9px; }
html body .student-dashboard.student-tech-workspace .student-home-content .work-status-tag { right: 9px; }

@media (max-width: 1279px) and (min-width: 1024px) {
  html body .student-dashboard.student-tech-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  html body .student-dashboard.student-tech-workspace .dashboard-main {
    padding-right: 20px;
    padding-left: 20px;
  }

  html body .student-dashboard.student-tech-workspace .student-command-strip {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  html body .student-dashboard.student-tech-workspace .scan-board {
    width: 205px;
  }

  html body .student-dashboard.student-tech-workspace .student-home-content .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  html body .student-dashboard.student-tech-workspace {
    grid-template-columns: 1fr;
  }

  html body .student-dashboard.student-tech-workspace .student-menu {
    flex-direction: row;
  }

  html body .student-dashboard.student-tech-workspace .student-learning-rail {
    height: auto;
    min-height: 0;
    padding: 10px var(--page-gutter);
    border-right: 0;
    border-bottom: 1px solid #e1e8f0;
  }

  html body .student-dashboard.student-tech-workspace .student-learning-rail .student-avatar-wrap {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  html body .student-dashboard.student-tech-workspace .student-command-strip {
    grid-template-columns: 1fr;
  }

  html body .student-dashboard.student-tech-workspace .command-visual {
    display: none;
  }

  html body .student-dashboard.student-tech-workspace .student-progress-strip,
  html body .student-dashboard.student-tech-workspace .student-quick-panel,
  html body .student-dashboard.student-tech-workspace .student-home-content .homework-grid,
  html body .student-dashboard.student-tech-workspace .student-home-content .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  /* Keep the compact rail content-sized on phones; the base mobile rule stretches
     its children to the rail height and leaves a large empty navigation block. */
  html body .student-dashboard.student-tech-workspace .student-learning-rail {
    align-items: center;
  }

  html body .student-dashboard.student-tech-workspace .dashboard-main {
    padding: 14px var(--page-gutter) 28px;
  }

  html body .student-dashboard.student-tech-workspace .student-command-strip {
    min-height: 0;
    padding: 20px;
  }

  html body .student-dashboard.student-tech-workspace .command-copy h1 {
    font-size: 27px;
  }

  html body .student-dashboard.student-tech-workspace .command-meta span {
    flex: 1 1 auto;
  }

  html body .student-dashboard.student-tech-workspace .student-progress-strip,
  html body .student-dashboard.student-tech-workspace .student-quick-panel,
  html body .student-dashboard.student-tech-workspace .student-home-content .homework-grid,
  html body .student-dashboard.student-tech-workspace .student-home-content .work-grid {
    grid-template-columns: 1fr;
  }

  html body .student-dashboard.student-tech-workspace .overview-message {
    grid-column: auto;
  }

  html body .student-dashboard.student-tech-workspace .student-home-content {
    padding: 16px;
  }
}
