.lab-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.lab-tabs a,
.lab-link {
  color: #e9fe88;
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid #35433f;
  border-radius: 8px;
  display: inline-block;
}
.lab-tabs a:hover,
.lab-link:hover {
  background: #25332f;
}
.lab-panel {
  padding: 30px;
  border: 1px solid #35414a;
  background: #111c24;
  border-radius: 18px;
  margin: 26px 0;
  scroll-margin-top: 100px;
}
.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.lab-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}
.lab-panel p {
  line-height: 1.65;
}
.lab-panel h3 {
  font-size: 24px;
  margin: 16px 0;
}
.lab-panel button {
  margin: 8px 6px 8px 0;
}
.lab-panel textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #384852;
  border-radius: 8px;
  padding: 12px;
  color: #eef3ed;
  background: #0b131a;
  resize: vertical;
}
.lab-panel input[type="file"] {
  font-size: 12px;
  max-width: 100%;
}
.council-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.council-steps article {
  border-top: 1px solid #35414a;
  padding-top: 15px;
}
.sim-terminal {
  background: radial-gradient(ellipse at top, #213c39, #091218 70%);
  border: 1px solid #36534f;
  border-radius: 14px;
  padding: 28px;
  min-width: 0;
}
.orb {
  height: 135px;
  display: grid;
  place-items: center;
}
.orb span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid #e9fe88;
  border-radius: 24px;
  transform: rotate(-12deg);
  font-size: 38px;
  color: #e9fe88;
  box-shadow: 0 0 50px #b5d58b20;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
  background: #0a1218;
  padding: 16px;
  border-radius: 8px;
  max-height: 440px;
  overflow: auto;
}
#labStatus {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #1b2a30;
  border: 1px solid #44565b;
  padding: 12px 16px;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
#labStatus.error {
  color: #ffb79b;
  border-color: #915f50;
}
#saveLink {
  overflow-wrap: anywhere;
}
.metric {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #314347;
}
.metric b {
  color: #e9fe88;
  overflow-wrap: anywhere;
  text-align: right;
}
.lab-panel .badge {
  white-space: normal;
  text-align: center;
}
dialog {
  max-width: 680px;
  width: calc(100% - 32px);
}
input[readonly] {
  color: #a0c9c0;
}
.lab-link {
  margin: 12px 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #e9fe88;
  outline-offset: 3px;
}
@media (max-width: 950px) {
  .council-steps {
    grid-template-columns: 1fr;
  }
  .lab-grid {
    grid-template-columns: 1fr;
  }
  .lab-panel {
    padding: 22px;
  }
  .lab-panel .section-top {
    align-items: start;
    gap: 10px;
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  #simulation .section-top .badge { display: none; }
  header {
    flex-wrap: wrap;
    gap: 10px;
  }
  header .brand small {
    display: none;
  }
  .page-title h1 {
    font-size: 37px;
  }
  .lab-panel {
    padding: 17px;
  }
  .lab-tabs {
    gap: 8px;
  }
  .lab-tabs a {
    padding: 10px;
    font-size: 12px;
  }
  .sim-terminal {
    padding: 18px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
}
.page-title {
  margin-bottom: 12px;
}
.page-title h1 {
  font-size: 36px;
}
.page-title .eyebrow {
  margin-top: 0;
}
main {
  padding-top: 24px;
}
.lab-tabs {
  margin: 16px 0 !important;
}
.lab-panel .section-top {
  margin-bottom: 12px;
}
.lab-panel h3 {
  margin-top: 0;
}
.lab-panel p {
  margin: 10px 0;
}
.lab-panel .note {
  font-size: 14px;
}
.lab-panel {
  margin-top: 18px !important;
}
.lab-panel .orb {
  height: 90px;
}
header {
  min-height: 80px;
  padding-top: 16px;
  padding-bottom: 16px;
}
@media (max-width: 560px) {
  header {
    min-height: 76px;
    flex-wrap: nowrap;
  }
  header > .brand {
    font-size: 22px;
  }
  header > a:nth-child(2) {
    display: none;
  }
  header > button {
    width: auto !important;
    margin-left: auto;
    padding: 10px;
  }
  .page-title .badge {
    display: none;
  }
  .page-title h1 {
    font-size: 32px;
  }
  .lab-panel .section-top h2 {
    margin: 0;
  }
  .lab-panel .section-top {
    gap: 14px;
  }
  .lab-panel p {
    font-size: 16px;
  }
  main {
    padding-top: 18px;
  }
  .lab-tabs {
    margin: 14px 0 !important;
  }
  .page-title .eyebrow {
    font-size: 11px;
  }
  .lab-panel details {
    font-size: 14px;
    color: #a9babd;
  }
}
