@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b1116;
  --panel: #121d24;
  --edge: #34454e;
  --text: #ebeee3;
  --muted: #abc0c9;
  --signal: #92d3ef;
  --amber: #ffcb78;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font: 15px/1.6 var(--mono);
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background-image: radial-gradient(#263540 0.85px, transparent 1px);
  background-size: 16px 16px;
}
button,
input,
select,
output,
code,
pre {
  font: inherit;
}
a {
  color: var(--signal);
  text-underline-offset: 0.25em;
}
a:hover {
  color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}
header {
  background: #10191f;
  border-bottom: 1px solid var(--edge);
}
.topbar,
main {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 42px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 26px;
  position: relative;
  background: #7fc6eb;
  border-radius: 5px 5px 2px 2px;
  box-shadow: inset 0 -5px #467898;
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 11px;
  height: 11px;
  border: 2px solid #30556d;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 29%, #bfdbea 0 13%, #122532 19%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 8px;
  width: 6px;
  height: 4px;
  background: #ffce89;
  box-shadow: 0 6px #325871;
}
nav {
  display: flex;
  align-self: stretch;
  gap: 24px;
}
nav a {
  display: flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 2px solid transparent;
}
nav a[aria-current] {
  color: var(--signal);
  border-color: var(--signal);
}
header form {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.identity {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
header button {
  font-size: 12px;
  padding: 6px 12px;
}
.vents {
  margin-left: auto;
  width: 52px;
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    #628193 0 5px,
    transparent 5px 9px
  );
}

main {
  padding-block: clamp(26px, 5vh, 54px) 72px;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.065em;
  font-weight: 600;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.035em;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  line-height: 1.5;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--signal);
  font-weight: 600;
  margin: 0 0 14px;
}
.cursor {
  display: inline-block;
  width: 0.34em;
  height: 0.13em;
  margin-left: 0.13em;
  background: var(--amber);
}
.panel {
  border: 1px solid var(--edge);
  background: var(--panel);
  border-radius: 4px;
  min-width: 0;
}
.access,
.library-hero {
  display: grid;
  position: relative;
  overflow: hidden;
  border-top: 2px solid #7dabc0;
}
.access::before,
.library-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  width: 32px;
  height: 4px;
  background: var(--signal);
}
.access {
  max-width: 930px;
  margin: clamp(20px, 10vh, 100px) auto;
  grid-template-columns: 1.15fr 1fr;
}
.access-controls {
  align-self: center;
  padding: clamp(26px, 5vw, 54px);
}
.access h1 {
  max-width: 11ch;
  margin-bottom: 32px;
}
.access form {
  max-width: 310px;
}
.access .button {
  margin-top: 8px;
}
.scope {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #14232d;
  background-image: linear-gradient(#43677d28 1px, transparent 1px),
    linear-gradient(90deg, #43677d28 1px, transparent 1px),
    radial-gradient(ellipse at center, #1c3445, transparent 74%);
  background-size:
    18px 18px,
    18px 18px,
    100% 100%;
}
.scope img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 68%;
  object-fit: contain;
  image-rendering: pixelated;
}
.access .scope {
  min-height: 350px;
  border-left: 1px solid var(--edge);
}
.reticle {
  position: absolute;
  width: min(68%, 255px);
  aspect-ratio: 1;
  border: 1px dashed #557a8d;
  border-radius: 50%;
}
.reticle::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid #4c6e7e;
  border-radius: 50%;
}
.scope::before,
.scope::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18%;
  height: 1px;
  background: #557a8d;
}
.scope::before {
  left: 6%;
}
.scope::after {
  right: 6%;
}
.ruler {
  position: absolute;
  inset: auto 20px 14px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #6c90a4 0 1px,
    transparent 1px 8px
  );
  opacity: 0.65;
}

.library-hero {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 26%);
  margin-bottom: 20px;
  background: #142129;
}
.library-hero > div:first-child {
  padding: 32px clamp(22px, 4vw, 44px);
  align-self: center;
}
.library-hero .scope {
  min-height: 174px;
  border-left: 1px solid var(--edge);
}
.library-hero .scope img {
  height: 132px;
}
.library-hero .reticle {
  width: 145px;
}
.counts,
.metadata {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}
.counts span {
  padding: 0 0.5em;
  color: #7993a0;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  align-items: start;
  gap: 20px;
}
aside,
.manage-grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.catalog > h2 {
  padding: 19px 24px;
  border-bottom: 1px solid var(--edge);
}
.folder-group {
  padding: 18px 24px;
}
.folder-group + .folder-group {
  border-top: 1px solid var(--edge);
}
.folder-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
}
.folder-icon {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 1px;
}
.folder-icon::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -4px;
  width: 7px;
  height: 3px;
  border: 1px solid currentColor;
  border-bottom: 0;
}
.folder-group p,
.empty {
  color: var(--muted);
  font-size: 14px;
}
.empty {
  padding: 24px;
}
ul {
  padding: 0;
  list-style: none;
}
li {
  overflow-wrap: anywhere;
}
.file-row {
  position: relative;
  margin: 10px 0 0 7px;
  padding: 5px 0 5px 20px;
  border-left: 1px solid var(--edge);
}
.file-row::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--edge);
  position: absolute;
  left: 0;
  top: 17px;
}
.file-row a {
  color: var(--text);
  text-decoration-color: #5b7a8a;
}
.file-row a:hover {
  color: var(--signal);
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.tool {
  padding: 20px 24px 24px;
}
.tool h2 {
  margin-bottom: 16px;
}
main form:not([hidden]),
label {
  display: grid;
  gap: 8px;
}
form:not(header form) {
  justify-items: stretch;
  gap: 15px;
}
label {
  font-size: 13px;
  color: var(--muted);
}
input,
select,
button,
.button {
  border: 1px solid #5a7381;
  border-radius: 3px;
  min-width: 0;
}
input,
select {
  width: 100%;
  padding: 9px 11px;
  color: var(--text);
  background: #0c151b;
}
input[type="file"] {
  padding: 6px;
  font-size: 12px;
  color: var(--muted);
}
input::file-selector-button {
  border: 0;
  border-radius: 1px;
  background: #263944;
  color: var(--text);
  padding: 7px;
  margin-right: 7px;
  font: inherit;
  cursor: pointer;
}
button,
.button {
  color: var(--signal);
  background: #182932;
  width: fit-content;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #263e4c;
  border-color: var(--signal);
}
.primary {
  display: inline-block;
  color: #192025;
  background: var(--amber);
  border-color: var(--amber);
}
.primary:hover {
  background: #ffdaa0;
  color: #192025;
  border-color: #ffe5ba;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.document,
.keys {
  padding: clamp(20px, 4vw, 42px);
}
.document h1,
.keys h1 {
  font-size: clamp(26px, 4.5vw, 42px);
}
.document .eyebrow a {
  text-decoration: none;
}
.metadata,
.keys > p {
  margin: 14px 0 22px;
}
iframe,
pre {
  border: 1px solid var(--edge);
  border-radius: 2px;
  width: 100%;
}
iframe {
  display: block;
  color-scheme: light;
  background: white;
  min-height: 58vh;
}
pre,
output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
pre {
  padding: 18px;
  background: #0c151b;
}
details {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
}
summary {
  color: var(--signal);
  cursor: pointer;
  width: fit-content;
}
details li,
.keys li {
  border-bottom: 1px solid var(--edge);
  padding: 12px 0;
}
.manage-grid {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.tool > p {
  margin-bottom: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
form + form {
  margin-top: 12px;
}
[data-action="delete_item"] button {
  color: #ffaba2;
  border-color: #885e5d;
}
.keys {
  max-width: 780px;
  margin-inline: auto;
}
.keys form {
  max-width: 430px;
}
.keys ul:not(:empty) {
  margin-bottom: 22px;
}
.keys li button {
  margin-top: 8px;
}
code {
  color: var(--signal);
}
output:not(:empty),
#status:not(:empty) {
  display: block;
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--amber);
  background: #202b2f;
}
@media (max-width: 760px) {
  .topbar,
  main {
    width: calc(100% - 32px);
  }
  .topbar {
    gap: 20px;
  }
  .identity {
    display: none;
  }
  .columns {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
    gap: 12px;
  }
  .manage-grid {
    grid-template-columns: 1fr;
  }
  .tool,
  .folder-group {
    padding: 16px;
  }
  .access .scope {
    min-height: 285px;
  }
}
@media (max-width: 580px) {
  .topbar {
    min-height: 58px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 17px;
    gap: 7px;
  }
  .brand-mark {
    transform: scale(0.84);
    transform-origin: left;
    margin-right: -4px;
  }
  nav {
    gap: 10px;
    align-items: center;
  }
  nav a {
    font-size: 12px;
    min-height: 42px;
  }
  header form {
    margin-left: auto;
  }
  header button {
    padding: 5px 6px;
  }
  main {
    padding: 22px 0 40px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .access {
    margin: 0 auto;
    grid-template-columns: 1fr;
  }
  .access .scope {
    grid-row: 1;
    height: 150px;
    min-height: 0;
    border-left: 0;
    border-bottom: 1px solid var(--edge);
  }
  .access .scope img {
    height: 125px;
  }
  .access .reticle {
    width: 132px;
  }
  .access h1 {
    max-width: none;
  }
  .library-hero {
    grid-template-columns: minmax(0, 1fr) 85px;
  }
  .library-hero > div:first-child {
    padding: 21px 12px;
  }
  .library-hero .scope {
    min-height: 110px;
  }
  .library-hero .scope img {
    height: 82px;
  }
  .library-hero .reticle {
    width: 78px;
  }
  .library-hero .ruler {
    inset-inline: 6px;
  }
  .counts {
    font-size: 11px;
  }
}
