* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  background: #0f1419;
  color: #e0e6ed;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(180deg, #1a2029 0%, #161b22 100%);
  border-bottom: 1px solid #2a3441;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.brand {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  color: #8fb3d9;
  padding-right: 14px;
  border-right: 1px solid #2a3441;
}

.input-group {
  display: flex;
  flex: 1 1 360px;
  min-width: 280px;
  gap: 8px;
}

.input-group input {
  flex: 1;
  padding: 9px 14px;
  font-size: 14px;
  background: #0f1419;
  border: 1px solid #2a3441;
  color: #e0e6ed;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
}
.input-group input:focus {
  border-color: #4a90e2;
}

.button-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

button {
  padding: 8px 14px;
  font-size: 13px;
  color: #e0e6ed;
  background: #243040;
  border: 1px solid #2a3441;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.08s;
  white-space: nowrap;
}
button:hover { background: #2e3d52; }
button:active { transform: translateY(1px); }

button.primary {
  background: #4a90e2;
  border-color: #4a90e2;
  color: #fff;
  font-weight: 600;
}
button.primary:hover { background: #5aa0f2; }

button.active {
  background: #2d5aa0;
  border-color: #4a90e2;
  color: #fff;
}

/* ---------- Main / Graph ---------- */
main {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#cy {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, #1b2636 0%, #0f1419 60%),
    #0f1419;
}

.info-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(26, 32, 41, 0.85);
  border: 1px solid #2a3441;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.8;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.info-panel .k {
  color: #8fb3d9;
  margin-right: 6px;
}
.info-panel .hint {
  color: #6c7a8a;
  font-size: 11px;
  margin-top: 4px;
}

