:root {
  font:
    15px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #1c2a3c;
  background: #f4f6f9;
  --ink: #17263a;
  --sub: #57687c;
  --line: #dce2e9;
  --accent: #225fae;
  --nav: #142438;
  --mint: #8fe0cc;
  --radius: 15px;
  --soft: #eef3f8;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled,
select:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.13;
  letter-spacing: -0.055em;
  font-weight: 690;
}
h2 {
  font-size: 1.32rem;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
h3 {
  font-size: 1.06rem;
  line-height: 1.35;
  letter-spacing: -0.023em;
}
.skip {
  position: fixed;
  top: -100px;
  left: 8px;
  z-index: 100;
  background: white;
  padding: 0.7rem;
}
.skip:focus {
  top: 8px;
}
.loading {
  padding: 10vh 10vw;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--nav);
  color: #e8f0fa;
  display: flex;
  flex-direction: column;
  padding: 27px 15px 20px;
  gap: 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.43rem;
  font-weight: 690;
  letter-spacing: -0.05em;
  text-decoration: none;
}
.sidebrand {
  padding: 0 10px;
}
.mark {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: var(--mint);
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 3px;
  place-content: center;
  transform: rotate(0);
}
.mark i {
  display: block;
  background: var(--nav);
  border-radius: 1px;
}
.mark i:last-child {
  opacity: 0.45;
  border-radius: 1px 1px 4px 1px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 8px;
  color: #c7d4e4;
  font-weight: 520;
  text-decoration: none;
}
.nav a:hover,
.logout:hover {
  background: #20364f;
  color: white;
}
.nav a[aria-current="page"] {
  background: #284058;
  color: #fff;
  box-shadow: inset 3px 0 var(--mint);
}
.navicon {
  width: 1.35em;
  text-align: center;
  display: inline-block;
  font:
    1rem/1.2 ui-monospace,
    monospace;
}
.sidefoot {
  margin-top: auto;
  border-top: 1px solid #344357;
  padding: 15px 8px 0;
}
.identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.identity span:nth-child(2) {
  min-width: 0;
}
.identity strong,
.identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.identity small {
  color: #b4c1d0;
}
.avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  background: #2e455c;
  color: #bcebdc;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 0.81rem;
  font-weight: 700;
}
.logout {
  color: #d1dce7;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 6px;
  padding: 8px 0;
  margin-top: 8px;
  font-size: 0.85rem;
}
.content {
  min-width: 0;
}
.bar {
  height: 61px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 70px);
  gap: 12px;
}
.crumb {
  font-size: 0.87rem;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 8px;
}
.crumb a {
  text-decoration: none;
}
.crumb a:hover {
  text-decoration: underline;
}
.env {
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #35485d;
  background: #edf2f7;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
  white-space: nowrap;
}
.env:before,
.status:before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 99px;
  background: currentColor;
}
.env.demo {
  background: #fff3dd;
  color: #7a5109;
}
.work {
  max-width: 1510px;
  margin: auto;
  padding: clamp(24px, 3vw, 48px) clamp(18px, 4vw, 70px) 65px;
}
.heading,
.sectionhead,
.toolbar,
.topline,
.actions,
.meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.heading,
.sectionhead,
.topline {
  justify-content: space-between;
}
.heading {
  margin-bottom: 25px;
  align-items: flex-end;
}
.heading p,
.muted {
  color: var(--sub);
}
.heading p {
  margin-top: 7px;
}
.actions,
.toolbar,
.meta {
  flex-wrap: wrap;
}
.sectionhead {
  margin-bottom: 15px;
}
.sectionhead small,
.subhead {
  color: var(--sub);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  border: 1px solid #cdd7e1;
  background: white;
  color: #24374a;
  border-radius: 8px;
  font-weight: 590;
  font-size: 0.9rem;
  min-height: 37px;
  padding: 7px 12px;
  line-height: 1.25;
}
.btn:hover {
  border-color: #9cabbc;
  background: #f1f5f8;
}
.btn.primary {
  background: #205cab;
  border-color: #205cab;
  color: white;
}
.btn.primary:hover {
  background: #194e93;
}
.btn.dark {
  background: var(--nav);
  color: white;
  border-color: var(--nav);
}
.btn.danger {
  color: #a73533;
  background: #fffaf9;
  border-color: #e4c4bf;
}
.btn.sm {
  min-height: 30px;
  font-size: 0.8rem;
  padding: 5px 9px;
}
.btn.closebtn {
  min-width: 32px;
}
.btn.linkbtn {
  border-color: transparent;
  background: none;
  color: var(--accent);
  padding-left: 0;
}
.btn:focus-visible,
.nav a:focus-visible,
.tab:focus-visible {
  outline: 3px solid #69aefc;
}
.section {
  margin-top: 28px;
}
.hero {
  background: #223950;
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 27px;
  position: relative;
  overflow: hidden;
}
.hero .date {
  color: #bfd1e1;
  font-size: 0.9rem;
}
.hero h2 {
  font-size: 1.58rem;
  margin: 5px 0 16px;
}
.hero .toolbar,
.hero h2,
.hero .date {
  position: relative;
  z-index: 1;
}
.hero .btn {
  border-color: #b9d1da;
}
.hero .btn.primary {
  background: var(--mint);
  color: #14362f;
  border-color: var(--mint);
}
.hero:after {
  content: "";
  height: 250px;
  width: 250px;
  border: 1px solid #52687a;
  border-radius: 44px;
  transform: rotate(23deg);
  position: absolute;
  right: 5%;
  top: 40px;
  box-shadow:
    0 0 0 21px #2c435a,
    0 0 0 22px #425a6e,
    0 0 0 44px #2a4056,
    0 0 0 45px #41566a;
  pointer-events: none;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 13px;
  margin: 17px 0 25px;
}
.metric,
.card,
.panel,
.lab {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.metric {
  display: flex;
  flex-direction: column;
  padding: 17px 20px;
  gap: 4px;
}
.metric span {
  color: var(--sub);
  font-weight: 550;
  font-size: 0.85rem;
}
.metric strong {
  font-size: 1.85rem;
  letter-spacing: -0.06em;
  line-height: 1.17;
}
.panel {
  padding: 19px 21px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
  gap: 14px;
}
.card {
  padding: 19px;
}
.card .meta,
.lab .meta {
  margin-top: 8px;
}
.card .toolbar {
  margin-top: 16px;
}
.meta {
  color: var(--sub);
  font-size: 0.84rem;
  gap: 5px 12px;
}
.status {
  border-radius: 999px;
  background: #edf3f7;
  color: #466076;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  line-height: 1.3;
  padding: 4px 8px;
  font-weight: 610;
}
.status.good {
  background: #e5f5ee;
  color: #17694f;
}
.status.warn {
  background: #fff0d3;
  color: #7a520b;
}
.status.bad {
  background: #fce9e9;
  color: #9e3f3c;
}
.tablewrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid #e8ecf1;
  vertical-align: middle;
}
th {
  font-size: 0.79rem;
  color: #596c7f;
  background: #f9fafc;
  font-weight: 620;
  white-space: nowrap;
}
td {
  font-size: 0.88rem;
}
tr:last-child td {
  border-bottom: 0;
}
td .title {
  display: block;
  font-weight: 620;
  color: #20364b;
  text-decoration: none;
}
td .title:hover {
  text-decoration: underline;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 23px 0 19px;
}
.tab {
  background: none;
  border: 0;
  font-size: 0.9rem;
  font-weight: 570;
  color: var(--sub);
  padding: 9px 13px 10px;
  border-bottom: 2px solid transparent;
}
.tab[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.options {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.empty {
  padding: 24px;
  background: #fff;
  border: 1px dashed #c4d2de;
  border-radius: 12px;
  color: var(--sub);
}
.empty strong {
  display: block;
  color: var(--ink);
}
.labs {
  display: grid;
  gap: 13px;
}
.lab {
  overflow: hidden;
}
.labhead {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}
.labhead .meta {
  margin: 3px 0 0;
}
.machine {
  padding: 14px 18px;
  display: grid;
  grid-template-columns:
    minmax(120px, 1.15fr) minmax(130px, 0.95fr) minmax(145px, 1fr)
    auto;
  gap: 10px;
  align-items: center;
}
.machine + .machine {
  border-top: 1px solid #e8edf2;
}
.machine .pills,
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.machine small {
  display: block;
  color: var(--sub);
  font-size: 0.76rem;
}
.actionsbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detailmenu {
  position: relative;
}
.detailmenu summary {
  list-style: none;
}
.detailmenu summary::-webkit-details-marker {
  display: none;
}
.detailmenu[open] .menulist {
  display: grid;
}
.menulist {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 3px);
  background: white;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px #16283a22;
  min-width: 155px;
  z-index: 3;
}
.menulist button {
  border: 0;
  background: none;
  text-align: left;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 0.85rem;
}
.menulist button:hover {
  background: var(--soft);
}
.lab:has(.detailmenu[open]) {
  overflow: visible;
}
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.field {
  display: grid;
  gap: 5px;
  align-content: start;
  margin-bottom: 12px;
}
.field > span,
.legend {
  font-size: 0.87rem;
  font-weight: 620;
}
.field input,
.field select,
.field textarea,
.search,
.inline-select {
  width: 100%;
  min-height: 39px;
  border: 1px solid #b9c7d4;
  border-radius: 7px;
  padding: 7px 10px;
  background: white;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid #80aee4;
  outline-offset: 1px;
}
.field small,
.hint {
  color: var(--sub);
  font-size: 0.8rem;
  font-weight: 400;
}
.field textarea {
  min-height: 81px;
  resize: vertical;
}
.field.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field.check input {
  min-height: unset;
  width: 16px;
  height: 16px;
}
.search {
  max-width: 235px;
  min-height: 36px;
}
.notice {
  padding: 10px 12px;
  border-radius: 8px;
  background: #edf4fc;
  color: #244b79;
  margin: 10px 0;
  font-size: 0.88rem;
}
.notice.warn {
  background: #fff5e0;
  color: #71501a;
}
.error {
  color: #943b38;
  background: #fff0ed;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.88rem;
}
.error:empty {
  display: none;
}
.error:not(:empty) {
  margin: 10px 0;
}
.code {
  font:
    0.85rem/1.5 ui-monospace,
    Consolas,
    monospace;
}
.credentials td {
  word-break: break-word;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  padding: 0;
  width: min(620px, 96vw);
  max-height: 90dvh;
  box-shadow: 0 25px 100px #14243845;
}
dialog.identity-dialog {
  width: min(460px, 94vw);
  padding: clamp(18px, 4vw, 28px);
}
.identity-dialog .field {
  margin-top: 12px;
}
dialog::backdrop {
  background: #15253870;
}
#modal-body {
  padding: 23px;
}
.dialoghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 8px;
}
.dialogfoot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 16px;
}
.form-section {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 9px;
  margin: 12px 0;
}
.form-section legend {
  font-weight: 640;
  font-size: 0.87rem;
}
.summary {
  cursor: pointer;
  font-weight: 590;
  font-size: 0.88rem;
}
.sr {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#alerts {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: grid;
  gap: 5px;
  width: max-content;
  max-width: 92vw;
}
.toast {
  background: var(--nav);
  color: white;
  padding: 9px 14px;
  border-radius: 9px;
  box-shadow: 0 5px 25px #101f3020;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
}
.login-art {
  background: #1b3046;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(25px, 5vw, 75px);
  position: relative;
  overflow: hidden;
}
.login-art .brand {
  align-self: flex-start;
}
.login-art h2 {
  font-size: clamp(2.4rem, 4.7vw, 5rem);
  max-width: 9em;
  line-height: 1.03;
  letter-spacing: -0.065em;
  font-weight: 620;
  z-index: 1;
}
.login-art:after {
  content: "";
  width: 38vw;
  height: 38vw;
  border: 2px solid #49667c;
  position: absolute;
  right: -16vw;
  top: 18%;
  transform: rotate(31deg);
  border-radius: 70px;
  box-shadow:
    0 0 0 24px #21394f,
    0 0 0 26px #415c71,
    0 0 0 51px #233c52,
    0 0 0 53px #405a6b;
}
.login-main {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 35px;
  background: #fff;
}
.loginbox {
  width: min(100%, 365px);
}
.loginbox form {
  margin-top: 22px;
}
.loginbox .btn {
  width: 100%;
  margin-top: 6px;
}
.loginbox .env {
  margin-bottom: 14px;
}
.loginbox .muted {
  margin-top: 8px;
}
.hint-spaced {
  margin: 8px 0 14px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.info-grid dt {
  font-size: 0.82rem;
  color: var(--sub);
}
.info-grid dd {
  margin: 2px 0;
  font-weight: 560;
}
.datecell {
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 184px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 10px;
  }
  .machine {
    grid-template-columns: 1fr 1fr;
  }
  .machine .detailmenu {
    justify-self: end;
  }
  .heading {
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 9px 13px;
    gap: 9px 15px;
  }
  .sidebrand {
    padding: 0;
  }
  .sidebrand .mark {
    width: 30px;
    height: 30px;
  }
  .brand {
    font-size: 1.16rem;
  }
  .sidebar .nav {
    order: 3;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 3px;
  }
  .nav a {
    padding: 5px 9px;
    font-size: 0.85rem;
  }
  .nav a[aria-current="page"] {
    box-shadow: inset 0 -2px var(--mint);
  }
  .navicon {
    display: none;
  }
  .sidefoot {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
  }
  .sidefoot .identity {
    display: none;
  }
  .logout {
    padding: 3px;
    margin: 0;
  }
  .bar {
    height: 45px;
  }
  .heading,
  .sectionhead {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .work {
    padding-top: 24px;
  }
  .labhead {
    flex-wrap: wrap;
  }
  .machine {
    padding: 13px;
  }
  .hero {
    padding: 17px;
  }
  .two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 20px;
    gap: 18px;
  }
  .login-art h2 {
    font-size: 1.6rem;
    max-width: none;
  }
  .login-main {
    align-content: start;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    padding: 13px;
  }
  .tabs {
    gap: 0;
  }
  .tab {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  .nav a {
    transition:
      background 0.12s,
      border-color 0.12s;
  }
}
@media print {
  .sidebar,
  .bar,
  .actions,
  .btn,
  .tabs,
  #alerts {
    display: none;
  }
  .shell {
    display: block;
  }
  .work {
    padding: 0;
  }
  .lab {
    break-inside: avoid;
  }
}
.space-name {
  display: block;
  color: #a8c6c2;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  margin-top: 8px;
  line-height: 1.35;
}
.sidebrand {
  text-decoration: none;
}
html[data-space="trainer"] {
  --nav: #173830;
  --accent: #176854;
}
html[data-space="trainer"] .nav a[aria-current="page"] {
  background: #285245;
}
html[data-space="trainer"] .btn.primary {
  background: #206858;
  border-color: #206858;
}
html[data-space="student"] {
  --nav: #253351;
  --accent: #3f599d;
}
.admin-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 34px;
}
.admin-links a {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 19px;
  color: var(--ink);
  text-decoration: none;
}
.admin-links a:hover {
  border-color: #86a8c5;
}
.admin-links span {
  font-size: 0.92rem;
  font-weight: 600;
}
.admin-links strong {
  font-size: 2.3rem;
  letter-spacing: -0.05em;
  line-height: 1.25;
}
.admin-links small {
  color: var(--sub);
  display: flex;
  justify-content: space-between;
}
@media (max-width: 720px) {
  .space-name {
    margin: 0;
    font-size: 0.66rem;
  }
  .admin-links {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
.hub-link {
  text-decoration: none;
  border: 1px solid #e8d4a9;
}
.hub-link:hover {
  background: #ffebc1;
  border-color: #b99649;
}
.trainer-studio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 18px 0 24px;
  padding: 18px 21px;
  border: 1px solid #c5dcd5;
  border-inline-start: 4px solid #398977;
  border-radius: 12px;
  background: #f0f8f5;
}
.trainer-studio p {
  margin-top: 4px;
  max-width: 34rem;
  font-size: .88rem;
  color: #435f57;
}
.trainer-studio h2 {
  color: #164d40;
  font-size: 1.15rem;
}
.sim-console {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.own-vm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 185px;
}
.vm-password {
  font-size: .8rem;
  color: var(--accent);
  text-underline-offset: 3px;
  padding: 2px 0;
}
@media (max-width: 720px) {
  .bar:has(.hub-link) {
    height: auto;
    min-height: 45px;
    flex-wrap: wrap;
    padding-block: 7px;
    gap: 5px 12px;
  }
  .trainer-studio {
    padding: 14px;
  }
}
