:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #27332f;
  background: #f7f8f4;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 86px;
  max-width: 1180px;
  margin: auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce2d9;
}
.brand {
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -1px;
  text-decoration: none;
  color: #203d30;
}
.brand-mark {
  margin-left: 10px;
  color: #74916b;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}
a {
  color: #285c41;
  text-underline-offset: 4px;
}
nav a {
  text-decoration: none;
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 36px;
}
h1 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -1.4px;
  font-weight: 600;
  margin: 0 0 14px;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
}
p {
  line-height: 1.65;
}
button {
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #cbd5c7;
  border-radius: 7px;
  background: white;
  color: #254332;
  padding: 10px 16px;
}
button:hover {
  background: #eef2eb;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #254d38;
  border-color: #254d38;
  color: white;
}
.primary:hover {
  background: #193e2a;
}
.muted,
.meta {
  color: #67736a;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #586e56;
  margin-bottom: 14px;
}
.intro {
  max-width: 640px;
  margin-bottom: 40px;
}
.empty,
.panel {
  background: #fff;
  border: 1px solid #dce2d9;
  border-radius: 12px;
  padding: 32px;
}
.empty {
  padding: 48px;
  max-width: 740px;
}
.empty h2 {
  margin-bottom: 10px;
}
.empty p {
  max-width: 500px;
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #dce2d9;
}
.artifact {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 25px 0;
  border-bottom: 1px solid #dce2d9;
}
.file-type {
  font:
    11px ui-monospace,
    monospace;
  display: grid;
  place-items: center;
  width: 46px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid #cbd6c5;
  border-radius: 5px;
  color: #56714b;
  background: #eff3eb;
}
.artifact a {
  display: block;
  font-size: 19px;
  font-weight: 550;
  text-decoration: none;
  color: #283f30;
}
.meta {
  font-size: 13px;
  margin-top: 7px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  margin: 26px 0;
}
iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 285px);
  min-height: 500px;
  background: white;
  border: 1px solid #dce2d9;
  border-radius: 8px;
}
main.viewer {
  max-width: none;
  padding-top: 32px;
}
main.viewer h1 {
  font-size: 26px;
  letter-spacing: -0.6px;
}
.signin {
  max-width: 610px;
  margin: 70px auto;
}
.signin h1 {
  font-size: 44px;
}
.signin button {
  margin-top: 20px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 9px;
}
textarea {
  width: 100%;
  min-height: 115px;
  padding: 14px;
  border: 1px solid #cbd5c7;
  border-radius: 6px;
  font:
    13px/1.6 ui-monospace,
    monospace;
  resize: vertical;
}
form button {
  margin-top: 14px;
}
.keys {
  margin-top: 40px;
}
.key,
.github-key,
.blocked-key {
  padding: 22px 0;
  border-bottom: 1px solid #dce2d9;
}
.row code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
code {
  font-family: ui-monospace, monospace;
  background: #edf1e9;
  border-radius: 4px;
  padding: 3px 6px;
}
#status:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 14px 22px;
  border: 1px solid #ccbba6;
  background: #fff8ed;
  color: #664421;
  border-radius: 8px;
  box-shadow: 0 3px 20px #26352216;
  z-index: 5;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid #92b98c;
  outline-offset: 4px;
}
@media (max-width: 650px) {
  header {
    padding: 0 20px;
    height: 72px;
  }
  main {
    padding: 36px 20px;
  }
  h1 {
    font-size: 32px;
  }
  nav {
    gap: 14px;
  }
  .empty,
  .panel {
    padding: 24px;
  }
  .signin {
    margin: 30px auto;
  }
  .row {
    align-items: flex-start;
  }
  .row {
    flex-wrap: wrap;
  }
  iframe {
    height: 70vh;
  }
  .artifact {
    gap: 14px;
  }
}

.github {
  margin: 28px 0;
}
input {
  font: inherit;
  padding: 12px;
  border: 1px solid #cbd5c7;
  border-radius: 6px;
  max-width: 100%;
  margin: 0 12px 14px 0;
}
.error {
  color: #8b321e;
}
