@font-face {
  font-family: Satoshi;
  src: url("/assets/Satoshi-500.woff2");
}
@font-face {
  font-family: Satoshi;
  src: url("/assets/Satoshi-700.woff2");
  font-weight: 700;
}
@font-face {
  font-family: JetBrains;
  src: url("/assets/JetBrainsMono-400.woff2");
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  background: #071015;
  color: #e5efec;
  font:
    15px/1.55 Satoshi,
    system-ui,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
  background: #142328;
  border: 1px solid #31454a;
  border-radius: 7px;
  padding: 8px 12px;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s;
}
button:hover {
  background: #233c41;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a7e0d2;
  outline-offset: 3px;
}
input,
textarea,
select {
  background: #0b191e;
  color: #e5efec;
  border: 1px solid #3f5358;
  border-radius: 6px;
  padding: 11px;
  width: 100%;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
a {
  color: #a7e0d2;
  text-underline-offset: 4px;
}
p {
  margin: 0 0 15px;
}
h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
}
h1 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1.8px;
  margin: 12px 0;
}
h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 12px 0 20px;
}
h3 {
  font-size: 18px;
  margin: 22px 0 10px;
}
.eyebrow,
.fine,
.test-label,
.graph-caption,
.reader-top {
  font:
    11px/1.5 JetBrains,
    monospace;
  letter-spacing: 0.03em;
  color: #9caeaf;
}
.eyebrow {
  text-transform: uppercase;
}
.primary {
  background: #b3e6d7;
  color: #08221f;
  border-color: #b3e6d7;
  font-weight: 700;
}
.primary:hover {
  background: #d3f5e9;
}
header {
  height: 70px;
  border-bottom: 1px solid #263a3e;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  position: relative;
  z-index: 3;
  background: #071015;
}
header nav {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
header nav button,
.brand {
  background: none;
  border-color: transparent;
}
.brand {
  font-size: 23px;
  letter-spacing: -1px;
  padding-left: 0;
}
.brand > span:last-child {
  font-size: 16px;
  color: #b0c2c3;
  letter-spacing: -0.3px;
  margin-left: 5px;
}
.mark {
  color: #b3e6d7;
  font-size: 29px;
  margin-right: 8px;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  height: calc(100dvh - 221px);
  min-height: 440px;
}
#space {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 42% 54%,
    #122f35 0,
    #0a181e 45%,
    #071015 78%
  );
}
.intro {
  position: absolute;
  left: 32px;
  top: 24px;
  z-index: 1;
  pointer-events: none;
  max-width: 85%;
}
.intro p {
  color: #a3b9b8;
  font-size: 14px;
}
.intro h1 {
  font-size: clamp(25px, 2.8vw, 42px);
}
#canvas {
  height: 100%;
  width: 100%;
  display: block;
}
#labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.node {
  position: absolute;
  width: 174px;
  padding: 10px 13px;
  text-align: left;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  background: #0b1a20eb;
  border: 1px solid #4766669c;
  box-shadow: 0 8px 24px #020b1266;
  will-change: transform;
}
.node:hover,
.node.selected {
  background: #1f3a3e;
  border-color: #b3e6d7;
}
.node strong {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.node small {
  font:
    9px/1.4 JetBrains,
    monospace;
  color: #98bcba;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
.node[data-type="issue"] {
  border-left: 2px solid #d7ab73;
}
.graph-controls {
  position: absolute;
  bottom: 40px;
  left: 24px;
  right: 20px;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.graph-controls button {
  font-size: 11px;
  padding: 6px 8px;
  background: #09171de8;
}
.graph-controls label {
  font-size: 11px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.graph-controls input {
  width: 70px;
  padding: 0;
  accent-color: #a7e0d2;
}
.graph-caption {
  position: absolute;
  bottom: 13px;
  left: 26px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
}
#reader {
  border-left: 1px solid #2b4145;
  overflow: auto;
  background: #0b171c;
  scrollbar-color: #40595b #0b171c;
}
.reader-top {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b171cf5;
  border-bottom: 1px solid #273b40;
  padding: 12px 25px;
  z-index: 2;
}
.reader-top button {
  padding: 0 9px;
  font-size: 18px;
  border: 0;
  background: transparent;
}
#reader-content {
  padding: 22px 26px 40px;
}
#reader-content p {
  color: #c0cfcd;
}
.meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  font: 10px/1.5 JetBrains;
  color: #a6beb8;
  margin: 12px 0 20px;
}
.meta span {
  padding: 3px 6px;
  background: #172b30;
}
.markdown {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 14px/1.65 Satoshi;
  color: #c6d4d0;
}
.evidence-list,
.library-list,
.project-list {
  display: grid;
  gap: 0;
}
.row {
  border: 0;
  border-bottom: 1px solid #263c40;
  border-radius: 0;
  padding: 14px 0;
  background: none;
  text-align: left;
  width: 100%;
  display: block;
}
.row:hover {
  background: #15282d;
}
.row strong {
  font-weight: 500;
  display: block;
}
.row small {
  font: 10px/1.5 JetBrains;
  color: #9bb3af;
  display: block;
  margin-top: 5px;
}
.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.reader-actions button {
  font-size: 12px;
}
.hint {
  border-left: 2px solid #608b83;
  padding-left: 13px;
  color: #a4bab4;
  font-size: 13px;
  margin: 18px 0;
}
.warning {
  border-color: #d1ad78;
  color: #e4c9a6;
}
.inline-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.inline-form label {
  font-size: 12px;
  color: #acc1b9;
}
.inline-form button {
  justify-self: start;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font: 12px/1.65 JetBrains;
  color: #c6d8d1;
}
details {
  border-top: 1px solid #2b4145;
  padding: 12px 0;
}
summary {
  cursor: pointer;
  color: #a7e0d2;
}
select {
  font-size: 12px;
}
.conversation {
  height: 151px;
  border-top: 1px solid #2e4548;
  padding: 12px 26px;
  position: relative;
  z-index: 4;
  background: #0b191e;
}
.conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.voice-entry {
  display: flex;
  align-items: center;
  gap: 14px;
}
.voice-entry .primary {
  font-size: 13px;
}
.voice-controls {
  display: flex;
  gap: 6px;
}
.voice-controls button {
  font-size: 11px;
  background: none;
  border-color: transparent;
  padding: 5px 9px;
}
#mic-state {
  font: 11px/1.5 JetBrains;
  color: #b1c5c0;
}
#command {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #3c5356;
  margin-top: 6px;
}
#command input {
  border: 0;
  background: transparent;
  padding-left: 0;
  outline-offset: 0;
}
#command button {
  border: 0;
  background: transparent;
  color: #b3e6d7;
  white-space: nowrap;
}
#notice {
  font: 10px/1.5 JetBrains;
  color: #9eb7b0;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#transcript {
  position: absolute;
  bottom: 150px;
  left: 26px;
  right: 26px;
  max-height: 250px;
  overflow: auto;
  background: #0c1b22fa;
  border: 1px solid #395350;
  border-radius: 8px;
  padding: 17px 22px;
  box-shadow: 0 -15px 60px #0005;
}
#transcript p {
  font-size: 13px;
  line-height: 1.5;
}
.transcript-role {
  font: 10px JetBrains;
  color: #91b9ad;
  text-transform: uppercase;
  margin-right: 9px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 10;
}
.skip:focus {
  top: 15px;
}
.login main {
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 110px;
  background: radial-gradient(ellipse at 25% 50%, #17373d, #071015 65%);
}
.login-orbit {
  width: 330px;
  height: 330px;
  border: 1px solid #457472;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #b3e6d7;
  font-size: 130px;
  box-shadow:
    0 0 0 55px #42646219,
    0 0 0 110px #4264620c;
}
.login-content {
  max-width: 390px;
}
.login h1 {
  font-size: 58px;
  letter-spacing: -2.4px;
}
.login-content > p {
  color: #a9bfb8;
}
.login form {
  display: grid;
  gap: 13px;
  margin-top: 38px;
}
.login label {
  font-size: 12px;
}
.login .fine {
  margin-top: 28px;
  font-size: 10px;
}
#login-error {
  color: #e8b486;
}
.closed-reader main {
  grid-template-columns: 1fr;
}
.closed-reader #reader {
  display: none;
}
@media (min-width: 1500px) {
  main {
    grid-template-columns: minmax(0, 1fr) 470px;
  }
  #reader-content {
    padding: 28px 34px;
  }
}
@media (max-width: 850px) {
  header {
    padding: 0 14px;
    height: 60px;
    gap: 8px;
  }
  header .test-label {
    display: none;
  }
  header nav button {
    font-size: 12px;
    padding: 6px 7px;
  }
  .brand {
    font-size: 21px;
  }
  .brand > span:last-child {
    display: none;
  }
  main {
    grid-template-columns: minmax(0, 1fr) 340px;
    height: calc(100dvh - 219px);
  }
  .intro {
    left: 20px;
  }
  #reader-content {
    padding: 18px;
  }
  .reader-top {
    padding: 10px 18px;
  }
  .node {
    width: 140px;
  }
  .node strong {
    font-size: 12px;
  }
  .graph-controls {
    left: 13px;
  }
  .graph-controls label {
    display: none;
  }
  .conversation {
    height: 159px;
    padding: 12px 16px;
  }
  .voice-controls {
    gap: 0;
  }
  .voice-controls button {
    padding: 5px;
  }
  #mic-state {
    max-width: 200px;
    font-size: 10px;
  }
  .login main {
    gap: 0;
  }
  .login-orbit {
    display: none;
  }
}
@media (max-width: 620px) {
  body {
    padding-bottom: 175px;
  }
  main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
  }
  #space {
    height: 510px;
    min-height: 510px;
  }
  .intro h1 {
    font-size: 29px;
  }
  .intro {
    top: 18px;
  }
  .intro p {
    max-width: 300px;
    font-size: 12px;
  }
  .node {
    width: 134px;
    padding: 8px 10px;
  }
  .node strong {
    font-size: 12px;
  }
  .node small {
    font-size: 8px;
  }
  #reader {
    border-left: 0;
    border-top: 1px solid #2b4145;
    max-height: none;
    min-height: 300px;
  }
  .reader-top {
    position: static;
  }
  .conversation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 175px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .conversation-head {
    flex-wrap: wrap;
    gap: 5px;
  }
  .voice-entry {
    width: 100%;
    justify-content: space-between;
  }
  .voice-controls {
    justify-content: space-between;
    width: 100%;
  }
  #command input {
    font-size: 13px;
    padding: 8px 0;
  }
  #notice {
    font-size: 8px;
  }
  .graph-controls {
    bottom: 36px;
  }
  .graph-controls button {
    font-size: 10px;
  }
  #snapshot {
    max-width: 160px;
    text-align: right;
  }
  .graph-caption {
    left: 14px;
    right: 14px;
  }
  #transcript {
    left: 10px;
    right: 10px;
    bottom: 174px;
  }
  .login {
    padding: 0;
  }
  .login main {
    padding: 32px;
    min-height: 100dvh;
  }
  .login h1 {
    font-size: 49px;
  }
  .login-content {
    max-width: 360px;
  }
  .closed-reader #space {
    height: calc(100dvh - 235px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
