body.html-lab-page .hero,
body.html-lab-page .html-lab-shell {
  max-width: min(1480px, 100%);
}

.html-lab-shell {
  display: grid;
  gap: 14px;
}

.html-lab-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.html-lab-header h4,
.html-lab-header p {
  margin: 0;
}

.html-lab-header p {
  color: rgba(220, 231, 249, 0.86);
  line-height: 1.45;
}

.html-lab-status {
  min-width: min(260px, 100%);
  padding: 8px 10px;
  border: 1px solid rgba(122, 150, 198, 0.26);
  border-radius: 10px;
  background: rgba(6, 15, 29, 0.42);
  text-align: right;
}

.html-lab-title-field {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(122, 150, 198, 0.24);
  border-radius: 10px;
  background: rgba(9, 18, 34, 0.54);
  color: #dce9fb;
  font-size: 0.88rem;
}

.html-lab-title-field .ui-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.html-lab-auto-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid rgba(122, 150, 198, 0.24);
  border-radius: 12px;
  background: rgba(9, 18, 34, 0.54);
  color: #eaf2ff;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
}

.html-lab-workbench {
  display: grid;
  grid-template-columns: minmax(520px, 1.45fr) minmax(360px, 0.85fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.html-lab-workspace-menu,
.html-lab-knowledge-menu,
.html-lab-task-menu,
.html-lab-project-files-menu,
.html-lab-editor-area,
.html-lab-preview-area {
  min-width: 0;
  border: 1px solid rgba(122, 150, 198, 0.26);
  border-radius: 12px;
  background: linear-gradient(170deg, rgba(10, 20, 37, 0.74), rgba(6, 13, 25, 0.72));
  box-shadow: inset 0 1px 0 rgba(241, 248, 255, 0.05), 0 12px 26px rgba(2, 8, 20, 0.22);
}

.html-lab-workspace-menu,
.html-lab-knowledge-menu,
.html-lab-task-menu,
.html-lab-project-files-menu {
  display: grid;
  gap: 12px;
  padding: 12px;
  width: 100%;
}

.html-lab-workspace-menu {
  padding: 0;
  overflow: hidden;
}

.html-lab-workspace-menu .tool-workspace-menu {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.html-lab-shell .html-lab-workspace-menu button.tool-workspace-menu__trigger:not(.ui-button) {
  min-height: 54px;
  padding: 12px;
  border-radius: 12px;
  border: 0;
  background: rgba(6, 15, 29, 0.5) !important;
  color: #eef5ff !important;
}

.html-lab-shell .html-lab-workspace-menu button.tool-workspace-menu__trigger:not(.ui-button):hover,
.html-lab-shell .html-lab-workspace-menu button.tool-workspace-menu__trigger:not(.ui-button):focus-visible {
  background: rgba(12, 26, 48, 0.74) !important;
}

.html-lab-workspace-menu .tool-workspace-menu__panel {
  padding: 0 12px 12px;
}

.html-lab-knowledge-menu {
  overflow: hidden;
}

.html-lab-knowledge-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.html-lab-knowledge-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.html-lab-knowledge-summary h5,
.html-lab-knowledge-summary p {
  margin: 0;
}

.html-lab-knowledge-summary h5 {
  color: #eef5ff;
  font-size: 1rem;
  line-height: 1.25;
}

.html-lab-knowledge-summary p,
.html-lab-knowledge-intro,
.html-lab-knowledge-card p {
  color: rgba(220, 231, 249, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
}

.html-lab-knowledge-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.html-lab-knowledge-actions > span {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(126, 195, 255, 0.25);
  border-radius: 999px;
  background: rgba(6, 15, 29, 0.5);
  color: #cfe2ff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.html-lab-knowledge-body {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(122, 150, 198, 0.2);
}

.html-lab-knowledge-body[hidden] {
  display: none !important;
}

.html-lab-knowledge-intro {
  margin: 0;
}

.html-lab-knowledge-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.html-lab-shell .html-lab-knowledge-filter button:not(.ui-button) {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(122, 150, 198, 0.3);
  border-radius: 999px;
  background: rgba(7, 16, 31, 0.72) !important;
  color: #dce9ff !important;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.html-lab-shell .html-lab-knowledge-filter button:not(.ui-button):hover,
.html-lab-shell .html-lab-knowledge-filter button:not(.ui-button):focus-visible,
.html-lab-shell .html-lab-knowledge-filter button:not(.ui-button).is-active {
  border-color: rgba(126, 195, 255, 0.7);
  background: rgba(22, 48, 88, 0.72) !important;
  color: #f3f8ff !important;
  outline: none;
}

.html-lab-knowledge-empty {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(122, 150, 198, 0.22);
  border-radius: 10px;
  background: rgba(6, 15, 29, 0.42);
  color: rgba(220, 231, 249, 0.84);
  font-size: 0.84rem;
  line-height: 1.4;
}

.html-lab-knowledge-empty.is-error {
  border-color: rgba(255, 142, 142, 0.42);
  background: rgba(90, 24, 38, 0.24);
  color: #ffd6dc;
}

.html-lab-knowledge-empty.is-empty {
  border-color: rgba(255, 210, 132, 0.34);
  background: rgba(105, 76, 21, 0.2);
  color: #ffe1a8;
}

.html-lab-knowledge-empty.is-ready {
  border-color: rgba(126, 211, 145, 0.32);
  background: rgba(30, 98, 62, 0.18);
  color: #dff8e5;
}

.html-lab-knowledge-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.html-lab-knowledge-card {
  min-width: 0;
  border: 1px solid rgba(122, 150, 198, 0.24);
  border-radius: 8px;
  background: rgba(12, 22, 40, 0.66);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(241, 248, 255, 0.04);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.html-lab-knowledge-card[open] {
  grid-column: 1 / -1;
  border-color: rgba(151, 185, 247, 0.46);
  background: rgba(13, 27, 49, 0.84);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(220, 232, 255, 0.07);
}

.html-lab-knowledge-card > summary {
  list-style: none;
}

.html-lab-knowledge-card > summary::-webkit-details-marker {
  display: none;
}

.html-lab-knowledge-card__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 8px 10px;
  min-width: 0;
  color: #edf4ff;
  cursor: pointer;
}

.html-lab-knowledge-card > summary::after {
  grid-column: 3;
  grid-row: 1;
}

.html-lab-knowledge-card[open] > .html-lab-knowledge-card__summary {
  min-height: 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(118, 146, 196, 0.22);
  background: rgba(23, 36, 60, 0.48);
}

.html-lab-knowledge-card__summary-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.html-lab-knowledge-card__summary span,
.html-lab-knowledge-card__section strong {
  overflow-wrap: anywhere;
}

.html-lab-knowledge-card__concept {
  display: block;
  color: #f3f8ff;
  font-size: 0.9rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.html-lab-knowledge-card__title {
  display: block;
  color: rgba(219, 232, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.html-lab-knowledge-card__teaser {
  display: block;
  color: rgba(203, 216, 238, 0.76);
  font-size: 0.76rem;
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.html-lab-knowledge-card[open] .html-lab-knowledge-card__title,
.html-lab-knowledge-card[open] .html-lab-knowledge-card__teaser {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.html-lab-knowledge-card__badges,
.html-lab-knowledge-code__meta,
.html-lab-knowledge-code__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.html-lab-knowledge-card__badges {
  justify-content: flex-end;
}

.html-lab-knowledge-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(127, 176, 255, 0.3);
  border-radius: 999px;
  background: rgba(127, 176, 255, 0.09);
  color: #bcd7ff;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
}

.html-lab-knowledge-card__section {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.html-lab-knowledge-card__section strong {
  color: #f3f8ff;
  font-size: 0.8rem;
}

.html-lab-knowledge-card__section p {
  margin: 0;
}

.html-lab-knowledge-card__body {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px 14px;
}

.html-lab-knowledge-card__examples {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.html-lab-knowledge-code {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.html-lab-knowledge-code__meta {
  justify-content: space-between;
  align-items: center;
}

.html-lab-knowledge-code__actions {
  justify-content: flex-end;
}

.html-lab-knowledge-code__actions .ui-button {
  --ui-btn-height: 28px;
  --ui-btn-radius: 8px;
  --ui-btn-padding-x: 8px;
  font-size: 0.74rem;
}

.html-lab-knowledge-code pre {
  max-width: 100%;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(118, 146, 196, 0.28);
  border-radius: 8px;
  background: rgba(3, 10, 21, 0.86);
  color: #e8f1ff;
  font-family: Consolas, Monaco, var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre;
}

.html-lab-knowledge-code code {
  display: block;
  color: inherit;
  font: inherit;
  tab-size: 2;
}

.html-lab-knowledge-code pre[data-code-language="html"] .code-editor__token--tag { color: #7dc9ff; }
.html-lab-knowledge-code pre[data-code-language="html"] .code-editor__token--tag-name {
  color: #56b6ff;
  font-weight: 700;
}
.html-lab-knowledge-code pre[data-code-language="html"] .code-editor__token--attr-name { color: #d9a9ff; }
.html-lab-knowledge-code pre[data-code-language="html"] .code-editor__token--attr-value { color: #a9e97f; }
.html-lab-knowledge-code pre[data-code-language="html"] .code-editor__token--doctype { color: #ffb870; }
.html-lab-knowledge-code pre[data-code-language="html"] .code-editor__token--text { color: #e7eefc; }
.html-lab-knowledge-code pre[data-code-language="css"] .code-editor__token--selector {
  color: #9be48b;
  font-weight: 700;
}
.html-lab-knowledge-code pre[data-code-language="css"] .code-editor__token--selector-class {
  color: #b7e88d;
  font-weight: 700;
}
.html-lab-knowledge-code pre[data-code-language="css"] .code-editor__token--selector-id {
  color: #ffd27a;
  font-weight: 700;
}
.html-lab-knowledge-code pre[data-code-language="css"] .code-editor__token--property { color: #8ed8ff; }
.html-lab-knowledge-code pre[data-code-language="css"] .code-editor__token--value { color: #ffd27a; }

.html-lab-menu-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.35fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.html-lab-project-files-menu .html-lab-menu-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.html-lab-task-menu__head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.html-lab-menu-summary,
.html-lab-task-panel__title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.html-lab-task-kicker,
.html-lab-stage-counter,
.html-lab-diagnostic-status {
  color: rgba(158, 188, 234, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.html-lab-task-menu h5,
.html-lab-project-files-menu h5,
.html-lab-menu-section h6,
.html-lab-stage-card h6,
.html-lab-diagnostic-panel h6 {
  margin: 0;
  color: #eef5ff;
  line-height: 1.25;
}

.html-lab-task-menu h5,
.html-lab-project-files-menu h5 {
  font-size: 1rem;
}

.html-lab-menu-section h6 {
  font-size: 0.9rem;
}

.html-lab-task-menu p,
.html-lab-project-files-menu p {
  margin: 0;
}

.html-lab-task-panel__title p,
.html-lab-task-context,
.html-lab-stage-goal,
.html-lab-stage-work-order p,
.html-lab-stage-product p,
.html-lab-diagnostic-summary,
.html-lab-menu-summary p,
.html-lab-task-hints p {
  color: rgba(220, 231, 249, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
}

.html-lab-task-select-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) minmax(220px, 1.05fr);
  gap: 8px;
  min-width: 0;
}

.html-lab-task-toolbar {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  gap: 12px;
  align-items: end;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(122, 150, 198, 0.18);
}

.html-lab-task-select-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: rgba(220, 231, 249, 0.86);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.html-lab-task-select-field .ui-select {
  width: 100%;
  min-width: 0;
  height: 34px;
  border-color: rgba(122, 150, 198, 0.34);
  border-radius: 9px;
  background: rgba(7, 16, 31, 0.88);
  color: #eef5ff;
  font-size: 0.82rem;
  text-transform: none;
}

.html-lab-task-select-field .ui-select:focus {
  border-color: rgba(126, 195, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(126, 195, 255, 0.12);
  outline: none;
}

.html-lab-task-select-field .ui-select option {
  background: #07101f;
  color: #eef5ff;
}

.html-lab-task-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.html-lab-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.html-lab-task-actions .ui-button {
  --ui-btn-height: 32px;
  --ui-btn-radius: 9px;
  --ui-btn-padding-x: 10px;
  font-size: 0.78rem;
}

.html-lab-task-actions .ui-button.is-complete {
  border-color: rgba(126, 211, 145, 0.48);
  background: rgba(30, 98, 62, 0.35);
  color: #dff8e5;
}

.html-lab-menu-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.html-lab-menu-body[hidden],
.html-lab-task-body[hidden] {
  display: none !important;
}

.html-lab-menu-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(300px, 1.2fr) minmax(230px, 0.95fr);
  gap: 10px;
  min-width: 0;
}

.html-lab-menu-section {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(122, 150, 198, 0.2);
  border-radius: 10px;
  background: rgba(6, 15, 29, 0.36);
}

.html-lab-menu-body .ui-input,
.html-lab-menu-body .ui-select {
  border-color: rgba(122, 150, 198, 0.34);
  background: rgba(7, 16, 31, 0.88);
  color: #eef5ff;
}

.html-lab-menu-body .ui-input:focus,
.html-lab-menu-body .ui-select:focus {
  border-color: rgba(126, 195, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(126, 195, 255, 0.12);
  outline: none;
}

.html-lab-stage-list {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.html-lab-stage-button {
  flex: 0 0 clamp(170px, 19vw, 240px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(122, 150, 198, 0.24);
  border-radius: 10px;
  background: rgba(8, 17, 32, 0.58);
  color: #eaf2ff;
  text-align: left;
  cursor: pointer;
}

.html-lab-stage-button strong {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(122, 150, 198, 0.34);
  border-radius: 999px;
  background: rgba(6, 15, 29, 0.56);
  font-size: 0.78rem;
}

.html-lab-stage-button span {
  min-width: 0;
  color: rgba(235, 243, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.html-lab-stage-button:hover,
.html-lab-stage-button:focus-visible {
  border-color: rgba(145, 174, 228, 0.62);
  background: rgba(15, 30, 54, 0.78);
  outline: none;
}

.html-lab-stage-button.is-active {
  border-color: rgba(126, 195, 255, 0.74);
  background: linear-gradient(160deg, rgba(20, 42, 82, 0.72), rgba(9, 24, 48, 0.84));
}

.html-lab-stage-button.is-complete strong {
  border-color: rgba(126, 211, 145, 0.46);
  background: rgba(30, 98, 62, 0.34);
  color: #dff8e5;
}

.html-lab-task-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.html-lab-stage-card,
.html-lab-diagnostic-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(122, 150, 198, 0.22);
  border-radius: 10px;
  background: rgba(6, 15, 29, 0.38);
}

.html-lab-stage-product,
.html-lab-stage-work-order,
.html-lab-stage-questions,
.html-lab-task-hints {
  display: grid;
  gap: 6px;
}

.html-lab-stage-work-order,
.html-lab-stage-questions {
  padding-top: 2px;
}

.html-lab-stage-work-order {
  padding: 10px;
  border-left: 3px solid rgba(126, 195, 255, 0.7);
  border-radius: 0 9px 9px 0;
  background: rgba(16, 39, 73, 0.38);
}

.html-lab-stage-product {
  padding: 9px 10px;
  border: 1px solid rgba(126, 211, 145, 0.2);
  border-radius: 9px;
  background: rgba(30, 98, 62, 0.12);
}

.html-lab-stage-product strong,
.html-lab-stage-work-order strong,
.html-lab-stage-questions strong,
.html-lab-task-hints strong,
.html-lab-diagnostic-columns strong {
  color: #f3f8ff;
  font-size: 0.82rem;
}

.html-lab-stage-questions ul,
.html-lab-diagnostic-columns ul,
.html-lab-diagnostic-questions ul,
.html-lab-linkgraph ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(226, 237, 255, 0.86);
  font-size: 0.82rem;
  line-height: 1.42;
}

.html-lab-task-hints {
  padding: 9px;
  border: 1px solid rgba(246, 199, 117, 0.25);
  border-radius: 10px;
  background: rgba(98, 69, 18, 0.22);
}

.html-lab-task-support {
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(122, 150, 198, 0.18);
}

.html-lab-task-support > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  list-style: none;
  color: rgba(220, 231, 249, 0.88);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.html-lab-task-support > summary::-webkit-details-marker {
  display: none;
}

.html-lab-task-support > summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(150, 171, 209, 0.42);
  border-radius: 999px;
  background: rgba(233, 241, 255, 0.08);
  color: #dce9ff;
  font-weight: 800;
  line-height: 1;
}

.html-lab-task-support > summary:hover,
.html-lab-task-support > summary:focus-visible {
  color: #f3f8ff;
  outline: none;
}

.html-lab-task-support[open] > summary::after {
  content: "-";
}

.html-lab-task-support__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding-top: 10px;
}

.html-lab-task-support__body > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(122, 150, 198, 0.18);
  border-radius: 9px;
  background: rgba(9, 18, 34, 0.42);
}

.html-lab-task-support__body > .html-lab-task-hints {
  border-color: rgba(246, 199, 117, 0.25);
  background: rgba(98, 69, 18, 0.22);
}

.html-lab-diagnostic-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  list-style: none;
  cursor: pointer;
}

.html-lab-diagnostic-head::-webkit-details-marker {
  display: none;
}

.html-lab-diagnostic-head::after {
  content: "+";
  grid-column: 3;
  grid-row: 1;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(150, 171, 209, 0.42);
  border-radius: 999px;
  background: rgba(233, 241, 255, 0.08);
  color: #dce9ff;
  font-weight: 800;
  line-height: 1;
}

.html-lab-diagnostic-panel[open] .html-lab-diagnostic-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(122, 150, 198, 0.18);
}

.html-lab-diagnostic-panel[open] .html-lab-diagnostic-head::after {
  content: "-";
}

.html-lab-diagnostic-head > span:first-child {
  color: #eef5ff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.html-lab-diagnostic-body {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-top: 2px;
}

.html-lab-diagnostic-status {
  text-align: right;
  grid-column: 2;
  grid-row: 1;
}

.html-lab-diagnostic-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.html-lab-diagnostic-columns > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(122, 150, 198, 0.18);
  border-radius: 9px;
  background: rgba(9, 18, 34, 0.46);
}

.html-lab-diagnostic-empty {
  color: rgba(203, 216, 238, 0.68);
}

.html-lab-diagnostic-questions,
.html-lab-linkgraph {
  border-top: 1px solid rgba(122, 150, 198, 0.18);
  padding-top: 8px;
}

.html-lab-diagnostic-questions summary,
.html-lab-linkgraph summary {
  color: rgba(220, 231, 249, 0.86);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.html-lab-diagnostic-questions ul {
  margin-top: 8px;
}

.html-lab-path-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(8px);
}

.html-lab-path-dialog__panel {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  padding: 14px;
  border: 1px solid rgba(126, 195, 255, 0.32);
  border-radius: 10px;
  background: linear-gradient(170deg, rgba(10, 20, 37, 0.96), rgba(6, 13, 25, 0.94));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.html-lab-path-dialog__panel h6,
.html-lab-path-dialog__panel p {
  margin: 0;
}

.html-lab-path-dialog__panel h6 {
  color: #eef5ff;
  font-size: 0.98rem;
}

.html-lab-path-dialog__panel p {
  color: rgba(220, 231, 249, 0.78);
  font-size: 0.84rem;
}

.html-lab-path-dialog__panel .ui-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border-color: rgba(122, 150, 198, 0.32);
  border-radius: 9px;
  background: rgba(7, 16, 31, 0.88);
  color: #eef5ff;
  font-family: var(--font-mono);
}

.html-lab-path-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.html-lab-pane-head h5 {
  margin: 0;
  color: #eef5ff;
  font-size: 0.96rem;
  line-height: 1.3;
}

.html-lab-file-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.html-lab-file-actions .ui-button {
  --ui-btn-height: 32px;
  --ui-btn-radius: 9px;
  --ui-btn-padding-x: 10px;
  font-size: 0.78rem;
}

.html-lab-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 2px;
  min-width: 0;
  overflow: visible;
}

.html-lab-shell button.html-lab-file-button:not(.ui-button) {
  flex: 1 1 clamp(160px, 20vw, 240px);
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(122, 150, 198, 0.24);
  border-radius: 10px;
  background: rgba(8, 17, 32, 0.68);
  color: #eaf2ff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.html-lab-shell button.html-lab-file-button:not(.ui-button) strong {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.html-lab-shell button.html-lab-file-button:not(.ui-button) span {
  color: rgba(203, 216, 238, 0.78);
  font-size: 0.82rem;
  line-height: 1.3;
}

.html-lab-shell button.html-lab-file-button:not(.ui-button):hover,
.html-lab-shell button.html-lab-file-button:not(.ui-button):focus-visible {
  border-color: rgba(145, 174, 228, 0.62);
  background: rgba(15, 30, 54, 0.78);
  box-shadow: 0 8px 18px rgba(2, 8, 20, 0.22);
  outline: none;
}

.html-lab-shell button.html-lab-file-button:not(.ui-button).is-active {
  border-color: rgba(126, 195, 255, 0.74);
  background: linear-gradient(160deg, rgba(20, 42, 82, 0.72), rgba(9, 24, 48, 0.84));
  box-shadow: inset 0 0 0 1px rgba(188, 215, 255, 0.08), 0 10px 22px rgba(2, 8, 20, 0.24);
}

.html-lab-shell button.html-lab-file-button:not(.ui-button).is-dirty::after {
  content: "nicht gespeichert";
  justify-self: start;
  padding: 2px 7px;
  border: 1px solid rgba(246, 199, 117, 0.38);
  border-radius: 999px;
  background: rgba(98, 69, 18, 0.34);
  color: #f6d58f;
  font-size: 0.72rem;
  line-height: 1.2;
}

.html-lab-profile-session,
.html-lab-session-technical {
  min-width: 0;
}

.html-lab-editor-area,
.html-lab-preview-area {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.html-lab-preview-area {
  grid-template-rows: auto minmax(300px, 1fr) auto;
}

.html-lab-pane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(122, 150, 198, 0.24);
  background: rgba(9, 18, 34, 0.56);
}

.html-lab-file-pill {
  min-width: 0;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(122, 150, 198, 0.26);
  border-radius: 999px;
  background: rgba(6, 15, 29, 0.58);
  color: #d8e7ff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.html-lab-editor-stack {
  min-width: 0;
  min-height: 0;
  padding: 10px;
}

.html-lab-editor-panel {
  min-width: 0;
}

.html-lab-editor-panel[hidden] {
  display: none !important;
}

.html-lab-editor-panel > label {
  color: rgba(218, 230, 250, 0.86);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.html-lab-editor-panel .code-editor__surface {
  min-height: clamp(360px, 54vh, 680px);
}

.html-lab-editor-panel .code-editor__input,
.html-lab-editor-panel .code-editor__preview,
.html-lab-editor-panel .code-editor__line-measure {
  font-size: 0.92rem;
}

.html-lab-preview-frame {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 360px;
  border: 0;
  background: #ffffff;
}

.html-lab-console {
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.html-lab-console .ui-console__head {
  padding: 8px 10px;
}

.html-lab-console-log {
  min-height: 110px;
  max-height: 180px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.45;
}

.html-lab-console-line {
  padding: 2px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.html-lab-console-line--system {
  color: rgba(207, 220, 244, 0.78);
}

.html-lab-console-line--log,
.html-lab-console-line--info {
  color: #e6f0ff;
}

.html-lab-console-line--warn {
  color: #f6d58f;
}

.html-lab-console-line--error {
  color: #ffabb2;
}

@media (max-width: 1120px) {
  .html-lab-menu-head,
  .html-lab-knowledge-head,
  .html-lab-project-files-menu .html-lab-menu-head {
    grid-template-columns: 1fr;
  }

  .html-lab-knowledge-actions {
    justify-content: flex-start;
  }

  .html-lab-task-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .html-lab-workbench {
    grid-template-columns: 1fr;
  }

  .html-lab-task-grid,
  .html-lab-knowledge-list,
  .html-lab-menu-grid,
  .html-lab-task-toolbar,
  .html-lab-task-support__body {
    grid-template-columns: 1fr;
  }

  .html-lab-file-button {
    min-height: 62px;
  }

  .html-lab-preview-frame {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .html-lab-header {
    display: grid;
  }

  .html-lab-status {
    min-width: 0;
    text-align: left;
  }

  .html-lab-title-field {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .html-lab-menu-actions .ui-button,
  .html-lab-auto-preview {
    width: 100%;
  }

  .html-lab-auto-preview {
    justify-content: center;
  }

  .html-lab-menu-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .html-lab-task-menu__head > .ui-button {
    width: 100%;
  }

  .html-lab-knowledge-actions,
  .html-lab-knowledge-filter,
  .html-lab-knowledge-code__actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .html-lab-knowledge-actions > span,
  .html-lab-knowledge-actions .ui-button,
  .html-lab-knowledge-filter button,
  .html-lab-knowledge-code__actions .ui-button {
    width: 100%;
  }

  .html-lab-knowledge-card__summary,
  .html-lab-knowledge-code__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .html-lab-knowledge-card > summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .html-lab-knowledge-card__badges {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .html-lab-task-select-grid {
    grid-template-columns: 1fr;
  }

  .html-lab-task-actions {
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .html-lab-task-actions .ui-button {
    width: 100%;
  }

  .html-lab-diagnostic-head {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .html-lab-diagnostic-head::after {
    grid-column: 2;
    grid-row: 1;
  }

  .html-lab-diagnostic-status {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .html-lab-diagnostic-columns {
    grid-template-columns: 1fr;
  }

  .html-lab-file-actions {
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .html-lab-file-actions .ui-button,
  .html-lab-menu-actions .ui-button {
    width: 100%;
  }

  .html-lab-file-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .html-lab-stage-list {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .html-lab-stage-button {
    flex-basis: auto;
  }

  .html-lab-shell button.html-lab-file-button:not(.ui-button) {
    flex-basis: auto;
  }

  .html-lab-editor-panel .code-editor__surface {
    min-height: 360px;
  }

  .html-lab-preview-frame {
    min-height: 340px;
  }
}
