:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #edf2f7;
  background: #0c1018;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 78px;
  padding: 0 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #283245;
}
a {
  color: #79dece;
  text-decoration: none;
}
.brand {
  font-size: 24px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #fff;
}
.brand span {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  margin-left: 14px;
  color: #a5b2c7;
}
main {
  max-width: 1420px;
  margin: auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 82vh;
}
aside {
  padding: 35px 28px;
  border-right: 1px solid #283245;
}
h1,
h2 {
  font-size: 20px;
  line-height: 1.4;
}
aside h2 {
  margin-top: 40px;
  font-size: 15px;
}
.muted {
  color: #a5b2c7;
  font-size: 13px;
  line-height: 1.6;
}
#workspace {
  padding: 45px 5vw;
}
.eyebrow {
  color: #79dece;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.intro h2 {
  font-size: clamp(25px, 3vw, 38px);
  margin: 14px 0;
}
.intro p {
  color: #a5b2c7;
  line-height: 1.7;
  max-width: 650px;
}
button,
.button {
  background: #79dece;
  color: #102229;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
button:hover,
.button:hover {
  filter: brightness(1.1);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.secondary {
  background: #202b3c;
  color: #edf2f7;
  border-color: #3c4b61;
}
.agent {
  width: 100%;
  display: block;
  text-align: left;
  margin: 12px 0;
  padding: 16px;
  background: #151d2b;
  color: #edf2f7;
  border: 1px solid #283245;
}
.agent.selected {
  border-color: #79dece;
}
.agent small {
  display: block;
  color: #a5b2c7;
  font-weight: normal;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.history-item {
  display: block;
  width: 100%;
  background: transparent;
  color: #c7d4e5;
  text-align: left;
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid #283245;
  font-weight: 400;
}
label {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
}
textarea {
  width: 100%;
  color: #edf2f7;
  background: #151d2b;
  border: 1px solid #3c4b61;
  border-radius: 8px;
  font: inherit;
  padding: 15px;
  resize: vertical;
}
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #79dece;
  outline-offset: 3px;
}
.actions {
  margin-top: 14px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
form {
  margin-top: 35px;
}
#run {
  margin-top: 30px;
  padding: 22px;
  background: #111927;
  border: 1px solid #283245;
  border-radius: 10px;
}
.run-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#run-status {
  color: #79dece;
}
#request {
  white-space: pre-wrap;
  border-bottom: 1px solid #283245;
  padding-bottom: 18px;
}
#events {
  font-size: 12px;
  color: #a5b2c7;
  max-height: 150px;
  overflow: auto;
}
.event {
  margin: 6px 0;
}
#answer {
  white-space: pre-wrap;
  line-height: 1.7;
  margin: 22px 0;
}
#approval {
  border: 1px solid #bb9a58;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}
#approval p {
  font-size: 13px;
  color: #d0c5ac;
  line-height: 1.6;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #c7d4e5;
  background: #0c1018;
  padding: 14px;
  border-radius: 6px;
  font-size: 12px;
  max-height: 400px;
  overflow: auto;
}
summary {
  cursor: pointer;
  color: #a5b2c7;
  font-size: 13px;
}
#notice {
  color: #f2c782;
  line-height: 1.6;
  margin-top: 20px;
}
footer {
  border-top: 1px solid #283245;
  color: #8092ad;
  font-size: 12px;
  text-align: center;
  padding: 20px;
}
#identity {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  main {
    grid-template-columns: 1fr;
  }
  aside {
    border-right: 0;
    border-bottom: 1px solid #283245;
    padding: 20px;
  }
  #agents {
    display: flex;
    gap: 12px;
  }
  .agent {
    width: 50%;
  }
  aside h2,
  #history {
    display: none;
  }
  #workspace {
    padding: 30px 20px;
  }
  .brand span {
    display: none;
  }
}
