.lab-work {
  --lab-ink: #213c33;
  --lab-green: #21664f;
  --lab-light: #ecf5ee;
  --lab-line: #cfded4;
  --lab-white: #fff;
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  color: var(--lab-ink);
  font:
    1rem/1.65 "Microsoft YaHei UI",
    "PingFang SC",
    sans-serif;
}
.lab-work *,
.lab-work *::before,
.lab-work *::after {
  box-sizing: border-box;
}
.lab-work h2,
.lab-work h3,
.lab-work h4,
.lab-work p {
  margin: 0;
}
.lab-work .lab-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.45rem 0 1rem;
}
.lab-heading h2 {
  color: var(--lab-ink);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.035em;
}
.lab-heading p,
.lab-heading span,
.lab-meta,
.lab-work small,
.lab-legend {
  color: #506a5b;
  font-size: 0.85rem;
}
.lab-heading span {
  white-space: nowrap;
}
.lab-task {
  background: var(--lab-light);
  border-left: 3px solid #77a58a;
  border-radius: 0 9px 9px 0;
  padding: 0.95rem 1.15rem;
}
.lab-work h3 {
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--lab-ink);
}
.lab-work h4 {
  font-size: 1.04rem;
  line-height: 1.5;
  color: var(--lab-ink);
}
.lab-list {
  margin: 0.35rem 0 0;
  padding-left: 1.45rem;
}
.lab-list li {
  padding-left: 0.17rem;
  overflow-wrap: anywhere;
}
.lab-list li + li {
  margin-top: 0.2rem;
}
.lab-help {
  padding: 0.75rem 0;
  font-size: 0.91rem;
  color: #42584d;
}
.lab-help summary {
  cursor: pointer;
  color: var(--lab-green);
  font-weight: 650;
  width: fit-content;
}
.lab-help p {
  margin-top: 0.45rem;
}
.lab-challenge {
  margin: 0.8rem 0 0.2rem;
  padding: 0.7rem 0.85rem;
  background: #f1f6f1;
  border-radius: 6px;
}
.lab-challenge h4 {
  font-size: 0.9rem;
}
.lab-native-check {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid #c3d9c9;
  border-radius: 8px;
}
.lab-native-check input[type="file"] {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.85rem;
}
.lab-native-result:not(:empty) {
  margin-top: 0.6rem;
}
.lab-native-result .lab-primary {
  margin-top: 0.65rem;
}
.lab-workspace {
  border: 1px solid var(--lab-line);
  background: var(--lab-white);
  border-radius: 12px;
  overflow: hidden;
  margin: 0.75rem 0 0.35rem;
}
.lab-appbar {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #264b3b;
  background: #e3eee5;
}
.lab-toolbar,
.lab-location,
.lab-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--lab-line);
}
.lab-toolbar.wrap,
.lab-inline {
  flex-wrap: wrap;
}
.lab-location {
  font-size: 0.88rem;
}
.lab-work button,
.lab-file-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: auto;
  min-width: 0;
  min-height: 2.3rem;
  border: 1px solid #bdcec2;
  border-radius: 6px;
  margin: 0;
  padding: 0.34rem 0.78rem;
  box-shadow: none;
  background: #fff;
  color: var(--lab-ink);
  font: inherit;
  font-weight: 570;
  font-size: 0.875rem;
  line-height: 1.45;
  text-decoration: none;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}
.lab-work button:hover:not(:disabled),
.lab-file-link:hover {
  background: #edf5ef;
  border-color: #84a68f;
}
.lab-work button:disabled {
  cursor: default;
  opacity: 0.48;
}
.lab-work :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #4b916e;
  outline-offset: 2px;
}
.lab-work button[aria-pressed="true"] {
  background: #daeddd;
  color: #1b593d;
  border-color: #85aa91;
}
.lab-field,
.lab-format label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.87rem;
  font-weight: 625;
  color: #365240;
}
.lab-work :is(input, select, textarea) {
  appearance: auto;
  min-width: 0;
  border: 1px solid #aec4b7;
  background: #fff;
  border-radius: 5px;
  color: #253d31;
  font: inherit;
  font-weight: 450;
  font-size: 1rem;
  padding: 0.45rem 0.6rem;
  line-height: 1.5;
}
.lab-work input,
.lab-work textarea {
  width: 100%;
}
.lab-work select {
  background-image: none;
}
.lab-work textarea {
  resize: vertical;
}
.lab-inline {
  align-items: flex-end;
}
.lab-inline .lab-field {
  flex: 1 1 12rem;
}
.lab-filelist {
  padding: 0.4rem 0.8rem;
  min-height: 9rem;
}
.lab-file {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border-bottom: 1px solid #e7eee9;
}
.lab-file small {
  margin-left: auto;
  white-space: nowrap;
}
.lab-file button:first-child {
  justify-content: flex-start;
  text-align: left;
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 2.8rem;
}
.lab-file.chosen {
  background: #e7f1e9;
}
.lab-filelist > p,
.lab-notice {
  color: #4c6658;
  font-size: 0.9rem;
}
.lab-notice:not(:empty) {
  padding: 0.22rem 0.2rem;
}
.lab-pad,
.lab-page,
.lab-site,
.lab-mail {
  padding: 1.1rem;
}
.lab-sample {
  margin: 0.45rem 0 0.9rem;
  background: #f5f7f3;
  border: 1px solid #dde7df;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  line-height: 1.95;
  font-size: 1.03rem;
  user-select: none;
}
.lab-format {
  background: #fafcf9;
  align-items: flex-end;
}
.lab-format label {
  font-size: 0.75rem;
}
.lab-format select {
  padding: 0.3rem 0.4rem;
  font-size: 0.88rem;
}
.lab-page {
  padding: 1rem 1.2rem 1.7rem;
}
.lab-page small {
  display: block;
  margin-bottom: 0.75rem;
}
.lab-page .lab-par {
  display: block;
  width: 100%;
  border: 1px dashed transparent;
  padding: 0.35rem 0.55rem;
  margin: 0.2rem 0;
  min-height: 2.8rem;
}
.lab-page .lab-par.chosen {
  border-color: #87a795;
  background: #f6faf5;
}
.lab-sheet-wrap {
  width: 100%;
  overflow-x: auto;
}
.lab-sheet-wrap .lab-sheet {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  min-width: 590px;
  text-align: center;
  font-size: 0.9rem;
}
.lab-sheet :is(td, th) {
  border: 1px solid #d2dfd5;
  padding: 0.45rem;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.lab-sheet thead th,
.lab-sheet th:first-child {
  background: #f1f4f0;
  color: #546759;
  font-weight: 550;
}
.lab-sheet thead th:first-child {
  width: 2rem;
}
.lab-sheet thead th:nth-last-child(-n + 2) {
  width: 24%;
}
.lab-sheet tbody tr:first-child {
  background: #edf6ed;
}
.lab-sheet .lab-cell {
  background: #fff9e8;
  padding: 0.3rem;
}
.lab-cell input {
  font:
    0.87rem/1.3 Consolas,
    monospace;
  border-color: #d9cfaa;
  padding: 0.33rem 0.25rem;
  border-radius: 3px;
  background: #fffcf1;
}
.lab-cell output {
  display: block;
  font-size: 0.82rem;
  min-height: 1.25rem;
}
.lab-legend {
  padding: 0.52rem 0.75rem;
}
.lab-slides {
  display: grid;
  grid-template-columns: minmax(7.5rem, 25%) 1fr;
}
.lab-thumbs {
  background: #f1f5ef;
  padding: 0.85rem 0.65rem;
  border-right: 1px solid var(--lab-line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lab-thumbs button {
  text-align: left;
  justify-content: flex-start;
  min-height: 3.65rem;
}
.lab-slide,
.lab-mail {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}
.lab-slide {
  padding: 1.1rem;
}
.lab-site {
  min-height: 10rem;
}
.lab-site p,
.lab-site button {
  margin-top: 0.5rem;
}
.lab-web-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lab-mail > button {
  justify-self: start;
}
.lab-message {
  white-space: pre-wrap;
  margin: 0.75rem 0 !important;
}
.lab-file-link {
  display: inline-flex;
  color: var(--lab-green);
  margin-top: 0.55rem;
}
.lab-footer {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.9rem 0 0.2rem;
}
.lab-footer .lab-primary {
  margin-left: auto;
}
.lab-work .lab-primary {
  color: white;
  background: var(--lab-green);
  border-color: var(--lab-green);
  padding: 0.55rem 1.05rem;
}
.lab-work .lab-primary:hover {
  background: #164c39 !important;
  color: white;
}
.lab-results {
  padding: 1rem;
  border: 1px solid #c5dcca;
  border-radius: 9px;
  background: #f6faf6;
  margin-top: 0.8rem;
}
.lab-results strong {
  color: #286544;
  padding-left: 0.35rem;
}
.lab-results ul {
  padding: 0;
  margin: 0.6rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.lab-results li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
}
.lab-results li span {
  border-radius: 4px;
  padding: 0.05rem 0.36rem;
  font-size: 0.76rem;
  white-space: nowrap;
}
.lab-ok {
  background: #e0efdf;
  color: #28603c;
}
.lab-fix {
  background: #f8e9c9;
  color: #715628;
}
.lab-results li p {
  color: #55695c;
}
@media (max-width: 580px) {
  .lab-work .lab-heading {
    gap: 0.4rem;
  }
  .lab-task,
  .lab-pad,
  .lab-page,
  .lab-site,
  .lab-mail,
  .lab-slide {
    padding: 0.75rem;
  }
  .lab-toolbar,
  .lab-inline,
  .lab-location {
    padding: 0.5rem;
    gap: 0.4rem;
  }
  .lab-slides {
    display: block;
  }
  .lab-thumbs {
    border-right: 0;
    border-bottom: 1px solid var(--lab-line);
    flex-direction: row;
    overflow-x: auto;
  }
  .lab-thumbs button {
    flex: 0 0 6.5rem;
    min-height: 2.75rem;
  }
  .lab-sheet-wrap .lab-sheet {
    min-width: 545px;
  }
}
