.ideas-explorer {
  margin: 36px 0 52px;
  border: 1px solid #555;
  background: #080b0e;
}
.context-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  border-bottom: 1px solid #38434a;
}
.context-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #bbc9ce;
}
.context-toolbar input,
.context-toolbar select,
.context-toolbar button,
.context-camera button {
  background: #11191e;
  border: 1px solid #52626b;
  border-radius: 0;
  color: #fff;
  min-height: 44px;
  padding: 10px;
  font: inherit;
}
.context-toolbar input {
  width: 220px;
  max-width: 100%;
}
.context-toolbar button {
  align-self: end;
  cursor: pointer;
}
.context-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}
.context-index {
  max-height: 590px;
  overflow: auto;
  border-right: 1px solid #38434a;
  padding: 8px;
}
.context-index button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #2a333a;
  color: #c5d1d6;
  padding: 13px 9px;
  min-height: 44px;
  font:
    13px/1.4 Helvetica,
    Arial,
    sans-serif;
  cursor: pointer;
}
.context-index button[aria-pressed="true"] {
  background: #23363c;
  color: #b4f0f3;
  border-left: 3px solid #81dfe5;
}
.context-index button[hidden] {
  display: none;
}
.context-canvas {
  position: relative;
  min-width: 0;
  background: radial-gradient(ellipse at 50% 45%, #142129, #080b0e 75%);
}
.context-canvas svg {
  display: block;
  width: 100%;
  height: 590px;
  touch-action: none;
  cursor: grab;
}
.context-canvas svg:active {
  cursor: grabbing;
}
.context-camera {
  display: flex;
  gap: 5px;
  position: absolute;
  bottom: 12px;
  right: 12px;
}
.context-camera button {
  min-width: 44px;
  cursor: pointer;
}
.idea-graph-node {
  cursor: pointer;
}
.idea-graph-node > rect:first-child {
  fill: #121c23;
  stroke: #667d88;
  stroke-width: 1.5;
}
.idea-graph-node.selected > rect:first-child,
.idea-graph-node:hover > rect:first-child {
  stroke: #e3faff;
  stroke-width: 3;
  fill: #243640;
}
.idea-graph-node text {
  fill: #edf4f6;
  font:
    13px Helvetica,
    Arial,
    sans-serif;
  pointer-events: none;
}
.node-calyr {
  fill: #ed5bd7;
}
.node-lithios {
  fill: #5edce7;
}
.idea-graph-edge path {
  stroke: #58717c;
  stroke-width: 2;
  fill: none;
}
.idea-graph-edge .edge-hit {
  stroke: transparent;
  stroke-width: 18;
  cursor: pointer;
}
.idea-graph-edge:hover path:not(.edge-hit),
.idea-graph-edge:focus path:not(.edge-hit) {
  stroke: #d8b9ed;
  stroke-width: 4;
}
.idea-graph-node:focus {
  outline: none;
}
.idea-graph-node:focus > rect:first-child {
  stroke: #f5cc5c;
  stroke-width: 4;
}
.context-status {
  font: 12px/1.5 monospace;
  padding: 10px 18px;
  margin: 0 !important;
  border-top: 1px solid #38434a;
}
.context-detail {
  padding: 18px;
  min-height: 115px;
  border-top: 1px solid #38434a;
  font-size: 15px;
}
.context-detail p {
  margin: 9px 0;
}
.context-detail strong {
  font-weight: 500;
  color: #fff;
}
.context-help {
  padding: 0 18px 14px;
  font-size: 12px !important;
}
.ideas-graph-ready .ideas-index {
  margin: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}
.ideas-graph-ready .idea-entry-cluster {
  display: block;
}
.ideas-graph-ready .idea-entry-cluster > .idea-entry {
  display: none;
}
.ideas-graph-ready .idea-entry-cluster > .is-reading {
  display: block;
  height: auto;
  min-height: 0;
}
.ideas-graph-ready .idea-entry-cluster > .is-reading > details > summary {
  height: auto;
  min-height: 130px;
}
.ideas-explorer button:focus-visible,
.ideas-explorer input:focus-visible,
.ideas-explorer select:focus-visible {
  outline: 2px solid #8ee6ee;
  outline-offset: 2px;
}
@media (max-width: 650px) {
  .context-workspace {
    grid-template-columns: 1fr;
  }
  .context-index {
    max-height: 180px;
    border-right: 0;
    border-bottom: 1px solid #38434a;
  }
  .context-index button {
    font-size: 14px;
  }
  .context-canvas svg {
    height: 410px;
  }
  .context-toolbar {
    padding: 12px;
    gap: 8px;
  }
  .context-toolbar input {
    width: 100%;
  }
  .context-toolbar label:first-child {
    width: 100%;
  }
  .context-toolbar input,
  .context-toolbar select {
    font-size: 16px;
  }
  .context-detail {
    font-size: 14px;
  }
}
.context-toolbar > a {
  align-self: end;
  min-height: 44px;
  padding: 10px;
  font-size: 12px;
}
.idea-seed {
  cursor: pointer;
}
.idea-seed circle {
  fill: #a6f4ef;
  stroke: #ec78da;
  stroke-width: 3;
  filter: drop-shadow(0 0 12px #55dce9aa);
}
.idea-seed text {
  fill: #e3f9f8;
  font:
    18px Helvetica,
    Arial,
    sans-serif;
  pointer-events: none;
}
.idea-seed .seed-hint {
  font-size: 13px;
  fill: #9bb8c2;
}
.idea-seed:focus {
  outline: none;
}
.idea-seed:focus circle {
  stroke: #f7d47d;
  stroke-width: 5;
}
.idea-graph-node {
  cursor: grab;
  touch-action: none;
}
.idea-graph-node:active {
  cursor: grabbing;
}
.idea-graph-node .node-topic {
  font-size: 9px;
  fill: #a7c5d0;
}
.idea-graph-node .node-remaining {
  font-size: 11px;
  fill: #9ef1eb;
}
.context-index .is-discovered:not([aria-pressed="true"]) {
  border-left: 2px solid #4c777e;
}

/* Match the original numbered Ecosystem tiles. */
.idea-graph-node > rect:first-child {
  fill: #000;
  stroke: #fff;
  stroke-width: 1.5;
}
.idea-graph-node.selected > rect:first-child {
  fill: #000;
  stroke: #fff;
  stroke-width: 3;
}
.idea-graph-node text.node-number {
  fill: var(--tile-ink);
  font-size: 32px;
  font-weight: 750;
}
.idea-graph-node text.node-topic {
  fill: #aaa;
  font-size: 11px;
}
.idea-graph-node:hover > rect:first-child,
.idea-graph-node:focus-within > rect:first-child {
  fill: #fff;
  stroke: #fff;
}
.idea-graph-node:hover text,
.idea-graph-node:focus-within text {
  fill: #111;
}
.idea-graph-node:hover text.node-number,
.idea-graph-node:focus-within text.node-number {
  fill: var(--tile-ink-hover);
}
.node-read {
  cursor: pointer;
}
.node-read:hover .node-title,
.node-read:focus .node-title {
  text-decoration: underline;
}
.entry-back-to-graph {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 0;
  padding: 12px 18px;
  margin-bottom: 24px;
  cursor: pointer;
}
.entry-back-to-graph:hover {
  background: #fff;
  color: #000;
}
