/* ###### BEGIN assets/css/boot-loader.css ########## */

:root {
  --boot-bg: #05070b;
  --boot-bg-2: #08101a;
  --boot-panel: rgba(6, 10, 18, 0.94);
  --boot-panel-2: rgba(8, 13, 23, 0.98);
  --boot-border: rgba(53, 194, 255, 0.18);
  --boot-text: #cdd6df;
  --boot-muted: #7f8b99;
  --boot-accent: #35c2ff;
  --boot-ok: #6ee7b7;
  --boot-done: #f4fbff;
  --boot-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.labCoreBoot {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: block;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(53, 194, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #04060a 0%, #060a11 45%, #05070b 100%);
  color: var(--boot-text);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.labCoreBoot.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.labCoreBoot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
}

.labCoreBoot__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: clamp(20px, 2.2vw, 34px);
}

.labCoreBoot__head {
  display: grid;
  gap: 4px;
}

.labCoreBoot__brand {
  font-size: clamp(34px, 4vw, 72px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #edf8ff;
  text-shadow: 0 0 20px rgba(53, 194, 255, 0.18);
}

.labCoreBoot__subtitle {
  font-size: clamp(11px, 1vw, 15px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--boot-muted);
}

.labCoreBoot__terminal {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 18px 18px 22px;
  border: 1px solid var(--boot-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0.96), rgba(4, 8, 14, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.012),
    var(--boot-shadow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(13px, 0.92vw, 15px);
  line-height: 1.62;
  scrollbar-width: thin;
  scrollbar-color: rgba(53, 194, 255, 0.55) rgba(255, 255, 255, 0.05);
}

.labCoreBoot__terminal::-webkit-scrollbar {
  width: 10px;
}

.labCoreBoot__terminal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.labCoreBoot__terminal::-webkit-scrollbar-thumb {
  background: rgba(53, 194, 255, 0.55);
  border-radius: 999px;
}

.labCoreBoot__line {
  margin: 0 0 7px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--boot-text);
  opacity: 0;
  transform: translateY(4px);
  animation: labCoreBootLineIn 0.22s ease forwards;
}

.labCoreBoot__line--section {
  margin-top: 12px;
  color: var(--boot-accent);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.labCoreBoot__line--ok {
  color: var(--boot-ok);
}

.labCoreBoot__line--done {
  color: var(--boot-done);
  font-weight: 800;
  text-shadow: 0 0 14px rgba(53, 194, 255, 0.16);
}

.labCoreBoot__footer {
  display: grid;
  gap: 12px;
}

.labCoreBoot__status {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--boot-muted);
}

.labCoreBoot__progressRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.labCoreBoot__progress {
  width: 100%;
}

.labCoreBoot__progressTrack {
  position: relative;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(53, 194, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.labCoreBoot__progressBar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #1d8dbe 0%, #35c2ff 48%, #9defff 100%);
  box-shadow:
    0 0 16px rgba(53, 194, 255, 0.34),
    inset 0 0 10px rgba(255, 255, 255, 0.18);
  transition: width 0.35s ease;
}

.labCoreBoot__percent {
  min-width: 74px;
  text-align: right;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #eef9ff;
}

@keyframes labCoreBootLineIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .labCoreBoot__inner {
    gap: 14px;
    padding: 16px;
  }

  .labCoreBoot__terminal {
    padding: 14px 14px 18px;
    border-radius: 14px;
    font-size: 12px;
  }

  .labCoreBoot__progressTrack {
    height: 12px;
  }

  .labCoreBoot__percent {
    min-width: 58px;
    font-size: 20px;
  }
}

/* ###### END assets/css/boot-loader.css ###### */
/* ###### BEGIN Grant state ###### */
.labCoreBoot__grant {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid rgba(53, 194, 255, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(53, 194, 255, 0.07), rgba(53, 194, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 rgba(53, 194, 255, 0);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.labCoreBoot__grant.is-visible {
  opacity: 1;
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 28px rgba(53, 194, 255, 0.12);
  border-color: rgba(53, 194, 255, 0.28);
}

.labCoreBoot__grantTitle {
  font-size: clamp(16px, 1.25vw, 22px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #eef9ff;
  text-shadow: 0 0 16px rgba(53, 194, 255, 0.18);
}

.labCoreBoot__grantText {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--boot-muted);
}

.labCoreBoot.is-granted .labCoreBoot__progressBar {
  box-shadow:
    0 0 24px rgba(53, 194, 255, 0.42),
    inset 0 0 12px rgba(255, 255, 255, 0.24);
}

.labCoreBoot.is-granted .labCoreBoot__percent {
  text-shadow: 0 0 14px rgba(53, 194, 255, 0.18);
}
/* ###### END Grant state ###### */