.graph-view #main {
  padding: 38px 32px;
  min-width: 0;
}
.graph-view #main h1 {
  font-size: 34px;
  margin: 10px 0;
}
.graph-intro {
  color: #80776b;
  max-width: 750px;
  line-height: 1.65;
}
.graph-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-top: 24px;
}
.graph-controls label {
  font-size: 12px;
  color: #70685d;
  display: grid;
  gap: 7px;
}
.graph-controls input[type="search"],
.graph-controls select {
  width: 190px;
  padding: 9px;
  background: #fffdf8;
  border: 1px solid #ded8ce;
  border-radius: 5px;
  color: #4c473e;
}
.graph-controls .graph-check {
  display: flex;
  align-items: center;
  max-width: 200px;
  padding: 8px 0;
}
.graph-check input {
  width: 16px;
  height: 16px;
}
#graph-count {
  font-size: 12px;
  color: #82786a;
  line-height: 1.7;
  margin: 18px 0 12px;
}
.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 11px;
  color: #746b5f;
  margin-bottom: 16px;
}
.graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.graph-stage {
  position: relative;
  border: 1px solid #e5dfd4;
  border-radius: 10px;
  background: #fcfaf5;
  overflow: hidden;
}
#graph-svg {
  display: block;
  width: 100%;
  min-height: 390px;
  touch-action: none;
}
.graph-zoom {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 5px;
  z-index: 1;
}
.graph-zoom button {
  background: #fffdf8;
  border: 1px solid #e5dfd4;
  padding: 7px 12px;
}
.graph-edge {
  stroke: #bcb09e;
  stroke-width: 1.4;
  opacity: 0.55;
}
.graph-node {
  cursor: pointer;
  pointer-events: bounding-box;
}
.graph-node circle {
  stroke: #fcfaf5;
  stroke-width: 3;
}
.graph-node text {
  font-size: 12px;
  fill: #514a40;
  paint-order: stroke;
  stroke: #fcfaf5;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.graph-node:hover circle,
.graph-node:focus circle,
.graph-node.selected circle {
  stroke: #473c2c;
  stroke-width: 3;
}
.graph-node:focus {
  outline: none;
}
.graph-node.dimmed,
.graph-edge.dimmed {
  opacity: 0.15;
}
#graph-empty {
  position: absolute;
  top: 45%;
  left: 10%;
  right: 10%;
  text-align: center;
  color: #756a5a;
}
.graph-view #relations h3 {
  overflow-wrap: anywhere;
}
.graph-open {
  display: inline-block;
  margin: 14px 0;
  padding: 10px 16px;
  background: #eee7da;
  border-radius: 5px;
  color: #594a35;
}
.graph-view #relations li {
  margin: 10px 0;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .graph-view .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .graph-view #relations {
    display: block;
    border-left: 0;
    border-top: 1px solid #e5dfd4;
    padding: 24px 32px;
  }
}
@media (max-width: 600px) {
  .graph-view #main {
    padding: 26px 18px;
  }
  .graph-controls {
    gap: 10px;
  }
  .graph-controls input[type="search"],
  .graph-controls select {
    width: 155px;
  }
  #graph-svg {
    width: 780px;
    max-width: none;
    min-height: 500px;
    transform: translateX(calc((100vw - 816px) / 2));
  }
  .graph-stage {
    min-height: 500px;
  }
  .graph-node text {
    font-size: 14px;
  }
  .graph-view #main h1 {
    font-size: 30px;
  }
}
