.js-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding-top: 1.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.js-breadcrumb a {
  color: var(--muted);
}

.js-shell {
  margin-bottom: 4rem;
}

.js-workbench {
  display: grid;
  gap: 0.8rem;
}

.js-editor-panel,
.js-output-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.js-editor-panel .panel-heading,
.js-output-panel .panel-heading,
.js-console-heading {
  min-height: 3.65rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  background: #fbfcfc;
}

.js-editor-panel .panel-heading label,
.js-output-panel .panel-heading strong,
.js-console-heading strong {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.94rem;
  font-weight: 760;
}

.js-editor-panel textarea {
  display: block;
  width: 100%;
  min-height: 390px;
  padding: 1rem;
  color: var(--code-ink);
  background: var(--code-bg);
  border: 0;
  border-radius: 0;
  outline: 0;
  resize: vertical;
  font-size: 0.84rem;
  line-height: 1.65;
  tab-size: 2;
  white-space: pre;
}

.js-editor-panel textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(86, 175, 162, 0.65);
}

.js-count,
.js-hint {
  color: var(--muted);
  font-size: 0.74rem;
}

.js-count {
  flex: 0 0 auto;
  text-align: right;
}

.js-hint {
  margin: 0;
  padding: 0.6rem 0.85rem 0.75rem;
  background: #fbfcfc;
}

.js-preview-stage {
  height: 220px;
  background: #ffffff;
}

.js-preview-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.js-console-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.js-console {
  min-height: 10.4rem;
  max-height: 17rem;
  overflow: auto;
  padding: 0.75rem 0.85rem;
  color: var(--code-ink);
  background: var(--code-bg);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
}

.js-console .console-line {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.22rem 0;
  border-bottom: 1px solid rgba(159, 190, 182, 0.16);
  overflow-wrap: anywhere;
}

.js-console .console-label {
  color: #7fd0c1;
  font-weight: 700;
  text-transform: uppercase;
}

.js-console .is-warn .console-label {
  color: var(--yellow);
}

.js-console .is-error .console-label {
  color: #ff927f;
}

.js-table {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  color: #40545a;
  font-size: 0.9rem;
}

.js-table-scroll {
  max-width: 100%;
  margin-top: 1.25rem;
  overflow-x: auto;
}

.js-table-scroll .js-table {
  margin-top: 0;
}

.js-table caption {
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-weight: 750;
  text-align: left;
}

.js-table th,
.js-table td {
  padding: 0.68rem 0.7rem;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.js-table th {
  color: var(--ink);
  background: var(--surface-muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.js-table code {
  white-space: nowrap;
}

@media (min-width: 760px) {
  .js-workbench {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
  }

  .js-editor-panel textarea {
    height: 390px;
  }

  .js-table th,
  .js-table td {
    padding: 0.8rem 0.85rem;
  }
}

@media (max-width: 580px) {
  .js-table-scroll .js-table {
    min-width: 680px;
  }
}
