:root {
  --ink: #19312e;
  --muted: #71817b;
  --green: #245a48;
  --accent: #d8e8b7;
  --bg: #f6f7f3;
  --line: #e2e7df;
  --white: #fff;
  --red: #a34037;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.6px;
}
h2 {
  font-weight: 550;
  font-size: 18px;
  letter-spacing: -0.35px;
}
[hidden] {
  display: none !important;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  color: var(--muted);
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  font-size: 42px;
  line-height: 1;
  position: relative;
  padding-bottom: 5px;
}
.brand-mark span {
  position: absolute;
  color: var(--accent);
  right: 11px;
  bottom: 6px;
  font-size: 29px;
}
.brand-mark.small {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  font-size: 28px;
}
.brand-mark.small span {
  right: 5px;
  bottom: 4px;
  font-size: 20px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-card {
  max-width: 450px;
  margin: auto;
  padding: 50px 25px;
  width: 100%;
}
.login-card .eyebrow {
  margin: 30px 0 20px;
}
.login-card h1 {
  font-size: 46px;
  max-width: 370px;
}
.login-card p {
  color: var(--muted);
  font-size: 16px;
}
.login-card label {
  display: block;
  margin: 35px 0 10px;
}
.login-card input {
  width: 100%;
  margin-bottom: 15px;
}
.login-card button {
  width: 100%;
  justify-content: space-between;
}
.login-card small {
  color: var(--muted);
}
.login-art {
  background: #173f35;
  position: relative;
  overflow: hidden;
  display: grid;
  place-content: center;
  color: #e5eadc;
}
.art-center {
  font-size: 72px;
  letter-spacing: -4px;
  line-height: 1.1;
  z-index: 1;
}
.art-center span {
  color: #b9d098;
}
.login-art p {
  position: absolute;
  bottom: 45px;
  text-align: center;
  width: 100%;
  font-size: 10px;
  letter-spacing: 2px;
  color: #a7b9a9;
}
.orbit {
  position: absolute;
  width: 620px;
  height: 620px;
  border: 1px solid #ffffff15;
  border-radius: 50%;
  top: 5%;
  left: 20%;
}
.orbit-b {
  top: 28%;
  left: -40%;
  width: 720px;
  height: 720px;
}
.workspace {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 33px 23px 20px;
  display: flex;
  flex-direction: column;
  background: #f9faf6;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 23px;
  letter-spacing: -0.8px;
  font-weight: 600;
}
.space-label {
  margin: 58px 10px 16px;
  font-size: 9px;
}
nav {
  display: grid;
  gap: 7px;
}
.nav {
  border: 0;
  background: none;
  text-align: left;
  padding: 12px 13px;
  border-radius: 8px;
  color: #7e8a80;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 20px;
}
.nav span {
  font-size: 13px;
}
.nav.active {
  background: #e7eedf;
  color: #254638;
  font-weight: 600;
}
.nav:hover {
  background: #eef1e9;
}
.aside-bottom {
  margin-top: auto;
  padding: 10px;
  font-size: 12px;
  color: var(--muted);
}
.connection {
  margin-bottom: 20px;
  font-size: 10px;
}
.connection i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #608465;
  margin-right: 7px;
}
.text-button {
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 11px;
  color: var(--muted);
}
main {
  padding: 0 48px;
  min-width: 0;
}
header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.breadcrumb {
  display: flex;
  gap: 13px;
  color: var(--muted);
}
.breadcrumb span:last-child {
  color: var(--ink);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.avatar {
  border-radius: 50%;
  background: #e3e8da;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.badge {
  font-size: 9px;
  border-radius: 5px;
  padding: 4px 7px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  background: #e5eddd;
  color: #526447;
}
.badge.neutral {
  background: #eaece5;
  color: #737e6c;
}
.badge.warn {
  background: #f5ebd6;
  color: #916e32;
}
.badge.error {
  background: #f6e2dc;
  color: #a04e3f;
}
.intro {
  padding: 43px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.intro h1 {
  margin: 12px 0;
}
.intro p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 7px;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 550;
}
.primary {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #183f33;
}
.secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.secondary:hover {
  background: #eef2e9;
}
.compact {
  padding: 10px 19px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 32px;
}
.metrics > div {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 20px 23px;
  display: flex;
  flex-direction: column;
}
.metrics span {
  font-size: 12px;
  color: #748071;
}
.metrics strong {
  font-size: 31px;
  font-weight: 500;
  margin: 6px 0;
  letter-spacing: -1px;
}
.metrics small {
  font-size: 10px;
  color: #97a08f;
}
.searchbar {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 8px 7px 17px;
  align-items: center;
  gap: 12px;
}
.searchbar > span {
  font-size: 25px;
  color: #80917c;
}
.searchbar input {
  border: 0;
  flex: 1;
  min-width: 50px;
  padding: 8px;
  background: none;
}
.searchbar input:focus {
  outline: none;
}
input,
textarea,
select {
  border: 1px solid #dce2d7;
  border-radius: 7px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #98a190;
}
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 19px 0 30px;
  gap: 15px;
}
.filter-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 11px;
  color: #7a8577;
}
.chip.selected {
  background: #e5ebde;
  border-color: #dce5d4;
  color: #355039;
}
.filters select {
  font-size: 11px;
  background: transparent;
  padding: 7px 10px;
  max-width: 220px;
}
.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-row h2 {
  font-size: 14px;
}
.section-row > span {
  color: #88917f;
  font-size: 10px;
}
.results {
  display: grid;
  gap: 11px;
}
.result-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 21px 23px;
  background: #fff;
  color: inherit;
}
.result-card:hover {
  border-color: #a7bba0;
  background: #fcfdf9;
  transform: translateY(-1px);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.tool-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #607651;
}
.card-project {
  font-size: 10px;
  color: #88927f;
}
.result-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  font-weight: 550;
  line-height: 1.4;
}
.excerpt {
  font-size: 12px;
  color: #85907d;
  line-height: 1.7;
  margin: 0 0 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #929b87;
  flex-wrap: wrap;
}
.card-bottom .badge {
  margin-left: auto;
}
.more {
  margin: 22px auto;
  display: flex;
}
.empty {
  padding: 50px;
  text-align: center;
  border: 1px dashed #cad4c1;
  border-radius: 9px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 23px 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #929b89;
}
.notice {
  padding: 12px 16px;
  background: #f5ecd8;
  border: 1px solid #e9dcb9;
  border-radius: 7px;
  margin-bottom: 20px;
  color: #785e36;
  font-size: 12px;
}
.error {
  color: var(--red) !important;
  font-size: 12px !important;
}
.editor-form {
  max-width: 800px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 25px;
}
.editor-form p {
  color: var(--muted);
  font-size: 12px;
}
.editor-form label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-size: 12px;
}
.editor-form textarea {
  width: 100%;
  resize: vertical;
  line-height: 1.6;
}
.editor-form > .primary {
  margin-top: 15px;
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.devices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.device-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 23px;
}
.device-card h3 {
  margin: 0;
  font-size: 15px;
}
.device-card .card-top {
  margin-bottom: 15px;
}
.device-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}
.device-card ul {
  font-size: 11px;
  color: #997144;
  padding-left: 18px;
}
.footnote {
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0;
}
.history-item {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  font-size: 12px;
}
.history-item pre {
  white-space: pre-wrap;
  font: inherit;
}
dialog {
  width: min(930px, 94vw);
  max-height: 91vh;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 30px 35px;
  box-shadow: 0 30px 90px #183e3233;
  color: var(--ink);
}
dialog::backdrop {
  background: #142d265d;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
dialog h2 {
  font-size: 25px;
}
.source-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
}
.gaps {
  font-size: 12px;
  color: #86622d;
}
.gaps p {
  background: #fbf3e2;
  border-radius: 5px;
  padding: 10px 13px;
  margin: 7px 0;
}
.version-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
  font-size: 12px;
}
.version-row select {
  max-width: 50%;
  font-size: 11px;
}
.version-row button {
  margin-left: auto;
}
.source-reference {
  font-size: 10px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
#source-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f8f2;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 8px;
  font:
    12px/1.8 ui-monospace,
    Consolas,
    monospace;
}
.source-meta .badge {
  margin-left: 10px;
}
@media (min-width: 1600px) {
  main {
    padding: 0 80px;
  }
  .intro {
    padding-top: 55px;
  }
  .results {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1050px) {
  main {
    padding: 0 25px;
  }
  .workspace {
    grid-template-columns: 195px 1fr;
  }
  aside {
    padding: 28px 14px;
  }
  .metrics > div {
    padding: 16px;
  }
  .metrics small {
    font-size: 9px;
  }
  h1 {
    font-size: 31px;
  }
}
@media (max-width: 750px) {
  .workspace {
    display: block;
  }
  aside {
    height: auto;
    position: relative;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--line);
    gap: 15px;
  }
  .space-label,
  .aside-bottom {
    display: none;
  }
  .brand {
    font-size: 0;
    gap: 0;
  }
  nav {
    display: flex;
    flex: 1;
    justify-content: space-around;
    gap: 0;
  }
  .nav {
    padding: 8px;
    font-size: 16px;
  }
  .nav span {
    font-size: 10px;
  }
  .nav {
    gap: 4px;
  }
  main {
    padding: 0 18px;
  }
  header {
    height: 65px;
  }
  .intro {
    padding: 28px 0 22px;
  }
  .intro h1 {
    font-size: 29px;
  }
  .intro .eyebrow {
    font-size: 8px;
  }
  .intro > .secondary {
    display: none;
  }
  .metrics {
    gap: 8px;
  }
  .metrics > div {
    padding: 12px;
  }
  .metrics span {
    font-size: 10px;
  }
  .metrics small {
    display: none;
  }
  .metrics strong {
    font-size: 25px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .devices {
    grid-template-columns: 1fr;
  }
  .login-wrap {
    display: block;
  }
  .login-art {
    display: none;
  }
  .login-card {
    padding: 65px 30px;
  }
  .result-card {
    padding: 17px;
  }
  .version-row {
    flex-wrap: wrap;
  }
  .version-row select {
    max-width: 100%;
  }
  dialog {
    padding: 22px;
  }
  .header-right .badge {
    display: none;
  }
  footer {
    font-size: 9px;
  }
}
.retrieval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 10px;
  color: #728065;
}
.retrieval-row select {
  font-size: 10px;
  padding: 6px 9px;
  background: transparent;
}
@media (max-width: 750px) {
  .retrieval-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 750px) {
  aside {
    gap: 12px;
  }
  nav {
    min-width: 0;
    gap: 2px;
  }
  .nav {
    flex-direction: column;
    gap: 0;
    padding: 4px 2px;
    min-width: 0;
  }
  .nav span {
    font-size: 9px;
    white-space: nowrap;
  }
}
