/* 实训中心new · 分角色工作台 */

.root[data-name="实训中心-new"] {
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.root[data-name="实训中心-new"] > .top {
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
}

.root[data-name="实训中心-new"] > .main.practice-main {
  flex: 1 0 auto;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.pnew-main {
  overflow: visible;
}

.pnew {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--practice-content-max);
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.pnew-role-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--practice-radius-lg);
  border: 1px solid var(--practice-border);
  background: var(--practice-glass-chip);
}

.pnew-role-switch__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem 0.75rem;
  min-width: 0;
}

.pnew-role-switch__label {
  font-size: var(--practice-font-12);
  font-weight: 600;
  color: var(--practice-cyan);
  white-space: nowrap;
}

.pnew-role-switch__note {
  margin: 0;
  font-size: var(--practice-font-12);
  line-height: var(--practice-lh-12);
  color: var(--practice-text-muted);
}

.pnew-role-switch__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--practice-glass-inset);
}

.pnew-role-tab {
  min-height: 1.75rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: var(--practice-font-12);
  font-weight: 500;
  color: var(--practice-text-muted);
  cursor: pointer;
}

.pnew-role-tab:hover {
  color: var(--practice-cyan);
}

.pnew-role-tab.is-active {
  color: #042f2e;
  font-weight: 600;
  background: var(--practice-btn-send);
}

.pnew-view[hidden] {
  display: none;
}

.pnew-view:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.pnew-block__title {
  margin: 0;
  font-size: var(--practice-font-16);
  line-height: var(--practice-lh-16);
  font-weight: 600;
  color: var(--practice-text);
}

.pnew-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.875rem;
}

.pnew-block > .pnew-block__title {
  margin-bottom: 0.875rem;
}

.pnew-block__note {
  margin: -0.375rem 0 0.875rem;
  font-size: var(--practice-font-12);
  line-height: var(--practice-lh-12);
  color: var(--practice-text-muted);
}

.pnew-continue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.375rem;
  border-radius: var(--practice-radius-xl);
  border: 1px solid var(--practice-border-hover);
  background: var(--practice-glass-panel);
}

.pnew-continue__tag {
  margin: 0;
  font-size: var(--practice-font-12);
  font-weight: 600;
  color: var(--practice-cyan);
}

.pnew-continue__name {
  margin: 0.375rem 0 0;
  font-size: var(--practice-font-16);
  line-height: var(--practice-lh-16);
  font-weight: 600;
  color: var(--practice-text);
}

.pnew-continue__meta {
  margin: 0.375rem 0 0;
  max-width: 36rem;
  font-size: var(--practice-font-12);
  line-height: var(--practice-lh-12);
  color: var(--practice-text-secondary);
}

.pnew-continue__bar {
  margin-top: 0.75rem;
  height: 6px;
  max-width: 20rem;
  border-radius: 999px;
  background: var(--practice-glass-inset);
  overflow: hidden;
}

.pnew-continue__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--practice-btn-send);
}

.pnew-continue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pnew-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 0;
  font-family: inherit;
  font-size: var(--practice-font-12);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.pnew-btn--primary {
  color: #042f2e;
  background: var(--practice-btn-send);
}

.pnew-btn--ghost {
  color: var(--practice-cyan);
  border: 1px solid var(--practice-border-hover);
  background: var(--practice-cyan-08);
}

.pnew-btn--sm {
  min-height: 1.75rem;
  padding: 0 0.75rem;
}

.pnew-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--practice-glass-inset);
}

.pnew-filter {
  min-height: 1.75rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: var(--practice-font-12);
  font-weight: 500;
  color: var(--practice-text-muted);
  cursor: pointer;
}

.pnew-filter.is-active {
  color: var(--practice-cyan);
  background: var(--practice-cyan-14);
}

.pnew-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pnew-project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--practice-radius-lg);
  border: 1px solid var(--practice-border);
  background: var(--practice-glass-bubble);
}

.pnew-project.is-hidden {
  display: none;
}

.pnew-project__media {
  position: relative;
}

.pnew-project__cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.pnew-project__media .pnew-status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  border: 1px solid var(--practice-border);
  background: var(--practice-glass-bubble);
}

.pnew-project__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.875rem 1rem 1rem;
  flex: 1;
}

.pnew-project__body h3 {
  margin: 0;
  font-size: var(--practice-font-16);
  line-height: var(--practice-lh-16);
  font-weight: 600;
  color: var(--practice-text);
}

.pnew-project__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
  padding-top: 0.5rem;
}

.pnew-status {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--practice-text-muted);
}

.pnew-status--doing {
  color: var(--practice-sky);
}

.pnew-status--done {
  color: var(--practice-green);
}

.pnew-status--todo {
  color: var(--practice-amber);
}

.pnew-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.pnew-gaps,
.pnew-tools,
.pnew-certs,
.pnew-bars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pnew-gaps li,
.pnew-certs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--practice-radius-md);
  border: 1px solid var(--practice-border);
  background: var(--practice-glass-chip);
}

.pnew-gaps__name,
.pnew-certs__name {
  margin: 0;
  font-size: var(--practice-font-14);
  font-weight: 600;
  color: var(--practice-text);
}

.pnew-gaps__hint,
.pnew-certs__meta {
  margin: 0.25rem 0 0;
  font-size: var(--practice-font-12);
  line-height: var(--practice-lh-12);
  color: var(--practice-text-muted);
}

.pnew-tools a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border-radius: var(--practice-radius-md);
  border: 1px solid var(--practice-border);
  background: var(--practice-glass-chip);
  text-decoration: none;
}

.pnew-tools a:hover {
  border-color: var(--practice-border-hover);
}

.pnew-tools strong {
  font-size: var(--practice-font-14);
  font-weight: 600;
  color: var(--practice-text);
}

.pnew-tools span {
  font-size: var(--practice-font-12);
  color: var(--practice-text-muted);
}

.pnew-textlink {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--practice-font-12);
  font-weight: 600;
  color: var(--practice-cyan);
  text-decoration: none;
}

.pnew-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.pnew-stat {
  padding: 0.875rem 1rem;
  border-radius: var(--practice-radius-md);
  border: 1px solid var(--practice-border);
  background: var(--practice-glass-chip);
}

.pnew-stat__value {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--practice-text);
}

.pnew-stat__value em {
  font-style: normal;
  color: var(--practice-cyan);
}

.pnew-stat__label {
  margin: 0.375rem 0 0;
  font-size: var(--practice-font-14);
  font-weight: 600;
  color: var(--practice-text);
}

.pnew-stat__hint {
  margin: 0.25rem 0 0;
  font-size: var(--practice-font-12);
  line-height: var(--practice-lh-12);
  color: var(--practice-text-muted);
}

.pnew-table {
  display: flex;
  flex-direction: column;
  border-radius: var(--practice-radius-lg);
  border: 1px solid var(--practice-border);
  overflow: auto;
  background: var(--practice-glass-chip);
}

.pnew-table__head,
.pnew-table__row {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr 0.8fr 0.8fr 0.7fr;
  gap: 0.5rem;
  align-items: center;
  min-width: 40rem;
  padding: 0.75rem 1rem;
  font-size: var(--practice-font-12);
  line-height: var(--practice-lh-12);
}

.pnew-table__head {
  font-weight: 600;
  color: var(--practice-text-muted);
  background: var(--practice-glass-inset);
}

.pnew-table__row {
  color: var(--practice-text-secondary);
  border-top: 1px solid var(--practice-border-muted);
}

.pnew-table__row span:first-child {
  font-weight: 600;
  color: var(--practice-text);
}

.pnew-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: var(--practice-font-12);
  font-weight: 600;
  color: var(--practice-cyan);
  cursor: pointer;
}

.pnew-bars li {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.pnew-bars__label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--practice-font-12);
  line-height: var(--practice-lh-12);
  color: var(--practice-text-secondary);
}

.pnew-bars__label em {
  font-style: normal;
  font-weight: 600;
  color: var(--practice-cyan);
}

.pnew-bars__track {
  height: 6px;
  border-radius: 999px;
  background: var(--practice-glass-inset);
  overflow: hidden;
}

.pnew-bars__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--practice-btn-send);
}

.pnew-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  max-width: 22rem;
  padding: 0.75rem 1rem;
  border-radius: var(--practice-radius-md);
  border: 1px solid var(--practice-border-hover);
  background: var(--practice-glass-bubble);
  color: var(--practice-text);
  font-size: var(--practice-font-12);
  line-height: var(--practice-lh-12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pnew-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .pnew-projects,
  .pnew-split,
  .pnew-stats {
    grid-template-columns: 1fr;
  }
}
