:root {
  color-scheme:dark;
  --ink:#dce3ec;
  --muted:#a1aebf;
  --blue:#8bbcff;
  --blue-soft:#22334b;
  --line:#34404f;
  --canvas:#191f27;
  --surface:#202832;
  --editor:#151b22;
  --green:#8dd4ae;
  --green-soft:#213b31;
  --amber:#e8be79;
  --amber-soft:#3a3022;
  --red:#f1a1a4;
  --red-soft:#422a31;
  --on-accent:#142031;
  font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif;
  font-size:14px;
  color:var(--ink);
  background:var(--canvas);
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,textarea {
  font:inherit;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:default;
  opacity:.5;
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid #6eaae9;
  outline-offset:3px;
}
input::placeholder {
  color:var(--muted);
  opacity:1;
}
input:focus,textarea:focus {
  outline:2px solid #87b3e0;
  outline-offset:-2px;
}
button {
  transition:background .12s,color .12s;
}
[hidden] {
  display:none!important;
}
h1,h2,h3,p {
  margin:0;
}
code,pre,textarea.json-editor {
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}
pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin:0;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}
.topbar {
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 32px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
  gap:20px;
}
.brand {
  border:0;
  padding:0;
  background:transparent;
  display:flex;
  align-items:center;
  gap:20px;
  text-decoration:none;
  color:var(--ink);
  font-size:19px;
}
.goals-logo {
  display:block;
  height:auto;
  flex-shrink:0;
  filter:invert(1);
  opacity:.88;
}
.brand span {
  border-left:1px solid var(--line);
  padding-left:20px;
  font-weight:500;
}
.connection {
  display:flex;
  align-items:center;
  gap:18px;
  font-size:12px;
  color:var(--muted);
}
.connection-state {
  display:flex;
  align-items:center;
  gap:7px;
}
.connection-state:before {
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--muted);
}
.connection-state.connected:before {
  background:var(--green);
}
.button {
  border:1px solid transparent;
  border-radius:6px;
  padding:10px 16px;
  font-weight:600;
  white-space:nowrap;
  line-height:1.2;
}
.primary {
  background:var(--blue);
  color:var(--on-accent);
}
.primary:hover:not(:disabled) {
  background:#aacdff;
}
.secondary {
  border-color:var(--line);
  background:var(--surface);
  color:var(--ink);
}
.secondary:hover:not(:disabled) {
  background:var(--canvas);
}
.danger {
  background:var(--red);
  color:var(--on-accent);
}
.text-button {
  padding:5px 8px;
  border:0;
  background:none;
  color:var(--blue);
  font-size:12px;
  border-radius:4px;
}
.text-button:hover:not(:disabled) {
  background:var(--blue-soft);
}
.notice {
  padding:13px 32px;
  background:var(--amber-soft);
  color:var(--amber);
  border-bottom:1px solid #6a5333;
  line-height:1.5;
}
.workspace {
  display:grid;
  grid-template-columns:245px minmax(0,1fr);
  min-height:calc(100vh - 78px);
}
.sidebar {
  background:var(--surface);
  border-right:1px solid var(--line);
  padding:26px 16px 18px;
  display:flex;
  flex-direction:column;
  gap:20px;
}
.sidebar-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 8px;
}
.sidebar-heading h2 {
  font-size:14px;
  font-weight:650;
}
.count {
  color:var(--muted);
  background:var(--canvas);
  padding:3px 7px;
  border-radius:4px;
  font-size:11px;
}
.search input {
  width:100%;
  background:var(--canvas);
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:5px;
  font-size:12px;
  color:var(--ink);
}
.connector-group {
  margin-bottom:24px;
}
.connector-group > summary {
  font-size:12px;
  font-weight:650;
  color:var(--muted);
  margin:0 10px 9px;
  padding:4px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
  cursor:pointer;
  list-style:none;
  border-radius:6px;
}
.connector-group > summary::-webkit-details-marker {
  display:none;
}
.connector-group > summary:hover,
.connector-group > summary:focus-visible {
  color:var(--text);
}
/* The disclosure arrow, before the name and rotating when the group opens. */
.connector-group > summary::before {
  content:"";
  flex:none;
  width:0;
  height:0;
  margin-right:2px;
  border-left:4px solid currentColor;
  border-top:3.5px solid transparent;
  border-bottom:3.5px solid transparent;
  transition:transform 120ms ease;
}
.connector-group[open] > summary::before {
  transform:rotate(90deg);
}
/* The name takes the room, so the count stays at the right edge. */
.connector-group > summary > span {
  margin-left:auto;
}
.operation-link {
  width:100%;
  text-align:left;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 11px;
  margin:2px 0;
  border:0;
  border-radius:5px;
  background:transparent;
  color:var(--ink);
  font-size:12px;
  line-height:1.3;
}
.operation-link:hover {
  background:var(--canvas);
}
.operation-link[aria-current=true] {
  background:var(--blue-soft);
  color:var(--blue);
  font-weight:650;
  box-shadow:inset 3px 0 var(--blue);
}
.operation-marker {
  width:6px;
  height:6px;
  border:1px solid var(--blue);
  border-radius:50%;
  flex-shrink:0;
}
.operation-marker.write {
  border-color:var(--amber);
  background:var(--amber-soft);
  border-radius:1px;
}
.sidebar-footer {
  margin-top:auto;
  border-top:1px solid var(--line);
  padding:18px 8px 0;
  display:flex;
  gap:8px;
  align-items:center;
  font-size:11px;
  color:var(--muted);
}
.status-dot {
  width:6px;
  height:6px;
  background:var(--blue);
  border-radius:50%;
}
.sidebar-empty {
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
  padding:10px;
}
main {
  min-width:0;
}
.sign-in {
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:40px 24px;
}
.sign-in-content {
  width:min(100%,320px);
}
.sign-in-brand {
  width:168px;
  margin-bottom:44px;
}
.sign-in h1 {
  font-size:32px;
  font-weight:600;
  letter-spacing:-1px;
  margin-bottom:12px;
}
.sign-in .helper {
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  margin-bottom:28px;
}
.sign-in .button {
  width:100%;
  padding:13px 20px;
}
.signed-out .notice {
  position:fixed;
  top:0;
  left:0;
  right:0;
}

.operation-heading {
  padding:30px 34px 27px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
}
.breadcrumbs {
  display:flex;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  margin-bottom:15px;
}
.title-row {
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:13px;
}
.title-row h1 {
  font-size:30px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:-.9px;
}
.badge {
  display:inline-flex;
  align-items:center;
  font-size:11px;
  border-radius:4px;
  padding:4px 7px;
  font-weight:600;
  white-space:nowrap;
  background:var(--green-soft);
  color:var(--green);
}
.badge.mutation {
  background:var(--amber-soft);
  color:var(--amber);
}
.badge.error {
  background:var(--red-soft);
  color:var(--red);
}
.description {
  font-size:13px;
  line-height:1.7;
  max-width:850px;
  color:var(--muted);
}
.operation-meta {
  display:flex;
  gap:20px;
  align-items:center;
  margin-top:18px;
  font-size:11px;
  color:var(--muted);
}
.operation-meta code {
  font-size:11px;
  color:var(--blue);
}
.panes {
  display:grid;
  grid-template-columns:minmax(310px,1fr) minmax(310px,1.08fr);
  min-height:calc(100vh - 293px);
}
.request-pane {
  padding:25px 28px;
  border-right:1px solid var(--line);
  min-width:0;
}
.response-pane {
  padding:25px 28px;
  background:var(--editor);
  min-width:0;
}
.pane-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px;
  gap:10px;
  min-height:27px;
}
.pane-heading h2 {
  font-size:14px;
  font-weight:650;
}
.language {
  font-size:10px;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:3px;
  padding:3px 6px;
}
.editor-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  color:var(--muted);
  padding:9px 10px 9px 16px;
  background:var(--surface);
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:6px 6px 0 0;
}
.json-editor {
  display:block;
  width:100%;
  min-height:220px;
  resize:vertical;
  border:1px solid var(--line);
  border-radius:0 0 6px 6px;
  background:var(--editor);
  color:#b9cfea;
  padding:17px;
  font-size:12px;
  line-height:1.75;
  tab-size:2;
}
.input-error {
  font-size:12px;
  line-height:1.5;
  color:var(--red);
  margin-top:9px;
}
.run-bar {
  display:flex;
  align-items:center;
  gap:8px;
  margin:15px 0 28px;
}
.run-bar>span {
  font-size:11px;
  color:var(--muted);
  margin-right:auto;
}
.reference {
  border-top:1px solid var(--line);
  padding:17px 0;
}
.reference summary {
  cursor:pointer;
  font-size:12px;
  font-weight:600;
  line-height:1.5;
}
.reference summary span {
  font-weight:400;
  color:var(--muted);
  margin-left:6px;
}
.field {
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.field:last-child {
  border-bottom:0;
}
.field-header {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  margin-bottom:6px;
}
.field-header code {
  font-size:11px;
  font-weight:600;
}
.field-type {
  color:var(--muted);
}
.required {
  color:var(--amber);
  font-size:10px;
  margin-left:auto;
}
.field p {
  font-size:11px;
  line-height:1.65;
  color:var(--muted);
}
.field-default {
  display:block;
  margin-top:4px;
  font-size:10px;
  color:var(--muted);
}
.schema {
  font-size:11px;
  color:var(--muted);
  line-height:1.6;
  margin-top:15px;
  max-height:350px;
  overflow:auto;
}
.response-meta {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--muted);
}
.response-empty {
  text-align:center;
  padding:75px 10px;
}
.response-symbol {
  font-size:36px;
  color:var(--blue);
  display:block;
  margin-bottom:18px;
}
.response-empty h3 {
  font-size:15px;
  font-weight:500;
  margin-bottom:8px;
}
.response-empty p {
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
}
.response-body {
  font-size:12px;
  line-height:1.75;
  color:#b9cfea;
  max-height:70vh;
  overflow:auto;
  padding:4px 0 20px;
}
.response-note {
  background:var(--blue-soft);
  padding:12px;
  border-radius:5px;
  font-size:12px;
  line-height:1.6;
  margin-bottom:18px;
}
.response-note.error {
  background:var(--red-soft);
  color:var(--red);
}
dialog {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:10px;
  width:min(560px,calc(100vw - 32px));
  padding:0;
  box-shadow:0 18px 80px #00000066;
  color:var(--ink);
}
dialog::backdrop {
  background:#080c12b3;
}
.dialog-content {
  padding:28px;
}
.dialog-content h2 {
  font-size:24px;
  letter-spacing:-.5px;
  margin:15px 0;
}
.dialog-content p {
  font-size:13px;
  line-height:1.7;
  color:var(--muted);
  margin:14px 0;
}
.dialog-content .schema {
  background:var(--canvas);
  padding:14px;
}
.dialog-actions {
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:25px;
}
@media(min-width:1500px) {
  .operation-heading {
    padding-left:45px;
  }
  .request-pane,.response-pane {
    padding:30px 40px;
  }
  .json-editor {
    min-height:260px;
  }
}
@media(max-width:1050px) {
  .workspace {
    grid-template-columns:210px minmax(0,1fr);
  }
  .panes {
    grid-template-columns:1fr;
  }
  .request-pane {
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .response-pane {
    min-height:330px;
  }
  .connection #host {
    display:none;
  }
  .operation-heading {
    padding:25px;
  }
  .response-empty {
    padding:40px 10px;
  }
}
@media(max-width:620px) {
  .topbar {
    height:auto;
    min-height:72px;
    padding:16px;
    gap:12px;
    flex-wrap:wrap;
  }
  .brand {
    font-size:17px;
    gap:12px;
  }
  .brand span {
    padding-left:12px;
  }
  .connection {
    gap:10px;
  }
  .connection-state {
    display:none;
  }
  .connection .button {
    font-size:12px;
    padding:9px 11px;
  }
  .workspace {
    display:block;
  }
  .sidebar {
    padding:16px;
    border-right:0;
    border-bottom:1px solid var(--line);
    gap:12px;
  }
  .sidebar-heading {
    padding:0;
  }
  .sidebar nav {
    max-height:180px;
    overflow:auto;
  }
  .sidebar-footer {
    display:none;
  }
  .sidebar-empty {
    padding:0;
  }
  .connector-group {
    margin-bottom:12px;
  }
  .operation-link {
    padding:8px 10px;
  }
  .operation-heading {
    padding:23px 20px;
  }
  .title-row {
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .title-row h1 {
    font-size:27px;
  }
  .request-pane,.response-pane {
    padding:22px 20px;
  }
  .run-bar>span {
    max-width:125px;
  }
  .notice {
    padding:12px 20px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
  }
}

.overview {
  max-width:980px;
  padding:48px 44px;
}
.overview h1 {
  font-size:36px;
  font-weight:600;
  letter-spacing:-1px;
  line-height:1.2;
  margin-bottom:16px;
}
.overview p {
  max-width:68ch;
  color:var(--muted);
  line-height:1.75;
  margin-top:12px;
}
.overview .overview-intro {
  font-size:18px;
  margin-bottom:36px;
}
.overview-section {
  border-top:1px solid var(--line);
  padding:26px 0;
}
.overview h2 {
  font-size:17px;
  font-weight:600;
}
.connection-details {
  margin:24px 0;
}
.connection-details>div {
  display:grid;
  grid-template-columns:90px minmax(0,1fr);
  gap:16px;
  margin:20px 0;
}
.connection-details dt {
  font-weight:600;
}
.connection-details dd {
  margin:0;
  min-width:0;
}
.connection-details code {
  color:var(--blue);
  font-size:12px;
  overflow-wrap:anywhere;
}
.connection-details span {
  display:block;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
  margin-top:7px;
}
.overview-links {
  display:flex;
  flex-wrap:wrap;
  gap:16px 24px;
  margin-top:22px;
}
.overview a {
  color:var(--blue);
  text-underline-offset:4px;
}
@media(max-width:620px) {
  .overview { padding:28px 20px; }
  .overview h1 { font-size:29px; }
  .connection-details>div { grid-template-columns:1fr; gap:8px; }
}

.missing-id {
  color:var(--blue);
  font-size:13px;
  overflow-wrap:anywhere;
}
.link-error {
  border:1px solid #6b3a42;
  background:var(--red-soft);
  color:var(--red);
  border-radius:6px;
  padding:12px 16px;
  margin-bottom:14px;
  font-size:12px;
  line-height:1.6;
}
.link-error-title {
  font-weight:650;
}
.link-error ul {
  margin:6px 0;
  padding-left:18px;
  overflow-wrap:anywhere;
}
.link-error-help {
  color:var(--ink);
}
.link-status {
  font-size:12px;
  line-height:1.5;
  color:var(--muted);
  margin-top:9px;
  overflow-wrap:anywhere;
}
.dialog-content .mutation-link-note {
  color:var(--amber);
}
