/* Graph retrieval and interface composition share the lab's dark surface. */
.gx-lab,
.ix-lab {
  --interface-line: #3a374a;
  --interface-dim: #bcb5ce;
  --ink: #f6f3ff;
  --mint: #a1eed9;
  color: var(--ink);
  min-width: 0;
  font-family: Geist, system-ui, sans-serif;
  container-type: inline-size;
}
.gx-queries,
.ix-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.gx-queries button,
.ix-presets button,
.gx-retrace,
.ix-compose {
  font-family: inherit;
  font-size: 0.83rem;
  line-height: 1.3;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  border: 1px solid #514b65;
  background: #1c1925;
  color: var(--ink);
  cursor: pointer;
}
.gx-queries [aria-pressed="true"],
.ix-presets [aria-pressed="true"] {
  border-color: #ad9ae1;
  color: #f4edff;
  background: #392c50;
}
.gx-lab button:hover,
.ix-lab button:hover {
  border-color: #c8bcdf;
}
.gx-lab :focus-visible,
.ix-lab :focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
.gx-card,
.ix-view {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--interface-line);
  background: #12141f;
}
.ix-eyebrow,
.gx-hops,
.ix-viewtype {
  font:
    500 0.72rem/1.4 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #c9bdda;
  letter-spacing: 0.03em;
}
.gx-heading,
.ix-dashboard header {
  padding: 1rem 1.15rem 0.75rem;
}
.gx-heading strong {
  display: block;
  margin-top: 0.24rem;
  font-size: clamp(0.98rem, 4cqi, 1.3rem);
  font-weight: 570;
  line-height: 1.33;
  letter-spacing: -0.034em;
}
.gx-map {
  position: relative;
  height: clamp(13rem, 44cqi, 18rem);
  isolation: isolate;
  border-block: 1px solid #302f42;
  background-image:
    radial-gradient(circle at 54% 39%, #6b4dae26, transparent 66%),
    radial-gradient(#8676b74a 0.8px, transparent 0.9px);
  background-size:
    auto,
    16px 16px;
}
.gx-map canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.gx-node {
  --hue: #a69fc5;
  position: absolute;
  display: block;
  transform: translate(-50%, -50%);
  color: #c4bfd3;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.gx-node .gx-emblem {
  box-sizing: border-box;
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #6b637f;
  border-radius: 13px;
  margin: auto;
  color: #c5bed6;
  background: linear-gradient(140deg, #39334a, #202030);
  transform: rotate(45deg);
}
.gx-node.gx-lit .gx-emblem {
  background: linear-gradient(140deg, #756099, #3d304f);
  border-color: #c4b0ff;
  box-shadow:
    0 0 13px #ab84ff30,
    inset 0 0 12px #d6bcff36;
  color: #fff;
}
.gx-node[aria-pressed="true"] .gx-emblem {
  border-color: #9bf4db;
  box-shadow:
    0 0 0 4px #8fe4d217,
    0 0 18px #61c5bb42;
  color: #d5fff0;
  background: linear-gradient(140deg, #43716b, #203f44);
}
.gx-emblem i {
  position: relative;
  transform: rotate(-45deg);
  display: block;
  font-style: normal;
}
.gx-emblem[data-glyph="report"] i {
  height: 15px;
  width: 16px;
  border-bottom: 2px solid currentColor;
}
.gx-emblem[data-glyph="report"] i::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 1px;
  width: 3px;
  height: 6px;
  background: currentColor;
  box-shadow:
    5px -4px currentColor,
    10px -1px currentColor;
}
.gx-emblem[data-glyph="model"] i,
.gx-emblem[data-glyph="source"] i {
  height: 12px;
  width: 16px;
  border: 1px solid currentColor;
  border-radius: 50%/25%;
}
.gx-emblem[data-glyph="model"] i::before,
.gx-emblem[data-glyph="source"] i::before {
  content: "";
  position: absolute;
  inset: 1px -1px 4px;
  border-bottom: 1px solid currentColor;
  border-radius: 50%;
}
.gx-emblem[data-glyph="guide"] i {
  width: 14px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 1px;
}
.gx-emblem[data-glyph="guide"] i::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 4px currentColor;
}
.gx-emblem[data-glyph="code"] i::before {
  content: "</>";
  font:
    700 10px ui-monospace,
    monospace;
}
.gx-emblem[data-glyph="owner"] i {
  width: 16px;
  height: 8px;
  margin-top: 8px;
  border: 1px solid currentColor;
  border-radius: 8px 8px 2px 2px;
}
.gx-emblem[data-glyph="owner"] i::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -10px;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.gx-node .gx-name {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  background: #141520d9;
  border-radius: 3px;
  font-size: 0.78rem;
  line-height: 1.14;
  min-width: 3rem;
  width: max-content;
  max-width: 18cqi;
  padding: 0.15rem 0.22rem;
  color: #d6d0df;
  text-align: center;
}
.gx-node[aria-pressed="true"] .gx-name {
  color: var(--mint);
}
.gx-detail {
  padding: 0.85rem 1.15rem 0;
}
.gx-detail-meta,
.ix-dashboard header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.gx-detail-meta {
  margin-bottom: 0.4rem;
}
.gx-evidence strong {
  display: block;
  font:
    600 0.84rem/1.5 ui-monospace,
    monospace;
  color: #e2d7ff;
  overflow-wrap: anywhere;
}
.gx-evidence code {
  display: block;
  font:
    0.79rem/1.6 ui-monospace,
    monospace;
  color: #b4f4df;
  background: #101a20;
  border-left: 2px solid #69bcae;
  padding: 0.45rem 0.65rem;
  margin: 0.45rem 0;
  overflow-wrap: anywhere;
}
.gx-evidence p,
.gx-path,
.ix-credit,
.ix-feedback {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--interface-dim);
  margin: 0;
}
.gx-path {
  margin-top: 0.6rem;
  font-size: 0.76rem;
  color: #c1aee7;
}
.gx-tools {
  padding: 0.65rem 1.15rem 0.85rem;
}
.gx-retrace {
  min-height: 36px;
  font-size: 0.78rem;
}
.gx-retrace:disabled {
  opacity: 0.45;
  cursor: default;
}
.ix-prompt {
  display: flex;
  align-items: end;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.35rem 0 0.6rem;
}
.ix-prompt label {
  display: block;
  flex: 1 1 11rem;
  min-width: 0;
}
.ix-instruction {
  margin-top: 0.35rem;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.72rem;
  border-radius: 7px;
  background: #11111a;
  color: var(--ink);
  border: 1px solid #514b65;
  font:
    500 0.93rem/1.25 Geist,
    system-ui,
    sans-serif;
}
.ix-instruction[aria-invalid="true"] {
  border-color: #e6a88d;
}
.ix-compose {
  min-height: 44px;
  background: #c2aaff;
  color: #1e102c;
  border-color: #c2aaff;
  font-weight: 660;
}
.ix-feedback {
  font-size: 0.79rem;
}
.ix-feedback:not(:empty) {
  margin: 0 0 0.55rem;
}
.ix-view {
  background:
    radial-gradient(ellipse at 80% 0%, #38324b70, transparent 66%), #141520;
}
.ix-dashboard header {
  align-items: start;
  border-bottom: 1px solid #363344;
}
.ix-dashboard header h3 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.22rem, 5cqi, 1.8rem);
  line-height: 1.1;
  font-weight: 580;
  letter-spacing: -0.055em;
}
.ix-viewtype {
  white-space: nowrap;
  border: 1px solid #524a61;
  padding: 0.17rem 0.46rem;
  border-radius: 100px;
  letter-spacing: 0;
}
.ix-columns {
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(0, 1fr));
  gap: clamp(0.4rem, 3cqi, 1.5rem);
  margin: 0.7rem clamp(0.7rem, 4cqi, 1.6rem) 1rem;
  padding: 0;
  list-style: none;
}
.ix-columns li {
  min-width: 0;
  text-align: center;
}
.ix-rod {
  display: block;
  height: clamp(8rem, 25cqi, 11rem);
  position: relative;
  background: repeating-linear-gradient(
    to top,
    #514b6060 0 1px,
    transparent 1px 24%
  );
  margin-top: 0.7rem;
}
.ix-rod i {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: var(--height);
  border-radius: 5px 5px 0 0;
  border-top: 2px solid var(--region);
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--region) 82%, #182132),
    color-mix(in srgb, var(--region) 37%, #182132)
  );
}
.ix-rod i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    142deg,
    transparent 0 5px,
    #ffffff14 5px 6px
  );
  border-radius: inherit;
}
.ix-rod i span {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 3px;
  color: #e5deee;
  font:
    500 0.72rem/1.3 ui-monospace,
    monospace;
  white-space: nowrap;
}
.ix-columns [data-ix-region] > strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 560;
  margin-top: 0.35rem;
}
.ix-mix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 1.2rem;
  padding: 1.1rem 0.75rem;
}
.ix-ring {
  display: grid;
  place-items: center;
  width: clamp(7.8rem, 30cqi, 11.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--slices));
  box-shadow: 0 0 15px #a38aff13;
}
.ix-ring > div {
  display: grid;
  align-content: center;
  text-align: center;
  width: 66%;
  height: 66%;
  background: #181722;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #181722;
}
.ix-ring span {
  font-size: clamp(0.93rem, 3.8cqi, 1.35rem);
  font-weight: 610;
  letter-spacing: -0.055em;
}
.ix-ring small {
  font:
    0.61rem ui-monospace,
    monospace;
  color: #c4bcd5;
}
.ix-share-key {
  display: grid;
  gap: 0.3rem;
  padding: 0;
  margin: 0;
  list-style: none;
  min-width: 6.35rem;
  font-size: 0.85rem;
}
.ix-share-key li button {
  display: grid;
  align-items: center;
  gap: 0.38rem;
  grid-template-columns: auto 1fr auto;
}
.ix-share-key i,
.ix-table i {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--region);
  border-radius: 2px;
}
.ix-share-key strong {
  font-variant-numeric: tabular-nums;
  margin-left: 0.4rem;
}
.ix-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1rem 0.6rem;
}
.ix-focus h4 {
  font-size: 1rem;
  line-height: 1.3;
  color: var(--region);
  margin: 0.2rem 0;
}
.ix-big {
  display: block;
  letter-spacing: -0.065em;
  font-size: clamp(1.4rem, 6.6cqi, 2.45rem);
  line-height: 1.1;
  font-weight: 580;
}
.ix-rank {
  color: var(--region);
  text-align: right;
}
.ix-rank span {
  display: block;
  font:
    0.72rem ui-monospace,
    monospace;
}
.ix-rank strong {
  font-size: 1.8rem;
  line-height: 1.15;
  font-weight: 530;
}
.ix-rank small {
  font-size: 0.82rem;
  color: var(--interface-dim);
}
.ix-meter {
  height: 0.6rem;
  background: #302a40;
  margin: 0.15rem 1rem 0.65rem;
  border-radius: 5px;
  overflow: hidden;
}
.ix-meter i {
  display: block;
  width: var(--amount);
  height: 100%;
  background: var(--region);
}
.ix-credit {
  padding: 0 1rem 1rem;
}
.ix-credit strong {
  color: #eeeeee;
}
.ix-table {
  width: calc(100% - 1.4rem);
  border-collapse: collapse;
  margin: 0.7rem;
  font-size: clamp(0.73rem, 3cqi, 0.93rem);
  font-variant-numeric: tabular-nums;
}
.ix-table th,
.ix-table td {
  border-bottom: 1px solid #373340;
  text-align: right;
  padding: 0.4rem 0.2rem;
}
.ix-table th:first-child {
  text-align: left;
}
.ix-table thead th {
  font-weight: 570;
  color: #bfb5d0;
}
.ix-table tbody th {
  font-weight: 540;
}
.ix-table i {
  margin-right: 0.4rem;
}
.ix-trace {
  font-size: 0.8rem;
  margin-top: 0.6rem;
  color: var(--interface-dim);
}
.ix-trace summary {
  cursor: pointer;
  display: list-item;
  width: fit-content;
  padding: 0.45rem 0.1rem;
  color: #c8b5fa;
}
.ix-trace ol {
  display: grid;
  gap: 0.3rem;
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
}
.ix-trace li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.5rem;
  border-top: 1px solid var(--interface-line);
  padding: 0.3rem 0;
}
.ix-trace li strong {
  color: var(--mint);
}
.ix-trace li code {
  font-size: 0.76rem;
}
@media (prefers-reduced-motion: no-preference) {
  .gx-emblem {
    transition:
      background 0.2s,
      border-color 0.2s,
      box-shadow 0.2s;
  }
  .ix-dashboard {
    animation: ix-mount 0.35s ease-out;
  }
  .ix-rod i {
    transform-origin: bottom;
    animation: ix-columns 0.39s cubic-bezier(0.16, 0.72, 0.31, 1) backwards;
    animation-delay: calc(var(--order) * 45ms);
  }
  .ix-ring {
    animation: ix-ring-in 0.48s ease-out;
  }
  .ix-meter i {
    transform-origin: left;
    animation: ix-meter-in 0.43s ease-out;
  }
  @keyframes ix-mount {
    from {
      opacity: 0.55;
      transform: translateY(0.32rem);
    }
  }
  @keyframes ix-columns {
    from {
      transform: scaleY(0.05);
    }
  }
  @keyframes ix-ring-in {
    from {
      transform: rotate(-7deg) scale(0.93);
      opacity: 0.4;
    }
  }
  @keyframes ix-meter-in {
    from {
      transform: scaleX(0.06);
    }
  }
}
@container (max-width:340px) {
  .gx-heading,
  .gx-detail {
    padding-inline: 0.7rem;
  }
  .gx-tools {
    padding-inline: 0.7rem;
  }
  .gx-node .gx-emblem {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  .gx-node .gx-name {
    font-size: 0.68rem;
    max-width: 19cqi;
  }
  .ix-dashboard header {
    padding: 0.8rem 0.65rem;
  }
  .ix-viewtype {
    font-size: 0.62rem;
  }
  .gx-queries button,
  .ix-presets button {
    font-size: 0.76rem;
    padding: 0.4rem 0.58rem;
  }
  .ix-rod i {
    left: 10%;
    right: 10%;
  }
  .ix-rod i span {
    font-size: 0.65rem;
  }
  .ix-mix {
    gap: 0.6rem;
  }
}

.ix-dashboard [data-ix-region] {
  background: none;
  border: 0;
  color: inherit;
  width: 100%;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.ix-columns [data-ix-region]:hover .ix-rod i {
  filter: brightness(1.2);
}
.ix-columns [data-ix-region]:hover strong,
.ix-share-key [data-ix-region]:hover span,
.ix-table [data-ix-region]:hover {
  text-decoration: underline;
}
.ix-table [data-ix-region] {
  text-align: left;
  min-height: 32px;
}
.ix-share-key [data-ix-region] {
  min-height: 32px;
}
.ix-dashboard [data-ix-back] {
  padding: 0.45rem 0.7rem;
  margin: 0 1rem 0.8rem;
  min-height: 38px;
  background: #211f2d;
  color: #e1d5f4;
  border: 1px solid #5c546e;
  border-radius: 6px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
