*,
:before,
::before,
:after,
::after {
  box-sizing: border-box;
}

* {
  border: 0;
  border-radius: 0;
  margin: 0;
  outline: 0;
  padding: 0;
}

html,
body {
  overflow: hidden;
}

body {
  font-size: 0;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
}

a {
  background: transparent;
  text-decoration: none;
}

img {
  max-width: 100%;
}

svg {
  border: 0;
  stroke-width: 0;
}

ol,
ul {
  list-style: none;
}

button {
  cursor: pointer;
  background-color: transparent;
  font-family: inherit;
}

input[type=text] {
  background-color: transparent;
}

::-webkit-scrollbar {
  display: none;
}

.tool-graph__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 6px 10px;
  background: #16181f;
  z-index: 10;
}
.tool-graph__header-left {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tool-graph__header-right {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tool-graph__header-item {
  padding: 4px 10px;
  font-size: 11px;
  color: #888;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  user-select: none;
}
.tool-graph__header-item:hover {
  color: #ccc;
}
.tool-graph__header-item--align {
  font-size: 9px;
  padding: 3px 5px;
}
.tool-graph__header-label {
  font-size: 10px;
  color: #666;
}
.tool-graph__line-wrap {
  position: relative;
}
.tool-graph__line-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #1a1c24;
  border: 1px solid #2a2d38;
  border-radius: 8px;
  padding: 6px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.tool-graph__line-row {
  display: flex;
  gap: 4px;
}
.tool-graph__header-spacer {
  flex: 1;
}
.tool-graph__button {
  padding: 4px 10px;
  font-size: 11px;
  border: none;
  border-radius: 5px;
  background: #1e2028;
  color: #ccc;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.tool-graph__button:hover {
  background: #262830;
}
.tool-graph__button--edge-style {
  padding: 3px 7px;
  font-size: 10px;
}
.tool-graph__button--sql {
  color: #50B86C;
}
.tool-graph__button--ddl {
  color: #26C6DA;
}
.tool-graph__button--defs {
  color: #B07DD8;
}
.tool-graph__button--align {
  font-size: 9px;
  padding: 3px 5px;
}
.tool-graph__button--zoom {
  font-size: 10px;
  color: #888;
  min-width: 44px;
}
.tool-graph__button--add-col {
  color: #50B86C;
  font-size: 12px;
}
.tool-graph__button--reset {
  font-size: 11px;
  color: #888;
  background: none;
  margin-top: 4px;
}
.tool-graph__align-wrap {
  display: none;
}

.tool-graph__layer-panel {
  width: 180px;
  font-size: 12px;
  user-select: none;
  max-height: 60vh;
}
.tool-graph__layer-header {
  gap: 6px;
}
.tool-graph__layer-title {
  flex: 1;
  font-size: 9px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.tool-graph__layer-add {
  background: none;
  border: 1px solid #2a2d38;
  border-radius: 4px;
  color: #aaa;
  cursor: pointer;
  padding: 2px 8px;
  font-size: 13px;
}
.tool-graph__layer-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.tool-graph__layer-row {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  margin: 1px 4px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid transparent;
}
.tool-graph__layer-row--active {
  background: rgba(74, 144, 217, 0.0705882353);
  border-color: rgba(74, 144, 217, 0.2);
}
.tool-graph__layer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tool-graph__layer-name {
  flex: 1;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-graph__layer-count {
  color: #555;
  margin-left: 3px;
}
.tool-graph__layer-rename-input {
  flex: 1;
  font-size: 10px;
  background: #0f1117;
  border: 1px solid #4A90D9;
  border-radius: 3px;
  color: #fff;
  padding: 1px 4px;
  outline: none;
  min-width: 0;
}
.tool-graph__layer-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 1px;
  font-size: 12px;
}
.tool-graph__layer-button--del {
  font-size: 9px;
  color: rgba(224, 82, 82, 0.4);
}

.tool-graph__history-panel {
  width: 190px;
  max-height: 50vh;
}
.tool-graph__history-title {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.tool-graph__history-actions {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
}
.tool-graph__history-button {
  padding: 4px 12px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  background: #1e2028;
  color: #ccc;
  cursor: pointer;
  font-family: inherit;
}
.tool-graph__history-button:hover {
  background: #262830;
}
.tool-graph__history-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.tool-graph__history-row {
  padding: 4px 12px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border-left: 2px solid transparent;
}
.tool-graph__history-row--current {
  background: rgba(74, 144, 217, 0.0941176471);
  border-left-color: #4A90D9;
}
.tool-graph__history-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tool-graph__history-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-graph__search-panel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(26, 28, 36, 0.9333333333);
  border: 1px solid #2a2d38;
  border-radius: 10px;
  padding: 8px 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  min-width: 280px;
  max-width: 400px;
}
.tool-graph__search-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tool-graph__search-input {
  flex: 1;
  padding: 6px 10px;
  font-size: 12px;
  background: #0f1117;
  border: 1px solid #3a3d48;
  border-radius: 6px;
  color: #fff;
  outline: none;
  font-family: "Noto Sans JP", sans-serif;
}
.tool-graph__search-close {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 14px;
}
.tool-graph__search-results {
  margin-top: 6px;
  max-height: 180px;
  overflow-y: auto;
}
.tool-graph__search-empty {
  font-size: 11px;
  color: #555;
  padding: 4px 0;
}
.tool-graph__search-row {
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-graph__search-row:hover {
  background: rgba(74, 144, 217, 0.0823529412);
}
.tool-graph__search-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tool-graph__search-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-graph__search-table-icon {
  font-size: 9px;
  color: #50B86C;
}
.tool-graph__search-more {
  font-size: 9px;
  color: #555;
  padding: 2px 8px;
}

.tool-graph__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.tool-graph__modal {
  background: #1a1c24;
  border: 1px solid #2a2d38;
  border-radius: 14px;
  padding: 24px 28px;
  min-width: 340px;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.tool-graph__modal--wide {
  width: 620px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.tool-graph__modal--table {
  width: 700px;
  max-width: 95vw;
  max-height: 90vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tool-graph__modal--defs {
  display: flex;
  overflow: hidden;
  width: 560px;
  padding: 0;
  max-height: 85vh;
}
.tool-graph__modal-label {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.tool-graph__modal-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.tool-graph__modal-hint {
  font-size: 11px;
  color: #555;
  margin-bottom: 12px;
}
.tool-graph__modal-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  background: #0f1117;
  border: 2px solid #3a3d48;
  border-radius: 8px;
  color: #fff;
  outline: none;
  font-family: "Noto Sans JP", sans-serif;
  box-sizing: border-box;
}
.tool-graph__modal-input:focus {
  border-color: #4A90D9;
}
.tool-graph__modal-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.tool-graph__modal-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.tool-graph__modal-badge--from {
  background: rgba(74, 144, 217, 0.1254901961);
  color: #4A90D9;
}
.tool-graph__modal-badge--to {
  background: rgba(224, 82, 82, 0.1254901961);
  color: #E05252;
}
.tool-graph__modal-arrow {
  color: #444;
  font-size: 18px;
}
.tool-graph__modal-card-section {
  margin-bottom: 16px;
}
.tool-graph__modal-card-label {
  font-size: 11px;
  color: #666;
  margin-bottom: 6px;
}
.tool-graph__modal-card-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tool-graph__modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.tool-graph__modal-cancel {
  padding: 8px 20px;
  font-size: 13px;
  border: 1px solid #2a2d38;
  border-radius: 6px;
  background: transparent;
  color: #888;
  cursor: pointer;
  font-family: inherit;
}
.tool-graph__modal-ok {
  padding: 8px 24px;
  font-size: 13px;
  border: none;
  border-radius: 6px;
  background: #4A90D9;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
.tool-graph__modal-ok--green {
  background: #50B86C;
}
.tool-graph__modal-ok--cyan {
  background: #26C6DA;
}
.tool-graph__modal-sql-ta, .tool-graph__modal-ddl-ta {
  width: 100%;
  padding: 12px;
  font-size: 13px;
  background: #0f1117;
  border: 2px solid #3a3d48;
  border-radius: 8px;
  outline: none;
  font-family: monospace;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.5;
}
.tool-graph__modal-sql-ta {
  height: 260px;
  color: #50B86C;
}
.tool-graph__modal-ddl-ta {
  height: 300px;
  color: #26C6DA;
  border-width: 1px;
}
.tool-graph__modal-sql-info {
  margin-top: 8px;
  font-size: 11px;
  color: #666;
}
.tool-graph__table-header {
  padding: 20px 24px 12px;
  border-bottom: 1px solid #2a2d38;
}
.tool-graph__table-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-graph__table-icon {
  font-size: 12px;
  color: #888;
  flex-shrink: 0;
}
.tool-graph__table-name-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 17px;
  font-weight: 700;
  background: #0f1117;
  border: 1px solid #3a3d48;
  border-radius: 6px;
  color: #50B86C;
  outline: none;
  font-family: monospace;
}
.tool-graph__table-name-input:focus {
  border-color: #50B86C;
}
.tool-graph__table-cols {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
  min-height: 120px;
}
.tool-graph__table-col-header {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 44px 44px 44px 44px 60px;
  gap: 6px;
  padding: 8px 0 4px;
  font-size: 9px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid #2a2d38;
  margin-bottom: 4px;
}
.tool-graph__table-col-row {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 44px 44px 44px 44px 60px;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #1a1c24;
}
.tool-graph__table-col-idx {
  font-size: 10px;
  color: #555;
  text-align: center;
}
.tool-graph__table-col-name, .tool-graph__table-col-type {
  padding: 5px 8px;
  font-size: 12px;
  background: #0f1117;
  border: 1px solid #2a2d38;
  border-radius: 4px;
  outline: none;
  font-family: monospace;
}
.tool-graph__table-col-name:focus, .tool-graph__table-col-type:focus {
  border-color: #50B86C;
}
.tool-graph__table-col-name {
  color: #ddd;
}
.tool-graph__table-col-type {
  font-size: 11px;
  color: #888;
}
.tool-graph__table-col-toggle {
  width: 44px;
  height: 28px;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  text-align: center;
}
.tool-graph__table-col-actions {
  display: flex;
  gap: 2px;
  justify-content: center;
}
.tool-graph__table-col-move {
  width: 18px;
  height: 24px;
  border: none;
  border-radius: 3px;
  background: transparent;
  color: #666;
  cursor: pointer;
  font-size: 10px;
  padding: 0;
}
.tool-graph__table-col-move:disabled {
  color: #333;
  cursor: default;
}
.tool-graph__table-col-move--del {
  color: #E05252;
  width: 20px;
}
.tool-graph__table-empty {
  padding: 24px 0;
  text-align: center;
  color: #444;
  font-size: 12px;
}
.tool-graph__table-footer {
  padding: 12px 24px;
  border-top: 1px solid #2a2d38;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-graph__table-col-count {
  font-size: 10px;
  color: #555;
}
.tool-graph__defs-sidebar {
  width: 140px;
  background: #111318;
  border-right: 1px solid #2a2d38;
  padding: 16px 0;
  flex-shrink: 0;
  overflow-y: auto;
}
.tool-graph__defs-sidebar-title {
  font-size: 10px;
  color: #666;
  padding: 0 14px 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.tool-graph__defs-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 11px;
  color: #bbb;
  border-right: 2px solid transparent;
}
.tool-graph__defs-right {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
}
.tool-graph__slider {
  margin-bottom: 14px;
}
.tool-graph__slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.tool-graph__slider-label {
  font-size: 12px;
  color: #aaa;
}
.tool-graph__slider-value {
  font-size: 12px;
  color: #4A90D9;
  font-weight: 600;
}
.tool-graph__slider-range {
  width: 100%;
  accent-color: #4A90D9;
  cursor: pointer;
}
.tool-graph__color-field {
  margin-bottom: 14px;
}
.tool-graph__color-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.tool-graph__color-right {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.tool-graph__color-preview {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid #444;
}
.tool-graph__color-hex {
  font-size: 11px;
  color: #777;
  font-family: monospace;
}
.tool-graph__color-picker {
  background: #111318;
  border: 1px solid #2a2d38;
  border-radius: 8px;
  padding: 10px;
  margin-top: 4px;
}
.tool-graph__color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.tool-graph__color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
}
.tool-graph__color-custom {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-graph__color-input {
  width: 28px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.tool-graph__color-text {
  flex: 1;
  font-size: 11px;
  background: #0f1117;
  border: 1px solid #2a2d38;
  border-radius: 4px;
  color: #ccc;
  padding: 3px 6px;
  font-family: monospace;
  outline: none;
}
.tool-graph__design-editor {
  display: flex;
  flex-direction: column;
}
.tool-graph__ndesign-header {
  margin-bottom: 12px;
}
.tool-graph__ndesign-name-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 700;
  background: #0f1117;
  border: 2px solid #3a3d48;
  border-radius: 8px;
  color: #fff;
  outline: none;
  font-family: "Noto Sans JP", sans-serif;
  box-sizing: border-box;
}
.tool-graph__ndesign-name-input:focus {
  border-color: #4A90D9;
}
.tool-graph__panel {
  position: absolute;
  z-index: 40;
  background: #1a1c24;
  border: 1px solid #2a2d38;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.tool-graph__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 14px;
  cursor: grab;
  border-bottom: 1px solid #2a2d38;
  user-select: none;
}
.tool-graph__panel-header:active {
  cursor: grabbing;
}
.tool-graph__panel-main {
  padding: 10px 14px;
}
.tool-graph__summary-panel {
  min-width: 160px;
}
.tool-graph__summary-panel-title {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.tool-graph__summary-panel-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
}
.tool-graph__summary-panel-row--sub {
  padding-left: 10px;
}
.tool-graph__summary-panel-label {
  font-size: 12px;
  color: #999;
}
.tool-graph__summary-panel-value {
  font-size: 12px;
  color: #ccc;
  font-variant-numeric: tabular-nums;
}
.tool-graph__hint-panel {
  min-width: 180px;
}
.tool-graph__hint-panel-title {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.tool-graph__hint-panel-item {
  font-size: 12px;
  color: #999;
  padding: 3px 0;
}
.tool-graph__view-panel-title {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.tool-graph__view-panel-body {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-graph__view-panel-button {
  border: 1px solid #2a2d38;
  background: transparent;
  color: #888;
  cursor: pointer;
  font-size: 12px;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: inherit;
  white-space: nowrap;
}
.tool-graph__view-panel-button:hover {
  background: #2a2d38;
  color: #ccc;
}
.tool-graph__mm-panel-title {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.tool-graph__mm-panel-body {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-graph__line-panel-title {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.tool-graph__line-panel-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tool-graph__line-panel-row {
  display: flex;
  gap: 4px;
}
.tool-graph__line-panel-button {
  border: none;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font-size: 11px;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: inherit;
  white-space: nowrap;
}
.tool-graph__line-panel-button:hover {
  background: #2a2d38;
  color: #ccc;
}
.tool-graph__sql-panel {
  width: 420px;
}
.tool-graph__sql-panel-title {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.tool-graph__sql-panel-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-graph__sql-panel-close:hover {
  background: #2a2d38;
  color: #ccc;
}
.tool-graph__sql-panel-body {
  padding: 14px;
}
.tool-graph__sql-panel-hint {
  font-size: 10px;
  color: #555;
  margin-bottom: 8px;
}
.tool-graph__sql-panel-textarea {
  width: 100%;
  height: 160px;
  padding: 10px;
  font-size: 12px;
  background: #0f1117;
  border: 1px solid #3a3d48;
  border-radius: 6px;
  color: #50B86C;
  outline: none;
  font-family: monospace;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.5;
}
.tool-graph__sql-panel-textarea:focus {
  border-color: #50B86C;
}
.tool-graph__sql-panel-info {
  margin-top: 6px;
  font-size: 11px;
  color: #666;
  min-height: 16px;
}
.tool-graph__sql-panel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.tool-graph__sql-panel-file-link {
  border: none;
  background: none;
  color: #666;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
}
.tool-graph__sql-panel-file-link:hover {
  color: #aaa;
}

.tool-graph__ctx-menu {
  position: fixed;
  background: #1e2028;
  border: 1px solid #2a2d38;
  border-radius: 10px;
  padding: 8px;
  z-index: 100;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-height: 80vh;
  overflow-y: auto;
}
.tool-graph__ctx-item {
  padding: 5px 12px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 4px;
  color: #ddd;
}
.tool-graph__ctx-item:hover {
  background: rgba(255, 255, 255, 0.031372549);
}
.tool-graph__ctx-sep {
  border-top: 1px solid #2a2d38;
  margin: 2px 0;
}
.tool-graph__ctx-info {
  padding: 4px 12px;
  font-size: 9px;
  color: #888;
  cursor: default;
}
.tool-graph__ctx-info--conn {
  padding: 2px 12px;
  color: #F5A623;
}
.tool-graph__ctx-sublabel {
  font-size: 9px;
  color: #888;
  padding: 2px 8px;
}
.tool-graph__ctx-colors {
  display: flex;
  gap: 3px;
  padding: 0 8px 4px;
  flex-wrap: wrap;
}
.tool-graph__ctx-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
}
.tool-graph__ctx-align {
  display: flex;
  gap: 2px;
  padding: 2px 8px;
  flex-wrap: wrap;
}
.tool-graph__ctx-align-button {
  padding: 2px 6px;
  font-size: 9px;
  background: #0f1117;
  border: 1px solid #2a2d38;
  border-radius: 3px;
  color: #aaa;
  cursor: pointer;
  font-family: inherit;
}

.tool-graph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #0f1117;
  overflow: hidden;
  position: relative;
  font-family: "Noto Sans JP", "Segoe UI", sans-serif;
  color: #e0e0e0;
  outline: none;
}
.tool-graph__canvas {
  display: block;
  cursor: default;
  touch-action: none;
}
.tool-graph__canvas--panning {
  cursor: grabbing;
}
.tool-graph__canvas--linking {
  cursor: crosshair;
}
.tool-graph__canvas--dragging {
  cursor: grabbing;
}
.tool-graph__hintbar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.22);
  z-index: 5;
  pointer-events: none;
}
.tool-graph__body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}
.tool-graph__canvas-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.tool-graph__minimap {
  position: absolute;
  bottom: 28px;
  right: 8px;
  width: 160px;
  height: 100px;
  border-radius: 8px;
  border: 1px solid #2a2d38;
  cursor: crosshair;
  z-index: 15;
  opacity: 0.85;
}